ports/contrib (3.6): postfix-pgsql: initial import, version 3.7.0
![](https://secure.gravatar.com/avatar/df8330968b6df8cd1c1942c5fb4b720c.jpg?s=120&d=mm&r=g)
commit ab29be27f79c4a1c3dc8d2450868be938a392155 Author: Matt Housh <jaeger@crux.ninja> Date: Sat Apr 9 22:45:51 2022 -0500 postfix-pgsql: initial import, version 3.7.0 diff --git a/postfix-pgsql/.footprint b/postfix-pgsql/.footprint new file mode 100644 index 000000000..f41980217 --- /dev/null +++ b/postfix-pgsql/.footprint @@ -0,0 +1,8 @@ +drwxr-xr-x root/root etc/ +drwxr-xr-x root/root etc/postfix/ +drwxr-xr-x root/root etc/postfix/dynamicmaps.cf.d/ +-rw-r--r-- root/root etc/postfix/dynamicmaps.cf.d/pgsql.cf +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/postfix/ +-rwxr-xr-x root/root usr/lib/postfix/postfix-pgsql.so diff --git a/postfix-pgsql/.signature b/postfix-pgsql/.signature new file mode 100644 index 000000000..57d305e0d --- /dev/null +++ b/postfix-pgsql/.signature @@ -0,0 +1,5 @@ +untrusted comment: verify with /etc/ports/contrib.pub +RWSagIOpLGJF34KhDJ2eQK3c2rYc34vBgEMUI7Isxc+2V47Eh5DzwmGVG/gay6ZdVGZVfRD2XKxb7c4PlF9nhtV36UYRPfb3rQQ= +SHA256 (Pkgfile) = f2467d3de4ab277f4298e721cee31e6c623d90dfa5b22b4d2e9185b4f872538c +SHA256 (.footprint) = c398d33f41785bacc5a8588ecf716dd8f522b601a45b7017129c6d5aec117205 +SHA256 (postfix-3.7.0.tar.gz) = 645c6a74959703f8dff5b696b2df2e8bc0c91ac530127a21c998e3defbb9528c diff --git a/postfix-pgsql/Pkgfile b/postfix-pgsql/Pkgfile new file mode 100644 index 000000000..36d201f5c --- /dev/null +++ b/postfix-pgsql/Pkgfile @@ -0,0 +1,35 @@ +# Description: Postfix Mail Transport Agent (MTA) PostgreSQL database support +# URL: http://www.postfix.org/ +# Maintainer: Matt Housh, jaeger at crux dot ninja +# Depends on: postfix postgresql + +name=postfix-pgsql +version=3.7.0 +release=1 +source=(http://ftp.porcupine.org/mirrors/postfix-release/official/postfix-${version}.tar.gz) + +build() { + cd postfix-$version + + make tidy + make makefiles \ + DEBUG="" \ + OPT="${CFLAGS}" \ + pie=yes \ + shared=yes \ + dynamicmaps=yes \ + CCARGS="-DUSE_SASL_AUTH -DUSE_CYRUS_SASL -DUSE_TLS -I/usr/include/sasl" \ + AUXLIBS="-lsasl2 -lssl -lcrypto" \ + CCARGS+="-DHAS_PGSQL -I /usr/include/postgresql" \ + AUXLIBS_PGSQL="-lpq" + make + + install -D -m 0755 lib/postfix-pgsql.so \ + ${PKG}/usr/lib/postfix/postfix-pgsql.so + + install -d -m 0755 ${PKG}/etc/postfix/dynamicmaps.cf.d + echo -e "pgsql\tpostfix-pgsql.so\tdict_pgsql_open" > \ + ${PKG}/etc/postfix/dynamicmaps.cf.d/pgsql.cf +} + +# vim: set ts=4 et: diff --git a/postfix-pgsql/README b/postfix-pgsql/README new file mode 100644 index 000000000..fed549ad2 --- /dev/null +++ b/postfix-pgsql/README @@ -0,0 +1,8 @@ +# postfix-pgsql README + +NOTE: Currently postfix does not build with fakeroot; if you see a message +which says "ATTENTION: Not supported: building with LD_LIBRARY_PATH" this +is the cause. + +See http://www.postfix.org/PGSQL_README.html for general information about +postfix PostgreSQL support.
participants (1)
-
crux@crux.nu