diff --git a/srcpkgs/bglibs/patches/00_no_google_test.diff b/srcpkgs/bglibs/patches/00_no_google_test.diff new file mode 100644 index 00000000000..1192c64da44 --- /dev/null +++ b/srcpkgs/bglibs/patches/00_no_google_test.diff @@ -0,0 +1,58 @@ +diff -ru ../bglibs-2.03.orig/net/dns_ip6.c ./net/dns_ip6.c +--- ../bglibs-2.03.orig/net/dns_ip6.c 2015-02-06 17:57:35.000000000 -0600 ++++ ./net/dns_ip6.c 2015-03-30 19:40:44.591110913 -0500 +@@ -75,12 +75,9 @@ + MAIN + { + doit("1.2.3.4"); +- doit("google.ca"); + } + #endif + #ifdef SELFTEST_EXP_FNMATCH + result=0 + 1.2.3.4 1: ::ffff:1.2.3.4 +-result=0 +-google.ca 1: 2607:f8b0:400a:* + #endif +diff -ru ../bglibs-2.03.orig/net/dns_mx.c ./net/dns_mx.c +--- ../bglibs-2.03.orig/net/dns_mx.c 2015-02-06 17:57:35.000000000 -0600 ++++ ./net/dns_mx.c 2015-03-30 19:40:44.591110913 -0500 +@@ -70,18 +70,10 @@ + MAIN + { + doit("untroubled.org"); +- doit("google.com"); + } + #endif + #ifdef SELFTEST_EXP + result=0 + untroubled.org => 1 + 0 12801: "mx.futurequest.net" +-result=0 +-google.com => 5 +-0 10: "aspmx.l.google.com" +-1 20: "alt1.aspmx.l.google.com" +-2 30: "alt2.aspmx.l.google.com" +-3 40: "alt3.aspmx.l.google.com" +-4 50: "alt4.aspmx.l.google.com" + #endif +diff -ru ../bglibs-2.03.orig/net/dns_txt.c ./net/dns_txt.c +--- ../bglibs-2.03.orig/net/dns_txt.c 2015-02-06 17:57:35.000000000 -0600 ++++ ./net/dns_txt.c 2015-03-30 20:06:33.828383880 -0500 +@@ -76,15 +76,11 @@ + } + MAIN + { +- doit("gmail.com"); + doit("2.0.0.127.sbl-xbl.spamhaus.org"); + } + #endif + #ifdef SELFTEST_EXP + result=0 +-1 record +-v=spf1 redirect=_spf.google.com +-result=0 + 2 record + http://www.spamhaus.org/sbl/query/SBL233 + http://www.spamhaus.org/query/bl?ip=127.0.0.2 +Only in .: no_google_spf.patch diff --git a/srcpkgs/bglibs/patches/01_no_spamhaus.diff b/srcpkgs/bglibs/patches/01_no_spamhaus.diff new file mode 100644 index 00000000000..4c1b8612c71 --- /dev/null +++ b/srcpkgs/bglibs/patches/01_no_spamhaus.diff @@ -0,0 +1,13 @@ +diff -ru ../bglibs-2.03.orig/net/dns_txt.c ./net/dns_txt.c +--- ../bglibs-2.03.orig/net/dns_txt.c 2015-03-30 20:10:52.643733807 -0500 ++++ ./net/dns_txt.c 2015-03-30 20:11:38.655729539 -0500 +@@ -81,7 +81,5 @@ + #endif + #ifdef SELFTEST_EXP + result=0 +-2 record +-http://www.spamhaus.org/sbl/query/SBL233 +-http://www.spamhaus.org/query/bl?ip=127.0.0.2 ++0 record + #endif +Only in .: no_spamhaus.patch diff --git a/srcpkgs/bglibs/template b/srcpkgs/bglibs/template new file mode 100644 index 00000000000..7ce90b5d86f --- /dev/null +++ b/srcpkgs/bglibs/template @@ -0,0 +1,30 @@ +# Template file for 'bglibs' +pkgname=bglibs +version=2.03 +revision=1 +only_for_archs="i686 x86_64" +build_style=gnu-makefile +makedepends="libtool perl" +short_desc="A collection of libraries by Bruce Guenter" +maintainer="bougyman " +license="GPL-2" +homepage="http://untroubled.org/bglibs/" +distfiles="http://untroubled.org/bglibs/bglibs-2.03.tar.gz" +checksum=fcc80b2deef7819abc9c155c4f393f4fc51e73400139c1c78bbe3015f2b12739 + +do_build() { + echo "/usr/lib/bglibs/include" > conf-include + echo "/usr/lib/bglibs/lib" > conf-lib + echo "/usr/bin" > conf-bin + echo "/usr/share/man" > conf-man + make +} + + +do_install() { + vmkdir usr/lib/bglibs + install_prefix="${DESTDIR}" make install + find "${DESTDIR}"/usr/lib -name "*.a" -exec chmod 0644 {} \; + vdoc README + vlicense COPYING +}