From dbc0ee743852820798df98198eaebe9f217f6583 Mon Sep 17 00:00:00 2001 From: ajacoutot Date: Fri, 14 Oct 2011 07:00:51 +0000 Subject: [PATCH] Add an rc script, from frantisek holop. Tweak the port a bit while here. --- net/pdnsd/Makefile | 7 +++---- net/pdnsd/pkg/PLIST | 3 ++- net/pdnsd/pkg/pdnsd.rc | 14 ++++++++++++++ 3 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 net/pdnsd/pkg/pdnsd.rc diff --git a/net/pdnsd/Makefile b/net/pdnsd/Makefile index a8bed5f1755..ca1d79f84c6 100644 --- a/net/pdnsd/Makefile +++ b/net/pdnsd/Makefile @@ -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 diff --git a/net/pdnsd/pkg/PLIST b/net/pdnsd/pkg/PLIST index 411d7455df6..705619144d7 100644 --- a/net/pdnsd/pkg/PLIST +++ b/net/pdnsd/pkg/PLIST @@ -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/ diff --git a/net/pdnsd/pkg/pdnsd.rc b/net/pdnsd/pkg/pdnsd.rc new file mode 100644 index 00000000000..8621ee4f433 --- /dev/null +++ b/net/pdnsd/pkg/pdnsd.rc @@ -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