From 6065580ec81ce7a56ae4253198e701f1ae5aff70 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Mon, 5 Jul 2010 16:41:13 +0000 Subject: mail-filter/postwhite: Version bump, cleanup and moved the user/group creation to pkg_preinst() as they are not required during build-time. svn path=/sunrise/; revision=10904 --- mail-filter/postwhite/ChangeLog | 9 ++++- mail-filter/postwhite/Manifest | 6 +-- mail-filter/postwhite/postwhite-0.1.0.ebuild | 57 ---------------------------- mail-filter/postwhite/postwhite-0.1.3.ebuild | 56 +++++++++++++++++++++++++++ 4 files changed, 67 insertions(+), 61 deletions(-) delete mode 100644 mail-filter/postwhite/postwhite-0.1.0.ebuild create mode 100644 mail-filter/postwhite/postwhite-0.1.3.ebuild (limited to 'mail-filter') diff --git a/mail-filter/postwhite/ChangeLog b/mail-filter/postwhite/ChangeLog index 8e22647f6..5ea2dfd2a 100644 --- a/mail-filter/postwhite/ChangeLog +++ b/mail-filter/postwhite/ChangeLog @@ -1,7 +1,14 @@ # ChangeLog for mail-filter/postwhite -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ +*postwhite-0.1.3 (04 Jul 2010) + + 04 Jul 2010; Michał Górny (sedzimir) + -postwhite-0.1.0.ebuild, +postwhite-0.1.3.ebuild: + Version bump, cleanup and moved the user/group creation to pkg_preinst() + as they are not required during build-time. + 19 Jan 2009; Thomas Sachau (Tommy[D]) postwhite-0.1.0.ebuild: Add suggested RDEPEND=${DEPEND}, add die statements diff --git a/mail-filter/postwhite/Manifest b/mail-filter/postwhite/Manifest index 1b9660f4d..afdd7843d 100644 --- a/mail-filter/postwhite/Manifest +++ b/mail-filter/postwhite/Manifest @@ -1,6 +1,6 @@ AUX 0.1.0/postwhite.conf 119 RMD160 a7edeaf643b9959aed15d08d115b9bb08a70e40d SHA1 bc4d3fb0519dae0a83365886be97bb96e6889c9d SHA256 1f76c3b215380ebb10c43937d396ea4eb64493edd2da4fb314bb04c168a9f0b5 AUX 0.1.0/postwhite.init 381 RMD160 4c88654798df114b4f06f473d8e95370974bf1df SHA1 d53272e643aa4cbea5a502e4f2403ef80f236d04 SHA256 71b7d5802f8fc3744f0a617621b8fa2b00921d7ff33d6e2d0dd280eef5a785fe -DIST postwhite-0.1.0.tgz 6477 RMD160 fe64baf9dcd2c520332fffd796eb3837555e784c SHA1 27f5978623f1fa12853525e24e194b4f8a8d0bcb SHA256 6e399f332be9a6dc9b414111e648ac3f69deacd3de6270b1847962f364c19fdd -EBUILD postwhite-0.1.0.ebuild 1852 RMD160 7d067e5c2e612d64d50cf70f39aa442d8b930a78 SHA1 b55a716d79cdef96fd412135c0602826a1ba6f6e SHA256 22bc96e25ca634d4fca50668311a000087f60c2e7487b5e416d0b9b84ec4f5fc -MISC ChangeLog 577 RMD160 acd1b87d520b383f3a1628cd09ba5c65d95bee9d SHA1 2b5d04a6bf05bd5c1aea83fcb8f16c1e34bb2f08 SHA256 09ce5f90fa87a93dea44ab8abb43221fd270acd34b88359d720be6a8f2c41bed +DIST postwhite-0.1.3.tgz 7409 RMD160 71b15e5980feda25d5317d3ee0eb7a892e771060 SHA1 89dca469c71105164578caea6ad087eea4611723 SHA256 8e45eac0b5cefed39e187fa4fc0875a5f31bc9f73ffe5b482407e85cf71645ee +EBUILD postwhite-0.1.3.ebuild 1888 RMD160 36b8b5023db824f19297a7836724bb77fc10b411 SHA1 14208f25b5ddb0a3064a0d191324a9354b1891b9 SHA256 f47bfbee47b74668632f4bb6b1418e245af08163f9575363191f4acf321a0f54 +MISC ChangeLog 852 RMD160 a732cfcb573fa24d211e7eaae4466bc9d354f363 SHA1 2f1351d4e685b8e6a961185ded30e979fa2d853a SHA256 cb78ca4e8d84359906c79b58f83a5e1d58652e23d450f3dc19d6f791af85092a MISC metadata.xml 1661 RMD160 7f5276dbb7f5079f940e0e0cdcfc405aac7a5920 SHA1 78b9e1f98b4621b470d3485b19ca809b158bf4ba SHA256 a3ba85c7ed9c7cb8c26be8d3e0dcb9030ad74fabab856a7ad2841f0e143a453f diff --git a/mail-filter/postwhite/postwhite-0.1.0.ebuild b/mail-filter/postwhite/postwhite-0.1.0.ebuild deleted file mode 100644 index 24a659387..000000000 --- a/mail-filter/postwhite/postwhite-0.1.0.ebuild +++ /dev/null @@ -1,57 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -inherit eutils - -DESCRIPTION="Per-recipient whitelist policy server for Postfix MTA managed entirely by emails." -HOMEPAGE="http://www.bitcetera.com/products/postwhite" -SRC_URI="http://www.bitcetera.com/download/${P}.tgz" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -DEPEND="mail-mta/postfix - >=dev-lang/ruby-1.8.6 - dev-ruby/rubygems - dev-ruby/facets - dev-ruby/trollop" -RDEPEND=${DEPEND} - -pkg_setup() { - enewgroup ${PN} - enewuser ${PN} -1 -1 /dev/null ${PN} -} - -src_install() { - dosbin ${PN} || die "installing binary failed" - newinitd "${FILESDIR}"/${PVR}/${PN}.init ${PN} - newconfd "${FILESDIR}"/${PVR}/${PN}.conf ${PN} - "${S}"/${PN} --prefix "${D}" configure || die - keepdir /etc/postfix/postwhite -} - -pkg_postinst() { - elog - elog "The following steps are necessary to hook Postwhite into the Postfix" - elog "workflow:" - elog - elog "1) List all email addresses that should be protected by Postwhite in:" - elog " /etc/postfix/postwhite/recipients.yml" - elog "2) Start the Postwhite daemon:" - elog " /etc/init.d/postwhite start" - elog "3) Add the line 'check_policy_service inet:127.0.0.1:10035,' to the" - elog " 'smtpd_recipient_restrictions' block which you find somewhere in" - elog " /etc/postfix/main.cf. You should place it near the end of the block" - elog " after all basic services (like 'reject_unauth_destination,') and" - elog " the greylist service (like Postgrey) but before the anti-SPAM services" - elog " (like DSPAM or SpamAssassin) in order to prevent unnecessary workload." - elog "4) Reload Postfix to bring your changes into effect:" - elog " /etc/init.d/postfix reload" - elog "5) Make the Postwhite daemon start at boot time:" - elog " rc-update add postwhite default" - elog - epause 5 -} diff --git a/mail-filter/postwhite/postwhite-0.1.3.ebuild b/mail-filter/postwhite/postwhite-0.1.3.ebuild new file mode 100644 index 000000000..a12a810a8 --- /dev/null +++ b/mail-filter/postwhite/postwhite-0.1.3.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils + +DESCRIPTION="Per-recipient whitelist policy server for Postfix MTA managed entirely by emails" +HOMEPAGE="http://www.bitcetera.com/products/postwhite" +SRC_URI="http://www.bitcetera.com/page_attachments/0000/0014/${P}.tgz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="mail-mta/postfix + >=dev-lang/ruby-1.8.6 + dev-ruby/rubygems + >=dev-ruby/facets-2.8.4-r1 + dev-ruby/trollop" +RDEPEND="${DEPEND}" + +S=${WORKDIR} + +src_install() { + dosbin ${PN} || die "installing binary failed" + newinitd "${FILESDIR}"/0.1.0/${PN}.init ${PN} || die + newconfd "${FILESDIR}"/0.1.0/${PN}.conf ${PN} || die + "${S}"/${PN} --prefix "${D}" configure || die + keepdir /etc/postfix/postwhite +} + +pkg_preinst() { + enewgroup ${PN} + enewuser ${PN} -1 -1 /dev/null ${PN} +} + +pkg_postinst() { + elog "The following steps are necessary to hook Postwhite into the Postfix" + elog "workflow:" + elog + elog "1) List all email addresses that should be protected by Postwhite in:" + elog " /etc/postfix/postwhite/recipients.yml" + elog "2) Start the Postwhite daemon:" + elog " /etc/init.d/postwhite start" + elog "3) Add the line 'check_policy_service inet:127.0.0.1:10035,' to the" + elog " 'smtpd_recipient_restrictions' block which you find somewhere in" + elog " /etc/postfix/main.cf. You should place it near the end of the block" + elog " after all basic services (like 'reject_unauth_destination,') and" + elog " the greylist service (like Postgrey) but before the anti-SPAM services" + elog " (like DSPAM or SpamAssassin) in order to prevent unnecessary workload." + elog "4) Reload Postfix to bring your changes into effect:" + elog " /etc/init.d/postfix reload" + elog "5) Make the Postwhite daemon start at boot time:" + elog " rc-update add postwhite default" +} -- cgit v1.2.3-65-gdbad