[74713] trunk/dports/net/unbound/Portfile
snc at macports.org
snc at macports.org
Thu Dec 30 06:40:19 PST 2010
Revision: 74713
http://trac.macports.org/changeset/74713
Author: snc at macports.org
Date: 2010-12-30 06:40:12 -0800 (Thu, 30 Dec 2010)
Log Message:
-----------
unbound: PID file must exist, #27818
Modified Paths:
--------------
trunk/dports/net/unbound/Portfile
Modified: trunk/dports/net/unbound/Portfile
===================================================================
--- trunk/dports/net/unbound/Portfile 2010-12-30 14:27:19 UTC (rev 74712)
+++ trunk/dports/net/unbound/Portfile 2010-12-30 14:40:12 UTC (rev 74713)
@@ -5,6 +5,7 @@
name unbound
version 1.4.7
+revision 1
categories net
conflicts ldns
license BSD
@@ -42,14 +43,17 @@
adduser ${unbounduser} shell=/sbin/nologin gid=${gid} \
home=/dev/null \
realname=Unbound\ Resolver
+ xinstall -o ${unbounduser} -g ${unboundgroup} -m 755 -d ${destroot}${prefix}/var/run/${name}
move ${destroot}${prefix}/etc/${name}/${name}.conf ${destroot}${prefix}/etc/${name}/${name}.conf-dist
+ touch ${destroot}${prefix}/var/run/${name}/${name}.pid
+ file attributes ${destroot}${prefix}/var/run/${name}/${name}.pid -owner ${unbounduser}
}
# Make it run on boot
startupitem.create yes
startupitem.name unbound
startupitem.start ${prefix}/sbin/unbound
-startupitem.stop "/bin/kill \$(cat ${prefix}/etc/unbound/unbound.pid)"
+startupitem.stop "/bin/kill \$(cat ${prefix}/var/run/unbound/unbound.pid)"
livecheck.type regex
livecheck.url ${homepage}/download.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101230/4f4dcaff/attachment.html>
More information about the macports-changes
mailing list