Browse Source

Bump Gitea

master
Rafal Kupiec 1 year ago
parent
commit
296c55d5ea
Signed by: belliash <belliash@codingworkshop.eu.org> GPG Key ID: 4E829243E0CFE6B4
2 changed files with 66 additions and 17 deletions
  1. +1
    -17
      www-apps/gitea/Manifest
  2. +65
    -0
      www-apps/gitea/gitea-1.7.2.ebuild

+ 1
- 17
www-apps/gitea/Manifest View File

@@ -1,9 +1,3 @@
AUX app.ini 67 BLAKE2B 4ec7b8217486047b419202b3a8a7172ac21ae0e5ad9224cd4f010be730ac5cda9d05bf06dcba2d06f8809900094b3b007ef98dd4ea20a125fb7d3db279f53e4a SHA512 93f6f7cf49dd1ece56f7da711adbb58cc38a503527aeea140837d74456ee6f550a089e897d9cb94382e1eb3f5a5cbe4a61362534463eada08a91f314da0f2108
AUX gitea.confd 74 BLAKE2B 656800d35c8f0075005e7e9e5c804292f9884663f89f653426064a20cfbcb518f736bd94947a03bce5adad670fb6150d93026999d6d5395f37a85666b6663a2f SHA512 3e05bad19cd924c4375d9ca6fc57142ba4b5ec897a1c789c3fc9710dfcfee209a199c95040eece089ad93e0357486ab98fad0c448a61e318646b7a71845e9a25
AUX gitea.initd 688 BLAKE2B eb2341dee53f3fd92c49137855615d9ae7ca77efc396e2d2ed8b624ed2776c7522455a469c00172ecbbe2151ccab476baa0c779baf8a39f63348bdc7ebbd29c2 SHA512 4a6bba463c9abafcb6fc9f3854efd1a69fb3b213c2b34ff6a233f90db535c2ab0f375a0809e4c4be6651ed60d7696a54148a5ee9192567d70ca6a5203a8d3266
AUX gitea.initd-r1 688 BLAKE2B eb2341dee53f3fd92c49137855615d9ae7ca77efc396e2d2ed8b624ed2776c7522455a469c00172ecbbe2151ccab476baa0c779baf8a39f63348bdc7ebbd29c2 SHA512 4a6bba463c9abafcb6fc9f3854efd1a69fb3b213c2b34ff6a233f90db535c2ab0f375a0809e4c4be6651ed60d7696a54148a5ee9192567d70ca6a5203a8d3266
AUX gitea.logrotated 87 BLAKE2B 373830ddd6eed0ce2f0f7b1dab14e4a253e5a56a73f477cfadbc6deec373846d4df2d697735391581771699d5a6513acb0e14a446873de01eba10d19e3a6bd88 SHA512 798f3fc33026f19dd31ffa78b9b1ed313d7b82b19c047f509e896c1798b2925a1bb7c4998d98a6b47e728979bf7132fb1c2a80eb7fda096a763d6791631cb6d4
AUX gitea.service 472 BLAKE2B 4c728e2987d0c0a86e65d4b9c1a59f6193ff8a3f9b066991a06f495ad1c5586b3497c71fca1cce5b65f167af09343e7bf3215ee5e8fdefa539e384198d2d88d6 SHA512 6666fe3b4cdbb78a58db4a6bf47a15e6be9ab30b666c6eb77a9e8a002d8c0abd510fc75ef463a11ee6892ab12c98943774616072cb64fd9f2fa42ff8f676aa95
DIST gitea-1.4.3.tar.gz 14985783 BLAKE2B d2f141a036406c92e7900ce073066ff5024f308c24a2705eb5da229c48a1b6c772d3148222aafd5c0d6608830670badb2a102149f58a134cc32b5175e1ae306e SHA512 24498b418b9ddb14da5568a206e1fa0831c5789e0b64207f413c3b86e2a855052f7af80d3cb80549eaae6944e22af271c00f6308c66487c3be0dccf55a17976a
DIST gitea-1.5.0.tar.gz 18847969 BLAKE2B 59da59a3d08c64c066204f4764f14c4b257495aba7800e9d6ebfcab5ad12402ce6cd17f14ec2187f994b46d83cf587422d7b711ceea4a99cc366105bd374daa1 SHA512 06cbcadc138496abf500b8d219d0770c5f6b8af419f9c3733596ee7e20cb50235815433979b2b1daa0a6117e6eb84de9678667236549e018079c49b793f22d68
DIST gitea-1.5.0_rc1.tar.gz 18844756 BLAKE2B 5f525483fc60813a1665443379041324c011d6688ec91b3409ebe77c0d249710f1747887d9f50e9b660e805ebe30c6548e2f663d68a077d7b1278587314966c8 SHA512 43d8c746508ccc967d03c0ca255d0844922ff362c12ca171bc6f79f851f35141fe25ec2287f75a1878402783946722ba2c6a8b14a853b75f0a928c3316ea2832
@@ -15,14 +9,4 @@ DIST gitea-1.6.1.tar.gz 19508204 BLAKE2B 460cb41b3f809c307f32374d9081f8897448986
DIST gitea-1.6.2.tar.gz 19505163 BLAKE2B e1385fc2757928d3ac1f484bba14939bfe5dbb5786ff755887d4a9caaeb88cc4d5b6b3e3f9cc135b995bf0195b566124113c8a92af5aa1ff95fb0eb64968741e SHA512 de2b8f7275175b9aedbf0f5ffb20194431ff629bd31c37508ba0bafb4ec7009d6f8501acc8fee5d00507a89ab4936cb1f60778e7dff1be32c548c29554f92ec7
DIST gitea-1.7.0.tar.gz 20829587 BLAKE2B c7450886981e416ccc5a7976ff8d7ffb76d53e6c8238e5bcabdfa66d3493038b5343cce04b2fd3f822db0e9d1fdb4a14943ac63f893a0e0a2a6ad930359e10bf SHA512 ee9cc316572c8a2330ca3b06c0a288c29d86898874e9a6b6e6608c62064c5dc8324f96433ccfe160c07301e5dbdb170a5e01a31f1317881712b8e26bc407ccac
DIST gitea-1.7.1.tar.gz 20834721 BLAKE2B 576d107bbfc495b41b52dad93565010ea8634e3b8907f5ebbbf7f8f404d0b0ab2264777587b9c3258049a31fdfaea585ed51b81a2834a486381563decfeee808 SHA512 b8e9fba09d34c8929d3ad04417a106a0c3b4b4d0982a7d4c92c764113d29a2e2016a9bee378955dbb9d3839850e481cdad0e94ed1b700c9eda85f63a0ada8e78
EBUILD gitea-1.4.3.ebuild 2061 BLAKE2B 4863aa881ea31ffa3aece085ce522d2592d24b0a9027873acab600e0dcb77eb47506b1d971dd05ccf3f02969f62acd8d0083c09cddeec85c7d2d8700858588e0 SHA512 c374b17bc6da49c7193a9b3d68e56e3d6382752f73fcf2cec51166ada975ad66ca821a0a9931d039fe27f8a1b17330c1281dd641b9d1c3b8d4b11c713d9a0a0e
EBUILD gitea-1.5.0.ebuild 2061 BLAKE2B 6a4c6efdeeddbe208659f2c628e1bdbc826f5c479dea02a1ac990c8fabb01711c719080087882f0e8d43bdecb9f2922c18ec627a52080afd9bf2bbd69b6129da SHA512 2f88e7fd618104b2d3a219c1a458b0a16187d208b4a62d4baf2c4e8bd3271569384b8a122c0835201b23f4dab594d6d3a9d60cdb66edd24103cf6b808382b16e
EBUILD gitea-1.5.0_rc1.ebuild 2065 BLAKE2B e6b5320d7e68da3c54646a4a748e083f323e5f890393214e544e25f98bee8fd51c482ad3b38545205a0974a88fe6b104e17c063fde2c15c97ab0027317df41be SHA512 246b119942f07f9834c4008ddf77a4b5dfad68d05d5a34bc31625d75b35c47e7bcd2ba46ce8bb59aec130575b51595a4dedf867911a5ca0c012c084d9b956f2f
EBUILD gitea-1.5.0_rc2.ebuild 2065 BLAKE2B 2df4e0bfeae4200d04cac31366c6c2de2c45325cacb41f17fcd00795bad51660b45ca7130a88bbc7d38b720c82c0092c4a6914b582dd3c8afea577c6a4f04095 SHA512 922576ebf12bcabcfa6d2e143a8e2d31d0f05127a03a06b4301e2dbbbbf4fa69c3e67ccce5ba3de891f48017d77897e674ffb11946cbb9a39eacf3156cdfe86e
EBUILD gitea-1.5.1.ebuild 2061 BLAKE2B 6a4c6efdeeddbe208659f2c628e1bdbc826f5c479dea02a1ac990c8fabb01711c719080087882f0e8d43bdecb9f2922c18ec627a52080afd9bf2bbd69b6129da SHA512 2f88e7fd618104b2d3a219c1a458b0a16187d208b4a62d4baf2c4e8bd3271569384b8a122c0835201b23f4dab594d6d3a9d60cdb66edd24103cf6b808382b16e
EBUILD gitea-1.5.2.ebuild 2061 BLAKE2B 3bf356884d542edea430790f6af876d182b6740375e656731db0da0b5f7e9f5131e181dca268d35453dcb3a7e3ce558b8e794e19d2be19142f015772680515e3 SHA512 a4f889b8ee455854a2ed6b620a3429890d9be11790f99104f9a30ea4c83e791fd61ce5d72d8d86f9766c2d72262809d521bb9c09bb89aa32af0073f77cf45fd5
EBUILD gitea-1.6.0.ebuild 2061 BLAKE2B c36283e06439397444c70c0b6abad05e74820cb16286c1f38fa8ae63e2293b060c987611cc61e98bdd7e866de1deea933ddfa6ace83a99fe9321adf7b492c694 SHA512 5a2bf33f3a0e8d3f02a7ac7134f6c215d00c5963c453d506a4f567e3eccd13193346148564ca8884c371c686598937b76de591ccf6726d25aa81bc3dafa2331f
EBUILD gitea-1.6.1.ebuild 2061 BLAKE2B 7010a4c38c3369deff95bfa53617b3750365cc2f53e9089a3da72e6fbc108037dec22a6520ecf0a3efdf9f5923d0e4848e2de703055f8fa670e691e09d1fbf65 SHA512 1ee25cf437ddc45bea24c60ff229bb3c6eb3017b0844c97927a55167c9a9c6a36a928265c4bba6b9e5a8def8c4738901b6caaf966db08075353ba8c83ea1e4c0
EBUILD gitea-1.6.2.ebuild 2061 BLAKE2B 9703f843256ea8a298ca7988f17ab70a41ecadac391c7f073f93acc4cafa516d7034d9701ec6d6df5c619ad4faa52a1a5751c0ca3a13d8ca875d9aa5bd840dc1 SHA512 cf039c501635ace423c4e2e6b33d3272d2cd25402a93d59047ad5b6c59ec43ef6c5a74b1cd21c4930b5198e499d2ced8f606e4f80447e07db9eea1afd924e62a
EBUILD gitea-1.7.0.ebuild 2061 BLAKE2B 8e5812ea696ae3cbf7dbc7a6603e0f18bd8279d8aa16315a992b694b21ad8563962e0f2ae5f45ce549262bbe9db7e7791c2282864404075c802a8aca5db1cec9 SHA512 c3de9dfc039f7645a05fc60776b6f130fd9bbb0e425afd616ccb4d207b4d62773cb8af2f648ba44e938646c86e757a5702c078b71d1016974c70ebd804a3392b
EBUILD gitea-1.7.1.ebuild 2061 BLAKE2B fd525090e20f3c9ec9d7d49943f5f7d92d8a56c03ebd0bebf479db008501544924d3e46cc6f55373734ef0257e1d961fcc7482fa29cc66e54a34f9380dc9a46b SHA512 d6511ce52414136b614f3a997e44c2d79b9f0cb13009ebcf2d4d095c8c899da6e00c127fd947bfb6fe8776c0d4eb418e5fff85c50763dcff6617f0d1a4317b59
DIST gitea-1.7.2.tar.gz 20841049 BLAKE2B 1f39cf039dec3a76d3df8cf75905ab03bcde83b74bdd1f3c2249065633bd8b3de52ae8adb543b68d65dca35dfb16659120d04b0472ed11798551889851df1dab SHA512 8472effb58cc0c416b229ae3724c4e914afd81f058b06ce0c6ea68667a77eaa122a78b928fd5d4cb2e1b00eac15ec76825cd800c769fdc88796a535206a4dff6

+ 65
- 0
www-apps/gitea/gitea-1.7.2.ebuild View File

@@ -0,0 +1,65 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6
inherit user systemd golang-build golang-vcs-snapshot

EGO_PN="code.gitea.io/gitea"
KEYWORDS="~amd64 ~arm"

DESCRIPTION="A painless self-hosted Git service, written in Go"
HOMEPAGE="https://github.com/go-gitea/gitea"
SRC_URI="https://github.com/go-gitea/gitea/archive/v1.7.2.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
IUSE=""

DEPEND="dev-go/go-bindata"
RDEPEND="dev-vcs/git"

pkg_setup() {
enewgroup git
enewuser git -1 /bin/bash /var/lib/gitea git
}

src_prepare() {
default
sed -i -e "s/\"main.Version.*$/\"main.Version=${PV}\"/"\
-e "s/-ldflags '-s/-ldflags '/" src/${EGO_PN}/Makefile || die
}

src_compile() {
GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} generate
TAGS="bindata pam sqlite" LDFLAGS="" CGO_LDFLAGS="-fno-PIC" GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} build
}

src_install() {
mkdir -p ${D}/var/lib/gitea/custom
pushd src/${EGO_PN} || die
cp -apr options ${D}/var/lib/gitea/custom/
cp -apr public ${D}/var/lib/gitea/custom/
cp -apr templates ${D}/var/lib/gitea/custom/
dobin gitea
insinto /var/lib/gitea/conf
newins custom/conf/app.ini.sample app.ini.example
popd || die
newinitd "${FILESDIR}"/gitea.initd-r1 gitea
newconfd "${FILESDIR}"/gitea.confd gitea
keepdir /var/log/gitea /var/lib/gitea/data
fowners -R git:git /var/log/gitea /var/lib/gitea/
systemd_dounit "${FILESDIR}/gitea.service"
}

pkg_postinst() {
if [[ ! -e "${EROOT}/var/lib/gitea/conf/app.ini" ]]; then
elog "No app.ini found, copying initial config over"
cp "${FILESDIR}"/app.ini "${EROOT}"/var/lib/gitea/conf/ || die
chown git:git /var/lib/gitea/conf/app.ini
else
elog "app.ini found, please check example file for possible changes"
ewarn "Please note that environment variables have been changed:"
ewarn "GITEA_WORK_DIR is set to /var/lib/gitea (previous value: unset)"
ewarn "GITEA_CUSTOM is set to '\$GITEA_WORK_DIR/custom' (previous: /var/lib/gitea)"
fi
}

Loading…
Cancel
Save