freebsd-ports/security/amap/files/pkg-deinstall.in
Rene Ladan e788b79945 Rename a CONF_FILES variable to LOCAL_CONF_FILES, the former will be
introduced to bsd.port.mk

PR:		ports/157160
Submitted by:	Chris Rees [utisoft gmail com]
Approved by:	maintainer timeout (20 days)
2011-06-06 21:35:44 +00:00

9 lines
181 B
Bash

#!/bin/sh
[ "$2" != "DEINSTALL" ] && exit 0
for f in %%LOCAL_CONF_FILES%%; do
if cmp -s "%%CONF_DIR%%/$f" "%%CONF_DIR%%/$f.default"; then
rm -f "%%CONF_DIR%%/$f"
fi
done