diff options
author | Alin Năstac <mrness@gentoo.org> | 2005-12-08 22:15:11 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2005-12-08 22:15:11 +0000 |
commit | 377f7636d23167b6e83ddaaf2dd04b7f983def5e (patch) | |
tree | 81faed4fea65b17a46cb86e9690ffac7f71f8e18 /net-proxy/dansguardian/files | |
parent | Stable on x86; bug #114569 (diff) | |
download | historical-377f7636d23167b6e83ddaaf2dd04b7f983def5e.tar.gz historical-377f7636d23167b6e83ddaaf2dd04b7f983def5e.tar.bz2 historical-377f7636d23167b6e83ddaaf2dd04b7f983def5e.zip |
Fix init script dependencies (#114511). Improve logrotate file.
Package-Manager: portage-2.0.51.22-r3
Diffstat (limited to 'net-proxy/dansguardian/files')
4 files changed, 52 insertions, 3 deletions
diff --git a/net-proxy/dansguardian/files/dansguardian-2.8.0.6-gentoo.patch b/net-proxy/dansguardian/files/dansguardian-2.8.0.6-gentoo.patch new file mode 100644 index 000000000000..0728137fd58f --- /dev/null +++ b/net-proxy/dansguardian/files/dansguardian-2.8.0.6-gentoo.patch @@ -0,0 +1,24 @@ +diff -Nru dansguardian-2.8.0.6.orig/configure dansguardian-2.8.0.6/configure +--- dansguardian-2.8.0.6.orig/configure 2005-08-14 02:47:57.000000000 +0300 ++++ dansguardian-2.8.0.6/configure 2005-12-08 23:52:35.449154000 +0200 +@@ -37,7 +37,7 @@ + prefixdir='' + installprefixdir='' + sysconfdir='/etc/dansguardian/' +-sysvdir='/etc/rc.d/init.d/' ++sysvdir='/etc/init.d/' + cgidir='/var/www/cgi-bin/' + runas_usr='nobody' + runas_grp='nobody' +diff -Nru dansguardian-2.8.0.6.orig/dansguardian.8 dansguardian-2.8.0.6/dansguardian.8 +--- dansguardian-2.8.0.6.orig/dansguardian.8 2005-08-14 02:47:57.000000000 +0300 ++++ dansguardian-2.8.0.6/dansguardian.8 2005-12-08 23:52:57.106507500 +0200 +@@ -3,7 +3,7 @@ + .SH NAME + DansGuardian 2 + .SH SYNOPSIS +-/etc/rc.d/init.d/dansguardian [stop|start|status|restart] ++/etc/init.d/dansguardian [stop|start|status|restart|reload] + .SH DESCRIPTION + A Introduction + diff --git a/net-proxy/dansguardian/files/dansguardian.init b/net-proxy/dansguardian/files/dansguardian.init index 0c27c771d30f..c7b2438b5c17 100644 --- a/net-proxy/dansguardian/files/dansguardian.init +++ b/net-proxy/dansguardian/files/dansguardian.init @@ -1,11 +1,15 @@ #!/sbin/runscript -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/dansguardian/files/dansguardian.init,v 1.1 2005/04/22 19:15:11 mrness Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-proxy/dansguardian/files/dansguardian.init,v 1.2 2005/12/08 22:15:11 mrness Exp $ + +opts="${opts} reload" depend() { need net - after squid + use dns \ + squid apache2 bfilter mman junkbuster oops polipo privoxy tinyproxy wwwoffled + #dansguardian could be used in conjuction with any of the above web proxies } start() { @@ -20,3 +24,9 @@ stop() { start-stop-daemon --stop --quiet --pidfile /var/run/dansguardian.pid eend $? } + +reload() { + ebegin "Reloading DansGuardian" + /usr/sbin/dansguardian -g + eend $? +} diff --git a/net-proxy/dansguardian/files/dansguardian.logrotate b/net-proxy/dansguardian/files/dansguardian.logrotate new file mode 100644 index 000000000000..2fe8ad51204b --- /dev/null +++ b/net-proxy/dansguardian/files/dansguardian.logrotate @@ -0,0 +1,14 @@ +/var/log/dansguardian/access.log { + rotate 4 + weekly + missingok + notifempty + nocreate + nocopy + nocopytruncate + nocompress + + postrotate + /usr/sbin/dansguardian -r + endscript +} diff --git a/net-proxy/dansguardian/files/digest-dansguardian-2.8.0.6-r1 b/net-proxy/dansguardian/files/digest-dansguardian-2.8.0.6-r1 new file mode 100644 index 000000000000..5acffb70cbf4 --- /dev/null +++ b/net-proxy/dansguardian/files/digest-dansguardian-2.8.0.6-r1 @@ -0,0 +1 @@ +MD5 aa619607198f37a528dbb65e4a503beb dansguardian-2.8.0.6.source.tar.gz 212737 |