summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2018-01-23 10:45:48 +0100
committerThomas Deutschmann <whissi@gentoo.org>2018-01-23 10:46:01 +0100
commitbedf62d073373d69db75bc352380f84ca898403c (patch)
tree12d9b1ad478f978088cfff99ee1516e63619d56e /mail-filter/policyd-weight/policyd-weight-0.1.15.2-r2.ebuild
parentgames-emulation/snes9x: Fix broken build system (diff)
downloadgentoo-bedf62d073373d69db75bc352380f84ca898403c.tar.gz
gentoo-bedf62d073373d69db75bc352380f84ca898403c.tar.bz2
gentoo-bedf62d073373d69db75bc352380f84ca898403c.zip
mail-filter/policyd-weight: Rev bump
Ebuild changes: =============== - We are now using similar patch set like Debian. - EAPI bumped to EAPI=6. Closes: https://bugs.gentoo.org/536580 Closes: https://bugs.gentoo.org/538902 Package-Manager: Portage-2.3.20, Repoman-2.3.6
Diffstat (limited to 'mail-filter/policyd-weight/policyd-weight-0.1.15.2-r2.ebuild')
-rw-r--r--mail-filter/policyd-weight/policyd-weight-0.1.15.2-r2.ebuild59
1 files changed, 59 insertions, 0 deletions
diff --git a/mail-filter/policyd-weight/policyd-weight-0.1.15.2-r2.ebuild b/mail-filter/policyd-weight/policyd-weight-0.1.15.2-r2.ebuild
new file mode 100644
index 00000000000..d4850b609ee
--- /dev/null
+++ b/mail-filter/policyd-weight/policyd-weight-0.1.15.2-r2.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit user tmpfiles
+
+PATCH_VER="1.0"
+
+DESCRIPTION="Weighted Policy daemon for Postfix"
+HOMEPAGE="http://www.policyd-weight.org/"
+SRC_URI="http://www.policyd-weight.org/releases/${P}.tar.gz
+ mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz
+ https://dev.gentoo.org/~whissi/dist/${PN}/${P}-patches-${PATCH_VER}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="virtual/perl-File-Spec
+ virtual/perl-Sys-Syslog
+ dev-perl/Net-DNS
+ dev-perl/Net-IP
+ >=mail-mta/postfix-2.1"
+
+pkg_setup() {
+ enewgroup 'polw'
+ enewuser 'polw' -1 -1 -1 'polw'
+}
+
+src_prepare() {
+ eapply "${WORKDIR}"/patches/*.patch
+
+ default
+}
+
+src_compile() { :; }
+
+src_install() {
+ exeinto /usr/libexec/postfix
+ doexe policyd-weight
+ fowners root:wheel /usr/libexec/postfix/policyd-weight
+
+ doman man/man5/*.5 man/man8/*.8
+ dodoc *.txt
+
+ insinto /etc
+ newins policyd-weight.conf.sample policyd-weight.conf
+
+ newinitd "${FILESDIR}/${PN}.init.d-r2" "${PN}"
+
+ newtmpfiles "${FILESDIR}"/${PN}.tmpfile ${PN}.conf
+}
+
+pkg_postinst() {
+ tmpfiles_process "${PN}.conf"
+}