blob: 5f8f21f343509ab28821745c9306948282cee969 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pingu
pkgver=1.5
pkgrel=2
pkgdesc="Small daemon that pings hosts and executes a script when status change"
url="https://git.alpinelinux.org/cgit/pingu"
arch="all"
license="GPL"
makedepends="libev-dev lua-dev asciidoc linux-headers"
depends=
subpackages="$pkgname-doc lua-pingu:_lua mtu"
source="pingu-$pkgver.tar.gz::https://github.com/ncopa/pingu/archive/v$pkgver.tar.gz
pingu.initd
"
builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$_builddir"
./configure \
--prefix=/usr \
--localstatedir=/var \
--sysconfdir=/etc \
--with-luapc=lua
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
install -m644 -D pingu.conf "$pkgdir"/etc/pingu/pingu.conf
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
}
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/
}
sha512sums="71e5fbe93f831f24d168957cdeaff2817a22f407575316d6515755bec760d10724821070549eaab562924237b96976a1a776ca903d5fe0cd9f9b69a38eadd8c9 pingu-1.5.tar.gz
b8df9b7bec561e234a2f74514a3513ceac222477f28b9306f40aed6398f65b4e2ce84dfbbf95c0ffaedd526c4283739bf88248d699bbf7d9dac7e27e5cc5a62b pingu.initd"
|