aboutsummaryrefslogtreecommitdiffstats
path: root/main/gross/APKBUILD
blob: e06a6ef58a4df4ecb4819f5b827501465ae82e97 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gross
pkgver=1.0.2
pkgrel=5
pkgdesc="Greylisting of suspicious sources"
url="http://code.google.com/p/gross/"
arch="all"
license="BSD"
depends=
makedepends="c-ares-dev autoconf automake libtool sed"
install="$pkgname.pre-install $pkgname.post-install $pkgname.pre-upgrade 
	$pkgname.post-upgrade"
subpackages="$pkgname-doc $pkgname-dev"
source="http://gross.googlecode.com/files/$pkgname-$pkgver.tar.gz
	grossd.initd
	grossd.confd
	gross-1.0.1-default-conf.patch
	gross-grey_tuple.patch
	fix-shadow-declaration.patch"

_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
        local i
        cd "$_builddir"
        for i in $source; do
                case $i in
                *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
                esac
        done
}


build() {
	cd "$_builddir"
        ./configure --prefix=/usr \
                --sysconfdir=/etc \
                --mandir=/usr/share/man \
                --infodir=/usr/share/info

        make -j1 || return 1
}

package() {
	cd "$_builddir"

        make -j1 DESTDIR="$pkgdir" install
	rm "$pkgdir"/usr/lib/*.la

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

md5sums="cb88d88553161c01e9bed7a74c3e9263  gross-1.0.2.tar.gz
6e8a2626c0c9f0e98e950a67a55a7040  grossd.initd
5ca1c6e51c3243236e6564480b20279b  grossd.confd
7c504b653c71dcf7b192bc487b3516fd  gross-1.0.1-default-conf.patch
47aaeb75a7dc7bd5a05a27287bd88c32  gross-grey_tuple.patch
f88e39538dffe9a6f63516c88b7e2a39  fix-shadow-declaration.patch"