diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2014-04-02 23:34:30 +0800 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2014-04-02 23:34:30 +0800 |
commit | 0ffbe0cd888b1ed15a6fd236ed11f629d1b288ce (patch) | |
tree | 6da091f2e8e5dd93056715ad2779c67260226ae5 /mail | |
parent | 966bbc4ca732205c6bcc6d5bf01ef5cb83ce210c (diff) | |
download | freebsd-ports-gnome-0ffbe0cd888b1ed15a6fd236ed11f629d1b288ce.tar.gz freebsd-ports-gnome-0ffbe0cd888b1ed15a6fd236ed11f629d1b288ce.tar.zst freebsd-ports-gnome-0ffbe0cd888b1ed15a6fd236ed11f629d1b288ce.zip |
- Support staging
This uses similar methods as dns/djbns from r346769 and r349241
Diffstat (limited to 'mail')
-rw-r--r-- | mail/qmail-contrib/Makefile | 45 | ||||
-rw-r--r-- | mail/qmail-contrib/pkg-plist | 8 |
2 files changed, 37 insertions, 16 deletions
diff --git a/mail/qmail-contrib/Makefile b/mail/qmail-contrib/Makefile index ea9b031bb3db..977a88e886d9 100644 --- a/mail/qmail-contrib/Makefile +++ b/mail/qmail-contrib/Makefile @@ -18,54 +18,67 @@ OPTIONS_DEFINE= DOCS USES= qmail:run -NO_STAGE= yes -ALL_TARGET= it +ALL_TARGET= prog INSTALL_TARGET= setup -MAN1= dot-forward.1 fastforward.1 printforward.1 setforward.1 \ - newaliases.1 printmaillist.1 setmaillist.1 newinclude.1 - PREFIX?= ${QMAIL_PREFIX} +NO_PREFIX_RMDIR=yes FF_VER= 0.51 DF_VER= 0.71 QCK_VER= 0.1 +# XXX: This port should be split into sub-packages/ports WRKFF= ${WRKDIR}/fastforward-${FF_VER} WRKDF= ${WRKDIR}/dot-forward-${DF_VER} NO_MTREE= yes PORTDOCS= ALIASES +DOCSDIR= doc/${PORTNAME} .include <bsd.port.pre.mk> -.if (${PREFIX} != ${LOCALBASE}) -DOCSDIR= doc -.endif - pre-patch: @${PATCH} -d ${WRKFF} -s <${PATCHDIR}/extra-patch-newaliases post-patch: - @${REINPLACE_CMD} -e "s|.var.qmail|${QMAIL_PREFIX}|" \ - ${WRKFF}/conf-qmail \ - ${WRKDF}/conf-qmail + @${ECHO_CMD} "${QMAIL_PREFIX}" > ${WRKFF}/conf-qmail + @${ECHO_CMD} "${QMAIL_PREFIX}" > ${WRKDF}/conf-qmail @${REINPLACE_CMD} -e '/cat/d; s|doc/fastforward|${DOCSDIR}|g' \ ${WRKFF}/hier.c \ ${WRKDF}/hier.c - @${REINPLACE_CMD} -e "s|-O2|${CFLAGS}|" \ - ${WRKFF}/conf-cc \ - ${WRKDF}/conf-cc -.if empty(PORT_OPTIONS:MDOCS) +.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 do-build: @${MAKE} -C ${WRKDIR}/dot-forward-${DF_VER} ${ALL_TARGET} @${MAKE} -C ${WRKDIR}/fastforward-${FF_VER} ${ALL_TARGET} +# Do a dance to stage and keep out of resulting binaries (see r346769 +# and r349241) +pre-install: + ${MKDIR} ${STAGEDIR}${QMAIL_PREFIX}/${DOCSDIR} + @${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_home.o + @cd ${WRKFF} ; ${MAKE_CMD} 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_home.o + @cd ${WRKDF} ; ${MAKE_CMD} install instcheck + @${TOUCH} ${WRKDF}/dot-forward + @${MV} -f ${WRKDF}/conf-qmail.sav ${WRKDF}/conf-qmail + do-install: @${MAKE} -C ${WRKDIR}/dot-forward-${DF_VER} ${INSTALL_TARGET} @${MAKE} -C ${WRKDIR}/fastforward-${FF_VER} ${INSTALL_TARGET} diff --git a/mail/qmail-contrib/pkg-plist b/mail/qmail-contrib/pkg-plist index c227e2e6ec30..9c88663ebfa4 100644 --- a/mail/qmail-contrib/pkg-plist +++ b/mail/qmail-contrib/pkg-plist @@ -6,3 +6,11 @@ bin/printforward bin/printmaillist bin/setforward bin/setmaillist +man/man1/dot-forward.1.gz +man/man1/fastforward.1.gz +man/man1/newaliases.1.gz +man/man1/newinclude.1.gz +man/man1/printforward.1.gz +man/man1/printmaillist.1.gz +man/man1/setforward.1.gz +man/man1/setmaillist.1.gz |