rpms/hdapsd/devel hdapsd.event.upstart0.6, NONE, 1.1 hdapsd.spec, 1.1, 1.2 99-hdapsd.rules, 1.1, NONE

Tomasz Torcz ttorcz at fedoraproject.org
Mon Dec 7 21:07:39 UTC 2009


Author: ttorcz

Update of /cvs/pkgs/rpms/hdapsd/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv12623

Modified Files:
	hdapsd.spec 
Added Files:
	hdapsd.event.upstart0.6 
Removed Files:
	99-hdapsd.rules 
Log Message:

- port initscript file to upstart 0.6, removing custom udev rule




--- NEW FILE hdapsd.event.upstart0.6 ---
# hdapsd starting script
# laptops seldom have >2 HDD, so we care only about first two

start on device-added SUBSYSTEM=block DEVNAME=sd[ab][!0-9]
instance $1
expect fork
nice -5

script
	. /etc/sysconfig/hdapsd

	/usr/sbin/hdapsd -b -l -d $1 $HDAPSD_OPTIONS
end script



Index: hdapsd.spec
===================================================================
RCS file: /cvs/pkgs/rpms/hdapsd/devel/hdapsd.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- hdapsd.spec	4 Sep 2009 15:49:30 -0000	1.1
+++ hdapsd.spec	7 Dec 2009 21:07:38 -0000	1.2
@@ -1,15 +1,14 @@
 Name:		hdapsd	
 Version:	20090401
-Release:	4%{?dist}
+Release:	5%{?dist}
 Summary:	Protects hard drives by parking head when fall is detected
 
 Group:		Applications/System
 License:	GPLv2+
 URL:		http://hdaps.sourceforge.net/
 Source0:	http://downloads.sourceforge.net/hdaps/hdapsd-%{version}.tar.gz
-Source1:	hdapsd.event
+Source1:	hdapsd.event.upstart0.6
 Source2:	hdapsd.sysconfig
-Source3:	99-hdapsd.rules
 BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
 %description
@@ -31,12 +30,10 @@ make %{?_smp_mflags}
 %install
 rm -rf %{buildroot}
 make install DESTDIR=%{buildroot}
-mkdir -p %{buildroot}%{_sysconfdir}/event.d/
+mkdir -p %{buildroot}%{_sysconfdir}/init/
 mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/
-mkdir -p %{buildroot}%{_sysconfdir}/udev/rules.d/
-cp -p %SOURCE1 %{buildroot}%{_sysconfdir}/event.d/hdapsd
+cp -p %SOURCE1 %{buildroot}%{_sysconfdir}/init/hdapsd.conf
 cp -p %SOURCE2 %{buildroot}%{_sysconfdir}/sysconfig/hdapsd
-cp -p %SOURCE3 %{buildroot}%{_sysconfdir}/udev/rules.d/
 # remove docs installed by "make install", will be installed in proper dir by %doc
 rm -rf %{buildroot}%{_defaultdocdir}/%{name}
 
@@ -48,8 +45,7 @@ rm -rf %{buildroot}
 %files
 %defattr(-,root,root,-)
 %{_sbindir}/*
-%config(noreplace) %{_sysconfdir}/udev/rules.d/*
-%config(noreplace) %{_sysconfdir}/event.d/hdapsd
+%config(noreplace) %{_sysconfdir}/init/hdapsd.conf
 %config(noreplace) %{_sysconfdir}/sysconfig/hdapsd
 %{_mandir}/man8/hdapsd.8.gz
 %doc AUTHORS
@@ -59,6 +55,9 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Mon Dec 07 2009 Tomasz Torcz <ttorcz at fedoraproject.org> 20090401-5
+- port initscript file to upstart 0.6, removing custom udev rule
+
 * Fri Sep 04 2009 Tomasz Torcz <ttorcz at fedoraproject.org> 20090401-4
 - use version macro in in Source0, as per review suggestion (#505928 #9)
 


--- 99-hdapsd.rules DELETED ---




More information about the fedora-extras-commits mailing list