summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2011-09-14 11:37:04 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2011-09-14 11:37:04 +0000
commit67ca0f652a4d0faa0e285f3af354d69e5b567136 (patch)
tree99bfc65b47b2e0e72da93d421a1d68224e8c7136 /net-proxy/ufdbguard
parentFix building with libpng15 wrt #381413 by Diego Elio Pettenò (diff)
downloadgentoo-2-67ca0f652a4d0faa0e285f3af354d69e5b567136.tar.gz
gentoo-2-67ca0f652a4d0faa0e285f3af354d69e5b567136.tar.bz2
gentoo-2-67ca0f652a4d0faa0e285f3af354d69e5b567136.zip
Do not use bashism to reload ufdbGuard; use the new extra_started_commands variable instead of opts.
(Portage version: 2.2.0_alpha56/cvs/Linux x86_64)
Diffstat (limited to 'net-proxy/ufdbguard')
-rw-r--r--net-proxy/ufdbguard/ChangeLog6
-rw-r--r--net-proxy/ufdbguard/files/ufdb.initd6
2 files changed, 8 insertions, 4 deletions
diff --git a/net-proxy/ufdbguard/ChangeLog b/net-proxy/ufdbguard/ChangeLog
index 5a4ea6d09999..5cb9486464d3 100644
--- a/net-proxy/ufdbguard/ChangeLog
+++ b/net-proxy/ufdbguard/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-proxy/ufdbguard
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/ufdbguard/ChangeLog,v 1.19 2011/09/06 10:03:37 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/ufdbguard/ChangeLog,v 1.20 2011/09/14 11:37:04 flameeyes Exp $
+
+ 14 Sep 2011; Diego E. Pettenò <flameeyes@gentoo.org> files/ufdb.initd:
+ Do not use bashism to reload ufdbGuard; use the new extra_started_commands
+ variable instead of opts.
06 Sep 2011; Diego E. Pettenò <flameeyes@gentoo.org>
ufdbguard-1.24-r1.ebuild, ufdbguard-1.26.ebuild, files/ufdb.initd:
diff --git a/net-proxy/ufdbguard/files/ufdb.initd b/net-proxy/ufdbguard/files/ufdb.initd
index 19ec14f1ca21..1ad58e89e470 100644
--- a/net-proxy/ufdbguard/files/ufdb.initd
+++ b/net-proxy/ufdbguard/files/ufdb.initd
@@ -1,11 +1,11 @@
#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/ufdbguard/files/ufdb.initd,v 1.3 2011/09/06 10:03:38 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/ufdbguard/files/ufdb.initd,v 1.4 2011/09/14 11:37:04 flameeyes Exp $
# reconfig is what the upstream documentation suggests, so let's
# provide it for compatibility.
-opts="${opts} reload reconfig"
+extra_started_commands="reload reconfig"
depend() {
need net
@@ -74,7 +74,7 @@ reload() {
gentables
ebegin "Reloading ufdbGuard"
- kill -HUP $(</var/run/ufdbguard/ufdbguardd.pid)
+ kill -HUP "$(cat /var/run/ufdbguard/ufdbguardd.pid)"
eend $? "Failed to reload ufdbGuard"
}