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