aboutsummaryrefslogtreecommitdiffstats
path: root/main/mrtg/APKBUILD
blob: a439cd6590bd74697d27d23e9a4c2e5f5cfd3c91 (plain) (blame)
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
# Contributor: Jeff Bilyk<jbilyk at gmail>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mrtg
pkgver=2.17.7
pkgrel=0
pkgdesc="MRTG Network Latency Monitoring"
url="https://oss.oetiker.ch/mrtg/"
source="https://oss.oetiker.ch/mrtg/pub/$pkgname-$pkgver.tar.gz
	mrtg.initd mrtg.confd"
subpackages="$pkgname-doc"
depends="perl"
makedepends="gd-dev libpng-dev zlib-dev"
arch="all"
license="GPL"

_builddir="$srcdir"/$pkgname-$pkgver

build() {
       cd "$_builddir"
       ./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--bindir=/usr/bin \
		--libdir=/usr/lib \
		--datadir=/usr/share/doc \
		--mandir=/usr/share/doc/man \
		|| return 1
       make
}

package() {
       cd "$_builddir"
       make install DESTDIR="$pkgdir"
}

sha512sums="b25ab38416213bc5128612724530f36f4a855bb66a65f8bbe4bdafef05d2688eed68f5c3df1e13193102507a4114e71ec226ad32dd6b4d3ae2e2291320d8e768  mrtg-2.17.7.tar.gz
bafdee6845f9f38ca4e3a547ac74e4fdbe444f351f7548b894f2cd3ff39a8eb7d19558459d1c54f5d547e730b8d011e128331c4ec84a192f8ec1c7faa0b577a2  mrtg.initd
ee42805b0d3abb802e7e69d1544f2821223183aadf3a6009c9434e56054d9b0df579e83a9f6ab22afa65590f6d331daf49fb512ac2578e9f473b6d40382dd2b5  mrtg.confd"