-
Notifications
You must be signed in to change notification settings - Fork 4
/
PKGBUILD
32 lines (29 loc) · 904 Bytes
/
PKGBUILD
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
# Maintainer: Martin/Geno <geno+dev {at} fireorbit {dot} de>
pkgname=gatemon-git
_pkgname=gatemon
_pkgauthor=FreifunkBremen
pkgver=r69.efa33b7
pkgrel=1
pkgdesc="Script to monitor the gateway servers of a Freifunk mesh network for outages"
arch=('any')
url="https://github.com/${_pkgauthor}/${_pkgname}"
license=('custom')
depends=('curl' 'monitoring-plugins' 'bind-tools' 'jq')
backup=('etc/gatemon.cfg')
source=("${_pkgname}"::'git+https://github.com/FreifunkBremen/gatemon.git')
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${_pkgname}"
make clean check_dhcp libpacketmark.so
}
package() {
cd "${srcdir}/${_pkgname}"
make DESTDIR="$pkgdir/" install
mkdir "$pkgdir/usr"
mv "$pkgdir/lib" "$pkgdir/usr/"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}