Fix an utterly botched attempt to convert @unexec rmdir to @dirrmtry.

Reported by:	erwin, pav
This commit is contained in:
Brooks Davis 2011-05-31 21:28:07 +00:00
parent c93b803b40
commit db814b56fb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=274900
2 changed files with 3 additions and 3 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= webfrontend
PORTVERSION= 3.1.7
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= sysutils net parallel www
MASTER_SITES= SF/ganglia/ganglia%20monitoring%20core/${PORTVERSION}
PKGNAMEPREFIX= ganglia-
@ -99,7 +99,7 @@ build-plist:
@${FIND} ${TMP_WEBFRONTDIR}/* -type d | \
${SED} -e 's|${TMP_WEBFRONTDIR}|@dirrm %%WEBFRONTDIR%%|' | \
${SORT} -r >> ${PLIST}
@${ECHO_CMD} '@dirrmtry ${RMDIR} %D/%%WEBFRONTDIR%%' >> ${PLIST}
@${ECHO_CMD} '@dirrmtry %%WEBFRONTDIR%%' >> ${PLIST}
@${ECHO_CMD} '@unexec (test -d %D/%%WEBFRONTDIR%% && (echo "Configuration information saved. If you will *NOT* use this package anymore," && echo "please remove %D/%%WEBFRONTDIR%% and its contents manually.")) || true' >> ${PLIST}
.include <bsd.port.mk>

View file

@ -65,5 +65,5 @@
@dirrm %%WEBFRONTDIR%%/templates/default
@dirrm %%WEBFRONTDIR%%/templates
@dirrm %%WEBFRONTDIR%%/graph.d
@dirrmtry rmdir %D/%%WEBFRONTDIR%%
@dirrmtry %%WEBFRONTDIR%%
@unexec (test -d %D/%%WEBFRONTDIR%% && (echo "Configuration information saved. If you will *NOT* use this package anymore," && echo "please remove %D/%%WEBFRONTDIR%% and its contents manually.")) || true