diff options
Diffstat (limited to 'www-apps/gitea')
-rw-r--r-- | www-apps/gitea/Manifest | 1 | ||||
-rw-r--r-- | www-apps/gitea/files/gitea.initd | 25 | ||||
-rw-r--r-- | www-apps/gitea/gitea-1.3.1.ebuild | 71 |
3 files changed, 0 insertions, 97 deletions
diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest index e2ef3a37d8e8..2359161d3fcd 100644 --- a/www-apps/gitea/Manifest +++ b/www-apps/gitea/Manifest @@ -1,2 +1 @@ -DIST gitea-1.3.1.tar.gz 14783710 BLAKE2B 20e333719aa1a670488046406dc942fd843fcb2ea92473006e255a6a8f2f00709bf87443a425302d0c73916260a5d2e7876e00233a3e1ceb657439ac3d7a4873 SHA512 45161e089d5437b5aacc9589a50a61da3a8f4c88edb33fe3605eb49f36f67cb0a8a80f261016745a6c5131755f7963b1b61df62e47aab2bcd43a6932dceadd0f DIST gitea-1.4.1.tar.gz 14978598 BLAKE2B 8fde79291b745750e79c944e7fcf938d2476ddaa386c1277f54bf315831eeb749507e270ca0a8a8351dd8fa60656bb98eb7c478a5c99f2ac20d350b6054339d5 SHA512 3b812bd61215230035ec9241e953f239981d04580d931f379aa550e11d2f7facd56bf70ac9e2d866224d341570a238bcc5c2fa71fd1432cfb95b8c8b703784e6 diff --git a/www-apps/gitea/files/gitea.initd b/www-apps/gitea/files/gitea.initd deleted file mode 100644 index 837164aa0140..000000000000 --- a/www-apps/gitea/files/gitea.initd +++ /dev/null @@ -1,25 +0,0 @@ -#!/sbin/openrc-run -# Copyright 2016-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -description="Gitea, a self-hosted Git service" -pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"} -user=${user:-git} -group=${group:-git} - -command="/usr/bin/gitea web" -command_args="${command_args:--config /var/lib/gitea/conf/app.ini}" -command_background="true" -start_stop_daemon_args="--user ${user} --group ${group} \ - -e GITEA_WORK_DIR=/var/lib/gitea - --stdout /var/log/${SVCNAME}/${SVCNAME}.log \ - --stderr /var/log/${SVCNAME}/${SVCNAME}.log" - -depend() { - need net - after net -} - -start_pre() { - checkpath -d -m 0755 -o "${user}":"${group}" "${pidfile%/*}" -} diff --git a/www-apps/gitea/gitea-1.3.1.ebuild b/www-apps/gitea/gitea-1.3.1.ebuild deleted file mode 100644 index 5f27f86c5d6c..000000000000 --- a/www-apps/gitea/gitea-1.3.1.ebuild +++ /dev/null @@ -1,71 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -inherit user golang-build golang-vcs-snapshot - -EGO_PN="code.gitea.io/gitea" -GIT_COMMIT="81fd8c8" -ARCHIVE_URI="https://github.com/go-gitea/gitea/archive/v${PV}.tar.gz -> ${P}.tar.gz" -KEYWORDS="~amd64 ~arm" - -DESCRIPTION="A painless self-hosted Git service, written in Go" -HOMEPAGE="https://github.com/go-gitea/gitea" -SRC_URI="${ARCHIVE_URI}" - -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 - local GITEA_PREFIX=${EPREFIX}/var/lib/gitea - sed -i -e "s/git rev-parse --short HEAD/echo ${GIT_COMMIT}/"\ - -e "s/\"main.Version.*$/\"main.Version=${PV}\"/"\ - -e "s/-ldflags '-s/-ldflags '/" src/${EGO_PN}/Makefile || die - sed -i -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = ${GITEA_PREFIX}/data#"\ - -e "s#^PATH = data/gitea.db#PATH = ${GITEA_PREFIX}/data/gitea.db#"\ - -e "s#^PROVIDER_CONFIG = data/sessions#PROVIDER_CONFIG = ${GITEA_PREFIX}/data/sessions#"\ - -e "s#^AVATAR_UPLOAD_PATH = data/avatars#AVATAR_UPLOAD_PATH = ${GITEA_PREFIX}/data/avatars#"\ - -e "s#^TEMP_PATH = data/tmp/uploads#TEMP_PATH = ${GITEA_PREFIX}/data/tmp/uploads#"\ - -e "s#^PATH = data/attachments#PATH = ${GITEA_PREFIX}/data/attachments#"\ - -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#"\ - -e "s#^ISSUE_INDEXER_PATH =#ISSUE_INDEXER_PATH = ${GITEA_PREFIX}/indexers/issues.bleve#"\ - src/${EGO_PN}/conf/app.ini || 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() { - pushd src/${EGO_PN} || die - dobin gitea - insinto /var/lib/gitea/conf - newins conf/app.ini app.ini.example - popd || die - insinto /etc/logrotate.d - newins "${FILESDIR}"/gitea.logrotated gitea - newinitd "${FILESDIR}"/gitea.initd gitea - newconfd "${FILESDIR}"/gitea.confd gitea - keepdir /var/log/gitea /var/lib/gitea/data - fowners -R git:git /var/log/gitea /var/lib/gitea/ -} - -pkg_postinst() { - if [[ ! -e ${EROOT}/var/lib/gitea/conf/app.ini ]]; then - elog "No app.ini found, copying the example over" - cp "${EROOT}"/var/lib/gitea/conf/app.ini{.example,} || die - else - elog "app.ini found, please check example file for possible changes" - fi -} |