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: 7b4e91848e57ecf40aed752656b4d15f
12 Source3: %{name}.tmpfiles
13 URL: http://v6web.litech.org/radvd/
14 BuildRequires: autoconf
15 BuildRequires: automake
18 BuildRequires: libdaemon-devel
19 BuildRequires: rpmbuild(macros) >= 1.268
20 Requires(post,preun): /sbin/chkconfig
21 Requires: rc-scripts >= 0.2.0
22 Requires(postun): /usr/sbin/userdel
23 Requires(pre): /usr/sbin/useradd
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 This daemon listens to router solicitations (RS) and answers with
28 router advertisement (RA). Furthermore unsolicited RAs are also send
31 These RAs contain information, which is used by hosts to configure
32 their interfaces. This information includes address prefixes, the MTU
33 of the link and information about default routers.
35 Router solicitations and router advertisement works only on IPv6
38 %description -l pl.UTF-8
39 Demon ten nasłuchuje komunikatów "router solicitations" (RS) i
40 odpowiada komunikatami "router adverisement" (RA).
42 W ten sposób pomaga hostom w sieci konfigurować swoje interfejsy
45 Ogłaszanie routerów działa tylko w sieciach IPv6.
60 rm -rf $RPM_BUILD_ROOT
61 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man{5,8},/etc/rc.d/init.d,/var/run/radvd} \
62 $RPM_BUILD_ROOT/usr/lib/tmpfiles.d
64 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/radvd.conf
65 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/radvd
66 install %{SOURCE3} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/%{name}.conf
69 DESTDIR=$RPM_BUILD_ROOT
72 rm -rf $RPM_BUILD_ROOT
75 %useradd -u 260 -d /usr/share/empty -s /bin/false -c "radvd" -g proc radvd
78 /sbin/chkconfig --add radvd
79 %service radvd restart "radvd server"
82 if [ "$1" = "0" ]; then
84 /sbin/chkconfig --del radvd
88 if [ "$1" = "0" ]; then
92 %triggerpostun -- %{name} < 1.8.3-2
93 chmod 0644 /etc/radvd.conf
96 %defattr(644,root,root,755)
97 %doc README TODO CHANGES INTRO.html
98 %attr(754,root,root) /etc/rc.d/init.d/radvd
99 /usr/lib/tmpfiles.d/%{name}.conf
100 %attr(755,radvd,root) %dir /var/run/radvd
101 %attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/radvd.conf
102 %attr(755,root,root) %{_sbindir}/*