diff options
author | Jean-Yves Lefort <jylefort@FreeBSD.org> | 2005-05-20 03:09:59 +0000 |
---|---|---|
committer | Jean-Yves Lefort <jylefort@FreeBSD.org> | 2005-05-20 03:09:59 +0000 |
commit | 24ac553ca27136944cd45ab11364b37b52638927 (patch) | |
tree | 2edd544fdcf59e54048ddb88e6af987fc23635ee /net-p2p/dcd/files | |
parent | c61b25f60a1e5dec9fb3046758d8e2fcd42c752f (diff) | |
download | ports-24ac553ca27136944cd45ab11364b37b52638927.tar.gz ports-24ac553ca27136944cd45ab11364b37b52638927.zip |
Notes
Diffstat (limited to 'net-p2p/dcd/files')
-rw-r--r-- | net-p2p/dcd/files/pkg-deinstall.in | 9 | ||||
-rw-r--r-- | net-p2p/dcd/files/pkg-install.in | 7 |
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 |