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 Prereq: rc-scripts >= 0.2.0
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 DHCP (Dynamic Host Configuration Protocol) is a protocol which allows
24 individual devices on an IP network to get their own network
25 configuration information (IP address, subnetmask, broadcast address,
26 etc.) from a DHCP server. The overall purpose of DHCP is to make it
27 easier to administer a large network.
30 Serwer DHCP (Dynamic Host Configuration Protocol).
32 DHCP to protokó³ pozwalaj±cy urz±dzeniom pracuj±cym w sieci IP na
33 pobieranie ich konfiguracji IP (adresu, maski podsieci, adresu
34 rozg³oszeniowego itp.) z serwera DHCP. U³atwia on administrowanie
39 Summary(pl): Klient DHCP
40 Group: Networking/Daemons
41 Group(de): Netzwerkwesen/Server
42 Group(pl): Sieciowe/Serwery
46 Dynamic Host Configuration Protocol Client.
48 %description -l pl client
49 Klient DHCP (Dynamic Host Configuration Protocol).
52 Summary: DHCP Relay Agent
53 Summary(pl): Agent przekazywania informacji DHCP
54 Group: Networking/Daemons
55 Group(de): Netzwerkwesen/Server
56 Group(pl): Sieciowe/Serwery
57 Requires: rc-scripts >= 0.2.0
60 Dhcp relay is a relay agent for DHCP packets. It is used on a subnet
61 with DHCP clients to "relay" their requests to a subnet that has a
62 DHCP server on it. Because DHCP packets can be broadcast, they will
63 not be routed off of the local subnet. The DHCP relay takes care of
66 %description -l pl relay
67 Agent przekazywania DHCP (Dynamic Host Configuration Protocol) miêdzy
68 podsieciami. Poniewa¿ komunikaty DHCP mog± byæ przekazywane w formie
69 rozg³oszeniowej, bez tego agenta nie zostan± przerutowane do innej
77 # Notice: this is not autoconf configure!!!!!!!
78 # do not change it to %%configure
81 %{__make} COPTS="%{rpmcflags} \
82 -D_PATH_DHCPD_DB=\\\"/var/lib/%{name}/dhcpd.leases\\\" \
83 -D_PATH_DHCLIENT_DB=\\\"/var/lib/%{name}/dhclient.leases\\\"" \
84 DEBUG="" VARDB="/var/lib/%{name}"
87 rm -rf $RPM_BUILD_ROOT
88 install -d $RPM_BUILD_ROOT{/sbin,%{_sbindir},%{_bindir},%{_mandir}/man{5,8}} \
89 $RPM_BUILD_ROOT{/var/lib/%{name},%{_sysconfdir}/{rc.d/init.d,sysconfig}}
92 DESTDIR="$RPM_BUILD_ROOT" \
93 CLIENTBINDIR="/sbin" \
94 BINDIR="%{_sbindir}" \
95 ADMMANDIR="%{_mandir}/man8" \
97 FFMANDIR="%{_mandir}/man5" \
98 VARDB="/var/lib/%{name}" \
101 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/dhcpd
102 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/dhcp-relay
103 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/dhcp-relay
104 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/dhcpd
106 install client/scripts/linux $RPM_BUILD_ROOT%{_sysconfdir}/dhclient-script
108 gzip -9nf doc/* README RELNOTES
110 touch $RPM_BUILD_ROOT/var/lib/%{name}/{dhcpd,dhclient}.leases
113 /sbin/chkconfig --add dhcpd
114 touch /var/lib/%{name}/dhcpd.leases
116 if [ ! -d /var/lib/dhcp ]; then
117 install -d /var/lib/dhcp
120 if [ -f /var/lock/subsys/dhcpd ]; then
121 /etc/rc.d/init.d/dhcpd restart >&2
123 echo "Run \"/etc/rc.d/init.d/dhcpd start\" to start dhcpd daemon."
127 /sbin/chkconfig --add dhcp-relay
129 if [ -f /var/lock/subsys/dhcrelay ]; then
130 /etc/rc.d/init.d/dhcp-relay restart >&2
132 echo "Run \"/etc/rc.d/init.d/dhcp-relay start\" to start dhcrelay daemon."
136 if [ -d /var/lib/dhcp ]; then
137 install -d /var/lib/dhcp
141 if [ "$1" = "0" ];then
142 if [ -f /var/lock/subsys/dhcpd ]; then
143 /etc/rc.d/init.d/dhcpd stop >&2
145 /sbin/chkconfig --del dhcpd
149 if [ "$1" = "0" ];then
150 if [ -f /var/lock/subsys/dhcrelay ]; then
151 /etc/rc.d/init.d/dhcp-relay stop >&2
153 /sbin/chkconfig --del dhcp-relay
157 rm -rf $RPM_BUILD_ROOT
160 %defattr(644,root,root,755)
161 %doc doc/* README.gz RELNOTES.gz dhcpd.conf.sample
162 %{_mandir}/man5/dhcp*
163 %{_mandir}/man8/dhcp*
164 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/dhcpd
165 %attr(755,root,root) %{_sbindir}/dhcpd
166 %attr(754,root,root) /etc/rc.d/init.d/dhcpd
167 %attr(750,root,root) %dir /var/lib/%{name}
168 %ghost /var/lib/%{name}/dhcpd.leases
171 %defattr(644,root,root,755)
172 %attr(755,root,root) /sbin/dhclient
173 %attr(755,root,root) %{_sysconfdir}/dhclient-script
174 %{_mandir}/man[58]/dhclient*
175 %ghost /var/lib/%{name}/dhclient.leases
178 %defattr(644,root,root,755)
179 %{_mandir}/man8/dhcrelay*
180 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/dhcp-relay
181 %attr(755,root,root) %{_sbindir}/dhcrelay
182 %attr(754,root,root) /etc/rc.d/init.d/dhcp-relay