SPECS: zfs-fuse.spec - added zfs-fuse.init script

paszczus paszczus at pld-linux.org
Tue Sep 16 14:57:35 CEST 2008


Author: paszczus                     Date: Tue Sep 16 12:57:35 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added zfs-fuse.init script

---- Files affected:
SPECS:
   zfs-fuse.spec (1.12 -> 1.13) 

---- Diffs:

================================================================
Index: SPECS/zfs-fuse.spec
diff -u SPECS/zfs-fuse.spec:1.12 SPECS/zfs-fuse.spec:1.13
--- SPECS/zfs-fuse.spec:1.12	Tue Sep 16 14:00:55 2008
+++ SPECS/zfs-fuse.spec	Tue Sep 16 14:57:29 2008
@@ -8,6 +8,7 @@
 Group:		Applications/Emulators
 Source0:	http://download.berlios.de/zfs-fuse/%{name}-%{version}.tar.bz2
 # Source0-md5:	46d6bd429d6d9ddd57e078f5f22fa1cd
+Source1:	%{name}.init
 URL:		http://www.wizy.org/wiki/ZFS_on_FUSE
 BuildRequires:	libaio-devel
 BuildRequires:	libfuse-devel
@@ -85,12 +86,26 @@
 %scons install \
 	install_dir=$RPM_BUILD_ROOT%{_bindir}
 
+install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/zfs-fuse
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+/sbin/chkconfig --add %{name}
+%service %{name} restart
+
+%preun
+if [ "$1" = "0" ]; then
+%service -q %{name} stop
+/sbin/chkconfig --del %{name}
+fi
+
 %files
 %defattr(644,root,root,755)
 %doc BUGS CHANGES HACKING INSTALL LICENSE README STATUS TESTING TODO
+%attr(754,root,root) /etc/rc.d/init.d/%{name}
 %attr(755,root,root) %{_bindir}/*
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -99,6 +114,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.13  2008/09/16 12:57:29  paszczus
+- added zfs-fuse.init script
+
 Revision 1.12  2008/09/16 12:00:55  paszczus
 - hurray! we got final 0.5.0
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/zfs-fuse.spec?r1=1.12&r2=1.13&f=u



More information about the pld-cvs-commit mailing list