APKBUILD 1.21 KB
Newer Older
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
1 2 3 4
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=gross-svn
pkgver=511
5
pkgrel=1
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
6 7 8
pkgdesc="Greylisting of suspicious sources"
url="http://code.google.com/p/gross/"
license="BSD"
9
depends="uclibc"
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
10
makedepends="c-ares"
11
install="$pkgname.post-install $pkgname.pre-install"
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
12 13 14
subpackages="$pkgname-doc $pkgname-dev"
source="http://alpine.nethq.org/clandmeter/src/${pkgname}-${pkgver}.tar.bz2
$pkgname.initd
15 16
$pkgname.confd
$install"
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
17 18 19 20 21 22 23 24 25 26 27

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

28
        install -dD "$pkgdir"/var/run/gross
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
29 30 31 32 33
        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
34
37b83bd0d94f66c733d5562c0327b70f  gross-svn.initd
35 36 37
5ca1c6e51c3243236e6564480b20279b  gross-svn.confd
4b55d1c5534167946cc11376d1b05c34  gross-svn.post-install
8f6e45b98888dbb9971f7681bf431f6f  gross-svn.pre-install"