From 6146efd5bc11cf00dcbdf93fd1fffaf5d1d25fa1 Mon Sep 17 00:00:00 2001 From: David Somero Date: Tue, 11 May 2010 22:54:42 +0200 Subject: network/dansguardian: Added to 12.1 repository --- network/dansguardian/doinst.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 network/dansguardian/doinst.sh (limited to 'network/dansguardian/doinst.sh') diff --git a/network/dansguardian/doinst.sh b/network/dansguardian/doinst.sh new file mode 100644 index 0000000000..70cb2a098c --- /dev/null +++ b/network/dansguardian/doinst.sh @@ -0,0 +1,17 @@ +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + rm $NEW + fi +} + +# Keep same perms on rc.dansguardian.new: +if [ -e etc/rc.d/rc.dansguardian ]; then + cp -a etc/rc.d/rc.dansguardian etc/rc.d/rc.dansguardian.new.incoming + cat etc/rc.d/rc.dansguardian.new > etc/rc.d/rc.dansguardian.new.incoming + mv etc/rc.d/rc.dansguardian.new.incoming etc/rc.d/rc.dansguardian.new +fi + -- cgit v1.2.3