2 Summary(es): Servidor DHCP (Protocolo de configuración dinámica de hosts)
3 Summary(pl): Serwer DHCP
4 Summary(pt_BR): Servidor DHCP (Protocolo de configuração dinâmica de hosts)
10 License: distributable
11 Group: Networking/Daemons
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
18 Patch0: %{name}-sh.patch
20 PreReq: rc-scripts >= 0.2.0
21 Requires(post,preun): /sbin/chkconfig
22 Requires(post): fileutils
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 DHCP (Dynamic Host Configuration Protocol) is a protocol which allows
28 individual devices on an IP network to get their own network
29 configuration information (IP address, subnetmask, broadcast address,
30 etc.) from a DHCP server. The overall purpose of DHCP is to make it
31 easier to administer a large network.
34 DHCP permite que hosts en una red TCP/IP soliciten y tengan sus
35 direcciones IP alocadas dinámicamente, permite también descubrir
36 información sobre la red en que están conectados. BOOTP provee una
37 funcionalidad similar, con ciertas restricciones. Este servidor
38 también las atiende. Esta versión aún está considerada como un
42 Serwer DHCP (Dynamic Host Configuration Protocol).
44 DHCP to protokó³ pozwalaj±cy urz±dzeniom pracuj±cym w sieci IP na
45 pobieranie ich konfiguracji IP (adresu, maski podsieci, adresu
46 rozg³oszeniowego itp.) z serwera DHCP. U³atwia on administrowanie
50 DHCP permite que hosts numa rede TCP/IP requisitem e tenham seus
51 endereços IP alocados dinamicamente, permite também descobrir
52 informações sobre a rede em que estão conectados. BOOTP provê uma
53 funcionalidade similar, com certas restrições. Este servidor também
54 atende aquelas requisições. Esta versão é ainda considerada um
59 Summary(pl): Klient DHCP
60 Group: Networking/Daemons
61 Requires(post): fileutils
65 Dynamic Host Configuration Protocol Client.
67 %description client -l pl
68 Klient DHCP (Dynamic Host Configuration Protocol).
71 Summary: DHCP Relay Agent
72 Summary(pl): Agent przekazywania informacji DHCP
73 Group: Networking/Daemons
74 PreReq: rc-scripts >= 0.2.0
75 Requires(post,preun): /sbin/chkconfig
76 Requires(post): fileutils
79 Dhcp relay is a relay agent for DHCP packets. It is used on a subnet
80 with DHCP clients to "relay" their requests to a subnet that has a
81 DHCP server on it. Because DHCP packets can be broadcast, they will
82 not be routed off of the local subnet. The DHCP relay takes care of
85 %description relay -l pl
86 Agent przekazywania DHCP (Dynamic Host Configuration Protocol) miêdzy
87 podsieciami. Poniewa¿ komunikaty DHCP mog± byæ przekazywane w formie
88 rozg³oszeniowej, bez tego agenta nie zostan± przerutowane do innej
92 Summary: DHCP development includes and libs
93 Summary(pl): Pliki nag³ówkowe i biblioteki dla oprogramowania DHCP
94 Group: Development/Libraries
97 Includes OMAPI and dhcptl libraries.
99 OMAPI is an programming layer designed for controlling remote
100 applications, and for querying them for their state. It is currently
101 used by the ISC DHCP server.
103 The dhcpctl set of functions provide an API that can be used to
104 communicate with and manipulate a running ISC DHCP server.
106 %description devel -l pl
107 Zawiera biblioteki OMAPI oraz dhcpctl.
109 OMAPI to warstwa programowa stworzona do kontroli zdalnych aplikacji i
110 odpytywania o ich stan. Aktualnie jest u¿ywana przez serwer ISC DHCP.
112 dhcpctl to zbiór funkcji tworz±cych API, które mo¿e byæ u¿ywane do
113 komunikacji z dzia³aj±cym serwerem ISC DHCP i jego kontroli.
121 # Notice: this is not autoconf configure!!!!!!!
122 # do not change it to %%configure
125 %{__make} COPTS="%{rpmcflags} \
126 -D_PATH_DHCPD_DB=\\\"/var/lib/%{name}/dhcpd.leases\\\" \
127 -D_PATH_DHCLIENT_DB=\\\"/var/lib/%{name}/dhclient.leases\\\"" \
128 DEBUG="" VARDB="/var/lib/%{name}"
131 rm -rf $RPM_BUILD_ROOT
132 install -d $RPM_BUILD_ROOT{/sbin,%{_sbindir},%{_bindir},%{_mandir}/man{5,8}} \
133 $RPM_BUILD_ROOT{/var/lib/%{name},%{_sysconfdir}/{rc.d/init.d,sysconfig}}
136 DESTDIR="$RPM_BUILD_ROOT" \
137 CLIENTBINDIR="/sbin" \
138 BINDIR="%{_sbindir}" \
139 LIBDIR="%{_libdir}" \
140 INCDIR="%{_includedir}" \
141 ADMMANDIR="%{_mandir}/man8" \
143 FFMANDIR="%{_mandir}/man5" \
144 LIBMANDIR="%{_mandir}/man3" \
146 USRMANDIR="%{_mandir}/man1" \
148 VARDB="/var/lib/%{name}" \
151 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/dhcpd
152 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/dhcp-relay
153 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/dhcp-relay
154 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/dhcpd
156 mv $RPM_BUILD_ROOT%{_mandir}/man3/omshell.3 \
157 $RPM_BUILD_ROOT%{_mandir}/man1/omshell.1
159 install client/scripts/linux $RPM_BUILD_ROOT%{_sbindir}/dhclient-script
161 touch $RPM_BUILD_ROOT/var/lib/%{name}/{dhcpd,dhclient}.leases
164 rm -rf $RPM_BUILD_ROOT
167 /sbin/chkconfig --add dhcpd
168 touch /var/lib/%{name}/dhcpd.leases
170 if [ ! -d /var/lib/dhcp ]; then
171 install -d /var/lib/dhcp
174 if [ -f /var/lock/subsys/dhcpd ]; then
175 /etc/rc.d/init.d/dhcpd restart >&2
177 echo "Run \"/etc/rc.d/init.d/dhcpd start\" to start dhcpd daemon."
181 if [ "$1" = "0" ];then
182 if [ -f /var/lock/subsys/dhcpd ]; then
183 /etc/rc.d/init.d/dhcpd stop >&2
185 /sbin/chkconfig --del dhcpd
189 if [ -d /var/lib/dhcp ]; then
190 install -d /var/lib/dhcp
194 /sbin/chkconfig --add dhcp-relay
195 if [ -f /var/lock/subsys/dhcrelay ]; then
196 mv -f /var/lock/subsys/dhcrelay /var/lock/subsys/dhcp-relay
198 if [ -f /var/lock/subsys/dhcp-relay ]; then
199 /etc/rc.d/init.d/dhcp-relay restart >&2
201 echo "Run \"/etc/rc.d/init.d/dhcp-relay start\" to start dhcrelay daemon."
205 if [ "$1" = "0" ];then
206 if [ -f /var/lock/subsys/dhcp-relay ]; then
207 /etc/rc.d/init.d/dhcp-relay stop >&2
209 /sbin/chkconfig --del dhcp-relay
212 %triggerpostun -- dhcp < 3.0
213 if [ `grep ddns-update-style /etc/dhcpd.conf` = "" ]; then
215 echo "ddns-update-style none;" > /etc/dhcpd.conf.tmp
216 echo "" >> /etc/dhcpd.conf.tmp
217 cat /etc/dhcpd.conf >>/etc/dhcpd.conf.tmp
218 mv -f /etc/dhcpd.conf.tmp /etc/dhcpd.conf
222 %defattr(644,root,root,755)
223 %doc doc/* README RELNOTES dhcpd.conf.sample
225 %{_mandir}/man5/dhcp*
226 %{_mandir}/man8/dhcp*
227 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/dhcpd
228 %attr(755,root,root) %{_bindir}/*
229 %attr(755,root,root) %{_sbindir}/dhcpd
230 %attr(754,root,root) /etc/rc.d/init.d/dhcpd
231 %attr(750,root,root) %dir /var/lib/%{name}
232 %ghost /var/lib/%{name}/dhcpd.leases
235 %defattr(644,root,root,755)
236 %attr(755,root,root) /sbin/dhclient
237 %attr(755,root,root) /sbin/dhclient-script
238 %{_mandir}/man[58]/dhclient*
239 %ghost /var/lib/%{name}/dhclient.leases
242 %defattr(644,root,root,755)
243 %{_mandir}/man8/dhcrelay*
244 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/dhcp-relay
245 %attr(755,root,root) %{_sbindir}/dhcrelay
246 %attr(754,root,root) /etc/rc.d/init.d/dhcp-relay
249 %defattr(644,root,root,755)