[arch-commits] Commit in hd-idle/repos (3 files)
Felix Yan
felixonmars at archlinux.org
Tue Jul 7 18:09:55 UTC 2020
Date: Tuesday, July 7, 2020 @ 18:09:55
Author: felixonmars
Revision: 660012
archrelease: copy trunk to community-staging-x86_64
Added:
hd-idle/repos/community-staging-x86_64/
hd-idle/repos/community-staging-x86_64/PKGBUILD
(from rev 660011, hd-idle/trunk/PKGBUILD)
hd-idle/repos/community-staging-x86_64/hd-idle.service
(from rev 660011, hd-idle/trunk/hd-idle.service)
-----------------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
hd-idle.service | 10 ++++++++++
2 files changed, 45 insertions(+)
Copied: hd-idle/repos/community-staging-x86_64/PKGBUILD (from rev 660011, hd-idle/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-07-07 18:09:55 UTC (rev 660012)
@@ -0,0 +1,35 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: Tilman Blumenbach <tilman at ax86.net>
+
+pkgname=hd-idle
+pkgver=1.05
+pkgrel=3
+pkgdesc='Utility program for spinning-down external disks after a period of idle time.'
+arch=('x86_64')
+backup=(etc/conf.d/hd-idle)
+url="http://hd-idle.sourceforge.net/"
+license=('GPL')
+depends=('glibc')
+source=("http://downloads.sf.net/$pkgname/$pkgname-$pkgver.tgz"
+ "hd-idle.service")
+md5sums=('5fa72fe717bc80011a79d6740d2903f3'
+ '6e9162a075a7a99c3d10e9cde9c499df')
+
+build() {
+ cd "$srcdir/$pkgname"
+ sed -i 's|/sbin|/bin|' Makefile
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname"
+
+ make TARGET_DIR="$pkgdir/usr" install
+
+ install -Dm644 README "$pkgdir/usr/share/doc/$pkgname/README"
+ install -Dm644 debian/hd-idle.default "$pkgdir/etc/conf.d/hd-idle"
+
+ cd "$srcdir"
+ install -Dm644 hd-idle.service "$pkgdir/usr/lib/systemd/system/hd-idle.service"
+}
+
Copied: hd-idle/repos/community-staging-x86_64/hd-idle.service (from rev 660011, hd-idle/trunk/hd-idle.service)
===================================================================
--- community-staging-x86_64/hd-idle.service (rev 0)
+++ community-staging-x86_64/hd-idle.service 2020-07-07 18:09:55 UTC (rev 660012)
@@ -0,0 +1,10 @@
+[Unit]
+Description=Hard drive idling daemon
+
+[Service]
+Type=simple
+EnvironmentFile=/etc/conf.d/hd-idle
+ExecStart=/usr/sbin/hd-idle -d $HD_IDLE_OPTS
+
+[Install]
+WantedBy=multi-user.target
More information about the arch-commits
mailing list