diff options
-rw-r--r-- | main/pingu/APKBUILD | 20 |
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" |