]> git.pld-linux.org Git - packages/radvd.git/blob - radvd.spec
46c9b59fc418f75fed8f26dc2090b59f1089cff0
[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.9.9
5 Release:        1
6 License:        GPL
7 Group:          Networking
8 Source0:        http://v6web.litech.org/radvd/dist/%{name}-%{version}.tar.gz
9 # Source0-md5:  7b4e91848e57ecf40aed752656b4d15f
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
57 %{__make}
58
59 %install
60 rm -rf $RPM_BUILD_ROOT
61 install -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
63
64 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/radvd.conf
65 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/radvd
66 install %{SOURCE3} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/%{name}.conf
67
68 %{__make} install \
69         DESTDIR=$RPM_BUILD_ROOT
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %pre
75 %useradd -u 260 -d /usr/share/empty -s /bin/false -c "radvd" -g proc radvd
76
77 %post
78 /sbin/chkconfig --add radvd
79 %service radvd restart "radvd server"
80
81 %preun
82 if [ "$1" = "0" ]; then
83         %service radvd stop
84         /sbin/chkconfig --del radvd
85 fi
86
87 %postun
88 if [ "$1" = "0" ]; then
89         %userremove radvd
90 fi
91
92 %triggerpostun -- %{name} < 1.8.3-2
93 chmod 0644 /etc/radvd.conf
94
95 %files
96 %defattr(644,root,root,755)
97 %doc README TODO CHANGES INTRO.html
98 %attr(754,root,root) /etc/rc.d/init.d/radvd
99 /usr/lib/tmpfiles.d/%{name}.conf
100 %attr(755,radvd,root) %dir /var/run/radvd
101 %attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/radvd.conf
102 %attr(755,root,root) %{_sbindir}/*
103 %{_mandir}/man*/*
This page took 0.054933 seconds and 2 git commands to generate.