mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
- Fix pkg-plist
- Remove user/group if PACKAGE_BUILDING or BATCH Reported by: pointyhat via erwin
This commit is contained in:
parent
2994598928
commit
1f563de146
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=205169
@ -10,11 +10,19 @@ GROUP=${USER}
|
||||
echo ""
|
||||
|
||||
if pw usershow "${USER}" 2>/dev/null 1>&2; then
|
||||
echo "To delete the netdisco user permanently, use 'pw userdel ${USER}'."
|
||||
if [ -z "${PACKAGE_BUILDING}" -a -z "${BATCH}" ]; then
|
||||
echo "To delete the netdisco user permanently, use 'pw userdel ${USER}'."
|
||||
else
|
||||
pw userdel ${USER}
|
||||
fi
|
||||
fi
|
||||
|
||||
if pw groupshow "${GROUP}" 2>/dev/null 1>&2; then
|
||||
echo "To delete the netdisco group permanently, use 'pw groupdel ${GROUP}'."
|
||||
if [ -z "${PACKAGE_BUILDING}" -a -z "${BATCH}" ]; then
|
||||
echo "To delete the netdisco group permanently, use 'pw groupdel ${GROUP}'."
|
||||
else
|
||||
pw groupdel ${USER}
|
||||
fi
|
||||
fi
|
||||
|
||||
TMPDIR=${TMPDIR:=/tmp}
|
||||
|
@ -1258,21 +1258,21 @@ bin/port_control
|
||||
%%WWWDIR%%/traceroute.html
|
||||
%%WWWDIR%%/valid-html401.png
|
||||
%%WWWDIR%%/vcss.gif
|
||||
@unexec d="%D/etc/netdisco"; f="netdisco.conf"; if cmp -s ${d}/${f}.sample ${d}/${f}; then rm -f ${d}/${f}; fi;
|
||||
etc/netdisco/netdisco.conf.sample
|
||||
@exec if [ ! -f %D/etc/netdisco/netdisco.conf ] ; then cp -p %D/etc/netdisco/netdisco.conf.sample %D/etc/netdisco/netdisco.conf; fi
|
||||
@unexec d="%D/etc/netdisco"; f="netdisco.conf"; if cmp -s ${d}/${f}.sample ${d}/${f}; then rm -f ${d}/${f}; fi;
|
||||
@unexec d="%D/etc/netdisco"; f="netdisco-topology.txt"; if cmp -s ${d}/${f}.sample ${d}/${f}; then rm -f ${d}/${f}; fi;
|
||||
etc/netdisco/netdisco-topology.txt.sample
|
||||
@exec if [ ! -f %D/etc/netdisco/netdisco-topology.txt ] ; then cp -p %D/etc/netdisco/netdisco-topology.txt.sample %D/etc/netdisco/netdisco-topology.txt; fi
|
||||
@unexec d="%D/etc/netdisco"; f="netdisco-topology.txt"; if cmp -s ${d}/${f}.sample ${d}/${f}; then rm -f ${d}/${f}; fi;
|
||||
@unexec d="%D/etc/netdisco"; f="netdisco.crontab"; if cmp -s ${d}/${f}.sample ${d}/${f}; then rm -f ${d}/${f}; fi;
|
||||
etc/netdisco/netdisco.crontab.sample
|
||||
@exec if [ ! -f %D/etc/netdisco/netdisco.crontab ] ; then cp -p %D/etc/netdisco/netdisco.crontab.sample %D/etc/netdisco/netdisco.crontab; fi
|
||||
@unexec d="%D/etc/netdisco"; f="netdisco.crontab"; if cmp -s ${d}/${f}.sample ${d}/${f}; then rm -f ${d}/${f}; fi;
|
||||
@unexec d="%D/etc/netdisco"; f="netdisco_apache.conf"; if cmp -s ${d}/${f}.sample ${d}/${f}; then rm -f ${d}/${f}; fi;
|
||||
etc/netdisco/netdisco_apache.conf.sample
|
||||
@exec if [ ! -f %D/etc/netdisco/netdisco_apache.conf ] ; then cp -p %D/etc/netdisco/netdisco_apache.conf.sample %D/etc/netdisco/netdisco_apache.conf; fi
|
||||
@unexec d="%D/etc/netdisco"; f="netdisco_apache.conf"; if cmp -s ${d}/${f}.sample ${d}/${f}; then rm -f ${d}/${f}; fi;
|
||||
@unexec d="%D/etc/netdisco"; f="netdisco_apache_dir.conf"; if cmp -s ${d}/${f}.sample ${d}/${f}; then rm -f ${d}/${f}; fi;
|
||||
etc/netdisco/netdisco_apache_dir.conf.sample
|
||||
@exec if [ ! -f %D/etc/netdisco/netdisco_apache_dir.conf ] ; then cp -p %D/etc/netdisco/netdisco_apache_dir.conf.sample %D/etc/netdisco/netdisco_apache_dir.conf; fi
|
||||
@unexec d="%D/etc/netdisco"; f="netdisco_apache_dir.conf"; if cmp -s ${d}/${f}.sample ${d}/${f}; then rm -f ${d}/${f}; fi;
|
||||
@dirrm %%WWWDIR%%/doc
|
||||
@exec mkdir -p %D/%%WWWDIR%%/mason
|
||||
@dirrm %%WWWDIR%%/mason
|
||||
|
Loading…
Reference in New Issue
Block a user