1 Summary: Router Advertisement Daemon
2 Summary(pl.UTF-8): Demon ogłaszania routerów
8 Source0: http://v6web.litech.org/radvd/dist/%{name}-%{version}.tar.gz
9 # Source0-md5: 64ee3fdb5544bcddef1c6cd80d77fa0a
12 Source3: %{name}.tmpfiles
13 URL: http://v6web.litech.org/radvd/
14 BuildRequires: autoconf
15 BuildRequires: automake
18 BuildRequires: glibc >= 6:2.17
19 BuildRequires: libdaemon-devel
20 BuildRequires: rpmbuild(macros) >= 1.268
21 Requires(post,preun): /sbin/chkconfig
22 Requires: rc-scripts >= 0.2.0
23 Requires(postun): /usr/sbin/userdel
24 Requires(pre): /usr/sbin/useradd
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 This daemon listens to router solicitations (RS) and answers with
29 router advertisement (RA). Furthermore unsolicited RAs are also send
32 These RAs contain information, which is used by hosts to configure
33 their interfaces. This information includes address prefixes, the MTU
34 of the link and information about default routers.
36 Router solicitations and router advertisement works only on IPv6
39 %description -l pl.UTF-8
40 Demon ten nasłuchuje komunikatów "router solicitations" (RS) i
41 odpowiada komunikatami "router adverisement" (RA).
43 W ten sposób pomaga hostom w sieci konfigurować swoje interfejsy
46 Ogłaszanie routerów działa tylko w sieciach IPv6.
57 --disable-silent-rules
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man{5,8},/etc/rc.d/init.d,/var/run/radvd} \
64 $RPM_BUILD_ROOT/usr/lib/tmpfiles.d
66 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/radvd.conf
67 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/radvd
68 install %{SOURCE3} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/%{name}.conf
71 DESTDIR=$RPM_BUILD_ROOT
74 rm -rf $RPM_BUILD_ROOT
77 %useradd -u 260 -d /usr/share/empty -s /bin/false -c "radvd" -g proc radvd
80 /sbin/chkconfig --add radvd
81 %service radvd restart "radvd server"
84 if [ "$1" = "0" ]; then
86 /sbin/chkconfig --del radvd
90 if [ "$1" = "0" ]; then
94 %triggerpostun -- %{name} < 1.8.3-2
95 chmod 0644 /etc/radvd.conf
98 %defattr(644,root,root,755)
99 %doc README TODO CHANGES* INTRO.html
100 %attr(754,root,root) /etc/rc.d/init.d/radvd
101 /usr/lib/tmpfiles.d/%{name}.conf
102 %attr(755,radvd,root) %dir /var/run/radvd
103 %attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/radvd.conf
104 %attr(755,root,root) %{_sbindir}/*