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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 16411 - (hide annotations) (download)
Thu Jan 13 20:25:23 2011 UTC (10 years, 9 months ago) by blino
File size: 3406 byte(s)
rename patch suffix

1 blino 16395 %define name resolvconf
2     %define version 1.46
3    
4     Summary: Nameserver information handler
5     Name: %{name}
6     Version: %{version}
7     Release: %mkrel 1
8     Source0: ftp://ftp.debian.org/debian/pool/main/r/resolvconf/%{name}_%{version}.tar.gz
9     Source1: list-by-metric
10     Source2: resolvconf.init
11     # fix path for run-parts
12     Patch0: resolvconf-1.36-path.patch
13     # allow /var/run/resolvconf/resolv.conf to be a symlink
14     Patch1: resolvconf-1.41-symlink.patch
15     Patch2: resolvconf-1.38-metric.patch
16     # use same level for eth* ath* wlan* ppp*, to sort them by metric
17 blino 16410 Patch3: resolvconf-1.45-notypeorder.patch
18 blino 16395 # (cg) Some fixes related to nscd that have bugged me for a while.
19     Patch4: resolvconf-1.41-nscd-cache-enabled-check-fix.patch
20     Patch5: resolvconf-1.41-nscd-restart-fix.patch
21     License: GPLv2+
22     Group: Networking/Other
23     Url: http://packages.debian.org/unstable/net/resolvconf
24     BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
25     BuildArch: noarch
26     Requires(post): rpm-helper
27     Requires(preun): rpm-helper
28    
29     %description
30     Resolvconf is a framework for keeping track of the system's
31     information about currently available nameservers. It sets itself up
32     as the intermediary between programs that supply nameserver
33     information and programs that use nameserver information. Examples of
34     programs that supply nameserver information are: ifupdown, DHCP
35     clients, the PPP daemon and local nameservers. Examples of programs
36     that use this information are: DNS caches, resolver libraries and the
37     programs that use them.
38    
39     %prep
40     %setup -q
41     %patch0 -p1 -b .path
42     %patch1 -p1 -b .symlink
43     %patch2 -p1 -b .metric
44 blino 16411 %patch3 -p1 -b .notypeorder
45 blino 16395 %patch4 -p1 -b .nscd1
46     %patch5 -p1 -b .nscd2
47    
48     %build
49    
50     %install
51     rm -rf %{buildroot}
52    
53     install -d %{buildroot}%{_sysconfdir}
54     cp -a etc/%{name} %{buildroot}%{_sysconfdir}
55     # remove patch backup files
56     rm -f %{buildroot}%{_sysconfdir}/%{name}/interface-order.*
57     rm -f %{buildroot}%{_sysconfdir}/%{name}/update.d/*.*
58    
59     touch %{buildroot}%{_sysconfdir}/%{name}/resolv.conf.d/tail
60    
61     install -d %{buildroot}/sbin
62     install bin/%{name} %{buildroot}/sbin
63     install -d %{buildroot}/lib/%{name}
64     install bin/list-records %{buildroot}/lib/%{name}
65     install -m 755 %{SOURCE1} %{buildroot}/lib/%{name}/list-by-metric
66     install -d %{buildroot}/var/run/%{name}/interface
67     ln -s ../../var/run/%{name} %{buildroot}%{_sysconfdir}/%{name}/run
68     ln -sf ../../../etc/resolv.conf %{buildroot}/var/run/resolvconf/resolv.conf
69     touch %{buildroot}/var/run/%{name}/enable-updates
70    
71     install -d %{buildroot}%{_initrddir}
72     install -m 755 %{SOURCE2} %{buildroot}%{_initrddir}/%{name}
73    
74     install -d %{buildroot}%{_mandir}/man{5,8}
75     install -m 644 man/interface-order.5 %{buildroot}%{_mandir}/man5
76     install -m 644 man/resolvconf.8 %{buildroot}%{_mandir}/man8
77    
78     %post
79     %_post_service %{name}
80    
81     %preun
82     %_preun_service %{name}
83    
84     %clean
85     rm -rf %{buildroot}
86    
87     %files
88     %defattr(-,root,root)
89     %doc README COPYING
90     /sbin/%{name}
91     /lib/%{name}
92     %{_initrddir}/%{name}
93     %dir %{_sysconfdir}/%{name}
94     %{_sysconfdir}/%{name}/run
95     %config(noreplace) %{_sysconfdir}/%{name}/interface-order
96     %dir %{_sysconfdir}/%{name}/resolv.conf.d
97     %config(noreplace) %{_sysconfdir}/%{name}/resolv.conf.d/*
98     %dir %{_sysconfdir}/%{name}/update.d
99     %config(noreplace) %{_sysconfdir}/%{name}/update.d/*
100     %dir %{_sysconfdir}/%{name}/update-libc.d
101     %{_mandir}/man?/*
102     %dir /var/run/%{name}
103     %dir /var/run/%{name}/interface
104     %config(noreplace) /var/run/%{name}/resolv.conf
105     %config(missingok,noreplace) /var/run/%{name}/enable-updates
106    
107    
108    
109    

  ViewVC Help
Powered by ViewVC 1.1.28