]> git.pld-linux.org Git - packages/radvd.git/blob - radvd.spec
- up to 2.17
[packages/radvd.git] / radvd.spec
1 Summary:        Router Advertisement Daemon
2 Summary(pl.UTF-8):      Demon ogłaszania routerów
3 Name:           radvd
4 Version:        2.17
5 Release:        1
6 License:        GPL
7 Group:          Networking
8 Source0:        http://v6web.litech.org/radvd/dist/%{name}-%{version}.tar.gz
9 # Source0-md5:  64ee3fdb5544bcddef1c6cd80d77fa0a
10 Source1:        %{name}.conf
11 Source2:        %{name}.init
12 Source3:        %{name}.tmpfiles
13 URL:            http://v6web.litech.org/radvd/
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  bison
17 BuildRequires:  flex
18 BuildRequires:  glibc >= 6:2.17
19 BuildRequires:  libdaemon-devel
20 BuildRequires:  rpmbuild(macros) >= 1.268
21 Requires(post,preun):   /sbin/chkconfig
22 Requires:       rc-scripts >= 0.2.0
23 Requires(postun):       /usr/sbin/userdel
24 Requires(pre):  /usr/sbin/useradd
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
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.
31
32 These RAs contain information, which is used by hosts to configure
33 their interfaces. This information includes address prefixes, the MTU
34 of the link and information about default routers.
35
36 Router solicitations and router advertisement works only on IPv6
37 networks.
38
39 %description -l pl.UTF-8
40 Demon ten nasłuchuje komunikatów "router solicitations" (RS) i
41 odpowiada komunikatami "router adverisement" (RA).
42
43 W ten sposób pomaga hostom w sieci konfigurować swoje interfejsy
44 sieciowe.
45
46 Ogłaszanie routerów działa tylko w sieciach IPv6.
47
48 %prep
49 %setup  -q
50
51 %build
52 rm -f missing
53 %{__aclocal}
54 %{__autoconf}
55 %{__automake}
56 %configure \
57         --disable-silent-rules
58
59 %{__make}
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
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
65
66 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/radvd.conf
67 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/radvd
68 install %{SOURCE3} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/%{name}.conf
69
70 %{__make} install \
71         DESTDIR=$RPM_BUILD_ROOT
72
73 %clean
74 rm -rf $RPM_BUILD_ROOT
75
76 %pre
77 %useradd -u 260 -d /usr/share/empty -s /bin/false -c "radvd" -g proc radvd
78
79 %post
80 /sbin/chkconfig --add radvd
81 %service radvd restart "radvd server"
82
83 %preun
84 if [ "$1" = "0" ]; then
85         %service radvd stop
86         /sbin/chkconfig --del radvd
87 fi
88
89 %postun
90 if [ "$1" = "0" ]; then
91         %userremove radvd
92 fi
93
94 %triggerpostun -- %{name} < 1.8.3-2
95 chmod 0644 /etc/radvd.conf
96
97 %files
98 %defattr(644,root,root,755)
99 %doc README TODO CHANGES* INTRO.html
100 %attr(754,root,root) /etc/rc.d/init.d/radvd
101 /usr/lib/tmpfiles.d/%{name}.conf
102 %attr(755,radvd,root) %dir /var/run/radvd
103 %attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/radvd.conf
104 %attr(755,root,root) %{_sbindir}/*
105 %{_mandir}/man*/*
This page took 0.065763 seconds and 3 git commands to generate.