summaryrefslogtreecommitdiffstats
path: root/testing/gross-svn/APKBUILD
blob: 8ac18accc81a42c204a3f016299f9eaf33b39b62 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=gross-svn
pkgver=511
pkgrel=2
pkgdesc="Greylisting of suspicious sources"
url="http://code.google.com/p/gross/"
arch="x86 x86_64"
license="BSD"
depends=
makedepends="c-ares-dev"
install="$pkgname.post-install $pkgname.pre-install"
subpackages="$pkgname-doc $pkgname-dev"
source="http://alpine.nethq.org/clandmeter/src/${pkgname}-${pkgver}.tar.bz2
$pkgname.initd
$pkgname.confd"

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

        ./configure --prefix=/usr \
                --sysconfdir=/etc \
                --mandir=/usr/share/man \
                --infodir=/usr/share/info
        make || return 1
        make -j1 DESTDIR="$pkgdir" install

        install -dD "$pkgdir"/var/run/gross
        install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/gross
        install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/gross
}

md5sums="f2488ced5b47f359c3a1127d9ba3453c  gross-svn-511.tar.bz2
e8d7c8ce4760f8443ab13c3a4af80db0  gross-svn.initd
5ca1c6e51c3243236e6564480b20279b  gross-svn.confd"