1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

Two changes to the RC script

- Add a dependency on ldconfig
- Allow people to change the pidfile

PR:		188439
Submitted by:	Oliver Lehmann
Sponsored by:	Absolight
This commit is contained in:
Mathieu Arnold 2014-04-10 20:43:50 +00:00
parent 9db5d92352
commit 47fccddc36
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=350848
6 changed files with 15 additions and 14 deletions

View File

@ -2,6 +2,7 @@
PORTNAME= bind
PORTVERSION= 9.10.0rc1
PORTREVISION= 1
CATEGORIES= dns net ipv6
MASTER_SITES= ${MASTER_SITE_ISC}
MASTER_SITE_SUBDIR= bind9/${ISCVERSION}

View File

@ -4,7 +4,7 @@
#
# PROVIDE: named
# REQUIRE: FILESYSTEMS defaultroute
# REQUIRE: FILESYSTEMS defaultroute ldconfig
# BEFORE: NETWORKING
# KEYWORD: shutdown
@ -92,9 +92,9 @@ named_prestart()
warn 'named_pidfile: now determined from the conf file'
fi
echo ${pidfile%/pid}
if [ ! -d ${pidfile%/pid} ]; then
install -d -o ${named_uid} -g ${named_uid} ${pidfile%/pid}
piddir=`/usr/bin/dirname ${pidfile}`
if [ ! -d ${piddir} ]; then
install -d -o ${named_uid} -g ${named_uid} ${piddir}
fi
command_args="-u ${named_uid:=root} -c $named_conf $command_args"

View File

@ -2,7 +2,7 @@
PORTNAME= bind
PORTVERSION= 9.8.7
PORTREVISION= 7
PORTREVISION= 8
CATEGORIES= dns net ipv6
MASTER_SITES= ${MASTER_SITE_ISC}
MASTER_SITE_SUBDIR= bind9/${ISCVERSION}

View File

@ -4,7 +4,7 @@
#
# PROVIDE: named
# REQUIRE: FILESYSTEMS defaultroute
# REQUIRE: FILESYSTEMS defaultroute ldconfig
# BEFORE: NETWORKING
# KEYWORD: shutdown
@ -91,9 +91,9 @@ named_prestart()
warn 'named_pidfile: now determined from the conf file'
fi
echo ${pidfile%/pid}
if [ ! -d ${pidfile%/pid} ]; then
install -d -o ${named_uid} -g ${named_uid} ${pidfile%/pid}
piddir=`/usr/bin/dirname ${pidfile}`
if [ ! -d ${piddir} ]; then
install -d -o ${named_uid} -g ${named_uid} ${piddir}
fi
command_args="-u ${named_uid:=root} -c $named_conf $command_args"

View File

@ -2,7 +2,7 @@
PORTNAME= bind
PORTVERSION= 9.9.5
PORTREVISION= 9
PORTREVISION= 10
CATEGORIES= dns net ipv6
MASTER_SITES= ${MASTER_SITE_ISC}
MASTER_SITE_SUBDIR= bind9/${ISCVERSION}

View File

@ -4,7 +4,7 @@
#
# PROVIDE: named
# REQUIRE: FILESYSTEMS defaultroute
# REQUIRE: FILESYSTEMS defaultroute ldconfig
# BEFORE: NETWORKING
# KEYWORD: shutdown
@ -91,9 +91,9 @@ named_prestart()
warn 'named_pidfile: now determined from the conf file'
fi
echo ${pidfile%/pid}
if [ ! -d ${pidfile%/pid} ]; then
install -d -o ${named_uid} -g ${named_uid} ${pidfile%/pid}
piddir=`/usr/bin/dirname ${pidfile}`
if [ ! -d ${piddir} ]; then
install -d -o ${named_uid} -g ${named_uid} ${piddir}
fi
command_args="-u ${named_uid:=root} -c $named_conf $command_args"