- Update to 1.2.6

- OPTIONSify
- If does not exist, install a conf file from the sample
This commit is contained in:
Gabor Kovesdan 2007-09-08 14:55:27 +00:00
parent 58007414c8
commit 3d8b1bec43
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=199114
3 changed files with 13 additions and 5 deletions

View file

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

View file

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

View file

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