diff options
author | Hidde van der Heide <hvanderheide@nexuz.net> | 2018-06-27 15:15:21 +0000 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-07-08 20:06:32 +0200 |
commit | c339228a8df78513a8b44cfbd1f533abad645402 (patch) | |
tree | a2ab5097c6a87f14566d83d27f5cb2f04b177e78 | |
parent | 0295a58d1dd088f56e1db1f273633770407e6fa8 (diff) | |
download | aports-c339228a8df78513a8b44cfbd1f533abad645402.tar.bz2 aports-c339228a8df78513a8b44cfbd1f533abad645402.tar.xz |
testing/opendmarc: new aport
http://www.trusteddomain.org/opendmarc/
A free open source implementation of the DMARC specification.
Committer notes:
* Added -dev subpackage.
* Added --build, --host, --with-installdir flags and needed update_config_*.
* Added BSD-3-Clause to the licenses.
-rw-r--r-- | testing/opendmarc/APKBUILD | 47 | ||||
-rw-r--r-- | testing/opendmarc/netdb_defines.patch | 20 |
2 files changed, 67 insertions, 0 deletions
diff --git a/testing/opendmarc/APKBUILD b/testing/opendmarc/APKBUILD new file mode 100644 index 0000000000..e4d43f01c6 --- /dev/null +++ b/testing/opendmarc/APKBUILD @@ -0,0 +1,47 @@ +# Contributor: Hidde van der Heide <hvanderheide@nexuz.net> +# Maintainer: +pkgname=opendmarc +pkgver=1.3.2 +pkgrel=0 +pkgdesc="A free open source implementation of the DMARC specification" +url="http://www.trusteddomain.org/opendmarc/" +arch="all" +license="BSD-3-Clause Sendmail" +makedepends="libmilter-dev" +subpackages="$pkgname-doc $pkgname-dev" +source="https://downloads.sourceforge.net/project/$pkgname/$pkgname-$pkgver.tar.gz + netdb_defines.patch + " +builddir="$srcdir/$pkgname-$pkgver" + +prepare() { + default_prepare + update_config_guess + update_config_sub +} + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var \ + --with-installdir=/usr + make +} + +check() { + cd "$builddir" + opendmarc/opendmarc -V +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +sha512sums="6045fb7d2be8f0ffdeca07324857d92908a41c6792749017c2fcc1058f05f55317b1919c67c780827dd7094ec8fff2e1fa4aeb5bab7ff7461537957af2652748 opendmarc-1.3.2.tar.gz +a6808ac27264c84a8f7210ccc67f03028bc3644542c4def30824e6342a3fb207615c7b4b21f38084523df0b4dd777fbb6e9d3802bb50b41d3c5b0ce29ebfeff7 netdb_defines.patch" diff --git a/testing/opendmarc/netdb_defines.patch b/testing/opendmarc/netdb_defines.patch new file mode 100644 index 0000000000..0009f1d799 --- /dev/null +++ b/testing/opendmarc/netdb_defines.patch @@ -0,0 +1,20 @@ +--- a/libopendmarc/opendmarc_internal.h 2015-02-23 20:31:51.000000000 +0000 ++++ b/libopendmarc/opendmarc_internal.h 2018-06-27 13:59:30.237526809 +0000 +@@ -115,6 +115,17 @@ + + #define DNS_MAX_RETRIES 6 + ++/* ++** Fix missing NETDB defines when using musl libc ++*/ ++#if !defined(NETDB_INTERNAL) ++# define NETDB_INTERNAL (-1) ++#endif ++ ++#if !defined(NETDB_SUCCESS) ++# define NETDB_SUCCESS (0) ++#endif ++ + /***************************************************************************** + ** DMARC_POLICY_T -- The opaque context for the library. + ** Memory needs to be allocated and freed. |