]> git.pld-linux.org Git - packages/dibbler.git/blobdiff - dibbler.spec
- modifications in daemon start
[packages/dibbler.git] / dibbler.spec
index d5092066aca75d9b7e64ec4fadaa614bf35bfc64..9cae47e61ba39ad20aff6425b912d931d01ce6b6 100644 (file)
@@ -1,8 +1,8 @@
 Summary:       Dibbler - a portable DHCPv6
-Summary(pl):   Dibbler - portowalny DHCPv6
+Summary(pl):   Dibbler - przeno¶ny DHCPv6
 Name:          dibbler
 Version:       0.3.1
-Release:       0.1
+Release:       0.2
 License:       GPL v2
 Group:         Networking/Daemons
 Source0:       http://klub.com.pl/dhcpv6/%{name}-%{version}-src.tar.gz
@@ -14,35 +14,55 @@ BuildRequires:      flex
 BuildRequires: libstdc++-devel
 BuildRequires: libxml2-devel
 BuildRequires: pkgconfig
+Requires(post,preun):  /sbin/chkconfig
 #Provides:     dhcpd?
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Dibbler is a portable DHCPv6 implementation. Is supports stateful
-(i.e. IPv6 address granting) as well as stateless (i.e. option granting)
-autoconfiguration for IPv6. Currently Linux 2.4/2.6 and Windows XP and
-Windows 2003 ports are available. It features easy to use install packages
-(Clickable Windows installer and RPM and DEB packages for Linux) and
-extensive documentation (both for users as well as developers).
+Dibbler is a portable DHCPv6 implementation. It supports stateful
+(i.e. IPv6 address granting) as well as stateless (i.e. option
+granting) autoconfiguration for IPv6. Currently Linux 2.4/2.6 and
+Windows XP and Windows 2003 ports are available. It features easy to
+use install packages (Clickable Windows installer and RPM and DEB
+packages for Linux) and extensive documentation (both for users as
+well as developers).
 
-#%description -l pl
-# TODO
+%description -l pl
+Dibbler to przeno¶na implementacja DHCPv6. Obs³uguje stanow± (tzn. z
+nadawaniem adresów IPv6), jak i bezstanow± (tzn. z nadawaniem opcji)
+autokonfiguracjê IPv6. Aktualnie dostêpne s± porty dla Linuksa 2.4/2.6
+i Windows XP oraz Windows 2003. Zalety to ³atwa instalacja (klikalny
+instalator pod Windows i pakiety RPM/DEB pod Linuksa) i wyczerpuj±ca
+dokumentacja (zarówno dla u¿ytkowników, jak i programistów).
 
 #%package doc
 #Summary:      Documentation for Dibbler - a portable DHCPv6
-#Summary(pl):  Dokumentacja dla Dibblera - portowalnego DHCPv6
+#Summary(pl):  Dokumentacja dla Dibblera - przeno¶nego DHCPv6
 #Group:                Documentation
 
-#%description subpackage
+#%description doc
+#Documentation for Dibbler - a portable DHCPv6
 
-#%description subpackage -l pl
+#%description doc -l pl
+#Dokumentacja dla Dibblera - przeno¶nego DHCPv6
+
+%package client
+Summary:       Dibbler DHCPv6 client
+Summary(pl):   Dibbler - klient DHCPv6
+Group:         Networking/Daemons
+
+%description client
+DHCPv6 protocol client.
+
+%description client -l pl
+Klient protoko³u DHCPv6.
 
 %prep
 %setup -q -n %{name}
 %patch0 -p0
 
 %build
-%{__make} \
+%{__make} server client \
        ARCH=LINUX \
        CFLAGS="%{rpmcflags}" \
        CPP="%{__cpp}" \
@@ -51,21 +71,56 @@ extensive documentation (both for users as well as developers).
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8,%{_sharedstatedir}/dibbler}
+install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} \
+       $RPM_BUILD_ROOT{%{_sharedstatedir}/%{name},%{_sysconfdir}/%{name}}
 
 install dibbler-{client,server} $RPM_BUILD_ROOT%{_sbindir}
-install *.conf $RPM_BUILD_ROOT%{_sharedstatedir}/dibbler
+install *.conf $RPM_BUILD_ROOT%{_sharedstatedir}/%{name}
 install doc/man/* $RPM_BUILD_ROOT%{_mandir}/man8
+ln -sf %{_sharedstatedir}/%{name}/server.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/server.conf
+ln -sf %{_sharedstatedir}/%{name}/client.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/client.conf
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+/sbin/ldconfig
+/sbin/chkconfig --add dibbler
+#if [ -f /var/lock/subsys/dibbler ]; then
+#        /etc/rc.d/init.d/dibbler restart 1>&2
+#else
+        echo "Run \"/etc/rc.d/init.d/dibbler start\" to start dibbler DHCP daemon."
+#fi
+
+
+%preun
+#if [ "$1" = "0" ];then
+#      if [ -f /var/lock/subsys/dhcpd ]; then
+#              /etc/rc.d/init.d/dhcpd stop >&2
+#      fi
+#      /sbin/chkconfig --del dhcpd
+#fi
+
 %files
 %defattr(644,root,root,755)
-%doc CHANGELOG GUIDELINES RELNOTES TODO WILD-IDEAS
-%attr(755,root,root) %{_sbindir}/*
+%doc CHANGELOG FUN LICENSE GUIDELINES RELNOTES TODO VERSION WILD-IDEAS 
+%doc server.conf server-stateless.conf doc/man/dibbler-server.8
+%attr(755,root,root) %{_sbindir}/dibbler-server
+%dir %{_sharedstatedir}/%{name}
+%config(noreplace) %verify(not md5 mtime size) %{_sharedstatedir}/%{name}/server.conf
+%dir %{_sysconfdir}/%{name}
+%{_sysconfdir}/%{name}/server.conf
+%{_mandir}/man8/*.8*
+
+%files client
+%defattr(644,root,root,755)
+%doc CHANGELOG FUN LICENSE GUIDELINES RELNOTES TODO VERSION WILD-IDEAS
+%doc client.conf client-stateless.conf doc/man/dibbler-client.8
+%attr(755,root,root) %{_sbindir}/dibbler-client
 %dir %{_sharedstatedir}/%{name}
-%config(noreplace) %{_sharedstatedir}/%{name}/*.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sharedstatedir}/%{name}/client.conf
+%dir %{_sysconfdir}/%{name}
+%{_sysconfdir}/%{name}/client.conf
 %{_mandir}/man8/*.8*
 
 #%files doc
This page took 0.077124 seconds and 4 git commands to generate.