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