summaryrefslogtreecommitdiffstats
path: root/main/mrtg/APKBUILD
blob: 7b50dffa3c3230557254f0919df2c986c1af6530 (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
# Contributor: Jeff Bilyk<jbilyk at gmail>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mrtg
pkgver=2.17.4
pkgrel=2
pkgdesc="MRTG Network Latency Monitoring"
url="http://oss.oetiker.ch/mrtg/"
source="http://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"
}

md5sums="197565e97f97212eef7b414463c8d40c  mrtg-2.17.4.tar.gz
47053d5e51ac8eefe3807d5168219f78  mrtg.initd
a8d246d324b90fd1e37cc912d4651372  mrtg.confd"