diff --git a/profiles/package.mask b/profiles/package.mask index a08586b..1845a6e 100644 --- a/profiles/package.mask +++ b/profiles/package.mask @@ -20,11 +20,3 @@ app-containers/dnsname # # Removal after 2024-02-27. app-containers/podman-compose - -# Nils Freydank -# The ebuild in-tree got several improvements over my "fork". -# Using filecaps there still bothers me, but I don't care -# anymore and drop the copy from this overlay. -# -# Removal after 2024-02-29. -www-apps/gitea diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest deleted file mode 100644 index dcbcd28..0000000 --- a/www-apps/gitea/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST gitea-1.21.7.tar.gz 53827752 BLAKE2B 8c58504b7438062923bffdf926e0825bba0a9eb5f9fc10fa076a82e1887a09ddf9d8ae014c060b64fe7adc391d768513e6c80aaa0e3ef99cc4a59214c9e15a12 SHA512 f5b097fb992b6c72ca3f0cb12dc5cca84fbefbfc78ef80aeab957820b5df2f01fc87886855567e95875a23e6f0af9a6f5018ba9b38cff79d879ddcec7e2676eb diff --git a/www-apps/gitea/files/gitea.confd-r1 b/www-apps/gitea/files/gitea.confd-r1 deleted file mode 100644 index 19018c1..0000000 --- a/www-apps/gitea/files/gitea.confd-r1 +++ /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-r3 b/www-apps/gitea/files/gitea.initd-r3 deleted file mode 100644 index 680ae83..0000000 --- a/www-apps/gitea/files/gitea.initd-r3 +++ /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-r3 b/www-apps/gitea/files/gitea.service-r3 deleted file mode 100644 index 0867ba6..0000000 --- a/www-apps/gitea/files/gitea.service-r3 +++ /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.5.service -After=postgresql-9.6.service -After=postgresql-10.service -After=postgresql-11.service -After=postgresql-12.service -After=postgresql-13.service -After=postgresql-14.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.21.7.ebuild b/www-apps/gitea/gitea-1.21.7.ebuild deleted file mode 100644 index eaf6a10..0000000 --- a/www-apps/gitea/gitea-1.21.7.ebuild +++ /dev/null @@ -1,100 +0,0 @@ -# Copyright 2016-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="8" - -inherit go-module systemd tmpfiles - -MY_PV="${PV/_rc/-rc}" -DESCRIPTION="A painless self-hosted Git service" -HOMEPAGE=" - https://about.gitea.com/ - https://github.com/go-gitea/gitea -" - -if [[ ${MY_PV} == *9999 ]] -then - inherit git-r3 - EGIT_REPO_URI="https://github.com/go-gitea/gitea.git" -else - SRC_URI="https://github.com/go-gitea/gitea/releases/download/v${MY_PV}/gitea-src-${MY_PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" -fi - -LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0" -SLOT="0" -IUSE="+acct pam +pie sqlite" -RESTRICT="test" - -DEPEND=" - acct? ( - acct-group/git - acct-user/git[gitea] - ) - pam? ( sys-libs/pam ) -" -RDEPEND=" - ${DEPEND} - dev-vcs/git -" - -DOCS=( - custom/conf/app.example.ini - CONTRIBUTING.md - README.md -) - -S="${WORKDIR}/${PN}-src-${MY_PV}" - -src_compile() { - local gitea_tags=( - bindata - $(usev pam) - $(usex sqlite 'sqlite sqlite_unlock_notify' '') - ) - local gitea_settings=( - "-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 makeenv=( - DRONE_TAG="${PV}" - LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]} -s -w" - TAGS="${gitea_tags[*]}" - ) - - GOFLAGS="" - if use pie ; then - GOFLAGS+="-buildmode=pie" - fi - - env "${makeenv[@]}" emake EXTRA_GOFLAGS="${GOFLAGS}" backend -} - -src_install() { - dobin gitea - - einstalldocs - - newconfd "${FILESDIR}/gitea.confd-r1" gitea - newinitd "${FILESDIR}/gitea.initd-r3" gitea - newtmpfiles - gitea.conf <<-EOF - d /run/gitea 0755 git git - EOF - systemd_newunit "${FILESDIR}"/gitea.service-r3 gitea.service - - insinto /etc/gitea - newins custom/conf/app.example.ini app.ini - if use acct; then - 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 - fi -} - -pkg_postinst() { - tmpfiles_process gitea.conf -} diff --git a/www-apps/gitea/metadata.xml b/www-apps/gitea/metadata.xml deleted file mode 100644 index c5a8b29..0000000 --- a/www-apps/gitea/metadata.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - go-gitea/gitea - - - User and group management via acct-*/git packages - -