]> git.pld-linux.org Git - packages/radvd.git/blame - radvd.spec
- up to 1.10.0
[packages/radvd.git] / radvd.spec
CommitLineData
38adcdf0 1Summary: Router Advertisement Daemon
86d57080 2Summary(pl.UTF-8): Demon ogłaszania routerów
38adcdf0 3Name: radvd
83ed5edb 4Version: 1.10.0
5b914217 5Release: 1
cfd2eca9 6License: GPL
38adcdf0 7Group: Networking
b87dd276 8Source0: http://v6web.litech.org/radvd/dist/%{name}-%{version}.tar.gz
83ed5edb 9# Source0-md5: 5ef15bc6c8316dba02147065f8dfdad3
b44631f2
MP
10Source1: %{name}.conf
11Source2: %{name}.init
fd8002f6 12Source3: %{name}.tmpfiles
5b2ba124 13URL: http://v6web.litech.org/radvd/
5b2ba124 14BuildRequires: autoconf
fd90fb94
JB
15BuildRequires: automake
16BuildRequires: bison
17BuildRequires: flex
5b914217 18BuildRequires: libdaemon-devel
b5e282ca 19BuildRequires: rpmbuild(macros) >= 1.268
fd90fb94 20Requires(post,preun): /sbin/chkconfig
b5e282ca 21Requires: rc-scripts >= 0.2.0
a5eb2007
AM
22Requires(postun): /usr/sbin/userdel
23Requires(pre): /usr/sbin/useradd
6e89e8a0 24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38adcdf0
JK
25
26%description
cf77af57 27This daemon listens to router solicitations (RS) and answers with
28router advertisement (RA). Furthermore unsolicited RAs are also send
29from time to time.
38adcdf0
JK
30
31These RAs contain information, which is used by hosts to configure
cf77af57 32their interfaces. This information includes address prefixes, the MTU
33of the link and information about default routers.
38adcdf0
JK
34
35Router solicitations and router advertisement works only on IPv6
36networks.
37
d1c7efc9
JR
38%description -l pl.UTF-8
39Demon ten nasłuchuje komunikatów "router solicitations" (RS) i
cf77af57 40odpowiada komunikatami "router adverisement" (RA).
38adcdf0 41
d1c7efc9 42W ten sposób pomaga hostom w sieci konfigurować swoje interfejsy
38adcdf0
JK
43sieciowe.
44
d1c7efc9 45Ogłaszanie routerów działa tylko w sieciach IPv6.
38adcdf0
JK
46
47%prep
5b2ba124
AM
48%setup -q
49
38adcdf0 50%build
ae8c9ffb 51rm -f missing
01c5052e 52%{__aclocal}
7cffc002 53%{__autoconf}
54%{__automake}
e208143d 55%configure
38adcdf0 56
dab3cb98 57%{__make}
38adcdf0
JK
58
59%install
60rm -rf $RPM_BUILD_ROOT
fd8002f6
JR
61install -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 64install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/radvd.conf
38adcdf0 65install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/radvd
fd8002f6 66install %{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
72rm -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 82if [ "$1" = "0" ]; then
b5e282ca 83 %service radvd stop
563cfe90 84 /sbin/chkconfig --del radvd
85fi
86
a5eb2007
AM
87%postun
88if [ "$1" = "0" ]; then
64a32487 89 %userremove radvd
a5eb2007
AM
90fi
91
64a32487 92%triggerpostun -- %{name} < 1.8.3-2
89d8472c
AM
93chmod 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*/*
This page took 0.045478 seconds and 4 git commands to generate.