summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2012-08-20 00:32:23 +0000
committerJeroen Roovers <jer@gentoo.org>2012-08-20 00:32:23 +0000
commitd104f8a9cd0184b0b95e156b6a5aed88a9ce212c (patch)
tree76d764700063503cda829e51527099b7ac55aa4c /net-misc/apt-cacher-ng
parentOld. (diff)
downloadgentoo-2-d104f8a9cd0184b0b95e156b6a5aed88a9ce212c.tar.gz
gentoo-2-d104f8a9cd0184b0b95e156b6a5aed88a9ce212c.tar.bz2
gentoo-2-d104f8a9cd0184b0b95e156b6a5aed88a9ce212c.zip
Do not keep /var/run subdirectory but create it as needed, and replace --chuid with --user, by Marien Zwart (bug #431980).
(Portage version: 2.2.0_alpha121/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/apt-cacher-ng')
-rw-r--r--net-misc/apt-cacher-ng/ChangeLog9
-rw-r--r--net-misc/apt-cacher-ng/apt-cacher-ng-0.7.7-r1.ebuild (renamed from net-misc/apt-cacher-ng/apt-cacher-ng-0.7.7.ebuild)6
-rw-r--r--net-misc/apt-cacher-ng/files/initd7
3 files changed, 14 insertions, 8 deletions
diff --git a/net-misc/apt-cacher-ng/ChangeLog b/net-misc/apt-cacher-ng/ChangeLog
index ebf1906c49e6..c6c7d6c254eb 100644
--- a/net-misc/apt-cacher-ng/ChangeLog
+++ b/net-misc/apt-cacher-ng/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-misc/apt-cacher-ng
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/apt-cacher-ng/ChangeLog,v 1.14 2012/08/07 00:04:48 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/apt-cacher-ng/ChangeLog,v 1.15 2012/08/20 00:32:23 jer Exp $
+
+*apt-cacher-ng-0.7.7-r1 (20 Aug 2012)
+
+ 20 Aug 2012; Jeroen Roovers <jer@gentoo.org> -apt-cacher-ng-0.7.7.ebuild,
+ +apt-cacher-ng-0.7.7-r1.ebuild, files/initd:
+ Do not keep /var/run subdirectory but create it as needed, and replace
+ --chuid with --user, by Marien Zwart (bug #431980).
*apt-cacher-ng-0.7.7 (06 Aug 2012)
diff --git a/net-misc/apt-cacher-ng/apt-cacher-ng-0.7.7.ebuild b/net-misc/apt-cacher-ng/apt-cacher-ng-0.7.7-r1.ebuild
index 684b89880943..54388b947a11 100644
--- a/net-misc/apt-cacher-ng/apt-cacher-ng-0.7.7.ebuild
+++ b/net-misc/apt-cacher-ng/apt-cacher-ng-0.7.7-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/apt-cacher-ng/apt-cacher-ng-0.7.7.ebuild,v 1.1 2012/08/07 00:04:48 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/apt-cacher-ng/apt-cacher-ng-0.7.7-r1.ebuild,v 1.1 2012/08/20 00:32:23 jer Exp $
EAPI="4"
@@ -101,10 +101,8 @@ src_install() {
dodir /var/log/${PN}
# Some directories must exists
keepdir /var/log/${PN}
- keepdir /var/run/${PN}
fowners -R ${PN}:${PN} \
/etc/${PN} \
/var/log/${PN} \
- /var/cache/${PN} \
- /var/run/${PN}
+ /var/cache/${PN}
}
diff --git a/net-misc/apt-cacher-ng/files/initd b/net-misc/apt-cacher-ng/files/initd
index c7df24365095..00a869ee4425 100644
--- a/net-misc/apt-cacher-ng/files/initd
+++ b/net-misc/apt-cacher-ng/files/initd
@@ -1,7 +1,7 @@
#!/sbin/runscript
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/apt-cacher-ng/files/initd,v 1.1 2011/05/24 21:48:33 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/apt-cacher-ng/files/initd,v 1.2 2012/08/20 00:32:23 jer Exp $
NAME="apt-cacher-ng"
DAEMON="/usr/sbin/$NAME"
@@ -16,8 +16,9 @@ depend() {
start() {
ebegin "Starting $NAME"
+ checkpath -d -m 0755 -o ${NAME}:${NAME} ${RUNDIR}
start-stop-daemon --start --exec $DAEMON \
- --chuid $NAME --group $NAME \
+ --user $NAME --group $NAME \
--pidfile $PIDFILE \
-- $DAEMON_OPTS
eend $?