mirror of
https://git.freebsd.org/ports.git
synced 2025-06-29 00:20:40 -04:00
Remove NOPORTDOCS and NOPORTEXAMPLES.
This commit is contained in:
parent
1261ab9470
commit
3b13c98a60
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360498
19 changed files with 48 additions and 52 deletions
|
@ -23,6 +23,8 @@ SITE_SUB= -e "s|%%PREFIX%%|${PREFIX}|g" \
|
||||||
-e "s|%%OPENSSLINC%%|${OPENSSLINC}|g" \
|
-e "s|%%OPENSSLINC%%|${OPENSSLINC}|g" \
|
||||||
-e "s|%%OPENSSLLIB%%|${OPENSSLLIB}|g"
|
-e "s|%%OPENSSLLIB%%|${OPENSSLLIB}|g"
|
||||||
|
|
||||||
|
OPTIONS_DEFINE= DOCS
|
||||||
|
|
||||||
.include <bsd.port.pre.mk>
|
.include <bsd.port.pre.mk>
|
||||||
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
|
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
|
||||||
|
|
||||||
|
@ -40,11 +42,9 @@ post-install:
|
||||||
.endif
|
.endif
|
||||||
@${RM} -f ${MANPREFIX}/man/cat8/batv-filter.8 ${MANPREFIX}/man/cat8/batv-filter.8.gz
|
@${RM} -f ${MANPREFIX}/man/cat8/batv-filter.8 ${MANPREFIX}/man/cat8/batv-filter.8.gz
|
||||||
${INSTALL_MAN} ${WRKSRC}/*/batv-filter.8 ${STAGEDIR}${MANPREFIX}/man/man8/
|
${INSTALL_MAN} ${WRKSRC}/*/batv-filter.8 ${STAGEDIR}${MANPREFIX}/man/man8/
|
||||||
.if !defined(NOPORTDOCS)
|
|
||||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
.for f in ${PORTDOCS}
|
.for f in ${PORTDOCS}
|
||||||
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
|
||||||
.endfor
|
.endfor
|
||||||
.endif
|
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
|
|
@ -18,8 +18,12 @@ COMMENT= Mail format/encoding converter
|
||||||
GNU_CONFIGURE= yes
|
GNU_CONFIGURE= yes
|
||||||
CONFIGURE_ENV= YACC=byacc
|
CONFIGURE_ENV= YACC=byacc
|
||||||
|
|
||||||
.if defined(NOPORTDOCS)
|
OPTIONS_DEFINE= DOCS
|
||||||
MAKE_ENV= NOPORTDOCS=${NOPORTDOCS}
|
|
||||||
|
.include <bsd.port.options.mk>
|
||||||
|
|
||||||
|
.if empty(PORT_OPTIONS:MDOCS)
|
||||||
|
MAKE_ENV= NOPORTDOCS=yes
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -28,10 +28,10 @@ USE_RC_SUBR= ${PORTNAME}
|
||||||
SUB_LIST+= MAILGRAPH_USER=${MAILGRAPH_USER} MAILGRAPH_GROUP=${MAILGRAPH_GROUP}
|
SUB_LIST+= MAILGRAPH_USER=${MAILGRAPH_USER} MAILGRAPH_GROUP=${MAILGRAPH_GROUP}
|
||||||
PLIST_SUB= CGIDIR=${CGIDIR:S,${PREFIX}/,,} WWWROOT=${WWWROOT:S,${PREFIX}/,,}
|
PLIST_SUB= CGIDIR=${CGIDIR:S,${PREFIX}/,,} WWWROOT=${WWWROOT:S,${PREFIX}/,,}
|
||||||
|
|
||||||
|
OPTIONS_DEFINE= DOCS
|
||||||
|
|
||||||
DOCS= README CHANGES
|
DOCS= README CHANGES
|
||||||
.if !defined(NOPORTDOCS)
|
|
||||||
PORTDOCS= ${DOCS}
|
PORTDOCS= ${DOCS}
|
||||||
.endif
|
|
||||||
|
|
||||||
pre-everything::
|
pre-everything::
|
||||||
@${ECHO_MSG} ""
|
@${ECHO_MSG} ""
|
||||||
|
@ -52,11 +52,9 @@ do-install:
|
||||||
@${INSTALL_SCRIPT} ${WRKSRC}/mailgraph.pl ${STAGEDIR}${PREFIX}/sbin
|
@${INSTALL_SCRIPT} ${WRKSRC}/mailgraph.pl ${STAGEDIR}${PREFIX}/sbin
|
||||||
@${INSTALL_SCRIPT} ${WRKSRC}/mailgraph.cgi ${STAGEDIR}${CGIDIR}
|
@${INSTALL_SCRIPT} ${WRKSRC}/mailgraph.cgi ${STAGEDIR}${CGIDIR}
|
||||||
@${INSTALL_DATA} ${WRKSRC}/mailgraph.css ${STAGEDIR}${WWWROOT}/mailgraph
|
@${INSTALL_DATA} ${WRKSRC}/mailgraph.css ${STAGEDIR}${WWWROOT}/mailgraph
|
||||||
.if !defined(NOPORTDOCS)
|
|
||||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
for f in ${DOCS}; do \
|
for f in ${DOCS}; do \
|
||||||
${INSTALL_DATA} ${WRKSRC}/$$f ${STAGEDIR}${DOCSDIR}; \
|
${INSTALL_DATA} ${WRKSRC}/$$f ${STAGEDIR}${DOCSDIR}; \
|
||||||
done
|
done
|
||||||
.endif
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -10,9 +10,9 @@ MASTER_SITES= SF
|
||||||
MAINTAINER= anders@FreeBSD.org
|
MAINTAINER= anders@FreeBSD.org
|
||||||
COMMENT= Utility to scan mailboxes for messages matching a regular expression
|
COMMENT= Utility to scan mailboxes for messages matching a regular expression
|
||||||
|
|
||||||
.if defined(WITH_PCRE)
|
PCRE_LIB_DEPENDS= pcre.3:${PORTSDIR}/devel/pcre
|
||||||
LIB_DEPENDS= pcre.3:${PORTSDIR}/devel/pcre
|
|
||||||
.endif
|
OPTIONS_DEFINE= DOCS PCRE
|
||||||
|
|
||||||
USES= uidfix
|
USES= uidfix
|
||||||
GNU_CONFIGURE= yes
|
GNU_CONFIGURE= yes
|
||||||
|
@ -32,11 +32,9 @@ post-patch:
|
||||||
${WRKSRC}/src/Makefile.in ${WRKSRC}/doc/Makefile.in
|
${WRKSRC}/src/Makefile.in ${WRKSRC}/doc/Makefile.in
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
.if !defined(NOPORTDOCS)
|
|
||||||
${INSTALL} -d -o root -g wheel -m 0755 ${STAGEDIR}${DOCSDIR}
|
${INSTALL} -d -o root -g wheel -m 0755 ${STAGEDIR}${DOCSDIR}
|
||||||
.for f in ${DOCS}
|
.for f in ${DOCS}
|
||||||
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
|
||||||
.endfor
|
.endfor
|
||||||
.endif
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -13,13 +13,13 @@ COMMENT= Perl extension for reading procmail logfiles
|
||||||
USES= perl5
|
USES= perl5
|
||||||
USE_PERL5= configure
|
USE_PERL5= configure
|
||||||
|
|
||||||
.if !defined(NOPORTDOCS)
|
OPTIONS_DEFINE= DOCS
|
||||||
|
|
||||||
PORTDOCS= Changes
|
PORTDOCS= Changes
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
||||||
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
|
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
|
||||||
.endif
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -25,22 +25,20 @@ EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
|
||||||
PORTDOCS= Changes FAQ README
|
PORTDOCS= Changes FAQ README
|
||||||
PORTEXAMPLES= popread proc2ma
|
PORTEXAMPLES= popread proc2ma
|
||||||
|
|
||||||
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@${REINPLACE_CMD} -i '' -e 's|/var/spool/mail|/var/mail|g' \
|
@${REINPLACE_CMD} -i '' -e 's|/var/spool/mail|/var/mail|g' \
|
||||||
${WRKSRC}/lib/Mail/Audit.pm
|
${WRKSRC}/lib/Mail/Audit.pm
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
.if !defined(NOPORTDOCS)
|
|
||||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
.for i in ${PORTDOCS}
|
.for i in ${PORTDOCS}
|
||||||
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}/${i}
|
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}/${i}
|
||||||
.endfor
|
.endfor
|
||||||
.endif
|
|
||||||
.if !defined(NOPORTEXAMPLES)
|
|
||||||
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||||
.for i in ${PORTEXAMPLES}
|
.for i in ${PORTEXAMPLES}
|
||||||
${INSTALL_SCRIPT} ${WRKSRC}/bin/${i} ${STAGEDIR}${EXAMPLESDIR}/${i}
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/${i} ${STAGEDIR}${EXAMPLESDIR}/${i}
|
||||||
.endfor
|
.endfor
|
||||||
.endif
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -16,11 +16,11 @@ RUN_DEPENDS:= ${BUILD_DEPENDS}
|
||||||
USES= perl5
|
USES= perl5
|
||||||
USE_PERL5= configure
|
USE_PERL5= configure
|
||||||
|
|
||||||
|
OPTIONS_DEFINE= EXAMPLES
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
.ifndef(NOPORTDOCS)
|
|
||||||
@${ECHO_MSG} "===> Installing examples for ${PKGNAME}"
|
@${ECHO_MSG} "===> Installing examples for ${PKGNAME}"
|
||||||
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||||
${INSTALL_SCRIPT} ${WRKSRC}/samples/* ${STAGEDIR}${EXAMPLESDIR}
|
${INSTALL_SCRIPT} ${WRKSRC}/samples/* ${STAGEDIR}${EXAMPLESDIR}
|
||||||
.endif
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
%%PERL5_MAN3%%/POE::Component::Client::POP3.3.gz
|
%%PERL5_MAN3%%/POE::Component::Client::POP3.3.gz
|
||||||
%%SITE_PERL%%/POE/Component/Client/POP3.pm
|
%%SITE_PERL%%/POE/Component/Client/POP3.pm
|
||||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/POE/Component/Client/POP3/.packlist
|
%%SITE_PERL%%/%%PERL_ARCH%%/auto/POE/Component/Client/POP3/.packlist
|
||||||
%%PORTDOCS%%%%EXAMPLESDIR%%/term.perl
|
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/term.perl
|
||||||
%%PORTDOCS%%%%EXAMPLESDIR%%/test.perl
|
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test.perl
|
||||||
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
|
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
|
||||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/POE/Component/Client/POP3
|
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/POE/Component/Client/POP3
|
||||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/POE/Component/Client
|
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/POE/Component/Client
|
||||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/POE/Component
|
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/POE/Component
|
||||||
|
|
|
@ -16,7 +16,7 @@ PLIST= ${WRKDIR}/.PLIST.more
|
||||||
CFLAGS+= -DPREFIX=${PREFIX}
|
CFLAGS+= -DPREFIX=${PREFIX}
|
||||||
UNIQUENAME= ${.CURDIR:T}
|
UNIQUENAME= ${.CURDIR:T}
|
||||||
|
|
||||||
OPTIONS_DEFINE= SMTP_AFTER_POP3 STANDALONE_POP3 SETPROCTITLE
|
OPTIONS_DEFINE= SMTP_AFTER_POP3 STANDALONE_POP3 SETPROCTITLE DOCS
|
||||||
NO_OPTIONS_SORT=yes
|
NO_OPTIONS_SORT=yes
|
||||||
SMTP_AFTER_POP3_DESC=Enable SMTP-after-POP support
|
SMTP_AFTER_POP3_DESC=Enable SMTP-after-POP support
|
||||||
STANDALONE_POP3_DESC=Enable standalone server mode
|
STANDALONE_POP3_DESC=Enable standalone server mode
|
||||||
|
@ -89,7 +89,7 @@ do-install:
|
||||||
${INSTALL_DATA} ${FILESDIR}/popauth.m4 ${STAGEDIR}${CFDIR}/hack/
|
${INSTALL_DATA} ${FILESDIR}/popauth.m4 ${STAGEDIR}${CFDIR}/hack/
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if !defined(NOPORTDOCS)
|
.if ${PORT_OPTIONS:MDOCS}
|
||||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
${INSTALL_MAN} ${WRKSRC}/DESIGN ${STAGEDIR}${DOCSDIR}/
|
${INSTALL_MAN} ${WRKSRC}/DESIGN ${STAGEDIR}${DOCSDIR}/
|
||||||
${INSTALL_MAN} ${WRKSRC}/LICENSE ${STAGEDIR}${DOCSDIR}/
|
${INSTALL_MAN} ${WRKSRC}/LICENSE ${STAGEDIR}${DOCSDIR}/
|
||||||
|
|
|
@ -19,14 +19,14 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||||
PORTDOCS= README
|
PORTDOCS= README
|
||||||
PLIST_FILES= bin/${PORTNAME}
|
PLIST_FILES= bin/${PORTNAME}
|
||||||
|
|
||||||
|
OPTIONS_DEFINE= DOCS
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@${REINPLACE_CMD} -e 's|/bin|${PREFIX}/bin|g' ${WRKSRC}/qgmailnotifier.pro
|
@${REINPLACE_CMD} -e 's|/bin|${PREFIX}/bin|g' ${WRKSRC}/qgmailnotifier.pro
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
||||||
.if !defined(NOPORTDOCS)
|
|
||||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
||||||
.endif
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -18,16 +18,14 @@ GNU_CONFIGURE= yes
|
||||||
SUB_FILES= pkg-message
|
SUB_FILES= pkg-message
|
||||||
SUB_LIST= QMAIL_PREFIX=${QMAIL_PREFIX}
|
SUB_LIST= QMAIL_PREFIX=${QMAIL_PREFIX}
|
||||||
|
|
||||||
.include <bsd.port.pre.mk>
|
OPTIONS_DEFINE= DOCS
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@${REINPLACE_CMD} -e 's|/usr/local|${STAGEDIR}${PREFIX}|g' \
|
@${REINPLACE_CMD} -e 's|/usr/local|${STAGEDIR}${PREFIX}|g' \
|
||||||
${WRKSRC}/src/Makefile.in
|
${WRKSRC}/src/Makefile.in
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
.if !defined(NOPORTDOCS)
|
|
||||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
@${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
|
@${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
|
||||||
.endif
|
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -22,6 +22,8 @@ DOCS= NEWS README TODO procedure.txt schema.mysql
|
||||||
|
|
||||||
ALL_TARGET= ${PROGS}
|
ALL_TARGET= ${PROGS}
|
||||||
|
|
||||||
|
OPTIONS_DEFINE= DOCS
|
||||||
|
|
||||||
do-configure:
|
do-configure:
|
||||||
${ECHO_CMD} "${STAGEDIR}${PREFIX}/bin" > ${WRKSRC}/conf-bin
|
${ECHO_CMD} "${STAGEDIR}${PREFIX}/bin" > ${WRKSRC}/conf-bin
|
||||||
${ECHO_CMD} "${STAGEDIR}${MANPREFIX}/man" > ${WRKSRC}/conf-man
|
${ECHO_CMD} "${STAGEDIR}${MANPREFIX}/man" > ${WRKSRC}/conf-man
|
||||||
|
@ -31,9 +33,7 @@ do-configure:
|
||||||
do-install:
|
do-install:
|
||||||
cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PROGS} ${STAGEDIR}${PREFIX}/bin
|
cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PROGS} ${STAGEDIR}${PREFIX}/bin
|
||||||
${INSTALL_MAN} ${WRKSRC}/qmail-autoresponder.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
${INSTALL_MAN} ${WRKSRC}/qmail-autoresponder.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
||||||
.if !defined(NOPORTDOCS)
|
|
||||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
|
||||||
.endif
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -15,6 +15,8 @@ CFLAGS+= -DHAVE_SRANDOM
|
||||||
DOCS= NEWS README TODO
|
DOCS= NEWS README TODO
|
||||||
EXAMPLES= cron.hourly message.txt
|
EXAMPLES= cron.hourly message.txt
|
||||||
|
|
||||||
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
||||||
|
|
||||||
do-configure:
|
do-configure:
|
||||||
${ECHO_CMD} "${STAGEDIR}${PREFIX}/bin" > ${WRKSRC}/conf-bin
|
${ECHO_CMD} "${STAGEDIR}${PREFIX}/bin" > ${WRKSRC}/conf-bin
|
||||||
${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
|
${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
|
||||||
|
@ -24,9 +26,7 @@ do-install:
|
||||||
cd ${WRKSRC} && ./installer
|
cd ${WRKSRC} && ./installer
|
||||||
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||||
cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
|
cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
|
||||||
.if !defined(NOPORTDOCS)
|
|
||||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
|
||||||
.endif
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -17,6 +17,8 @@ BGLIBS_LIB= ${LOCALBASE}/lib/bglibs
|
||||||
|
|
||||||
DOCS= NEWS README TODO
|
DOCS= NEWS README TODO
|
||||||
|
|
||||||
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
||||||
|
|
||||||
do-configure:
|
do-configure:
|
||||||
${ECHO_CMD} "${STAGEDIR}${PREFIX}/bin" > ${WRKSRC}/conf-bin
|
${ECHO_CMD} "${STAGEDIR}${PREFIX}/bin" > ${WRKSRC}/conf-bin
|
||||||
${ECHO_CMD} "${STAGEDIR}${MANPREFIX}/man" > ${WRKSRC}/conf-man
|
${ECHO_CMD} "${STAGEDIR}${MANPREFIX}/man" > ${WRKSRC}/conf-man
|
||||||
|
@ -28,9 +30,7 @@ do-configure:
|
||||||
post-install:
|
post-install:
|
||||||
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||||
cd ${WRKSRC} && ${INSTALL_DATA} samples/* ${STAGEDIR}${EXAMPLESDIR}
|
cd ${WRKSRC} && ${INSTALL_DATA} samples/* ${STAGEDIR}${EXAMPLESDIR}
|
||||||
.if !defined(NOPORTDOCS)
|
|
||||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
|
||||||
.endif
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -16,6 +16,8 @@ PORTDOCS= INSTALL LICENSE README
|
||||||
USES= shebangfix
|
USES= shebangfix
|
||||||
SHEBANG_FILES= populate.pl
|
SHEBANG_FILES= populate.pl
|
||||||
|
|
||||||
|
OPTIONS_DEFINE= DOCS
|
||||||
|
|
||||||
do-build:
|
do-build:
|
||||||
@(cd ${WRKSRC} ;\
|
@(cd ${WRKSRC} ;\
|
||||||
${ECHO_MSG} "Compiling ${PORTNAME}:" ; \
|
${ECHO_MSG} "Compiling ${PORTNAME}:" ; \
|
||||||
|
@ -26,11 +28,9 @@ do-install:
|
||||||
@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin
|
@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin
|
||||||
@${INSTALL_SCRIPT} ${WRKSRC}/populate.pl \
|
@${INSTALL_SCRIPT} ${WRKSRC}/populate.pl \
|
||||||
${STAGEDIR}${PREFIX}/bin/populate-qmail-queue.pl
|
${STAGEDIR}${PREFIX}/bin/populate-qmail-queue.pl
|
||||||
.if !defined(NOPORTDOCS)
|
|
||||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
.for f in ${PORTDOCS}
|
.for f in ${PORTDOCS}
|
||||||
@${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
|
@${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
|
||||||
.endfor
|
.endfor
|
||||||
.endif
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -15,16 +15,16 @@ GNU_CONFIGURE= yes
|
||||||
PORTDOCS= INSTALL
|
PORTDOCS= INSTALL
|
||||||
PLIST_FILES= bin/renattach etc/renattach.conf.ex man/man1/renattach.1.gz
|
PLIST_FILES= bin/renattach etc/renattach.conf.ex man/man1/renattach.1.gz
|
||||||
|
|
||||||
|
OPTIONS_DEFINE= DOCS
|
||||||
|
|
||||||
post-extract:
|
post-extract:
|
||||||
@${RM} -f ${WRKSRC}/src/getopt*
|
@${RM} -f ${WRKSRC}/src/getopt*
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
.if !defined(NOPORTDOCS)
|
|
||||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
||||||
@${ECHO_MSG} "===================="
|
@${ECHO_MSG} "===================="
|
||||||
@${ECHO_MSG} "Check with ${DOCSDIR}/INSTALL"
|
@${ECHO_MSG} "Check with ${DOCSDIR}/INSTALL"
|
||||||
@${ECHO_MSG} "After that you may need to adjust renattach.conf to your needs"
|
@${ECHO_MSG} "After that you may need to adjust renattach.conf to your needs"
|
||||||
.endif
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -25,7 +25,11 @@ PLIST= ${WRKDIR}/.pkg-plist
|
||||||
PKGMESSAGE= ${WRKDIR}/pkg-message
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||||
SUB_FILES= pkg-message
|
SUB_FILES= pkg-message
|
||||||
|
|
||||||
.if !defined(NOPORTDOCS)
|
OPTIONS_DEFINE= DOCS
|
||||||
|
|
||||||
|
.include <bsd.port.options.mk>
|
||||||
|
|
||||||
|
.if ${PORT_OPTIONS:MDOCS}
|
||||||
MASTER_SITES+= http://www.spambouncer.org/configure/:upg
|
MASTER_SITES+= http://www.spambouncer.org/configure/:upg
|
||||||
DISTFILES+= upgrading.shtml:upg
|
DISTFILES+= upgrading.shtml:upg
|
||||||
PORTDOCS= documentation.html upgrading.html loglevels.txt
|
PORTDOCS= documentation.html upgrading.html loglevels.txt
|
||||||
|
@ -48,7 +52,7 @@ do-install:
|
||||||
${MKDIR} ${STAGEDIR}${DATADIR}
|
${MKDIR} ${STAGEDIR}${DATADIR}
|
||||||
(cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR})
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR})
|
||||||
${RM} -rf ${STAGEDIR}${DATADIR}/docs
|
${RM} -rf ${STAGEDIR}${DATADIR}/docs
|
||||||
.if !defined(NOPORTDOCS)
|
.if ${PORT_OPTIONS:MDOCS}
|
||||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/quickstart.shtml \
|
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/quickstart.shtml \
|
||||||
${STAGEDIR}${DOCSDIR}/documentation.html
|
${STAGEDIR}${DOCSDIR}/documentation.html
|
||||||
|
|
|
@ -15,16 +15,14 @@ USE_SM_COMPAT= yes
|
||||||
|
|
||||||
SQUIRREL_PLUGIN_NAME= ${PORTNAME:S/-/_/}
|
SQUIRREL_PLUGIN_NAME= ${PORTNAME:S/-/_/}
|
||||||
|
|
||||||
|
OPTIONS_DEFINE= DOCS
|
||||||
|
|
||||||
.include <bsd.port.pre.mk>
|
.include <bsd.port.pre.mk>
|
||||||
.include "${.CURDIR}/../squirrelmail/bsd.squirrelmail.mk"
|
.include "${.CURDIR}/../squirrelmail/bsd.squirrelmail.mk"
|
||||||
|
|
||||||
post-extract:
|
post-extract:
|
||||||
@${MV} ${WRKSRC}/${_SMSRCDIR}/config_example.php ${WRKSRC}/${_SMSRCDIR}/config.sample.php
|
@${MV} ${WRKSRC}/${_SMSRCDIR}/config_example.php ${WRKSRC}/${_SMSRCDIR}/config.sample.php
|
||||||
@${RM} ${WRKSRC}/${_SMSRCDIR}/README
|
@${RM} ${WRKSRC}/${_SMSRCDIR}/README
|
||||||
.ifdef NOPORTDOCS
|
|
||||||
@${RM} -R ${WRKSRC}/${_SMSRCDIR}/docs
|
|
||||||
.else
|
|
||||||
@${MV} ${WRKSRC}/${_SMSRCDIR}/docs ${WRKSRC}/${_SMSRCDIR}/doc
|
@${MV} ${WRKSRC}/${_SMSRCDIR}/docs ${WRKSRC}/${_SMSRCDIR}/doc
|
||||||
.endif
|
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
|
|
@ -14,21 +14,19 @@ USE_SM_COMPAT= yes
|
||||||
|
|
||||||
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
|
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
|
||||||
|
|
||||||
|
OPTIONS_DEFINE= DOCS
|
||||||
|
|
||||||
.include <bsd.port.pre.mk>
|
.include <bsd.port.pre.mk>
|
||||||
.include "${.CURDIR}/../squirrelmail/bsd.squirrelmail.mk"
|
.include "${.CURDIR}/../squirrelmail/bsd.squirrelmail.mk"
|
||||||
|
|
||||||
# We need to rearrange, install and cleanup documentation pre-install
|
# We need to rearrange, install and cleanup documentation pre-install
|
||||||
# because bsd.squirrelmail.mk installs everything under ${WRKSRC}/${PORTNAME}.
|
# because bsd.squirrelmail.mk installs everything under ${WRKSRC}/${PORTNAME}.
|
||||||
pre-install::
|
pre-install::
|
||||||
.if !defined(NOPORTDOCS)
|
|
||||||
cd ${WRKSRC}/${PORTNAME}/docs \
|
cd ${WRKSRC}/${PORTNAME}/docs \
|
||||||
&& ${RM} .htaccess index.php \
|
&& ${RM} .htaccess index.php \
|
||||||
&& ${MKDIR} ${STAGEDIR}${DOCSDIR} \
|
&& ${MKDIR} ${STAGEDIR}${DOCSDIR} \
|
||||||
&& ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR} \
|
&& ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR} \
|
||||||
&& cd ${WRKSRC}/${PORTNAME} \
|
&& cd ${WRKSRC}/${PORTNAME} \
|
||||||
&& ${RM} -rf README docs
|
&& ${RM} -rf README docs
|
||||||
.else
|
|
||||||
cd ${WRKSRC}/${PORTNAME} && ${RM} -rf README docs
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
|
Loading…
Add table
Reference in a new issue