From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 55B7F13888F for ; Sun, 11 Oct 2015 00:00:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1E67E21C001; Sun, 11 Oct 2015 00:00:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9D1AF21C001 for ; Sun, 11 Oct 2015 00:00:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 704F133E5E4 for ; Sun, 11 Oct 2015 00:00:40 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8DF5DDE8 for ; Sun, 11 Oct 2015 00:00:38 +0000 (UTC) From: "Anthony G. Basile" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anthony G. Basile" Message-ID: <1444521975.e169d49167801b7acced3f1264fb086a41947b3d.blueness@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/gld/ X-VCS-Repository: repo/gentoo X-VCS-Files: mail-filter/gld/gld-1.7-r3.ebuild X-VCS-Directories: mail-filter/gld/ X-VCS-Committer: blueness X-VCS-Committer-Name: Anthony G. Basile X-VCS-Revision: e169d49167801b7acced3f1264fb086a41947b3d X-VCS-Branch: master Date: Sun, 11 Oct 2015 00:00:38 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 19c683ce-fc4f-4448-a371-cf313910c01b X-Archives-Hash: 4bfab2313c5b004fd1265368689cc7cf commit: e169d49167801b7acced3f1264fb086a41947b3d Author: Anthony G. Basile gentoo org> AuthorDate: Sun Oct 11 00:06:15 2015 +0000 Commit: Anthony G. Basile gentoo org> CommitDate: Sun Oct 11 00:06:15 2015 +0000 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 0000000..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 +}