]>
Commit | Line | Data |
---|---|---|
38adcdf0 | 1 | Summary: Router Advertisement Daemon |
86d57080 | 2 | Summary(pl.UTF-8): Demon ogłaszania routerów |
38adcdf0 | 3 | Name: radvd |
83ed5edb | 4 | Version: 1.10.0 |
5b914217 | 5 | Release: 1 |
cfd2eca9 | 6 | License: GPL |
38adcdf0 | 7 | Group: Networking |
b87dd276 | 8 | Source0: http://v6web.litech.org/radvd/dist/%{name}-%{version}.tar.gz |
83ed5edb | 9 | # Source0-md5: 5ef15bc6c8316dba02147065f8dfdad3 |
b44631f2 MP |
10 | Source1: %{name}.conf |
11 | Source2: %{name}.init | |
fd8002f6 | 12 | Source3: %{name}.tmpfiles |
5b2ba124 | 13 | URL: http://v6web.litech.org/radvd/ |
5b2ba124 | 14 | BuildRequires: autoconf |
fd90fb94 JB |
15 | BuildRequires: automake |
16 | BuildRequires: bison | |
17 | BuildRequires: flex | |
5b914217 | 18 | BuildRequires: libdaemon-devel |
b5e282ca | 19 | BuildRequires: rpmbuild(macros) >= 1.268 |
fd90fb94 | 20 | Requires(post,preun): /sbin/chkconfig |
b5e282ca | 21 | Requires: rc-scripts >= 0.2.0 |
a5eb2007 AM |
22 | Requires(postun): /usr/sbin/userdel |
23 | Requires(pre): /usr/sbin/useradd | |
6e89e8a0 | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38adcdf0 JK |
25 | |
26 | %description | |
cf77af57 | 27 | This daemon listens to router solicitations (RS) and answers with |
28 | router advertisement (RA). Furthermore unsolicited RAs are also send | |
29 | from time to time. | |
38adcdf0 JK |
30 | |
31 | These RAs contain information, which is used by hosts to configure | |
cf77af57 | 32 | their interfaces. This information includes address prefixes, the MTU |
33 | of the link and information about default routers. | |
38adcdf0 JK |
34 | |
35 | Router solicitations and router advertisement works only on IPv6 | |
36 | networks. | |
37 | ||
d1c7efc9 JR |
38 | %description -l pl.UTF-8 |
39 | Demon ten nasłuchuje komunikatów "router solicitations" (RS) i | |
cf77af57 | 40 | odpowiada komunikatami "router adverisement" (RA). |
38adcdf0 | 41 | |
d1c7efc9 | 42 | W ten sposób pomaga hostom w sieci konfigurować swoje interfejsy |
38adcdf0 JK |
43 | sieciowe. |
44 | ||
d1c7efc9 | 45 | Ogłaszanie routerów działa tylko w sieciach IPv6. |
38adcdf0 JK |
46 | |
47 | %prep | |
5b2ba124 AM |
48 | %setup -q |
49 | ||
38adcdf0 | 50 | %build |
ae8c9ffb | 51 | rm -f missing |
01c5052e | 52 | %{__aclocal} |
7cffc002 | 53 | %{__autoconf} |
54 | %{__automake} | |
e208143d | 55 | %configure |
38adcdf0 | 56 | |
dab3cb98 | 57 | %{__make} |
38adcdf0 JK |
58 | |
59 | %install | |
60 | rm -rf $RPM_BUILD_ROOT | |
fd8002f6 JR |
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 | |
38adcdf0 | 63 | |
e208143d | 64 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/radvd.conf |
38adcdf0 | 65 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/radvd |
fd8002f6 | 66 | install %{SOURCE3} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/%{name}.conf |
38adcdf0 | 67 | |
0da9a9d6 | 68 | %{__make} install \ |
69 | DESTDIR=$RPM_BUILD_ROOT | |
38adcdf0 | 70 | |
ae8c9ffb JB |
71 | %clean |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
a5eb2007 AM |
74 | %pre |
75 | %useradd -u 260 -d /usr/share/empty -s /bin/false -c "radvd" -g proc radvd | |
76 | ||
38adcdf0 | 77 | %post |
563cfe90 | 78 | /sbin/chkconfig --add radvd |
b5e282ca | 79 | %service radvd restart "radvd server" |
38adcdf0 JK |
80 | |
81 | %preun | |
563cfe90 | 82 | if [ "$1" = "0" ]; then |
b5e282ca | 83 | %service radvd stop |
563cfe90 | 84 | /sbin/chkconfig --del radvd |
85 | fi | |
86 | ||
a5eb2007 AM |
87 | %postun |
88 | if [ "$1" = "0" ]; then | |
64a32487 | 89 | %userremove radvd |
a5eb2007 AM |
90 | fi |
91 | ||
64a32487 | 92 | %triggerpostun -- %{name} < 1.8.3-2 |
89d8472c AM |
93 | chmod 0644 /etc/radvd.conf |
94 | ||
38adcdf0 JK |
95 | %files |
96 | %defattr(644,root,root,755) | |
2a48b637 | 97 | %doc README TODO CHANGES INTRO.html |
d13d6b81 | 98 | %attr(754,root,root) /etc/rc.d/init.d/radvd |
fd8002f6 | 99 | /usr/lib/tmpfiles.d/%{name}.conf |
a5eb2007 | 100 | %attr(755,radvd,root) %dir /var/run/radvd |
baab4962 | 101 | %attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/radvd.conf |
38adcdf0 | 102 | %attr(755,root,root) %{_sbindir}/* |
c4a9ba8b | 103 | %{_mandir}/man*/* |