removed aur/hd-idle

This commit is contained in:
Kevin Mihelich 2014-12-02 16:05:52 +00:00
parent 9ff841e3db
commit d9d322b179
4 changed files with 0 additions and 113 deletions

View file

@ -1,41 +0,0 @@
# Maintainer: Kyle Keen <keenerd@gmail.com>
# Contributor: Tilman Blumenbach <tilman@ax86.net>
pkgname=hd-idle
pkgver=1.04
pkgrel=3
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')
install="hd-idle.install"
source=("http://downloads.sf.net/$pkgname/$pkgname-$pkgver.tgz"
"hd-idle.init"
"hd-idle.service")
md5sums=('41e52e669fc59fa82ee0c2bcce1336d3'
'19c07682085d7fa99527c0f35073d331'
'82cd5beede4cd11f94e61f6c8332d07c')
build() {
cd "$srcdir/$pkgname"
make
}
package() {
cd "$srcdir/$pkgname"
sed -i 's|/sbin|/bin|' Makefile
# Install binary
make TARGET_DIR="$pkgdir/usr" install
# 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"
install -Dm 644 "$srcdir/hd-idle.service" "$pkgdir/usr/lib/systemd/system/hd-idle.service"
# Install README:
install -Dm 644 -o 0 -g 0 README "$pkgdir/usr/share/doc/$pkgname/README"
}

View file

@ -1,56 +0,0 @@
#!/bin/sh
# Based on the Debian init.d script from the original hd-idle tarball.
# Modified for Arch Linux by Tilman Blumenbach <tilman@ax86.net>.
DAEMON=/usr/sbin/hd-idle
HD_IDLE_OPTS="-i 600"
START_HD_IDLE=false
[ -r /etc/conf.d/hd-idle ] && . /etc/conf.d/hd-idle
if [ "$START_HD_IDLE" != "true" ] ; then
exit 0
fi
# See if the daemon is there
test -x $DAEMON || exit 0
. /etc/rc.conf
. /etc/rc.d/functions
APP_PID=`pidof -s "${DAEMON}"`
case "$1" in
start)
stat_busy "Starting the hd-idle daemon"
[ -z "$APP_PID" ] && $DAEMON $HD_IDLE_OPTS
if [ $? -eq 0 ]; then
stat_done
add_daemon hd-idle
else
stat_fail
fi
;;
stop)
stat_busy "Stopping the hd-idle daemon"
[ -n "$APP_PID" ] && kill "$APP_PID"
if [ $? -eq 0 ]; then
stat_done
rm_daemon hd-idle
else
stat_fail
fi
;;
restart|force-reload)
$0 stop && sleep 2 && $0 start
;;
*)
echo "Usage: /etc/init.d/hd-idle start/stop/restart/force-reload"
exit 1
;;
esac

View file

@ -1,6 +0,0 @@
post_install() {
echo '>> By default, hd-idle will NOT start when added to the DAEMONS array'
echo '>> in /etc/rc.conf!'
echo '>> Please review /etc/conf.d/hd-idle first and make sure the settings'
echo '>> (HD_IDLE_OPTS) are correct. Then, in the same file, set START_HD_IDLE=true.'
}

View file

@ -1,10 +0,0 @@
[Unit]
Description=Hard drive idling daemon
[Service]
Type=forking
EnvironmentFile=/etc/conf.d/hd-idle
ExecStart=/usr/sbin/hd-idle $HD_IDLE_OPTS
[Install]
WantedBy=multi-user.target