From 8dc9f0766a0f58dfb8923bdf4db0a1b23657cc2b Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 4 Sep 2020 03:46:00 +0200 Subject: [PATCH] www-apps/gitea: Delete old ebuilds. --- www-apps/gitea/Manifest | 23 ++--- www-apps/gitea/files/gitea.confd | 14 --- www-apps/gitea/files/gitea.initd | 22 ----- www-apps/gitea/files/gitea.service | 34 -------- www-apps/gitea/gitea-1.10.6.ebuild | 127 --------------------------- www-apps/gitea/gitea-1.11.5.ebuild | 133 ----------------------------- www-apps/gitea/metadata.xml | 3 - 7 files changed, 5 insertions(+), 351 deletions(-) delete mode 100644 www-apps/gitea/files/gitea.confd delete mode 100644 www-apps/gitea/files/gitea.initd delete mode 100644 www-apps/gitea/files/gitea.service delete mode 100644 www-apps/gitea/gitea-1.10.6.ebuild delete mode 100644 www-apps/gitea/gitea-1.11.5.ebuild diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest index 44d1674..78fbc7f 100644 --- a/www-apps/gitea/Manifest +++ b/www-apps/gitea/Manifest @@ -2,31 +2,18 @@ Hash: SHA512 AUX 1.12-fix-vendoring.patch 430 BLAKE2B 897214736e27f49023c8de9da5e7caa3612947f381d10e1bfd9fca2a6f4cfdcefb7fd6a70fb972e9db1c8a84deb592f585d0c6beda66b551b6e65cdce33e73d6 SHA512 9b2678c373dfb18e53be53b99e2cebdb656f777f850c6f9b67e29d52011edc320fb7d14045fef08b0b3b70959784070264f1cdfae70937097977b2865c8c71b5 -AUX gitea.confd 243 BLAKE2B 87caa8371f53f52b0a85f720342f9f358dedec9240ab78998655a03df6bf3f301fe077afabdca1b1895dbcab2fa05748735d6f38f9b3ad53534fe8ae6e72db49 SHA512 485dc9d0b86d0a7b3ba958aac9de1129aa0ffbb47219419d38811f2accca2539e49dd93cc4a24b21f1c3802b024aa8449f54e320e8a16197f201532edeca6836 AUX gitea.confd-r1 243 BLAKE2B 87caa8371f53f52b0a85f720342f9f358dedec9240ab78998655a03df6bf3f301fe077afabdca1b1895dbcab2fa05748735d6f38f9b3ad53534fe8ae6e72db49 SHA512 485dc9d0b86d0a7b3ba958aac9de1129aa0ffbb47219419d38811f2accca2539e49dd93cc4a24b21f1c3802b024aa8449f54e320e8a16197f201532edeca6836 -AUX gitea.initd 802 BLAKE2B 2e33e95f7d2762986184d45b0bbb250cc5e04fffc4e4b006233b28e5b57be69eef1d83441adebe2b94681585edaf77f9da4eb97930f91e75c1b1a5cd8d137633 SHA512 5ff2e653180a0601734fcd055dfffdfdc12363736ed2e56c8576c802398b90f4025b44002cbb9a3fd1e0c2d4c169f62d460381c6c549746d3390e55fc1c677d1 AUX gitea.initd-r3 802 BLAKE2B 2e33e95f7d2762986184d45b0bbb250cc5e04fffc4e4b006233b28e5b57be69eef1d83441adebe2b94681585edaf77f9da4eb97930f91e75c1b1a5cd8d137633 SHA512 5ff2e653180a0601734fcd055dfffdfdc12363736ed2e56c8576c802398b90f4025b44002cbb9a3fd1e0c2d4c169f62d460381c6c549746d3390e55fc1c677d1 -AUX gitea.service 734 BLAKE2B 84825b8198e9495e2803ca3702e6a631fb269c5c8fb4ff4246465a5bd7f7d796b0c3eaea72d0a25cef4f5d38d27a6c99a1b6d41f489749bef322a4ac93cfdd12 SHA512 287670f196bf6353dbdeb6ac37b4ac73693e16a6a3a83f57e7179ccb64364d1d85950a2ddd0a77238a3d218afdaacc8ba849c2810a7ba1238c7277074d1ebe39 AUX gitea.service-r2 734 BLAKE2B 84825b8198e9495e2803ca3702e6a631fb269c5c8fb4ff4246465a5bd7f7d796b0c3eaea72d0a25cef4f5d38d27a6c99a1b6d41f489749bef322a4ac93cfdd12 SHA512 287670f196bf6353dbdeb6ac37b4ac73693e16a6a3a83f57e7179ccb64364d1d85950a2ddd0a77238a3d218afdaacc8ba849c2810a7ba1238c7277074d1ebe39 -DIST gitea-1.10.6.tar.gz 30147860 BLAKE2B e41e226be820eb0a436783f49bf90a1149eef4e0dde00edc09bc76bb086ea53ff2856563e31ab261e1529a03753785e04c1fe8a02f72eef01a6de173df82098d SHA512 be64f73eb0819c28e444b9dae8d4baecd910aad790efeb515a981542125679257f48a5f4ab1c8453b5372a0c8b1e9b84275e61c89dcd2137d7f7cfe8c71f917b -DIST gitea-1.11.5.tar.gz 68923871 BLAKE2B 99e189b4a95e9ef6079a5e8455c05209da742499ff1b18e9f5edab2620ff8deb64ca3b7cb59d456b6fe25558602be8e1f8376ec234229c6af7baf24cc6d15023 SHA512 b12bfb2fc13bd0ca5799d52c37b5d2988879041892aa1e160546f7c80e2faef086f76cd753de90f2468fe9f87af6eca64ca21df394db160fc347137fc9a0fd52 DIST gitea-1.12.3.tar.gz 135139930 BLAKE2B 254f8421412958639aa5a8044fb1a4b9e47fa7231e26d45fdbb3aa2b34b8b9b89ecbf0b4fbae437246ccf7798c61bf62fded945013164995180eed4aedfc00cf SHA512 cc9e9275100389dd12c7b57a1f587a0d75d85faf73291abd0f2cd4d6ea22e776b4d55eafef904b20fddd7333642a32de8464e8c14b2c108fb914bbd62080a62c DIST gitea-1.12.4.tar.gz 135170598 BLAKE2B 5db5bda4b2a9ea94b97e2ea59416cb6a2f95d53cdd9804d4d38686413134b00935b859ab5d14883f0e9238472108b96d66e6c6f77cafb5eb9c505fd945abc97b SHA512 6d28cd1fca4332c12b2b9485775289cd86b450bb9072c6c200b1d7cc4e5ac439f5d5a39cb788228f8712a0e73990ff9f4b326ca1d8fa90bc0691c50925e1a8f1 -DIST gitea_confused.png 592 BLAKE2B 3448c5adb83355328065d070c1ab29cd41dbe76b160a43ad7452ed45603e4ce2df199d91a8b638f68e92db74f7df16ea69d82a2840ab0b3db0c580c4c5907ae3 SHA512 45628ead58472cd799b3040c3e3a1fc0de1ac467e284589c24e1e946fe408250afccc69650f07647a0a03d67f620fbee2c5e93396b00e1f1a5c6ca08b038d7f4 -DIST gitea_heart.png 498 BLAKE2B 50b76b8303b2ab9a464c8cb5c4daf2027078bc34df7ba763634e6e7b19e566454596a0c70bdac0c5422a44fa9d43f0a6ff5ce8330c2c59169690e1f537ee0586 SHA512 fe79aed4dc86d534a4ccf8156a29616cdba025b5ac1dcd3f4e190ca31a391ed85f87646b1562d2e9f1774afb51531575b9e53c74b0f2b3c141e416424f887fcb -DIST gitea_laughing.png 904 BLAKE2B 79ec681f5a302d7c679a0c2f3b7fec8657f08789a42d7bfd4d35edb744d471ceeb10436f784e664ae74de8dd8bdf1253b912bbecd68e667324a5b970ac2cba6c SHA512 dcd658a61c1ee63b752d343bb56cff23594fd57bdb340cfa3f8cc1cf761311a81e61ff015b7df91fe45294c75da2be58280f76e9258dd63920d8e3aa54945fd1 -DIST gitea_tada.png 1376 BLAKE2B a838ff5dfa1f03f8b274a708efd8f1d351934b05b3b7266adddaaf4cd1e457cf7bdeadc882b9d5d89b0fddfb866d9969e2ebf9e68d9c0077cae1a1e3d2ae74f8 SHA512 e7ae63347cc0e225a1fdab8b2feacb6a364dc6a4d6d5091e894a96bd895e56485944c9489af20d94161f4f157414aee07c62daa5d6daf91f06a1e2a5be710f00 -DIST gitea_thumbsdown.png 786 BLAKE2B 0ee2b9bd3d8e655cf3bc6ba7426f1c219c08716dcba9281845e03ee5f2f24b70e035b051a9b67c8dd95dcffff7b28261a97090f906c4e1159dfdc1285115356d SHA512 689710a3f18933b919c8eef7ec855244cd1d9fc43005b246de7961c38702cbd9d937364ee11d67024439b2de3156aa41bf870279a5d0afd3cc1111492edcaa6e -DIST gitea_thumbsup.png 778 BLAKE2B 1457327be43b7d0dbcb10dfbb043c11c1ed02536c2215f3b3931402711fa97642d265dcafc5353c05c499459d3c0ee5aeafff50cec108b14932b10ea755db4c8 SHA512 e3ab812f9d4c0cccd05feb12958a93aec0dec90ae393f4bdb28cbc30d88d2daebb46534f2879f8a445bacb997cac01eb3193355835535f277a3cd34391449a0e -EBUILD gitea-1.10.6.ebuild 4845 BLAKE2B 0b39911fec02db4831d587761ac4889ce2f13567d39ff0531032a3b656405738c0feb4fbd9df31b63b19ef3bf186f03cd1de067a2bc0205fac63b3faf7e28b48 SHA512 486e59f37f02b30ea65782dfde7a687fd8d0040afb8fba9602ab4fc9093cbc99e628a1619fbd5ce4f8fdd57f02c5c54a375f6d7c89b324c877371f47a8e9a7f0 -EBUILD gitea-1.11.5.ebuild 4114 BLAKE2B c84bbb90738989afb893315b53690ef473352ff847da7f45a5fd0ec704bc50f52e831d393013666aa964f5c0f9a4b51f948a38740400905c521be0e5ba2a294e SHA512 472d1177720e1907a00b5909b693cfa52d1ea709f08bbe274843ee425fcfd2cab9490e0909f7f928c8c6a58bb482ac62080f1f0b86cc5f0c3669e3a83c8469f7 EBUILD gitea-1.12.3.ebuild 3594 BLAKE2B 2c595ea8135be022e2a7cd99f663a0635e4256227eacc489a2404a1d602dae7bcf7ed0e3f36e3fb9c33a84e9210091cc79f24e62bbcda159e68809c95729976d SHA512 406ccf4c3ed865b3680b5a1ea917b58981a511ccce6056e46d0fbb687a3d9ead158c819857dd6ceccb37cc8e7994d5a18fcc6d8918dea41d6a5b25de8f450f5b EBUILD gitea-1.12.4.ebuild 3626 BLAKE2B 2649514a2ce7c409539f127a8c8064bc359257308f89a67396566a4407d0d7e597b279e6a8f3cb3e7ae64683c8ce4fc9b396c2b934b7315d1a6ed5ced9dc16db SHA512 05c6200b5d11e26e0162cff1cd4d8410473101b440c22bf96f8680acd2e9b6288009626bcf7ffcd9a98d112042ff7a8c034bd5114f553b78f66c56da016ebac1 -MISC metadata.xml 587 BLAKE2B df7ebd648e64b98bbb9d8b4301b90b072ce7fb3fa16a967931e9b25fed2a0ede1546bee34b3438e07134ccc23f4d122680bab21815e83f866025db05ad7af987 SHA512 3f2377cdd49bdfb175686c6b06d2c26dd2716a113fe225eb4bbf29dfb9e94610e608e4f6f3755c9db7405a8c2b827f5380b1808a99a47dfcd2bd43fd3615c6f7 +MISC metadata.xml 502 BLAKE2B cd2c4523a0c179a0a47f4c9c33aa06e68a08ba4827bcc5add3d7866c33f9a720be45d2ed59bed64960cd2cafe0e9867c8090e4e3180329244584722ba20f2d41 SHA512 3ad8aa29cdeaa79c632c0b415aaad853829f8613d56e4caa985c975b6bf6dc19f12eab8666014ea5a0ed7c5690424790508a27507b5eb032ada194997c2a9dd9 -----BEGIN PGP SIGNATURE----- -iHUEAREKAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCX1GbvQAKCRDPw5SX8bJu -B7Q+AP9UvQsB7qKC452Akcm5XHMAmGqI7xZy3Baj1U3Z20U1DwD9H3BGzPX131w8 -rkDcpV0SbjpD+swtaHya62cl96Ewf7U= -=c0o0 +iHUEAREKAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCX1GcWAAKCRDPw5SX8bJu +B2LpAP9/ZuwTPdJTezIAYo6+nBC+eYjIJiEYHMX8LxJB8oa3ZAD9FoLJi+brnb2j +imDzwHIoe8ShDFX+sDze4K6YSlRkPWM= +=8rTq -----END PGP SIGNATURE----- diff --git a/www-apps/gitea/files/gitea.confd b/www-apps/gitea/files/gitea.confd deleted file mode 100644 index 19018c1..0000000 --- a/www-apps/gitea/files/gitea.confd +++ /dev/null @@ -1,14 +0,0 @@ -# Gitea configuration -GITEA_CONF="/etc/gitea/app.ini" - -# Gitea user -GITEA_USER="git" - -# Gitea group -GITEA_GROUP="git" - -# Gitea working directory -GITEA_WORK_DIR="/var/lib/gitea" - -# Gitea custom directory -GITEA_CUSTOM="${GITEA_WORK_DIR}/custom" diff --git a/www-apps/gitea/files/gitea.initd b/www-apps/gitea/files/gitea.initd deleted file mode 100644 index 680ae83..0000000 --- a/www-apps/gitea/files/gitea.initd +++ /dev/null @@ -1,22 +0,0 @@ -#!/sbin/openrc-run -# Copyright 2016-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -description="Gitea, a self-hosted Git service" - -: ${GITEA_CONF:=/etc/gitea/app.ini} -: ${GITEA_USER:=git} -: ${GITEA_GROUP:=git} -: ${GITEA_WORK_DIR:=/var/lib/gitea} -: ${GITEA_CUSTOM:=${GITEA_WORK_DIR}/custom} - -command="/usr/bin/gitea web" -command_args="--config ${GITEA_CONF}" -command_background="true" -command_user="${GITEA_USER}:${GITEA_GROUP}" -error_log="/var/log/${RC_SVCNAME}/${RC_SVCNAME}.err" -pidfile="/run/${RC_SVCNAME}.pid" -required_files="${GITEA_CONF}" -start_stop_daemon_args="-d ${GITEA_WORK_DIR}" -start_stop_daemon_args="${start_stop_daemon_args} -e GITEA_WORK_DIR=${GITEA_WORK_DIR}" -start_stop_daemon_args="${start_stop_daemon_args} -e GITEA_CUSTOM=${GITEA_CUSTOM}" diff --git a/www-apps/gitea/files/gitea.service b/www-apps/gitea/files/gitea.service deleted file mode 100644 index 1931b46..0000000 --- a/www-apps/gitea/files/gitea.service +++ /dev/null @@ -1,34 +0,0 @@ -[Unit] -Description=Gitea service -Documentation=https://docs.gitea.io/ - -AssertPathIsDirectory=/var/lib/gitea -AssertPathIsReadWrite=/var/lib/gitea - -After=network.target -Requires=network.target -After=mysqld.service -After=postgresql-9.3.service -After=postgresql-9.4.service -After=postgresql-9.5.service -After=postgresql-9.6.service -After=postgresql-10.service -After=postgresql-11.service -After=postgresql-12.service -After=memcached.service -After=redis.service - -[Service] -User=git -Group=git - -Environment="GITEA_WORK_DIR=/var/lib/gitea" "GITEA_CUSTOM=/var/lib/gitea/custom" -WorkingDirectory=/var/lib/gitea -ExecStart=/usr/bin/gitea web --config /etc/gitea/app.ini - -Restart=always -PrivateTmp=true -Nice=5 - -[Install] -WantedBy=multi-user.target diff --git a/www-apps/gitea/gitea-1.10.6.ebuild b/www-apps/gitea/gitea-1.10.6.ebuild deleted file mode 100644 index b511b0b..0000000 --- a/www-apps/gitea/gitea-1.10.6.ebuild +++ /dev/null @@ -1,127 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -inherit fcaps golang-vcs-snapshot systemd - -EGO_PN="code.gitea.io/gitea" - -DESCRIPTION="A painless self-hosted Git service" -HOMEPAGE="https://gitea.io/" -SRC_URI="https://github.com/go-gitea/gitea/archive/v${PV/_/-}.tar.gz -> ${P}.tar.gz - emoji-hotfix? ( - https://raw.githubusercontent.com/twitter/twemoji/54df6a1/assets/72x72/1f44d.png -> gitea_thumbsup.png - https://raw.githubusercontent.com/twitter/twemoji/54df6a1/assets/72x72/1f44e.png -> gitea_thumbsdown.png - https://raw.githubusercontent.com/twitter/twemoji/54df6a1/assets/72x72/1f606.png -> gitea_laughing.png - https://raw.githubusercontent.com/twitter/twemoji/54df6a1/assets/72x72/1f615.png -> gitea_confused.png - https://raw.githubusercontent.com/twitter/twemoji/54df6a1/assets/72x72/2764.png -> gitea_heart.png - https://raw.githubusercontent.com/twitter/twemoji/54df6a1/assets/72x72/1f389.png -> gitea_tada.png - )" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64" -IUSE="emoji-hotfix pam sqlite" - -BDEPEND="dev-go/go-bindata" -DEPEND="pam? ( sys-libs/pam )" -RDEPEND=" - ${DEPEND} - acct-user/git[gitea] - dev-vcs/git[curl,threads] -" - -FILECAPS=( cap_net_bind_service+ep usr/bin/gitea ) -DOCS=( custom/conf/app.ini.sample CONTRIBUTING.md README.md ) -S="${WORKDIR}/${P}/src/${EGO_PN}" - -gitea_make() { - local my_tags=( - bindata - $(usev pam) - $(usex sqlite 'sqlite sqlite_unlock_notify' '') - ) - local my_makeopt=( - DRONE_TAG=${PV} - TAGS="${my_tags[@]}" - ) - GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" LDFLAGS="-X main.Version=${PV}" emake "${my_makeopt[@]}" "$@" -} - -src_prepare() { - default - sed -i \ - -e "s#^RUN_MODE = dev#RUN_MODE = prod#" \ - -e "s#^ROOT =#ROOT = ${EPREFIX}/var/lib/gitea/gitea-repositories#" \ - -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#" \ - -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = ${EPREFIX}/var/lib/gitea/data#" \ - -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#" \ - -e "s#^MODE = console#MODE = file#" \ - -e "s#^LEVEL = Trace#LEVEL = Info#" \ - -e "s#^LOG_SQL = true#LOG_SQL = false#" \ - -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#" \ - -e "s#^APP_ID =#;APP_ID =#" \ - -e "s#^TRUSTED_FACETS =#;TRUSTED_FACETS =#" \ - custom/conf/app.ini.sample || die - if use sqlite ; then - sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" custom/conf/app.ini.sample || die - fi - - if use emoji-hotfix; then - cp "${DISTDIR}/gitea_thumbsup.png" "public/vendor/plugins/emojify/images/thumbsup.png" || die - cp "${DISTDIR}/gitea_thumbsup.png" "public/vendor/plugins/emojify/images/+1.png" || die - cp "${DISTDIR}/gitea_thumbsdown.png" "public/vendor/plugins/emojify/images/thumbsdown.png" || die - cp "${DISTDIR}/gitea_thumbsdown.png" "public/vendor/plugins/emojify/images/-1.png" || die - cp "${DISTDIR}/gitea_laughing.png" "public/vendor/plugins/emojify/images/laughing.png" || die - cp "${DISTDIR}/gitea_confused.png" "public/vendor/plugins/emojify/images/confused.png" || die - cp "${DISTDIR}/gitea_heart.png" "public/vendor/plugins/emojify/images/heart.png" || die - cp "${DISTDIR}/gitea_tada.png" "public/vendor/plugins/emojify/images/tada.png" || die - fi - - gitea_make generate -} - -src_compile() { - gitea_make build -} - -src_test() { - gitea_make test -} - -src_install() { - dobin gitea - - einstalldocs - - newconfd "${FILESDIR}"/gitea.confd gitea - newinitd "${FILESDIR}"/gitea.initd gitea - systemd_newunit "${FILESDIR}"/gitea.service gitea.service - - insinto /etc/gitea - newins custom/conf/app.ini.sample app.ini - fowners root:git /etc/gitea/{,app.ini} - fperms g+w,o-rwx /etc/gitea/{,app.ini} - - diropts -m0750 -o git -g git - keepdir /var/lib/gitea /var/lib/gitea/custom /var/lib/gitea/data - keepdir /var/log/gitea -} - -pkg_postinst() { - fcaps_pkg_postinst - if [[ -e "${EROOT}/var/lib/gitea/conf/app.ini" ]]; then - ewarn "The configuration path has been changed to ${EROOT}/etc/gitea/app.ini." - ewarn "Please move your configuration from ${EROOT}/var/lib/gitea/conf/app.ini" - ewarn "and adapt the gitea-repositories hooks and ssh authorized_keys." - ewarn "Depending on your configuration you should run something like:" - ewarn "sed -i -e 's#${EROOT}/var/lib/gitea/conf/app.ini#${EROOT}/etc/gitea/app.ini#' \\" - ewarn " /var/lib/gitea/gitea-repositories/*/*/hooks/*/* \\" - ewarn " /var/lib/gitea/.ssh/authorized_keys" - fi - - if use emoji-hotfix; then - elog "You have to credit Twitter for the emojis if your instance is publicly accessible." - elog "See https://github.com/twitter/twemoji#attribution-requirements" - fi -} diff --git a/www-apps/gitea/gitea-1.11.5.ebuild b/www-apps/gitea/gitea-1.11.5.ebuild deleted file mode 100644 index 604b661..0000000 --- a/www-apps/gitea/gitea-1.11.5.ebuild +++ /dev/null @@ -1,133 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -inherit fcaps golang-vcs-snapshot systemd tmpfiles - -EGO_PN="code.gitea.io/gitea" - -DESCRIPTION="A painless self-hosted Git service" -HOMEPAGE="https://gitea.io/" -SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${PV}/gitea-src-${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64" -IUSE="pam sqlite" - -COMMON_DEPEND="pam? ( sys-libs/pam )" -BDEPEND=" - dev-lang/go -" -DEPEND=" - ${COMMON_DEPEND} - dev-go/go-bindata -" -RDEPEND=" - ${COMMON_DEPEND} - dev-vcs/git[curl,threads] - acct-user/git[gitea] -" - -FILECAPS=( cap_net_bind_service+ep usr/bin/gitea ) -DOCS=( custom/conf/app.ini.sample CONTRIBUTING.md README.md ) -S="${WORKDIR}/${P}/src/${EGO_PN}" - -gitea_make() { - local my_tags=( - bindata - $(usev pam) - $(usex sqlite 'sqlite sqlite_unlock_notify' '') - ) - local my_flags=( - "-X main.Version=${PV}" - "-X code.gitea.io/gitea/modules/setting.CustomConf=${EPREFIX}/etc/gitea/app.ini" - "-X code.gitea.io/gitea/modules/setting.CustomPath=${EPREFIX}/var/lib/gitea/custom" - "-X code.gitea.io/gitea/modules/setting.AppWorkPath=${EPREFIX}/var/lib/gitea" - ) - local my_makeopts=( - DRONE_TAG="${PV}" - TAGS="${my_tags[@]}" - LDFLAGS="-extldflags \"${LDFLAGS}\" ${my_flags[@]}" - GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" - ) - emake "${my_makeopts[@]}" "$@" -} - -src_prepare() { - default - sed -i \ - -e "s#^RUN_MODE = dev#RUN_MODE = prod#" \ - -e "s#^ROOT =#ROOT = ${EPREFIX}/var/lib/gitea/gitea-repositories#" \ - -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#" \ - -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = ${EPREFIX}/var/lib/gitea/data#" \ - -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#" \ - -e "s#^MODE = console#MODE = file#" \ - -e "s#^LEVEL = Trace#LEVEL = Info#" \ - -e "s#^LOG_SQL = true#LOG_SQL = false#" \ - -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#" \ - -e "s#^APP_ID =#;APP_ID =#" \ - -e "s#^TRUSTED_FACETS =#;TRUSTED_FACETS =#" \ - custom/conf/app.ini.sample || die - - if use sqlite ; then - sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" custom/conf/app.ini.sample || die - fi - - gitea_make generate -} - -src_compile() { - # Avoid nodejs dep. See upstream bug - # . - gitea_make backend -} - -src_test() { - if has network-sandbox ${FEATURES}; then - einfo "Remove tests which are known to fail with network-sandbox enabled." - rm ./modules/migrations/github_test.go || die - fi - - einfo "Remove tests which depend on gitea git-repo." - rm ./modules/git/blob_test.go || die - rm ./modules/git/repo_test.go || die - - default -} - -src_install() { - dobin gitea - - einstalldocs - - newconfd "${FILESDIR}"/gitea.confd gitea - newinitd "${FILESDIR}"/gitea.initd gitea - systemd_newunit "${FILESDIR}"/gitea.service gitea.service - newtmpfiles - gitea.conf <<-EOF - d /run/gitea 0755 git git - EOF - - insinto /etc/gitea - newins custom/conf/app.ini.sample app.ini - fowners root:git /etc/gitea/{,app.ini} - fperms g+w,o-rwx /etc/gitea/{,app.ini} - - diropts -m0750 -o git -g git - keepdir /var/lib/gitea /var/lib/gitea/custom /var/lib/gitea/data - keepdir /var/log/gitea -} - -pkg_postinst() { - fcaps_pkg_postinst - - if [[ -e "${EROOT}/var/lib/gitea/conf/app.ini" ]]; then - ewarn "The configuration path has been changed to ${EROOT}/etc/gitea/app.ini." - ewarn "Please move your configuration from ${EROOT}/var/lib/gitea/conf/app.ini" - ewarn "and adapt the gitea-repositories hooks and ssh authorized_keys." - ewarn "Depending on your configuration you should run something like:" - ewarn "sed -i -e 's#${EROOT}/var/lib/gitea/conf/app.ini#${EROOT}/etc/gitea/app.ini#' \\" - ewarn " /var/lib/gitea/gitea-repositories/*/*/hooks/*/* \\" - ewarn " /var/lib/gitea/.ssh/authorized_keys" - fi -} diff --git a/www-apps/gitea/metadata.xml b/www-apps/gitea/metadata.xml index a718077..50cd06f 100644 --- a/www-apps/gitea/metadata.xml +++ b/www-apps/gitea/metadata.xml @@ -9,9 +9,6 @@ https://docs.gitea.io/ - - Use reaction emojis with neutral skin tone - User and group management via acct-*/git packages