diff options
author | James Meyer <james.meyer@operamail.com> | 2011-12-07 19:43:43 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2011-12-07 19:43:43 (GMT) |
commit | 65b2738ba8a6b80a17c5a2953a29be935b15d18c (patch) | |
tree | 163711ae5ab32e08b97d7f3c51f19bae7e6ba793 /abs/extra/wol | |
parent | d110649b4180587f1e4064684ba9c61df83a6ec1 (diff) | |
download | linhes_pkgbuild-65b2738ba8a6b80a17c5a2953a29be935b15d18c.zip linhes_pkgbuild-65b2738ba8a6b80a17c5a2953a29be935b15d18c.tar.gz linhes_pkgbuild-65b2738ba8a6b80a17c5a2953a29be935b15d18c.tar.bz2 |
WOL: remove wakeonlan.sh script, as it moved to LinHES-system.
This allows the WOL pkg to be updated without any special considerations.
Diffstat (limited to 'abs/extra/wol')
-rwxr-xr-x | abs/extra/wol/PKGBUILD | 28 | ||||
-rw-r--r-- | abs/extra/wol/wol.install | 20 |
2 files changed, 38 insertions, 10 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/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 +} |