1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00

- unbound runned in chroot by default. it brings us a problem with

pid file. place it to PREFIX/etc/unbound as an author do.
This commit is contained in:
Sergey Matveychuk 2008-05-07 11:33:37 +00:00
parent d201e4165b
commit 50f8405cb2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=212788
4 changed files with 8 additions and 15 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= unbound
PORTVERSION= 0.11
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= dns
MASTER_SITES= http://unbound.net/downloads/
@ -44,4 +44,7 @@ post-patch:
pre-install:
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
post-install:
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.post.mk>

View File

@ -1,11 +0,0 @@
--- configure.orig 2008-04-25 18:25:51.000000000 +0400
+++ configure 2008-04-25 18:26:00.000000000 +0400
@@ -3300,7 +3300,7 @@
cat >>confdefs.h <<_ACEOF
-#define PIDFILE "$ub_dir/unbound.pid"
+#define PIDFILE "/var/run/unbound.pid"
_ACEOF

View File

@ -37,9 +37,10 @@ PRE-INSTALL)
exit 1
fi
fi
;;
[ -d /var/run/unbound ] || mkdir -p /var/run/unbound
chown "${USER}" /var/run/unbound
POST-INSTALL)
chown "${USER}" $PREFIX/etc/unbound
;;
*)
;;

View File

@ -16,7 +16,7 @@ name="unbound"
rcvar=`set_rcvar`
command="%%PREFIX%%/sbin/unbound"
pidfile="/var/run/unbound/unbound.pid"
pidfile="%%PREFIX%%/etc/unbound/unbound.pid"
extra_commands="reload"
load_rc_config $name