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

Annotation of /cauldron/dhcpxd/current/SPECS/dhcpxd.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 75921 - (hide annotations) (download)
Wed Mar 23 18:47:54 2011 UTC (13 years, 1 month ago) by steletch
File size: 1821 byte(s)
- Clean spec file
1 steletch 75909 Summary: DHCPXD Daemon
2     Name: dhcpxd
3     Version: 1.0.3
4     Release: %mkrel 26
5     License: GPL
6     Group: System/Servers
7     Source: ftp://ftp.guido.yi.org:50021/dhcpxd-%{version}.tar.bz2
8     Patch2: dhcpxd-1.0.3-gcc-3.3.patch
9     Patch3: dhcpxd-1.0.3-64bit-fixes.patch
10     Patch4: dhcpxd-1.0.3-varargs.patch
11     Patch5: dhcpxd-1.0.3-extra.patch
12     Patch6: dhcpxd-glibc28_fix.diff
13     BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
14    
15     %description
16     The primary goal of this DHCP client is to conform to the DHCP specification
17     defined in RFC2131 which is now the draft standard. However, the client can
18     be told how to behave. Additionally, the client supports all-in-one-process
19     session managment as well as a process per session. It may also be used to
20     masquerade IP leases and has the capability of running on interface aliases.
21     Finally, perhaps the most advanced feature of the client is that all the
22     configuration that is required for setting up interfaces is in scripts that
23     are run at the appropriate times.
24    
25     %prep
26    
27     %setup -q
28     %patch2 -p1 -b .gcc3.3
29     %patch3 -p1 -b .64bit-fixes
30     %patch4 -p1 -b .varargs
31     %patch5 -p1 -b .extra
32     %patch6 -p0 -b .glibc28_fix
33    
34     %build
35     %configure
36     %ifnarch alpha
37     perl -pi -e 's/-Wall/\$(RPM_OPT_FLAGS) -Wall/g;' Makefile
38     %endif
39    
40     %ifnarch alpha
41     %make RPM_OPT_FLAGS="%optflags"
42     %endif
43    
44     %install
45     rm -rf %{buildroot}
46    
47     mkdir -p %{buildroot}/sbin %{buildroot}%{_mandir}/man8
48     mkdir -p %{buildroot}%{_sysconfdir}/dhcpxd
49    
50     cp -f filter %{buildroot}%{_sysconfdir}/dhcpxd
51     cp -df install/* %{buildroot}%{_sysconfdir}/dhcpxd
52    
53     ln -sf /dev/log %{buildroot}%{_sysconfdir}/dhcpxd/out
54    
55     install -m 500 dhcpxd %{buildroot}/sbin/dhcpxd
56     install -m 644 dhcpxd.8 %{buildroot}%{_mandir}/man8/dhcpxd.8
57    
58     %clean
59     rm -rf %{buildroot}
60    
61     %files
62     %defattr(-,root,root)
63     %config(noreplace) %{_sysconfdir}/dhcpxd
64     /sbin/dhcpxd
65     %{_mandir}/man8/dhcpxd.8*
66    
67    

  ViewVC Help
Powered by ViewVC 1.1.30