summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO9
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD15
-rw-r--r--milter-greylist-4.5.11-warning.patch4
4 files changed, 18 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 10b2ebdf53c..83f8ab364fd 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,8 @@
-# Generated by mksrcinfo v8
-# 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.
+ pkgdesc = A stand-alone milter written in C that implements the greylist filtering method.
pkgver = 4.6.2
pkgrel = 1
url = http://hcpnet.free.fr/milter-greylist/
- install = milter-greylist.install
arch = x86_64
arch = i686
license = BSD
@@ -17,8 +14,8 @@ pkgbase = milter-greylist
source = milter-greylist-4.5.11-warning.patch
source = milter-greylist.service
md5sums = 8872008db2fc6b93dd9ab8576383fec2
- md5sums = SKIP
- md5sums = SKIP
+ md5sums = 6965cbd37d0af10d4d2e74ce8cf25095
+ md5sums = 53d576fdb2150fa2940f4989a40f80d2
pkgname = milter-greylist
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..ea03f290ab6
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+src
+pkg
+*x86_64.pkg.tar.xz
+milter-greylist-*.tgz
diff --git a/PKGBUILD b/PKGBUILD
index b708a97fcaf..1b65ba5d2a1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,21 +1,21 @@
-# Maintainer: Steven Hiscocks <steven[at]hiscocks[dot]me[dot]uk>
+# Maintainer: Amish <contact at via dot aur>
+# Contributor: Steven Hiscocks <steven[at]hiscocks[dot]me[dot]uk>
pkgname=milter-greylist
pkgver=4.6.2
pkgrel=1
-pkgdesc="milter-greylist is a stand-alone milter written in C that implements the greylist filtering method."
+pkgdesc="A stand-alone milter written in C that implements the greylist filtering method."
url="http://hcpnet.free.fr/milter-greylist/"
arch=('x86_64' 'i686')
license=('BSD')
depends=('libspf2' 'opendkim')
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=('8872008db2fc6b93dd9ab8576383fec2'
- 'SKIP'
- 'SKIP')
+ '6965cbd37d0af10d4d2e74ce8cf25095'
+ '53d576fdb2150fa2940f4989a40f80d2')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
@@ -32,8 +32,11 @@ package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
install -m0644 greylist2.conf "${pkgdir}/etc/mail/greylist.conf"
-
install -Dm0644 "${srcdir}/${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
+ echo "u milt-gl - - /var/lib/milter-greylist" | install -Dm644 /dev/stdin "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
+ echo "d /var/lib/milter-greylist 0750 milt-gl milt-gl" | install -Dm644 /dev/stdin "${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf"
+ sed -ne '/This software is available under/,$ p' README | install -Dm644 /dev/stdin "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ rmdir "${pkgdir}"/var{/lib{/milter-greylist,},}
}
# vim:set ts=2 sw=2 et:
diff --git a/milter-greylist-4.5.11-warning.patch b/milter-greylist-4.5.11-warning.patch
index 8a35c384254..385fc4e2843 100644
--- a/milter-greylist-4.5.11-warning.patch
+++ b/milter-greylist-4.5.11-warning.patch
@@ -3,7 +3,7 @@ breaks build with -Werror -Wall
--- configure.ac
+++ configure.ac
-@@ -1240,9 +1240,12 @@
+@@ -1217,9 +1217,12 @@
CFLAGS=$CFLAGS$efl
AC_MSG_CHECKING([if DNS resolver is re-entrant])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
@@ -18,7 +18,7 @@ breaks build with -Werror -Wall
#include <arpa/nameser.h>
--- configure
+++ configure
-@@ -8390,9 +8390,12 @@
+@@ -8282,9 +8282,12 @@
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */