2 Summary(pl): Serwer DHCP
7 Group: Networking/Daemons
8 Group(de): Netzwerkwesen/Server
9 Group(pl): Sieciowe/Serwery
10 Copyright: distributable
12 Source0: ftp://ftp.isc.org/isc/dhcp/%{name}-%{version}.tar.gz
14 Source2: %{name}-relay.init
15 Source3: %{name}-relay.sysconfig
16 Source4: %{name}d.conf.sample
17 Source5: %{name}.sysconfig
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Prereq: /sbin/chkconfig
21 Prereq: rc-scripts >= 0.2.0
24 DHCP (Dynamic Host Configuration Protocol) is a protocol which allows
25 individual devices on an IP network to get their own network
26 configuration information (IP address, subnetmask, broadcast address,
27 etc.) from a DHCP server. The overall purpose of DHCP is to make it
28 easier to administer a large network.
31 Serwer DHCP (Dynamic Host Configuration Protocol).
33 DHCP to protokó³ pozwalaj±cy urz±dzeniom pracuj±cym w sieci IP na
34 pobieranie ich konfiguracji IP (adresu, maski podsieci, adresu
35 rozg³oszeniowego itp.) z serwera DHCP. U³atwia on administrowanie
40 Summary(pl): Klient DHCP
41 Group: Networking/Daemons
42 Group(de): Netzwerkwesen/Server
43 Group(pl): Sieciowe/Serwery
47 Dynamic Host Configuration Protocol Client.
49 %description -l pl client
50 Klient DHCP (Dynamic Host Configuration Protocol).
53 Summary: DHCP Relay Agent
54 Summary(pl): Agent przekazywania informacji DHCP
55 Group: Networking/Daemons
56 Group(de): Netzwerkwesen/Server
57 Group(pl): Sieciowe/Serwery
58 Requires: rc-scripts >= 0.2.0
61 Dhcp relay is a relay agent for DHCP packets. It is used on a subnet
62 with DHCP clients to "relay" their requests to a subnet that has a
63 DHCP server on it. Because DHCP packets can be broadcast, they will
64 not be routed off of the local subnet. The DHCP relay takes care of
67 %description -l pl relay
68 Agent przekazywania DHCP (Dynamic Host Configuration Protocol) miêdzy
69 podsieciami. Poniewa¿ komunikaty DHCP mog± byæ przekazywane w formie
70 rozg³oszeniowej, bez tego agenta nie zostan± przerutowane do innej
78 # Notice: this is not autoconf configure!!!!!!!
79 # do not change it to %configure
82 %{__make} COPTS="%{rpmcflags} \
83 -D_PATH_DHCPD_DB=\\\"/var/lib/%{name}/dhcpd.leases\\\" \
84 -D_PATH_DHCLIENT_DB=\\\"/var/lib/%{name}/dhclient.leases\\\"" \
85 DEBUG="" VARDB="/var/lib/%{name}"
88 rm -rf $RPM_BUILD_ROOT
89 install -d $RPM_BUILD_ROOT{/sbin,%{_sbindir},%{_mandir}/man{5,8}} \
90 $RPM_BUILD_ROOT{/var/lib/%{name},%{_sysconfdir}/{rc.d/init.d,sysconfig}}
93 DESTDIR="$RPM_BUILD_ROOT" \
94 CLIENTBINDIR="/sbin" \
95 BINDIR="%{_sbindir}" \
96 ADMMANDIR="%{_mandir}/man8" \
98 FFMANDIR="%{_mandir}/man5" \
99 VARDB="/var/lib/%{name}" \
102 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/dhcpd
103 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/dhcp-relay
104 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/dhcp-relay
105 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/dhcpd
107 install client/scripts/linux $RPM_BUILD_ROOT%{_sysconfdir}/dhclient-script
109 gzip -9nf doc/* README RELNOTES
111 touch $RPM_BUILD_ROOT/var/lib/%{name}/{dhcpd,dhclient}.leases
114 /sbin/chkconfig --add dhcpd
115 touch /var/lib/%{name}/dhcpd.leases
117 if [ ! -d /var/lib/dhcp ]; then
118 install -d /var/lib/dhcp
121 if [ -f /var/lock/subsys/dhcpd ]; then
122 /etc/rc.d/init.d/dhcpd restart >&2
124 echo "Run \"/etc/rc.d/init.d/dhcpd start\" to start dhcpd daemon."
128 /sbin/chkconfig --add dhcp-relay
130 if [ -f /var/lock/subsys/dhcrelay ]; then
131 /etc/rc.d/init.d/dhcp-relay restart >&2
133 echo "Run \"/etc/rc.d/init.d/dhcp-relay start\" to start dhcrelay daemon."
137 if [ -d /var/lib/dhcp ]; then
138 install -d /var/lib/dhcp
142 if [ "$1" = "0" ];then
143 if [ -f /var/lock/subsys/dhcpd ]; then
144 /etc/rc.d/init.d/dhcpd stop >&2
146 /sbin/chkconfig --del dhcpd
150 if [ "$1" = "0" ];then
151 if [ -f /var/lock/subsys/dhcrelay ]; then
152 /etc/rc.d/init.d/dhcp-relay stop >&2
154 /sbin/chkconfig --del dhcp-relay
158 rm -rf $RPM_BUILD_ROOT
161 %defattr(644,root,root,755)
162 %doc doc/* README.gz RELNOTES.gz dhcpd.conf.sample
163 %{_mandir}/man5/dhcp*
164 %{_mandir}/man8/dhcp*
165 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/dhcpd
166 %attr(755,root,root) %{_sbindir}/dhcpd
167 %attr(754,root,root) /etc/rc.d/init.d/dhcpd
168 %attr(750,root,root) %dir /var/lib/%{name}
169 %ghost /var/lib/%{name}/dhcpd.leases
172 %defattr(644,root,root,755)
173 %attr(755,root,root) /sbin/dhclient
174 %attr(755,root,root) %{_sysconfdir}/dhclient-script
175 %{_mandir}/man[58]/dhclient*
176 %ghost /var/lib/%{name}/dhclient.leases
179 %defattr(644,root,root,755)
180 %{_mandir}/man8/dhcrelay*
181 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/dhcp-relay
182 %attr(755,root,root) %{_sbindir}/dhcrelay
183 %attr(754,root,root) /etc/rc.d/init.d/dhcp-relay