[arch-commits] Commit in opendkim/repos/community-testing-x86_64 (12 files)
Sergej Pupykin
spupykin at gemini.archlinux.org
Mon Nov 15 12:44:42 UTC 2021
Date: Monday, November 15, 2021 @ 12:44:42
Author: spupykin
Revision: 1048154
archrelease: copy trunk to community-testing-x86_64
Added:
opendkim/repos/community-testing-x86_64/PKGBUILD
(from rev 1048153, opendkim/trunk/PKGBUILD)
opendkim/repos/community-testing-x86_64/opendkim.conf
(from rev 1048153, opendkim/trunk/opendkim.conf)
opendkim/repos/community-testing-x86_64/opendkim.service
(from rev 1048153, opendkim/trunk/opendkim.service)
opendkim/repos/community-testing-x86_64/opendkim.sysusers
(from rev 1048153, opendkim/trunk/opendkim.sysusers)
opendkim/repos/community-testing-x86_64/opendkim.tmpfiles
(from rev 1048153, opendkim/trunk/opendkim.tmpfiles)
opendkim/repos/community-testing-x86_64/openssl_1.1.0_compat.patch
(from rev 1048153, opendkim/trunk/openssl_1.1.0_compat.patch)
Deleted:
opendkim/repos/community-testing-x86_64/PKGBUILD
opendkim/repos/community-testing-x86_64/opendkim.conf
opendkim/repos/community-testing-x86_64/opendkim.service
opendkim/repos/community-testing-x86_64/opendkim.sysusers
opendkim/repos/community-testing-x86_64/opendkim.tmpfiles
opendkim/repos/community-testing-x86_64/openssl_1.1.0_compat.patch
----------------------------+
PKGBUILD | 131 +++++++++++++++----------------
opendkim.conf | 2
opendkim.service | 22 ++---
opendkim.sysusers | 4
opendkim.tmpfiles | 2
openssl_1.1.0_compat.patch | 180 +++++++++++++++++++++----------------------
6 files changed, 170 insertions(+), 171 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-11-15 12:44:27 UTC (rev 1048153)
+++ PKGBUILD 2021-11-15 12:44:42 UTC (rev 1048154)
@@ -1,66 +0,0 @@
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Maintainer: Thomas Jost <schnouki at schnouki.net>
-
-pkgname=opendkim
-pkgver=2.10.3
-pkgrel=8
-pkgdesc="An open source implementation of the DKIM sender authentication system. Based on a fork of dkim-milter."
-arch=(x86_64)
-url="http://www.opendkim.org/"
-license=('BSD' 'custom:Sendmail')
-depends=("db" "openssl" "libbsd" "opendbx" "libldap")
-optdepends=("perl: for opendkim-genkey")
-makedepends=("libmilter")
-options=(!emptydirs)
-backup=(etc/conf.d/opendkim)
-validpgpkeys=('5CDD574C22FF4D2480ACABDF5254B96BC608B511')
-source=(https://downloads.sourceforge.net/project/$pkgname/$pkgname-$pkgver.tar.gz{,.asc}
- opendkim.conf
- opendkim.sysusers
- opendkim.tmpfiles
- opendkim.service
- openssl_1.1.0_compat.patch)
-sha256sums=('43a0ba57bf942095fe159d0748d8933c6b1dd1117caf0273fa9a0003215e681b'
- 'SKIP'
- 'a3b5ecf4f4fe4a79392a75f7c4b6cc93a51ef8503215bb0f64d795f8754d4b68'
- '525ac5df345e753461efa8f6528f5532a00ecf2562f985a3c6c7169235170499'
- 'ab66c9fdcb8913f2a550289dd44d56d17b960cf5275839ffd03cba70a27ab6ed'
- '3e1cb3a3ddb794253d5a1c59673c40687bbc2b1bf878e70ccd03356f6d1e6735'
- '5095a7516493af08396060852851231c9b1cba5ee00493f810f0dfc9a69f8dfe')
-
-prepare() {
- cd "$srcdir/$pkgname-$pkgver"
- patch -Np1 -i "$srcdir"/openssl_1.1.0_compat.patch
- autoreconf -i
-}
-
-build() {
- cd "$srcdir/$pkgname-$pkgver"
- ./configure --prefix=/usr --sbindir=/usr/bin --with-db \
- --with-odbx --with-sql-backend --with-openldap
- make
-}
-
-check() {
- cd "$srcdir/$pkgname-$pkgver"
- make check
-}
-
-package() {
- cd "$srcdir/$pkgname-$pkgver"
-
- make DESTDIR="$pkgdir/" install
- install -Dm644 "$srcdir/opendkim.sysusers" "$pkgdir/usr/lib/sysusers.d/opendkim.conf"
- install -Dm644 "$srcdir/opendkim.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/opendkim.conf"
-
- # configure default configuration
- install -Dm644 "$srcdir/opendkim.conf" "$pkgdir/etc/conf.d/opendkim"
-
- # License
- mkdir -p "$pkgdir/usr/share/licenses/opendkim"
- for f in LICENSE LICENSE.Sendmail; do
- ln -s ../../doc/opendkim/$f "$pkgdir/usr/share/licenses/opendkim/$f"
- done
-
- install -Dm0644 "$srcdir"/$pkgname.service "$pkgdir"/usr/lib/systemd/system/$pkgname.service
-}
Copied: opendkim/repos/community-testing-x86_64/PKGBUILD (from rev 1048153, opendkim/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-11-15 12:44:42 UTC (rev 1048154)
@@ -0,0 +1,65 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: Thomas Jost <schnouki at schnouki.net>
+
+pkgname=opendkim
+pkgver=2.11.0beta
+pkgrel=1
+_commit=14d54524e0a97d3fe9b80441907d7e356c9ded04
+pkgdesc="An open source implementation of the DKIM sender authentication system. Based on a fork of dkim-milter."
+arch=(x86_64)
+url="http://www.opendkim.org/"
+license=('BSD' 'custom:Sendmail')
+depends=("db" "openssl" "libbsd" "opendbx" "libldap")
+optdepends=("perl: for opendkim-genkey")
+makedepends=("libmilter" "git")
+options=(!emptydirs)
+backup=(etc/conf.d/opendkim)
+validpgpkeys=('5CDD574C22FF4D2480ACABDF5254B96BC608B511')
+source=("git://github.com/trusteddomainproject/OpenDKIM.git#commit=${_commit}"
+ opendkim.conf
+ opendkim.sysusers
+ opendkim.tmpfiles
+ opendkim.service
+ openssl_1.1.0_compat.patch)
+sha256sums=('SKIP'
+ 'a3b5ecf4f4fe4a79392a75f7c4b6cc93a51ef8503215bb0f64d795f8754d4b68'
+ '525ac5df345e753461efa8f6528f5532a00ecf2562f985a3c6c7169235170499'
+ 'ab66c9fdcb8913f2a550289dd44d56d17b960cf5275839ffd03cba70a27ab6ed'
+ '3e1cb3a3ddb794253d5a1c59673c40687bbc2b1bf878e70ccd03356f6d1e6735'
+ '5095a7516493af08396060852851231c9b1cba5ee00493f810f0dfc9a69f8dfe')
+
+prepare() {
+ cd "$srcdir/OpenDKIM"
+ autoreconf -i
+}
+
+build() {
+ cd "$srcdir/OpenDKIM"
+ ./configure --prefix=/usr --sbindir=/usr/bin --with-db \
+ --with-odbx --with-sql-backend --with-openldap
+ make
+}
+
+check() {
+ cd "$srcdir/OpenDKIM"
+ make check
+}
+
+package() {
+ cd "$srcdir/OpenDKIM"
+
+ make DESTDIR="$pkgdir/" install
+ install -Dm644 "$srcdir/opendkim.sysusers" "$pkgdir/usr/lib/sysusers.d/opendkim.conf"
+ install -Dm644 "$srcdir/opendkim.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/opendkim.conf"
+
+ # configure default configuration
+ install -Dm644 "$srcdir/opendkim.conf" "$pkgdir/etc/conf.d/opendkim"
+
+ # License
+ mkdir -p "$pkgdir/usr/share/licenses/opendkim"
+ for f in LICENSE LICENSE.Sendmail; do
+ ln -s ../../doc/opendkim/$f "$pkgdir/usr/share/licenses/opendkim/$f"
+ done
+
+ install -Dm0644 "$srcdir"/$pkgname.service "$pkgdir"/usr/lib/systemd/system/$pkgname.service
+}
Deleted: opendkim.conf
===================================================================
--- opendkim.conf 2021-11-15 12:44:27 UTC (rev 1048153)
+++ opendkim.conf 2021-11-15 12:44:42 UTC (rev 1048154)
@@ -1 +0,0 @@
-OPENDKIM_FILTER="-x /etc/opendkim/opendkim.conf"
Copied: opendkim/repos/community-testing-x86_64/opendkim.conf (from rev 1048153, opendkim/trunk/opendkim.conf)
===================================================================
--- opendkim.conf (rev 0)
+++ opendkim.conf 2021-11-15 12:44:42 UTC (rev 1048154)
@@ -0,0 +1 @@
+OPENDKIM_FILTER="-x /etc/opendkim/opendkim.conf"
Deleted: opendkim.service
===================================================================
--- opendkim.service 2021-11-15 12:44:27 UTC (rev 1048153)
+++ opendkim.service 2021-11-15 12:44:42 UTC (rev 1048154)
@@ -1,11 +0,0 @@
-[Unit]
-Description=OpenDKIM daemon
-After=network.target remote-fs.target nss-lookup.target
-
-[Service]
-Type=forking
-EnvironmentFile=/etc/conf.d/opendkim
-ExecStart=/usr/bin/opendkim $OPENDKIM_FILTER
-
-[Install]
-WantedBy=multi-user.target
Copied: opendkim/repos/community-testing-x86_64/opendkim.service (from rev 1048153, opendkim/trunk/opendkim.service)
===================================================================
--- opendkim.service (rev 0)
+++ opendkim.service 2021-11-15 12:44:42 UTC (rev 1048154)
@@ -0,0 +1,11 @@
+[Unit]
+Description=OpenDKIM daemon
+After=network.target remote-fs.target nss-lookup.target
+
+[Service]
+Type=forking
+EnvironmentFile=/etc/conf.d/opendkim
+ExecStart=/usr/bin/opendkim $OPENDKIM_FILTER
+
+[Install]
+WantedBy=multi-user.target
Deleted: opendkim.sysusers
===================================================================
--- opendkim.sysusers 2021-11-15 12:44:27 UTC (rev 1048153)
+++ opendkim.sysusers 2021-11-15 12:44:42 UTC (rev 1048154)
@@ -1,2 +0,0 @@
-u opendkim - - -
-m opendkim mail
Copied: opendkim/repos/community-testing-x86_64/opendkim.sysusers (from rev 1048153, opendkim/trunk/opendkim.sysusers)
===================================================================
--- opendkim.sysusers (rev 0)
+++ opendkim.sysusers 2021-11-15 12:44:42 UTC (rev 1048154)
@@ -0,0 +1,2 @@
+u opendkim - - -
+m opendkim mail
Deleted: opendkim.tmpfiles
===================================================================
--- opendkim.tmpfiles 2021-11-15 12:44:27 UTC (rev 1048153)
+++ opendkim.tmpfiles 2021-11-15 12:44:42 UTC (rev 1048154)
@@ -1 +0,0 @@
-d /etc/opendkim 0700 opendkim mail - -
Copied: opendkim/repos/community-testing-x86_64/opendkim.tmpfiles (from rev 1048153, opendkim/trunk/opendkim.tmpfiles)
===================================================================
--- opendkim.tmpfiles (rev 0)
+++ opendkim.tmpfiles 2021-11-15 12:44:42 UTC (rev 1048154)
@@ -0,0 +1 @@
+d /etc/opendkim 0700 opendkim mail - -
Deleted: openssl_1.1.0_compat.patch
===================================================================
--- openssl_1.1.0_compat.patch 2021-11-15 12:44:27 UTC (rev 1048153)
+++ openssl_1.1.0_compat.patch 2021-11-15 12:44:42 UTC (rev 1048154)
@@ -1,90 +0,0 @@
-Description: Build and work with either openssl 1.0.2 or 1.1.0
- * Add patch to build with either openssl 1.0.2 or 1.1.0 (Closes: #828466)
- - Thanks to Sebastian Andrzej Siewior for the patch
-Author: Sebastian Andrzej Siewior
-Bug-Debian: http://bugs.debian.org/828466
-Origin: vendor
-Forwarded: no
-Reviewed-By: Scott Kitterman <scott at kitterman.com>
-Last-Update: <YYYY-MM-DD>
-
---- opendkim-2.11.0~alpha.orig/configure.ac
-+++ opendkim-2.11.0~alpha/configure.ac
-@@ -864,26 +864,28 @@ then
- AC_SEARCH_LIBS([ERR_peek_error], [crypto], ,
- AC_MSG_ERROR([libcrypto not found]))
-
-- AC_SEARCH_LIBS([SSL_library_init], [ssl], ,
-- [
-- if test x"$enable_shared" = x"yes"
-- then
-- AC_MSG_ERROR([Cannot build shared opendkim
-- against static openssl libraries.
-- Configure with --disable-shared
-- to get this working or obtain a
-- shared libssl library for
-- opendkim to use.])
-- fi
-
-- # avoid caching issue - last result of SSL_library_init
-- # shouldn't be cached for this next check
-- unset ac_cv_search_SSL_library_init
-- LIBCRYPTO_LIBS="$LIBCRYPTO_LIBS -ldl"
-- AC_SEARCH_LIBS([SSL_library_init], [ssl], ,
-- AC_MSG_ERROR([libssl not found]), [-ldl])
-- ]
-- )
-+ AC_LINK_IFELSE(
-+ [AC_LANG_PROGRAM([[#include <openssl/ssl.h>]],
-+ [[SSL_library_init();]])],
-+ [od_have_ossl="yes";],
-+ [od_have_ossl="no";])
-+ if test x"$od_have_ossl" = x"no"
-+ then
-+ if test x"$enable_shared" = x"yes"
-+ then
-+ AC_MSG_ERROR([Cannot build shared opendkim
-+ against static openssl libraries.
-+ Configure with --disable-shared
-+ to get this working or obtain a
-+ shared libssl library for
-+ opendkim to use.])
-+ fi
-+
-+ LIBCRYPTO_LIBS="$LIBCRYPTO_LIBS -ldl"
-+ AC_SEARCH_LIBS([SSL_library_init], [ssl], ,
-+ AC_MSG_ERROR([libssl not found]), [-ldl])
-+ fi
-
- AC_CHECK_DECL([SHA256_DIGEST_LENGTH],
- AC_DEFINE([HAVE_SHA256], 1,
---- opendkim-2.11.0~alpha.orig/opendkim/opendkim-crypto.c
-+++ opendkim-2.11.0~alpha/opendkim/opendkim-crypto.c
-@@ -222,7 +222,11 @@ dkimf_crypto_free_id(void *ptr)
- {
- assert(pthread_setspecific(id_key, ptr) == 0);
-
-+#if OPENSSL_VERSION_NUMBER >= 0x10100000
-+ OPENSSL_thread_stop();
-+#else
- ERR_remove_state(0);
-+#endif
-
- free(ptr);
-
-@@ -392,11 +396,15 @@ dkimf_crypto_free(void)
- {
- if (crypto_init_done)
- {
-+#if OPENSSL_VERSION_NUMBER >= 0x10100000
-+ OPENSSL_thread_stop();
-+#else
- CRYPTO_cleanup_all_ex_data();
- CONF_modules_free();
- EVP_cleanup();
- ERR_free_strings();
- ERR_remove_state(0);
-+#endif
-
- if (nmutexes > 0)
- {
Copied: opendkim/repos/community-testing-x86_64/openssl_1.1.0_compat.patch (from rev 1048153, opendkim/trunk/openssl_1.1.0_compat.patch)
===================================================================
--- openssl_1.1.0_compat.patch (rev 0)
+++ openssl_1.1.0_compat.patch 2021-11-15 12:44:42 UTC (rev 1048154)
@@ -0,0 +1,90 @@
+Description: Build and work with either openssl 1.0.2 or 1.1.0
+ * Add patch to build with either openssl 1.0.2 or 1.1.0 (Closes: #828466)
+ - Thanks to Sebastian Andrzej Siewior for the patch
+Author: Sebastian Andrzej Siewior
+Bug-Debian: http://bugs.debian.org/828466
+Origin: vendor
+Forwarded: no
+Reviewed-By: Scott Kitterman <scott at kitterman.com>
+Last-Update: <YYYY-MM-DD>
+
+--- opendkim-2.11.0~alpha.orig/configure.ac
++++ opendkim-2.11.0~alpha/configure.ac
+@@ -864,26 +864,28 @@ then
+ AC_SEARCH_LIBS([ERR_peek_error], [crypto], ,
+ AC_MSG_ERROR([libcrypto not found]))
+
+- AC_SEARCH_LIBS([SSL_library_init], [ssl], ,
+- [
+- if test x"$enable_shared" = x"yes"
+- then
+- AC_MSG_ERROR([Cannot build shared opendkim
+- against static openssl libraries.
+- Configure with --disable-shared
+- to get this working or obtain a
+- shared libssl library for
+- opendkim to use.])
+- fi
+
+- # avoid caching issue - last result of SSL_library_init
+- # shouldn't be cached for this next check
+- unset ac_cv_search_SSL_library_init
+- LIBCRYPTO_LIBS="$LIBCRYPTO_LIBS -ldl"
+- AC_SEARCH_LIBS([SSL_library_init], [ssl], ,
+- AC_MSG_ERROR([libssl not found]), [-ldl])
+- ]
+- )
++ AC_LINK_IFELSE(
++ [AC_LANG_PROGRAM([[#include <openssl/ssl.h>]],
++ [[SSL_library_init();]])],
++ [od_have_ossl="yes";],
++ [od_have_ossl="no";])
++ if test x"$od_have_ossl" = x"no"
++ then
++ if test x"$enable_shared" = x"yes"
++ then
++ AC_MSG_ERROR([Cannot build shared opendkim
++ against static openssl libraries.
++ Configure with --disable-shared
++ to get this working or obtain a
++ shared libssl library for
++ opendkim to use.])
++ fi
++
++ LIBCRYPTO_LIBS="$LIBCRYPTO_LIBS -ldl"
++ AC_SEARCH_LIBS([SSL_library_init], [ssl], ,
++ AC_MSG_ERROR([libssl not found]), [-ldl])
++ fi
+
+ AC_CHECK_DECL([SHA256_DIGEST_LENGTH],
+ AC_DEFINE([HAVE_SHA256], 1,
+--- opendkim-2.11.0~alpha.orig/opendkim/opendkim-crypto.c
++++ opendkim-2.11.0~alpha/opendkim/opendkim-crypto.c
+@@ -222,7 +222,11 @@ dkimf_crypto_free_id(void *ptr)
+ {
+ assert(pthread_setspecific(id_key, ptr) == 0);
+
++#if OPENSSL_VERSION_NUMBER >= 0x10100000
++ OPENSSL_thread_stop();
++#else
+ ERR_remove_state(0);
++#endif
+
+ free(ptr);
+
+@@ -392,11 +396,15 @@ dkimf_crypto_free(void)
+ {
+ if (crypto_init_done)
+ {
++#if OPENSSL_VERSION_NUMBER >= 0x10100000
++ OPENSSL_thread_stop();
++#else
+ CRYPTO_cleanup_all_ex_data();
+ CONF_modules_free();
+ EVP_cleanup();
+ ERR_free_strings();
+ ERR_remove_state(0);
++#endif
+
+ if (nmutexes > 0)
+ {
More information about the arch-commits
mailing list