mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
New Port: net/pdns
pdnsd is a proxy dns server with permanent caching PR: 22963 Submitted by: Roman Shterenzon <roman@xpert.com>
This commit is contained in:
parent
cc5ec17b7d
commit
95f68a9247
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=35966
25
dns/pdnsd/Makefile
Normal file
25
dns/pdnsd/Makefile
Normal file
@ -0,0 +1,25 @@
|
||||
# New ports collection makefile for: pdnsd
|
||||
# Date Created: 27 Oct 2000
|
||||
# Whom: Roman Shterenzon <roman@xpert.com>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= pdnsd
|
||||
PORTVERSION= 1.1.0b2
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://home.t-online.de/home/Moestl/
|
||||
|
||||
MAINTAINER= roman@xpert.com
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --with-cachedir=${PDNSDB}
|
||||
|
||||
PDNSDB= /var/db/pdnsd
|
||||
|
||||
post-install:
|
||||
@${MKDIR} ${PREFIX}/etc/rc.d
|
||||
@${INSTALL} ${COPY} -m 744 -o root ${FILESDIR}/pdnsd.sh ${PREFIX}/etc/rc.d/pdnsd.sh
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
1
dns/pdnsd/distinfo
Normal file
1
dns/pdnsd/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (pdnsd-1.1.0b2.tar.gz) = a05d414d9a543e8d211b0806bcb89833
|
19
dns/pdnsd/files/pdnsd.sh
Normal file
19
dns/pdnsd/files/pdnsd.sh
Normal file
@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
if [ -x /usr/local/sbin/pdnsd -a -f /usr/local/etc/pdnsd.conf ]; then
|
||||
/usr/local/sbin/pdnsd -d
|
||||
echo ' pdnsd'
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
killall pdnsd && echo -n ' pdnsd'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
1
dns/pdnsd/pkg-comment
Normal file
1
dns/pdnsd/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
Cacheing (permanently, writes to disk on exit) DNS proxy-server
|
20
dns/pdnsd/pkg-descr
Normal file
20
dns/pdnsd/pkg-descr
Normal file
@ -0,0 +1,20 @@
|
||||
pdnsd is a proxy dns server with permanent caching (the cache contents are
|
||||
written to hard disk on exit) that is designed to cope with unreacheable or
|
||||
down dns servers (for example in dial-in networking).
|
||||
pdnsd can be used with applications that do dns lookups, eg on startup, and
|
||||
can't be configured to change that behaviour, to prevent the often minute-long
|
||||
hangs (or even crashes) that result from stalled dns queries. Some Netscape
|
||||
Navigator versions for Unix, for example, expose this behaviour.
|
||||
pdnsd is configurable via a file and supports run-time configuration using the
|
||||
program pdnsd-ctl that comes with pdnsd. This allows you to set the status
|
||||
flags of servers that pdnsd knows (to influence which servers pdnsd will
|
||||
query), and the addition, deletion and invalidation of DNS records in pdnsd's
|
||||
cache.
|
||||
Parallel name server queries are supported. This is a technique that allows
|
||||
querying several servers at the same time so that very slow or unavailable
|
||||
servers will not block the answer for one timeout interval.
|
||||
Since version 1.0.0, pdnsd has full IPv6 support.
|
||||
|
||||
WWW: http://home.t-online.de/home/Moestl/
|
||||
|
||||
Roman Shterenzon <roman@xpert.com>
|
9
dns/pdnsd/pkg-install
Normal file
9
dns/pdnsd/pkg-install
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
PDNSDB=/var/db/pdnsd
|
||||
|
||||
mkdir -p ${PDNSDB}
|
||||
chown nobody ${PDNSDB}
|
||||
chmod 755 ${PDNSDB}
|
||||
dd if=/dev/zero of=${PDNSDB}/pdnsd.cache bs=1 count=4 >/dev/null 2>&1
|
||||
chown nobody ${PDNSDB}/pdnsd.cache
|
||||
chmod 640 ${PDNSDB}/pdnsd.cache
|
4
dns/pdnsd/pkg-message
Normal file
4
dns/pdnsd/pkg-message
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
You'll need to manually copy ${PREFIX}/etc/pdnsd.conf.sample to
|
||||
${PREFIX}/etc/pdnsd.conf and modify it for your needs.
|
||||
|
5
dns/pdnsd/pkg-plist
Normal file
5
dns/pdnsd/pkg-plist
Normal file
@ -0,0 +1,5 @@
|
||||
etc/pdnsd.conf.sample
|
||||
etc/rc.d/pdnsd.sh
|
||||
sbin/pdnsd
|
||||
sbin/pdnsd-ctl
|
||||
@unexec rm -rf /var/db/pdnsd
|
@ -204,6 +204,7 @@
|
||||
SUBDIR += pathchar
|
||||
SUBDIR += pchar
|
||||
SUBDIR += pcnfsd
|
||||
SUBDIR += pdnsd
|
||||
SUBDIR += perldap
|
||||
SUBDIR += pipsecd
|
||||
SUBDIR += pmf
|
||||
|
25
net/pdnsd/Makefile
Normal file
25
net/pdnsd/Makefile
Normal file
@ -0,0 +1,25 @@
|
||||
# New ports collection makefile for: pdnsd
|
||||
# Date Created: 27 Oct 2000
|
||||
# Whom: Roman Shterenzon <roman@xpert.com>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= pdnsd
|
||||
PORTVERSION= 1.1.0b2
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://home.t-online.de/home/Moestl/
|
||||
|
||||
MAINTAINER= roman@xpert.com
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --with-cachedir=${PDNSDB}
|
||||
|
||||
PDNSDB= /var/db/pdnsd
|
||||
|
||||
post-install:
|
||||
@${MKDIR} ${PREFIX}/etc/rc.d
|
||||
@${INSTALL} ${COPY} -m 744 -o root ${FILESDIR}/pdnsd.sh ${PREFIX}/etc/rc.d/pdnsd.sh
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
1
net/pdnsd/distinfo
Normal file
1
net/pdnsd/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (pdnsd-1.1.0b2.tar.gz) = a05d414d9a543e8d211b0806bcb89833
|
19
net/pdnsd/files/pdnsd.sh
Normal file
19
net/pdnsd/files/pdnsd.sh
Normal file
@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
if [ -x /usr/local/sbin/pdnsd -a -f /usr/local/etc/pdnsd.conf ]; then
|
||||
/usr/local/sbin/pdnsd -d
|
||||
echo ' pdnsd'
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
killall pdnsd && echo -n ' pdnsd'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
1
net/pdnsd/pkg-comment
Normal file
1
net/pdnsd/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
Cacheing (permanently, writes to disk on exit) DNS proxy-server
|
20
net/pdnsd/pkg-descr
Normal file
20
net/pdnsd/pkg-descr
Normal file
@ -0,0 +1,20 @@
|
||||
pdnsd is a proxy dns server with permanent caching (the cache contents are
|
||||
written to hard disk on exit) that is designed to cope with unreacheable or
|
||||
down dns servers (for example in dial-in networking).
|
||||
pdnsd can be used with applications that do dns lookups, eg on startup, and
|
||||
can't be configured to change that behaviour, to prevent the often minute-long
|
||||
hangs (or even crashes) that result from stalled dns queries. Some Netscape
|
||||
Navigator versions for Unix, for example, expose this behaviour.
|
||||
pdnsd is configurable via a file and supports run-time configuration using the
|
||||
program pdnsd-ctl that comes with pdnsd. This allows you to set the status
|
||||
flags of servers that pdnsd knows (to influence which servers pdnsd will
|
||||
query), and the addition, deletion and invalidation of DNS records in pdnsd's
|
||||
cache.
|
||||
Parallel name server queries are supported. This is a technique that allows
|
||||
querying several servers at the same time so that very slow or unavailable
|
||||
servers will not block the answer for one timeout interval.
|
||||
Since version 1.0.0, pdnsd has full IPv6 support.
|
||||
|
||||
WWW: http://home.t-online.de/home/Moestl/
|
||||
|
||||
Roman Shterenzon <roman@xpert.com>
|
9
net/pdnsd/pkg-install
Normal file
9
net/pdnsd/pkg-install
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
PDNSDB=/var/db/pdnsd
|
||||
|
||||
mkdir -p ${PDNSDB}
|
||||
chown nobody ${PDNSDB}
|
||||
chmod 755 ${PDNSDB}
|
||||
dd if=/dev/zero of=${PDNSDB}/pdnsd.cache bs=1 count=4 >/dev/null 2>&1
|
||||
chown nobody ${PDNSDB}/pdnsd.cache
|
||||
chmod 640 ${PDNSDB}/pdnsd.cache
|
4
net/pdnsd/pkg-message
Normal file
4
net/pdnsd/pkg-message
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
You'll need to manually copy ${PREFIX}/etc/pdnsd.conf.sample to
|
||||
${PREFIX}/etc/pdnsd.conf and modify it for your needs.
|
||||
|
5
net/pdnsd/pkg-plist
Normal file
5
net/pdnsd/pkg-plist
Normal file
@ -0,0 +1,5 @@
|
||||
etc/pdnsd.conf.sample
|
||||
etc/rc.d/pdnsd.sh
|
||||
sbin/pdnsd
|
||||
sbin/pdnsd-ctl
|
||||
@unexec rm -rf /var/db/pdnsd
|
Loading…
Reference in New Issue
Block a user