SPECS: unbound.spec - add init script
aredridel
aredridel at pld-linux.org
Thu May 22 01:10:33 CEST 2008
Author: aredridel Date: Wed May 21 23:10:33 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- add init script
---- Files affected:
SPECS:
unbound.spec (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SPECS/unbound.spec
diff -u SPECS/unbound.spec:1.1 SPECS/unbound.spec:1.2
--- SPECS/unbound.spec:1.1 Wed May 21 15:59:04 2008
+++ SPECS/unbound.spec Thu May 22 01:10:27 2008
@@ -8,12 +8,8 @@
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)
@@ -62,6 +58,8 @@
%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
@@ -69,11 +67,11 @@
%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
@@ -82,13 +80,13 @@
%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
@@ -100,12 +98,14 @@
%{_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
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -114,6 +114,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.2 2008-05-21 23:10:27 aredridel
+- add init script
+
Revision 1.1 2008-05-21 13:59:04 aredridel
- added, NFY
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/unbound.spec?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list