From 36ac65103bf5503e5bad1ecc7e8cb9e7643f6840 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 13 Sep 2019 17:49:31 +0100 Subject: Revert "gentoo resync : 13.09.2019" This reverts commit a1392efe64137262023d92492396ca9156d22396. --- mail-filter/spamdyke/spamdyke-4.3.0-r1.ebuild | 81 +++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 mail-filter/spamdyke/spamdyke-4.3.0-r1.ebuild (limited to 'mail-filter/spamdyke/spamdyke-4.3.0-r1.ebuild') diff --git a/mail-filter/spamdyke/spamdyke-4.3.0-r1.ebuild b/mail-filter/spamdyke/spamdyke-4.3.0-r1.ebuild new file mode 100644 index 000000000000..02c6a579d924 --- /dev/null +++ b/mail-filter/spamdyke/spamdyke-4.3.0-r1.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit eutils autotools + +DESCRIPTION="A drop-in connection-time spam filter for qmail" +HOMEPAGE="http://www.spamdyke.org/" +SRC_URI="http://www.spamdyke.org/releases/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="libressl +ssl" + +DEPEND=" + ssl? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:= ) + )" +RDEPEND="${DEPEND} + virtual/qmail" + +S=${WORKDIR}/${P}/${PN} + +src_prepare() { + epatch "${FILESDIR}"/${P}-gcc46.patch + echo "# Configuration option for ${PN}" > ${PN}.conf + if use ssl; then + echo "tls-certificate-file=/var/qmail/control/clientcert.pem" \ + >> ${PN}.conf + fi + echo "graylist-level=always-create-dir" >> ${PN}.conf + echo "graylist-dir=/var/tmp/${PN}/graylist" >> ${PN}.conf + echo "reject-empty-rdns" >> ${PN}.conf + echo "reject-unresolvable-rdns" >> ${PN}.conf + echo "dns-blacklist-entry=zen.spamhaus.org" >> ${PN}.conf + echo "local-domains-file=/var/qmail/control/rcpthosts" >> ${PN}.conf + sed -i \ + -e "/STRIP_CMD/d" \ + Makefile.in || die "sed on Makefile.in failed" + eautoreconf +} + +src_configure() { + econf \ + $(use_enable ssl tls) || die "econf failed" + cd ../utils + econf || die "econf failed in utils" +} + +src_compile() { + emake CFLAGS="${CFLAGS}" || die "emake failed" + cd ../utils + emake CFLAGS="${CFLAGS}" || die "emake in utils died" +} + +src_install() { + dobin ${PN} || die "Installing ${PN} binary failed" + insinto /etc/${PN} + doins ${PN}.conf || die "Installing ${PN} configuration file failed" + dodir /var/tmp/${PN}/graylist + fowners -R qmaild /var/tmp/${PN}/graylist + cd ../utils + dobin domain2path || die "Installing domain2path binary failed" + cd ../documentation + dodoc {Changelog,INSTALL,UPGRADING}.txt + dohtml FAQ.html \ + README.html \ + README_ip_file_format.html \ + README_rdns_directory_format.html \ + README_rdns_file_format.html +} + +pkg_postinst() { + elog "In /var/qmail/control/conf-smtpd insert the line:" + elog "QMAIL_SMTP_PRE=\"${QMAIL_SMTP_PRE} spamdyke -f /etc/${PN}/${PN}.conf\"" + elog "Run spamdyke with the '-h' flag to see the available options and" + elog "update /etc/spamdyke/spamdyke.conf accordingly" +} -- cgit v1.2.3