APKBUILD 744 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2 3
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pingu
Natanael Copa's avatar
Natanael Copa committed
4
pkgver=0.4.1
Natanael Copa's avatar
Natanael Copa committed
5
pkgrel=0
Natanael Copa's avatar
Natanael Copa committed
6
pkgdesc="Small daemon that pings hosts and executes a script when status change"
7
url="http://git.alpinelinux.org/cgit/pingu"
Natanael Copa's avatar
Natanael Copa committed
8
license="GPL"
9
depends=
10
source="http://git.alpinelinux.org/cgit/$pkgname/snapshot/$pkgname-$pkgver.tar.bz2
Natanael Copa's avatar
Natanael Copa committed
11 12 13 14 15 16 17 18
	pingu.initd
	"

build() {
	cd "$srcdir/$pkgname-$pkgver"

	make || return 1
	make BINDIR=/usr/sbin DESTDIR="$pkgdir" install
Natanael Copa's avatar
Natanael Copa committed
19
	install -m644 -D pingu.conf "$pkgdir"/etc/pingu/pingu.conf
Natanael Copa's avatar
Natanael Copa committed
20 21 22
	install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
}

Natanael Copa's avatar
Natanael Copa committed
23
md5sums="257abb7c434ae2cda5c029c30584aa88  pingu-0.4.1.tar.bz2
24
318110763cc8ba23a61455d16cb23f97  pingu.initd"