summaryrefslogtreecommitdiffstats
path: root/extra/gross/APKBUILD
blob: 986c0eb913621728c4d869d049f62480c65e9424 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gross
pkgver=1.0.1
pkgrel=0
pkgdesc="Greylisting of suspicious sources"
url="http://code.google.com/p/gross/"
license="BSD"
depends="uclibc c-ares"
makedepends="c-ares-dev autoconf automake libtool sed"
install="$pkgname.pre-install $pkgname.post-install"
subpackages="$pkgname-doc $pkgname-dev"
source="http://gross.googlecode.com/files/$pkgname-$pkgver.tar.gz
	$pkgname.initd
	$pkgname.confd
	gross-1.0.1-configure.ac.patch
	gross-1.0.1-default-conf.patch
	gross-1.0.1-user.patch
	$install"

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

	for _i in ../*.patch; do
		msg "Applying $_i..."
		patch -p1 < $_i || return 1
	done
	msg "Running autotools..."
	aclocal --force && autoconf && automake --add-missing \
		&& libtoolize --force --copy || return 1

	export lt_SED='/bin/sed'
	export lt_cv_path_SED='/bin/sed'
        ./configure --prefix=/usr \
                --sysconfdir=/etc \
                --mandir=/usr/share/man \
                --infodir=/usr/share/info

        make -j1 || 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="f8f81b36850dcda30cb81799b9cee3b6  gross-1.0.1.tar.gz
37b83bd0d94f66c733d5562c0327b70f  gross.initd
5ca1c6e51c3243236e6564480b20279b  gross.confd
bb75b119ac96b8f99831ce6df810003f  gross-1.0.1-configure.ac.patch
7c504b653c71dcf7b192bc487b3516fd  gross-1.0.1-default-conf.patch
16e184d59d520db565388f010cc75e83  gross-1.0.1-user.patch
4b55d1c5534167946cc11376d1b05c34  gross.post-install
8f6e45b98888dbb9971f7681bf431f6f  gross.pre-install"