Compare commits
32 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f0c0e14adb | ||
|
|
6d0f8f1098 | ||
|
|
420350b7ab | ||
|
|
6b307d5b87 | ||
|
|
d76693b413 | ||
|
|
34f6984b09 | ||
|
|
b261f2dc23 | ||
|
|
bf14592c06 | ||
|
|
b3e7047c13 | ||
|
|
12a00e5cc1 | ||
|
|
4951e41586 | ||
|
|
0faf98ff5b | ||
|
|
7ee4117d1f | ||
|
|
fd12dac015 | ||
| 64c2820392 | |||
|
|
8fb3c2a098 | ||
|
|
6644d2ca07 | ||
|
|
0e8fa0f8a3 | ||
|
|
973a14b98a | ||
|
|
0b20da55f8 | ||
|
|
7c1db1d917 | ||
|
|
b6359c37fd | ||
|
|
4282064842 | ||
|
|
00c8916123 | ||
|
|
7aeb67e7e7 | ||
|
|
298b1a8cbf | ||
|
|
b2ae53e833 | ||
|
|
f8d1b476ce | ||
| d41e075a04 | |||
| 7769a0a0c5 | |||
|
|
35fd987e5c | ||
| be41a3a78a |
7 changed files with 1 additions and 100 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1 +0,0 @@
|
|||
hdapsd-20090401.tar.gz
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
# emit event for each block device added
|
||||
ACTION=="add", SUBSYSTEM=="block", KERNEL=="*[!0-9]", ATTRS{removable}=="0", RUN="/sbin/initctl emit hdapsd-block-device-added %k -eDEVNAME"
|
||||
1
dead.package
Normal file
1
dead.package
Normal file
|
|
@ -0,0 +1 @@
|
|||
Orphaned for 6+ weeks
|
||||
13
hdapsd.event
13
hdapsd.event
|
|
@ -1,13 +0,0 @@
|
|||
# hdapsd starting script
|
||||
# laptops seldom have >2 HDD, so we care only about first two
|
||||
|
||||
start on hdapsd-block-device-added sd[ab]
|
||||
instance
|
||||
nice -5
|
||||
|
||||
script
|
||||
. /etc/sysconfig/hdapsd
|
||||
|
||||
/usr/sbin/hdapsd -b -l -d $1 $HDAPSD_OPTIONS
|
||||
end script
|
||||
|
||||
81
hdapsd.spec
81
hdapsd.spec
|
|
@ -1,81 +0,0 @@
|
|||
Name: hdapsd
|
||||
Version: 20090401
|
||||
Release: 5%{?dist}.1
|
||||
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
|
||||
* Sat Apr 17 2010 Tomasz Torcz <ttorcz@fedoraproject.org> 20090401-5.1
|
||||
- rename upstart event and limit it to no-removable devices in order to fix #550887
|
||||
|
||||
* Sat Feb 20 2010 Tomasz Torcz <ttorcz@fedoraproject.org> 20090401-5
|
||||
- take into account new location of "emitctl" in udev rule
|
||||
- tweak upstart job def to actually start hdapsd;
|
||||
both patches from Hedayat Vatankhah (#566299)
|
||||
|
||||
* Fri Sep 04 2009 Tomasz Torcz <ttorcz@fedoraproject.org> 20090401-4
|
||||
- use version macro in in Source0, as per review suggestion (#505928 #9)
|
||||
|
||||
* Tue Jun 21 2009 Tomasz Torcz <ttorcz@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@fedoraproject.org> 20090401-2
|
||||
- mark upstart event file and udev rule as config files
|
||||
|
||||
* Sun Jun 14 2009 Tomasz Torcz <ttorcz@fedoraproject.org> 20090401-1
|
||||
- initial version
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
# default sensivity is 15; bump it a little and enable adaptive tuning
|
||||
HDAPSD_OPTIONS="-s 22 -a"
|
||||
1
sources
1
sources
|
|
@ -1 +0,0 @@
|
|||
897cee8b0192febd127470f3e9506aeb hdapsd-20090401.tar.gz
|
||||
Reference in a new issue