1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Remove NOPORTDOCS and NOPORTEXAMPLES.

This commit is contained in:
Adam Weinberger 2014-07-04 00:33:29 +00:00
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

View File

@ -23,6 +23,8 @@ SITE_SUB= -e "s|%%PREFIX%%|${PREFIX}|g" \
-e "s|%%OPENSSLINC%%|${OPENSSLINC}|g" \
-e "s|%%OPENSSLLIB%%|${OPENSSLLIB}|g"
OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
@ -40,11 +42,9 @@ post-install:
.endif
@${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/
.if !defined(NOPORTDOCS)
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>

View File

@ -18,8 +18,12 @@ COMMENT= Mail format/encoding converter
GNU_CONFIGURE= yes
CONFIGURE_ENV= YACC=byacc
.if defined(NOPORTDOCS)
MAKE_ENV= NOPORTDOCS=${NOPORTDOCS}
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
.if empty(PORT_OPTIONS:MDOCS)
MAKE_ENV= NOPORTDOCS=yes
.endif
.include <bsd.port.mk>

View File

@ -28,10 +28,10 @@ USE_RC_SUBR= ${PORTNAME}
SUB_LIST+= MAILGRAPH_USER=${MAILGRAPH_USER} MAILGRAPH_GROUP=${MAILGRAPH_GROUP}
PLIST_SUB= CGIDIR=${CGIDIR:S,${PREFIX}/,,} WWWROOT=${WWWROOT:S,${PREFIX}/,,}
OPTIONS_DEFINE= DOCS
DOCS= README CHANGES
.if !defined(NOPORTDOCS)
PORTDOCS= ${DOCS}
.endif
pre-everything::
@${ECHO_MSG} ""
@ -52,11 +52,9 @@ do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/mailgraph.pl ${STAGEDIR}${PREFIX}/sbin
@${INSTALL_SCRIPT} ${WRKSRC}/mailgraph.cgi ${STAGEDIR}${CGIDIR}
@${INSTALL_DATA} ${WRKSRC}/mailgraph.css ${STAGEDIR}${WWWROOT}/mailgraph
.if !defined(NOPORTDOCS)
${MKDIR} ${STAGEDIR}${DOCSDIR}
for f in ${DOCS}; do \
${INSTALL_DATA} ${WRKSRC}/$$f ${STAGEDIR}${DOCSDIR}; \
done
.endif
.include <bsd.port.mk>

View File

@ -10,9 +10,9 @@ MASTER_SITES= SF
MAINTAINER= anders@FreeBSD.org
COMMENT= Utility to scan mailboxes for messages matching a regular expression
.if defined(WITH_PCRE)
LIB_DEPENDS= pcre.3:${PORTSDIR}/devel/pcre
.endif
PCRE_LIB_DEPENDS= pcre.3:${PORTSDIR}/devel/pcre
OPTIONS_DEFINE= DOCS PCRE
USES= uidfix
GNU_CONFIGURE= yes
@ -32,11 +32,9 @@ post-patch:
${WRKSRC}/src/Makefile.in ${WRKSRC}/doc/Makefile.in
post-install:
.if !defined(NOPORTDOCS)
${INSTALL} -d -o root -g wheel -m 0755 ${STAGEDIR}${DOCSDIR}
.for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
.endfor
.endif
.include <bsd.port.mk>

View File

@ -13,13 +13,13 @@ COMMENT= Perl extension for reading procmail logfiles
USES= perl5
USE_PERL5= configure
.if !defined(NOPORTDOCS)
OPTIONS_DEFINE= DOCS
PORTDOCS= Changes
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
.endif
.include <bsd.port.mk>

View File

@ -25,22 +25,20 @@ EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
PORTDOCS= Changes FAQ README
PORTEXAMPLES= popread proc2ma
OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
@${REINPLACE_CMD} -i '' -e 's|/var/spool/mail|/var/mail|g' \
${WRKSRC}/lib/Mail/Audit.pm
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}/${i}
.endfor
.endif
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for i in ${PORTEXAMPLES}
${INSTALL_SCRIPT} ${WRKSRC}/bin/${i} ${STAGEDIR}${EXAMPLESDIR}/${i}
.endfor
.endif
.include <bsd.port.mk>

View File

@ -16,11 +16,11 @@ RUN_DEPENDS:= ${BUILD_DEPENDS}
USES= perl5
USE_PERL5= configure
OPTIONS_DEFINE= EXAMPLES
post-install:
.ifndef(NOPORTDOCS)
@${ECHO_MSG} "===> Installing examples for ${PKGNAME}"
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/samples/* ${STAGEDIR}${EXAMPLESDIR}
.endif
.include <bsd.port.mk>

View File

@ -1,9 +1,9 @@
%%PERL5_MAN3%%/POE::Component::Client::POP3.3.gz
%%SITE_PERL%%/POE/Component/Client/POP3.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/POE/Component/Client/POP3/.packlist
%%PORTDOCS%%%%EXAMPLESDIR%%/term.perl
%%PORTDOCS%%%%EXAMPLESDIR%%/test.perl
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/term.perl
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test.perl
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
@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

View File

@ -16,7 +16,7 @@ PLIST= ${WRKDIR}/.PLIST.more
CFLAGS+= -DPREFIX=${PREFIX}
UNIQUENAME= ${.CURDIR:T}
OPTIONS_DEFINE= SMTP_AFTER_POP3 STANDALONE_POP3 SETPROCTITLE
OPTIONS_DEFINE= SMTP_AFTER_POP3 STANDALONE_POP3 SETPROCTITLE DOCS
NO_OPTIONS_SORT=yes
SMTP_AFTER_POP3_DESC=Enable SMTP-after-POP support
STANDALONE_POP3_DESC=Enable standalone server mode
@ -89,7 +89,7 @@ do-install:
${INSTALL_DATA} ${FILESDIR}/popauth.m4 ${STAGEDIR}${CFDIR}/hack/
.endif
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/DESIGN ${STAGEDIR}${DOCSDIR}/
${INSTALL_MAN} ${WRKSRC}/LICENSE ${STAGEDIR}${DOCSDIR}/

View File

@ -19,14 +19,14 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
PORTDOCS= README
PLIST_FILES= bin/${PORTNAME}
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|/bin|${PREFIX}/bin|g' ${WRKSRC}/qgmailnotifier.pro
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.if !defined(NOPORTDOCS)
${MKDIR} ${STAGEDIR}${DOCSDIR}
@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>

View File

@ -18,16 +18,14 @@ GNU_CONFIGURE= yes
SUB_FILES= pkg-message
SUB_LIST= QMAIL_PREFIX=${QMAIL_PREFIX}
.include <bsd.port.pre.mk>
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${STAGEDIR}${PREFIX}|g' \
${WRKSRC}/src/Makefile.in
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -22,6 +22,8 @@ DOCS= NEWS README TODO procedure.txt schema.mysql
ALL_TARGET= ${PROGS}
OPTIONS_DEFINE= DOCS
do-configure:
${ECHO_CMD} "${STAGEDIR}${PREFIX}/bin" > ${WRKSRC}/conf-bin
${ECHO_CMD} "${STAGEDIR}${MANPREFIX}/man" > ${WRKSRC}/conf-man
@ -31,9 +33,7 @@ do-configure:
do-install:
cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PROGS} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/qmail-autoresponder.1 ${STAGEDIR}${MANPREFIX}/man/man1
.if !defined(NOPORTDOCS)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>

View File

@ -15,6 +15,8 @@ CFLAGS+= -DHAVE_SRANDOM
DOCS= NEWS README TODO
EXAMPLES= cron.hourly message.txt
OPTIONS_DEFINE= DOCS EXAMPLES
do-configure:
${ECHO_CMD} "${STAGEDIR}${PREFIX}/bin" > ${WRKSRC}/conf-bin
${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
@ -24,9 +26,7 @@ do-install:
cd ${WRKSRC} && ./installer
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>

View File

@ -17,6 +17,8 @@ BGLIBS_LIB= ${LOCALBASE}/lib/bglibs
DOCS= NEWS README TODO
OPTIONS_DEFINE= DOCS EXAMPLES
do-configure:
${ECHO_CMD} "${STAGEDIR}${PREFIX}/bin" > ${WRKSRC}/conf-bin
${ECHO_CMD} "${STAGEDIR}${MANPREFIX}/man" > ${WRKSRC}/conf-man
@ -28,9 +30,7 @@ do-configure:
post-install:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC} && ${INSTALL_DATA} samples/* ${STAGEDIR}${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>

View File

@ -16,6 +16,8 @@ PORTDOCS= INSTALL LICENSE README
USES= shebangfix
SHEBANG_FILES= populate.pl
OPTIONS_DEFINE= DOCS
do-build:
@(cd ${WRKSRC} ;\
${ECHO_MSG} "Compiling ${PORTNAME}:" ; \
@ -26,11 +28,9 @@ do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin
@${INSTALL_SCRIPT} ${WRKSRC}/populate.pl \
${STAGEDIR}${PREFIX}/bin/populate-qmail-queue.pl
.if !defined(NOPORTDOCS)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>

View File

@ -15,16 +15,16 @@ GNU_CONFIGURE= yes
PORTDOCS= INSTALL
PLIST_FILES= bin/renattach etc/renattach.conf.ex man/man1/renattach.1.gz
OPTIONS_DEFINE= DOCS
post-extract:
@${RM} -f ${WRKSRC}/src/getopt*
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
@${ECHO_MSG} "===================="
@${ECHO_MSG} "Check with ${DOCSDIR}/INSTALL"
@${ECHO_MSG} "After that you may need to adjust renattach.conf to your needs"
.endif
.include <bsd.port.mk>

View File

@ -25,7 +25,11 @@ PLIST= ${WRKDIR}/.pkg-plist
PKGMESSAGE= ${WRKDIR}/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
DISTFILES+= upgrading.shtml:upg
PORTDOCS= documentation.html upgrading.html loglevels.txt
@ -48,7 +52,7 @@ do-install:
${MKDIR} ${STAGEDIR}${DATADIR}
(cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR})
${RM} -rf ${STAGEDIR}${DATADIR}/docs
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/quickstart.shtml \
${STAGEDIR}${DOCSDIR}/documentation.html

View File

@ -15,16 +15,14 @@ USE_SM_COMPAT= yes
SQUIRREL_PLUGIN_NAME= ${PORTNAME:S/-/_/}
OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
.include "${.CURDIR}/../squirrelmail/bsd.squirrelmail.mk"
post-extract:
@${MV} ${WRKSRC}/${_SMSRCDIR}/config_example.php ${WRKSRC}/${_SMSRCDIR}/config.sample.php
@${RM} ${WRKSRC}/${_SMSRCDIR}/README
.ifdef NOPORTDOCS
@${RM} -R ${WRKSRC}/${_SMSRCDIR}/docs
.else
@${MV} ${WRKSRC}/${_SMSRCDIR}/docs ${WRKSRC}/${_SMSRCDIR}/doc
.endif
.include <bsd.port.post.mk>

View File

@ -14,21 +14,19 @@ USE_SM_COMPAT= yes
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
.include "${.CURDIR}/../squirrelmail/bsd.squirrelmail.mk"
# We need to rearrange, install and cleanup documentation pre-install
# because bsd.squirrelmail.mk installs everything under ${WRKSRC}/${PORTNAME}.
pre-install::
.if !defined(NOPORTDOCS)
cd ${WRKSRC}/${PORTNAME}/docs \
&& ${RM} .htaccess index.php \
&& ${MKDIR} ${STAGEDIR}${DOCSDIR} \
&& ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR} \
&& cd ${WRKSRC}/${PORTNAME} \
&& ${RM} -rf README docs
.else
cd ${WRKSRC}/${PORTNAME} && ${RM} -rf README docs
.endif
.include <bsd.port.post.mk>