From 064e0a87ac641068af11484f7de49d42685c6ee4 Mon Sep 17 00:00:00 2001 From: Kevin Pulo Date: Thu, 13 May 2010 01:00:23 +0200 Subject: network/tinyproxy: Added to 13.0 repository --- network/tinyproxy/doinst.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 network/tinyproxy/doinst.sh (limited to 'network/tinyproxy/doinst.sh') diff --git a/network/tinyproxy/doinst.sh b/network/tinyproxy/doinst.sh new file mode 100644 index 000000000000..4eec76f8dc07 --- /dev/null +++ b/network/tinyproxy/doinst.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +config etc/tinyproxy.conf.new + -- cgit v1.2.3