diff --git a/aur/hd-idle/PKGBUILD b/aur/hd-idle/PKGBUILD deleted file mode 100644 index a58a9dd2c..000000000 --- a/aur/hd-idle/PKGBUILD +++ /dev/null @@ -1,41 +0,0 @@ -# Maintainer: Kyle Keen -# Contributor: Tilman Blumenbach - -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" -} - diff --git a/aur/hd-idle/hd-idle.init b/aur/hd-idle/hd-idle.init deleted file mode 100755 index f01a9802e..000000000 --- a/aur/hd-idle/hd-idle.init +++ /dev/null @@ -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 . - -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 diff --git a/aur/hd-idle/hd-idle.install b/aur/hd-idle/hd-idle.install deleted file mode 100644 index fc547bb63..000000000 --- a/aur/hd-idle/hd-idle.install +++ /dev/null @@ -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.' -} diff --git a/aur/hd-idle/hd-idle.service b/aur/hd-idle/hd-idle.service deleted file mode 100644 index 55809a088..000000000 --- a/aur/hd-idle/hd-idle.service +++ /dev/null @@ -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