[arch-commits] Commit in amavisd-milter/repos/community-x86_64 (5 files)

Florian Pritz bluewind at archlinux.org
Sat Jul 13 16:05:52 UTC 2019


    Date: Saturday, July 13, 2019 @ 16:05:52
  Author: bluewind
Revision: 489373

archrelease: copy trunk to community-x86_64

Added:
  amavisd-milter/repos/community-x86_64/PKGBUILD
    (from rev 489372, amavisd-milter/trunk/PKGBUILD)
  amavisd-milter/repos/community-x86_64/amavisd-milter.service
    (from rev 489372, amavisd-milter/trunk/amavisd-milter.service)
Deleted:
  amavisd-milter/repos/community-x86_64/PKGBUILD
  amavisd-milter/repos/community-x86_64/amavisd-milter.service
  amavisd-milter/repos/community-x86_64/fix-client-name.patch

------------------------+
 PKGBUILD               |  104 ++++++++++++++++++++++-------------------------
 amavisd-milter.service |   36 ++++++++--------
 fix-client-name.patch  |   42 ------------------
 3 files changed, 68 insertions(+), 114 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-07-13 16:05:48 UTC (rev 489372)
+++ PKGBUILD	2019-07-13 16:05:52 UTC (rev 489373)
@@ -1,54 +0,0 @@
-# Maintainer: Thore Bödecker <foxxx0 at archlinux.org>
-# Contributor: Florian Pritz <bluewind at xinu.at>
-# Contributor: Karol Babioch <karol at babioch.de>
-
-pkgname=amavisd-milter
-pkgver=1.6.1
-pkgrel=4
-pkgdesc="sendmail milter for amavisd-new using the AM.PDP protocol"
-arch=('x86_64')
-url="http://amavisd-milter.sourceforge.net/"
-license=('BSD')
-depends=('amavisd-new')
-makedepends=('libmilter')
-source=("${pkgname}-${pkgver}.tar.gz::https://sourceforge.net/projects/${pkgname}/files/${pkgname}/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz/download"
-        'amavisd-milter.service'
-        'fix-client-name.patch')
-sha512sums=('28f505a8e130e67decc6c6ff8526f82db24b1b27a11e69f1a112e3e6103f303d333743c2ceaf12bad86979c987cde64f41afb4794c1ca1222cf11a2c3b03c8a5'
-            '0a07da1f1c1299ac26fc8ccd77919e4c5c69ea3e673c1d34f46f730899e2b4234784147fb9929e635a6dc7a40474ca0ba2f03785125ba5b37b1252eb986b4510'
-            '56b0c8841648de9f8f3efccd110d3c9f9dd82a237816873def32bbf620df4e1451538d8be3e06ff1780025add72a57b252371600303181cf1423aa25255a29e0')
-
-prepare() {
-    cd "${srcdir}/${pkgname}-${pkgver}"
-
-    patch -p1 -N -l -i "${srcdir}/fix-client-name.patch"
-
-    # change upstream default paths (must match those of amavisd-new)
-    sed -i 's|/var/amavis|/var/spool/amavis|g' "${pkgname}/amavisd-milter.8"
-}
-
-build() {
-    cd "${srcdir}/${pkgname}-${pkgver}"
-    ./configure \
-        --prefix=/usr \
-        --bindir=/usr/bin \
-        --sbindir=/usr/bin \
-        --sysconfdir=/etc/amavis \
-        --localstatedir=/var/spool/amavis \
-        --sharedstatedir=/usr/share
-    make
-}
-
-check() {
-    cd "${srcdir}/${pkgname}-${pkgver}"
-    make check
-}
-
-package() {
-    cd "${srcdir}/${pkgname}-${pkgver}"
-    make DESTDIR="${pkgdir}" install
-    # license
-    install -D -m644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-    # systemd unit
-    install -D -m644 "${srcdir}/amavisd-milter.service" "${pkgdir}/usr/lib/systemd/system/amavisd-milter.service"
-}

Copied: amavisd-milter/repos/community-x86_64/PKGBUILD (from rev 489372, amavisd-milter/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-07-13 16:05:52 UTC (rev 489373)
@@ -0,0 +1,50 @@
+# Maintainer: Thore Bödecker <foxxx0 at archlinux.org>
+# Contributor: Florian Pritz <bluewind at xinu.at>
+# Contributor: Karol Babioch <karol at babioch.de>
+
+pkgname=amavisd-milter
+pkgver=1.7.0
+pkgrel=1
+pkgdesc="sendmail milter for amavisd-new using the AM.PDP protocol"
+arch=('x86_64')
+url="http://amavisd-milter.sourceforge.net/"
+license=('BSD')
+depends=('amavisd-new')
+makedepends=('libmilter')
+source=("https://github.com/prehor/amavisd-milter/releases/download/$pkgver/amavisd-milter-$pkgver.tar.gz"
+        'amavisd-milter.service')
+sha512sums=('52fdfe4acdd94e387de63d93aa3347dce46e7e16b8ab51679c7bbfc4f6faba160de5ca55aae141cbd06f3d9d1122dea67fdd67562dd5b8314055f7f6071545af'
+            '0a07da1f1c1299ac26fc8ccd77919e4c5c69ea3e673c1d34f46f730899e2b4234784147fb9929e635a6dc7a40474ca0ba2f03785125ba5b37b1252eb986b4510')
+
+prepare() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+
+    # change upstream default paths (must match those of amavisd-new)
+    sed -i 's|/var/amavis|/var/spool/amavis|g' "${pkgname}/amavisd-milter.8"
+}
+
+build() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    ./configure \
+        --prefix=/usr \
+        --bindir=/usr/bin \
+        --sbindir=/usr/bin \
+        --sysconfdir=/etc/amavis \
+        --localstatedir=/var/spool/amavis \
+        --sharedstatedir=/usr/share
+    make
+}
+
+check() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    make check
+}
+
+package() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    make DESTDIR="${pkgdir}" install
+    # license
+    install -D -m644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+    # systemd unit
+    install -D -m644 "${srcdir}/amavisd-milter.service" "${pkgdir}/usr/lib/systemd/system/amavisd-milter.service"
+}

Deleted: amavisd-milter.service
===================================================================
--- amavisd-milter.service	2019-07-13 16:05:48 UTC (rev 489372)
+++ amavisd-milter.service	2019-07-13 16:05:52 UTC (rev 489373)
@@ -1,18 +0,0 @@
-[Unit]
-Description=Amavisd Milter
-Wants=amavisd.service
-After=network.target
-
-[Service]
-PIDFile=/run/amavisd-milter/pid
-Type=simple
-User=amavis
-Group=mail
-UMask=0007
-RuntimeDirectory=amavisd-milter
-RuntimeDirectoryMode=750
-ExecStart=/usr/bin/amavisd-milter -f -p /run/amavisd-milter/pid -s unix:/run/amavisd-milter/socket -w /var/spool/amavis/tmp -S /run/amavis/sock -m 2
-PrivateTmp=true
-
-[Install]
-WantedBy=multi-user.target

Copied: amavisd-milter/repos/community-x86_64/amavisd-milter.service (from rev 489372, amavisd-milter/trunk/amavisd-milter.service)
===================================================================
--- amavisd-milter.service	                        (rev 0)
+++ amavisd-milter.service	2019-07-13 16:05:52 UTC (rev 489373)
@@ -0,0 +1,18 @@
+[Unit]
+Description=Amavisd Milter
+Wants=amavisd.service
+After=network.target
+
+[Service]
+PIDFile=/run/amavisd-milter/pid
+Type=simple
+User=amavis
+Group=mail
+UMask=0007
+RuntimeDirectory=amavisd-milter
+RuntimeDirectoryMode=750
+ExecStart=/usr/bin/amavisd-milter -f -p /run/amavisd-milter/pid -s unix:/run/amavisd-milter/socket -w /var/spool/amavis/tmp -S /run/amavis/sock -m 2
+PrivateTmp=true
+
+[Install]
+WantedBy=multi-user.target

Deleted: fix-client-name.patch
===================================================================
--- fix-client-name.patch	2019-07-13 16:05:48 UTC (rev 489372)
+++ fix-client-name.patch	2019-07-13 16:05:52 UTC (rev 489373)
@@ -1,42 +0,0 @@
-Use {client_name} if available instead of hostname passed to xxfi_connect
-
-Spamassassin's RDNS_NONE check tests if the rdns field in the Received header
-is empty or "unknown". Postfix sets the client_name macro to "unknown" when the
-FcrDNS check fails, but the hostname passed to xxfi_connect is set to the IP
-address which means that RDNS_NONE will never trigger. Fix this by using
-client_name if available and only fall back to the hostname parameter
-otherwise.
-
-diff -ur a/amavisd-milter/mlfi.c b/amavisd-milter/mlfi.c
---- a/amavisd-milter/mlfi.c	2015-05-24 20:59:19.000000000 +0200
-+++ b/amavisd-milter/mlfi.c	2017-12-15 18:08:15.007525175 +0100
-@@ -315,6 +315,7 @@
-     const void *addr;
-     const char *prefix;
-     const char *daemon_name;
-+    const char *client_host;
-     int		len, plen;
- 
-     logmsg(LOG_DEBUG, "%s: CONNECT", hostname);
-@@ -331,8 +332,20 @@
-     (void) memset(mlfi, '\0', sizeof(*mlfi));
-     mlfi->mlfi_amasd = -1;
- 
-+	/* Try to get client_name from macros */
-+	if ((client_host = smfi_getsymval(ctx, "{client_name}")) != NULL) {
-+	    logqidmsg(mlfi, LOG_INFO, "client_name: %s", client_host);
-+	    if ((mlfi->mlfi_client_host = strdup(client_host)) == NULL) {
-+		logqidmsg(mlfi, LOG_ERR, "could not allocate memory");
-+		mlfi_setreply_tempfail(ctx);
-+		return SMFIS_TEMPFAIL;
-+	    }
-+	} else {
-+		logqidmsg(mlfi, LOG_INFO, "{client_name} undefined at connect time! Falling back to libmilter value.");
-+	}
-+
-     /* Save connection informations */
--    if (hostname != NULL && *hostname != '\0') {
-+    if (hostname != NULL && *hostname != '\0' && mlfi->mlfi_client_host == NULL) {
- 	if ((mlfi->mlfi_client_host = strdup(hostname)) == NULL) {
- 	    logmsg(LOG_ERR, "%s: could not allocate memory", hostname);
- 	    mlfi_setreply_tempfail(ctx);



More information about the arch-commits mailing list