svn commit: r361269 - head/mail/amavis-logwatch
Yen-Ming Lee
leeym at FreeBSD.org
Tue Jul 8 16:36:51 UTC 2014
Author: leeym
Date: Tue Jul 8 16:36:50 2014
New Revision: 361269
URL: http://svnweb.freebsd.org/changeset/ports/361269
QAT: https://qat.redports.org/buildarchive/r361269/
Log:
- support stage
Modified:
head/mail/amavis-logwatch/Makefile
head/mail/amavis-logwatch/pkg-plist
Modified: head/mail/amavis-logwatch/Makefile
==============================================================================
--- head/mail/amavis-logwatch/Makefile Tue Jul 8 16:35:10 2014 (r361268)
+++ head/mail/amavis-logwatch/Makefile Tue Jul 8 16:36:50 2014 (r361269)
@@ -7,7 +7,7 @@ CATEGORIES= mail
MASTER_SITES= SF/logreporters/${PORTNAME}/release/${PORTVERSION}
EXTRACT_SUFX= .tgz
-MAINTAINER= ports at FreeBSD.org
+MAINTAINER= ports at FreeBSD.org
COMMENT= Amavisd-new log parser
LICENSE= MIT
@@ -16,36 +16,35 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
PORTDOCS= Bugs Changes README
PORTEXAMPLES= ${PORTNAME}.conf
-MAN1= ${PORTNAME}.1
-
-USES= perl5
+USES= perl5 shebangfix
USE_PERL5= run
NO_BUILD= yes
+SHEBANG_FILES= amavis-logwatch
+OPTIONS_DEFINE= EXAMPLES DOCS
+OPTIONS_DEFAULT=EXAMPLES DOCS
+
+.include <bsd.port.options.mk>
-NO_STAGE= yes
post-patch:
@cd ${WRKSRC} && ${REINPLACE_CMD} -e '\
s!/usr/local/etc!${ETCDIR}! \
' ${PORTNAME} ${PORTNAME}.1 README
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MAN1PREFIX}/man/man1
+ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
@${CP} ${WRKSRC}/${PORTNAME}.conf ${WRKSRC}/${PORTNAME}.conf.sample
- @${MKDIR} ${ETCDIR}
- ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf.sample ${ETCDIR}
+ @${MKDIR} ${STAGEDIR}${ETCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf.sample ${STAGEDIR}${ETCDIR}
post-install:
- @if [ ! -f ${ETCDIR}/${PORTNAME}.conf ]; then \
- ${CP} -p ${ETCDIR}/${PORTNAME}.conf.sample ${ETCDIR}/${PORTNAME}.conf; \
- fi
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- cd ${WRKSRC} && ${INSTALL_MAN} ${PORTDOCS} ${DOCSDIR}
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_MAN} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.endif
-.if !defined(NOPORTEXAMPLES)
- @${MKDIR} ${EXAMPLESDIR}
- cd ${WRKSRC} && ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}
+.if ${PORT_OPTIONS:MEXAMPLES}
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
.endif
.include <bsd.port.mk>
Modified: head/mail/amavis-logwatch/pkg-plist
==============================================================================
--- head/mail/amavis-logwatch/pkg-plist Tue Jul 8 16:35:10 2014 (r361268)
+++ head/mail/amavis-logwatch/pkg-plist Tue Jul 8 16:36:50 2014 (r361269)
@@ -1,5 +1,4 @@
- at unexec if cmp -s %D/%%ETCDIR%%/amavis-logwatch.conf.sample %D/%%ETCDIR%%/amavis-logwatch.conf; then rm -f %D/%%ETCDIR%%/amavis-logwatch.conf; fi
%%ETCDIR%%/amavis-logwatch.conf.sample
- at exec if [ ! -f %B/amavis-logwatch.conf ] ; then cp -p %B/%f %B/amavis-logwatch.conf; fi
+man/man1/amavis-logwatch.1.gz
@dirrmtry %%ETCDIR%%
bin/amavis-logwatch
More information about the svn-ports-all
mailing list