summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Hiscocks2017-03-04 11:13:05 +0000
committerSteven Hiscocks2017-03-04 11:13:05 +0000
commitb9038909cde7f091c127d073f2b263e5a026b2c1 (patch)
tree03c57fbf0ffc5b9739172e514b63fdbec0245507
parentde1a53af6902ff910848c0f410dd1124801499d2 (diff)
downloadaur-b9038909cde7f091c127d073f2b263e5a026b2c1.tar.gz
Update to 4.6.2 and enable DSNRBL
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD13
-rw-r--r--milter-greylist-4.5.11-warning.patch33
3 files changed, 49 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 1e16f6b0ccb..10b2ebdf53c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,8 @@
# Generated by mksrcinfo v8
-# Wed Jul 13 18:14:59 UTC 2016
+# Sat Mar 4 11:10:04 UTC 2017
pkgbase = milter-greylist
pkgdesc = milter-greylist is a stand-alone milter written in C that implements the greylist filtering method.
- pkgver = 4.6.1
+ pkgver = 4.6.2
pkgrel = 1
url = http://hcpnet.free.fr/milter-greylist/
install = milter-greylist.install
@@ -13,9 +13,11 @@ pkgbase = milter-greylist
depends = libspf2
depends = opendkim
backup = etc/mail/greylist.conf
- source = http://ftp.espci.fr/pub/milter-greylist/milter-greylist-4.6.1.tgz
+ source = http://ftp.espci.fr/pub/milter-greylist/milter-greylist-4.6.2.tgz
+ source = milter-greylist-4.5.11-warning.patch
source = milter-greylist.service
- md5sums = f50f89fd5cb81b124f4e7933f197f7a6
+ md5sums = 8872008db2fc6b93dd9ab8576383fec2
+ md5sums = SKIP
md5sums = SKIP
pkgname = milter-greylist
diff --git a/PKGBUILD b/PKGBUILD
index 347236211e4..b708a97fcaf 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: Steven Hiscocks <steven[at]hiscocks[dot]me[dot]uk>
pkgname=milter-greylist
-pkgver=4.6.1
+pkgver=4.6.2
pkgrel=1
pkgdesc="milter-greylist is a stand-alone milter written in C that implements the greylist filtering method."
url="http://hcpnet.free.fr/milter-greylist/"
@@ -11,13 +11,20 @@ makedepends=('libmilter')
backup=('etc/mail/greylist.conf')
install="${pkgname}.install"
source=("http://ftp.espci.fr/pub/${pkgname}/${pkgname}-${pkgver}.tgz"
+ "milter-greylist-4.5.11-warning.patch"
"${pkgname}.service")
-md5sums=('f50f89fd5cb81b124f4e7933f197f7a6'
+md5sums=('8872008db2fc6b93dd9ab8576383fec2'
+ 'SKIP'
'SKIP')
+prepare() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ patch -p0 < ../milter-greylist-4.5.11-warning.patch
+}
+
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
- ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib --with-libspf2=/usr --with-libopendkim=/usr --enable-postfix
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib --with-libspf2=/usr --with-libopendkim=/usr --enable-dnsrbl --enable-postfix
make
}
diff --git a/milter-greylist-4.5.11-warning.patch b/milter-greylist-4.5.11-warning.patch
new file mode 100644
index 00000000000..8a35c384254
--- /dev/null
+++ b/milter-greylist-4.5.11-warning.patch
@@ -0,0 +1,33 @@
+Warning about _BSD_SOURCE being deprecated in favor of _DEFAULT_SOURCE
+breaks build with -Werror -Wall
+
+--- configure.ac
++++ configure.ac
+@@ -1240,9 +1240,12 @@
+ CFLAGS=$CFLAGS$efl
+ AC_MSG_CHECKING([if DNS resolver is re-entrant])
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
++ #pragma GCC diagnostic push
++ # pragma GCC diagnostic warning "-Wcpp"
+ #define _BSD_SOURCE
+
+ #include <sys/types.h>
++ #pragma GCC diagnostic pop
+ #include <netinet/in.h>
+ #include <arpa/inet.h>
+ #include <arpa/nameser.h>
+--- configure
++++ configure
+@@ -8390,9 +8390,12 @@
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+
++ #pragma GCC diagnostic push
++ # pragma GCC diagnostic warning "-Wcpp"
+ #define _BSD_SOURCE
+
+ #include <sys/types.h>
++ #pragma GCC diagnostic pop
+ #include <netinet/in.h>
+ #include <arpa/inet.h>
+ #include <arpa/nameser.h>