rpms/hdapsd/devel 99-hdapsd.rules, NONE, 1.1 hdapsd.event, NONE, 1.1 hdapsd.spec, NONE, 1.1 hdapsd.sysconfig, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Tomasz Torcz ttorcz at fedoraproject.org
Fri Sep 4 15:49:30 UTC 2009


Author: ttorcz

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

Modified Files:
	.cvsignore sources 
Added Files:
	99-hdapsd.rules hdapsd.event hdapsd.spec hdapsd.sysconfig 
	import.log 
Log Message:
* Fri Sep 04 2009 Tomasz Torcz <ttorcz at fedoraproject.org> 20090401-4
- use version macro in in Source0, as per review suggestion (#505928 #9)




--- NEW FILE 99-hdapsd.rules ---
# emit event for each block device added
ACTION=="add",    SUBSYSTEM=="block", KERNEL=="*[!0-9]", RUN="/usr/sbin/initctl emit block-device-added %k -eDEVNAME"


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

start on block-device-added sd[ab][!0-9]
instance
nice -5

script
	. /etc/sysconfig/hdapsd

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



--- NEW FILE hdapsd.spec ---
Name:		hdapsd	
Version:	20090401
Release:	4%{?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
Source2:	hdapsd.sysconfig
Source3:	99-hdapsd.rules
BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)

%description

This is a disk protection user-space daemon. It monitors the acceleration
values through the HDAPS/AMS interfaces and automatically initiates disk head
parking if a fall or sliding of the laptop is detected.

HDAPS is typically found in ThinkPad laptops and AMS in Apple laptops.

%prep
%setup -q

%build
%configure
make %{?_smp_mflags}


%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
mkdir -p %{buildroot}%{_sysconfdir}/event.d/
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/
mkdir -p %{buildroot}%{_sysconfdir}/udev/rules.d/
cp -p %SOURCE1 %{buildroot}%{_sysconfdir}/event.d/hdapsd
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}


%clean
rm -rf %{buildroot}


%files
%defattr(-,root,root,-)
%{_sbindir}/*
%config(noreplace) %{_sysconfdir}/udev/rules.d/*
%config(noreplace) %{_sysconfdir}/event.d/hdapsd
%config(noreplace) %{_sysconfdir}/sysconfig/hdapsd
%{_mandir}/man8/hdapsd.8.gz
%doc AUTHORS
%doc COPYING
%doc ChangeLog
%doc README


%changelog
* Fri Sep 04 2009 Tomasz Torcz <ttorcz at fedoraproject.org> 20090401-4
- use version macro in in Source0, as per review suggestion (#505928 #9)

* Tue Jun 21 2009 Tomasz Torcz <ttorcz at fedoraproject.org> 20090401-3
- fixes from review: URL source, proper build root macro
- minor cleanup of event file

* Sun Jun 17 2009 Tomasz Torcz <ttorcz at fedoraproject.org> 20090401-2
- mark upstart event file and udev rule as config files

* Sun Jun 14 2009 Tomasz Torcz <ttorcz at fedoraproject.org> 20090401-1
- initial version


--- NEW FILE hdapsd.sysconfig ---
# default sensivity is 15; bump it a little and enable adaptive tuning
HDAPSD_OPTIONS="-s 22 -a"


--- NEW FILE import.log ---
hdapsd-20090401-4_fc12:HEAD:hdapsd-20090401-4.fc12.src.rpm:1252079234


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/hdapsd/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	29 Aug 2009 03:22:36 -0000	1.1
+++ .cvsignore	4 Sep 2009 15:49:29 -0000	1.2
@@ -0,0 +1 @@
+hdapsd-20090401.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/hdapsd/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	29 Aug 2009 03:22:36 -0000	1.1
+++ sources	4 Sep 2009 15:49:30 -0000	1.2
@@ -0,0 +1 @@
+897cee8b0192febd127470f3e9506aeb  hdapsd-20090401.tar.gz




More information about the fedora-extras-commits mailing list