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