/[packages]/cauldron/dhcp/current/SPECS/dhcp.spec
ViewVC logotype

Diff of /cauldron/dhcp/current/SPECS/dhcp.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 98933 by pterjan, Sun May 15 12:46:25 2011 UTC revision 136282 by guillomovitch, Mon Aug 29 20:57:56 2011 UTC
# Line 1  Line 1 
1  %define _catdir /var/cache/man  %define _catdir /var/cache/man
 %define pver P1  
2    
3  Summary:        The ISC DHCP (Dynamic Host Configuration Protocol) server/relay agent/client  Summary:        The ISC DHCP (Dynamic Host Configuration Protocol) server/relay agent/client
4  Name:           dhcp  Name:           dhcp
5  Epoch:          3  Epoch:          3
6  Version:        4.2.1  Version:        4.2.2
7  Release:        %mkrel 0.%{pver}.3  Release:        %mkrel 1
8  License:        Distributable  License:        Distributable
9  Group:          System/Servers  Group:          System/Servers
10  URL:            https://www.isc.org/software/dhcp  URL:            http://www.isc.org/software/dhcp
11  Source0:        ftp://ftp.isc.org/isc/%{name}/%{name}-%{version}-%{pver}.tar.gz  Source0:        ftp://ftp.isc.org/isc/%{name}/%{name}-%{version}.tar.gz
12  Source1:        ftp://ftp.isc.org/isc/%{name}/%{name}-%{version}-%{pver}.tar.gz.sha512.asc  Source1:        ftp://ftp.isc.org/isc/%{name}/%{name}-%{version}.tar.gz.sha512.asc
13  Source2:        dhcpd.conf  Source2:        dhcpd.conf
14  Source3:        dhcpd.init  Source3:        dhcpd.init
15  Source4:        dhcp-dynamic-dns-examples.tar.bz2  Source4:        dhcp-dynamic-dns-examples.tar.bz2
16  Source5:        dhcrelay.init  Source5:        dhcrelay.init
 Source6:        update_dhcp.pl  
17  Source7:        dhcpreport.pl  Source7:        dhcpreport.pl
18  Source8:        dhcpd-chroot.sh  Source8:        dhcpd-chroot.sh
19  # (eugeni) dhclient-exit-hooks script  # (eugeni) dhclient-exit-hooks script
20  Source9:        dhclient-exit-hooks  Source9:        dhclient-exit-hooks
21  Source12:       draft-ietf-dhc-ldap-schema-01.txt  Source12:       draft-ietf-dhc-ldap-schema-01.txt
22  # customize ifup script  # customize ifup script
23  Patch0:         dhcp-4.1.1-ifup.patch  Patch0:         dhcp-4.2.2-ifup.patch
24  Patch5:         dhcp-4.1.1-format_not_a_string_literal_and_no_format_arguments.patch  Patch5:         dhcp-4.2.2-fix-format-errors.patch
25  # (fc) 4.1.0-3mdv no IPv6 is no longer fatal for dhclient  # (fc) 4.1.0-3mdv no IPv6 is no longer fatal for dhclient
26  Patch6:         dhcp-4.1.1-missing-ipv6-not-fatal.patch  Patch6:         dhcp-4.1.1-missing-ipv6-not-fatal.patch
27  # prevents needless deassociation, working around mdv bug #43441  # prevents needless deassociation, working around mdv bug #43441
28  Patch7:         dhcp-4.1.1-prevent_wireless_deassociation.patch  Patch7:         dhcp-4.1.1-prevent_wireless_deassociation.patch
29  # redhat bug #587070  BuildRequires:  groff-for-man
 Patch9:         dhcp-4.1.1-useless-wait.patch  
 BuildRequires:  perl groff-for-man  
30  BuildRequires:  openldap-devel  BuildRequires:  openldap-devel
31  Provides:       dhcpd  BuildRequires:  bind-devel
 Obsoletes:      dhcpd < 3.0.6  
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot  
32    
33  %description  %description
34  DHCP (Dynamic Host Configuration Protocol) is a protocol which allows  DHCP (Dynamic Host Configuration Protocol) is a protocol which allows
# Line 86  Group:         System/Servers Line 80  Group:         System/Servers
80  Requires:       dhcp-common = %{epoch}:%{version}-%{release}  Requires:       dhcp-common = %{epoch}:%{version}-%{release}
81  Requires(post): rpm-helper  Requires(post): rpm-helper
82  Requires(preun): rpm-helper  Requires(preun): rpm-helper
 Obsoletes:      dhcp < 3.0.6  
 Provides:       dhcp  
83    
84  %description server  %description server
85  DHCP server is the Internet Software Consortium (ISC) DHCP server for various  DHCP server is the Internet Software Consortium (ISC) DHCP server for various
# Line 137  DHCP devel contains all of the libraries Line 129  DHCP devel contains all of the libraries
129  Internet Software Consortium (ISC) dhcpctl API.  Internet Software Consortium (ISC) dhcpctl API.
130    
131  %prep  %prep
132    %setup -q
 %setup -q -n %{name}-%{version}-%{pver} -a4  
133  %patch0 -p1 -b .ifup  %patch0 -p1 -b .ifup
134  %patch5 -p1 -b .format_not_a_string_literal_and_no_format_arguments  %patch5 -p1 -b .format_not_a_string_literal_and_no_format_arguments
135  %patch6 -p1 -b .noipv6nonfatal  %patch6 -p1 -b .noipv6nonfatal
136  %patch7 -p1 -b .prevent_wireless_deassociation  %patch7 -p1 -b .prevent_wireless_deassociation
 %patch9 -p0 -b .useless_wait  
137    
138  install -m0644 %{SOURCE12} doc  install -m0644 %{SOURCE12} doc
139    
# Line 182  install -d %{buildroot}%{_var}/run/dhcpd Line 172  install -d %{buildroot}%{_var}/run/dhcpd
172    
173  install -m0755 %{SOURCE3} %{buildroot}%{_initrddir}/dhcpd  install -m0755 %{SOURCE3} %{buildroot}%{_initrddir}/dhcpd
174  install -m0755 %{SOURCE5} %{buildroot}%{_initrddir}/dhcrelay  install -m0755 %{SOURCE5} %{buildroot}%{_initrddir}/dhcrelay
175  install -m0755 %{SOURCE6} %{SOURCE7} %{SOURCE8} %{buildroot}%{_sbindir}/  install -m0755 %{SOURCE7} %{SOURCE8} %{buildroot}%{_sbindir}/
176  install -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/  install -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/
177  install -m0755 contrib/ldap/dhcpd-conf-to-ldap %{buildroot}%{_sbindir}/  install -m0755 contrib/ldap/dhcpd-conf-to-ldap %{buildroot}%{_sbindir}/
178    
# Line 241  if [ ! -f %{_var}/lib/dhcp/dhcpd.leases Line 231  if [ ! -f %{_var}/lib/dhcp/dhcpd.leases
231      touch %{_var}/lib/dhcp/dhcpd.leases      touch %{_var}/lib/dhcp/dhcpd.leases
232  fi  fi
233    
 if [ $1 = 0 ]; then  
         %{_initrddir}/dhcpd start  
 fi  
   
 #update an eventual installed dhcp-2* server  
 if [ -f %{_sysconfdir}/dhcpd.conf ]; then  
         perl %{_sbindir}/update_dhcp.pl  
 fi  
   
234  %preun server  %preun server
235  %_preun_service dhcpd  %_preun_service dhcpd
236    
 %postun server  
 if [ "$1" -ge "1" ]; then  
     /sbin/service dhcpd condrestart >/dev/null 2>&1    
 fi  
   
237  %post relay  %post relay
238  %_post_service dhcrelay  %_post_service dhcrelay
239    
240  %preun relay  %preun relay
241  %_preun_service dhcrelay  %_preun_service dhcrelay
242    
 %postun relay  
 if [ "$1" -ge "1" ]; then  
     /sbin/service dhcrelay condrestart >/dev/null 2>&1  
 fi  
   
243  %post client  %post client
244  touch /var/lib/dhcp/dhclient.leases  touch /var/lib/dhcp/dhclient.leases
245    
246  %postun client  %postun client
247  rm -rf /var/lib/dhcp/dhclient.leases  rm -rf /var/lib/dhcp/dhclient.leases
248    
 %clean  
 rm -rf %{buildroot}  
   
249  %files common  %files common
 %defattr(-,root,root)  
250  %doc README contrib/ldap/README.ldap RELNOTES  %doc README contrib/ldap/README.ldap RELNOTES
251  %doc contrib/3.0b1-lease-convert  %doc contrib/3.0b1-lease-convert
252  %dir %{_var}/lib/dhcp  %dir %{_var}/lib/dhcp
253  %{_mandir}/man5/dhcp-options.5*  %{_mandir}/man5/dhcp-options.5*
254    
255  %files doc  %files doc
 %defattr(-,root,root)  
256  %doc doc/*  %doc doc/*
257    
258  %files server  %files server
 %defattr(-,root,root)  
259  %doc server/dhcpd.conf tests/failover contrib/ldap/dhcp.schema  %doc server/dhcpd.conf tests/failover contrib/ldap/dhcp.schema
260  %{_initrddir}/dhcpd  %{_initrddir}/dhcpd
261  %config(noreplace) %{_sysconfdir}/dhcpd.conf  %config(noreplace) %{_sysconfdir}/dhcpd.conf
# Line 298  rm -rf %{buildroot} Line 263  rm -rf %{buildroot}
263  %config(noreplace) %{_sysconfdir}/sysconfig/dhcpd  %config(noreplace) %{_sysconfdir}/sysconfig/dhcpd
264  %config(noreplace) %ghost %{_var}/lib/dhcp/dhcpd.leases  %config(noreplace) %ghost %{_var}/lib/dhcp/dhcpd.leases
265  %{_sbindir}/dhcpd  %{_sbindir}/dhcpd
 %{_sbindir}/update_dhcp.pl  
266  %{_sbindir}/dhcpreport.pl  %{_sbindir}/dhcpreport.pl
267  %{_sbindir}/dhcpd-conf-to-ldap  %{_sbindir}/dhcpd-conf-to-ldap
268  %{_sbindir}/dhcpd-chroot.sh  %{_sbindir}/dhcpd-chroot.sh
# Line 312  rm -rf %{buildroot} Line 276  rm -rf %{buildroot}
276  %dir %{_var}/run/dhcpd  %dir %{_var}/run/dhcpd
277    
278  %files relay  %files relay
 %defattr(-,root,root)  
279  %{_initrddir}/dhcrelay  %{_initrddir}/dhcrelay
280  %config(noreplace) %{_sysconfdir}/sysconfig/dhcrelay  %config(noreplace) %{_sysconfdir}/sysconfig/dhcrelay
281  %{_sbindir}/dhcrelay  %{_sbindir}/dhcrelay
282  %{_mandir}/man8/dhcrelay.8*  %{_mandir}/man8/dhcrelay.8*
283    
284  %files client  %files client
 %defattr(-,root,root)  
285  %doc client/dhclient.conf  %doc client/dhclient.conf
286  %config(noreplace) %ghost %{_var}/lib/dhcp/dhclient.leases  %config(noreplace) %ghost %{_var}/lib/dhcp/dhclient.leases
287  %attr (0755,root,root) /sbin/dhclient-script  %attr (0755,root,root) /sbin/dhclient-script
# Line 330  rm -rf %{buildroot} Line 292  rm -rf %{buildroot}
292  %{_mandir}/man8/dhclient-script.8*  %{_mandir}/man8/dhclient-script.8*
293    
294  %files devel  %files devel
 %defattr(-,root,root)  
295  %{_includedir}/*  %{_includedir}/*
296  %{_libdir}/*.a  %{_libdir}/*.a
297  %{_mandir}/man3/*  %{_mandir}/man3/*

Legend:
Removed from v.98933  
changed lines
  Added in v.136282

  ViewVC Help
Powered by ViewVC 1.1.30