summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Pielmeier <billie@gentoo.org>2010-04-22 17:11:25 +0000
committerDaniel Pielmeier <billie@gentoo.org>2010-04-22 17:11:25 +0000
commit65760f1e7220c45e1fec4019f5ea6ddaddc33871 (patch)
tree4fa6edf56934fcd6d9c994e583e5c85a807e1378 /www-misc/vdradmin-am
parentremove now unrequired mask, new version is in stable (diff)
downloadhistorical-65760f1e7220c45e1fec4019f5ea6ddaddc33871.tar.gz
historical-65760f1e7220c45e1fec4019f5ea6ddaddc33871.tar.bz2
historical-65760f1e7220c45e1fec4019f5ea6ddaddc33871.zip
Let the init script create all needed directories under /var in case they are missing. Thanks to Helmut Auer in bug #316625.
Package-Manager: portage-2.1.8.3/cvs/Linux i686
Diffstat (limited to 'www-misc/vdradmin-am')
-rw-r--r--www-misc/vdradmin-am/ChangeLog7
-rw-r--r--www-misc/vdradmin-am/Manifest4
-rw-r--r--www-misc/vdradmin-am/files/vdradmin-3.6.6.init14
3 files changed, 17 insertions, 8 deletions
diff --git a/www-misc/vdradmin-am/ChangeLog b/www-misc/vdradmin-am/ChangeLog
index 1bdddd3f5a32..dbdce079041f 100644
--- a/www-misc/vdradmin-am/ChangeLog
+++ b/www-misc/vdradmin-am/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for www-misc/vdradmin-am
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-misc/vdradmin-am/ChangeLog,v 1.8 2010/04/11 17:22:39 billie Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-misc/vdradmin-am/ChangeLog,v 1.9 2010/04/22 17:11:25 billie Exp $
+
+ 22 Apr 2010; Daniel Pielmeier <billie@gentoo.org>
+ files/vdradmin-3.6.6.init:
+ Let the init script create all needed directories under /var in case they
+ are missing. Thanks to Helmut Auer in bug #316625.
*vdradmin-am-3.6.7 (11 Apr 2010)
diff --git a/www-misc/vdradmin-am/Manifest b/www-misc/vdradmin-am/Manifest
index 6527b4ef5b55..4cfd2d147abf 100644
--- a/www-misc/vdradmin-am/Manifest
+++ b/www-misc/vdradmin-am/Manifest
@@ -1,6 +1,6 @@
AUX confd-2 295 RMD160 292ac9960158dc09b5c31adf85b49c29a5f2ca1b SHA1 07f5964bb3eaa0962d37ae7af0d049246cdb4ac5 SHA256 87d9c7449946c2724e0ddeb4de7c2eeee492b99f813131e47dafd9e860f8649f
AUX vdradmin-3.6.6.conf 512 RMD160 a293a685c79a3f0fd7eb8c82662d789a3089d2bf SHA1 38ad0d0a7c7c5eefb1b063d2f881720df4462bb8 SHA256 7621749f8bc17b44c036a8f7b592be8fef18e21ce44c4ca2719cf7fb28258df4
-AUX vdradmin-3.6.6.init 1955 RMD160 274b9b7c3126bf862979e6a6f19fa896a10dd091 SHA1 1b638b66de1152cc683692b245eece0660b69bfb SHA256 dfedc67f728b0275c095d64975754e230c10859089270b55860888fec9a4977c
+AUX vdradmin-3.6.6.init 1959 RMD160 2a4266e43687d785789494dda40503d3744693d3 SHA1 f6e045cf76484c1385dc2bf71999506780f16a60 SHA256 ff747908e4bbd93502b17c5547d5436363d9d799c48eb7257de7897a5e7e9688
AUX vdradmin-3.6.6.logrotate 116 RMD160 bf4e29e03b515306521a9e5c8e20445622ff4ea0 SHA1 99d26a22124c7d3821b4871fc3aa5914b90b97c0 SHA256 2eb705ff7ab186d2a0287d3e91afe7d59be39f896fd9a62d875d8f13db1312af
AUX vdradmin-4 1233 RMD160 69642b2cd806403bc35c5793320c69e9667e47b7 SHA1 f0ae719ac48d2f5a6b28fcf881546a6508297dd1 SHA256 a2389c1f3ba47885a2711c407b876c067b3a2867fbcddc4c05fc54d9eadf08e3
AUX vdradmin-am-config-autoflush.diff 654 RMD160 f6d0a31c424c6a45d8786d2b98e9872e5e3ded5f SHA1 1a4b61fa0c218cecffb6530cabe5c59577b1df67 SHA256 1687001c6114cb373643982fb73a78e7656c70d253e9ff0d89b7ed466133f950
@@ -10,5 +10,5 @@ DIST vdradmin-am-3.6.7.tar.bz2 545850 RMD160 d48dea7caf30716d2dac4132612160d1c35
EBUILD vdradmin-am-3.6.4-r1.ebuild 4870 RMD160 610d40fe6e8373fc43a592d65226d31d6c61458f SHA1 bbe9d3c8bda17f8537c5eb6dd18ded292ed5d616 SHA256 fade8f6f14a37749581b40c87dec4564e09f51927df7c1dc50512fd3d529b48c
EBUILD vdradmin-am-3.6.6.ebuild 4450 RMD160 64fa092f6463cccc7f4bae53deb7bad502ee1ae7 SHA1 c955d2481a4fbe584c6d34d0934e02d6f28467fd SHA256 5a07eb2b4ebacd8e6425860dcc99b5fa1a6368bfbfb911a14e3b5f6fbf960fcb
EBUILD vdradmin-am-3.6.7.ebuild 4450 RMD160 da57a0ffd9e590a38518252ef34a7ee4f8f2a88f SHA1 adacc23ebbad141ddb969d2ab0e175764ef659a0 SHA256 9049cea9485f7a84f858b651b797ebb0ae5d0b69151266081a0a7bd954032418
-MISC ChangeLog 8081 RMD160 463e4bb2e42ca7263f4e53f3e437a40eb6e1fb79 SHA1 9a7ec15dd71d605c73ba42fc648b063c6eb0f082 SHA256 fc81ae270ce21a451ce18aaf8119b6dc851f653064ae3db3ed164a46d42a051d
+MISC ChangeLog 8292 RMD160 5ed56b0ae91553ab2acf1a9ca61d07306ebebb1a SHA1 8465ec8c9414136446fd1172de6fe2a91253b009 SHA256 861cd96aa4a6905d8b454739afc41111bb8ea14e98392fa4806e343ce787bb95
MISC metadata.xml 748 RMD160 ce0254901737f368bfeb829b70d30c271c25bf14 SHA1 0ba36d4140d383486008e64ac7b9c84ce4c73cc6 SHA256 eb1d48cf2b7dfb0b9810fb1ce3c76fdd25c00fd1e4a93dfdf4b89b04f8024470
diff --git a/www-misc/vdradmin-am/files/vdradmin-3.6.6.init b/www-misc/vdradmin-am/files/vdradmin-3.6.6.init
index 2d689c803ca9..8082613f6bdb 100644
--- a/www-misc/vdradmin-am/files/vdradmin-3.6.6.init
+++ b/www-misc/vdradmin-am/files/vdradmin-3.6.6.init
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/www-misc/vdradmin-am/files/vdradmin-3.6.6.init,v 1.1 2010/03/16 17:18:47 billie Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-misc/vdradmin-am/files/vdradmin-3.6.6.init,v 1.2 2010/04/22 17:11:25 billie Exp $
depend() {
use vdr
@@ -29,11 +29,15 @@ start() {
sed -i -e "/LOGGING/s-LOGGING.*-LOGGING = 0-" /etc/vdradmin/vdradmind.conf
fi
- # Guarantee that vdradmin can access its dirs
- chown -R "${VDRADMIN_USER}:vdradmin" /var/cache/vdradmin
- chown -R "${VDRADMIN_USER}:vdradmin" /var/log/vdradmin
- chown -R "${VDRADMIN_USER}:vdradmin" /var/run/vdradmin
+ # Prepare directories
+ local folder
chown -R "${VDRADMIN_USER}:vdradmin" /etc/vdradmin
+ for folder in cache log run; do
+ if [ ! -d /var/${folder}/vdradmin ]; then
+ mkdir /var/${folder}/vdradmin
+ fi
+ chown -R "${VDRADMIN_USER}:vdradmin" /var/${folder}/vdradmin
+ done
if [ -x /etc/init.d/root ]; then
# running on baselayout-2/openrc