1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00

- Adding option for building example programs

PR:		134927
Submitted by:	Konstantin Saurbier <konstantin@saurbier.net> (maintainer)
This commit is contained in:
Dmitry Marakasov 2009-05-31 13:20:05 +00:00
parent 72f1ab85b6
commit e0cbb5eccf
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=234911
2 changed files with 50 additions and 1 deletions

View File

@ -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>

View File

@ -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