diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2009-05-31 21:20:05 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2009-05-31 21:20:05 +0800 |
commit | e1b122844961692700ab16369b2414d0ebfb1242 (patch) | |
tree | be64a6ee8df470cc7a8d5c1dd7fa9e289a50cc06 /dns/ldns | |
parent | 3f12007c68fff15781552356ddb3b30941ccb950 (diff) | |
download | freebsd-ports-gnome-e1b122844961692700ab16369b2414d0ebfb1242.tar.gz freebsd-ports-gnome-e1b122844961692700ab16369b2414d0ebfb1242.tar.zst freebsd-ports-gnome-e1b122844961692700ab16369b2414d0ebfb1242.zip |
- Adding option for building example programs
PR: 134927
Submitted by: Konstantin Saurbier <konstantin@saurbier.net> (maintainer)
Diffstat (limited to 'dns/ldns')
-rw-r--r-- | dns/ldns/Makefile | 29 | ||||
-rw-r--r-- | dns/ldns/pkg-plist | 22 |
2 files changed, 50 insertions, 1 deletions
diff --git a/dns/ldns/Makefile b/dns/ldns/Makefile index 9b68054ec5fb..0b8dd6e67b1a 100644 --- a/dns/ldns/Makefile +++ b/dns/ldns/Makefile @@ -7,6 +7,7 @@ PORTNAME= ldns PORTVERSION= 1.5.1 +PORTREVISION= 1 CATEGORIES= dns MASTER_SITES= http://www.nlnetlabs.nl/downloads/ldns/ @@ -18,7 +19,8 @@ USE_GMAKE= yes USE_OPENSSL= yes USE_LDCONFIG= yes -OPTIONS= DOCS "With documentation" Off +OPTIONS= DOCS "With documentation" Off \ + EXAMPLES "With example programs" Off .include <bsd.port.pre.mk> @@ -217,4 +219,29 @@ MAN3= ldns_bget_token.3 ldns_bgetc.3 ldns_bskipcs.3 ldns_buffer.3 \ ldns_zone_sort.3 .endif +.if defined(WITH_EXAMPLES) +PLIST_SUB+= EXAMPLES="" +NOMANCOMPRESS= true +MANCOMPRESSED= no +MAN1= ldns-chaos.1 ldns-nsec3-hash.1 ldns-update.1 ldns-compare-zones.1 \ + ldns-read-zone.1 ldns-verify-zone.1 ldns-dpa.1 ldns-resolver.1 \ + ldns-version.1 ldns-key2ds.1 ldns-revoke.1 ldns-walk.1 \ + ldns-keyfetcher.1 ldns-rrsig.1 ldns-zcat.1 ldns-keygen.1 \ + ldns-signzone.1 ldns-zsplit.1 ldns-mx.1 ldns-testns.1 ldnsd.1 \ + ldns-notify.1 + +post-configure: + @(cd ${WRKSRC}/examples; ./configure --prefix=${PREFIX} \ + --infodir=${PREFIX}/${INFO_PATH} --mandir=${MANPREFIX}/man \ + --build=${CONFIGURE_TARGET}) + +post-build: + @(cd ${WRKSRC}/examples; ${GMAKE}) + +post-install: + @(cd ${WRKSRC}/examples; ${GMAKE} install) +.else +PLIST_SUB+= EXAMPLES="@comment " +.endif + .include <bsd.port.post.mk> diff --git a/dns/ldns/pkg-plist b/dns/ldns/pkg-plist index b14ac956224a..fb78e7c49557 100644 --- a/dns/ldns/pkg-plist +++ b/dns/ldns/pkg-plist @@ -1,3 +1,25 @@ +%%EXAMPLES%%bin/ldns-chaos +%%EXAMPLES%%bin/ldns-compare-zones +%%EXAMPLES%%bin/ldns-dpa +%%EXAMPLES%%bin/ldns-key2ds +%%EXAMPLES%%bin/ldns-keyfetcher +%%EXAMPLES%%bin/ldns-keygen +%%EXAMPLES%%bin/ldns-mx +%%EXAMPLES%%bin/ldns-notify +%%EXAMPLES%%bin/ldns-nsec3-hash +%%EXAMPLES%%bin/ldns-read-zone +%%EXAMPLES%%bin/ldns-resolver +%%EXAMPLES%%bin/ldns-revoke +%%EXAMPLES%%bin/ldns-rrsig +%%EXAMPLES%%bin/ldns-signzone +%%EXAMPLES%%bin/ldns-testns +%%EXAMPLES%%bin/ldns-update +%%EXAMPLES%%bin/ldns-verify-zone +%%EXAMPLES%%bin/ldns-version +%%EXAMPLES%%bin/ldns-walk +%%EXAMPLES%%bin/ldns-zcat +%%EXAMPLES%%bin/ldns-zsplit +%%EXAMPLES%%bin/ldnsd include/ldns/buffer.h include/ldns/common.h include/ldns/dname.h |