APKBUILD 1.38 KB
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2 3
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gross
Natanael Copa's avatar
Natanael Copa committed
4 5
pkgver=1.0.2
pkgrel=0
Natanael Copa's avatar
Natanael Copa committed
6 7 8
pkgdesc="Greylisting of suspicious sources"
url="http://code.google.com/p/gross/"
license="BSD"
9
depends=
Natanael Copa's avatar
Natanael Copa committed
10
makedepends="c-ares-dev autoconf automake libtool sed"
11 12
install="$pkgname.pre-install $pkgname.post-install $pkgname.pre-upgrade 
	$pkgname.post-upgrade"
Natanael Copa's avatar
Natanael Copa committed
13 14
subpackages="$pkgname-doc $pkgname-dev"
source="http://gross.googlecode.com/files/$pkgname-$pkgver.tar.gz
15 16
	grossd.initd
	grossd.confd
Natanael Copa's avatar
Natanael Copa committed
17
	gross-1.0.1-default-conf.patch
18
	"
Natanael Copa's avatar
Natanael Copa committed
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38

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

	for _i in ../*.patch; do
		msg "Applying $_i..."
		patch -p1 < $_i || return 1
	done

	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
39 40
        install -m755 -D "$srcdir"/grossd.initd "$pkgdir"/etc/init.d/grossd
        install -m644 -D "$srcdir"/grossd.confd "$pkgdir"/etc/conf.d/grossd
Natanael Copa's avatar
Natanael Copa committed
41 42
}

Natanael Copa's avatar
Natanael Copa committed
43
md5sums="cb88d88553161c01e9bed7a74c3e9263  gross-1.0.2.tar.gz
44
6e8a2626c0c9f0e98e950a67a55a7040  grossd.initd
45
5ca1c6e51c3243236e6564480b20279b  grossd.confd
Natanael Copa's avatar
Natanael Copa committed
46
7c504b653c71dcf7b192bc487b3516fd  gross-1.0.1-default-conf.patch"