Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/gld/
Date: Mon, 07 Sep 2020 23:11:43
Message-Id: 1599520283.92c5ebafb0e1fe43590592c668a8ecf8998b50b3.sam@gentoo
1 commit: 92c5ebafb0e1fe43590592c668a8ecf8998b50b3
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 7 23:11:23 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 7 23:11:23 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92c5ebaf
7
8 mail-filter/gld: cleanup old EAPI 4 ebuild
9
10 Bug: https://bugs.gentoo.org/739586
11 Package-Manager: Portage-3.0.4, Repoman-3.0.1
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 mail-filter/gld/gld-1.7-r2.ebuild | 76 ---------------------------------------
15 1 file changed, 76 deletions(-)
16
17 diff --git a/mail-filter/gld/gld-1.7-r2.ebuild b/mail-filter/gld/gld-1.7-r2.ebuild
18 deleted file mode 100644
19 index 55c7f21f081..00000000000
20 --- a/mail-filter/gld/gld-1.7-r2.ebuild
21 +++ /dev/null
22 @@ -1,76 +0,0 @@
23 -# Copyright 1999-2014 Gentoo Foundation
24 -# Distributed under the terms of the GNU General Public License v2
25 -
26 -EAPI="4"
27 -
28 -inherit toolchain-funcs
29 -
30 -DESCRIPTION="A standalone anti-spam greylisting algorithm on top of Postfix"
31 -HOMEPAGE="http://www.gasmi.net/gld.html"
32 -SRC_URI="http://www.gasmi.net/down/${P}.tgz"
33 -
34 -LICENSE="GPL-2"
35 -SLOT="0"
36 -KEYWORDS="amd64 ppc x86"
37 -IUSE="postgres"
38 -# Not adding a mysql USE flag. The package defaults to it, so we will too.
39 -DEPEND="sys-libs/zlib
40 - >=dev-libs/openssl-0.9.6
41 - postgres? ( dev-db/postgresql[server] )
42 - !postgres? ( virtual/mysql )"
43 -RDEPEND="${DEPEND}"
44 -
45 -src_prepare() {
46 - sed -i gld.conf \
47 - -e 's:^LOOPBACKONLY=.*:LOOPBACKONLY=1:' \
48 - -e 's:^#USER=.*:USER=nobody:' \
49 - -e 's:^#GROUP=.*:GROUP=nobody:' \
50 - || die "sed gld.conf failed"
51 -
52 - sed -i Makefile.in \
53 - -e '/ -c /{s|-O2|$(CFLAGS)|g}' \
54 - -e '/ -o /{s|-O2|$(CFLAGS) $(LDFLAGS)|g}' \
55 - -e '/strip/d' \
56 - || die "sed Makefile.in failed"
57 -
58 - sed -i tables.{my,pg}sql \
59 - -e '/ip char/s/16/39/' \
60 - || die "sed sql tables failed"
61 -}
62 -
63 -src_configure() {
64 - tc-export CC
65 - # It's kind of weird. $(use_with postgres pgsql) won't work if you don't
66 - # use it...
67 - if use postgres ; then
68 - myconf="${myconf} --with-pgsql"
69 - fi
70 -
71 - econf ${myconf}
72 -}
73 -
74 -src_install() {
75 - dobin gld
76 -
77 - insinto /etc
78 - newins gld.conf gld.conf.example
79 -
80 - dodoc HISTORY README*
81 -
82 - insinto /usr/share/${PN}/sql
83 - doins *.pgsql *-whitelist.sql "${FILESDIR}"/tables.sql
84 -
85 - newinitd "${FILESDIR}"/gld.rc gld
86 -}
87 -
88 -pkg_preinst() {
89 - elog "Please read the README file in /usr/share/doc/${PF} for"
90 - elog "details on how to setup gld."
91 - elog
92 - elog "The sql files have been installed to /usr/share/${PN}/sql."
93 - if [[ $REPLACING_VERSIONS == "1.7-r1" ]]; then
94 - elog "You might want to use the ALTER_TABLE command to change the"
95 - elog "ip field width to 39 chars to accomodate ipv6 addresses."
96 - elog "Please see your sql server documentation."
97 - fi
98 -}