[arch-commits] Commit in (5 files)

Thore Bödecker foxxx0 at archlinux.org
Mon Jun 5 19:41:43 UTC 2017


    Date: Monday, June 5, 2017 @ 19:41:42
  Author: foxxx0
Revision: 234406

import from AUR with small adjustments

Added:
  libspf2/
  libspf2/repos/
  libspf2/trunk/
  libspf2/trunk/PKGBUILD
  libspf2/trunk/fix-variadic-macros.patch

---------------------------+
 PKGBUILD                  |   37 +++++++++++++++++++++++++++++++++++++
 fix-variadic-macros.patch |   29 +++++++++++++++++++++++++++++
 2 files changed, 66 insertions(+)

Added: libspf2/trunk/PKGBUILD
===================================================================
--- libspf2/trunk/PKGBUILD	                        (rev 0)
+++ libspf2/trunk/PKGBUILD	2017-06-05 19:41:42 UTC (rev 234406)
@@ -0,0 +1,37 @@
+# Maintainer: Thore Bödecker <foxxx0 at archlinux.org>
+# Contributor: svvac <_ at svvac.net>
+
+pkgname="libspf2"
+pkgver=1.2.10
+pkgrel=2
+pkgdesc="Sender Policy Framework record checking library"
+arch=('x86_64' 'i686')
+url="http://www.libspf2.org/"
+license=('LGPL')
+makedepends=('libmilter')
+source=("http://www.libspf2.org/spf/${pkgname}-${pkgver}.tar.gz"
+        'fix-variadic-macros.patch')
+sha512sums=('162ce382628c6fcadac3e11f5a12442db622bb23f7ec503e16f5ba7fc88afdd777bce6b093c12a58210355985fd11b74b140f08fab347334d82d953dd183b130'
+            '886a347c6526c4e81bc035d7e0069f72aaa5ad2103f0e035e46dbd7e1e5f328ebbbc81842fd32397d195a5b18cf841784455a4142291276c1be8942a1c753b4d')
+
+prepare() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    patch -p1 -i "$srcdir/fix-variadic-macros.patch"
+}
+
+check() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    make check
+}
+
+build() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    ./configure --prefix='/usr'
+    make
+}
+
+package() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    make DESTDIR="${pkgdir}/" install
+    rm -v "${pkgdir}"/usr/bin/*_static "${pkgdir}/usr/bin/spfd" "${pkgdir}/usr/bin/spf_example" "${pkgdir}/usr/bin/spftest"
+}

Added: libspf2/trunk/fix-variadic-macros.patch
===================================================================
--- libspf2/trunk/fix-variadic-macros.patch	                        (rev 0)
+++ libspf2/trunk/fix-variadic-macros.patch	2017-06-05 19:41:42 UTC (rev 234406)
@@ -0,0 +1,29 @@
+From 5852828582f556e73751076ad092f72acf7fc8b6 Mon Sep 17 00:00:00 2001
+From: Shevek <shevek at anarres.org>
+Date: Tue, 23 Sep 2014 01:03:00 -0700
+Subject: [PATCH] Fix #4: Use gcc trick for variadic macros. Does this break
+ anyone else?
+
+---
+ src/include/spf_log.h | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/src/include/spf_log.h b/src/include/spf_log.h
+index 0d2adeb..9b09714 100644
+--- a/src/include/spf_log.h
++++ b/src/include/spf_log.h
+@@ -60,10 +60,10 @@ void SPF_debugv( const char *file, int line, const char *format, va_list ap ) __
+ 
+ #if defined( __STDC_VERSION__ ) && __STDC_VERSION__ >= 199901L
+ 
+-#define SPF_errorf(format, ... ) SPF_errorx( __FILE__, __LINE__, format, __VA_ARGS__ )
+-#define SPF_warningf(format, ... ) SPF_warningx( __FILE__, __LINE__, format, __VA_ARGS__ )
+-#define SPF_infof(format, ... ) SPF_infox( __FILE__, __LINE__, format, __VA_ARGS__ )
+-#define SPF_debugf(format, ... ) SPF_debugx( __FILE__, __LINE__, format, __VA_ARGS__ )
++#define SPF_errorf(format, ... ) SPF_errorx( __FILE__, __LINE__, format, ##__VA_ARGS__ )
++#define SPF_warningf(format, ... ) SPF_warningx( __FILE__, __LINE__, format, ##__VA_ARGS__ )
++#define SPF_infof(format, ... ) SPF_infox( __FILE__, __LINE__, format, ##__VA_ARGS__ )
++#define SPF_debugf(format, ... ) SPF_debugx( __FILE__, __LINE__, format, ##__VA_ARGS__ )
+ 
+ #elif defined( __GNUC__ )
+ 



More information about the arch-commits mailing list