Variable CONF_FILES is changed to LOCAL_CONF_FILES.

PR:		ports/90457
Submitted by:	maintainer
Approved by:	sem(mentor)
This commit is contained in:
Andrey Slusar 2005-12-16 15:22:05 +00:00
parent 00f2aeb4de
commit c557ae2d1b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=151328
3 changed files with 4 additions and 4 deletions

View file

@ -28,7 +28,7 @@ CONFIGURE_ARGS= --with-lynx=${LOCALBASE}/bin/lynx
USE_PERL5= yes
USE_PYTHON= yes
CONF_FILES= epylog.conf \
LOCAL_CONF_FILES= epylog.conf \
modules.d/logins.conf \
modules.d/mail.conf \
modules.d/notices.conf \
@ -40,7 +40,7 @@ CONF_FILES= epylog.conf \
weed_local.cf
SUB_FILES= pkg-install pkg-deinstall
SUB_LIST= CONF_FILES="${CONF_FILES}"
SUB_LIST= LOCAL_CONF_FILES="${LOCAL_CONF_FILES}"
post-patch:
@${REINPLACE_CMD} -e 's|$$sysconfdir/cron\.daily|$$sysconfdir/epylog|' \

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 "${PKG_PREFIX}/etc/epylog/$f" "${PKG_PREFIX}/etc/epylog/$f.default"; then
rm -f "${PKG_PREFIX}/etc/epylog/$f"
fi

View file

@ -2,7 +2,7 @@
[ "$2" != "POST-INSTALL" ] && exit 0
for f in %%CONF_FILES%%; do
for f in %%LOCAL_CONF_FILES%%; do
if ! [ -f "${PKG_PREFIX}/etc/epylog/$f" ]; then
cp -p "${PKG_PREFIX}/etc/epylog/$f.default" "${PKG_PREFIX}/etc/epylog/$f"
fi