diff options
author | bapt <bapt@FreeBSD.org> | 2014-02-17 18:44:36 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-02-17 18:44:36 +0800 |
commit | 54721496ee60d9e6f746bc41f7d09bd84ff28c9b (patch) | |
tree | a24fa52c14a2e82fcd37fd22570180601bec5f1f /dns/djbdns | |
parent | aa29b5681451bf7fc87e9c7560cff438ed4cba5b (diff) | |
download | freebsd-ports-gnome-54721496ee60d9e6f746bc41f7d09bd84ff28c9b.tar.gz freebsd-ports-gnome-54721496ee60d9e6f746bc41f7d09bd84ff28c9b.tar.zst freebsd-ports-gnome-54721496ee60d9e6f746bc41f7d09bd84ff28c9b.zip |
Readd stage support
Build the port as if it didn't support stage,
Just before installing, rebuild the install and instcheck binaries with a different prefix including the destdir prefix
To avoid everything to be rebuilt again becore conf-home has changed save the original files before building
install and instcheck with the new prefix and restore the file again before the do-install target is run
This is the trick used in debian
Obtained from: debian
Diffstat (limited to 'dns/djbdns')
-rw-r--r-- | dns/djbdns/Makefile | 27 | ||||
-rw-r--r-- | dns/djbdns/pkg-plist | 25 |
2 files changed, 38 insertions, 14 deletions
diff --git a/dns/djbdns/Makefile b/dns/djbdns/Makefile index 795fb0c38a6c..f860e4ddbefe 100644 --- a/dns/djbdns/Makefile +++ b/dns/djbdns/Makefile @@ -3,7 +3,7 @@ PORTNAME?= djbdns PORTVERSION?= ${DJBDNS_VER} -PORTREVISION?= 15 +PORTREVISION?= 16 CATEGORIES?= dns MASTER_SITES= http://cr.yp.to/djbdns/ \ ftp://cr.yp.to/djbdns/ @@ -11,7 +11,7 @@ DISTNAME= djbdns-${DJBDNS_VER} DISTFILES= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER?= lx@FreeBSD.org -COMMENT?= A collection of secure and reliable DNS tools +COMMENT?= Collection of secure and reliable DNS tools RUN_DEPENDS= setuidgid:${PORTSDIR}/sysutils/daemontools \ tcpserver:${PORTSDIR}/sysutils/ucspi-tcp @@ -21,6 +21,8 @@ LEGAL_TEXT= No license -- see http://cr.yp.to/softwarelaw.html OPTIONS_DEFINE= DUMPCACHE IP6 IGNOREIP JUMBO MAN PERSISTENT_MMAP SRV DNSCURVE ADD_USERS OPTIONS_DEFAULT= MAN +OPTIONS_SUB= yes + DUMPCACHE_DESC= persistent cache for dnscache IP6_DESC= IPv6 support by Felix von Leitner IGNOREIP_DESC= ignoreip2 patch by Russell Nelson @@ -31,7 +33,6 @@ SRV_DESC= SRV record patch by Michael Handler DNSCURVE_DESC= DNSCurve support by Matthew Dempsky ADD_USERS_DESC= Add dnscache, tinydns and dnslog users/groups -NO_STAGE= yes .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MADD_USERS} @@ -58,15 +59,6 @@ CFLAGS+= -DDUMPCACHE MANDATE= -20031023 MASTER_SITES+= http://smarden.org/pape/djb/manpages/:manpages DISTFILES+= ${DISTNAME}-man${MANDATE}.tar.gz:manpages - -MAN1= dnsfilter.1 dnsip.1 dnsipq.1 dnsmx.1 dnsname.1 \ - dnsq.1 dnsqr.1 dnstrace.1 dnstracesort.1 dnstxt.1 \ - tinydns-get.1 -MAN8= axfr-get.8 axfrdns.8 axfrdns-conf.8 dnscache-conf.8 \ - dnscache.8 rbldns-conf.8 \ - rbldns-data.8 rbldns.8 tinydns-conf.8 tinydns-data.8 \ - tinydns-edit.8 tinydns.8 walldns-conf.8 walldns.8 -MANCOMPRESSED= no .endif .if ${PORT_OPTIONS:MIP6} @@ -138,10 +130,17 @@ post-patch: @echo "${CC} ${STRIP} ${LDFLAGS}" > ${WRKSRC}/conf-ld @echo "${PREFIX}" > ${WRKSRC}/conf-home +pre-install: + @${MV} -f ${WRKSRC}/conf-home ${WRKSRC}/conf-home.sav + @echo "${STAGEDIR}${PREFIX}" > ${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 + .if ${PORT_OPTIONS:MMAN} post-install: - @${INSTALL_MAN} ${WRKDIR}/djbdns-man/*.1 ${PREFIX}/man/man1/ - @${INSTALL_MAN} ${WRKDIR}/djbdns-man/*.8 ${PREFIX}/man/man8/ + @${INSTALL_MAN} ${WRKDIR}/djbdns-man/*.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/ + @${INSTALL_MAN} ${WRKDIR}/djbdns-man/*.8 ${STAGEDIR}${MAN8PREFIX}/man/man8/ .endif .include <bsd.port.mk> diff --git a/dns/djbdns/pkg-plist b/dns/djbdns/pkg-plist index 9d7942ac5588..f4a7ab24de04 100644 --- a/dns/djbdns/pkg-plist +++ b/dns/djbdns/pkg-plist @@ -30,3 +30,28 @@ bin/tinydns-get bin/walldns bin/walldns-conf etc/dnsroots.global +%%MAN%%man/man1/dnsfilter.1.gz +%%MAN%%man/man1/dnsip.1.gz +%%MAN%%man/man1/dnsipq.1.gz +%%MAN%%man/man1/dnsmx.1.gz +%%MAN%%man/man1/dnsname.1.gz +%%MAN%%man/man1/dnsq.1.gz +%%MAN%%man/man1/dnsqr.1.gz +%%MAN%%man/man1/dnstrace.1.gz +%%MAN%%man/man1/dnstracesort.1.gz +%%MAN%%man/man1/dnstxt.1.gz +%%MAN%%man/man1/tinydns-get.1.gz +%%MAN%%man/man8/axfr-get.8.gz +%%MAN%%man/man8/axfrdns-conf.8.gz +%%MAN%%man/man8/axfrdns.8.gz +%%MAN%%man/man8/dnscache-conf.8.gz +%%MAN%%man/man8/dnscache.8.gz +%%MAN%%man/man8/rbldns-conf.8.gz +%%MAN%%man/man8/rbldns-data.8.gz +%%MAN%%man/man8/rbldns.8.gz +%%MAN%%man/man8/tinydns-conf.8.gz +%%MAN%%man/man8/tinydns-data.8.gz +%%MAN%%man/man8/tinydns-edit.8.gz +%%MAN%%man/man8/tinydns.8.gz +%%MAN%%man/man8/walldns.8.gz +%%MAN%%man/man8/walldns-conf.8.gz |