diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2014-04-03 09:36:01 +0800 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2014-04-03 09:36:01 +0800 |
commit | a3ea4e44e7500aa9b9afb7103cbc7c365247f0fe (patch) | |
tree | 6672660915034885d84af884ddeeb2dd69b3e69e /mail/qmailanalog | |
parent | 8d5ed882f7c6eca01641e3cc50654310a71b8f83 (diff) | |
download | freebsd-ports-gnome-a3ea4e44e7500aa9b9afb7103cbc7c365247f0fe.tar.gz freebsd-ports-gnome-a3ea4e44e7500aa9b9afb7103cbc7c365247f0fe.tar.zst freebsd-ports-gnome-a3ea4e44e7500aa9b9afb7103cbc7c365247f0fe.zip |
- Support staging
This uses similar methods as dns/djbdns from r346769 and r349241
Diffstat (limited to 'mail/qmailanalog')
-rw-r--r-- | mail/qmailanalog/Makefile | 24 | ||||
-rw-r--r-- | mail/qmailanalog/pkg-plist | 5 |
2 files changed, 22 insertions, 7 deletions
diff --git a/mail/qmailanalog/Makefile b/mail/qmailanalog/Makefile index 1914687938ae..d32d9a25f680 100644 --- a/mail/qmailanalog/Makefile +++ b/mail/qmailanalog/Makefile @@ -9,16 +9,14 @@ MASTER_SITES= http://cr.yp.to/software/ \ http://www.emaillab.org/djb/qmailanalog/ MAINTAINER= bdrewery@FreeBSD.org -COMMENT= Tools to analyze qmail-send's activity +COMMENT= Tools to analyze qmail-send activity USES= qmail:run -NO_STAGE= yes -ALL_TARGET= it +ALL_TARGET= prog INSTALL_TARGET= setup MANPREFIX= ${QMPREFIX} -MAN1= matchup.1 xqp.1 xsender.1 xrecipient.1 columnt.1 PLIST_SUB+= MYSUBDIR=${MYSUBDIR} @@ -29,6 +27,7 @@ MYSUBDIR?= .endif PREFIX?= ${QMAIL_PREFIX} +NO_PREFIX_RMDIR=yes QMPREFIX?= ${PREFIX}/${MYSUBDIR} NO_MTREE= yes @@ -40,12 +39,23 @@ BROKEN= Cannot Make and Install with different PREFIX or QMAIL_PREFIX .endif post-patch: - @${REINPLACE_CMD} "s|.usr.local.qmailanalog|${QMPREFIX}|" ${WRKSRC}/conf-home - @${REINPLACE_CMD} "s|-O2|${CFLAGS}|" ${WRKSRC}/conf-cc + @${ECHO_CMD} "${QMPREFIX}" > ${WRKSRC}/conf-home + @${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc + @${ECHO_CMD} "${CC} ${STRIP} ${LDFLAGS}" > ${WRKSRC}/conf-ld @${REINPLACE_CMD} 's|02755|0755|g; /cat/d' ${WRKSRC}/hier.c @${REINPLACE_CMD} 's|^man prog|prog|g' ${WRKSRC}/Makefile +# Do a dance to stage and keep out of resulting binaries (see r346769 +# and r349241) pre-install: - @${MKDIR} ${QMPREFIX} + @${MKDIR} ${STAGEDIR}${QMPREFIX} + @${MV} -f ${WRKSRC}/conf-home ${WRKSRC}/conf-home.sav + @${ECHO_CMD} "${STAGEDIR}${QMPREFIX}" > ${WRKSRC}/conf-home + @cd ${WRKSRC} ; ${RM} -f install instcheck install.o instcheck.o hier.o auto_home.o + @cd ${WRKSRC} ; ${MAKE_CMD} install instcheck + @${MV} -f ${WRKSRC}/conf-home.sav ${WRKSRC}/conf-home + +post-install: + ${INSTALL_MAN} ${WRKSRC}/*.1 ${STAGEDIR}${MANPREFIX}/man/man1/ .include <bsd.port.post.mk> diff --git a/mail/qmailanalog/pkg-plist b/mail/qmailanalog/pkg-plist index 9c4d222dbeee..16e4a6bd1b6b 100644 --- a/mail/qmailanalog/pkg-plist +++ b/mail/qmailanalog/pkg-plist @@ -25,6 +25,11 @@ %%MYSUBDIR%%bin/zsuids %%MYSUBDIR%%doc/ACCOUNTING %%MYSUBDIR%%doc/MATCHUP +%%MYSUBDIR%%man/man1/columnt.1.gz +%%MYSUBDIR%%man/man1/matchup.1.gz +%%MYSUBDIR%%man/man1/xqp.1.gz +%%MYSUBDIR%%man/man1/xrecipient.1.gz +%%MYSUBDIR%%man/man1/xsender.1.gz @dirrm %%MYSUBDIR%%man/man1 @dirrm %%MYSUBDIR%%man @dirrm %%MYSUBDIR%%doc |