diff options
Diffstat (limited to 'abs/extra/wol')
-rwxr-xr-x | abs/extra/wol/PKGBUILD | 28 | ||||
-rwxr-xr-x | abs/extra/wol/wakeonlan.sh | 10 | ||||
-rw-r--r-- | abs/extra/wol/wol.install | 20 |
3 files changed, 38 insertions, 20 deletions
diff --git a/abs/extra/wol/PKGBUILD b/abs/extra/wol/PKGBUILD index a9bb4eb..87bfc70 100755 --- a/abs/extra/wol/PKGBUILD +++ b/abs/extra/wol/PKGBUILD @@ -1,19 +1,27 @@ +# $Id: PKGBUILD 17446 2010-05-24 10:42:15Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: Anders Bergh <anders1@gmail.com> # Contributor: Markus Volkmann <mcfock@counterstrike.de> + pkgname=wol pkgver=0.7.1 -pkgrel=3 +pkgrel=4 +arch=('i686' 'x86_64') pkgdesc="wol implements Wake On LAN functionality in a small program. It wakes up hardware that is Magic Packet compliant." -license="GPL" +license=("GPL") +depends=(sh) url="http://ahh.sourceforge.net/wol/" -arch=('i686') -source=(http://easynews.dl.sourceforge.net/sourceforge/ahh/wol-$pkgver.tar.gz wakeonlan.sh) +install=wol.install +source=(http://downloads.sourceforge.net/ahh/wol-$pkgver.tar.gz) md5sums=('c2fa9d7e771134ac8c89d56b8197d4ca') build() { - cd $startdir/src/$pkgname-$pkgver - ./configure --prefix=/usr - make || return 1 - make prefix=$startdir/pkg/usr install - install -m755 $startdir/src/wakeonlan.sh $startdir/pkg/usr/bin/wakeonlan.sh -} + cd $startdir/src/$pkgname-$pkgver + ./configure --prefix=/usr + make || return 1 + make prefix=$startdir/pkg/usr install || return 1 + mv $pkgdir/usr/man $pkgdir/usr/share/ && \ + mv $pkgdir/usr/info $pkgdir/usr/share/ && \ + rm $pkgdir/usr/share/info/dir +} diff --git a/abs/extra/wol/wakeonlan.sh b/abs/extra/wol/wakeonlan.sh deleted file mode 100755 index f87dd34..0000000 --- a/abs/extra/wol/wakeonlan.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash -DIR="/data/srv/hobbit/var/hostdata/$1" -FILE=`ls -t --group-directories-first $DIR|tail -n 1` -for mac in `grep HW "$DIR/$FILE" |awk '{ print $5 } '` -do - /usr/bin/wol -v $mac -done - - - diff --git a/abs/extra/wol/wol.install b/abs/extra/wol/wol.install new file mode 100644 index 0000000..500ea57 --- /dev/null +++ b/abs/extra/wol/wol.install @@ -0,0 +1,20 @@ +infodir=/usr/share/info +filelist=(wol.info) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file.gz $infodir/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null + done +} |