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
|
|
|
|
pkgrel=1
|
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"
|
2010-12-08 23:15:35 +00:00
|
|
|
"hd-idle.init")
|
2012-09-17 23:37:06 +00:00
|
|
|
md5sums=('41e52e669fc59fa82ee0c2bcce1336d3'
|
|
|
|
'19c07682085d7fa99527c0f35073d331')
|
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
|
|
|
|
|
|
|
# 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"
|
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
|
|
|
}
|
|
|
|
|