/[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 75909 - (hide annotations) (download)
Wed Mar 23 18:45:44 2011 UTC (13 years ago) by steletch
File size: 1851 byte(s)
imported package dhcpxd
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     %ifarch alpha
45     %make
46     %endif
47    
48     %install
49     rm -rf %{buildroot}
50    
51     mkdir -p %{buildroot}/sbin %{buildroot}%{_mandir}/man8
52     mkdir -p %{buildroot}%{_sysconfdir}/dhcpxd
53    
54     cp -f filter %{buildroot}%{_sysconfdir}/dhcpxd
55     cp -df install/* %{buildroot}%{_sysconfdir}/dhcpxd
56    
57     ln -sf /dev/log %{buildroot}%{_sysconfdir}/dhcpxd/out
58    
59     install -m 500 dhcpxd %{buildroot}/sbin/dhcpxd
60     install -m 644 dhcpxd.8 %{buildroot}%{_mandir}/man8/dhcpxd.8
61    
62     %clean
63     rm -rf %{buildroot}
64    
65     %files
66     %defattr(-,root,root)
67     %config(noreplace) %{_sysconfdir}/dhcpxd
68     /sbin/dhcpxd
69     %{_mandir}/man8/dhcpxd.8*
70    
71    
72    
73    

  ViewVC Help
Powered by ViewVC 1.1.30