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

2022-12-07 Thread David Seifert
commit: 464382489b1ac8ba3eb8efac6b112f53a8eb543a
Author: David Seifert  gentoo  org>
AuthorDate: Wed Dec  7 13:51:42 2022 +
Commit: David Seifert  gentoo  org>
CommitDate: Wed Dec  7 13:51:42 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46438248

mail-filter/sqlgrey: remove sys-apps/sed from DEPEND

Signed-off-by: David Seifert  gentoo.org>

 mail-filter/sqlgrey/sqlgrey-1.8.0.ebuild | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/mail-filter/sqlgrey/sqlgrey-1.8.0.ebuild 
b/mail-filter/sqlgrey/sqlgrey-1.8.0.ebuild
index 1dccd8565268..d6bb19932fe3 100644
--- a/mail-filter/sqlgrey/sqlgrey-1.8.0.ebuild
+++ b/mail-filter/sqlgrey/sqlgrey-1.8.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -24,8 +24,7 @@ RDEPEND="acct-user/sqlgrey
mysql? ( dev-perl/DBD-mysql )
postgres? ( dev-perl/DBD-Pg )
sqlite? ( dev-perl/DBD-SQLite )"
-DEPEND="${RDEPEND}
-   sys-apps/sed"
+DEPEND="${RDEPEND}"
 
 DOCS=( HOWTO FAQ README README.OPTINOUT README.PERF TODO Changelog )
 PATCHES=(



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

2021-07-15 Thread Conrad Kostecki
commit: d752762ff8271d4ad9922b84d6c64d5fb266aea2
Author: Conrad Kostecki  gentoo  org>
AuthorDate: Thu Jul 15 19:02:24 2021 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Thu Jul 15 19:02:24 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d752762f

mail-filter/sqlgrey: drop old version

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Conrad Kostecki  gentoo.org>

 mail-filter/sqlgrey/Manifest   |   1 -
 mail-filter/sqlgrey/files/sqlgrey-1.7.6-init.patch |  18 --
 mail-filter/sqlgrey/sqlgrey-1.7.6-r2.ebuild| 252 -
 3 files changed, 271 deletions(-)

diff --git a/mail-filter/sqlgrey/Manifest b/mail-filter/sqlgrey/Manifest
index a1d23dbdd3b..d4cf7b1cac0 100644
--- a/mail-filter/sqlgrey/Manifest
+++ b/mail-filter/sqlgrey/Manifest
@@ -1,2 +1 @@
-DIST sqlgrey-1.7.6.tar.bz2 63738 BLAKE2B 
7835079f3f220c2894781cb1ba8d1cac66f46e9fad7f17bfc0f1f7e2cfe1b1b05664179abacb873acf1829114093c48764c34e1a0a3128503f8e3f134dd0772d
 SHA512 
62822d808aa5991a8d29f455be933cf782c9d5232b63bd1f357093a06982474018fb7a02dedf29274d8b7e9f12525063e6af744efceecf420cd01e74f561aa81
 DIST sqlgrey-1.8.0.tar.gz 69476 BLAKE2B 
f48aa9e41a988338a817026fbf022e145922db0bad9983e4d7cde7bc621560ce6189e494cfba5dd5f48ba4ff30e47686c54298f9a006b8fcc2b27444e102b0d1
 SHA512 
97ab057bf759166a6963d5948c10468731730136ddca6449d2d629f39235c09d00497a52408bb87057905c1bf43bc064571ee6302d7f1f8c6408af82d044

diff --git a/mail-filter/sqlgrey/files/sqlgrey-1.7.6-init.patch 
b/mail-filter/sqlgrey/files/sqlgrey-1.7.6-init.patch
deleted file mode 100644
index 355cb453924..000
--- a/mail-filter/sqlgrey/files/sqlgrey-1.7.6-init.patch
+++ /dev/null
@@ -1,18 +0,0 @@
 sqlgrey-1.7.6/init/sqlgrey.gentoo.orig 2007-05-12 11:12:12.0 
+0200
-+++ sqlgrey-1.7.6/init/sqlgrey.gentoo  2007-05-12 12:05:52.491468250 
+0200
-@@ -14,13 +14,13 @@
-   # SQLite puts files in the working directory
-   cd ~sqlgrey
-   sqlgrey -d
--  eend
-+  eend $?
- }
- 
- stop() {
-   ebegin "Shutting down SQLgrey"
-   sqlgrey -k
--  eend
-+  eend $?
- }
- 
- # hack: seems Net::Server doesn't set REUSEADDR on socket?

diff --git a/mail-filter/sqlgrey/sqlgrey-1.7.6-r2.ebuild 
b/mail-filter/sqlgrey/sqlgrey-1.7.6-r2.ebuild
deleted file mode 100644
index 1e7d2013e06..000
--- a/mail-filter/sqlgrey/sqlgrey-1.7.6-r2.ebuild
+++ /dev/null
@@ -1,252 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit systemd user
-
-DESCRIPTION="A postfix policy service implementing a grey-listing policy"
-HOMEPAGE="http://sqlgrey.sourceforge.net/;
-SRC_URI="mirror://sourceforge/sqlgrey/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ~arm ~sparc x86"
-IUSE="mysql +postgres sqlite"
-REQUIRED_USE="|| ( mysql postgres sqlite )"
-
-RDEPEND="dev-lang/perl
-   dev-perl/DBI
-   dev-perl/Date-Calc
-   dev-perl/Net-Server
-   virtual/mailx
-   mysql? ( dev-perl/DBD-mysql )
-   postgres? ( dev-perl/DBD-Pg )
-   sqlite? ( dev-perl/DBD-SQLite )"
-DEPEND="${RDEPEND}
-   sys-apps/sed"
-
-PATCHES=(
-   "${FILESDIR}/${P}-init.patch"
-)
-
-pkg_setup() {
-   enewgroup sqlgrey
-   enewuser sqlgrey -1 -1 /var/spool/sqlgrey sqlgrey
-}
-
-src_install() {
-   emake gentoo-install ROOTDIR="${D}"
-   dodoc HOWTO FAQ README README.OPTINOUT README.PERF TODO Changelog
-
-   # keeps SQLgrey data in /var/spool/sqlgrey
-   diropts -m0775 -o sqlgrey -g sqlgrey
-   keepdir /var/spool/sqlgrey
-
-   systemd_dounit "${FILESDIR}/${PN}.service"
-}
-
-pkg_postinst() {
-   elog "To make use of greylisting, please update your postfix config."
-   elog
-   elog "Put something like this in /etc/postfix/main.cf:"
-   elog "smtpd_recipient_restrictions ="
-   elog "   ..."
-   elog "   check_policy_service inet:127.0.0.1:2501"
-   elog
-   elog "Remember to restart Postfix after that change. Also remember"
-   elog "to make the daemon start durig boot:"
-   elog "  rc-update add sqlgrey default"
-   elog
-   elog
-   elog "To setup SQLgrey to run out-of-the-box on your system, run:"
-   elog "emerge --config ${PN}"
-   elog
-   ewarn "Read the documentation for more info (perldoc sqlgrey) or the"
-   ewarn "included howto /usr/share/doc/${PF}/HOWTO.gz"
-   ewarn
-   ewarn "If you are using MySQL >= 4.1 use \"latin1\" as charset for"
-   ewarn "the SQLgrey db"
-}
-
-pkg_config() {
-   # SQLgrey configuration file
-   local SQLgrey_CONFIG="/etc/sqlgrey/sqlgrey.conf"
-   local SQLgrey_DB_USER_NAME="sqlgrey"
-   local SQLgrey_DB_NAME="sqlgrey"
-
-   # Check if a password is set in sqlgrey.conf
-   local SQLgrey_CONF_PWD=""
-   if [ -f "${SQLgrey_CONFIG}" ]; then
-   if (grep -iq "^[\t ]*db_pass[\t 

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

2020-06-28 Thread Agostino Sarubbo
commit: ce98955d8e2e2aa057f7fc825e6d7019fd5886a0
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Sun Jun 28 20:42:54 2020 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Sun Jun 28 20:42:54 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce98955d

mail-filter/sqlgrey: x86 stable wrt bug #729456

Package-Manager: Portage-2.3.99, Repoman-2.3.22
RepoMan-Options: --include-arches="x86"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 mail-filter/sqlgrey/sqlgrey-1.8.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mail-filter/sqlgrey/sqlgrey-1.8.0.ebuild 
b/mail-filter/sqlgrey/sqlgrey-1.8.0.ebuild
index a69c08c003b..1dccd856526 100644
--- a/mail-filter/sqlgrey/sqlgrey-1.8.0.ebuild
+++ b/mail-filter/sqlgrey/sqlgrey-1.8.0.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://downloads.sourceforge.net/project/sqlgrey/sqlgrey-1.8%20%28stab
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 ~arm sparc ~x86"
+KEYWORDS="amd64 ~arm sparc x86"
 IUSE="mysql postgres +sqlite"
 REQUIRED_USE="|| ( mysql postgres sqlite )"
 



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

2020-06-27 Thread Sergei Trofimovich
commit: ca872531004f24041dde72822684a2ce41ba9ba6
Author: Rolf Eike Beer  sf-mail  de>
AuthorDate: Sat Jun 27 07:42:57 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sat Jun 27 09:09:01 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca872531

mail-filter/sqlgrey: stable 1.8.0 for sparc, bug #729456

Package-Manager: Portage-2.3.99, Repoman-2.3.22
RepoMan-Options: --include-arches="sparc"
Signed-off-by: Rolf Eike Beer  sf-mail.de>
Signed-off-by: Sergei Trofimovich  gentoo.org>

 mail-filter/sqlgrey/sqlgrey-1.8.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mail-filter/sqlgrey/sqlgrey-1.8.0.ebuild 
b/mail-filter/sqlgrey/sqlgrey-1.8.0.ebuild
index af2db5a28f2..a69c08c003b 100644
--- a/mail-filter/sqlgrey/sqlgrey-1.8.0.ebuild
+++ b/mail-filter/sqlgrey/sqlgrey-1.8.0.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://downloads.sourceforge.net/project/sqlgrey/sqlgrey-1.8%20%28stab
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 ~arm ~sparc ~x86"
+KEYWORDS="amd64 ~arm sparc ~x86"
 IUSE="mysql postgres +sqlite"
 REQUIRED_USE="|| ( mysql postgres sqlite )"
 



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

2020-06-26 Thread Agostino Sarubbo
commit: ea439077141b8b1d2979d97b5422379d6a825a00
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Fri Jun 26 06:52:04 2020 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Fri Jun 26 06:52:04 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea439077

mail-filter/sqlgrey: amd64 stable wrt bug #729456

Package-Manager: Portage-2.3.99, Repoman-2.3.22
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 mail-filter/sqlgrey/sqlgrey-1.8.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mail-filter/sqlgrey/sqlgrey-1.8.0.ebuild 
b/mail-filter/sqlgrey/sqlgrey-1.8.0.ebuild
index 21a0450a89f..af2db5a28f2 100644
--- a/mail-filter/sqlgrey/sqlgrey-1.8.0.ebuild
+++ b/mail-filter/sqlgrey/sqlgrey-1.8.0.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://downloads.sourceforge.net/project/sqlgrey/sqlgrey-1.8%20%28stab
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~sparc ~x86"
+KEYWORDS="amd64 ~arm ~sparc ~x86"
 IUSE="mysql postgres +sqlite"
 REQUIRED_USE="|| ( mysql postgres sqlite )"
 



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

2020-06-24 Thread Joonas Niilola
commit: e9c612419b8e761b0a1abd2f23e7f4959d2a0927
Author: Joonas Niilola  gentoo  org>
AuthorDate: Wed Jun 24 14:28:59 2020 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Wed Jun 24 14:29:21 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9c61241

mail-filter/sqlgrey: RedundantLongDescription

Signed-off-by: Joonas Niilola  gentoo.org>

 mail-filter/sqlgrey/metadata.xml | 2 --
 1 file changed, 2 deletions(-)

diff --git a/mail-filter/sqlgrey/metadata.xml b/mail-filter/sqlgrey/metadata.xml
index a6d0a2f3dcf..2c49c7b239d 100644
--- a/mail-filter/sqlgrey/metadata.xml
+++ b/mail-filter/sqlgrey/metadata.xml
@@ -10,8 +10,6 @@
proxy-ma...@gentoo.org
Proxy Maintainers

-   SQLgrey is a postfix policy service implementing a 
grey-listing
-policy.

sqlgrey




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

2020-06-24 Thread Joonas Niilola
commit: 0a1d3d145d56b95acb21e11f0b0f8a52fa1c34d4
Author: Philippe Chaintreuil  parallaxshift  com>
AuthorDate: Sat May 30 00:50:06 2020 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Wed Jun 24 14:29:19 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a1d3d14

mail-filter/sqlgrey: Add proxy maintainer

Closes: https://bugs.gentoo.org/698108
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Philippe Chaintreuil  parallaxshift.com>
Signed-off-by: Joonas Niilola  gentoo.org>

 mail-filter/sqlgrey/metadata.xml | 10 +-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/mail-filter/sqlgrey/metadata.xml b/mail-filter/sqlgrey/metadata.xml
index 63614543d99..a6d0a2f3dcf 100644
--- a/mail-filter/sqlgrey/metadata.xml
+++ b/mail-filter/sqlgrey/metadata.xml
@@ -1,7 +1,15 @@
 
 http://www.gentoo.org/dtd/metadata.dtd;>
 
-   
+   
+   gentoo_bugs_p...@parallaxshift.com
+   Philippe Chaintreuil
+   
+
+   
+   proxy-ma...@gentoo.org
+   Proxy Maintainers
+   
SQLgrey is a postfix policy service implementing a 
grey-listing
 policy.




[gentoo-commits] repo/gentoo:master commit in: mail-filter/sqlgrey/files/, acct-user/sqlgrey/, mail-filter/sqlgrey/, ...

2020-01-08 Thread Michał Górny
commit: 688d13bfb963660c58d06a7d7ceff7d154f77369
Author: Philippe Chaintreuil  parallaxshift  com>
AuthorDate: Sun Oct 20 11:47:54 2019 +
Commit: Michał Górny  gentoo  org>
CommitDate: Wed Jan  8 13:58:05 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=688d13bf

mail-filter/sqlgrey: Upgrade to 1.8.0, EAPI=7, GLEP-81

Also removed pkg_config() - it's not worth the maint. overhead for a
package aimed at mail admins.

Closes: https://bugs.gentoo.org/354869
Closes: https://github.com/gentoo/gentoo/pull/13361
Bug: https://bugs.gentoo.org/696252
Package-Manager: Portage-2.3.76, Repoman-2.3.16
Signed-off-by: Philippe Chaintreuil  parallaxshift.com>
Signed-off-by: Michał Górny  gentoo.org>

 acct-group/sqlgrey/metadata.xml| 13 +
 acct-group/sqlgrey/sqlgrey-0.ebuild|  9 
 acct-user/sqlgrey/metadata.xml | 13 +
 acct-user/sqlgrey/sqlgrey-0.ebuild | 14 +
 mail-filter/sqlgrey/Manifest   |  1 +
 .../sqlgrey/files/sqlgrey-1.8.0-init-openrc.patch  |  7 +++
 mail-filter/sqlgrey/sqlgrey-1.8.0.ebuild   | 59 ++
 7 files changed, 116 insertions(+)

diff --git a/acct-group/sqlgrey/metadata.xml b/acct-group/sqlgrey/metadata.xml
new file mode 100644
index 000..265493eecbe
--- /dev/null
+++ b/acct-group/sqlgrey/metadata.xml
@@ -0,0 +1,13 @@
+
+http://www.gentoo.org/dtd/metadata.dtd;>
+
+  
+gentoo_bugs_p...@parallaxshift.com
+Philippe Chaintreuil
+  
+
+  
+proxy-ma...@gentoo.org
+Proxy Maintainers
+  
+

diff --git a/acct-group/sqlgrey/sqlgrey-0.ebuild 
b/acct-group/sqlgrey/sqlgrey-0.ebuild
new file mode 100644
index 000..10df6a2e8ee
--- /dev/null
+++ b/acct-group/sqlgrey/sqlgrey-0.ebuild
@@ -0,0 +1,9 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit acct-group
+
+DESCRIPTION="Group for SQLGrey"
+ACCT_GROUP_ID=336

diff --git a/acct-user/sqlgrey/metadata.xml b/acct-user/sqlgrey/metadata.xml
new file mode 100644
index 000..265493eecbe
--- /dev/null
+++ b/acct-user/sqlgrey/metadata.xml
@@ -0,0 +1,13 @@
+
+http://www.gentoo.org/dtd/metadata.dtd;>
+
+  
+gentoo_bugs_p...@parallaxshift.com
+Philippe Chaintreuil
+  
+
+  
+proxy-ma...@gentoo.org
+Proxy Maintainers
+  
+

diff --git a/acct-user/sqlgrey/sqlgrey-0.ebuild 
b/acct-user/sqlgrey/sqlgrey-0.ebuild
new file mode 100644
index 000..a7c27f156d5
--- /dev/null
+++ b/acct-user/sqlgrey/sqlgrey-0.ebuild
@@ -0,0 +1,14 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit acct-user
+
+DESCRIPTION="User for SQLGrey"
+
+ACCT_USER_ID=336
+ACCT_USER_GROUPS=( sqlgrey )
+ACCT_USER_HOME="/var/spool/sqlgrey"
+
+acct-user_add_deps

diff --git a/mail-filter/sqlgrey/Manifest b/mail-filter/sqlgrey/Manifest
index 60f690c39c1..a1d23dbdd3b 100644
--- a/mail-filter/sqlgrey/Manifest
+++ b/mail-filter/sqlgrey/Manifest
@@ -1 +1,2 @@
 DIST sqlgrey-1.7.6.tar.bz2 63738 BLAKE2B 
7835079f3f220c2894781cb1ba8d1cac66f46e9fad7f17bfc0f1f7e2cfe1b1b05664179abacb873acf1829114093c48764c34e1a0a3128503f8e3f134dd0772d
 SHA512 
62822d808aa5991a8d29f455be933cf782c9d5232b63bd1f357093a06982474018fb7a02dedf29274d8b7e9f12525063e6af744efceecf420cd01e74f561aa81
+DIST sqlgrey-1.8.0.tar.gz 69476 BLAKE2B 
f48aa9e41a988338a817026fbf022e145922db0bad9983e4d7cde7bc621560ce6189e494cfba5dd5f48ba4ff30e47686c54298f9a006b8fcc2b27444e102b0d1
 SHA512 
97ab057bf759166a6963d5948c10468731730136ddca6449d2d629f39235c09d00497a52408bb87057905c1bf43bc064571ee6302d7f1f8c6408af82d044

diff --git a/mail-filter/sqlgrey/files/sqlgrey-1.8.0-init-openrc.patch 
b/mail-filter/sqlgrey/files/sqlgrey-1.8.0-init-openrc.patch
new file mode 100644
index 000..aa1560572bc
--- /dev/null
+++ b/mail-filter/sqlgrey/files/sqlgrey-1.8.0-init-openrc.patch
@@ -0,0 +1,7 @@
+--- a/init/sqlgrey.gentoo  2007-05-12 11:12:12.0 +0200
 b/init/sqlgrey.gentoo  2007-05-12 12:05:52.491468250 +0200
+@@ -1,4 +1,4 @@
+-#!/sbin/runscript
++#!/sbin/openrc-run
+ # Copyright 1999-2004 Lionel Bouton
+ # Distributed under the terms of the GNU General Public License v2

diff --git a/mail-filter/sqlgrey/sqlgrey-1.8.0.ebuild 
b/mail-filter/sqlgrey/sqlgrey-1.8.0.ebuild
new file mode 100644
index 000..958ff327b18
--- /dev/null
+++ b/mail-filter/sqlgrey/sqlgrey-1.8.0.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit systemd
+
+DESCRIPTION="A postfix policy service implementing a grey-listing policy"
+HOMEPAGE="http://sqlgrey.sourceforge.net/;
+SRC_URI="https://downloads.sourceforge.net/project/sqlgrey/sqlgrey-1.8%20%28stable%29/${P}.tar.gz;
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~sparc ~x86"
+IUSE="mysql postgres +sqlite"
+REQUIRED_USE="|| ( mysql postgres sqlite )"
+

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

2019-11-10 Thread Michał Górny
commit: de2c9c7cc5c8c1e28fe64de78283650e16e3b7af
Author: Michał Górny  gentoo  org>
AuthorDate: Sun Nov 10 13:22:28 2019 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sun Nov 10 13:23:39 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de2c9c7c

mail-filter/sqlgrey: Bump to EAPI 7

Signed-off-by: Michał Górny  gentoo.org>

 mail-filter/sqlgrey/files/sqlgrey-1.7.6-init.patch |  4 +-
 mail-filter/sqlgrey/sqlgrey-1.7.6-r2.ebuild| 74 ++
 2 files changed, 37 insertions(+), 41 deletions(-)

diff --git a/mail-filter/sqlgrey/files/sqlgrey-1.7.6-init.patch 
b/mail-filter/sqlgrey/files/sqlgrey-1.7.6-init.patch
index 48d3a581c5d..355cb453924 100644
--- a/mail-filter/sqlgrey/files/sqlgrey-1.7.6-init.patch
+++ b/mail-filter/sqlgrey/files/sqlgrey-1.7.6-init.patch
@@ -1,5 +1,5 @@
 ./sqlgrey-1.7.6/init/sqlgrey.gentoo.orig   2007-05-12 11:12:12.0 
+0200
-+++ ./sqlgrey-1.7.6/init/sqlgrey.gentoo2007-05-12 
12:05:52.491468250 +0200
+--- sqlgrey-1.7.6/init/sqlgrey.gentoo.orig 2007-05-12 11:12:12.0 
+0200
 sqlgrey-1.7.6/init/sqlgrey.gentoo  2007-05-12 12:05:52.491468250 
+0200
 @@ -14,13 +14,13 @@
# SQLite puts files in the working directory
cd ~sqlgrey

diff --git a/mail-filter/sqlgrey/sqlgrey-1.7.6-r2.ebuild 
b/mail-filter/sqlgrey/sqlgrey-1.7.6-r2.ebuild
index a6f49463e7b..4b26a8203a6 100644
--- a/mail-filter/sqlgrey/sqlgrey-1.7.6-r2.ebuild
+++ b/mail-filter/sqlgrey/sqlgrey-1.7.6-r2.ebuild
@@ -1,41 +1,42 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=0
+EAPI=7
 
-inherit eutils systemd user
+inherit systemd user
 
-DESCRIPTION="SQLgrey is a postfix policy service implementing a grey-listing 
policy"
-SRC_URI="mirror://sourceforge/sqlgrey/${P}.tar.bz2"
+DESCRIPTION="A postfix policy service implementing a grey-listing policy"
 HOMEPAGE="http://sqlgrey.sourceforge.net/;
+SRC_URI="mirror://sourceforge/sqlgrey/${P}.tar.bz2"
+
 LICENSE="GPL-2"
 SLOT="0"
-IUSE="mysql postgres sqlite"
+KEYWORDS="amd64 ~arm ~sparc x86"
+IUSE="mysql +postgres sqlite"
+REQUIRED_USE="|| ( mysql postgres sqlite )"
+
 RDEPEND="dev-lang/perl
dev-perl/DBI
-   dev-perl/Net-Server
dev-perl/Date-Calc
+   dev-perl/Net-Server
virtual/mailx
-   postgres? ( dev-perl/DBD-Pg )
-   sqlite? ( dev-perl/DBD-SQLite )
mysql? ( dev-perl/DBD-mysql )
-   !postgres? ( !mysql? ( !sqlite? ( dev-perl/DBD-Pg ) ) )"
-DEPEND="$RDEPEND
+   postgres? ( dev-perl/DBD-Pg )
+   sqlite? ( dev-perl/DBD-SQLite )"
+DEPEND="${RDEPEND}
sys-apps/sed"
-KEYWORDS="amd64 ~arm ~sparc x86"
+
+PATCHES=(
+   "${FILESDIR}/${P}-init.patch"
+)
 
 pkg_setup() {
enewgroup sqlgrey
enewuser sqlgrey -1 -1 /var/spool/sqlgrey sqlgrey
 }
 
-src_unpack() {
-   unpack ${A}
-   epatch "${FILESDIR}/${P}-init.patch"
-}
-
 src_install () {
-   make gentoo-install ROOTDIR="${D}"
+   emake gentoo-install ROOTDIR="${D}"
dodoc HOWTO FAQ README README.OPTINOUT README.PERF TODO Changelog
 
# keeps SQLgrey data in /var/spool/sqlgrey
@@ -46,34 +47,29 @@ src_install () {
 }
 
 pkg_postinst() {
-   echo
-   einfo "To make use of greylisting, please update your postfix config."
-   einfo
-   einfo "Put something like this in /etc/postfix/main.cf:"
-   einfo "smtpd_recipient_restrictions ="
-   einfo "   ..."
-   einfo "   check_policy_service inet:127.0.0.1:2501"
-   einfo
-   einfo "Remember to restart Postfix after that change. Also remember"
-   einfo "to make the daemon start durig boot:"
-   einfo "  rc-update add sqlgrey default"
-   einfo
-   echo
-   einfo "To setup SQLgrey to run out-of-the-box on your system, run:"
-   einfo "emerge --config ${PN}"
-   echo
+   elog "To make use of greylisting, please update your postfix config."
+   elog
+   elog "Put something like this in /etc/postfix/main.cf:"
+   elog "smtpd_recipient_restrictions ="
+   elog "   ..."
+   elog "   check_policy_service inet:127.0.0.1:2501"
+   elog
+   elog "Remember to restart Postfix after that change. Also remember"
+   elog "to make the daemon start durig boot:"
+   elog "  rc-update add sqlgrey default"
+   elog
+   elog
+   elog "To setup SQLgrey to run out-of-the-box on your system, run:"
+   elog "emerge --config ${PN}"
+   elog
ewarn "Read the documentation for more info (perldoc sqlgrey) or the"
ewarn "included howto /usr/share/doc/${PF}/HOWTO.gz"
-   echo
+   ewarn
ewarn "If you are using MySQL >= 4.1 use \"latin1\" as charset for"
ewarn "the SQLgrey db"
-   echo
-   ebeep 2
-   epause 5
 }
 
 pkg_config () {
-
# SQLgrey configuration file

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

2016-11-26 Thread Michał Górny
commit: 1a34370c22e9d57dbf10f3830528b19c17704d5d
Author: Craig Andrews  integralblue  com>
AuthorDate: Thu Jun 30 15:55:03 2016 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Nov 26 19:08:24 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a34370c

mail-filter/sqlgrey: systemd .service hardening

Bug: https://bugs.gentoo.org/587596
Closes: https://github.com/gentoo/gentoo/pull/1800

 mail-filter/sqlgrey/files/sqlgrey.service   | 13 +
 .../{sqlgrey-1.7.6-r1.ebuild => sqlgrey-1.7.6-r2.ebuild}|  0
 2 files changed, 13 insertions(+)

diff --git a/mail-filter/sqlgrey/files/sqlgrey.service 
b/mail-filter/sqlgrey/files/sqlgrey.service
index f6be356..a317186 100644
--- a/mail-filter/sqlgrey/files/sqlgrey.service
+++ b/mail-filter/sqlgrey/files/sqlgrey.service
@@ -3,7 +3,20 @@ Description=SQLgrey Postfix Grey-listing Policy service
 After=network.target
 
 [Service]
+User=sqlgrey
+Group=sqlgrey
 ExecStart=/usr/sbin/sqlgrey
+CapabilityBoundingSet=
+PrivateTmp=yes
+PrivateDevices=yes
+ProtectSystem=full
+ProtectHome=yes
+NoNewPrivileges=yes
+MemoryDenyWriteExecute=true
+ProtectKernelModules=true
+ProtectKernelTunables=true
+ProtectControlGroups=true
+RestrictRealtime=true
 
 [Install]
 WantedBy=multi-user.target

diff --git a/mail-filter/sqlgrey/sqlgrey-1.7.6-r1.ebuild 
b/mail-filter/sqlgrey/sqlgrey-1.7.6-r2.ebuild
similarity index 100%
rename from mail-filter/sqlgrey/sqlgrey-1.7.6-r1.ebuild
rename to mail-filter/sqlgrey/sqlgrey-1.7.6-r2.ebuild



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

2016-03-13 Thread Markus Meier
commit: 941f7787b033f27b4fc75df7b4c031bcdfa43294
Author: Markus Meier  gentoo  org>
AuthorDate: Sun Mar 13 12:32:40 2016 +
Commit: Markus Meier  gentoo  org>
CommitDate: Sun Mar 13 12:32:40 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=941f7787

mail-filter/sqlgrey: add ~arm, bug #575950

Package-Manager: portage-2.2.27
RepoMan-Options: --include-arches="arm"

 mail-filter/sqlgrey/sqlgrey-1.7.6-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mail-filter/sqlgrey/sqlgrey-1.7.6-r1.ebuild 
b/mail-filter/sqlgrey/sqlgrey-1.7.6-r1.ebuild
index 6d70007..5fac631 100644
--- a/mail-filter/sqlgrey/sqlgrey-1.7.6-r1.ebuild
+++ b/mail-filter/sqlgrey/sqlgrey-1.7.6-r1.ebuild
@@ -21,7 +21,7 @@ RDEPEND="dev-lang/perl
!postgres? ( !mysql? ( !sqlite? ( dev-perl/DBD-Pg ) ) )"
 DEPEND="$RDEPEND
sys-apps/sed"
-KEYWORDS="amd64 ~sparc x86"
+KEYWORDS="amd64 ~arm ~sparc x86"
 
 pkg_setup() {
enewgroup sqlgrey



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

2016-03-09 Thread Andreas Hüttel
commit: f6f6f08495a98fdfeddef435ea8e07ae5ec81994
Author: Kent Fredric  gmail  com>
AuthorDate: Sun Mar  6 09:22:04 2016 +
Commit: Andreas Hüttel  gentoo  org>
CommitDate: Wed Mar  9 20:48:19 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6f6f084

mail-filter/sqlgrey: Fix dependency on dev-perl/Net-Server

Package-Manager: portage-2.2.27

 mail-filter/sqlgrey/sqlgrey-1.7.6-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mail-filter/sqlgrey/sqlgrey-1.7.6-r1.ebuild 
b/mail-filter/sqlgrey/sqlgrey-1.7.6-r1.ebuild
index 7dc1107..6d70007 100644
--- a/mail-filter/sqlgrey/sqlgrey-1.7.6-r1.ebuild
+++ b/mail-filter/sqlgrey/sqlgrey-1.7.6-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -12,7 +12,7 @@ SLOT="0"
 IUSE="mysql postgres sqlite"
 RDEPEND="dev-lang/perl
dev-perl/DBI
-   dev-perl/net-server
+   dev-perl/Net-Server
dev-perl/Date-Calc
virtual/mailx
postgres? ( dev-perl/DBD-Pg )