diff options
author | jylefort <jylefort@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-05-18 23:18:22 +0800 |
---|---|---|
committer | jylefort <jylefort@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-05-18 23:18:22 +0800 |
commit | a26881be5a30de8c973503fa11ee8b2e7c173a0d (patch) | |
tree | 93bbc81a2a6a659b2c5085d626eea1be6bf7176e /sysutils/hal/files/pkg-deinstall.in | |
parent | 399e1f06cef3941ffc7dc4a6e8763bb328b5ddc1 (diff) | |
download | marcuscom-ports-a26881be5a30de8c973503fa11ee8b2e7c173a0d.tar marcuscom-ports-a26881be5a30de8c973503fa11ee8b2e7c173a0d.tar.gz marcuscom-ports-a26881be5a30de8c973503fa11ee8b2e7c173a0d.tar.bz2 marcuscom-ports-a26881be5a30de8c973503fa11ee8b2e7c173a0d.tar.lz marcuscom-ports-a26881be5a30de8c973503fa11ee8b2e7c173a0d.tar.xz marcuscom-ports-a26881be5a30de8c973503fa11ee8b2e7c173a0d.tar.zst marcuscom-ports-a26881be5a30de8c973503fa11ee8b2e7c173a0d.zip |
Fix packing list and preserve .privilege file changes across updates.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6296 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'sysutils/hal/files/pkg-deinstall.in')
-rw-r--r-- | sysutils/hal/files/pkg-deinstall.in | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sysutils/hal/files/pkg-deinstall.in b/sysutils/hal/files/pkg-deinstall.in new file mode 100644 index 000000000..96f8e9f91 --- /dev/null +++ b/sysutils/hal/files/pkg-deinstall.in @@ -0,0 +1,12 @@ +#!/bin/sh + +[ "$2" != DEINSTALL ] && exit 0 + +for pair in %%RC_FILES%%; do + file=`echo $pair | cut -f 1 -d :` + destdir=`echo $pair | cut -f 2 -d :` + + if cmp -s %%DATADIR%%/dist/$file $destdir/$file; then + rm -f $destdir/$file + fi +done |