2012-09-17 23:37:06 +00:00
|
|
|
# Maintainer: Kyle Keen <keenerd@gmail.com>
|
2010-12-08 23:15:35 +00:00
|
|
|
# Contributor: Tilman Blumenbach <tilman@ax86.net>
|
|
|
|
|
|
|
|
pkgname=hd-idle
|
2012-09-17 23:37:06 +00:00
|
|
|
pkgver=1.04
|
2013-07-12 02:07:13 +00:00
|
|
|
pkgrel=3
|
2010-12-08 23:15:35 +00:00
|
|
|
pkgdesc='Utility program for spinning-down external disks after a period of idle time.'
|
|
|
|
arch=(i686 x86_64)
|
|
|
|
backup=(etc/conf.d/hd-idle)
|
|
|
|
url="http://hd-idle.sourceforge.net/"
|
|
|
|
license=('GPL')
|
2012-09-17 23:37:06 +00:00
|
|
|
install="hd-idle.install"
|
|
|
|
source=("http://downloads.sf.net/$pkgname/$pkgname-$pkgver.tgz"
|
2013-01-12 00:24:04 +00:00
|
|
|
"hd-idle.init"
|
|
|
|
"hd-idle.service")
|
2012-09-17 23:37:06 +00:00
|
|
|
md5sums=('41e52e669fc59fa82ee0c2bcce1336d3'
|
2013-01-12 00:24:04 +00:00
|
|
|
'19c07682085d7fa99527c0f35073d331'
|
|
|
|
'82cd5beede4cd11f94e61f6c8332d07c')
|
2010-12-08 23:15:35 +00:00
|
|
|
|
|
|
|
build() {
|
2012-09-17 23:37:06 +00:00
|
|
|
cd "$srcdir/$pkgname"
|
|
|
|
make
|
2010-12-08 23:15:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2012-09-17 23:37:06 +00:00
|
|
|
cd "$srcdir/$pkgname"
|
2010-12-08 23:15:35 +00:00
|
|
|
|
2013-07-12 02:07:13 +00:00
|
|
|
sed -i 's|/sbin|/bin|' Makefile
|
|
|
|
|
2010-12-08 23:15:35 +00:00
|
|
|
# Install binary
|
2012-09-17 23:37:06 +00:00
|
|
|
make TARGET_DIR="$pkgdir/usr" install
|
2010-12-08 23:15:35 +00:00
|
|
|
|
2012-09-17 23:37:06 +00:00
|
|
|
# Install custom init script and stock defaults file:
|
|
|
|
install -Do 0 -g 0 "$srcdir/hd-idle.init" "$pkgdir/etc/rc.d/hd-idle"
|
|
|
|
install -Dpm 644 -o 0 -g 0 debian/hd-idle.default "$pkgdir/etc/conf.d/hd-idle"
|
2013-01-12 00:24:04 +00:00
|
|
|
install -Dm 644 "$srcdir/hd-idle.service" "$pkgdir/usr/lib/systemd/system/hd-idle.service"
|
2010-12-08 23:15:35 +00:00
|
|
|
|
|
|
|
# Install README:
|
2012-09-17 23:37:06 +00:00
|
|
|
install -Dm 644 -o 0 -g 0 README "$pkgdir/usr/share/doc/$pkgname/README"
|
2010-12-08 23:15:35 +00:00
|
|
|
}
|
|
|
|
|