diff options
author | ehaupt <ehaupt@FreeBSD.org> | 2014-03-20 21:16:44 +0800 |
---|---|---|
committer | ehaupt <ehaupt@FreeBSD.org> | 2014-03-20 21:16:44 +0800 |
commit | 7a7639904da9c33d66ad3e1b16711b8cc1ec4e6c (patch) | |
tree | f3f4eac5f24cbf18fc1f6e9abd8fc66ce03fef6f /ports-mgmt | |
parent | 6a00488c4a454b18ea26d15d561415b9b8b70c8c (diff) | |
download | freebsd-ports-gnome-7a7639904da9c33d66ad3e1b16711b8cc1ec4e6c.tar.gz freebsd-ports-gnome-7a7639904da9c33d66ad3e1b16711b8cc1ec4e6c.tar.zst freebsd-ports-gnome-7a7639904da9c33d66ad3e1b16711b8cc1ec4e6c.zip |
Support staging
Diffstat (limited to 'ports-mgmt')
-rw-r--r-- | ports-mgmt/portaudit-db/Makefile | 22 | ||||
-rw-r--r-- | ports-mgmt/portaudit-db/pkg-plist | 2 |
2 files changed, 13 insertions, 11 deletions
diff --git a/ports-mgmt/portaudit-db/Makefile b/ports-mgmt/portaudit-db/Makefile index 73d68548e9c3..5464b6cddaaa 100644 --- a/ports-mgmt/portaudit-db/Makefile +++ b/ports-mgmt/portaudit-db/Makefile @@ -25,18 +25,20 @@ SED_SCRIPT= -e 's,%%PREFIX%%,${PREFIX},g' \ -e "s|%%PORTVERSION%%|${PORTVERSION}|g" \ -e "s|%%DATABASEDIR%%|${DATABASEDIR}|g" -NO_STAGE= yes do-build: - @for f in packaudit.sh packaudit.conf; do \ - ${SED} ${SED_SCRIPT} "${FILESDIR}/$$f" > "${WRKDIR}/$$f"; \ - done +.for f in packaudit.sh packaudit.conf + @${SED} ${SED_SCRIPT} "${FILESDIR}/$$f" > "${WRKDIR}/${f}" +.endfor do-install: - @${INSTALL_SCRIPT} ${WRKDIR}/packaudit.sh ${PREFIX}/bin/packaudit - @${INSTALL_DATA} ${WRKDIR}/packaudit.conf ${PREFIX}/etc/packaudit.conf.sample - @${MKDIR} ${DATADIR} - @${INSTALL_SCRIPT} ${FILESDIR}/portaudit2vuxml.awk ${DATADIR} - @${INSTALL_DATA} ${FILESDIR}/vuxml2html.xslt ${FILESDIR}/vuxml2portaudit.xslt ${DATADIR} - @${MKDIR} ${DATABASEDIR} + ${INSTALL_SCRIPT} ${WRKDIR}/packaudit.sh \ + ${STAGEDIR}${PREFIX}/bin/packaudit + ${INSTALL_DATA} ${WRKDIR}/packaudit.conf \ + ${STAGEDIR}${PREFIX}/etc/packaudit.conf.sample + @${MKDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_SCRIPT} ${FILESDIR}/portaudit2vuxml.awk ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${FILESDIR}/vuxml2html.xslt ${FILESDIR}/vuxml2portaudit.xslt \ + ${STAGEDIR}${DATADIR} + @${MKDIR} ${STAGEDIR}${DATABASEDIR} .include <bsd.port.mk> diff --git a/ports-mgmt/portaudit-db/pkg-plist b/ports-mgmt/portaudit-db/pkg-plist index 46e9b0674f4c..4b7d3cce5b95 100644 --- a/ports-mgmt/portaudit-db/pkg-plist +++ b/ports-mgmt/portaudit-db/pkg-plist @@ -5,4 +5,4 @@ etc/packaudit.conf.sample %%DATADIR%%/vuxml2portaudit.xslt @dirrm %%DATADIR%% @exec mkdir -p %%DATABASEDIR%% -@unexec rmdir %%DATABASEDIR%% 2>/dev/null || true +@dirrmtry %%DATABASEDIR%% |