From 65b2738ba8a6b80a17c5a2953a29be935b15d18c Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Wed, 7 Dec 2011 13:43:43 -0600
Subject: WOL:  remove wakeonlan.sh script, as it moved to LinHES-system. This
 allows the WOL pkg to be updated without any special considerations.

---
 abs/extra/wol/PKGBUILD    | 28 ++++++++++++++++++----------
 abs/extra/wol/wol.install | 20 ++++++++++++++++++++
 2 files changed, 38 insertions(+), 10 deletions(-)
 create mode 100644 abs/extra/wol/wol.install

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
+}
-- 
cgit v0.12

