2 Summary(pl): Serwer DHCP
7 Group: Networking/Daemons
8 Group(de): Sieciowe/Serwery
9 Copyright: distributable
11 Source0: ftp://ftp.isc.org/isc/dhcp/%{name}-%{version}.tar.gz
13 Source2: dhcp-relay.init
14 Source3: dhcp-relay.sysconfig
15 Source4: dhcpd.conf.sample
16 Source5: dhcp.sysconfig
18 BuildRoot: /tmp/%{name}-%{version}-root
19 Prereq: /sbin/chkconfig
23 DHCP (Dynamic Host Configuration Protocol) is a protocol which allows
24 individual devices on an IP network to get their own network configuration
25 information (IP address, subnetmask, broadcast address, etc.) from a DHCP
26 server. The overall purpose of DHCP is to make it easier to administer a
29 You should install dhcp if you want to set up a DHCP server on your network.
32 Serwer DHCP (Dynamic Host Configuration Protocol)
36 Summary(pl): Klient DHCP
37 Group: Networking/Daemons
38 Group(de): Sieciowe/Serwery
41 Dynamic Host Configuration Protocol Client.
43 %description client -l pl
44 Klient DHCP (Dynamic Host Configuration Protocol).
47 Summary: DHCP Relay Agent
48 Summary(pl): Agent przekazywania DHCP
49 Group: Networking/Daemons
50 Group(de): Sieciowe/Serwery
53 Dynamic Host Configuration Protocol Relay Agent.
55 %description relay -l pl
56 Agent przekazywania DHCP (Dynamic Host Configuration Protocol).
64 LDFLAGS="-s" ; export LDFLAGS
67 make COPTS="$RPM_OPT_FLAGS" DEBUG="" \
68 VARDB="/var/state/%{name}"
71 rm -rf $RPM_BUILD_ROOT
73 install -d $RPM_BUILD_ROOT{/sbin,%{_sbindir},%{_mandir}/man{5,8}} \
74 $RPM_BUILD_ROOT{/var/state/%{name},/etc/{rc.d/init.d,sysconfig}}
77 CLIENTBINDIR=$RPM_BUILD_ROOT/sbin \
78 BINDIR=$RPM_BUILD_ROOT%{_sbindir} \
79 ADMMANDIR=$RPM_BUILD_ROOT%{_mandir}/man8 \
81 FFMANDIR=$RPM_BUILD_ROOT%{_mandir}/man5 \
84 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/dhcpd
85 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/dhcp-relay
86 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/dhcp-relay
87 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/dhcpd
89 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
92 touch $RPM_BUILD_ROOT/var/state/%{name}/{dhcpd,dhclient}.leases
95 /sbin/chkconfig --add dhcpd
96 touch /var/state/%{name}/dhcpd.leases
98 if [ -f /var/run/dhcpd.pid ]; then
99 /etc/rc.d/init.d/dhcpd restart >&2
101 echo "Run \"/etc/rc.d/init.d/dhcpd start\" to start dhcpd daemon."
105 /sbin/chkconfig --add dhcrelay
107 if [ -f /var/run/dhcrelay.pid ]; then
108 /etc/rc.d/init.d/dhcrelay restart >&2
110 echo "Run \"/etc/rc.d/init.d/dhcrelay start\" to start dhcrelay daemon."
114 if [ "$1" = "0" ];then
115 /sbin/chkconfig --del dhcpd
116 /etc/rc.d/init.d/dhcpd stop >&2
120 if [ "$1" = "0" ];then
121 /sbin/chkconfig --del dhcrelay
122 /etc/rc.d/init.d/dhrelay stop >&2
126 rm -rf $RPM_BUILD_ROOT
129 %defattr(644,root,root,755)
130 %doc doc/* README.gz RELNOTES.gz dhcpd.conf.sample
131 %{_mandir}/man5/dhcp*
132 %{_mandir}/man8/dhcp*
133 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/dhcpd
134 %attr(755,root,root) %{_sbindir}/dhcpd
135 %attr(754,root,root) /etc/rc.d/init.d/dhcpd
136 %attr(750,root,root) %dir /var/state/%{name}
137 %ghost /var/state/%{name}/dhcpd.leases
140 %defattr(644,root,root,755)
141 %attr(755,root,root) /sbin/dhclient
142 %{_mandir}/man[58]/dhclient*
143 %ghost /var/state/%{name}/dhclient.leases
146 %defattr(644,root,root,755)
147 %{_mandir}/man8/dhcrelay*
148 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/dhcp-relay
149 %attr(755,root,root) %{_sbindir}/dhcrelay
150 %attr(754,root,root) /etc/rc.d/init.d/dhcp-relay