aboutsummaryrefslogtreecommitdiffstats
path: root/main/pingu/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-10-20 09:59:07 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-10-20 09:59:07 +0000
commitc881395e1b29d7f9f260facb6a2835469845fe6f (patch)
treea5e86bf7ef6c9fbd80ece8957c92ea42f8c21b01 /main/pingu/APKBUILD
parentddc0423c7e0c7bf2ac18651bc6fe151f48489137 (diff)
downloadaports-c881395e1b29d7f9f260facb6a2835469845fe6f.tar.bz2
aports-c881395e1b29d7f9f260facb6a2835469845fe6f.tar.xz
main/pingu: update download url
Diffstat (limited to 'main/pingu/APKBUILD')
-rw-r--r--main/pingu/APKBUILD20
1 files changed, 17 insertions, 3 deletions
diff --git a/main/pingu/APKBUILD b/main/pingu/APKBUILD
index 93aaad4e33..d7e6c6414a 100644
--- a/main/pingu/APKBUILD
+++ b/main/pingu/APKBUILD
@@ -7,8 +7,10 @@ pkgdesc="Small daemon that pings hosts and executes a script when status change"
url="http://git.alpinelinux.org/cgit/pingu"
arch="all"
license="GPL"
+makedepends="libev-dev"
depends=
-source="http://git.alpinelinux.org/cgit/$pkgname.git/snapshot/$pkgname-$pkgver.tar.bz2
+subpackages="$pkgname-doc lua-pingu:_lua mtu"
+source="http://git.alpinelinux.org/cgit/$pkgname/snapshot/$pkgname-$pkgver.tar.bz2
pingu.initd
"
@@ -21,10 +23,22 @@ build() {
package() {
cd "$_builddir"
- make BINDIR=/usr/sbin DESTDIR="$pkgdir" install
+ make DESTDIR="$pkgdir" install install-lua
install -m644 -D pingu.conf "$pkgdir"/etc/pingu/pingu.conf
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
}
-md5sums="48cd3a7acacbb1974af90c6de33b4167 pingu-1.0.tar.bz2
+mtu() {
+ pkgdesc="Utility to detect MTU"
+ mkdir -p "$subpkgdir"/usr
+ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
+}
+
+_lua() {
+ pkgdesc="lua module for pingu client"
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib "$pkgdir"/usr/share "$subpkgdir"/usr/
+}
+
+md5sums="23741d643d62b0bade8bc88576245357 pingu-1.0.tar.bz2
e9ded9033027561443c03f8b0e310ad4 pingu.initd"