summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2017-03-19 22:35:00 +0100
committerManuel Rüger <mrueg@gentoo.org>2017-03-19 22:35:00 +0100
commited4c5e042ca8fc47a8e9df6e044e697bad7fa52c (patch)
treeb3f034fd7dcbf699afef26b693bba09d7b224838 /www-apps
parentwww-apps/gitea: Fix path in config file (diff)
downloadgentoo-ed4c5e042ca8fc47a8e9df6e044e697bad7fa52c.tar.gz
gentoo-ed4c5e042ca8fc47a8e9df6e044e697bad7fa52c.tar.bz2
gentoo-ed4c5e042ca8fc47a8e9df6e044e697bad7fa52c.zip
www-apps/gitea: Remove old
Package-Manager: Portage-2.3.5, Repoman-2.3.1
Diffstat (limited to 'www-apps')
-rw-r--r--www-apps/gitea/gitea-1.1.0.ebuild69
1 files changed, 0 insertions, 69 deletions
diff --git a/www-apps/gitea/gitea-1.1.0.ebuild b/www-apps/gitea/gitea-1.1.0.ebuild
deleted file mode 100644
index e8872dc782e1..000000000000
--- a/www-apps/gitea/gitea-1.1.0.ebuild
+++ /dev/null
@@ -1,69 +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="1d65291"
-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/^LDFLAGS += -X \"main.Version.*$/LDFLAGS += -X \"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#" 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
-}