1 # Maintainer: mutantmonkey <mutantmonkey@gmail.com>
7 url="http://www.postfix.org/MILTER_README.html"
8 license=('Sendmail open source license')
11 source="ftp://ftp.sendmail.org/pub/sendmail/sendmail.${pkgver}.tar.gz"
12 md5sums=('1b23d5000c8e7bfe82ec1a27f2f5fdc5')
13 sha256sums=('bc0109437c5018b3ea8999edb63506db2f3b31c4c1ab4367cb56236a7df97cb1')
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
21 dnl Enable libmilter with a pool of workers
22 APPENDDEF(\`conf_libmilter_ENVDEF',\`-D_FFR_WORKERS_POOL=1 -DMIN_WORKERS=4')
24 dnl Use poll instead of select
25 APPENDDEF(\`conf_libmilter_ENVDEF',\`-DSM_CONF_POLL=1')
27 APPENDDEF(\`conf_libmilter_ENVDEF',\`-DNETINET6=1')
29 dnl Include our CFLAGS
30 APPENDDEF(\`conf_libmilter_ENVDEF',\`${CFLAGS}')
33 APPENDDEF(\`conf_libmilter_ENVDEF',\`-fPIC')
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: