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)
This commit is contained in:
Rene Ladan
2011-06-06 21:35:44 +00:00
parent 83afe8d896
commit e788b79945
3 changed files with 3 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ CONF_DIR= ${PREFIX}/etc/${PORTNAME}
LOCAL_CONF_FILES= appdefs.resp appdefs.rpc appdefs.trig
SUB_FILES= pkg-install pkg-deinstall
SUB_LIST= CONF_FILES="${LOCAL_CONF_FILES}" CONF_DIR="${CONF_DIR}"
SUB_LIST= LOCAL_CONF_FILES="${LOCAL_CONF_FILES}" CONF_DIR="${CONF_DIR}"
post-patch:
@${REINPLACE_CMD} -e \

View File

@@ -2,7 +2,7 @@
[ "$2" != "DEINSTALL" ] && exit 0
for f in %%CONF_FILES%%; do
for f in %%LOCAL_CONF_FILES%%; do
if cmp -s "%%CONF_DIR%%/$f" "%%CONF_DIR%%/$f.default"; then
rm -f "%%CONF_DIR%%/$f"
fi

View File

@@ -2,6 +2,6 @@
[ "$2" != "POST-INSTALL" ] && exit 0
for f in %%CONF_FILES%%; do
for f in %%LOCAL_CONF_FILES%%; do
[ -f "%%CONF_DIR%%/$f" ] || cp -p "%%CONF_DIR%%/$f.default" "%%CONF_DIR%%/$f"
done