]> git.pld-linux.org Git - packages/unbound.git/commitdiff
- add init script
authoraredridel <aredridel@pld-linux.org>
Wed, 21 May 2008 23:10:27 +0000 (23:10 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    unbound.spec -> 1.2

unbound.spec

index a90fb996a900d336ee005f19dd416ca27947f2c4..5aee87921f725c4d504d969bb81889f2d1fcef7e 100644 (file)
@@ -7,12 +7,8 @@ License:       BSD
 Group:         Applications
 Source0:       http://www.unbound.net/downloads/%{name}-%{version}.tar.gz
 # Source0-md5: 05b7532c26e6005f7575d04fc44fb893
+Source1:       %{name}.init
 URL:           http://unbound.net/
-#BuildRequires:        -
-#BuildRequires:        autoconf
-#BuildRequires:        automake
-#BuildRequires:        intltool
-#BuildRequires:        libtool
 BuildRequires: rpmbuild(macros) >= 1.228
 Requires(post,preun):  /sbin/chkconfig
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -61,6 +57,8 @@ Statyczna biblioteka unbound.
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
@@ -68,11 +66,11 @@ rm -rf $RPM_BUILD_ROOT
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post  -p /sbin/ldconfig
-%postun        -p /sbin/ldconfig
-
-%if %{with initscript}
 %post
+/sbin/ldconfig
+
+%postun
+/sbin/ldconfig
 /sbin/chkconfig --add %{name}
 %service %{name} restart
 
@@ -81,13 +79,13 @@ if [ "$1" = "0" ]; then
        %service -q %{name} stop
        /sbin/chkconfig --del %{name}
 fi
-%endif
 
 %files
 %defattr(644,root,root,755)
-%doc doc/Changelog doc/CREDITS  doc/plan doc/example.conf doc/README
-%doc  doc/FEATURES  doc/ietf67-design-02.odp doc/ietf67-design-02.pdf 
-%doc doc/requirements.txt doc/TODO                  
+%doc doc/Changelog doc/CREDITS doc/plan doc/example.conf doc/README
+%doc doc/FEATURES doc/ietf67-design-02.odp doc/ietf67-design-02.pdf
+%doc doc/requirements.txt doc/TODO
+%attr(754,root,root) /etc/rc.d/init.d/unbound
 %{_sysconfdir}/%{name}/unbound.conf
 %attr(755,root,root) %{_libdir}/libunbound.so.*.*.*
 %attr(755,root,root) %{_sbindir}/unbound
@@ -99,10 +97,12 @@ fi
 %{_mandir}/man8/unbound.8*
 
 %files devel
+%defattr(644,root,root,755)
 %{_includedir}/unbound.h
 %{_libdir}/libunbound.la
 %{_libdir}/libunbound.so
 %{_mandir}/man3/libunbound.3*
 
 %files static
+%defattr(644,root,root,755)
 %{_libdir}/libunbound.a
This page took 0.197321 seconds and 4 git commands to generate.