]> git.pld-linux.org Git - packages/dhcp.git/blob - dhcp.spec
- massive attack: adding Source-md5
[packages/dhcp.git] / dhcp.spec
1 Summary:        DHCP Server
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)
5 Name:           dhcp
6 Version:        3.0.1rc11
7 Release:        1
8 Epoch:          2
9 Vendor:         ISC
10 License:        distributable
11 Group:          Networking/Daemons
12 Source0:        ftp://ftp.isc.org/isc/dhcp/%{name}-%{version}.tar.gz
13 # Source0-md5:  af79b0453ac67fb6824247d3d48fff91
14 Source1:        %{name}.init
15 Source2:        %{name}-relay.init
16 Source3:        %{name}-relay.sysconfig
17 Source4:        %{name}d.conf.sample
18 Source5:        %{name}.sysconfig
19 BuildRequires:  groff
20 PreReq:         rc-scripts >= 0.2.0
21 Requires(post,preun):   /sbin/chkconfig
22 Requires(post): fileutils
23 Provides:       dhcpd
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
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.
32
33 %description -l es
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
39 software BETA.
40
41 %description -l pl
42 Serwer DHCP (Dynamic Host Configuration Protocol).
43
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
47 du¿ymi sieciami IP.
48
49 %description -l pt_BR
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
55 software BETA.
56
57 %package client
58 Summary:        DHCP Client
59 Summary(pl):    Klient DHCP
60 Group:          Networking/Daemons
61 Requires(post): fileutils
62 Obsoletes:      pump
63
64 %description client
65 Dynamic Host Configuration Protocol Client.
66
67 %description client -l pl
68 Klient DHCP (Dynamic Host Configuration Protocol).
69
70 %package relay
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
77
78 %description relay
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
83 this for the client.
84
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
89 podsieci.
90
91 %package devel
92 Summary:        DHCP development includes and libs
93 Summary(pl):    Pliki nag³ówkowe i biblioteki dla oprogramowania DHCP
94 Group:          Development/Libraries
95
96 %description devel
97 Includes OMAPI and dhcptl libraries.
98
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.
102
103 The dhcpctl set of functions provide an API that can be used to
104 communicate with and manipulate a running ISC DHCP server.
105
106 %description devel -l pl
107 Zawiera biblioteki OMAPI oraz dhcpctl.
108
109 OMAPI to warstwa programowa stworzona do kontroli zdalnych aplikacji i
110 odpytywania o ich stan. Aktualnie jest u¿ywana przez serwer ISC DHCP.
111
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.
114
115 %prep
116 %setup -q
117 install %{SOURCE4} .
118
119 cd doc
120 echo "dhcpd complies with the following RFCs:" > rfc-compliance
121 ls rfc*.txt >> rfc-compliance
122 rm -f rfc*.txt
123 cd ..
124
125 %build
126 # Notice: this is not autoconf configure!!!!!!!
127 #         do not change it to %%configure
128 ./configure
129
130 %{__make} COPTS="%{rpmcflags} \
131         -D_PATH_DHCPD_DB=\\\"/var/lib/%{name}/dhcpd.leases\\\" \
132         -D_PATH_DHCLIENT_DB=\\\"/var/lib/%{name}/dhclient.leases\\\"" \
133         DEBUG="" VARDB="/var/lib/%{name}"
134
135 %install
136 rm -rf $RPM_BUILD_ROOT
137 install -d $RPM_BUILD_ROOT{/sbin,%{_sbindir},%{_bindir},%{_mandir}/man{5,8}} \
138         $RPM_BUILD_ROOT{/var/lib/%{name},%{_sysconfdir}/{rc.d/init.d,sysconfig}}
139
140 %{__make} install \
141         DESTDIR="$RPM_BUILD_ROOT" \
142         CLIENTBINDIR="/sbin" \
143         BINDIR="%{_sbindir}" \
144         LIBDIR="%{_libdir}" \
145         INCDIR="%{_includedir}" \
146         ADMMANDIR="%{_mandir}/man8" \
147         ADMMANEXT=.8 \
148         FFMANDIR="%{_mandir}/man5" \
149         LIBMANDIR="%{_mandir}/man3" \
150         LIBMANEXT=.3 \
151         USRMANDIR="%{_mandir}/man1" \
152         USRMANEXT=.1 \
153         VARDB="/var/lib/%{name}" \
154         FFMANEXT=.5
155
156 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/dhcpd
157 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/dhcp-relay
158 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/dhcp-relay
159 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/dhcpd
160
161 mv $RPM_BUILD_ROOT%{_mandir}/man3/omshell.3 \
162         $RPM_BUILD_ROOT%{_mandir}/man1/omshell.1
163
164 install client/scripts/linux $RPM_BUILD_ROOT%{_sbindir}/dhclient-script
165
166 touch $RPM_BUILD_ROOT/var/lib/%{name}/{dhcpd,dhclient}.leases
167
168 %clean
169 rm -rf $RPM_BUILD_ROOT
170
171 %post
172 /sbin/chkconfig --add dhcpd
173 touch /var/lib/%{name}/dhcpd.leases
174
175 if [ ! -d /var/lib/dhcp ]; then
176         install -d /var/lib/dhcp
177 fi
178
179 if [ -f /var/lock/subsys/dhcpd ]; then
180         /etc/rc.d/init.d/dhcpd restart >&2
181 else
182         echo "Run \"/etc/rc.d/init.d/dhcpd start\" to start dhcpd daemon."
183 fi
184
185 %preun
186 if [ "$1" = "0" ];then
187         if [ -f /var/lock/subsys/dhcpd ]; then
188                 /etc/rc.d/init.d/dhcpd stop >&2
189         fi
190         /sbin/chkconfig --del dhcpd
191 fi
192
193 %post client
194 if [ -d /var/lib/dhcp ]; then
195         install -d /var/lib/dhcp
196 fi
197
198 %post relay
199 /sbin/chkconfig --add dhcp-relay
200 if [ -f /var/lock/subsys/dhcrelay ]; then
201         mv -f /var/lock/subsys/dhcrelay /var/lock/subsys/dhcp-relay
202 fi
203 if [ -f /var/lock/subsys/dhcp-relay ]; then
204         /etc/rc.d/init.d/dhcp-relay restart >&2
205 else
206         echo "Run \"/etc/rc.d/init.d/dhcp-relay start\" to start dhcrelay daemon."
207 fi
208
209 %preun relay
210 if [ "$1" = "0" ];then
211         if [ -f /var/lock/subsys/dhcp-relay ]; then
212                 /etc/rc.d/init.d/dhcp-relay stop >&2
213         fi
214         /sbin/chkconfig --del dhcp-relay
215 fi
216
217 %triggerpostun -- dhcp < 3.0
218 if [ `grep ddns-update-style /etc/dhcpd.conf` = "" ]; then
219         umask 027
220         echo "ddns-update-style none;" > /etc/dhcpd.conf.tmp
221         echo "" >> /etc/dhcpd.conf.tmp
222         cat /etc/dhcpd.conf >>/etc/dhcpd.conf.tmp
223         mv -f /etc/dhcpd.conf.tmp /etc/dhcpd.conf
224 fi
225
226 %files
227 %defattr(644,root,root,755)
228 %doc doc/* README RELNOTES dhcpd.conf.sample
229 %{_mandir}/man1/*
230 %{_mandir}/man5/dhcp*
231 %{_mandir}/man8/dhcp*
232 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/dhcpd
233 %attr(755,root,root) %{_bindir}/*
234 %attr(755,root,root) %{_sbindir}/dhcpd
235 %attr(754,root,root) /etc/rc.d/init.d/dhcpd
236 %attr(750,root,root) %dir /var/lib/%{name}
237 %ghost /var/lib/%{name}/dhcpd.leases
238
239 %files client
240 %defattr(644,root,root,755)
241 %attr(755,root,root) /sbin/dhclient
242 %attr(755,root,root) /sbin/dhclient-script
243 %{_mandir}/man[58]/dhclient*
244 %ghost /var/lib/%{name}/dhclient.leases
245
246 %files relay
247 %defattr(644,root,root,755)
248 %{_mandir}/man8/dhcrelay*
249 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/dhcp-relay
250 %attr(755,root,root) %{_sbindir}/dhcrelay
251 %attr(754,root,root) /etc/rc.d/init.d/dhcp-relay
252
253 %files devel
254 %defattr(644,root,root,755)
255 %{_mandir}/man3/*
256 %{_libdir}/*.a
257 %{_includedir}/*
This page took 0.045864 seconds and 4 git commands to generate.