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:
parent
83afe8d896
commit
e788b79945
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=275160
@ -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 \
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user