diff options
author | Eray Aslan <eras@gentoo.org> | 2013-01-03 08:45:10 +0000 |
---|---|---|
committer | Eray Aslan <eras@gentoo.org> | 2013-01-03 08:45:10 +0000 |
commit | 8cd016af3f94e62958674950b5ae4d8710bfaec0 (patch) | |
tree | 6d109ef98848bde0e51fa917de1e4968e7a6cef0 /mail-filter/policyd-weight | |
parent | Remove more dead code, spotted by Arfrever. (diff) | |
download | gentoo-2-8cd016af3f94e62958674950b5ae4d8710bfaec0.tar.gz gentoo-2-8cd016af3f94e62958674950b5ae4d8710bfaec0.tar.bz2 gentoo-2-8cd016af3f94e62958674950b5ae4d8710bfaec0.zip |
Assign package to net-mail herd. Do not keepdir /var/run directory - bug #449858. Fix init script
(Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key 0x77F1F175586A3B1F)
Diffstat (limited to 'mail-filter/policyd-weight')
-rw-r--r-- | mail-filter/policyd-weight/ChangeLog | 12 | ||||
-rw-r--r-- | mail-filter/policyd-weight/files/policyd-weight.init.d-r1 | 29 | ||||
-rw-r--r-- | mail-filter/policyd-weight/metadata.xml | 4 | ||||
-rw-r--r-- | mail-filter/policyd-weight/policyd-weight-0.1.15.2-r1.ebuild | 43 |
4 files changed, 81 insertions, 7 deletions
diff --git a/mail-filter/policyd-weight/ChangeLog b/mail-filter/policyd-weight/ChangeLog index 85132f16241f..b5a7047a56b9 100644 --- a/mail-filter/policyd-weight/ChangeLog +++ b/mail-filter/policyd-weight/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for mail-filter/policyd-weight -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/policyd-weight/ChangeLog,v 1.22 2012/06/05 00:02:12 zmedico Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/policyd-weight/ChangeLog,v 1.23 2013/01/03 08:45:10 eras Exp $ + +*policyd-weight-0.1.15.2-r1 (03 Jan 2013) + + 03 Jan 2013; Eray Aslan <eras@gentoo.org> +files/policyd-weight.init.d-r1, + +policyd-weight-0.1.15.2-r1.ebuild, metadata.xml: + Assign package to net-mail herd. Do not keepdir /var/run directory - bug + #449858. Fix init script 05 Jun 2012; Zac Medico <zmedico@gentoo.org> policyd-weight-0.1.15.1.ebuild, policyd-weight-0.1.15.2.ebuild: @@ -106,4 +113,3 @@ +policyd-weight-0.1.14.3.ebuild: Initial import. Ebuild written by Brian E <grknight at scent-team.com> in bug #169646. - diff --git a/mail-filter/policyd-weight/files/policyd-weight.init.d-r1 b/mail-filter/policyd-weight/files/policyd-weight.init.d-r1 new file mode 100644 index 000000000000..ffcc17a82b08 --- /dev/null +++ b/mail-filter/policyd-weight/files/policyd-weight.init.d-r1 @@ -0,0 +1,29 @@ +#!/sbin/runscript + +extra_started_commands="reload" + +daemon="policyd-weight" +exec="/usr/libexec/postfix/policyd-weight" + +depend(){ + before postfix + use net +} + +start(){ + ebegin "Starting ${daemon}" + ${exec} start + eend $? +} + +stop(){ + ebegin "Stopping ${daemon}" + ${exec} -k stop + eend $? +} + +reload(){ + ebegin "Reloading ${daemon}" + ${exec} reload + eend $? +} diff --git a/mail-filter/policyd-weight/metadata.xml b/mail-filter/policyd-weight/metadata.xml index 80c4cb0ea203..84785fb4e4f3 100644 --- a/mail-filter/policyd-weight/metadata.xml +++ b/mail-filter/policyd-weight/metadata.xml @@ -2,10 +2,6 @@ <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <herd>net-mail</herd> - <maintainer> - <email>grknight@scent-team.com</email> - <description>Real package maintainer</description> - </maintainer> <longdescription lang="en"> policyd-weight is a Perl policy daemon for the Postfix MTA (2.1 and later) intended to eliminate forged envelope senders and HELOs (i.e. in diff --git a/mail-filter/policyd-weight/policyd-weight-0.1.15.2-r1.ebuild b/mail-filter/policyd-weight/policyd-weight-0.1.15.2-r1.ebuild new file mode 100644 index 000000000000..0d4e35274a0e --- /dev/null +++ b/mail-filter/policyd-weight/policyd-weight-0.1.15.2-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/policyd-weight/policyd-weight-0.1.15.2-r1.ebuild,v 1.1 2013/01/03 08:45:10 eras Exp $ + +EAPI=4 + +inherit eutils user + +DESCRIPTION="Weighted Policy daemon for Postfix" +HOMEPAGE="http://www.policyd-weight.org/" +SRC_URI="http://www.policyd-weight.org/releases/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="virtual/perl-Sys-Syslog + dev-perl/Net-DNS + >=mail-mta/postfix-2.1" + +pkg_setup() { + enewgroup 'polw' + enewuser 'polw' -1 -1 -1 'polw' +} + +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 + + sed -i -e "s:^ \$LOCKPATH.*: \$LOCKPATH = '/var/run/policyd-weight/'; # must be a directory (add:" policyd-weight.conf.sample || die + insinto /etc + newins policyd-weight.conf.sample policyd-weight.conf + + newinitd "${FILESDIR}/${PN}.init.d-r1" "${PN}" +} |