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