Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/sqlgrey/files/, acct-user/sqlgrey/, mail-filter/sqlgrey/, ...
Date: Wed, 08 Jan 2020 13:58:21
Message-Id: 1578491885.688d13bfb963660c58d06a7d7ceff7d154f77369.mgorny@gentoo
1 commit: 688d13bfb963660c58d06a7d7ceff7d154f77369
2 Author: Philippe Chaintreuil <gentoo_bugs_peep <AT> parallaxshift <DOT> com>
3 AuthorDate: Sun Oct 20 11:47:54 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 8 13:58:05 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=688d13bf
7
8 mail-filter/sqlgrey: Upgrade to 1.8.0, EAPI=7, GLEP-81
9
10 Also removed pkg_config() - it's not worth the maint. overhead for a
11 package aimed at mail admins.
12
13 Closes: https://bugs.gentoo.org/354869
14 Closes: https://github.com/gentoo/gentoo/pull/13361
15 Bug: https://bugs.gentoo.org/696252
16 Package-Manager: Portage-2.3.76, Repoman-2.3.16
17 Signed-off-by: Philippe Chaintreuil <gentoo_bugs_peep <AT> parallaxshift.com>
18 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
19
20 acct-group/sqlgrey/metadata.xml | 13 +++++
21 acct-group/sqlgrey/sqlgrey-0.ebuild | 9 ++++
22 acct-user/sqlgrey/metadata.xml | 13 +++++
23 acct-user/sqlgrey/sqlgrey-0.ebuild | 14 +++++
24 mail-filter/sqlgrey/Manifest | 1 +
25 .../sqlgrey/files/sqlgrey-1.8.0-init-openrc.patch | 7 +++
26 mail-filter/sqlgrey/sqlgrey-1.8.0.ebuild | 59 ++++++++++++++++++++++
27 7 files changed, 116 insertions(+)
28
29 diff --git a/acct-group/sqlgrey/metadata.xml b/acct-group/sqlgrey/metadata.xml
30 new file mode 100644
31 index 00000000000..265493eecbe
32 --- /dev/null
33 +++ b/acct-group/sqlgrey/metadata.xml
34 @@ -0,0 +1,13 @@
35 +<?xml version="1.0" encoding="UTF-8"?>
36 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
37 +<pkgmetadata>
38 + <maintainer type="person">
39 + <email>gentoo_bugs_peep@×××××××××××××.com</email>
40 + <name>Philippe Chaintreuil</name>
41 + </maintainer>
42 +
43 + <maintainer type="project">
44 + <email>proxy-maint@g.o</email>
45 + <name>Proxy Maintainers</name>
46 + </maintainer>
47 +</pkgmetadata>
48
49 diff --git a/acct-group/sqlgrey/sqlgrey-0.ebuild b/acct-group/sqlgrey/sqlgrey-0.ebuild
50 new file mode 100644
51 index 00000000000..10df6a2e8ee
52 --- /dev/null
53 +++ b/acct-group/sqlgrey/sqlgrey-0.ebuild
54 @@ -0,0 +1,9 @@
55 +# Copyright 2019 Gentoo Authors
56 +# Distributed under the terms of the GNU General Public License v2
57 +
58 +EAPI=7
59 +
60 +inherit acct-group
61 +
62 +DESCRIPTION="Group for SQLGrey"
63 +ACCT_GROUP_ID=336
64
65 diff --git a/acct-user/sqlgrey/metadata.xml b/acct-user/sqlgrey/metadata.xml
66 new file mode 100644
67 index 00000000000..265493eecbe
68 --- /dev/null
69 +++ b/acct-user/sqlgrey/metadata.xml
70 @@ -0,0 +1,13 @@
71 +<?xml version="1.0" encoding="UTF-8"?>
72 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
73 +<pkgmetadata>
74 + <maintainer type="person">
75 + <email>gentoo_bugs_peep@×××××××××××××.com</email>
76 + <name>Philippe Chaintreuil</name>
77 + </maintainer>
78 +
79 + <maintainer type="project">
80 + <email>proxy-maint@g.o</email>
81 + <name>Proxy Maintainers</name>
82 + </maintainer>
83 +</pkgmetadata>
84
85 diff --git a/acct-user/sqlgrey/sqlgrey-0.ebuild b/acct-user/sqlgrey/sqlgrey-0.ebuild
86 new file mode 100644
87 index 00000000000..a7c27f156d5
88 --- /dev/null
89 +++ b/acct-user/sqlgrey/sqlgrey-0.ebuild
90 @@ -0,0 +1,14 @@
91 +# Copyright 2019 Gentoo Authors
92 +# Distributed under the terms of the GNU General Public License v2
93 +
94 +EAPI=7
95 +
96 +inherit acct-user
97 +
98 +DESCRIPTION="User for SQLGrey"
99 +
100 +ACCT_USER_ID=336
101 +ACCT_USER_GROUPS=( sqlgrey )
102 +ACCT_USER_HOME="/var/spool/sqlgrey"
103 +
104 +acct-user_add_deps
105
106 diff --git a/mail-filter/sqlgrey/Manifest b/mail-filter/sqlgrey/Manifest
107 index 60f690c39c1..a1d23dbdd3b 100644
108 --- a/mail-filter/sqlgrey/Manifest
109 +++ b/mail-filter/sqlgrey/Manifest
110 @@ -1 +1,2 @@
111 DIST sqlgrey-1.7.6.tar.bz2 63738 BLAKE2B 7835079f3f220c2894781cb1ba8d1cac66f46e9fad7f17bfc0f1f7e2cfe1b1b05664179abacb873acf1829114093c48764c34e1a0a3128503f8e3f134dd0772d SHA512 62822d808aa5991a8d29f455be933cf782c9d5232b63bd1f357093a06982474018fb7a02dedf29274d8b7e9f12525063e6af744efceecf420cd01e74f561aa81
112 +DIST sqlgrey-1.8.0.tar.gz 69476 BLAKE2B f48aa9e41a988338a817026fbf022e145922db0bad9983e4d7cde7bc621560ce6189e494cfba5dd5f48ba4ff30e47686c54298f9a006b8fcc2b27444e102b0d1 SHA512 97ab057bf7111159166a6963d5948c10468731730136ddca6449d2d629f39235c09d00497a52408bb87057905c1bf43bc064571ee6302d7f1f8c6408af82d044
113
114 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
115 new file mode 100644
116 index 00000000000..aa1560572bc
117 --- /dev/null
118 +++ b/mail-filter/sqlgrey/files/sqlgrey-1.8.0-init-openrc.patch
119 @@ -0,0 +1,7 @@
120 +--- a/init/sqlgrey.gentoo 2007-05-12 11:12:12.000000000 +0200
121 ++++ b/init/sqlgrey.gentoo 2007-05-12 12:05:52.491468250 +0200
122 +@@ -1,4 +1,4 @@
123 +-#!/sbin/runscript
124 ++#!/sbin/openrc-run
125 + # Copyright 1999-2004 Lionel Bouton
126 + # Distributed under the terms of the GNU General Public License v2
127
128 diff --git a/mail-filter/sqlgrey/sqlgrey-1.8.0.ebuild b/mail-filter/sqlgrey/sqlgrey-1.8.0.ebuild
129 new file mode 100644
130 index 00000000000..958ff327b18
131 --- /dev/null
132 +++ b/mail-filter/sqlgrey/sqlgrey-1.8.0.ebuild
133 @@ -0,0 +1,59 @@
134 +# Copyright 1999-2019 Gentoo Authors
135 +# Distributed under the terms of the GNU General Public License v2
136 +
137 +EAPI=7
138 +
139 +inherit systemd
140 +
141 +DESCRIPTION="A postfix policy service implementing a grey-listing policy"
142 +HOMEPAGE="http://sqlgrey.sourceforge.net/"
143 +SRC_URI="https://downloads.sourceforge.net/project/sqlgrey/sqlgrey-1.8%20%28stable%29/${P}.tar.gz"
144 +
145 +LICENSE="GPL-2"
146 +SLOT="0"
147 +KEYWORDS="~amd64 ~arm ~sparc ~x86"
148 +IUSE="mysql postgres +sqlite"
149 +REQUIRED_USE="|| ( mysql postgres sqlite )"
150 +
151 +RDEPEND="acct-user/sqlgrey
152 + dev-lang/perl
153 + dev-perl/DBI
154 + dev-perl/Date-Calc
155 + dev-perl/Net-Server
156 + virtual/mailx
157 + mysql? ( dev-perl/DBD-mysql )
158 + postgres? ( dev-perl/DBD-Pg )
159 + sqlite? ( dev-perl/DBD-SQLite )"
160 +DEPEND="${RDEPEND}
161 + sys-apps/sed"
162 +
163 +DOCS=( HOWTO FAQ README README.OPTINOUT README.PERF TODO Changelog )
164 +PATCHES=(
165 + "${FILESDIR}/sqlgrey-1.8.0-init-openrc.patch"
166 +)
167 +
168 +src_install () {
169 + emake gentoo-install ROOTDIR="${D}"
170 + einstalldocs
171 +
172 + systemd_dounit "${FILESDIR}/${PN}.service"
173 +}
174 +
175 +pkg_postinst() {
176 + elog "To make use of greylisting, please update your postfix config."
177 + elog
178 + elog "Put something like this in ${ROOT}/etc/postfix/main.cf:"
179 + elog " smtpd_recipient_restrictions ="
180 + elog " ..."
181 + elog " check_policy_service inet:127.0.0.1:2501"
182 + elog
183 + elog "Remember to restart Postfix after that change. Also remember"
184 + elog "to make the daemon start durig boot:"
185 + elog " rc-update add sqlgrey default"
186 + elog
187 + ewarn "Read the documentation for more info (perldoc sqlgrey) or the"
188 + ewarn "included HOWTO in ${ROOT}/usr/share/doc/${PF}/"
189 + ewarn
190 + ewarn "If you are using MySQL >= 4.1 use \"latin1\" as charset for"
191 + ewarn "the SQLgrey db"
192 +}