diff options
author | wg <wg@FreeBSD.org> | 2014-06-27 00:03:27 +0800 |
---|---|---|
committer | wg <wg@FreeBSD.org> | 2014-06-27 00:03:27 +0800 |
commit | 0bf39f6fc0ad04481762a03e2e35615e086478ec (patch) | |
tree | 813b614800b73053ea5296b3012ce4f133577153 /security/scamp | |
parent | e408153cc582aba06bb8c87bd48545c268d4b8ff (diff) | |
download | freebsd-ports-gnome-0bf39f6fc0ad04481762a03e2e35615e086478ec.tar.gz freebsd-ports-gnome-0bf39f6fc0ad04481762a03e2e35615e086478ec.tar.zst freebsd-ports-gnome-0bf39f6fc0ad04481762a03e2e35615e086478ec.zip |
security/scamp: support stage
- Use @sample
Approved by: portmgr (stage blanket)
Diffstat (limited to 'security/scamp')
-rw-r--r-- | security/scamp/Makefile | 32 | ||||
-rw-r--r-- | security/scamp/pkg-plist | 11 |
2 files changed, 9 insertions, 34 deletions
diff --git a/security/scamp/Makefile b/security/scamp/Makefile index 031d191d198a..d8e556ed6a20 100644 --- a/security/scamp/Makefile +++ b/security/scamp/Makefile @@ -25,38 +25,20 @@ RUN_DEPENDS+= curl>=7.24.0_2:${PORTSDIR}/ftp/curl NO_BUILD= yes SUB_FILES= pkg-message -MAN1= scamp.1 - OPTIONS_DEFINE= DOCS -NO_STAGE= yes -.include <bsd.port.options.mk> +PORTDOCS= README CHANGE.LOG INSTALL Release.pdf post-patch: @${REINPLACE_CMD} -e 's|CLAMAV_DB=$${CLAMAV_DB:-""}|CLAMAV_DB=$${CLAMAV_DB:-\"/var/db/clamav\"}|g' ${WRKSRC}/${PORTNAME}.sh @${REINPLACE_CMD} -e 's|CONFIG_DIR=$${CONFIG_DIR:-"/etc/scamp"}|CONFIG_DIR=$${CONFIG_DIR:-"${ETCDIR}"}|g' ${WRKSRC}/${PORTNAME}.sh -post-install: - @if [ ! -d ${ETCDIR} ]; then \ - ${MKDIR} ${ETCDIR} ; \ - fi - - @${INSTALL_DATA} ${FILESDIR}/default.sample ${ETCDIR} - - @if [ ! -f ${PREFIX}/etc/scamp/default ]; then \ - ${CP} -p ${PREFIX}/etc/scamp/default.sample ${PREFIX}/etc/scamp/default ; \ - fi - do-install: - cd ${WRKSRC} && ${INSTALL_SCRIPT} ${PORTNAME}.sh ${PREFIX}/bin - cd ${WRKSRC} && ${INSTALL_MAN} scamp.1 ${MANPREFIX}/man/man1 - -# Documentation -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} - cd ${WRKSRC} && ${INSTALL_DATA} README CHANGE.LOG INSTALL Release.pdf ${DOCSDIR} -.endif - - @${CAT} ${PKGMESSAGE} + cd ${WRKSRC} && ${INSTALL_SCRIPT} ${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin + cd ${WRKSRC} && ${INSTALL_MAN} scamp.1 ${STAGEDIR}${MANPREFIX}/man/man1 + @${MKDIR} ${STAGEDIR}${ETCDIR} + ${INSTALL_DATA} ${FILESDIR}/default.sample ${STAGEDIR}${ETCDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> diff --git a/security/scamp/pkg-plist b/security/scamp/pkg-plist index 2ebf99a50ea5..1d9686911140 100644 --- a/security/scamp/pkg-plist +++ b/security/scamp/pkg-plist @@ -1,11 +1,4 @@ bin/scamp.sh -%%PORTDOCS%%%%DOCSDIR%%/CHANGE.LOG -%%PORTDOCS%%%%DOCSDIR%%/INSTALL -%%PORTDOCS%%%%DOCSDIR%%/README -%%PORTDOCS%%%%DOCSDIR%%/Release.pdf -%%PORTDOCS%%@dirrm %%DOCSDIR%% -@exec mkdir -p %D/etc/scamp -@unexec if cmp -s %D/etc/scamp/default.sample %D/etc/scamp/default; then rm -f %D/etc/scamp/default; fi -etc/scamp/default.sample -@exec if [ ! -f %D/etc/scamp/default ] ; then cp -p %D/%F %B/default; fi +man/man1/scamp.1.gz +@sample etc/scamp/default.sample @dirrmtry etc/scamp |