diff options
author | Eray Aslan <eras@gentoo.org> | 2011-04-25 09:52:07 +0000 |
---|---|---|
committer | Eray Aslan <eras@gentoo.org> | 2011-04-25 09:52:07 +0000 |
commit | 0e3860825db08ef52631e3968ed793418b9c6ced (patch) | |
tree | 3b820ab81ac29d5a032f98ed40ee9516eebc3c72 /mail-filter | |
parent | Correct patch for USE=ffmpeg, 327957; Fix for gcc-4.6 (diff) | |
download | gentoo-2-0e3860825db08ef52631e3968ed793418b9c6ced.tar.gz gentoo-2-0e3860825db08ef52631e3968ed793418b9c6ced.tar.bz2 gentoo-2-0e3860825db08ef52631e3968ed793418b9c6ced.zip |
Initial commit - thanks to Oleg Gawriloff bug #318853
(Portage version: 2.1.9.46/cvs/Linux x86_64)
Diffstat (limited to 'mail-filter')
-rw-r--r-- | mail-filter/amavisd-milter/ChangeLog | 10 | ||||
-rw-r--r-- | mail-filter/amavisd-milter/amavisd-milter-1.5.0.ebuild | 27 | ||||
-rw-r--r-- | mail-filter/amavisd-milter/files/amavisd-milter.confd | 14 | ||||
-rw-r--r-- | mail-filter/amavisd-milter/files/amavisd-milter.initd | 30 | ||||
-rw-r--r-- | mail-filter/amavisd-milter/metadata.xml | 7 |
5 files changed, 88 insertions, 0 deletions
diff --git a/mail-filter/amavisd-milter/ChangeLog b/mail-filter/amavisd-milter/ChangeLog new file mode 100644 index 000000000000..fb59eb6949a1 --- /dev/null +++ b/mail-filter/amavisd-milter/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for mail-filter/amavisd-milter +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/amavisd-milter/ChangeLog,v 1.1 2011/04/25 09:52:07 eras Exp $ + +*amavisd-milter-1.5.0 (25 Apr 2011) + + 25 Apr 2011; Eray Aslan <eras@gentoo.org> +amavisd-milter-1.5.0.ebuild, + +files/amavisd-milter.confd, +files/amavisd-milter.initd, +metadata.xml: + Initial commit - thanks to Oleg Gawriloff bug #318853 + 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..73658ad7437c --- /dev/null +++ b/mail-filter/amavisd-milter/amavisd-milter-1.5.0.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/amavisd-milter/amavisd-milter-1.5.0.ebuild,v 1.1 2011/04/25 09:52:07 eras Exp $ + +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-mta/sendmail + mail-filter/amavisd-new" +RDEPEND="${DEPEND}" + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + 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.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..8fb23baa9d21 --- /dev/null +++ b/mail-filter/amavisd-milter/files/amavisd-milter.initd @@ -0,0 +1,30 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/amavisd-milter/files/amavisd-milter.initd,v 1.1 2011/04/25 09:52:07 eras Exp $ + +NAME="amavisd-milter" +DAEMON="/usr/sbin/${NAME}" + +depend() { + use logger dns amavis sendmail +} + +start() { + ebegin "Starting ${NAME}" + start-stop-daemon --start --quiet --startas "${DAEMON}" -p "${PIDFILE}" --user amavis -c 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..3b7e86e0ab03 --- /dev/null +++ b/mail-filter/amavisd-milter/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>net-mail</herd> +<longdescription lang="en"> +</longdescription> +</pkgmetadata> |