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