diff options
Diffstat (limited to 'mail-filter/amavisd-milter')
9 files changed, 209 insertions, 0 deletions
diff --git a/mail-filter/amavisd-milter/Manifest b/mail-filter/amavisd-milter/Manifest new file mode 100644 index 000000000000..5d157a9ba0c3 --- /dev/null +++ b/mail-filter/amavisd-milter/Manifest @@ -0,0 +1,12 @@ +AUX amavisd-milter-1.6.0-policybank.patch 937 SHA256 86e11cbfc8b26ad91f7f405837ccdb5f6fed9eece1a18c7c50e5111750ee51a8 SHA512 a329e9b4e0c7b7de4b2b09ec8cf9f9157f7602761843278239530831673bd70e4a15cc5b3ec91700808de6a6a29baa00ea2f96d6c40736da27c7cb4fc059af4d WHIRLPOOL d0ce2336983289f97b844c60b975775907249bd6cb2e2d4f67d6894e47a49a322e4e868d6e4b852131c76fb16e3aa15074a91c44d819419e8a57ac324f7a9e03 +AUX amavisd-milter.confd 357 SHA256 fa8208d3bd15141808fc4612011a1f58850758a6191dbb81fad52e30312d9746 SHA512 354c7e1a0224bd0f8bd40e35dca99fc5c489f9b7ecc2292d992e5594ac969800ab19e99a784957bcc76e3b06788b0623fc5019d8965f002a67c3e01681c541de WHIRLPOOL 71ade6f23330e84ee23b0ba325f024880dc51ed3fa958e844464af79201fe6b8740a373355dca123ad98b7d9a7e29031eb20f1aa3cb79b2f2e08b0eff3a80ed9 +AUX amavisd-milter.initd 678 SHA256 6b061451b1da8236aab5cf30925d8ba74887387948efaee14c9ecfadc49ef594 SHA512 017cc4e2461b524768f2c7f69a1d16b99c08ebf39d024913e79e5ffb2033a2dbd5eb64cedb3b9e370a0143256fdb17652492385f996f0dbe4baaaa96557a16c6 WHIRLPOOL d4a71ae06893ceba3394fc6b14f59c657591c5103ab1dcd4a77ca1184aa474081d0799f4cda40fe94f72d82163a8e49d3932dbc18e8628fc0aadc94d60668113 +DIST amavisd-milter-1.5.0.tar.gz 175759 SHA256 cef897e2c172272d52a6e5d9415b25252bf669f0481f9bdf24e95d3071c5a2c5 SHA512 ef206cd2c64cf48edb8a679b92a960451e0edbec11e0c207942bf6f435f7d14538a409d8197774ea4bbf63f27ed73d52a7c51531155be6d8724981b5dd9e0037 WHIRLPOOL d48dfd540fdcae728425f0209f6fe2601a1bdbac9299d346ccc06f56da00f10b6c506b15129d93df1bf670a861afc25d40d1344369377f1ff0ee23cf90f40f39 +DIST amavisd-milter-1.6.0.tar.gz 187994 SHA256 c195750d42df41f4642a26b020fec1ba5752a997bcb366c70cd384bc560a98cd SHA512 2e0b39b733f88742fcb2f4e884e528b70731ad5950bd56d3af1391d666dc018d2f6c1ad4212e787872a503bccbc65c52d55ae195c384e9333e4f39d25b1d1a34 WHIRLPOOL ab1c0aee71597b0c5ccd3375a0df3ffd81ee24a69946b02d8e37a376ef1dca259c519338d5d7a391dd0947de907192d740ce8797f3a58b546461564dcc238d95 +EBUILD amavisd-milter-1.5.0-r1.ebuild 681 SHA256 ea4f68b5a67aaa7793cf291e7d567978936ebacd86c4b23fd1f490ebf329765d SHA512 0f9c5b732a70a3e9a9206e62c6d92115f9c998c642bdbfa7f6813b4b29865dc793d41de0c27c95a48febbf1e312ef2960efa34f79aa84c2b7a3ad9ba28a2cc92 WHIRLPOOL c8b2b8a2c1b1c52520307dd2016a511509014197bb5a3d9ccd86dae229813fbef63dbb566d6f747c808de68e293776f36a692bafae587171a1803919e47e4072 +EBUILD amavisd-milter-1.5.0.ebuild 631 SHA256 f354bcd7123aca94c0069ec691cf784025dc250c094cf6e6c991f201a1af7000 SHA512 aaacbdb73059e13e11155527a085673b6d61b525b17320982894181aeef61d5d5d827b95f1d5bf1621e97385640e0a92aebf99f1d5cec83b9ccbd5a7f34511d5 WHIRLPOOL 52cd74d96e38c192afd3960661e2049effe543927bbcbb32903cde8248d7121f19ad9c888573a578f86676e85671fc6b6dc2f1a468c9913e0e5b88ca2fe2d8ad +EBUILD amavisd-milter-1.6.0-r1.ebuild 727 SHA256 113353e91821c7fd9821b3b61d9908bede220c657ae69c8a3d731cbc6481238a SHA512 45ca404978aa01b3eb54b17fc2aa224e0da5a773438aa4e42215a689890731e6c2c9c8a7d1b5e2a16f7fe3de933529bfe971eae406740b1058d692602fad54d0 WHIRLPOOL 9ca93ac117aa365d2fdb2bf520a84a6ca2f87510ebca2260e75abe81e31e1eb0c94380b809bffc58ac03cc6cb373d06d70fe5b97583e53b46599fce31cbd6da5 +EBUILD amavisd-milter-1.6.0.ebuild 683 SHA256 180af8ae61f1e31933cee7ba8ed83af05c7f3eeb534f4a87e0a6ed50e2c01ae5 SHA512 9a6be369cb8f78dd6f818beac4fa70966adce4882e5aae50188e5c4df4c86669fd4609dd4bd6f9ee7497f1bd8b5ef7786b7d8c12903dbdcfcb7b5ca723e5d404 WHIRLPOOL c02816ddb900074b865c9ecd4df539bd5f6a810805d9e2caf415824f65fd45bf9f15dbb9886c97e099a29079282632422b58b453cd18a4c002a07f65026fc3b4 +MISC ChangeLog 2910 SHA256 e54546ee9cbbd74c655de4679c5e1841b031793c866d69f808872ab92e30c140 SHA512 e93d72b46c4b0eba2f9daae156b670428a1f272dfe293e737e4f891e180f2106b71fc7ad7a9faab8a6124490940695c0ae5620db3cd9ff907c94afd226c7c58a WHIRLPOOL 8d4d6149ce06101822210c14c21cdc4f5d18e7bd45dd98ca748e21274c8bec2b472e639e89488a35b5407c67c34479ce61f070b8d407cfcb3cd1bbb8599ebabc +MISC ChangeLog-2015 1711 SHA256 df0d19a9dbe16d9986585cc885dcbdf02a4701f594ae93e20022330a0c38ea0e SHA512 33ee06b468cd5baf75b9173f407381915bb05ca69cb36da5ccd9dde99ca3896dd69986fc0e6be0e9667f2024436a68d7af7593301f9ae71ef043587eb256a414 WHIRLPOOL 2c7d5233fee73081815b50d74b02e3106952896d6648018699528814baeb1239f5ca02cade209c2443d24c2a7f4467a591d9583f8f3e9b61a872fe8321d8f918 +MISC metadata.xml 328 SHA256 8bef5370a80fa1f7c71efdb8e60c208adda614575ae818ab855cf654c32fd366 SHA512 f072948c5fa85f421861f89938558cfd7d172ebbd0568b3d8a60610d2caa501b4bb022f70103e1634a2ae27cec8eb602896b5fa8824301722c1b42df6e43a62e WHIRLPOOL 905ad52fe0107bd82522f1bb6bb03bb96b415636fa3d76db2d1c7cc2a89d9040d182b4330651665cfe62e7378aaedee64e2b61424c0618fb6c54e0cbab6ed5d1 diff --git a/mail-filter/amavisd-milter/amavisd-milter-1.5.0-r1.ebuild b/mail-filter/amavisd-milter/amavisd-milter-1.5.0-r1.ebuild new file mode 100644 index 000000000000..35da9fce706b --- /dev/null +++ b/mail-filter/amavisd-milter/amavisd-milter-1.5.0-r1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit eutils + +DESCRIPTION="sendmail milter for amavisd-new" +HOMEPAGE="http://amavisd-milter.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="|| ( mail-filter/libmilter mail-mta/sendmail ) + mail-filter/amavisd-new" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch_user +} + +src_install() { + emake DESTDIR="${D}" install + + dodoc AUTHORS CHANGES INSTALL README TODO + + newinitd "${FILESDIR}/amavisd-milter.initd" amavisd-milter + newconfd "${FILESDIR}/amavisd-milter.confd" amavisd-milter +} diff --git a/mail-filter/amavisd-milter/amavisd-milter-1.5.0.ebuild b/mail-filter/amavisd-milter/amavisd-milter-1.5.0.ebuild new file mode 100644 index 000000000000..8f8126c5fe4f --- /dev/null +++ b/mail-filter/amavisd-milter/amavisd-milter-1.5.0.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +DESCRIPTION="sendmail milter for amavisd-new" +HOMEPAGE="http://amavisd-milter.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="|| ( mail-filter/libmilter mail-mta/sendmail ) + mail-filter/amavisd-new" +RDEPEND="${DEPEND}" + +src_install() { + emake DESTDIR="${D}" install + + dodoc AUTHORS CHANGES INSTALL README TODO + + newinitd "${FILESDIR}/amavisd-milter.initd" amavisd-milter + newconfd "${FILESDIR}/amavisd-milter.confd" amavisd-milter +} diff --git a/mail-filter/amavisd-milter/amavisd-milter-1.6.0-r1.ebuild b/mail-filter/amavisd-milter/amavisd-milter-1.6.0-r1.ebuild new file mode 100644 index 000000000000..157ccb629308 --- /dev/null +++ b/mail-filter/amavisd-milter/amavisd-milter-1.6.0-r1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit eutils + +DESCRIPTION="sendmail milter for amavisd-new" +HOMEPAGE="http://amavisd-milter.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="|| ( mail-filter/libmilter mail-mta/sendmail ) + mail-filter/amavisd-new" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}/${P}-policybank.patch" + epatch_user +} + +src_install() { + emake DESTDIR="${D}" install + + dodoc AUTHORS CHANGES INSTALL README TODO + + newinitd "${FILESDIR}/amavisd-milter.initd" amavisd-milter + newconfd "${FILESDIR}/amavisd-milter.confd" amavisd-milter +} diff --git a/mail-filter/amavisd-milter/amavisd-milter-1.6.0.ebuild b/mail-filter/amavisd-milter/amavisd-milter-1.6.0.ebuild new file mode 100644 index 000000000000..d0ad1d5fa9ff --- /dev/null +++ b/mail-filter/amavisd-milter/amavisd-milter-1.6.0.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit eutils + +DESCRIPTION="sendmail milter for amavisd-new" +HOMEPAGE="http://amavisd-milter.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="|| ( mail-filter/libmilter mail-mta/sendmail ) + mail-filter/amavisd-new" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch_user +} + +src_install() { + emake DESTDIR="${D}" install + + dodoc AUTHORS CHANGES INSTALL README TODO + + newinitd "${FILESDIR}/amavisd-milter.initd" amavisd-milter + newconfd "${FILESDIR}/amavisd-milter.confd" amavisd-milter +} diff --git a/mail-filter/amavisd-milter/files/amavisd-milter-1.6.0-policybank.patch b/mail-filter/amavisd-milter/files/amavisd-milter-1.6.0-policybank.patch new file mode 100644 index 000000000000..afbdefc55c80 --- /dev/null +++ b/mail-filter/amavisd-milter/files/amavisd-milter-1.6.0-policybank.patch @@ -0,0 +1,20 @@ +--- amavisd-milter/mlfi.c 22 Apr 2013 00:36:12 -0000 1.60 ++++ amavisd-milter/mlfi.c 13 Jan 2015 17:00:47 -0000 +@@ -695,14 +695,14 @@ + l = 0; + *mlfi->mlfi_amabuf = '\0'; + if ((policybank_from_daemon_name == 1) && (mlfi->mlfi_daemon_name != NULL)) { +- l += snprintfcat(0, mlfi->mlfi_amabuf, mlfi->mlfi_amabuf_length, ++ l += snprintfcat(l, mlfi->mlfi_amabuf, mlfi->mlfi_amabuf_length, + "%s", mlfi->mlfi_daemon_name); + } + if (auth_type != NULL) { + if (l > 0) { +- l += snprintfcat(0, mlfi->mlfi_amabuf, mlfi->mlfi_amabuf_length, ","); ++ l += snprintfcat(l, mlfi->mlfi_amabuf, mlfi->mlfi_amabuf_length, ","); + } +- l += snprintfcat(0, mlfi->mlfi_amabuf, mlfi->mlfi_amabuf_length, ++ l += snprintfcat(l, mlfi->mlfi_amabuf, mlfi->mlfi_amabuf_length, + "SMTP_AUTH,SMTP_AUTH_%s", auth_type); + if (auth_ssf != NULL && *auth_ssf != '\0') { + l += snprintfcat(l, mlfi->mlfi_amabuf, mlfi->mlfi_amabuf_length, diff --git a/mail-filter/amavisd-milter/files/amavisd-milter.confd b/mail-filter/amavisd-milter/files/amavisd-milter.confd new file mode 100644 index 000000000000..f2b0736851af --- /dev/null +++ b/mail-filter/amavisd-milter/files/amavisd-milter.confd @@ -0,0 +1,14 @@ +# /etc/conf.d/amavisd-milter +# Check amavisd-milter man page for more options. + +# Unix domain socket locations +SOCKET="/var/amavis/amavisd-milter.sock" +AM_SOCKET="/var/amavis/amavisd.sock" + +# Working directory +AM_TMP="/var/amavis/tmp" + +# Pid file location +PIDFILE="/var/amavis/amavisd-milter.pid" + +DOPTIONS="-s $SOCKET -p $PIDFILE -S $AM_SOCKET -w $AM_TMP" diff --git a/mail-filter/amavisd-milter/files/amavisd-milter.initd b/mail-filter/amavisd-milter/files/amavisd-milter.initd new file mode 100644 index 000000000000..68652d6be3e7 --- /dev/null +++ b/mail-filter/amavisd-milter/files/amavisd-milter.initd @@ -0,0 +1,29 @@ +#!/sbin/openrc-run +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +NAME="amavisd-milter" +DAEMON="/usr/sbin/${NAME}" + +depend() { + use logger dns amavis sendmail +} + +start() { + ebegin "Starting ${NAME}" + start-stop-daemon --start --quiet --exec "${DAEMON}" -p "${PIDFILE}" --user amavis -- ${DOPTIONS} + eend $? "Failed to start ${NAME}" +} + +stop() { + ebegin "Stopping ${NAME}" + start-stop-daemon --stop --name "${NAME}" + eend $? "Failed to stop ${NAME}" +} + +restart() { + svc_stop + # needed to avoid potential mi_stop errors + sleep 4 + svc_start +} diff --git a/mail-filter/amavisd-milter/metadata.xml b/mail-filter/amavisd-milter/metadata.xml new file mode 100644 index 000000000000..f71201342337 --- /dev/null +++ b/mail-filter/amavisd-milter/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>net-mail@gentoo.org</email> + <name>Net-Mail</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">amavisd-milter</remote-id> + </upstream> +</pkgmetadata> |