1 Summary: Dibbler - a portable DHCPv6
2 Summary(pl): Dibbler - przeno¶ny DHCPv6
7 Group: Networking/Daemons
8 Source0: http://klub.com.pl/dhcpv6/%{name}-%{version}-src.tar.gz
9 # Source0-md5: 6bc2b0932f1000ad50624789873115d8
10 Patch0: %{name}-Makefile.patch
11 URL: http://klub.com.pl/dhcpv6/
12 #BuildRequires: bison++ >= 1.21.9
13 BuildRequires: chkconfig
15 BuildRequires: libstdc++-devel
16 BuildRequires: libxml2-devel
17 BuildRequires: pkgconfig
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Dibbler is a portable DHCPv6 implementation. It supports stateful
23 (i.e. IPv6 address granting) as well as stateless (i.e. option
24 granting) autoconfiguration for IPv6. Currently Linux 2.4/2.6 and
25 Windows XP and Windows 2003 ports are available. It features easy to
26 use install packages (Clickable Windows installer and RPM and DEB
27 packages for Linux) and extensive documentation (both for users as
31 Dibbler to przeno¶na implementacja DHCPv6. Obs³uguje stanow± (tzn. z
32 nadawaniem adresów IPv6), jak i bezstanow± (tzn. z nadawaniem opcji)
33 autokonfiguracjê IPv6. Aktualnie dostêpne s± porty dla Linuksa 2.4/2.6
34 i Windows XP oraz Windows 2003. Zalety to ³atwa instalacja (klikalny
35 instalator pod Windows i pakiety RPM/DEB pod Linuksa) i wyczerpuj±ca
36 dokumentacja (zarówno dla u¿ytkowników, jak i programistów).
39 #Summary: Documentation for Dibbler - a portable DHCPv6
40 #Summary(pl): Dokumentacja dla Dibblera - przeno¶nego DHCPv6
44 #Documentation for Dibbler - a portable DHCPv6
46 #%description doc -l pl
47 #Dokumentacja dla Dibblera - przeno¶nego DHCPv6
50 #Summary: Dibbler DHCPv6 client
51 #Summary(pl): Dibbler - klient DHCPv6
52 #Group: Networking/Daemons
55 #DHCPv6 protocol client.
57 #%description client -l pl
58 #Klient protokolu DHCPv6
67 # CFLAGS="%{rpmcflags}" \
75 rm -rf $RPM_BUILD_ROOT
76 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} \
77 $RPM_BUILD_ROOT{%{_sharedstatedir}/%{name},%{_sysconfdir}/%{name}}
79 install dibbler-{client,server} $RPM_BUILD_ROOT%{_sbindir}
80 install *.conf $RPM_BUILD_ROOT%{_sharedstatedir}/%{name}
81 install doc/man/* $RPM_BUILD_ROOT%{_mandir}/man8
84 rm -rf $RPM_BUILD_ROOT
87 ln -s %{_sharedstatedir}/%{name}/client.conf %{_sysconfdir}/%{name}/client.conf
88 ln -s %{_sharedstatedir}/%{name}/server.conf %{_sysconfdir}/%{name}/server.conf
89 /sbin/chkconfig -add dibbler
92 if [ "$1" = "0" ];then
93 if [ -f /var/lock/subsys/dhcpd ]; then
94 /etc/rc.d/init.d/dhcpd stop >&2
96 /sbin/chkconfig --del dhcpd
100 #if [ -d %{_sharedstatedir}/%{name} ]; then
101 #install -d %{_sharedstatedir}/%{name}
105 %defattr(644,root,root,755)
106 %doc CHANGELOG FUN LICENSE GUIDELINES RELNOTES TODO VERSION WILD-IDEAS
107 %doc server.conf server-stateless.conf doc/man/*
108 %attr(755,root,root) %{_sbindir}/*
109 %{_sbindir}/dibbler-server
110 %{_sbindir}/dibbler-client
111 %dir %{_sharedstatedir}/%{name}
112 %config(noreplace) %verify(not md5 mtime size) %{_sharedstatedir}/%{name}/*.conf
116 #%defattr(644,root,root,755)