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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 404859 - (show annotations) (download)
Sun Mar 24 15:20:47 2013 UTC (11 years ago) by colin
File size: 2116 byte(s)
Add systemd requires and general post/pre fixes (mga#9302)
1 %define rundir /run
2
3 Summary: The IPv6 Router Advertisement Daemon
4 Name: radvd
5 Version: 1.9.2
6 Release: %mkrel 7
7 License: BSD
8 Group: System/Servers
9 URL: http://v6web.litech.org/radvd/
10 Source0: http://v6web.litech.org/radvd/dist/%{name}-%{version}.tar.gz
11 Source2: radvd.conf
12 Source3: radvd.sysconfig
13 Source4: radvd.service
14
15 Requires(post): systemd >= %{systemd_required_version}
16 Requires(post): rpm-helper
17 Requires(preun): rpm-helper
18 BuildRequires: flex bison
19 BuildRequires: pkgconfig(libdaemon)
20
21 %description
22 IPv6 has a lot more support for auto configuration than IPv4. But
23 for this auto configuration to work on the hosts of a network, the
24 routers of the local network have to run a program which answers
25 the auto configuration requests of the hosts.
26
27 On Linux this program is called radvd, which stands for Router
28 ADVertisement Daemon. This daemon listens to router solicitations (RS)
29 and answers with router advertisement (RA). Furthermore unsolicited
30 RAs are also send from time to time.
31
32 These RAs contain information, which is used by hosts to configure
33 their interfaces. This information includes address prefixes, the MTU of
34 the link and information about default routers.
35
36
37 %prep
38 %setup -q
39
40 %build
41 %serverbuild
42 %configure2_5x --with-pidfile=%{rundir}/%{name}/%{name}.pid
43 %make
44
45 %install
46 %makeinstall_std
47
48 install -d %{buildroot}%{_sysconfdir}/sysconfig
49 install -d %{buildroot}%{_initrddir}
50
51 install -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/radvd.conf
52 install -m0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/radvd
53 install -D -m0755 %{SOURCE4} %{buildroot}%{_unitdir}/radvd.service
54
55 mkdir -p %{buildroot}%{_tmpfilesdir}
56 cat <<EOF >%{buildroot}%{_tmpfilesdir}/radvd.conf
57 d %{rundir}/radvd 0755 radvd radvd -
58 EOF
59
60 %pre
61 %_pre_useradd radvd / %{_sbindir}/nologin
62
63 %post
64 %_tmpfilescreate %{name}
65 %_post_service radvd
66
67 %preun
68 %_preun_service radvd
69
70 %files
71 %doc CHANGES COPYRIGHT README TODO INTRO.html radvd.conf.example
72 %config(noreplace) %{_sysconfdir}/radvd.conf
73 %config(noreplace) %{_sysconfdir}/sysconfig/radvd
74 %{_unitdir}/%{name}.service
75 %{_tmpfilesdir}/radvd.conf
76 %{_sbindir}/*
77 %{_mandir}/*/*
78

  ViewVC Help
Powered by ViewVC 1.1.30