blob: 75780798b638daec0d8e6e72de066cc9e711b4ca (
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
61
62
|
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=milter-greylist
pkgver=4.4.3
pkgrel=2
pkgdesc="Stand-alone milter written in C that implements the greylist filtering method"
url="http://hcpnet.free.fr/milter-greylist"
arch="all"
license="GPL"
depends=
depends_dev=
makedepends="$depends_dev bison flex libmilter-dev libspf2-dev"
install="$pkgname.pre-install"
subpackages="$pkgname-doc"
pkgusers="smmsp"
pkggroups="smmsp"
source="ftp://ftp.espci.fr/pub/milter-greylist/$pkgname-$pkgver.tgz
milter-greylist-conf.patch
"
builddir="$srcdir"/$pkgname-$pkgver
prepare() {
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 \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var/lib \
--with-libspf2 \
--with-user=smmsp \
--enable-postfix \
--disable-rpath
make -j1 || return 1
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
install -m755 -D ../../$pkgname.initd "$pkgdir"/etc/init.d/$pkgname || return 1
install -m644 greylist2.conf "$pkgdir"/etc/mail/greylist2.conf
chown -R smmsp:smmsp "$pkgdir"/var/lib/$pkgname
}
md5sums="19cf27dc8077a01d103fcf2f367e9509 milter-greylist-4.4.3.tgz
bbecf43a626a81f3383e7b9d21042290 milter-greylist-conf.patch"
sha256sums="fdf7e37c5dd370473ff2cdec7e4b6ca9e60fc2b5c716612d2d449de98d0054a9 milter-greylist-4.4.3.tgz
c0abf2a935f58f7aa8e2f49c272a9fd7c99b6464c2ff00706d1c475b5917db1a milter-greylist-conf.patch"
sha512sums="789c2b1d5b330b4564ef454aaebe891250c655f712081a436bb2d7462daa3590e02b6829881cb2e315db1238e021480013be95d0457d6bbde79a4230926cc841 milter-greylist-4.4.3.tgz
e48bab52eb6fe8a8123ddc56753fb0fa5243bd07272cf2440269cd348f96f6f6a33163e49d9b009a5ff6181a212f9d5d25354d7ddd787603bcde84eda29e4d9c milter-greylist-conf.patch"
|