aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/dcd/files
diff options
context:
space:
mode:
authorJean-Yves Lefort <jylefort@FreeBSD.org>2005-05-20 03:09:59 +0000
committerJean-Yves Lefort <jylefort@FreeBSD.org>2005-05-20 03:09:59 +0000
commit24ac553ca27136944cd45ab11364b37b52638927 (patch)
tree2edd544fdcf59e54048ddb88e6af987fc23635ee /net-p2p/dcd/files
parentc61b25f60a1e5dec9fb3046758d8e2fcd42c752f (diff)
downloadports-24ac553ca27136944cd45ab11364b37b52638927.tar.gz
ports-24ac553ca27136944cd45ab11364b37b52638927.zip
Notes
Diffstat (limited to 'net-p2p/dcd/files')
-rw-r--r--net-p2p/dcd/files/pkg-deinstall.in9
-rw-r--r--net-p2p/dcd/files/pkg-install.in7
2 files changed, 16 insertions, 0 deletions
diff --git a/net-p2p/dcd/files/pkg-deinstall.in b/net-p2p/dcd/files/pkg-deinstall.in
new file mode 100644
index 000000000000..19c51b8a3ad8
--- /dev/null
+++ b/net-p2p/dcd/files/pkg-deinstall.in
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+[ "$2" != "DEINSTALL" ] && exit 0
+
+for f in %%CONF_FILES%%; do
+ if cmp -s "%%CONF_DIR%%/$f" "%%CONF_DIR%%/$f.default"; then
+ rm -f "%%CONF_DIR%%/$f"
+ fi
+done
diff --git a/net-p2p/dcd/files/pkg-install.in b/net-p2p/dcd/files/pkg-install.in
new file mode 100644
index 000000000000..585a18d73eba
--- /dev/null
+++ b/net-p2p/dcd/files/pkg-install.in
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+[ "$2" != "POST-INSTALL" ] && exit 0
+
+for f in %%CONF_FILES%%; do
+ [ -f "%%CONF_DIR%%/$f" ] || cp -p "%%CONF_DIR%%/$f.default" "%%CONF_DIR%%/$f"
+done