summaryrefslogtreecommitdiff
path: root/dns/pdnsd
diff options
context:
space:
mode:
authorGabor Kovesdan <gabor@FreeBSD.org>2007-09-08 14:55:27 +0000
committerGabor Kovesdan <gabor@FreeBSD.org>2007-09-08 14:55:27 +0000
commit3d8b1bec432e279a8d574faabb9679f06f10e15c (patch)
tree9a99804fec1248de49c59cd899c6b0744c701dec /dns/pdnsd
parent- Update to 1.0.6 (diff)
- Update to 1.2.6
- OPTIONSify - If does not exist, install a conf file from the sample
Notes
Notes: svn path=/head/; revision=199114
Diffstat (limited to 'dns/pdnsd')
-rw-r--r--dns/pdnsd/Makefile10
-rw-r--r--dns/pdnsd/distinfo6
-rw-r--r--dns/pdnsd/pkg-plist2
3 files changed, 13 insertions, 5 deletions
diff --git a/dns/pdnsd/Makefile b/dns/pdnsd/Makefile
index 2708fab5ddb7..f833407db9c1 100644
--- a/dns/pdnsd/Makefile
+++ b/dns/pdnsd/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= pdnsd
-PORTVERSION= 1.2.5
+PORTVERSION= 1.2.6
CATEGORIES= dns ipv6
MASTER_SITES= http://www.phys.uu.nl/~rombouts/pdnsd/releases/
DISTNAME= ${PORTNAME}-${PORTVERSION}-par
@@ -32,9 +32,13 @@ DOCSRCDIR= ${WRKSRC}/doc
DOC_FILES= html/dl.html html/doc.html html/faq.html html/index.html
DOC_FILES+= txt/faq.txt txt/intro.txt txt/manual.txt
+CFLAGS+= ${PTHREAD_LIBS}
+
+OPTIONS= IPV6 "IPv6 support" on
+
.include <bsd.port.pre.mk>
-.if !defined(WITHOUT_IPV6)
+.if defined(WITH_IPV6)
CONFIGURE_ARGS+= --enable-ipv6
.endif
@@ -43,6 +47,8 @@ post-install:
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${DOC_FILES:S@^@${DOCSRCDIR}/@} ${DOCSDIR}
.endif
+ @[ -f ${PREFIX}/etc/pdnsd.conf ] || \
+ ${INSTALL_DATA} ${PREFIX}/etc/pdnsd.conf.sample ${PREFIX}/etc/pdnsd.conf
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
diff --git a/dns/pdnsd/distinfo b/dns/pdnsd/distinfo
index e3672613d06d..34334b82fe52 100644
--- a/dns/pdnsd/distinfo
+++ b/dns/pdnsd/distinfo
@@ -1,3 +1,3 @@
-MD5 (pdnsd-1.2.5-par.tar.gz) = 8b1bb9b6b40383a484a90de5d992b4ee
-SHA256 (pdnsd-1.2.5-par.tar.gz) = 679b308373cf89983bd21432090aad11bb3109ea2e58532f2e2ac0cb3b97462f
-SIZE (pdnsd-1.2.5-par.tar.gz) = 537586
+MD5 (pdnsd-1.2.6-par.tar.gz) = 65c88e22152a885a0437578eedc8b118
+SHA256 (pdnsd-1.2.6-par.tar.gz) = 84a4165471856f71725e5dc958978d9aee671c33b94a7dca0be09e60d99069ed
+SIZE (pdnsd-1.2.6-par.tar.gz) = 451465
diff --git a/dns/pdnsd/pkg-plist b/dns/pdnsd/pkg-plist
index b6965f55bad1..512b980e7f46 100644
--- a/dns/pdnsd/pkg-plist
+++ b/dns/pdnsd/pkg-plist
@@ -1,4 +1,6 @@
+@unexec if cmp -s %D/etc/pdnsd.conf %D/etc/pdnsd.conf.sample; then rm %D/etc/pdnsd.conf; fi
etc/pdnsd.conf.sample
+@exec [ -f %D/etc/pdnsd.conf ] || install -m 644 %D/etc/pdnsd.conf.sample %D/etc/pdnsd.conf
sbin/pdnsd
sbin/pdnsd-ctl
%%PORTDOCS%%%%DOCSDIR%%/dl.html