diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/wol |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/wol')
-rw-r--r-- | community/wol/PKGBUILD | 27 | ||||
-rw-r--r-- | community/wol/wol.install | 20 |
2 files changed, 47 insertions, 0 deletions
diff --git a/community/wol/PKGBUILD b/community/wol/PKGBUILD new file mode 100644 index 000000000..87bfc7005 --- /dev/null +++ b/community/wol/PKGBUILD @@ -0,0 +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=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") +depends=(sh) +url="http://ahh.sourceforge.net/wol/" +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 || 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/community/wol/wol.install b/community/wol/wol.install new file mode 100644 index 000000000..500ea57c0 --- /dev/null +++ b/community/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 +} |