svn commit: r359384 - head/security/scamp
William Grzybowski
wg at FreeBSD.org
Thu Jun 26 16:03:28 UTC 2014
Author: wg
Date: Thu Jun 26 16:03:27 2014
New Revision: 359384
URL: http://svnweb.freebsd.org/changeset/ports/359384
QAT: https://qat.redports.org/buildarchive/r359384/
Log:
security/scamp: support stage
- Use @sample
Approved by: portmgr (stage blanket)
Modified:
head/security/scamp/Makefile
head/security/scamp/pkg-plist
Modified: head/security/scamp/Makefile
==============================================================================
--- head/security/scamp/Makefile Thu Jun 26 16:00:00 2014 (r359383)
+++ head/security/scamp/Makefile Thu Jun 26 16:03:27 2014 (r359384)
@@ -25,38 +25,20 @@ RUN_DEPENDS+= curl>=7.24.0_2:${PORTSDIR}
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>
Modified: head/security/scamp/pkg-plist
==============================================================================
--- head/security/scamp/pkg-plist Thu Jun 26 16:00:00 2014 (r359383)
+++ head/security/scamp/pkg-plist Thu Jun 26 16:03:27 2014 (r359384)
@@ -1,11 +1,4 @@
bin/scamp.sh
-%%PORTDOCS%%%%DOCSDIR%%/CHANGE.LOG
-%%PORTDOCS%%%%DOCSDIR%%/INSTALL
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/Release.pdf
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
- at exec mkdir -p %D/etc/scamp
- at 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
- at exec if [ ! -f %D/etc/scamp/default ] ; then cp -p %D/%F %B/default; fi
+man/man1/scamp.1.gz
+ at sample etc/scamp/default.sample
@dirrmtry etc/scamp
More information about the svn-ports-all
mailing list