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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 16395 - (show annotations) (download)
Thu Jan 13 20:15:06 2011 UTC (13 years, 2 months ago) by blino
File size: 3672 byte(s)
imported package resolvconf
1 %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 Patch3: resolvconf-1.45-mdvorder.patch
18 # (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 Conflicts: initscripts < 8.48-3mdv2007.1
27 Requires(post): rpm-helper
28 Requires(preun): rpm-helper
29
30 %description
31 Resolvconf is a framework for keeping track of the system's
32 information about currently available nameservers. It sets itself up
33 as the intermediary between programs that supply nameserver
34 information and programs that use nameserver information. Examples of
35 programs that supply nameserver information are: ifupdown, DHCP
36 clients, the PPP daemon and local nameservers. Examples of programs
37 that use this information are: DNS caches, resolver libraries and the
38 programs that use them.
39
40 %prep
41 %setup -q
42 %patch0 -p1 -b .path
43 %patch1 -p1 -b .symlink
44 %patch2 -p1 -b .metric
45 %patch3 -p1 -b .mdvorder
46 %patch4 -p1 -b .nscd1
47 %patch5 -p1 -b .nscd2
48
49 %build
50
51 %install
52 rm -rf %{buildroot}
53
54 install -d %{buildroot}%{_sysconfdir}
55 cp -a etc/%{name} %{buildroot}%{_sysconfdir}
56 # remove patch backup files
57 rm -f %{buildroot}%{_sysconfdir}/%{name}/interface-order.*
58 rm -f %{buildroot}%{_sysconfdir}/%{name}/update.d/*.*
59
60 touch %{buildroot}%{_sysconfdir}/%{name}/resolv.conf.d/tail
61
62 install -d %{buildroot}/sbin
63 install bin/%{name} %{buildroot}/sbin
64 install -d %{buildroot}/lib/%{name}
65 install bin/list-records %{buildroot}/lib/%{name}
66 install -m 755 %{SOURCE1} %{buildroot}/lib/%{name}/list-by-metric
67 install -d %{buildroot}/var/run/%{name}/interface
68 ln -s ../../var/run/%{name} %{buildroot}%{_sysconfdir}/%{name}/run
69 ln -sf ../../../etc/resolv.conf %{buildroot}/var/run/resolvconf/resolv.conf
70 touch %{buildroot}/var/run/%{name}/enable-updates
71
72 install -d %{buildroot}%{_initrddir}
73 install -m 755 %{SOURCE2} %{buildroot}%{_initrddir}/%{name}
74
75 install -d %{buildroot}%{_mandir}/man{5,8}
76 install -m 644 man/interface-order.5 %{buildroot}%{_mandir}/man5
77 install -m 644 man/resolvconf.8 %{buildroot}%{_mandir}/man8
78
79 %triggerpostun -- initscripts < 8.48-3mdv2007.1
80 cp -a %{_sysconfdir}/resolv.conf %{_sysconfdir}/%{name}/resolv.conf.d/tail
81
82 %post
83 %_post_service %{name}
84
85 %preun
86 %_preun_service %{name}
87
88 %triggerpostun -- %{name} < 1.41-4
89 # update resolvconf startup script priority
90 chkconfig resolvconf reset
91
92 %clean
93 rm -rf %{buildroot}
94
95 %files
96 %defattr(-,root,root)
97 %doc README COPYING
98 /sbin/%{name}
99 /lib/%{name}
100 %{_initrddir}/%{name}
101 %dir %{_sysconfdir}/%{name}
102 %{_sysconfdir}/%{name}/run
103 %config(noreplace) %{_sysconfdir}/%{name}/interface-order
104 %dir %{_sysconfdir}/%{name}/resolv.conf.d
105 %config(noreplace) %{_sysconfdir}/%{name}/resolv.conf.d/*
106 %dir %{_sysconfdir}/%{name}/update.d
107 %config(noreplace) %{_sysconfdir}/%{name}/update.d/*
108 %dir %{_sysconfdir}/%{name}/update-libc.d
109 %{_mandir}/man?/*
110 %dir /var/run/%{name}
111 %dir /var/run/%{name}/interface
112 %config(noreplace) /var/run/%{name}/resolv.conf
113 %config(missingok,noreplace) /var/run/%{name}/enable-updates
114
115
116
117

  ViewVC Help
Powered by ViewVC 1.1.30