]> git.pld-linux.org Git - packages/dhcpv6.git/blob - dhcpv6.spec
- converted to UTF-8
[packages/dhcpv6.git] / dhcpv6.spec
1 # TODO:
2 # - test it
3 # - pld has rc-scripts not initscripts
4 # - obsoletes when renaming a package
5 # - use %service
6 Summary:        DHCPv6 - DHCP server and client for IPv6
7 Summary(pl.UTF-8):   DHCPv6 - serwer i klient DHCP dla IPv6
8 Name:           dhcpv6
9 Version:        0.10
10 Release:        0.7
11 Epoch:          1
12 License:        GPL
13 Group:          Networking/Daemons
14 Source0:        http://dl.sourceforge.net/dhcpv6/dhcp-%{version}.tgz
15 # Source0-md5:  72b802d6c89e15e5cf6b0aecf46613f2
16 Source1:        dhcp6s.init
17 Source2:        dhcp6c.init
18 Patch0:         %{name}-DESTDIR.patch
19 Patch1:         %{name}-Makefile.patch
20 URL:            http://dhcpv6.sourceforge.net/
21 BuildRequires:  bison
22 BuildRequires:  flex
23 Requires(post,preun):   /sbin/chkconfig
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 Implements the Dynamic Host Configuration Protocol (DHCP) for Internet
28 Protocol version 6 (IPv6) networks in accordance with RFC 3315 :
29 Dynamic Host Configuration Protocol for IPv6 (DHCPv6). Consists of
30 dhcp6s(8), the server DHCP daemon. Install this if you want to support
31 dynamic configuration of IPv6 addresses and parameters on your IPv6
32 network. See man dhcp6s(8), dhcp6s.conf(5), and the documentation in
33 /usr/share/doc/dhcpv6* .
34
35 %description -l pl.UTF-8
36 Ten pakiet jest implementacją protokołu Dynamic Host Configuration
37 Protocol (DHCP) dla sieci IPv6 zgodnie z RFC 3315: Dynamic Host
38 Configuration Protocol for IPv6 (DHCPv6). Zawiera demona serwera DHCP
39 - dhcp6s(8). Należy zainstalować ten pakiet, jeśli potrzebujemy
40 obsługi dynamicznej konfiguracji adresów i parametrów sieci IPv6.
41 Więcej znajduje się w manualach dhcp6s(8), dhcp6s.conf(5) oraz
42 dokumentacji w /usr/share/doc/dhcpv6* .
43
44 %package -n dhcpv6-client
45 Summary:        DHCPv6 client
46 Summary(pl.UTF-8):   Klient DHCPv6
47 Group:          Applications/Networking
48 Requires:       initscripts >= 7.73
49
50 %description -n dhcpv6-client
51 Provides the client for the DHCPv6 protocol (RFC 3315) to support
52 dynamic configuration of IPv6 addresses and parameters. See man
53 dhcp6c(8), dhcp6c.conf(5), and the documentation in
54 /usr/share/doc/dhcpv6_client* .
55
56 %description -n dhcpv6-client -l pl.UTF-8
57 Ten pakiet dostarcza klienta protokołu DHCPv6 (RFC 3315) do obsługi
58 dynamicznej konfiguracji adresów i parametrów sieci iPv6. Więcej
59 znajduje się w manualu dhcp6c(8), dhcp6c.conf(5) oraz dokumentacji w
60 /usr/share/doc/dhcpv6_client*
61
62 %prep
63 %setup -q -n dhcp-%{version}
64 %patch0 -p1
65 %patch1 -p1
66
67 %build
68 %configure 
69 %{__make}
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73 install -d $RPM_BUILD_ROOT{%{_localstatedir}/lib/dhcpv6,/etc/rc.d/init.d}
74
75 %{__make} install \
76         DESTDIR=$RPM_BUILD_ROOT
77
78 install dhcp6relay.8    $RPM_BUILD_ROOT%{_mandir}/man8
79 install %{SOURCE1}      $RPM_BUILD_ROOT/etc/rc.d/init.d/dhcp6s
80 install %{SOURCE2}      $RPM_BUILD_ROOT/etc/rc.d/init.d/dhcp6c
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85 %post
86 /sbin/chkconfig --add dhcp6s
87
88 %preun
89 if [ "$1" = "0" ]; then
90         /etc/rc.d/init.d/dhcp6s stop >/dev/null 2>&1
91         /sbin/chkconfig --del dhcp6s
92 fi
93
94 %postun
95 if [ "$1" -ge "1" ]; then
96         /etc/rc.d/init.d/dhcp6s restart >/dev/null 2>&1
97 fi
98
99 %files
100 %defattr(644,root,root,755)
101 %doc ReadMe docs/*
102 %attr(755,root,root) %{_sbindir}/dhcp6s
103 %attr(754,root,root) /etc/rc.d/init.d/dhcp6s
104 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/dhcp6s
105 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dhcp6s.conf
106 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/server6_addr.conf
107 %attr(750,root,root) %dir %{_localstatedir}/lib/dhcpv6
108 %{_mandir}/man8/dhcp6s.8*
109 %{_mandir}/man8/dhcp6relay.8*
110 %{_mandir}/man5/dhcp6s.conf.5*
111
112
113 %files -n dhcpv6-client
114 %defattr(644,root,root,755)
115 %doc ReadMe dhcp6c.conf
116 %attr(755,root,root) %{_sbindir}/dhcp6c
117 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/dhcp6c
118 %attr(754,root,root) /etc/rc.d/init.d/dhcp6c
119 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dhcp6c.conf
120 %{_mandir}/man8/dhcp6c.8*
121 %{_mandir}/man5/dhcp6c.conf.5*
This page took 0.035174 seconds and 4 git commands to generate.