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 CE0FF13888F for ; Sun, 11 Oct 2015 00:26:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2B34A21C001; Sun, 11 Oct 2015 00:26:25 +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 B59DA21C001 for ; Sun, 11 Oct 2015 00:26:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3D25E33BE93 for ; Sun, 11 Oct 2015 00:26:23 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7F730126 for ; Sun, 11 Oct 2015 00:26:20 +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: <1444523516.835d4bda9b6d3176afe230a5df99194a309e5d15.blueness@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/policyd/ X-VCS-Repository: repo/gentoo X-VCS-Files: mail-filter/policyd/policyd-1.82-r2.ebuild X-VCS-Directories: mail-filter/policyd/ X-VCS-Committer: blueness X-VCS-Committer-Name: Anthony G. Basile X-VCS-Revision: 835d4bda9b6d3176afe230a5df99194a309e5d15 X-VCS-Branch: master Date: Sun, 11 Oct 2015 00:26:20 +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: 61ef3385-a19a-4c94-a766-6584c3af8407 X-Archives-Hash: 9b8c92939ea65c0936ef5488240f0eb8 commit: 835d4bda9b6d3176afe230a5df99194a309e5d15 Author: Anthony G. Basile gentoo org> AuthorDate: Sun Oct 11 00:31:56 2015 +0000 Commit: Anthony G. Basile gentoo org> CommitDate: Sun Oct 11 00:31:56 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=835d4bda mail-filter/policyd: add libressl support Package-Manager: portage-2.2.20.1 mail-filter/policyd/policyd-1.82-r2.ebuild | 76 ++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/mail-filter/policyd/policyd-1.82-r2.ebuild b/mail-filter/policyd/policyd-1.82-r2.ebuild new file mode 100644 index 0000000..c54494a --- /dev/null +++ b/mail-filter/policyd/policyd-1.82-r2.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils toolchain-funcs + +DESCRIPTION="Policy daemon for postfix and other MTAs" +HOMEPAGE="http://policyd.sf.net/" + +# This is not available through SF mirrors +SRC_URI="http://policyd.sourceforge.net/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~x86" +IUSE="libressl" +DEPEND="virtual/mysql + !libressl? ( dev-libs/openssl:0 ) + libressl? ( dev-libs/libressl )" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}/${PN}-post182.patch" + epatch "${FILESDIR}/${PN}-makefile.patch" + sed -i -e "s/gcc/$(tc-getCC)/" Makefile + + ebegin "Applying config patches" + sed -i -e s:UID=0:UID=65534:g \ + -e s:GID=0:GID=65534:g \ + -e s:DAEMON=0:DAEMON=1:g \ + -e s:DEBUG=3:DEBUG=0:g \ + -e s:DATABASE_KEEPALIVE=0:DATABASE_KEEPALIVE=1:g \ + policyd.conf || die "sed failed" + eend +} + +src_compile() { + emake build || die "emake build failed" +} + +src_install() { + insopts -o root -g nobody -m 0750 + mv cleanup policyd_cleanup + mv stats policyd_stats + + dosbin policyd policyd_cleanup policyd_stats + + insopts -o root -g nobody -m 0640 + insinto /etc + doins policyd.conf + + insopts -o root -g nobody -m 0700 + exeinto /etc/cron.hourly + newexe "${FILESDIR}/${PN}-cleanup.cron" ${PN}-cleanup.cron + + dodoc ChangeLog DATABASE.mysql README doc/support.txt + + newinitd "${FILESDIR}/${PN}.rc" ${PN} + newconfd "${FILESDIR}/${PN}.confd" ${PN} +} + +pkg_postinst() { + elog "You will need to create the database using the script DATABASE.mysql" + elog "in /usr/share/doc/${PF}/" + elog "Read the mysql section of the README.txt for details." + elog + elog "To use policyd with postfix, update your /etc/postfix/main.cf file by adding" + elog " check_policy_service inet:127.0.0.1:10031" + elog "to your smtpd_recipient_restrictions line, or similar." + elog + elog "Also remember to start the daemon at boot:" + elog " rc-update add policyd default" + elog + elog "Read the documentation for more info." +}