aboutsummaryrefslogtreecommitdiff
path: root/dns
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2009-05-31 13:20:05 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2009-05-31 13:20:05 +0000
commite0cbb5eccfb7e6965a5e5c937c8398da47584e4f (patch)
treeeb0b947981eb8b91f7948ce301933f28fa0c18f3 /dns
parent72f1ab85b6701a2d5642c7beaaf3a56b7e65a74e (diff)
downloadports-e0cbb5eccfb7e6965a5e5c937c8398da47584e4f.tar.gz
ports-e0cbb5eccfb7e6965a5e5c937c8398da47584e4f.zip
Notes
Diffstat (limited to 'dns')
-rw-r--r--dns/ldns/Makefile29
-rw-r--r--dns/ldns/pkg-plist22
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