summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-09-03 16:37:31 +0000
committeramdmi3 <amdmi3@FreeBSD.org>2015-09-03 16:37:31 +0000
commit513e869cec30a5e3de6187cdf62c0b9b179a52a4 (patch)
tree939ee3e57b75483fbe6ff8296e85ba2c7beb09f5
parentd8e4cd2d9999c899f104bb8c29c45e5c0d8fa877 (diff)
downloadFreeBSD-ports-513e869cec30a5e3de6187cdf62c0b9b179a52a4.zip
FreeBSD-ports-513e869cec30a5e3de6187cdf62c0b9b179a52a4.tar.gz
- Switch to options helpers
- Add some NO_ARCHes - Fix and unsilence some installation commands Approved by: portmgr blanket
-rw-r--r--mail/emil/Makefile6
-rw-r--r--mail/ezmlm/Makefile6
-rw-r--r--mail/gmime2/Makefile6
-rw-r--r--mail/gmime24/Makefile6
-rw-r--r--mail/gmime26/Makefile9
-rw-r--r--mail/hashcash/Makefile10
-rw-r--r--mail/lmtp2nntp/Makefile6
-rw-r--r--mail/mew/Makefile6
-rw-r--r--mail/milter-bogom/Makefile6
-rw-r--r--mail/mixmaster/Makefile16
-rw-r--r--mail/mulberry/Makefile22
-rw-r--r--mail/mutt_vc_query/Makefile6
-rw-r--r--mail/postgrey/Makefile12
-rw-r--r--mail/py-spambayes/Makefile19
-rw-r--r--mail/qmail-activedir/Makefile6
-rw-r--r--mail/qmail-contrib/Makefile46
-rw-r--r--mail/qmhandle/Makefile9
-rw-r--r--mail/sentinel/Makefile4
18 files changed, 76 insertions, 125 deletions
diff --git a/mail/emil/Makefile b/mail/emil/Makefile
index 4b43609..3bb4bf5 100644
--- a/mail/emil/Makefile
+++ b/mail/emil/Makefile
@@ -20,10 +20,6 @@ CONFIGURE_ENV= YACC=byacc
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
-.if empty(PORT_OPTIONS:MDOCS)
-MAKE_ENV= NOPORTDOCS=yes
-.endif
+DOCS_MAKE_ENV_OFF= NOPORTDOCS=yes
.include <bsd.port.mk>
diff --git a/mail/ezmlm/Makefile b/mail/ezmlm/Makefile
index 477de76..767153e 100644
--- a/mail/ezmlm/Makefile
+++ b/mail/ezmlm/Makefile
@@ -30,8 +30,6 @@ DOCS= BLURB INSTALL README THANKS TODO
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
post-patch:
@${ECHO_CMD} "${PREFIX}/bin" > ${WRKSRC}/conf-bin
@${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
@@ -46,9 +44,9 @@ do-install:
${INSTALL_PROGRAM} ${PROGRAMS} ${STAGEDIR}${PREFIX}/bin && \
${INSTALL_MAN} *.1 ${STAGEDIR}${MANPREFIX}/man/man1 && \
${INSTALL_MAN} *.5 ${STAGEDIR}${MANPREFIX}/man/man5
-.if ${PORT_OPTIONS:MDOCS}
+
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
-.endif
.include <bsd.port.mk>
diff --git a/mail/gmime2/Makefile b/mail/gmime2/Makefile
index d6682fd..226240f 100644
--- a/mail/gmime2/Makefile
+++ b/mail/gmime2/Makefile
@@ -35,19 +35,15 @@ OPTIONS_DEFINE= DOCS
PORTDOCS= *
-.include <bsd.port.options.mk>
-
post-patch:
@${REINPLACE_CMD} -e "s|stdint.h|inttypes.h|" ${WRKSRC}/zentimer.h
@${REINPLACE_CMD} -e 's|-DG_DISABLE_DEPRECATED||g' \
${WRKSRC}/gmime/Makefile.in
-post-install:
-.if ${PORT_OPTIONS:MDOCS}
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in docs/reference/html/*
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
-.endif
.include <bsd.port.mk>
diff --git a/mail/gmime24/Makefile b/mail/gmime24/Makefile
index 06d4dab..edd04ce 100644
--- a/mail/gmime24/Makefile
+++ b/mail/gmime24/Makefile
@@ -35,18 +35,14 @@ OPTIONS_DEFINE= DOCS
PORTDOCS= *
-.include <bsd.port.options.mk>
-
post-patch:
@${REINPLACE_CMD} -e 's|-DG_DISABLE_DEPRECATED||g' \
${WRKSRC}/*/Makefile.in
-post-install:
-.if ${PORT_OPTIONS:MDOCS}
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in docs/reference/html/*
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
-.endif
.include <bsd.port.mk>
diff --git a/mail/gmime26/Makefile b/mail/gmime26/Makefile
index 1d01398..15dcb5c 100644
--- a/mail/gmime26/Makefile
+++ b/mail/gmime26/Makefile
@@ -28,22 +28,19 @@ CONFIGURE_ARGS?=--with-html-dir=${PREFIX}/share/doc \
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-OPTIONS_DEFINE= DOCS
+PORTDOCS= *
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e '/^SUBDIRS =/s/tests//' \
${WRKSRC}/Makefile.in
-.if ${PORT_OPTIONS:MDOCS}
-PORTDOCS= *
-post-install:
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in docs/reference/html/*
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
-.endif
.include <bsd.port.mk>
diff --git a/mail/hashcash/Makefile b/mail/hashcash/Makefile
index 345740e..1a23f10 100644
--- a/mail/hashcash/Makefile
+++ b/mail/hashcash/Makefile
@@ -14,7 +14,7 @@ LICENSE_NAME= CPL
LICENSE_TEXT= http://www.cypherspace.org/CPL/
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
-USES= tar:tgz
+USES= tar:tgz
PLIST_FILES= bin/hashcash bin/sha1
PLIST_FILES+= man/man1/hashcash.1.gz
@@ -27,13 +27,7 @@ MAKE_ENV+= STAGEDIR=${STAGEDIR}
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
-.if !${PORT_OPTIONS:MDOCS}
-
-post-patch:
+post-patch-DOCS-off:
${REINPLACE_CMD} -e '/DOC_INSTALL_PATH/d' ${WRKSRC}/Makefile
-.endif
-
.include <bsd.port.mk>
diff --git a/mail/lmtp2nntp/Makefile b/mail/lmtp2nntp/Makefile
index a76601e..f864892 100644
--- a/mail/lmtp2nntp/Makefile
+++ b/mail/lmtp2nntp/Makefile
@@ -24,18 +24,14 @@ PORTDOCS= INSTALL README
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
# Try to fix parallel builds (-jX)
post-patch:
@${REINPLACE_CMD} -e '/^all:/s, _SUBDIRS_all,, ; \
/^$$(PROG)/s,$$, _SUBDIRS_all,' ${WRKSRC}/Makefile.in
-post-install:
-.if ${PORT_OPTIONS:MDOCS}
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
-.endif
check: build
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
diff --git a/mail/mew/Makefile b/mail/mew/Makefile
index 7cf61a9..5c154da 100644
--- a/mail/mew/Makefile
+++ b/mail/mew/Makefile
@@ -41,13 +41,11 @@ PORTDOCS= 00api 00changes.0 00changes.1 00changes.2 00changes.3 \
00changes.6.5 00changes.6.6 \
00diff 00readme dot.emacs dot.mew dot.theme
-.include <bsd.port.options.mk>
-
post-install:
@${RM} -f ${STAGEDIR}${PREFIX}/${INFO_PATH}/*.info.~1~
-.if ${PORT_OPTIONS:MDOCS}
+
+post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
-.endif
.include <bsd.port.mk>
diff --git a/mail/milter-bogom/Makefile b/mail/milter-bogom/Makefile
index 3310edd..cff96f6 100644
--- a/mail/milter-bogom/Makefile
+++ b/mail/milter-bogom/Makefile
@@ -34,8 +34,6 @@ PORTDOCS= README CHANGELOG
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
post-patch:
${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|g' ${WRKSRC}/bogom.8
${REINPLACE_CMD} -e \
@@ -48,11 +46,11 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bogom ${STAGEDIR}${PREFIX}/sbin/
${INSTALL_MAN} ${WRKSRC}/bogom.8 ${STAGEDIR}${PREFIX}/man/man8/
${INSTALL_DATA} ${WRKSRC}/bogom.conf-example ${STAGEDIR}${PREFIX}/etc/
-.if ${PORT_OPTIONS:MDOCS}
+
+do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
.endfor
-.endif
.include <bsd.port.mk>
diff --git a/mail/mixmaster/Makefile b/mail/mixmaster/Makefile
index 5cdf3ca..9f0d7cd 100644
--- a/mail/mixmaster/Makefile
+++ b/mail/mixmaster/Makefile
@@ -29,11 +29,7 @@ CONFIG_FILES= abuse.txt.in dest.blk mix.cfg news.hlp pubring.mix type1.hlp \
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
-.if ${OSVERSION} < 1000000
-BROKEN= Does not compile
-.endif
+BROKEN_FreeBSD_9= does not compile
post-patch:
@${RM} ${WRKSRC}/Mix/conf/mix.cfg.orig
@@ -55,13 +51,13 @@ do-install:
${INSTALL_SCRIPT} ${WRKDIR}/mixmaster-update.pl ${STAGEDIR}${PREFIX}/bin/mixmaster-update
${INSTALL_MAN} ${WRKSRC}/Mix/mixmaster.1 ${STAGEDIR}${PREFIX}/man/man1/mixmaster.1
${INSTALL_MAN} ${WRKSRC}/Mix/mpgp.1 ${STAGEDIR}${PREFIX}/man/man1/mpgp.1
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${STAGEDIR}${DOCSDIR}
- @${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/Mix/,} ${STAGEDIR}${DOCSDIR}/
-.endif
.for FILE in ${CONFIG_FILES}
@${MKDIR} ${STAGEDIR}${ETCDIR}
- @${INSTALL_DATA} ${WRKSRC}/Mix/conf/${FILE} ${STAGEDIR}${ETCDIR}/${FILE}.sample
+ ${INSTALL_DATA} ${WRKSRC}/Mix/conf/${FILE} ${STAGEDIR}${ETCDIR}/${FILE}.sample
.endfor
+do-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/Mix/,} ${STAGEDIR}${DOCSDIR}/
+
.include <bsd.port.mk>
diff --git a/mail/mulberry/Makefile b/mail/mulberry/Makefile
index 2722dd5..a4dbb70 100644
--- a/mail/mulberry/Makefile
+++ b/mail/mulberry/Makefile
@@ -7,22 +7,19 @@ PORTREVISION= 2
CATEGORIES= mail linux
MASTER_SITES= http://www.mulberrymail.com/downloads/Mulberry/v${DISTVERSION:S/./_/g}/
DISTNAME= Mulberry
-EXTRACT_SUFX= .tgz
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Scalable high-performance GUI Internet Mail User Agent
-OPTIONS_DEFINE= DOCS
+USES= tar:tgz
NO_WRKSUBDIR= yes
USE_LINUX= yes
USE_LINUX_APPS= xorglibs
ONLY_FOR_ARCHS= i386 amd64
-.include <bsd.port.pre.mk>
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE= DOCS
-INSTALL_DIR?= ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755
PLUGINSDIR= ${PREFIX}/lib/${PORTNAME}/Plug-ins
RESOURCESDIR= ${PREFIX}/lib/${PORTNAME}/Resources
PIXMAPSDIR= ${PREFIX}/share/pixmaps
@@ -34,8 +31,8 @@ do-build:
${BRANDELF} -t Linux ${WRKSRC}/${PORTNAME}
do-install:
- ${INSTALL_DIR} ${STAGEDIR}${PLUGINSDIR}
- ${INSTALL_DIR} ${STAGEDIR}${PIXMAPSDIR}
+ ${MKDIR} ${STAGEDIR}${PLUGINSDIR}
+ ${MKDIR} ${STAGEDIR}${PIXMAPSDIR}
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
# ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/${PORTNAME}.bin
# ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
@@ -43,14 +40,15 @@ do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/Resources
${INSTALL_DATA} ${WRKSRC}/.${PORTNAME}/Resources/* ${STAGEDIR}${RESOURCESDIR}
${INSTALL_DATA} ${WRKSRC}/.${PORTNAME}/icons/* ${STAGEDIR}${PIXMAPSDIR}
- ${INSTALL_DIR} ${STAGEDIR}${PLUGINSDIR}/Timezones
+ ${MKDIR} ${STAGEDIR}${PLUGINSDIR}/Timezones
${INSTALL_DATA} ${WRKSRC}/.${PORTNAME}/Plug-ins/Timezones/* ${STAGEDIR}${PLUGINSDIR}/Timezones
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${FILESDIR}/mailcap ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${FILESDIR}/url.helpers ${STAGEDIR}${EXAMPLESDIR}
-.if ${PORT_OPTIONS:MDOCS}
- ${INSTALL_DIR} ${STAGEDIR}${DOCSDIR}
+
+do-install-DOCS-on:
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/.${PORTNAME}/CHANGES* ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/Mulberry_License ${STAGEDIR}${DOCSDIR}
-.endif
-.include <bsd.port.post.mk>
+
+.include <bsd.port.mk>
diff --git a/mail/mutt_vc_query/Makefile b/mail/mutt_vc_query/Makefile
index 2134c83..9236eb4 100644
--- a/mail/mutt_vc_query/Makefile
+++ b/mail/mutt_vc_query/Makefile
@@ -22,14 +22,10 @@ PLIST_FILES= bin/mutt_vc_query man/man1/mutt_vc_query.1.gz
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MDOCS}
-post-install:
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for DOC in AUTHORS ChangeLog NEWS README THANKS
${INSTALL_DATA} ${WRKSRC}/${DOC} ${STAGEDIR}${DOCSDIR}
.endfor
-.endif
.include <bsd.port.mk>
diff --git a/mail/postgrey/Makefile b/mail/postgrey/Makefile
index 77a3ad1..faaf641 100644
--- a/mail/postgrey/Makefile
+++ b/mail/postgrey/Makefile
@@ -21,6 +21,7 @@ RUN_DEPENDS= p5-Net-Server>=0:${PORTSDIR}/net/p5-Net-Server \
USE_PERL5= run
USE_RC_SUBR= ${PORTNAME}
NO_BUILD= yes
+NO_ARCH= yes
POD2MAN?= pod2man
PORTDOCS= README Changes README.exim
@@ -50,8 +51,6 @@ SHEBANG_FILES= postgrey policy-test contrib/postgreyreport
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
post-patch:
@${REINPLACE_CMD} -e 's#nogroup#${PG_GROUP}#' \
-e 's#/etc/main.cf#/etc/postfix/main.cf#' ${WRKSRC}/postgrey
@@ -74,12 +73,11 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/postgrey_${i} \
${STAGEDIR}${PREFIX}/etc/postfix/postgrey_${i}.sample
.endfor
+ cd ${WRKSRC} && \
+ ${INSTALL_MAN} ${MANPAGES} ${STAGEDIR}${MANPREFIX}/man/man1
-.if ${PORT_OPTIONS:MDOCS}
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
- @cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
-.endif
- @cd ${WRKSRC} && \
- ${INSTALL_MAN} ${MANPAGES} ${STAGEDIR}${MANPREFIX}/man/man1
+ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/mail/py-spambayes/Makefile b/mail/py-spambayes/Makefile
index a350b1d..6e46b7b 100644
--- a/mail/py-spambayes/Makefile
+++ b/mail/py-spambayes/Makefile
@@ -19,6 +19,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}bsddb>0:${PORTSDIR}/databases/py-bsddb \
USES= python:2
USE_PYTHON= distutils autoplist
+NO_ARCH= yes
USE_RC_SUBR= pyspamd
@@ -67,10 +68,13 @@ post-patch:
'/unknown_cache/s|pop3proxy-unknown-cache|${CACHEDIR}/pop3proxy-unknown-cache|' \
${WRKSRC}/spambayes/Options.py
-.include <bsd.port.options.mk>
-
post-install:
-.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${STAGEDIR}${CACHEDIR}/pop3proxy-spam-cache
+ @${MKDIR} ${STAGEDIR}${CACHEDIR}/pop3proxy-ham-cache
+ @${MKDIR} ${STAGEDIR}${CACHEDIR}/pop3proxy-unknown-cache
+ @${MKDIR} ${STAGEDIR}${DBDIR}
+
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in ${PORTDOCS}
@if [ -f ${WRKSRC}/${file} ]; then \
@@ -79,12 +83,7 @@ post-install:
.endfor
@${MKDIR} ${STAGEDIR}${DOCSDIR}/contrib
@${MKDIR} ${STAGEDIR}${DOCSDIR}/utilities
- @${INSTALL_DATA} ${WRKSRC}/contrib/* ${STAGEDIR}${DOCSDIR}/contrib
- @${INSTALL_DATA} ${WRKSRC}/utilities/* ${STAGEDIR}${DOCSDIR}/utilities
-.endif
- @${MKDIR} ${STAGEDIR}${CACHEDIR}/pop3proxy-spam-cache
- @${MKDIR} ${STAGEDIR}${CACHEDIR}/pop3proxy-ham-cache
- @${MKDIR} ${STAGEDIR}${CACHEDIR}/pop3proxy-unknown-cache
- @${MKDIR} ${STAGEDIR}${DBDIR}
+ ${INSTALL_DATA} ${WRKSRC}/contrib/* ${STAGEDIR}${DOCSDIR}/contrib
+ ${INSTALL_DATA} ${WRKSRC}/utilities/* ${STAGEDIR}${DOCSDIR}/utilities
.include <bsd.port.mk>
diff --git a/mail/qmail-activedir/Makefile b/mail/qmail-activedir/Makefile
index abdcee0..ad7f987 100644
--- a/mail/qmail-activedir/Makefile
+++ b/mail/qmail-activedir/Makefile
@@ -25,8 +25,6 @@ WANT_OPENLDAP_VER= ${WITH_OPENLDAP_VER}
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
post-patch:
@${REINPLACE_CMD} -e 's,/var/qmail,${QMAIL_PREFIX},g' \
-e 's,\(#define AD_USE_GC\) 1,\1 0,' \
@@ -43,9 +41,9 @@ do-install:
.for prog in ${BINARIES}
${INSTALL_PROGRAM} ${WRKSRC}/${prog} ${STAGEDIR}${PREFIX}/bin/
.endfor
-.if ${PORT_OPTIONS:MDOCS}
+
+do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/INSTALL ${STAGEDIR}${DOCSDIR}
-.endif
.include <bsd.port.mk>
diff --git a/mail/qmail-contrib/Makefile b/mail/qmail-contrib/Makefile
index 943d120..8f850ce 100644
--- a/mail/qmail-contrib/Makefile
+++ b/mail/qmail-contrib/Makefile
@@ -36,8 +36,6 @@ NO_MTREE= yes
PORTDOCS= ALIASES
DOCSDIR= doc/${PORTNAME}
-.include <bsd.port.pre.mk>
-
pre-patch:
@${PATCH} -d ${WRKFF} -s <${PATCHDIR}/extra-patch-newaliases
@@ -47,40 +45,40 @@ post-patch:
@${REINPLACE_CMD} -e '/cat/d; s|doc/fastforward|${DOCSDIR}|g' \
${WRKFF}/hier.c \
${WRKDF}/hier.c
-.if !${PORT_OPTIONS:MDOCS}
- @${REINPLACE_CMD} -E 's|^(.*${DOCSDIR})|// \1|g' \
- ${WRKFF}/hier.c
-.endif
@${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKFF}/conf-cc
@${ECHO_CMD} "${CC} ${STRIP} ${LDFLAGS}" > ${WRKFF}/conf-ld
@${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKDF}/conf-cc
@${ECHO_CMD} "${CC} ${STRIP} ${LDFLAGS}" > ${WRKDF}/conf-ld
+post-patch-DOCS-off:
+ @${REINPLACE_CMD} -E 's|^(.*${DOCSDIR})|// \1|g' \
+ ${WRKFF}/hier.c
+
do-build:
- @${MAKE} -C ${WRKDIR}/dot-forward-${DF_VER} ${ALL_TARGET}
- @${MAKE} -C ${WRKDIR}/fastforward-${FF_VER} ${ALL_TARGET}
+ ${MAKE_CMD} -C ${WRKDIR}/dot-forward-${DF_VER} ${ALL_TARGET}
+ ${MAKE_CMD} -C ${WRKDIR}/fastforward-${FF_VER} ${ALL_TARGET}
# Do a dance to stage and keep out of resulting binaries (see r346769
# and r349241)
post-build:
@${ECHO_MSG} "===> Rebuilding DJB installer to respect STAGEDIR"
- @${MV} -f ${WRKFF}/conf-qmail ${WRKFF}/conf-qmail.sav
- @${ECHO_CMD} "${STAGEDIR}${QMAIL_PREFIX}" > ${WRKFF}/conf-qmail
- @cd ${WRKFF} ; ${RM} -f install instcheck install.o instcheck.o hier.o auto_qmail.o auto_qmail.c
- @cd ${WRKFF} ; ${DO_MAKE_BUILD} install instcheck
- @${TOUCH} ${WRKFF}/newaliases ${WRKFF}/fastforward ${WRKFF}/newinclude
- @${MV} -f ${WRKFF}/conf-qmail.sav ${WRKFF}/conf-qmail
-
- @${MV} -f ${WRKDF}/conf-qmail ${WRKDF}/conf-qmail.sav
- @${ECHO_CMD} "${STAGEDIR}${QMAIL_PREFIX}" > ${WRKDF}/conf-qmail
- @cd ${WRKDF} ; ${RM} -f install instcheck install.o instcheck.o hier.o auto_qmail.o auto_qmail.c
- @cd ${WRKDF} ; ${DO_MAKE_BUILD} install instcheck
- @${TOUCH} ${WRKDF}/dot-forward
- @${MV} -f ${WRKDF}/conf-qmail.sav ${WRKDF}/conf-qmail
+ ${MV} -f ${WRKFF}/conf-qmail ${WRKFF}/conf-qmail.sav
+ ${ECHO_CMD} "${STAGEDIR}${QMAIL_PREFIX}" > ${WRKFF}/conf-qmail
+ cd ${WRKFF} ; ${RM} -f install instcheck install.o instcheck.o hier.o auto_qmail.o auto_qmail.c
+ cd ${WRKFF} ; ${DO_MAKE_BUILD} install instcheck
+ ${TOUCH} ${WRKFF}/newaliases ${WRKFF}/fastforward ${WRKFF}/newinclude
+ ${MV} -f ${WRKFF}/conf-qmail.sav ${WRKFF}/conf-qmail
+
+ ${MV} -f ${WRKDF}/conf-qmail ${WRKDF}/conf-qmail.sav
+ ${ECHO_CMD} "${STAGEDIR}${QMAIL_PREFIX}" > ${WRKDF}/conf-qmail
+ cd ${WRKDF} ; ${RM} -f install instcheck install.o instcheck.o hier.o auto_qmail.o auto_qmail.c
+ cd ${WRKDF} ; ${DO_MAKE_BUILD} install instcheck
+ ${TOUCH} ${WRKDF}/dot-forward
+ ${MV} -f ${WRKDF}/conf-qmail.sav ${WRKDF}/conf-qmail
do-install:
@${MKDIR} ${STAGEDIR}${QMAIL_PREFIX}/${DOCSDIR}
- @${MAKE} -C ${WRKDIR}/dot-forward-${DF_VER} ${INSTALL_TARGET}
- @${MAKE} -C ${WRKDIR}/fastforward-${FF_VER} ${INSTALL_TARGET}
+ ${MAKE_CMD} -C ${WRKDIR}/dot-forward-${DF_VER} ${INSTALL_TARGET}
+ ${MAKE_CMD} -C ${WRKDIR}/fastforward-${FF_VER} ${INSTALL_TARGET}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/mail/qmhandle/Makefile b/mail/qmhandle/Makefile
index 5927afb..cf18b6c 100644
--- a/mail/qmhandle/Makefile
+++ b/mail/qmhandle/Makefile
@@ -12,15 +12,14 @@ COMMENT= Tool to view and manage a qmail queue
LICENSE= GPLv2
-OPTIONS_DEFINE= DOCS
-
USES= qmail:run perl5 tar:bzip2
NO_BUILD= yes
+NO_ARCH= yes
PORTDOCS= HISTORY README
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's,^#!/usr/bin/perl,#!${PERL},g' \
@@ -33,11 +32,11 @@ post-patch:
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/qmHandle ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/qmHandle.conf.sample ${STAGEDIR}${PREFIX}/etc
-.if ${PORT_OPTIONS:MDOCS}
+
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
.endfor
-.endif
.include <bsd.port.mk>
diff --git a/mail/sentinel/Makefile b/mail/sentinel/Makefile
index 2bce5ac..cb94b0a 100644
--- a/mail/sentinel/Makefile
+++ b/mail/sentinel/Makefile
@@ -35,10 +35,10 @@ do-install:
@${MKDIR} ${STAGEDIR}/var/spool/sentinel
${INSTALL_DATA} ${FILESDIR}/000.sentinel.sh ${STAGEDIR}${PREFIX}/etc/rc.d/sentinel.sh-dist
${INSTALL_DATA} ${WRKSRC}/sentinel.cf.SAMPLE ${STAGEDIR}${PREFIX}/etc/sentinel.cf.dist
-.if ${PORT_OPTIONS:MDOCS}
+
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.FreeBSD ${STAGEDIR}${DOCSDIR}
-.endif
.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud