auto-import changelog data from dhcp-3.0pl1-6.src.rpm
Tue Aug 13 2002 Elliot Lee <sopwith@redhat.com> 3.0pl1-6 - Patch102 (dhcp-3.0pl1-dhcpctlman-69731.patch) to fix #69731 Tue Aug 13 2002 Elliot Lee <sopwith@redhat.com> 3.0pl1-5 - Patch101 (dhcp-3.0pl1-dhhostname-68650.patch) to fix #68650 Fri Jul 12 2002 Elliot Lee <sopwith@redhat.com> 3.0pl1-4 - Fix unaligned accesses when decoding a UDP packet Thu Jul 11 2002 Elliot Lee <sopwith@redhat.com> 3.0pl1-3 - No apparent reason for the dhclient -> dhcp dep mentioned in #68001, so removed it Thu Jun 27 2002 David Sainty <saint@redhat.com> 3.0pl1-2 - Move dhclient.conf.sample from dhcp to dhclient Tue Jun 25 2002 David Sainty <saint@redhat.com> 3.0pl1-1 - Change to dhclient, dhcp, dhcp-devel packaging - Move to 3.0pl1, do not strip binaries - Drop in sysconfig-enabled dhclient-script Thu May 23 2002 Tim Powers <timp@redhat.com> - automated rebuild Sat Jan 26 2002 Florian La Roche <Florian.LaRoche@redhat.de> - prereq chkconfig Tue Jan 22 2002 Elliot Lee <sopwith@redhat.com> 3.0-5 - Split headers/libs into a devel subpackage (#58656) Wed Jan 09 2002 Tim Powers <timp@redhat.com> - automated rebuild Fri Dec 28 2001 Elliot Lee <sopwith@redhat.com> 3.0-3 - Fix the #52856 nit. - Include dhcrelay scripts from #49186 Thu Dec 20 2001 Elliot Lee <sopwith@redhat.com> 3.0-2 - Update to 3.0, include devel files installed by it (as part of the main package).
This commit is contained in:
parent
a49a1c72f7
commit
a682876eb4
@ -1 +1 @@
|
|||||||
dhcp-2.0pl5.tar.gz
|
dhcp-3.0pl1.tar.gz
|
||||||
|
167
dhcp.spec
167
dhcp.spec
@ -1,18 +1,22 @@
|
|||||||
Summary: A DHCP (Dynamic Host Configuration Protocol) server and relay agent.
|
Summary: A DHCP (Dynamic Host Configuration Protocol) server and relay agent.
|
||||||
Name: dhcp
|
Name: dhcp
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 2.0pl5
|
Version: 3.0pl1
|
||||||
Release: 8
|
Release: 6
|
||||||
Copyright: distributable
|
Copyright: distributable
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Source0: ftp://ftp.isc.org/isc/dhcp/dhcp-%{version}.tar.gz
|
Source0: ftp://ftp.isc.org/isc/dhcp/dhcp-%{version}.tar.gz
|
||||||
Source1: dhcpd.conf.sample
|
Source1: dhcpd.conf.sample
|
||||||
Source2: dhcpd.init
|
Source2: dhcpd.init
|
||||||
Patch0: dhcp-2.0-buildroot.patch
|
Source3: dhcrelay.init
|
||||||
Patch1: dhcp-2.0-js.patch
|
Patch: dhcp-3.0-alignment.patch
|
||||||
Patch2: dhcp-2.0-unaligned.patch
|
Patch10: dhcp-3.0pl1-RHscript.patch
|
||||||
Obsoletes: dhcpd
|
Patch100: dhcp-3.0-jbuild.patch
|
||||||
|
Patch101: dhcp-3.0pl1-dhhostname-68650.patch
|
||||||
|
Patch102: dhcp-3.0pl1-dhcpctlman-69731.patch
|
||||||
|
URL: http://isc.org/products/DHCP/
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||||
|
Prereq: /sbin/chkconfig
|
||||||
|
|
||||||
%description
|
%description
|
||||||
DHCP (Dynamic Host Configuration Protocol) is a protocol which allows
|
DHCP (Dynamic Host Configuration Protocol) is a protocol which allows
|
||||||
@ -20,32 +24,69 @@ individual devices on an IP network to get their own network
|
|||||||
configuration information (IP address, subnetmask, broadcast address,
|
configuration information (IP address, subnetmask, broadcast address,
|
||||||
etc.) from a DHCP server. The overall purpose of DHCP is to make it
|
etc.) from a DHCP server. The overall purpose of DHCP is to make it
|
||||||
easier to administer a large network. The dhcp package includes the
|
easier to administer a large network. The dhcp package includes the
|
||||||
DHCP server and a DHCP relay agent.
|
ISC DHCP service and relay agent.
|
||||||
|
|
||||||
You should install dhcp if you want to set up a DHCP server on your
|
To use DHCP on your network, install a DHCP service (or relay agent),
|
||||||
network. You will also need to install the pump package, which
|
and on clients run a DHCP client daemon. The dhcp package provides
|
||||||
provides the DHCP client daemon, on client machines.
|
the ISC DHCP service and relay agent.
|
||||||
|
|
||||||
|
%package -n dhclient
|
||||||
|
Summary: Development headers and libraries for interfacing to the DHCP server
|
||||||
|
Requires: initscripts >= 6.75
|
||||||
|
Group: System Environment/Base
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development headers and libraries for interfacing to the DHCP server
|
||||||
|
Requires: dhcp = %{version}
|
||||||
|
Group: Development/Libraries
|
||||||
|
|
||||||
|
%description -n dhclient
|
||||||
|
DHCP (Dynamic Host Configuration Protocol) is a protocol which allows
|
||||||
|
individual devices on an IP network to get their own network
|
||||||
|
configuration information (IP address, subnetmask, broadcast address,
|
||||||
|
etc.) from a DHCP server. The overall purpose of DHCP is to make it
|
||||||
|
easier to administer a large network.
|
||||||
|
|
||||||
|
To use DHCP on your network, install a DHCP service (or relay agent),
|
||||||
|
and on clients run a DHCP client daemon. The dhclient package
|
||||||
|
provides the ISC DHCP client daemon.
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
Libraries for interfacing with the ISC DHCP server.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
|
||||||
%patch1 -p1 -b .js
|
%patch -p1
|
||||||
%ifarch sparc sparc64 alpha
|
%patch10 -p1
|
||||||
%patch2 -p1 -b .unaligned
|
%patch100 -p1
|
||||||
%endif
|
%patch101 -p1
|
||||||
|
%patch102 -p1
|
||||||
|
|
||||||
cp %SOURCE1 .
|
cp %SOURCE1 .
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
cat <<EOF >site.conf
|
||||||
make CC="gcc -pipe" DEBUG="$RPM_OPT_FLAGS -D_PATH_DHCPD_DB=\\\"/var/lib/dhcp/dhcpd.leases\\\" -D_PATH_DHCLIENT_DB=\\\"/var/lib/dhcp/dhclient.leases\\\""
|
VARDB=%{_localstatedir}/lib/dhcp
|
||||||
|
ADMMANDIR=%{_mandir}/man8
|
||||||
|
FFMANDIR=%{_mandir}/man5
|
||||||
|
LIBMANDIR=%{_mandir}/man3
|
||||||
|
USRMANDIR=%{_mandir}/man1
|
||||||
|
LIBDIR=%{_libdir}
|
||||||
|
INCDIR=%{_includedir}
|
||||||
|
EOF
|
||||||
|
cat <<EOF >>includes/site.h
|
||||||
|
#define _PATH_DHCPD_DB "%{_localstatedir}/lib/dhcp/dhcpd.leases"
|
||||||
|
#define _PATH_DHCLIENT_DB "%{_localstatedir}/lib/dhcp/dhclient.leases"
|
||||||
|
EOF
|
||||||
|
./configure --copts "$RPM_OPT_FLAGS"
|
||||||
|
make %{?_smp_mflags} CC="cc"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
mkdir -p %{buildroot}/etc/sysconfig
|
mkdir -p %{buildroot}/etc/sysconfig
|
||||||
|
|
||||||
make install DESTDIR=%{buildroot}
|
make install DESTDIR=%{buildroot}
|
||||||
strip %{buildroot}/usr/sbin/* || :
|
|
||||||
|
|
||||||
mkdir -p %{buildroot}/etc/rc.d/init.d
|
mkdir -p %{buildroot}/etc/rc.d/init.d
|
||||||
install -m 0755 %SOURCE2 %{buildroot}/etc/rc.d/init.d/dhcpd
|
install -m 0755 %SOURCE2 %{buildroot}/etc/rc.d/init.d/dhcpd
|
||||||
@ -57,50 +98,116 @@ cat <<EOF > %{buildroot}/etc/sysconfig/dhcpd
|
|||||||
DHCPDARGS=
|
DHCPDARGS=
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
install -m0755 %SOURCE3 %{buildroot}/etc/rc.d/init.d/dhcrelay
|
||||||
|
|
||||||
|
cat <<EOF > %{buildroot}/etc/sysconfig/dhcrelay
|
||||||
|
# Command line options here
|
||||||
|
INTERFACES=""
|
||||||
|
DHCPSERVERS=""
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# Copy sample dhclient.conf file into position
|
||||||
|
cp client/dhclient.conf dhclient.conf.sample
|
||||||
|
chmod 755 %{buildroot}/sbin/dhclient-script
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/chkconfig --add dhcpd
|
/sbin/chkconfig --add dhcpd
|
||||||
|
/sbin/chkconfig --add dhcrelay
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 = 0 ]; then # execute this only if we are NOT doing an upgrade
|
if [ $1 = 0 ]; then # execute this only if we are NOT doing an upgrade
|
||||||
service dhcpd stop >/dev/null 2>&1
|
service dhcpd stop >/dev/null 2>&1
|
||||||
|
service dhcrelay stop >/dev/null 2>&1
|
||||||
/sbin/chkconfig --del dhcpd
|
/sbin/chkconfig --del dhcpd
|
||||||
|
/sbin/chkconfig --del dhcrelay
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
if [ "$1" -ge "1" ]; then
|
if [ "$1" -ge "1" ]; then
|
||||||
service dhcpd condrestart >/dev/null 2>&1
|
service dhcpd condrestart >/dev/null 2>&1
|
||||||
|
service dhcrelay condrestart >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc CHANGES README RELNOTES dhcpd.conf.sample
|
%doc CHANGES README RELNOTES dhcpd.conf.sample
|
||||||
%dir %{_localstatedir}/lib/dhcp
|
%dir %{_localstatedir}/lib/dhcp
|
||||||
%config(noreplace) %{_localstatedir}/lib/dhcp/dhcpd.leases
|
%verify(not size md5 mtime) %config(noreplace) %{_localstatedir}/lib/dhcp/dhcpd.leases
|
||||||
%config(noreplace) /etc/sysconfig/dhcpd
|
%config(noreplace) /etc/sysconfig/dhcpd
|
||||||
|
%config(noreplace) /etc/sysconfig/dhcrelay
|
||||||
%config /etc/rc.d/init.d/dhcpd
|
%config /etc/rc.d/init.d/dhcpd
|
||||||
|
%config /etc/rc.d/init.d/dhcrelay
|
||||||
|
%{_bindir}/omshell
|
||||||
%{_sbindir}/dhcpd
|
%{_sbindir}/dhcpd
|
||||||
%{_sbindir}/dhcrelay
|
%{_sbindir}/dhcrelay
|
||||||
|
%{_mandir}/man1/omshell.1*
|
||||||
|
%{_mandir}/man5/dhcp-options.5*
|
||||||
|
%{_mandir}/man5/dhcp-eval.5*
|
||||||
%{_mandir}/man5/dhcpd.conf.5*
|
%{_mandir}/man5/dhcpd.conf.5*
|
||||||
%{_mandir}/man5/dhcpd.leases.5*
|
%{_mandir}/man5/dhcpd.leases.5*
|
||||||
%{_mandir}/man5/dhcp-options.5*
|
|
||||||
%{_mandir}/man8/dhcpd.8*
|
%{_mandir}/man8/dhcpd.8*
|
||||||
%{_mandir}/man8/dhcrelay.8*
|
%{_mandir}/man8/dhcrelay.8*
|
||||||
|
|
||||||
#%files client
|
%files -n dhclient
|
||||||
#%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
#%doc CHANGES README RELNOTES TODO doc/*
|
%doc dhclient.conf.sample
|
||||||
#%dir /var/dhcpd
|
%dir %{_localstatedir}/lib/dhcp
|
||||||
#/etc/dhclient-script
|
/sbin/dhclient
|
||||||
#/sbin/dhclient
|
/sbin/dhclient-script
|
||||||
#/usr/man/man5/dhclient.conf.5
|
%{_mandir}/man5/dhclient.conf.5*
|
||||||
#/usr/man/man5/dhclient.leases.5
|
%{_mandir}/man5/dhclient.leases.5*
|
||||||
#/usr/man/man8/dhclient.8
|
%{_mandir}/man8/dhclient.8*
|
||||||
#/usr/man/man8/dhclient-script.8
|
%{_mandir}/man8/dhclient-script.8*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_includedir}/*
|
||||||
|
%{_libdir}/*.a
|
||||||
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 13 2002 Elliot Lee <sopwith@redhat.com> 3.0pl1-6
|
||||||
|
- Patch102 (dhcp-3.0pl1-dhcpctlman-69731.patch) to fix #69731
|
||||||
|
|
||||||
|
* Tue Aug 13 2002 Elliot Lee <sopwith@redhat.com> 3.0pl1-5
|
||||||
|
- Patch101 (dhcp-3.0pl1-dhhostname-68650.patch) to fix #68650
|
||||||
|
|
||||||
|
* Fri Jul 12 2002 Elliot Lee <sopwith@redhat.com> 3.0pl1-4
|
||||||
|
- Fix unaligned accesses when decoding a UDP packet
|
||||||
|
|
||||||
|
* Thu Jul 11 2002 Elliot Lee <sopwith@redhat.com> 3.0pl1-3
|
||||||
|
- No apparent reason for the dhclient -> dhcp dep mentioned in #68001, so removed it
|
||||||
|
|
||||||
|
* Wed Jun 27 2002 David Sainty <saint@redhat.com> 3.0pl1-2
|
||||||
|
- Move dhclient.conf.sample from dhcp to dhclient
|
||||||
|
|
||||||
|
* Mon Jun 25 2002 David Sainty <saint@redhat.com> 3.0pl1-1
|
||||||
|
- Change to dhclient, dhcp, dhcp-devel packaging
|
||||||
|
- Move to 3.0pl1, do not strip binaries
|
||||||
|
- Drop in sysconfig-enabled dhclient-script
|
||||||
|
|
||||||
|
* Thu May 23 2002 Tim Powers <timp@redhat.com>
|
||||||
|
- automated rebuild
|
||||||
|
|
||||||
|
* Sat Jan 26 2002 Florian La Roche <Florian.LaRoche@redhat.de>
|
||||||
|
- prereq chkconfig
|
||||||
|
|
||||||
|
* Tue Jan 22 2002 Elliot Lee <sopwith@redhat.com> 3.0-5
|
||||||
|
- Split headers/libs into a devel subpackage (#58656)
|
||||||
|
|
||||||
|
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
|
||||||
|
- automated rebuild
|
||||||
|
|
||||||
|
* Fri Dec 28 2001 Elliot Lee <sopwith@redhat.com> 3.0-3
|
||||||
|
- Fix the #52856 nit.
|
||||||
|
- Include dhcrelay scripts from #49186
|
||||||
|
|
||||||
|
* Thu Dec 20 2001 Elliot Lee <sopwith@redhat.com> 3.0-2
|
||||||
|
- Update to 3.0, include devel files installed by it (as part of the main package).
|
||||||
|
|
||||||
* Sun Aug 26 2001 Elliot Lee <sopwith@redhat.com> 2.0pl5-8
|
* Sun Aug 26 2001 Elliot Lee <sopwith@redhat.com> 2.0pl5-8
|
||||||
- Fix #26446
|
- Fix #26446
|
||||||
|
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
|
ddns-update-style interim;
|
||||||
|
ignore client-updates;
|
||||||
|
|
||||||
subnet 192.168.0.0 netmask 255.255.255.0 {
|
subnet 192.168.0.0 netmask 255.255.255.0 {
|
||||||
|
|
||||||
# --- default gateway
|
# --- default gateway
|
||||||
option routers 192.168.0.1;
|
option routers 192.168.0.1;
|
||||||
option subnet-mask 255.255.255.0;
|
option subnet-mask 255.255.255.0;
|
||||||
|
82
dhcrelay.init
Normal file
82
dhcrelay.init
Normal file
@ -0,0 +1,82 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# dhcrelay This shell script takes care of starting and stopping
|
||||||
|
# dhcrelay.
|
||||||
|
#
|
||||||
|
# chkconfig: - 66 34
|
||||||
|
# description: dhcrelay provides a relay for Dynamic Host Control Protocol.
|
||||||
|
|
||||||
|
# Source function library.
|
||||||
|
. /etc/rc.d/init.d/functions
|
||||||
|
|
||||||
|
# Source networking configuration.
|
||||||
|
. /etc/sysconfig/network
|
||||||
|
|
||||||
|
# Source dhcrelay configuration. We can't default a DHCPSERVERS entry!
|
||||||
|
if [ -f /etc/sysconfig/dhcrelay ] ; then
|
||||||
|
. /etc/sysconfig/dhcrelay
|
||||||
|
[ -n "$INTERFACES" ] || exit 0
|
||||||
|
else
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Check that networking is up.
|
||||||
|
[ ${NETWORKING} = "no" ] && exit 0
|
||||||
|
|
||||||
|
[ -f /usr/sbin/dhcrelay ] || exit 0
|
||||||
|
|
||||||
|
RETVAL=0
|
||||||
|
prog="dhcrelay"
|
||||||
|
|
||||||
|
start() {
|
||||||
|
# Start daemons.
|
||||||
|
echo -n $"Starting $prog: "
|
||||||
|
daemon /usr/sbin/dhcrelay \
|
||||||
|
$([ -n "$INTERFACES" ] && for int in $INTERFACES ; do echo -n " -i $int" ; done) \
|
||||||
|
$DHCPSERVERS
|
||||||
|
RETVAL=$?
|
||||||
|
echo
|
||||||
|
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/dhcrelay
|
||||||
|
return $RETVAL
|
||||||
|
}
|
||||||
|
|
||||||
|
stop() {
|
||||||
|
# Stop daemons.
|
||||||
|
echo -n $"Shutting down $prog: "
|
||||||
|
killproc dhcrelay
|
||||||
|
RETVAL=$?
|
||||||
|
echo
|
||||||
|
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dhcrelay
|
||||||
|
return $RETVAL
|
||||||
|
}
|
||||||
|
|
||||||
|
# See how we were called.
|
||||||
|
case "$1" in
|
||||||
|
start)
|
||||||
|
start
|
||||||
|
;;
|
||||||
|
stop)
|
||||||
|
stop
|
||||||
|
;;
|
||||||
|
restart|reload)
|
||||||
|
stop
|
||||||
|
start
|
||||||
|
RETVAL=$?
|
||||||
|
;;
|
||||||
|
condrestart)
|
||||||
|
if [ -f /var/lock/subsys/dhcrelay ]; then
|
||||||
|
stop
|
||||||
|
start
|
||||||
|
RETVAL=$?
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
status)
|
||||||
|
status dhcrelay
|
||||||
|
RETVAL=$?
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo $"Usage: $0 {start|stop|restart|condrestart|status}"
|
||||||
|
exit 1
|
||||||
|
esac
|
||||||
|
|
||||||
|
exit $RETVAL
|
Loading…
Reference in New Issue
Block a user