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: c8ee29be23988c998c4a0e7ec6d7afdf
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.
56 --disable-silent-rules
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man{5,8},/etc/rc.d/init.d,/var/run/radvd} \
63 $RPM_BUILD_ROOT/usr/lib/tmpfiles.d
65 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/radvd.conf
66 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/radvd
67 install %{SOURCE3} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/%{name}.conf
70 DESTDIR=$RPM_BUILD_ROOT
73 rm -rf $RPM_BUILD_ROOT
76 %useradd -u 260 -d /usr/share/empty -s /bin/false -c "radvd" -g proc radvd
79 /sbin/chkconfig --add radvd
80 %service radvd restart "radvd server"
83 if [ "$1" = "0" ]; then
85 /sbin/chkconfig --del radvd
89 if [ "$1" = "0" ]; then
93 %triggerpostun -- %{name} < 1.8.3-2
94 chmod 0644 /etc/radvd.conf
97 %defattr(644,root,root,755)
98 %doc README TODO CHANGES* INTRO.html
99 %attr(754,root,root) /etc/rc.d/init.d/radvd
100 /usr/lib/tmpfiles.d/%{name}.conf
101 %attr(755,radvd,root) %dir /var/run/radvd
102 %attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/radvd.conf
103 %attr(755,root,root) %{_sbindir}/*