summaryrefslogtreecommitdiff
path: root/community/libmilter
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/libmilter
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/libmilter')
-rw-r--r--community/libmilter/PKGBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/community/libmilter/PKGBUILD b/community/libmilter/PKGBUILD
new file mode 100644
index 000000000..6256f409f
--- /dev/null
+++ b/community/libmilter/PKGBUILD
@@ -0,0 +1,47 @@
+# $Id: PKGBUILD 88321 2013-04-16 13:29:18Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Maintainer: mutantmonkey <mutantmonkey@gmail.com>
+
+pkgname=libmilter
+pkgver=8.14.6
+pkgrel=1
+pkgdesc="libmilter"
+arch=(i686 x86_64)
+url="http://www.postfix.org/MILTER_README.html"
+license=('custom:Sendmail open source license')
+source="ftp://ftp.sendmail.org/pub/sendmail/sendmail.${pkgver}.tar.gz"
+md5sums=('9eeed3d1baecbf4e17d829d2ec005553')
+
+build(){
+ cd "${srcdir}/sendmail-${pkgver}"
+
+ # From http://www.j-chkmail.org/wiki/doku.php/doc/installation/start#libmilter
+ cat >> devtools/Site/site.config.m4 <<EOF
+dnl
+dnl Enable libmilter with a pool of workers
+APPENDDEF(\`conf_libmilter_ENVDEF',\`-D_FFR_WORKERS_POOL=1 -DMIN_WORKERS=4')
+dnl
+dnl Use poll instead of select
+APPENDDEF(\`conf_libmilter_ENVDEF',\`-DSM_CONF_POLL=1')
+dnl Enable IPv6
+APPENDDEF(\`conf_libmilter_ENVDEF',\`-DNETINET6=1')
+dnl
+dnl Include our CFLAGS
+APPENDDEF(\`conf_libmilter_ENVDEF',\`${CFLAGS}')
+dnl
+dnl Add -fPIC
+APPENDDEF(\`conf_libmilter_ENVDEF',\`-fPIC')
+dnl
+EOF
+
+ cd libmilter
+ ./Build
+}
+
+package(){
+ cd "${srcdir}/sendmail-${pkgver}/libmilter"
+ mkdir -p "${pkgdir}/usr/lib"
+ ./Build DESTDIR="${pkgdir}" install
+ install -Dm0644 ../LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+ chown -R root:root $pkgdir
+}