Date: Wednesday, August 18, 2021 @ 01:20:50
  Author: grawlinson
Revision: 1002853

archrelease: copy trunk to community-x86_64

Added:
  libmilter/repos/community-x86_64/PKGBUILD
    (from rev 1002852, libmilter/trunk/PKGBUILD)
  libmilter/repos/community-x86_64/fd-passing-libmilter.patch
    (from rev 1002852, libmilter/trunk/fd-passing-libmilter.patch)
  libmilter/repos/community-x86_64/site.config.m4
    (from rev 1002852, libmilter/trunk/site.config.m4)
Deleted:
  libmilter/repos/community-x86_64/PKGBUILD
  libmilter/repos/community-x86_64/fd-passing-libmilter.patch
  libmilter/repos/community-x86_64/sendmail-8.15.2-glibc-2.30.patch

----------------------------------+
 PKGBUILD                         |  109 ++++++++++++-------------
 fd-passing-libmilter.patch       |  156 ++++++++++++++++++-------------------
 sendmail-8.15.2-glibc-2.30.patch |   57 -------------
 site.config.m4                   |   15 +++
 4 files changed, 142 insertions(+), 195 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2021-08-18 01:19:35 UTC (rev 1002852)
+++ PKGBUILD    2021-08-18 01:20:50 UTC (rev 1002853)
@@ -1,58 +0,0 @@
-# Maintainer: Gaetan Bisson <bis...@archlinux.org>
-# Contributor: Sergej Pupykin <pupykin.s+a...@gmail.com>
-# Contributor: mutantmonkey <mutantmon...@gmail.com>
-
-pkgname=libmilter
-_pkgname=sendmail
-pkgver=8.15.2
-pkgrel=3
-pkgdesc='Implementation of the sendmail Mail Filter API'
-url='https://www.proofpoint.com/us/sendmail-open-source'
-arch=('x86_64')
-options=('staticlibs')
-license=('custom:Sendmail open source license')
-validpgpkeys=('30BCA74705FA415455731D7BAAF5B5DE05BDCC53')
-source=("https://ftp.sendmail.org/${_pkgname}.${pkgver}.tar.gz"{,.sig}
-        'fd-passing-libmilter.patch'
-        'sendmail-8.15.2-glibc-2.30.patch')
-sha256sums=('24f94b5fd76705f15897a78932a5f2439a32b1a2fdc35769bb1a5f5d9b4db439'
-            'SKIP'
-            'b856ebc17e39151652bda93f40f79756ac83eb4a0b67e6d55c049f3ebde42983'
-            'f5378261028782c95014b0c91546e87132c13d4a39d81f61fc6039a0738a0c71')
-
-
-prepare() {
-       cd "${srcdir}/${_pkgname}-${pkgver}"
-       patch -p1 -i ../fd-passing-libmilter.patch # FS#49421
-       patch -p0 -i ../sendmail-8.15.2-glibc-2.30.patch
-
-       # From 
http://www.j-chkmail.org/wiki/doku.php/doc/installation/start#libmilter
-       cat >> devtools/Site/site.config.m4 <<EOF
-dnl Include our flags
-APPENDDEF(\`conf_libmilter_ENVDEF',\`${CPPFLAGS} ${CFLAGS}')
-dnl Enable libmilter with a pool of workers
-APPENDDEF(\`conf_libmilter_ENVDEF',\`-D_FFR_WORKERS_POOL=1 -DMIN_WORKERS=4')
-dnl Use poll instead of select
-APPENDDEF(\`conf_libmilter_ENVDEF',\`-DSM_CONF_POLL=1')
-dnl Enable IPv6
-APPENDDEF(\`conf_libmilter_ENVDEF',\`-DNETINET6=1')
-dnl Add -fPIC
-APPENDDEF(\`conf_libmilter_ENVDEF',\`-fPIC')
-dnl Permissions
-APPENDDEF(\`confINCGRP',\`root')
-APPENDDEF(\`confLIBGRP',\`root')
-EOF
-}
-
-build() {
-       cd "${srcdir}/${_pkgname}-${pkgver}/${pkgname}"
-       ./Build
-}
-
-package() {
-       cd "${srcdir}/${_pkgname}-${pkgver}/${pkgname}"
-       install -d "${pkgdir}/usr/lib"
-       ./Build DESTDIR="${pkgdir}" install
-       install -Dm644 ../LICENSE 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-       chown -R root:root "${pkgdir}"
-}

Copied: libmilter/repos/community-x86_64/PKGBUILD (from rev 1002852, 
libmilter/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2021-08-18 01:20:50 UTC (rev 1002853)
@@ -0,0 +1,51 @@
+# Maintainer: George Rawlinson <grawlin...@archlinux.org>
+# Contributor: Gaetan Bisson <bis...@archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+a...@gmail.com>
+# Contributor: mutantmonkey <mutantmon...@gmail.com>
+
+_pkgname=sendmail # libmilter is bundled with the sendmail source
+pkgname=libmilter
+pkgver=8.17.1
+pkgrel=1
+pkgdesc='Implementation of the sendmail Mail Filter API'
+url='https://www.proofpoint.com/us/sendmail-open-source'
+arch=('x86_64')
+options=('staticlibs')
+license=('custom:Sendmail')
+# Signing keys sourced from upstream. Current version is signed with the 2021 
keys.
+# 
https://www.proofpoint.com/us/products/email-protection/open-source-email-solution
+validpgpkeys=('F4CE2263210253D6A9F979B04C66EA8D4BEE1BEE')
+source=(
+  "https://ftp.sendmail.org/$_pkgname.$pkgver.tar.gz"{,.sig}
+  'fd-passing-libmilter.patch'
+  'site.config.m4'
+)
+b2sums=('4cbbc2bb536a48ea27994721e9dfefff7739ef1c825bbc0397202e600d8dad8f9a2572a777204693cf9630f767865d50566f0827be6b52be41c1e25532cb394c'
+        'SKIP'
+        
'ea2f1811666ce1b2c7532794845de9ec1f1e72d6c58a02c4c5800e93359c1c1cd4a0353fee572c258c378b0fea776d03ba19d794da7ed3295d9432b47ceb2481'
+        
'4173a1abd272908faeef7f44b5d033f639101f0494be0bcb7e43e29b087f436f082e05a3065fc89f428b91e94cfa0c4b4abf92be77bd722a646012a1f428300a')
+
+prepare() {
+  cd "$_pkgname-$pkgver"
+  patch -p1 -i ../fd-passing-libmilter.patch # FS#49421
+  cp ../site.config.m4 devtools/Site
+}
+
+build() {
+  cd "$_pkgname-$pkgver/$pkgname"
+  ./Build
+}
+
+package() {
+  cd "$_pkgname-$pkgver/$pkgname"
+
+  # create install directory
+  install -vd "$pkgdir/usr/lib"
+  ./Build DESTDIR="$pkgdir" install
+
+  # license
+  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" ../LICENSE
+
+  # correct permissions
+  chown -R root:root "$pkgdir"
+}

Deleted: fd-passing-libmilter.patch
===================================================================
--- fd-passing-libmilter.patch  2021-08-18 01:19:35 UTC (rev 1002852)
+++ fd-passing-libmilter.patch  2021-08-18 01:20:50 UTC (rev 1002853)
@@ -1,80 +0,0 @@
-Description: systemd-like socket activation support for libmilter
-Author: Mikhail Gusarov <dotted...@debian.org
-diff --git a/libmilter/docs/smfi_setconn.html 
b/libmilter/docs/smfi_setconn.html
-index 70a510e..013f04e 100644
---- a/libmilter/docs/smfi_setconn.html
-+++ b/libmilter/docs/smfi_setconn.html
-@@ -43,6 +43,7 @@ Set the socket through which this filter should communicate 
with sendmail.
-       <LI><CODE>{unix|local}:/path/to/file</CODE> -- A named pipe.
-       <LI><CODE>inet:port@{hostname|ip-address}</CODE> -- An IPV4 socket.
-       <LI><CODE>inet6:port@{hostname|ip-address}</CODE> -- An IPV6 socket.
-+      <LI><CODE>fd:number</CODE> -- Pre-opened file descriptor.
-       </UL>
-       </TD></TR>
-     </TABLE>
-diff --git a/libmilter/listener.c b/libmilter/listener.c
-index 48c552f..2249a1f 100644
---- a/libmilter/listener.c
-+++ b/libmilter/listener.c
-@@ -197,6 +197,11 @@ mi_milteropen(conn, backlog, rmsocket, name)
-                       L_socksize = sizeof addr.sin6;
-               }
- #endif /* NETINET6 */
-+              else if (strcasecmp(p, "fd") == 0)
-+              {
-+                      addr.sa.sa_family = AF_UNSPEC;
-+                      L_socksize = sizeof (_SOCK_ADDR);
-+              }
-               else
-               {
-                       smi_log(SMI_LOG_ERR, "%s: unknown socket type %s",
-@@ -443,7 +448,21 @@ mi_milteropen(conn, backlog, rmsocket, name)
-       }
- #endif /* NETINET || NETINET6 */
- 
--      sock = socket(addr.sa.sa_family, SOCK_STREAM, 0);
-+      if (addr.sa.sa_family == AF_UNSPEC)
-+      {
-+              char *end;
-+              sock = strtol(colon, &end, 10);
-+              if (*end != '\0' || sock < 0)
-+              {
-+                      smi_log(SMI_LOG_ERR, "%s: expected positive integer as 
fd, got %s", name, colon);
-+                      return INVALID_SOCKET;
-+              }
-+      }
-+      else
-+      {
-+              sock = socket(addr.sa.sa_family, SOCK_STREAM, 0);
-+      }
-+
-       if (!ValidSocket(sock))
-       {
-               smi_log(SMI_LOG_ERR,
-@@ -466,6 +485,7 @@ mi_milteropen(conn, backlog, rmsocket, name)
- #if NETUNIX
-           addr.sa.sa_family != AF_UNIX &&
- #endif /* NETUNIX */
-+          addr.sa.sa_family != AF_UNSPEC &&
-           setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (void *) &sockopt,
-                      sizeof(sockopt)) == -1)
-       {
-@@ -511,7 +531,8 @@ mi_milteropen(conn, backlog, rmsocket, name)
-       }
- #endif /* NETUNIX */
- 
--      if (bind(sock, &addr.sa, L_socksize) < 0)
-+      if (addr.sa.sa_family != AF_UNSPEC &&
-+          bind(sock, &addr.sa, L_socksize) < 0)
-       {
-               smi_log(SMI_LOG_ERR,
-                       "%s: Unable to bind to port %s: %s",
-@@ -817,7 +838,7 @@ mi_listener(conn, dbg, smfi, timeout, backlog)
- # ifdef BSD4_4_SOCKADDR
-                    cliaddr.sa.sa_len == 0 ||
- # endif /* BSD4_4_SOCKADDR */
--                   cliaddr.sa.sa_family != L_family))
-+                   (L_family != AF_UNSPEC && cliaddr.sa.sa_family != 
L_family)))
-               {
-                       (void) closesocket(connfd);
-                       connfd = INVALID_SOCKET;

Copied: libmilter/repos/community-x86_64/fd-passing-libmilter.patch (from rev 
1002852, libmilter/trunk/fd-passing-libmilter.patch)
===================================================================
--- fd-passing-libmilter.patch                          (rev 0)
+++ fd-passing-libmilter.patch  2021-08-18 01:20:50 UTC (rev 1002853)
@@ -0,0 +1,76 @@
+Description: systemd-like socket activation support for libmilter
+Author: Mikhail Gusarov <dotted...@debian.org
+--- a/libmilter/docs/smfi_setconn.html
++++ b/libmilter/docs/smfi_setconn.html
+@@ -44,6 +44,7 @@ Set the socket through which this filter
+       <LI><CODE>{unix|local}:/path/to/file</CODE> -- A named pipe.
+       <LI><CODE>inet:port@{hostname|ip-address}</CODE> -- An IPV4 socket.
+       <LI><CODE>inet6:port@{hostname|ip-address}</CODE> -- An IPV6 socket.
++      <LI><CODE>fd:number</CODE> -- Pre-opened file descriptor.
+       </UL>
+       </TD></TR>
+     </TABLE>
+--- a/libmilter/listener.c
++++ b/libmilter/listener.c
+@@ -197,6 +197,11 @@
+                       L_socksize = sizeof addr.sin6;
+               }
+ #endif /* NETINET6 */
++              else if (strcasecmp(p, "fd") == 0)
++              {
++                      addr.sa.sa_family = AF_UNSPEC;
++                      L_socksize = sizeof (_SOCK_ADDR);
++              }
+               else
+               {
+                       smi_log(SMI_LOG_ERR, "%s: unknown socket type %s",
+@@ -443,7 +448,21 @@
+       }
+ #endif /* NETINET || NETINET6 */
+
+-      sock = socket(addr.sa.sa_family, SOCK_STREAM, 0);
++      if (addr.sa.sa_family == AF_UNSPEC)
++      {
++              char *end;
++              sock = strtol(colon, &end, 10);
++              if (*end != '\0' || sock < 0)
++              {
++                      smi_log(SMI_LOG_ERR, "%s: expected positive integer as 
fd, got %s", name, colon);
++                      return INVALID_SOCKET;
++              }
++      }
++      else
++      {
++              sock = socket(addr.sa.sa_family, SOCK_STREAM, 0);
++      }
++
+       if (!ValidSocket(sock))
+       {
+               smi_log(SMI_LOG_ERR,
+@@ -466,6 +485,7 @@
+ #if NETUNIX
+           addr.sa.sa_family != AF_UNIX &&
+ #endif
++          addr.sa.sa_family != AF_UNSPEC &&
+           setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (void *) &sockopt,
+                      sizeof(sockopt)) == -1)
+       {
+@@ -511,7 +531,8 @@
+       }
+ #endif /* NETUNIX */
+
+-      if (bind(sock, &addr.sa, L_socksize) < 0)
++      if (addr.sa.sa_family != AF_UNSPEC &&
++          bind(sock, &addr.sa, L_socksize) < 0)
+       {
+               smi_log(SMI_LOG_ERR,
+                       "%s: Unable to bind to port %s: %s",
+@@ -818,7 +839,7 @@
+ #ifdef BSD4_4_SOCKADDR
+                    cliaddr.sa.sa_len == 0 ||
+ #endif
+-                   cliaddr.sa.sa_family != L_family))
++                   (L_family != AF_UNSPEC && cliaddr.sa.sa_family != 
L_family)))
+               {
+                       (void) closesocket(connfd);
+                       connfd = INVALID_SOCKET;

Deleted: sendmail-8.15.2-glibc-2.30.patch
===================================================================
--- sendmail-8.15.2-glibc-2.30.patch    2021-08-18 01:19:35 UTC (rev 1002852)
+++ sendmail-8.15.2-glibc-2.30.patch    2021-08-18 01:20:50 UTC (rev 1002853)
@@ -1,57 +0,0 @@
-The former deprecated macro RES_USE_INET6 is gone with glibc 2.30
-
----
- libmilter/sm_gethost.c |    6 ++++--
- sendmail/conf.c        |    6 ++++--
- 2 files changed, 8 insertions(+), 4 deletions(-)
-
---- libmilter/sm_gethost.c
-+++ libmilter/sm_gethost.c     2019-09-28 07:27:46.512228011 +0000
-@@ -51,18 +51,20 @@ sm_getipnodebyname(name, family, flags,
- {
-       bool resv6 = true;
-       struct hostent *h;
--
-+#ifdef RES_USE_INET6
-       if (family == AF_INET6)
-       {
-               /* From RFC2133, section 6.1 */
-               resv6 = bitset(RES_USE_INET6, _res.options);
-               _res.options |= RES_USE_INET6;
-       }
-+#endif
-       SM_SET_H_ERRNO(0);
-       h = gethostbyname(name);
-+#ifdef RES_USE_INET6
-       if (family == AF_INET6 && !resv6)
-               _res.options &= ~RES_USE_INET6;
--
-+#endif
-       /* the function is supposed to return only the requested family */
-       if (h != NULL && h->h_addrtype != family)
-       {
---- sendmail/conf.c
-+++ sendmail/conf.c    2019-09-28 07:28:39.103245002 +0000
-@@ -4242,18 +4242,20 @@ sm_getipnodebyname(name, family, flags,
- 
- # else /* HAS_GETHOSTBYNAME2 */
-       bool resv6 = true;
--
-+#ifdef RES_USE_INET6
-       if (family == AF_INET6)
-       {
-               /* From RFC2133, section 6.1 */
-               resv6 = bitset(RES_USE_INET6, _res.options);
-               _res.options |= RES_USE_INET6;
-       }
-+#endif
-       SM_SET_H_ERRNO(0);
-       h = gethostbyname(name);
-+#ifdef RES_USE_INET6
-       if (!resv6)
-               _res.options &= ~RES_USE_INET6;
--
-+#endif
-       /* the function is supposed to return only the requested family */
-       if (h != NULL && h->h_addrtype != family)
-       {

Copied: libmilter/repos/community-x86_64/site.config.m4 (from rev 1002852, 
libmilter/trunk/site.config.m4)
===================================================================
--- site.config.m4                              (rev 0)
+++ site.config.m4      2021-08-18 01:20:50 UTC (rev 1002853)
@@ -0,0 +1,15 @@
+dnl Enable libmilter with a pool of workers
+APPENDDEF(`conf_libmilter_ENVDEF',`-D_FFR_WORKERS_POOL=1')
+APPENDDEF(`conf_libmilter_ENVDEF',`-DMIN_WORKERS=4')
+dnl Use poll instead of select
+APPENDDEF(`conf_libmilter_ENVDEF',`-DSM_CONF_POLL=1')
+dnl Enable IPv6
+APPENDDEF(`conf_libmilter_ENVDEF',`-DNETINET6=1')
+dnl Add -fPIC
+APPENDDEF(`conf_libmilter_ENVDEF',`-fPIC')
+dnl Permissions
+APPENDDEF(`confINCGRP',`root')
+APPENDDEF(`confLIBGRP',`root')
+APPENDDEF(`confMBINGRP',`root')
+APPENDDEF(`confSBINGRP',`root')
+APPENDDEF(`confBINGRP',`root')

Reply via email to