Add an rc script, from frantisek holop.
Tweak the port a bit while here.
This commit is contained in:
parent
d62a03c9fd
commit
dbc0ee7438
@ -1,10 +1,10 @@
|
||||
# $OpenBSD: Makefile,v 1.19 2011/05/11 12:03:19 jasper Exp $
|
||||
# $OpenBSD: Makefile,v 1.20 2011/10/14 07:00:51 ajacoutot Exp $
|
||||
|
||||
COMMENT= threaded DNS daemon, optimized for caching
|
||||
|
||||
DISTNAME= pdnsd-1.2.8-par
|
||||
PKGNAME= ${DISTNAME:S/-par//}
|
||||
REVISION= 0
|
||||
REVISION= 1
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= ${HOMEPAGE}/releases/
|
||||
|
||||
@ -17,9 +17,8 @@ PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
WANTLIB= c pthread
|
||||
|
||||
NO_REGRESS= Yes
|
||||
WANTLIB += c pthread
|
||||
|
||||
USE_GMAKE= yes
|
||||
USE_GROFF= Yes
|
||||
|
@ -1,4 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.7 2011/05/11 12:03:19 jasper Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.8 2011/10/14 07:00:51 ajacoutot Exp $
|
||||
@newgroup _pdnsd:510
|
||||
@newuser _pdnsd:510:_pdnsd:daemon:Proxy DNS Server:/nonexistent:/sbin/nologin
|
||||
@extraunexec rm -rf /var/pdnsd/*
|
||||
@ -14,6 +14,7 @@ share/doc/pdnsd/manual.txt
|
||||
share/examples/pdnsd/
|
||||
share/examples/pdnsd/pdnsd.conf
|
||||
@sample ${SYSCONFDIR}/pdnsd.conf
|
||||
@rcscript ${RCDIR}/pdnsd
|
||||
@owner _pdnsd
|
||||
@group _pdnsd
|
||||
@sample /var/pdnsd/
|
||||
|
14
net/pdnsd/pkg/pdnsd.rc
Normal file
14
net/pdnsd/pkg/pdnsd.rc
Normal file
@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $OpenBSD: pdnsd.rc,v 1.1 2011/10/14 07:00:51 ajacoutot Exp $
|
||||
|
||||
daemon="${TRUEPREFIX}/sbin/pdnsd"
|
||||
daemon_flags="-d"
|
||||
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
rc_reload() {
|
||||
${TRUEPREFIX}/sbin/pdnsd-ctl config
|
||||
}
|
||||
|
||||
rc_cmd $1
|
Loading…
Reference in New Issue
Block a user