This commit is contained in:
parent
acea850f24
commit
1dcccc7a2a
@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 22 09:37:59 CEST 2007 - mt@suse.de
|
||||
|
||||
- Bug 275592: Added ldap and ndsd to the Should-Start/Stop LSB
|
||||
init info tags of the dhcp-server init script.
|
||||
- Bug #241113: Added copying of /etc/openldap/ldap.conf and
|
||||
more base libraries into the chroot jail.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 14 15:31:04 CEST 2007 - mt@suse.de
|
||||
|
||||
|
@ -23,7 +23,7 @@ License: BSD License and BSD-like
|
||||
Group: Productivity/Networking/Boot/Servers
|
||||
Autoreqprov: on
|
||||
Version: 3.0.5
|
||||
Release: 34
|
||||
Release: 37
|
||||
Summary: Common Files Used by ISC DHCP Software
|
||||
URL: http://www.isc.org/isc/dhcp.html
|
||||
Source0: http://ftp.isc.org/isc/dhcp/dhcp-%{version}.tar.gz
|
||||
@ -519,6 +519,11 @@ if ! test -f /.buildenv; then rm -rf $RPM_BUILD_ROOT; fi
|
||||
%doc %{_mandir}/man3/dhcpctl.3.gz
|
||||
|
||||
%changelog
|
||||
* Tue May 22 2007 - mt@suse.de
|
||||
- Bug 275592: Added ldap and ndsd to the Should-Start/Stop LSB
|
||||
init info tags of the dhcp-server init script.
|
||||
- Bug #241113: Added copying of /etc/openldap/ldap.conf and
|
||||
more base libraries into the chroot jail.
|
||||
* Mon May 14 2007 - mt@suse.de
|
||||
- Bug #265337: Fix to generate proper "host ... {" block begin
|
||||
brace even if no harware address is specified for the host.
|
||||
|
14
rc.dhcpd
14
rc.dhcpd
@ -13,9 +13,9 @@
|
||||
### BEGIN INIT INFO
|
||||
# Provides: dhcpd
|
||||
# Required-Start: $local_fs $remote_fs $network
|
||||
# Should-Start: $named $syslog $time
|
||||
# Should-Start: $named $syslog $time ldap ndsd
|
||||
# Required-Stop: $local_fs $remote_fs $network
|
||||
# Should-Stop: $named $syslog
|
||||
# Should-Stop: $named $syslog ldap ndsd
|
||||
# Default-Start: 3 5
|
||||
# Default-Stop: 0 1 2 6
|
||||
# Short-Description: DHCP Server
|
||||
@ -57,6 +57,7 @@ DAEMON_CONF=/etc/dhcpd.conf
|
||||
DAEMON_PIDFILE=/var/run/dhcpd.pid
|
||||
STARTPROC_LOGFILE=/var/log/rc.dhcpd.log
|
||||
SUPPORTS_HUP="no"
|
||||
LDAP_CONF=/etc/openldap/ldap.conf
|
||||
|
||||
# Shell functions sourced from /etc/rc.status:
|
||||
# rc_check check and set local and overall rc status
|
||||
@ -159,7 +160,7 @@ case "$1" in
|
||||
if test "$DHCPD_RUN_CHROOTED" = "yes" ; then
|
||||
## copy the conf file to the chroot jail (dhcpd has to be restarted anyway,
|
||||
## when it has changed) and change path to leases file
|
||||
for i in $DAEMON_CONF $DHCPD_CONF_INCLUDE_FILES; do
|
||||
for i in $DAEMON_CONF $DHCPD_CONF_INCLUDE_FILES $LDAP_CONF; do
|
||||
if test -d "${i}" ; then
|
||||
test -d "$CHROOT_PREFIX/${i}" || \
|
||||
mkdir -p "$CHROOT_PREFIX/${i}"
|
||||
@ -169,13 +170,14 @@ case "$1" in
|
||||
fi
|
||||
done
|
||||
rm -f $CHROOT_PREFIX/dev/urandom
|
||||
for i in $DAEMON_CONF $DHCPD_CONF_INCLUDE_FILES /etc/{resolv.conf,host.conf,hosts,localtime} /dev/urandom; do
|
||||
for i in $DAEMON_CONF $DHCPD_CONF_INCLUDE_FILES $LDAP_CONF /etc/{resolv.conf,host.conf,hosts,localtime} /dev/urandom; do
|
||||
if ! test -e "$i"; then continue; fi # neither of them is absolutely necessary
|
||||
cp -aL "$i" "$CHROOT_PREFIX/${i%/*}/" &>/dev/null \
|
||||
cp -aL "$i" "${CHROOT_PREFIX}/${i%/*}/" &>/dev/null \
|
||||
|| { echo "...$0:$LINENO: could not copy $i to chroot jail"; rc_failed; rc_status -v1; exit 6; }
|
||||
done
|
||||
libdir=/$(basename $(echo /var/lib/dhcp/lib*))
|
||||
for i in /$libdir/{libresolv.so.2,libnss_dns{,6}.so.2}; do
|
||||
for i in /$libdir/{libresolv.so.2,libnss_dns{,6}.so.2} \
|
||||
/$libdir/{libpthread.so.0,libdl.so.2} ; do
|
||||
if [ -s "$i" ]; then
|
||||
cp -pL "$i" "/var/lib/dhcp/$libdir/" \
|
||||
|| { echo "...$0:$LINENO: could not copy $i to chroot jail"; rc_failed; rc_status -v1; exit 6; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user