SHA256
1
0
forked from pool/parkverbot

Accepting request 120778 from home:jengelh:dev

avoid green disk from parking

OBS-URL: https://build.opensuse.org/request/show/120778
OBS-URL: https://build.opensuse.org/package/show/utilities/parkverbot?expand=0&rev=1
This commit is contained in:
OBS User mrdocs 2012-05-13 04:27:29 +00:00 committed by Git OBS Bridge
commit 09ad13a5ad
6 changed files with 112 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
parkverbot-1.0.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0ae24fccf363cbdaefb9e76cbef29c25a4602ffd17e6d73cc6ea7dd968f50a1b
size 60128

17
parkverbot-1.0.tar.xz.asc Normal file
View File

@ -0,0 +1,17 @@
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
iQIcBAABAgAGBQJPqamnAAoJEN//LNsZ/DONmDsP/ivrAgeHD4aZWLsfixddr2oz
b1yFq6XeCoze+WTXr9YwKjSDZSg0MbPHX/ddPt+K3n9w8W3MgMN5viVIBvha09oI
G4v6whymtXKiqQ9/cp2tdJxfo9K+bQN5jg5YBohD6kEJWx31fZcKcxXtQL9VpVei
Gfc9X5Pt3amtceArz9aUQpeIKVcqu3kbK8uIhSpmaLh7Sx8jqgwfC9vwf1yjMOCo
5HgXVCGCrsLsrbk+xuWOln65/uKl50fQlh+YiZ7r3sXlusxq32G0mT3l4Jx4/OtR
XYPd3IHSoZlfdpCwdfvYDqT8/GfDuBM2LsPxWdijrC8rLMdPzMBuVTONnMRueYqq
b+jmCeKhABEyPM81JzItO/p+daFfbnRDCI1jdNYaseFAr/7sFHwzW+PB6HtQkrlZ
lPkPjTTLKI+Y2E1p9Fo+9PYWU9S7WICKluo/EyN3w9JXvas5nlrEic4UWAk9MXAs
Er8dSkqK44cziDFFjxtnWTGvxASwho89YV/HhkCEObKCx1ClTnYZKconnp9LAHn6
fQHiKHRV2/DmSGM2GHWx9RFaR5b1CIei4FQmD9xToIwzHnxgFGwhlm8mK19zLBIw
x9mzy5NObcOFL7F++4Jvtt7GKEBag3v/q/wx2X/7SuFtfKFdGy3zg72Bxhsl3cae
TUqvWXQ0VYaO4WtgNJZA
=rFTH
-----END PGP SIGNATURE-----

4
parkverbot.changes Normal file
View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Tue May 8 23:11:26 UTC 2012 - jengelh@inai.de
- Initial package for build.opensuse.org

64
parkverbot.spec Normal file
View File

@ -0,0 +1,64 @@
#
# spec file for package parkverbot
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: parkverbot
Version: 1.0
Release: 0
Group: System/Base
Url: http://parkverbot.sf.net/
Summary: Daemon to prevent hard disk head parking in rotational media
License: GPL-2.0+
Source: http://downloads.sf.net/parkverbot/%name-%version.tar.xz
Source2: http://downloads.sf.net/parkverbot/%name-%version.tar.xz.asc
#BuildRequires: autoconf >= 2.60, automake >= 1.10
BuildRequires: pkgconfig >= 0.23 pkgconfig(libHX) >= 3.12, systemd, xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%systemd_requires
%description
Modern rotational hard disks have a misfeature involving the regular
automatic unloading of the heads, measurable by the SMART attribute
"Load_Cycle_Count", that causes latency on wake-up, and while the
manufacturers sell this as "green", it is believed to cause reduced
hard disk life.
The parkverbot daemon will periodically issue small read requests in
order to keep the hardware from going to its head-unloaded idle
state.
%prep
%setup -q
%build
if [ ! -e configure ]; then
autoreconf -fi;
fi;
%configure --with-unitdir="%_unitdir"
make %{?_smp_mflags};
%install
make install DESTDIR="%buildroot";
%files
%defattr(-,root,root)
%_sbindir/parkverbot
%_mandir/man*/parkverbot*
%if %{?_unitdir:1}
%_unitdir/parkverbot@.service
%endif
%changelog