From 09ad13a5adce57583ee5813bcf6ea39ac46f412625f5edf13a44469d319ab801 Mon Sep 17 00:00:00 2001 From: OBS User mrdocs Date: Sun, 13 May 2012 04:27:29 +0000 Subject: [PATCH] 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 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + parkverbot-1.0.tar.xz | 3 ++ parkverbot-1.0.tar.xz.asc | 17 +++++++++++ parkverbot.changes | 4 +++ parkverbot.spec | 64 +++++++++++++++++++++++++++++++++++++++ 6 files changed, 112 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 parkverbot-1.0.tar.xz create mode 100644 parkverbot-1.0.tar.xz.asc create mode 100644 parkverbot.changes create mode 100644 parkverbot.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/parkverbot-1.0.tar.xz b/parkverbot-1.0.tar.xz new file mode 100644 index 0000000..8a95549 --- /dev/null +++ b/parkverbot-1.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0ae24fccf363cbdaefb9e76cbef29c25a4602ffd17e6d73cc6ea7dd968f50a1b +size 60128 diff --git a/parkverbot-1.0.tar.xz.asc b/parkverbot-1.0.tar.xz.asc new file mode 100644 index 0000000..5e2ad51 --- /dev/null +++ b/parkverbot-1.0.tar.xz.asc @@ -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----- diff --git a/parkverbot.changes b/parkverbot.changes new file mode 100644 index 0000000..05c279f --- /dev/null +++ b/parkverbot.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue May 8 23:11:26 UTC 2012 - jengelh@inai.de + +- Initial package for build.opensuse.org diff --git a/parkverbot.spec b/parkverbot.spec new file mode 100644 index 0000000..96fe7ab --- /dev/null +++ b/parkverbot.spec @@ -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