diff options
author | Benjamin Smee <strerror@gentoo.org> | 2007-01-10 21:21:56 +0000 |
---|---|---|
committer | Benjamin Smee <strerror@gentoo.org> | 2007-01-10 21:21:56 +0000 |
commit | 57eff66fac9605c6e8d0f4b750147ad0a87ac02a (patch) | |
tree | 20ad24a75731b5cfd59e68995ccd59e92ca11b45 /mail-filter | |
parent | Add missing email address for herd with name != alias. (diff) | |
download | historical-57eff66fac9605c6e8d0f4b750147ad0a87ac02a.tar.gz historical-57eff66fac9605c6e8d0f4b750147ad0a87ac02a.tar.bz2 historical-57eff66fac9605c6e8d0f4b750147ad0a87ac02a.zip |
Initial import. Thanks to those who contributed to bug #112261
Package-Manager: portage-2.1.1-r2
Diffstat (limited to 'mail-filter')
-rw-r--r-- | mail-filter/policyd/Manifest | 28 | ||||
-rw-r--r-- | mail-filter/policyd/files/digest-policyd-1.80 | 3 | ||||
-rw-r--r-- | mail-filter/policyd/files/policyd-cleanup.cron | 2 | ||||
-rw-r--r-- | mail-filter/policyd/files/policyd-makefile.patch | 14 | ||||
-rw-r--r-- | mail-filter/policyd/files/policyd.confd | 2 | ||||
-rw-r--r-- | mail-filter/policyd/files/policyd.rc | 22 | ||||
-rw-r--r-- | mail-filter/policyd/metadata.xml | 8 | ||||
-rw-r--r-- | mail-filter/policyd/policyd-1.80.ebuild | 76 |
8 files changed, 155 insertions, 0 deletions
diff --git a/mail-filter/policyd/Manifest b/mail-filter/policyd/Manifest new file mode 100644 index 000000000000..3539992283a2 --- /dev/null +++ b/mail-filter/policyd/Manifest @@ -0,0 +1,28 @@ +AUX policyd-cleanup.cron 59 RMD160 870d699c4a4080c2295101f6530825e78b43b685 SHA1 e98eb7ee9e130aadced27dbf3f9c50f40704ee31 SHA256 b7bd9b05d72872e9cc6d46f2233e060109471acb1a744983cfa8e5643597e5b7 +MD5 17f953b3f2f2cf6f9ff62e5221d58edc files/policyd-cleanup.cron 59 +RMD160 870d699c4a4080c2295101f6530825e78b43b685 files/policyd-cleanup.cron 59 +SHA256 b7bd9b05d72872e9cc6d46f2233e060109471acb1a744983cfa8e5643597e5b7 files/policyd-cleanup.cron 59 +AUX policyd-makefile.patch 400 RMD160 319cd9c508d9314f7b908a4e5defa6293d6b300d SHA1 d5a1ad64a6f08f5b374d33e03fe71bcf390495f1 SHA256 e5ef0eb74eb27d4ef25df7b96e0461ca6c770493de40dba1e796ba232d1bf7fb +MD5 770269ac275e6ec037ac010b33c2643b files/policyd-makefile.patch 400 +RMD160 319cd9c508d9314f7b908a4e5defa6293d6b300d files/policyd-makefile.patch 400 +SHA256 e5ef0eb74eb27d4ef25df7b96e0461ca6c770493de40dba1e796ba232d1bf7fb files/policyd-makefile.patch 400 +AUX policyd.confd 61 RMD160 f024acf0f82c3612f05c36dcc8f5f1059bcfc65d SHA1 08e1a533b684b91d8229edba1fdfef0c8be1fe4b SHA256 1b5e38189d93e2348d0633bd1f3399020008ef9dfb94cf11b13ab05ecbc3382c +MD5 355a15b442deb88f12160230af569e03 files/policyd.confd 61 +RMD160 f024acf0f82c3612f05c36dcc8f5f1059bcfc65d files/policyd.confd 61 +SHA256 1b5e38189d93e2348d0633bd1f3399020008ef9dfb94cf11b13ab05ecbc3382c files/policyd.confd 61 +AUX policyd.rc 555 RMD160 c80d2a7f265ae94819b6a2cd41b7ad5db87ee800 SHA1 d654813bb21dd5467a4ba300a540a203515d906a SHA256 2a97ce38b4032e5c6328dd9117377c29e816870c532cd5d856b7fd198f620c08 +MD5 d9654b7ad939b6b2d86b1782cebfafe4 files/policyd.rc 555 +RMD160 c80d2a7f265ae94819b6a2cd41b7ad5db87ee800 files/policyd.rc 555 +SHA256 2a97ce38b4032e5c6328dd9117377c29e816870c532cd5d856b7fd198f620c08 files/policyd.rc 555 +DIST policyd-v1.80.tar.gz 67138 RMD160 fa9ba5f9208cb707ee7f9b447f24340f832cd8cb SHA1 05fc8526c145bed97908144ee7afc773594d67aa SHA256 ce569228d6b6f362a25ffedc3f4458a64bf6f73a9855c6f5b33823d9dfc4e3cd +EBUILD policyd-1.80.ebuild 2044 RMD160 22ce40beaed903f0e23407d24b1c81a1c0e8d19d SHA1 fc11064781d27b1bdf8d94c3e1990e23cec06645 SHA256 e8a026bb578cac9c99a8a6b85c68eae12483b10b3c5312ec4609dafc5f4daba9 +MD5 3b580b685c07dc81c82a5bf84254ac09 policyd-1.80.ebuild 2044 +RMD160 22ce40beaed903f0e23407d24b1c81a1c0e8d19d policyd-1.80.ebuild 2044 +SHA256 e8a026bb578cac9c99a8a6b85c68eae12483b10b3c5312ec4609dafc5f4daba9 policyd-1.80.ebuild 2044 +MISC metadata.xml 225 RMD160 e2279613286f647c06b1cc2c68cf5e2e9e187dbb SHA1 11e6b2c5f4c859047a3a402e9cfb8d2a17402277 SHA256 6f36cf15f3484d86a47da53a912b8565d0068f9b16df08b3c8653381177a4969 +MD5 a1cb31686d0a059a1b35426b67ba78e8 metadata.xml 225 +RMD160 e2279613286f647c06b1cc2c68cf5e2e9e187dbb metadata.xml 225 +SHA256 6f36cf15f3484d86a47da53a912b8565d0068f9b16df08b3c8653381177a4969 metadata.xml 225 +MD5 d71771c9cbc1ec578d46e0e960b06ead files/digest-policyd-1.80 238 +RMD160 41a2916989ad6ed0e41567630adc77ac52408869 files/digest-policyd-1.80 238 +SHA256 0e88f2ba921f281f8988e5740ead90a461ad5311e5183c58fada03a0694c0fae files/digest-policyd-1.80 238 diff --git a/mail-filter/policyd/files/digest-policyd-1.80 b/mail-filter/policyd/files/digest-policyd-1.80 new file mode 100644 index 000000000000..b2bcab3268e5 --- /dev/null +++ b/mail-filter/policyd/files/digest-policyd-1.80 @@ -0,0 +1,3 @@ +MD5 3d6caea3c5ef4a1b97816180a21a94f3 policyd-v1.80.tar.gz 67138 +RMD160 fa9ba5f9208cb707ee7f9b447f24340f832cd8cb policyd-v1.80.tar.gz 67138 +SHA256 ce569228d6b6f362a25ffedc3f4458a64bf6f73a9855c6f5b33823d9dfc4e3cd policyd-v1.80.tar.gz 67138 diff --git a/mail-filter/policyd/files/policyd-cleanup.cron b/mail-filter/policyd/files/policyd-cleanup.cron new file mode 100644 index 000000000000..fef8d275bd63 --- /dev/null +++ b/mail-filter/policyd/files/policyd-cleanup.cron @@ -0,0 +1,2 @@ +#!/bin/bash +/usr/sbin/policyd_cleanup -c /etc/policyd.conf diff --git a/mail-filter/policyd/files/policyd-makefile.patch b/mail-filter/policyd/files/policyd-makefile.patch new file mode 100644 index 000000000000..73c1da30db17 --- /dev/null +++ b/mail-filter/policyd/files/policyd-makefile.patch @@ -0,0 +1,14 @@ +--- Makefile 2006-09-04 22:05:27.000000000 +0200 ++++ Makefile 2006-09-04 22:08:54.000000000 +0200 +@@ -15,9 +15,8 @@ + lib += -L /usr/local/mysql + + +-CC := gcc +-CPPFLAGS := -O $(inc) +-CFLAGS := -g -W -Wall -DMAXFDS=4096 ++CPPFLAGS := $(inc) ${CPPFLAGS} ++CFLAGS := -g -W -Wall -DMAXFDS=`ulimit -n` ${CFLAGS} + OS_NAME := $(shell uname | tr [A-Z] [a-z]) + LDLIBS = $(lib) -lmysqlclient -lz + diff --git a/mail-filter/policyd/files/policyd.confd b/mail-filter/policyd/files/policyd.confd new file mode 100644 index 000000000000..1fc697d451f2 --- /dev/null +++ b/mail-filter/policyd/files/policyd.confd @@ -0,0 +1,2 @@ +# Config file for policyd +POLICYD_CONFIG="/etc/policyd.conf" diff --git a/mail-filter/policyd/files/policyd.rc b/mail-filter/policyd/files/policyd.rc new file mode 100644 index 000000000000..3ba2c979b055 --- /dev/null +++ b/mail-filter/policyd/files/policyd.rc @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/policyd/files/policyd.rc,v 1.1 2007/01/10 21:21:56 strerror Exp $ + +depend() { + before mta + provide postfix_greylist +} + +start() { + ebegin "Starting policyd" + start-stop-daemon --name policyd --start --quiet --exec /usr/sbin/policyd \ + -- -c ${POLICYD_CONFIG} + eend $? +} + +stop() { + ebegin "Stopping policyd" + start-stop-daemon --stop --quiet --pidfile /var/run/policyd.pid + eend $? +} diff --git a/mail-filter/policyd/metadata.xml b/mail-filter/policyd/metadata.xml new file mode 100644 index 000000000000..ed2b8ca289e4 --- /dev/null +++ b/mail-filter/policyd/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>net-mail</herd> +<maintainer> + <email>strerror@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/mail-filter/policyd/policyd-1.80.ebuild b/mail-filter/policyd/policyd-1.80.ebuild new file mode 100644 index 000000000000..e75f362f61ef --- /dev/null +++ b/mail-filter/policyd/policyd-1.80.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/policyd/policyd-1.80.ebuild,v 1.1 2007/01/10 21:21:56 strerror Exp $ + +inherit eutils + +DESCRIPTION="Policy daemon for postfix and other MTAs" +HOMEPAGE="http://policyd.sf.net/" + +# This is not available through SF mirrors +SRC_URI="http://policyd.sourceforge.net/${PN}-v${PV}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" +DEPEND="dev-db/mysql + dev-libs/openssl" + +MY_P=${PN}-v${PV} +S="${WORKDIR}/${MY_P}" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${PN}-makefile.patch" + + ebegin "Applying config patches" + sed -i -e s:UID=0:UID=65534:g \ + -e s:GID=0:GID=65534:g \ + -e s:DAEMON=0:DAEMON=1:g \ + -e s:DEBUG=3:DEBUG=0:g \ + -e s:DATABASE_KEEPALIVE=0:DATABASE_KEEPALIVE=1:g \ + policyd.conf || "sed failed" + eend +} + +src_compile() { + emake build || "emake build failed" +} + +src_install() { + insopts -o root -g nobody -m 0750 + mv cleanup policyd_cleanup + mv stats policyd_stats + + dosbin policyd policyd_cleanup policyd_stats + + insopts -o root -g nobody -m 0640 + insinto /etc + doins policyd.conf + + insopts -o root -g nobody -m 0700 + exeinto /etc/cron.hourly + newexe "${FILESDIR}/${PN}-cleanup.cron" ${PN}-cleanup.cron + + dodoc Changelog.txt DATABASE.mysql License.txt README.txt doc/support.txt + + newinitd "${FILESDIR}/${PN}.rc" ${PN} + newconfd "${FILESDIR}/${PN}.confd" ${PN} +} + +pkg_postinst() { + einfo "You will need to create the database using the script provided in" + einfo "/usr/share/doc/${PF}/DATABASE.mysql.gz" + einfo "Read the mysql section of the README.txt for details." + einfo + einfo "To use policyd with postfix, update your /etc/postfix/main.cf file by adding" + einfo " check_policy_service inet:127.0.0.1:10031" + einfo "to your smtpd_recipient_restrictions line, or similar." + einfo + einfo "Also remember to start the daemon at boot:" + einfo " rc-update add policyd default" + einfo + einfo "Read the documentation for more info." +} + |