updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / libmilter / PKGBUILD
blob99798a18772dc19da308641dea3bd537118cb2a1
1 # Maintainer: mutantmonkey <mutantmonkey@gmail.com>
2 pkgname=libmilter
3 pkgver=8.14.4
4 pkgrel=3
5 pkgdesc="libmilter"
6 arch=(i686 x86_64)
7 url="http://www.postfix.org/MILTER_README.html"
8 license=('Sendmail open source license')
9 depends=()
10 conflicts=()
11 source="ftp://ftp.sendmail.org/pub/sendmail/sendmail.${pkgver}.tar.gz"
12 md5sums=('1b23d5000c8e7bfe82ec1a27f2f5fdc5')
13 sha256sums=('bc0109437c5018b3ea8999edb63506db2f3b31c4c1ab4367cb56236a7df97cb1')
15 build(){
16   cd "${srcdir}/sendmail-${pkgver}"
18   # From http://www.j-chkmail.org/wiki/doku.php/doc/installation/start#libmilter
19   cat >> devtools/Site/site.config.m4 <<EOF
20 dnl
21 dnl Enable libmilter with a pool of workers
22 APPENDDEF(\`conf_libmilter_ENVDEF',\`-D_FFR_WORKERS_POOL=1 -DMIN_WORKERS=4')
23 dnl
24 dnl Use poll instead of select
25 APPENDDEF(\`conf_libmilter_ENVDEF',\`-DSM_CONF_POLL=1')
26 dnl Enable IPv6
27 APPENDDEF(\`conf_libmilter_ENVDEF',\`-DNETINET6=1')
28 dnl
29 dnl Include our CFLAGS
30 APPENDDEF(\`conf_libmilter_ENVDEF',\`${CFLAGS}')
31 dnl
32 dnl Add -fPIC
33 APPENDDEF(\`conf_libmilter_ENVDEF',\`-fPIC')
34 dnl
35 EOF
37   cd libmilter
38   ./Build
41 package(){
42   cd "${srcdir}/sendmail-${pkgver}/libmilter"
43   mkdir -p "${pkgdir}/usr/lib"
44   ./Build DESTDIR="${pkgdir}" install
47 # vim:set ts=2 sw=2 et: