[gentoo-commits] repo/gentoo:master commit in: mail-filter/gld/, mail-filter/gld/files/

2022-09-16 Thread Sam James
commit: eb0a0dc8f6ae4d69b7cd25bde99fc490edb96617
Author: Sam James  gentoo  org>
AuthorDate: Fri Sep 16 21:15:11 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Sep 16 21:18:25 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb0a0dc8

mail-filter/gld: fix build with -Werror=strict-prototypes (Clang 15+)

No need for revbump this time, although often will with these fixes
(implicit func. decls in particular, but not exclusively), as
configure failed hard rather than wrong results.

Closes: https://bugs.gentoo.org/870487
Signed-off-by: Sam James  gentoo.org>

 .../gld/files/gld-1.7-configure-strict-prototypes.patch  | 12 
 mail-filter/gld/gld-1.7-r4.ebuild|  4 
 2 files changed, 16 insertions(+)

diff --git a/mail-filter/gld/files/gld-1.7-configure-strict-prototypes.patch 
b/mail-filter/gld/files/gld-1.7-configure-strict-prototypes.patch
new file mode 100644
index ..e0016336e307
--- /dev/null
+++ b/mail-filter/gld/files/gld-1.7-configure-strict-prototypes.patch
@@ -0,0 +1,12 @@
+https://bugs.gentoo.org/870487
+--- a/configure
 b/configure
+@@ -719,7 +719,7 @@ cat > conftest.$ac_ext << EOF
+ #line 720 "configure"
+ #include "confdefs.h"
+ 
+-main(){return(0);}
++int main(){return(0);}
+ EOF
+ if { (eval echo configure:725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && 
test -s conftest${ac_exeext}; then
+   ac_cv_prog_cc_works=yes

diff --git a/mail-filter/gld/gld-1.7-r4.ebuild 
b/mail-filter/gld/gld-1.7-r4.ebuild
index f5e55acbd877..fcebb96bfe7e 100644
--- a/mail-filter/gld/gld-1.7-r4.ebuild
+++ b/mail-filter/gld/gld-1.7-r4.ebuild
@@ -20,6 +20,10 @@ DEPEND="sys-libs/zlib
postgres? ( dev-db/postgresql:*[server] )"
 RDEPEND="${DEPEND}"
 
+PATCHES=(
+   "${FILESDIR}"/${PN}-1.7-configure-strict-prototypes.patch
+)
+
 src_prepare() {
sed -i gld.conf \
-e 's:^LOOPBACKONLY=.*:LOOPBACKONLY=1:' \



[gentoo-commits] repo/gentoo:master commit in: mail-filter/gld/

2022-07-29 Thread Sam James
commit: a2940f7ea2cf55548d98854d3ce62c1f4a5d76b6
Author: Michael Mair-Keimberger  levelnine  at>
AuthorDate: Fri Jul 29 05:20:53 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Jul 29 06:47:46 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2940f7e

mail-filter/gld: update HOMEPAGE

Signed-off-by: Michael Mair-Keimberger  levelnine.at>
Portage 3.0.34 / pkgdev 0.2.1 / pkgcheck 0.10.11
Signed-off-by: Sam James  gentoo.org>

 mail-filter/gld/gld-1.7-r4.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/mail-filter/gld/gld-1.7-r4.ebuild 
b/mail-filter/gld/gld-1.7-r4.ebuild
index f0283c477631..f5e55acbd877 100644
--- a/mail-filter/gld/gld-1.7-r4.ebuild
+++ b/mail-filter/gld/gld-1.7-r4.ebuild
@@ -5,9 +5,9 @@ EAPI="7"
 
 inherit toolchain-funcs
 
-DESCRIPTION="A standalone anti-spam greylisting algorithm on top of Postfix"
-HOMEPAGE="http://www.gasmi.net/gld.html;
-SRC_URI="http://www.gasmi.net/down/${P}.tgz;
+DESCRIPTION="Standalone anti-spam greylisting algorithm on top of Postfix"
+HOMEPAGE="https://www.gasmi.net/gld.html;
+SRC_URI="https://www.gasmi.net/down/${P}.tgz;
 
 LICENSE="GPL-2"
 SLOT="0"



[gentoo-commits] repo/gentoo:master commit in: mail-filter/gld/

2021-05-02 Thread Mikle Kolyada
commit: 61ba4129f751f845de552abf4e4959c144c974e5
Author: Mikle Kolyada  gentoo  org>
AuthorDate: Sun May  2 19:09:29 2021 +
Commit: Mikle Kolyada  gentoo  org>
CommitDate: Sun May  2 19:09:29 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61ba4129

mail-filter/gld: remove libressl support

Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Mikle Kolyada  gentoo.org>

 mail-filter/gld/gld-1.7-r4.ebuild | 7 +++
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/mail-filter/gld/gld-1.7-r4.ebuild 
b/mail-filter/gld/gld-1.7-r4.ebuild
index fb79d9897fc..157778eaed6 100644
--- a/mail-filter/gld/gld-1.7-r4.ebuild
+++ b/mail-filter/gld/gld-1.7-r4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="7"
@@ -12,11 +12,10 @@ SRC_URI="http://www.gasmi.net/down/${P}.tgz;
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="amd64 ppc x86"
-IUSE="libressl postgres"
+IUSE="postgres"
 # Not adding a mysql USE flag. The package defaults to it, so we will too.
 DEPEND="sys-libs/zlib
-   !libressl? ( dev-libs/openssl:0= )
-   libressl? ( dev-libs/libressl )
+   dev-libs/openssl:0=
!postgres? ( dev-db/mysql-connector-c:0= )
postgres? ( dev-db/postgresql:*[server] )"
 RDEPEND="${DEPEND}"



[gentoo-commits] repo/gentoo:master commit in: mail-filter/gld/

2020-09-07 Thread Sam James
commit: 92c5ebafb0e1fe43590592c668a8ecf8998b50b3
Author: Sam James  gentoo  org>
AuthorDate: Mon Sep  7 23:11:23 2020 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Sep  7 23:11:23 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92c5ebaf

mail-filter/gld: cleanup old EAPI 4 ebuild

Bug: https://bugs.gentoo.org/739586
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Sam James  gentoo.org>

 mail-filter/gld/gld-1.7-r2.ebuild | 76 ---
 1 file changed, 76 deletions(-)

diff --git a/mail-filter/gld/gld-1.7-r2.ebuild 
b/mail-filter/gld/gld-1.7-r2.ebuild
deleted file mode 100644
index 55c7f21f081..000
--- a/mail-filter/gld/gld-1.7-r2.ebuild
+++ /dev/null
@@ -1,76 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="4"
-
-inherit toolchain-funcs
-
-DESCRIPTION="A standalone anti-spam greylisting algorithm on top of Postfix"
-HOMEPAGE="http://www.gasmi.net/gld.html;
-SRC_URI="http://www.gasmi.net/down/${P}.tgz;
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ppc x86"
-IUSE="postgres"
-# Not adding a mysql USE flag. The package defaults to it, so we will too.
-DEPEND="sys-libs/zlib
-   >=dev-libs/openssl-0.9.6
-   postgres? ( dev-db/postgresql[server] )
-   !postgres? ( virtual/mysql )"
-RDEPEND="${DEPEND}"
-
-src_prepare() {
-   sed -i gld.conf \
-   -e 's:^LOOPBACKONLY=.*:LOOPBACKONLY=1:' \
-   -e 's:^#USER=.*:USER=nobody:' \
-   -e 's:^#GROUP=.*:GROUP=nobody:' \
-   || die "sed gld.conf failed"
-
-   sed -i Makefile.in \
-   -e '/ -c /{s|-O2|$(CFLAGS)|g}' \
-   -e '/ -o /{s|-O2|$(CFLAGS) $(LDFLAGS)|g}' \
-   -e '/strip/d' \
-   || die "sed Makefile.in failed"
-
-   sed -i tables.{my,pg}sql \
-   -e '/ip char/s/16/39/' \
-   || die "sed sql tables failed"
-}
-
-src_configure() {
-   tc-export CC
-   # It's kind of weird. $(use_with postgres pgsql) won't work if you don't
-   # use it...
-   if use postgres ; then
-   myconf="${myconf} --with-pgsql"
-   fi
-
-   econf ${myconf}
-}
-
-src_install() {
-   dobin gld
-
-   insinto /etc
-   newins gld.conf gld.conf.example
-
-   dodoc HISTORY README*
-
-   insinto /usr/share/${PN}/sql
-   doins *.pgsql *-whitelist.sql "${FILESDIR}"/tables.sql
-
-   newinitd "${FILESDIR}"/gld.rc gld
-}
-
-pkg_preinst() {
-   elog "Please read the README file in /usr/share/doc/${PF} for"
-   elog "details on how to setup gld."
-   elog
-   elog "The sql files have been installed to /usr/share/${PN}/sql."
-   if [[ $REPLACING_VERSIONS == "1.7-r1" ]]; then
-   elog "You might want to use the ALTER_TABLE command to change 
the"
-   elog "ip field width to 39 chars to accomodate ipv6 addresses."
-   elog "Please see your sql server documentation."
-   fi
-}



[gentoo-commits] repo/gentoo:master commit in: mail-filter/gld/

2020-09-07 Thread Sam James
commit: c1e3cb85b56831ebe7f927efe44dc30aa464f022
Author: Sam James  gentoo  org>
AuthorDate: Mon Sep  7 23:09:31 2020 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Sep  7 23:09:31 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1e3cb85

mail-filter/gld: Stabilize 1.7-r4 amd64, #739586

Signed-off-by: Sam James  gentoo.org>

 mail-filter/gld/gld-1.7-r4.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mail-filter/gld/gld-1.7-r4.ebuild 
b/mail-filter/gld/gld-1.7-r4.ebuild
index 91152e44cb6..fb79d9897fc 100644
--- a/mail-filter/gld/gld-1.7-r4.ebuild
+++ b/mail-filter/gld/gld-1.7-r4.ebuild
@@ -11,7 +11,7 @@ SRC_URI="http://www.gasmi.net/down/${P}.tgz;
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ppc x86"
+KEYWORDS="amd64 ppc x86"
 IUSE="libressl postgres"
 # Not adding a mysql USE flag. The package defaults to it, so we will too.
 DEPEND="sys-libs/zlib



[gentoo-commits] repo/gentoo:master commit in: mail-filter/gld/

2020-09-06 Thread Sam James
commit: c54d2e7aed5697a401b31e9d7a7ad93c09ac5749
Author: Sam James  gentoo  org>
AuthorDate: Mon Sep  7 05:11:12 2020 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Sep  7 05:11:52 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c54d2e7a

mail-filter/gld: ppc stable (bug #739586)

Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Sam James  gentoo.org>

 mail-filter/gld/gld-1.7-r4.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mail-filter/gld/gld-1.7-r4.ebuild 
b/mail-filter/gld/gld-1.7-r4.ebuild
index 0bcd3923f27..91152e44cb6 100644
--- a/mail-filter/gld/gld-1.7-r4.ebuild
+++ b/mail-filter/gld/gld-1.7-r4.ebuild
@@ -11,7 +11,7 @@ SRC_URI="http://www.gasmi.net/down/${P}.tgz;
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~ppc x86"
+KEYWORDS="~amd64 ppc x86"
 IUSE="libressl postgres"
 # Not adding a mysql USE flag. The package defaults to it, so we will too.
 DEPEND="sys-libs/zlib



[gentoo-commits] repo/gentoo:master commit in: mail-filter/gld/

2020-08-30 Thread Thomas Deutschmann
commit: 48cb3894e175759481b74a09a6b579a2fdd3605b
Author: Thomas Deutschmann  gentoo  org>
AuthorDate: Sun Aug 30 17:11:31 2020 +
Commit: Thomas Deutschmann  gentoo  org>
CommitDate: Sun Aug 30 17:11:31 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48cb3894

mail-filter/gld: x86 stable (bug #739586)

Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Thomas Deutschmann  gentoo.org>

 mail-filter/gld/gld-1.7-r4.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mail-filter/gld/gld-1.7-r4.ebuild 
b/mail-filter/gld/gld-1.7-r4.ebuild
index c367f5ee96a..0bcd3923f27 100644
--- a/mail-filter/gld/gld-1.7-r4.ebuild
+++ b/mail-filter/gld/gld-1.7-r4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="7"
@@ -11,7 +11,7 @@ SRC_URI="http://www.gasmi.net/down/${P}.tgz;
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
+KEYWORDS="~amd64 ~ppc x86"
 IUSE="libressl postgres"
 # Not adding a mysql USE flag. The package defaults to it, so we will too.
 DEPEND="sys-libs/zlib



[gentoo-commits] repo/gentoo:master commit in: mail-filter/gld/

2019-02-13 Thread Brian Evans
commit: f38788fcdf958c19576ddd561c6746172a973b07
Author: Brian Evans  gentoo  org>
AuthorDate: Wed Feb 13 14:37:15 2019 +
Commit: Brian Evans  gentoo  org>
CommitDate: Wed Feb 13 14:37:15 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f38788fc

mail-filter/gld: Revbump for EAPI and dependency change

Non-maintainer commit

Bug: https://bugs.gentoo.org/665912
Closes: https://bugs.gentoo.org/589472
Package-Manager: Portage-2.3.59, Repoman-2.3.12
Signed-off-by: Brian Evans  gentoo.org>

 .../gld/{gld-1.7-r3.ebuild => gld-1.7-r4.ebuild}   | 29 +-
 1 file changed, 17 insertions(+), 12 deletions(-)

diff --git a/mail-filter/gld/gld-1.7-r3.ebuild 
b/mail-filter/gld/gld-1.7-r4.ebuild
similarity index 76%
rename from mail-filter/gld/gld-1.7-r3.ebuild
rename to mail-filter/gld/gld-1.7-r4.ebuild
index 90926c4222a..c367f5ee96a 100644
--- a/mail-filter/gld/gld-1.7-r3.ebuild
+++ b/mail-filter/gld/gld-1.7-r4.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="5"
+EAPI="7"
 
 inherit toolchain-funcs
 
@@ -17,7 +17,7 @@ IUSE="libressl postgres"
 DEPEND="sys-libs/zlib
!libressl? ( dev-libs/openssl:0= )
libressl? ( dev-libs/libressl )
-   !postgres? ( virtual/mysql )
+   !postgres? ( dev-db/mysql-connector-c:0= )
postgres? ( dev-db/postgresql:*[server] )"
 RDEPEND="${DEPEND}"
 
@@ -37,17 +37,19 @@ src_prepare() {
sed -i tables.{my,pg}sql \
-e '/ip char/s/16/39/' \
|| die "sed sql tables failed"
+
+   sed -i configure \
+   -e "/SQL_LIBS/{s~/lib~/$(get_libdir)~g}" || die
+
+   default
 }
 
 src_configure() {
tc-export CC
+
# It's kind of weird. $(use_with postgres pgsql) won't work if you don't
# use it...
-   if use postgres ; then
-   myconf="${myconf} --with-pgsql"
-   fi
-
-   econf ${myconf}
+   econf $(usex postgres '--with-pgsql' '')
 }
 
 src_install() {
@@ -69,9 +71,12 @@ pkg_preinst() {
elog "details on how to setup gld."
elog
elog "The sql files have been installed to /usr/share/${PN}/sql."
-   if [[ $REPLACING_VERSIONS == "1.7-r1" ]]; then
-   elog "You might want to use the ALTER_TABLE command to change 
the"
-   elog "ip field width to 39 chars to accomodate ipv6 addresses."
-   elog "Please see your sql server documentation."
-   fi
+   local old_ver
+   for old_ver in ${REPLACING_VERSIONS} ; do
+   if ver_test ${old_ver} -eq "1.7-r1" ; then
+   elog "You might want to use the ALTER_TABLE command to 
change the"
+   elog "ip field width to 39 chars to accomodate ipv6 
addresses."
+   elog "Please see your sql server documentation."
+   fi
+   done
 }



[gentoo-commits] repo/gentoo:master commit in: mail-filter/gld/

2019-01-07 Thread Lars Wendler
commit: c20a8e563c0ead57492111548dc039af38d3065f
Author: Lars Wendler  gentoo  org>
AuthorDate: Mon Jan  7 18:19:21 2019 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Mon Jan  7 19:15:33 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c20a8e56

mail-filter/gld: Adjusted sub-slot dep on dev-libs/openssl

Package-Manager: Portage-2.3.54, Repoman-2.3.12
Signed-off-by: Lars Wendler  gentoo.org>

 mail-filter/gld/gld-1.7-r3.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mail-filter/gld/gld-1.7-r3.ebuild 
b/mail-filter/gld/gld-1.7-r3.ebuild
index 24fe380c91f..90926c4222a 100644
--- a/mail-filter/gld/gld-1.7-r3.ebuild
+++ b/mail-filter/gld/gld-1.7-r3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="5"
@@ -15,7 +15,7 @@ KEYWORDS="~amd64 ~ppc ~x86"
 IUSE="libressl postgres"
 # Not adding a mysql USE flag. The package defaults to it, so we will too.
 DEPEND="sys-libs/zlib
-   !libressl? ( dev-libs/openssl:0 )
+   !libressl? ( dev-libs/openssl:0= )
libressl? ( dev-libs/libressl )
!postgres? ( virtual/mysql )
postgres? ( dev-db/postgresql:*[server] )"



[gentoo-commits] repo/gentoo:master commit in: mail-filter/gld/

2015-10-10 Thread Anthony G. Basile
commit: e169d49167801b7acced3f1264fb086a41947b3d
Author: Anthony G. Basile  gentoo  org>
AuthorDate: Sun Oct 11 00:06:15 2015 +
Commit: Anthony G. Basile  gentoo  org>
CommitDate: Sun Oct 11 00:06:15 2015 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e169d491

mail-filter/gld: add libressl support

Package-Manager: portage-2.2.20.1

 mail-filter/gld/gld-1.7-r3.ebuild | 78 +++
 1 file changed, 78 insertions(+)

diff --git a/mail-filter/gld/gld-1.7-r3.ebuild 
b/mail-filter/gld/gld-1.7-r3.ebuild
new file mode 100644
index 000..cdcff43
--- /dev/null
+++ b/mail-filter/gld/gld-1.7-r3.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit toolchain-funcs
+
+DESCRIPTION="A standalone anti-spam greylisting algorithm on top of Postfix"
+HOMEPAGE="http://www.gasmi.net/gld.html;
+SRC_URI="http://www.gasmi.net/down/${P}.tgz;
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="libressl postgres"
+# Not adding a mysql USE flag. The package defaults to it, so we will too.
+DEPEND="sys-libs/zlib
+   !libressl? ( dev-libs/openssl:0 )
+   libressl? ( dev-libs/libressl )
+   !postgres? ( virtual/mysql )
+   postgres? ( dev-db/postgresql:*[server] )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+   sed -i gld.conf \
+   -e 's:^LOOPBACKONLY=.*:LOOPBACKONLY=1:' \
+   -e 's:^#USER=.*:USER=nobody:' \
+   -e 's:^#GROUP=.*:GROUP=nobody:' \
+   || die "sed gld.conf failed"
+
+   sed -i Makefile.in \
+   -e '/ -c /{s|-O2|$(CFLAGS)|g}' \
+   -e '/ -o /{s|-O2|$(CFLAGS) $(LDFLAGS)|g}' \
+   -e '/strip/d' \
+   || die "sed Makefile.in failed"
+
+   sed -i tables.{my,pg}sql \
+   -e '/ip char/s/16/39/' \
+   || die "sed sql tables failed"
+}
+
+src_configure() {
+   tc-export CC
+   # It's kind of weird. $(use_with postgres pgsql) won't work if you don't
+   # use it...
+   if use postgres ; then
+   myconf="${myconf} --with-pgsql"
+   fi
+
+   econf ${myconf}
+}
+
+src_install() {
+   dobin gld
+
+   insinto /etc
+   newins gld.conf gld.conf.example
+
+   dodoc HISTORY README*
+
+   insinto /usr/share/${PN}/sql
+   doins *.pgsql *-whitelist.sql "${FILESDIR}"/tables.sql
+
+   newinitd "${FILESDIR}"/gld.rc gld
+}
+
+pkg_preinst() {
+   elog "Please read the README file in /usr/share/doc/${PF} for"
+   elog "details on how to setup gld."
+   elog
+   elog "The sql files have been installed to /usr/share/${PN}/sql."
+   if [[ $REPLACING_VERSIONS == "1.7-r1" ]]; then
+   elog "You might want to use the ALTER_TABLE command to change 
the"
+   elog "ip field width to 39 chars to accomodate ipv6 addresses."
+   elog "Please see your sql server documentation."
+   fi
+}