1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
PR:		97852
Submitted by:	Zane C. B. <v.velox@vvelox.net> with changes from maintainer
Approved by:	gabor (maintainer)
This commit is contained in:
Erwin Lansing 2006-06-19 11:35:26 +00:00
parent 3b52b48898
commit 4040c98842
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=165770
4 changed files with 20 additions and 26 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= pdnsd
PORTVERSION= 1.2.4
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= dns
MASTER_SITES= http://www.phys.uu.nl/~rombouts/pdnsd/releases/
DISTNAME= ${PORTNAME}-${PORTVERSION}-par
@ -17,6 +17,7 @@ COMMENT= Caching (permanently, writes to disk on exit) DNS proxy-server
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_RC_SUBR= pdnsd
CONFIGURE_ARGS= --with-cachedir=${PDNSDB} \
--disable-src-addr-disc
@ -39,12 +40,9 @@ CONFIGURE_ARGS+= --enable-ipv6
.endif
post-install:
@${MKDIR} ${PREFIX}/etc/rc.d
@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/pdnsd.sh > ${PREFIX}/etc/rc.d/pdnsd.sh
@${CHMOD} 750 ${PREFIX}/etc/rc.d/pdnsd.sh
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${DOC_FILES:S@^@${DOCSRCDIR}/@} ${DOCSDIR}
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${DOC_FILES:S@^@${DOCSRCDIR}/@} ${DOCSDIR}
.endif
@${CAT} ${PKGMESSAGE}

16
dns/pdnsd/files/pdnsd.in Normal file
View File

@ -0,0 +1,16 @@
#!/bin/sh
# PROVIDE: pdnsd
# REQUIRE: netif
# BEFORE: LOGIN
. %%RC_SUBR%%
name="pdnsd"
rcvar=${name}_enable
command="%%PREFIX%%/sbin/pdnsd"
pdnsd_flags="-d"
required_files="%%PREFIX%%/etc/pdnsd.conf"
load_rc_config $name
run_rc_command "$1"

View File

@ -1,19 +0,0 @@
#!/bin/sh
case $1 in
start)
if [ -x %%PREFIX%%/sbin/pdnsd -a -f %%PREFIX%%/etc/pdnsd.conf ]; then
%%PREFIX%%/sbin/pdnsd -d
echo -n ' pdnsd'
fi
;;
stop)
killall pdnsd && echo -n ' pdnsd'
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
exit 64
;;
esac
exit 0

View File

@ -1,5 +1,4 @@
etc/pdnsd.conf.sample
etc/rc.d/pdnsd.sh
sbin/pdnsd
sbin/pdnsd-ctl
%%PORTDOCS%%%%DOCSDIR%%/dl.html