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
11 Patch0: %{name}-Makefile.patch
12 URL: http://klub.com.pl/dhcpv6/
13 #BuildRequires: bison++ >= 1.21.9
15 BuildRequires: libstdc++-devel
16 BuildRequires: libxml2-devel
17 BuildRequires: pkgconfig
18 Requires(post,preun): /sbin/chkconfig
19 #Provides: dhcpv6-server ?
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Dibbler is a portable DHCPv6 implementation. It supports stateful
25 (i.e. IPv6 address granting) as well as stateless (i.e. option
26 granting) autoconfiguration for IPv6. Currently Linux 2.4/2.6 and
27 Windows XP and Windows 2003 ports are available. It features easy to
28 use install packages (Clickable Windows installer and RPM and DEB
29 packages for Linux) and extensive documentation (both for users as
33 Dibbler to przeno¶na implementacja DHCPv6. Obs³uguje stanow± (tzn. z
34 nadawaniem adresów IPv6), jak i bezstanow± (tzn. z nadawaniem opcji)
35 autokonfiguracjê IPv6. Aktualnie dostêpne s± porty dla Linuksa 2.4/2.6
36 i Windows XP oraz Windows 2003. Zalety to ³atwa instalacja (klikalny
37 instalator pod Windows i pakiety RPM/DEB pod Linuksa) i wyczerpuj±ca
38 dokumentacja (zarówno dla u¿ytkowników, jak i programistów).
41 #Summary: Documentation for Dibbler - a portable DHCPv6
42 #Summary(pl): Dokumentacja dla Dibblera - przeno¶nego DHCPv6
46 #Documentation for Dibbler - a portable DHCPv6
48 #%description doc -l pl
49 #Dokumentacja dla Dibblera - przeno¶nego DHCPv6
52 Summary: Dibbler DHCPv6 client
53 Summary(pl): Dibbler - klient DHCPv6
54 Group: Networking/Daemons
57 DHCPv6 protocol client.
59 %description client -l pl
60 Klient protoko³u DHCPv6.
67 #%{__make} server client \
69 # CFLAGS="%{rpmcflags}" \
75 rm -rf $RPM_BUILD_ROOT
76 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} \
77 $RPM_BUILD_ROOT{%{_sharedstatedir}/%{name},%{_sysconfdir}/{rc.d/init.d,dibbler}}
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
82 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/dibbler
83 ln -sf %{_sharedstatedir}/%{name}/server.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/server.conf
84 ln -sf %{_sharedstatedir}/%{name}/client.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/client.conf
87 rm -rf $RPM_BUILD_ROOT
91 if [ "$1" = "1" ]; then
92 /sbin/chkconfig --add dibbler
93 if [ -f /var/lock/subsys/dibbler ]; then
94 /etc/rc.d/init.d/dibbler restart 1>&2
96 echo "Run \"/etc/rc.d/init.d/dibbler start\" to start dibbler DHCP daemon."
102 if [ "$1" = "0" ];then
103 if [ -f /var/lock/subsys/dibbler ]; then
104 /etc/rc.d/init.d/dibbler stop >&2
106 /sbin/chkconfig --del dibbler
110 %defattr(644,root,root,755)
111 %doc CHANGELOG LICENSE RELNOTES VERSION
112 %doc server.conf server-stateless.conf doc/man/dibbler-server.8
113 %attr(755,root,root) %{_sbindir}/dibbler-server
114 %attr(754,root,root) /etc/rc.d/init.d/dibbler
115 %dir %{_sharedstatedir}/%{name}
116 %config(noreplace) %verify(not md5 mtime size) %{_sharedstatedir}/%{name}/server.conf
117 %dir %{_sysconfdir}/%{name}
118 %{_sysconfdir}/%{name}/server.conf
122 %defattr(644,root,root,755)
123 %doc CHANGELOG FUN LICENSE GUIDELINES RELNOTES TODO VERSION WILD-IDEAS
124 %doc client.conf client-stateless.conf doc/man/dibbler-client.8
125 %attr(755,root,root) %{_sbindir}/dibbler-client
126 %dir %{_sharedstatedir}/%{name}
127 %config(noreplace) %verify(not md5 mtime size) %{_sharedstatedir}/%{name}/client.conf
128 %dir %{_sysconfdir}/%{name}
129 %{_sysconfdir}/%{name}/client.conf
133 #%defattr(644,root,root,755)