Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/, www-apps/gitea/files/
Date: Sun, 25 Dec 2016 21:06:09
Message-Id: 1482699950.0fefadf11c8c0028f95fed9c2fa9dfdbf0fd8f24.mrueg@gentoo
1 commit: 0fefadf11c8c0028f95fed9c2fa9dfdbf0fd8f24
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 25 21:05:50 2016 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 25 21:05:50 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0fefadf1
7
8 www-apps/gitea: Use git user by default
9
10 Package-Manager: portage-2.3.3
11
12 www-apps/gitea/files/gitea.logrotated | 2 +-
13 www-apps/gitea/{gitea-1.0.0-r1.ebuild => gitea-1.0.0-r2.ebuild} | 9 ++++-----
14 2 files changed, 5 insertions(+), 6 deletions(-)
15
16 diff --git a/www-apps/gitea/files/gitea.logrotated b/www-apps/gitea/files/gitea.logrotated
17 index 4ddfdf0..ec6ddfe 100644
18 --- a/www-apps/gitea/files/gitea.logrotated
19 +++ b/www-apps/gitea/files/gitea.logrotated
20 @@ -1,5 +1,5 @@
21 /var/log/gitea/* {
22 - su gitea gitea
23 + su git git
24 missingok
25 size 5M
26 rotate 3
27
28 diff --git a/www-apps/gitea/gitea-1.0.0-r1.ebuild b/www-apps/gitea/gitea-1.0.0-r2.ebuild
29 similarity index 89%
30 rename from www-apps/gitea/gitea-1.0.0-r1.ebuild
31 rename to www-apps/gitea/gitea-1.0.0-r2.ebuild
32 index 8283d50..ca6a3eb 100644
33 --- a/www-apps/gitea/gitea-1.0.0-r1.ebuild
34 +++ b/www-apps/gitea/gitea-1.0.0-r2.ebuild
35 @@ -22,8 +22,8 @@ DEPEND="dev-go/go-bindata"
36 RDEPEND="dev-vcs/git"
37
38 pkg_setup() {
39 - enewgroup gitea
40 - enewuser gitea -1 /bin/bash /var/lib/gitea gitea
41 + enewgroup git
42 + enewuser git -1 /bin/bash /var/lib/gitea git
43 }
44
45 src_prepare() {
46 @@ -32,8 +32,7 @@ src_prepare() {
47 sed -i -e "s/git rev-parse --short HEAD/echo ${EGIT_COMMIT:0:7}/"\
48 -e "s/^LDFLAGS += -X \"main.Version.*$/LDFLAGS += -X \"main.Version=${PV}\"/"\
49 -e "s/-ldflags '-s/-ldflags '/" src/${EGO_PN%/*}/Makefile || die
50 - sed -i -e "s#RUN_USER = git#RUN_USER = gitea#"\
51 - -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = ${GITEA_PREFIX}/data#"\
52 + sed -i -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = ${GITEA_PREFIX}/data#"\
53 -e "s#^PATH = data/gitea.db#PATH = ${GITEA_PREFIX}/data/gitea.db#"\
54 -e "s#^PROVIDER_CONFIG = data/sessions#PROVIDER_CONFIG = ${GITEA_PREFIX}/data/sessions#"\
55 -e "s#^AVATAR_UPLOAD_PATH = data/avatars#AVATAR_UPLOAD_PATH = ${GITEA_PREFIX}/data/avatars#"\
56 @@ -58,5 +57,5 @@ src_install() {
57 newinitd "${FILESDIR}"/gitea.initd gitea
58 newconfd "${FILESDIR}"/gitea.confd gitea
59 keepdir /var/log/gitea /var/lib/gitea/data
60 - fowners -R gitea:gitea /var/log/gitea /var/lib/gitea/
61 + fowners -R git:git /var/log/gitea /var/lib/gitea/
62 }