blob: 93aaad4e33cff8374ac30bb758dbf5fb6f30629f (
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
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pingu
pkgver=1.0
pkgrel=0
pkgdesc="Small daemon that pings hosts and executes a script when status change"
url="http://git.alpinelinux.org/cgit/pingu"
arch="all"
license="GPL"
depends=
source="http://git.alpinelinux.org/cgit/$pkgname.git/snapshot/$pkgname-$pkgver.tar.bz2
pingu.initd
"
_builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$_builddir"
make || return 1
}
package() {
cd "$_builddir"
make BINDIR=/usr/sbin DESTDIR="$pkgdir" install
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
e9ded9033027561443c03f8b0e310ad4 pingu.initd"
|