[arch-commits] Commit in libspf2/repos (3 files)

Felix Yan felixonmars at gemini.archlinux.org
Mon Aug 23 14:58:33 UTC 2021


    Date: Monday, August 23, 2021 @ 14:58:33
  Author: felixonmars
Revision: 1004381

archrelease: copy trunk to community-staging-x86_64

Added:
  libspf2/repos/community-staging-x86_64/
  libspf2/repos/community-staging-x86_64/PKGBUILD
    (from rev 1004380, libspf2/trunk/PKGBUILD)
  libspf2/repos/community-staging-x86_64/fix-variadic-macros.patch
    (from rev 1004380, libspf2/trunk/fix-variadic-macros.patch)

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

Copied: libspf2/repos/community-staging-x86_64/PKGBUILD (from rev 1004380, libspf2/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-08-23 14:58:33 UTC (rev 1004381)
@@ -0,0 +1,40 @@
+# Maintainer: Thore Bödecker <foxxx0 at archlinux.org>
+# Contributor: svvac <_ at svvac.net>
+
+pkgname="libspf2"
+pkgver=1.2.10
+pkgrel=6
+pkgdesc="Sender Policy Framework record checking library"
+arch=('x86_64')
+url="https://www.libspf2.org/"
+license=('LGPL')
+depends=('glibc' 'libnsl')
+makedepends=('libmilter' 'glibc' 'libnsl')
+source=("https://www.libspf2.org/spf/${pkgname}-${pkgver}.tar.gz"
+        'fix-variadic-macros.patch')
+sha256sums=('d91e3de81ae287a2976c44f60283bd3000d720e6a112dc7142eedf1831b821c9'
+            '1396d155665f52748cfc7e06e01a92cc98c65193f36e807b8b1de4fb31d4caec')
+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"
+}

Copied: libspf2/repos/community-staging-x86_64/fix-variadic-macros.patch (from rev 1004380, libspf2/trunk/fix-variadic-macros.patch)
===================================================================
--- community-staging-x86_64/fix-variadic-macros.patch	                        (rev 0)
+++ community-staging-x86_64/fix-variadic-macros.patch	2021-08-23 14:58:33 UTC (rev 1004381)
@@ -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