summaryrefslogtreecommitdiff
path: root/mail-filter/amavisd-new
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-03-03 13:42:34 +0000
committerV3n3RiX <venerix@redcorelinux.org>2019-03-03 13:42:34 +0000
commit066d27181e9a797ad9f8fc43b49fc9a10ff2f707 (patch)
tree3cb05783d73b2c33589ba305144a31c718e123cd /mail-filter/amavisd-new
parent16449a80e28af2209916cc66d19c9a44ca2b90d9 (diff)
gentoo resync : 03.03.2019
Diffstat (limited to 'mail-filter/amavisd-new')
-rw-r--r--mail-filter/amavisd-new/Manifest6
-rw-r--r--mail-filter/amavisd-new/amavisd-new-2.11.0-r3.ebuild180
-rw-r--r--mail-filter/amavisd-new/files/amavis-mc.initd17
-rw-r--r--mail-filter/amavisd-new/files/amavisd-snmp.initd31
-rw-r--r--mail-filter/amavisd-new/files/amavisd.initd-r144
-rw-r--r--mail-filter/amavisd-new/files/amavisd.service22
6 files changed, 0 insertions, 300 deletions
diff --git a/mail-filter/amavisd-new/Manifest b/mail-filter/amavisd-new/Manifest
index 8278f8a4787b..0ed9b4df30f2 100644
--- a/mail-filter/amavisd-new/Manifest
+++ b/mail-filter/amavisd-new/Manifest
@@ -1,15 +1,9 @@
-AUX amavis-mc.initd 384 BLAKE2B bc481913a052855add95b0149177754e95742bcafe70b3e44699b2765126d401bb6d406ca09f2252f768b2b8354209fdb35fb9d5c64f6749c83c1d5ca1e52767 SHA512 96bb67ce2088c2c4b3187d55040db4ef9f281506a368ceca54df3b90d3e9c6e8c8be96c8010c581c7b2fc75e8439892db800b361da75ed9549a89d94cf7d95df
AUX amavis-mc.initd-r1 492 BLAKE2B b2bafdecd2d57ca52216154def014596f31670300510b0d2d049a4790ee3cc5a29c339ca8b7bb27503d0671b028d9da7d1ddadc662cabae18cac2a659ce2b676 SHA512 66d6364e12a0e71184682bfd35bdd1004c0cd6ee634936da8888b49f21d6c506e0645eabf8ae53ca08dccd9081f9753d63951258ccee8abd9fabf7d28233c533
AUX amavisd-2.11.0-dkim.patch 428 BLAKE2B f9c1bcab637febaf0546f204db0260cb7dc6bc35e27092545f99fb13cb2de27638a3cb04177de6dcb406c216a1168f44141e477f460eced830ba4376581005af SHA512 85628ad2b9c1cde478b579865d414fb941798aafe8968d26af5ef9dddf0f9ec4a3ed1e2077a46ee0632a9ce9be159ad9696badad35a1117cb7437c2ab0c4a973
AUX amavisd-snmp-subagent-zmq.initd 911 BLAKE2B 7cb247978f70d1b7468919b1df3f2e147b4ca48c6748401c6621d1db7b326981b513b0f02fce582052fdf6a0d5e8b6d55cab52198e262a673802626769050edd SHA512 846ed4622417657f7bc3dc5fa5d9b361dddfe7a13753dab7e8b2328a09dc9c21800c4cd990bc5dc466945ef857861413b8e5a8e726a40f0fa1831c509755e60b
AUX amavisd-snmp-subagent.initd 890 BLAKE2B ccc1c91547775737676449765e90c12b70ff068ff8283e7bb8a55e7e568b30bb2b311f210ba34d932887476cda6114e204cb1535c76c5af739842ae283272363 SHA512 de18fbf19135625882e7c09753142f6cb9ef8ef74caa339201d0da338e0bace4e3626c8ad2bb1ad0f63f73b5d70e4cc156cc93a9484d6a90266a9b204d9a7d7e
-AUX amavisd-snmp.initd 692 BLAKE2B b47671b5e8962a151cda0369bf13eba302e37e2f014fddff63f1a1d706868cd14d82c9141a79f8d123fb50cd95251f45407a6bb884398899e456dcf972bc37d0 SHA512 0e8513f7bfb03ae6d28190edd0f4f59b87f81b412b68dcfa3c91d77fd138d4e92ff6b36864bb590d214c08d9f73ec5de694e5fbc1b7e1d27ae0e532f052e3910
-AUX amavisd.initd-r1 710 BLAKE2B 46d484e167e45f5a5772373a4d636727ceda2feecf2e6260c737d513f1d7fb563b069c5e79a28459a6c75fd382cf106a260bd4d94c7b0c76bfca7dbf74ac30ef SHA512 0c45276d4b487c9550b36a56e1e296a401fb46985dafe1227bf70ec840fc4a255e959026ef31dffbd0719ebbcec064619e096602ab32da2b95776030772878de
AUX amavisd.initd-r2 1594 BLAKE2B b778d21239440b6b01a0860f69b1363d57cc0e241a86501131cbafb563b77a58828c5801b86b5419c1e04eeaa85eeecd087f37394bfec2dc69a466c45c8155fa SHA512 67414b2d5977d74a1b613e8a3478a9e1f2a60ba29685c219db1cc48ead6fcf94e93a2d5897768b7720d5db352028c2eca89265bb1e2520b2f10ae011db200b65
-AUX amavisd.service 459 BLAKE2B 66648cbc40345ae57c5934dc5377c7c1fb6220c591904dce8685123772ef3ecff2827105dcd0b52336700a0e16f593480446991690f27cf6a8a3714ed593fb7e SHA512 6f196484fc546e16f319abfcd171a68826da35813cc477a572c79594b0bb5e0f8f61370dba30af690be6d064e48f07139b6b0b7f6024dbbfb820547d8bc6998e
AUX amavisd.service-r1 433 BLAKE2B 8e61e95cfdadb37afec0040f87eb67745ea6aae766ca07b5eebfefc90e40ceba267028c8bf51e5208f198001a05edaef326d0a8ff23159a4d705f191c48c3753 SHA512 9696d50ab845d067e1289af8525c0ee3a8d55b4617af6f4d146d4844c9667b63886955145bea33a2980ed153210da69fa3747451c337075ff4ca500abafc0c7a
DIST amavis-amavisd-new-2.11.1.tar.gz 1093467 BLAKE2B 1e43ddea86ff269b02cbbcd125d913c51b66728b1063cde6ca3f3f24f1bd36f9f3c7f51a8baf509d2aca0d41a07a00bb9abe08dd70724391c552634715d01a75 SHA512 6ef291868908bd13d6ce913f5c8c3898b35eba490877e8eded3951a32be7549145df5db1409f124a3631ec88dd7eeb9457ce2b063ae3e3bccd76cc2a9b8741ae
-DIST amavisd-new-2.11.0.tar.xz 780548 BLAKE2B 59cea5219a737275411c08c7d137ff2109ebbfee8f5f567d80e0cd73cfbb22887dd186383bfd02ad9880e099e0c06b829de43b9e12dbc3151813533166e51654 SHA512 a33292c976abf54db9475392069658c926e7a6f11a4970bbe353b34b3343388bc83b40eda4729f8efa735a3a6e23fd1ed83487f6f7ccf1e9f0903220e6d26957
-EBUILD amavisd-new-2.11.0-r3.ebuild 4605 BLAKE2B 5e08b390567ea546fa4bb7ab8371dabcef91cb0c39d2ff87cfab4580f2f878c3a066f4d607fb57f214c9b4e837c079ecce80157662df805768f2f1e3db33e469 SHA512 0e349d6bf27c0492688b3715270dcc4e49d2ce2b2050a08d7f8b8854981752efa32361c661982e3eec083efb571a0fa831cba6d040f9799d1facee4b59fa893a
EBUILD amavisd-new-2.11.1-r3.ebuild 5198 BLAKE2B 457f30c228dc83915c5862178e1f7d8320f111f1b4c236b8f9a3cc6dbc7e7e5098b0bd136d54f16f2fad15c4442ee477bdd09ba86a2e6ab172cdc8453f746ff1 SHA512 079de83758024ea385e85565d893b16aad985ed8aec45e9348b86793a1f9c9f2af05454dc15f6ddda16df35f50333a23ffce184cf0460a7d243773c145d30bb0
MISC metadata.xml 845 BLAKE2B 5ea031bb47ac8f1ca3cb703ed6e6bcd94fa63ea275874c616e3c24c5802f0f2f4b2443b379b62e708eb6ea075a0950116722319cc08023b20d7152cbabce512e SHA512 4409524d4819357253b63c143f0aa4b760ffe0b4ed22d30d28632f86ee2731c7e84a95131016a21ab43a63c32ea35cfbe741010a07f45e8d21fe05f020387228
diff --git a/mail-filter/amavisd-new/amavisd-new-2.11.0-r3.ebuild b/mail-filter/amavisd-new/amavisd-new-2.11.0-r3.ebuild
deleted file mode 100644
index 7ccaa3f1f4dd..000000000000
--- a/mail-filter/amavisd-new/amavisd-new-2.11.0-r3.ebuild
+++ /dev/null
@@ -1,180 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-inherit systemd user
-
-MY_P="${P/_/-}"
-DESCRIPTION="High-performance interface between the MTA and content checkers"
-HOMEPAGE="https://www.ijs.si/software/amavisd/"
-SRC_URI="https://www.ijs.si/software/amavisd/${MY_P}.tar.xz"
-PORTAGE_DOHTML_WARN_ON_SKIPPED_FILES=yes
-
-LICENSE="GPL-2 BSD-2"
-SLOT="0"
-KEYWORDS="amd64 hppa ~ppc ppc64 sparc x86"
-IUSE="clamav courier dkim ldap mysql postgres qmail razor snmp spamassassin zmq"
-
-DEPEND=">=sys-apps/sed-4
- >=dev-lang/perl-5.10.0"
-
-RDEPEND="${DEPEND}
- >=sys-apps/coreutils-5.0-r3
- app-arch/cpio
- app-arch/gzip
- app-arch/bzip2
- app-arch/arc
- app-arch/cabextract
- app-arch/freeze
- app-arch/lha
- app-arch/lrzip
- app-arch/lzop
- app-arch/ncompress
- app-arch/p7zip
- app-arch/pax
- app-arch/unarj
- app-arch/unrar
- app-arch/xz-utils
- app-arch/zoo
- net-mail/ripole
- >=dev-perl/Archive-Zip-1.14
- >=virtual/perl-IO-Compress-1.35
- >=virtual/perl-Compress-Raw-Zlib-2.017
- net-mail/tnef
- virtual/perl-MIME-Base64
- >=dev-perl/MIME-tools-5.415
- >=dev-perl/MailTools-1.58
- >=dev-perl/Net-Server-0.91
- virtual/perl-Digest-MD5
- dev-perl/IO-stringy
- virtual/perl-IO-Socket-IP
- >=virtual/perl-Time-HiRes-1.49
- dev-perl/Unix-Syslog
- dev-perl/Net-LibIDN
- sys-apps/file
- >=sys-libs/db-4.4.20
- dev-perl/BerkeleyDB
- dev-perl/Convert-BinHex
- >=dev-perl/Mail-DKIM-0.31
- virtual/perl-File-Temp
- dev-perl/Net-SSLeay
- dev-perl/IO-Socket-SSL
- virtual/mta
- clamav? ( app-antivirus/clamav )
- ldap? ( >=dev-perl/perl-ldap-0.33 )
- mysql? ( dev-perl/DBD-mysql )
- postgres? ( dev-perl/DBD-Pg )
- razor? ( mail-filter/razor )
- snmp? ( net-analyzer/net-snmp[perl] )
- spamassassin? ( mail-filter/spamassassin dev-perl/Image-Info )
- zmq? ( dev-perl/ZMQ-LibZMQ3 )"
-
-AMAVIS_ROOT="/var/amavis"
-S="${WORKDIR}/${MY_P}"
-
-src_prepare() {
- if use courier ; then
- eapply -p0 amavisd-new-courier.patch
- fi
-
- if use qmail ; then
- eapply -p0 amavisd-new-qmqpqq.patch
- fi
-
- sed -i \
- -e '/daemon/s/vscan/amavis/' \
- -e "s:'/var/virusmails':\"\$MYHOME/quarantine\":" \
- "${S}/amavisd.conf" "${S}/amavis-mc" || die "missing conf file"
-
- if ! use dkim ; then
- sed -i -e '/enable_dkim/s/1/0/' "${S}/amavisd.conf" \
- || die "missing conf file - dkim"
- fi
-
- if use zmq ; then
- sed -i -e '/enable_zmq/s/# //' "${S}/amavisd.conf" \
- || die "missing conf file - zmq"
- fi
-
- if ! use spamassassin ; then
- sed -i -e \
- "/^#[[:space:]]*@bypass_spam_checks_maps[[:space:]]*=[[:space:]]*(1)/s/^#//" \
- "${S}/amavisd.conf" || die "missing conf file - sa"
- fi
- eapply_user
-}
-
-src_install() {
- dosbin amavisd amavisd-agent amavisd-nanny amavisd-release \
- amavisd-signer amavisd-status
- dobin p0f-analyzer.pl amavisd-submit
-
- if use snmp ; then
- dosbin amavisd-snmp-subagent
- use zmq && dosbin amavisd-snmp-subagent-zmq
- dodoc AMAVIS-MIB.txt
- newinitd "${FILESDIR}"/amavisd-snmp.initd amavisd-snmp
- fi
-
- if use zmq ; then
- dosbin amavis-services amavis-mc
- newinitd "${FILESDIR}"/amavis-mc.initd amavis-mc
- fi
-
- insinto /etc
- insopts -m0640
- doins amavisd.conf
-
- newinitd "${FILESDIR}/amavisd.initd-r1" amavisd
-
- systemd_dounit "${FILESDIR}/amavisd.service"
- use clamav || sed -i -e '/Wants=clamd/d' "${ED}"/usr/lib/systemd/system/amavisd.service
- use spamassassin || sed -i -e '/Wants=spamassassin/d' "${ED}"/usr/lib/systemd/system/amavisd.service
-
- keepdir "${AMAVIS_ROOT}"
- keepdir "${AMAVIS_ROOT}/db"
- keepdir "${AMAVIS_ROOT}/quarantine"
- keepdir "${AMAVIS_ROOT}/tmp"
- keepdir "${AMAVIS_ROOT}/var"
-
- dodoc AAAREADME.first INSTALL MANIFEST RELEASE_NOTES TODO \
- amavisd.conf-default amavisd-custom.conf
-
- docinto README_FILES
- dodoc README_FILES/README*
- dodoc -r README_FILES/*.{html,css}
- docinto README_FILES/images
- dodoc README_FILES/images/*.png
- docinto README_FILES/images/callouts
- dodoc README_FILES/images/callouts/*.png
-
- docinto test-messages
- dodoc test-messages/README
- dodoc test-messages/sample.tar.gz.compl
-
- if use ldap ; then
- dodir /etc/openldap/schema
- insinto /etc/openldap/schema
- insopts -o root -g root -m 644
- newins LDAP.schema ${PN}.schema || die
- fi
-}
-
-pkg_preinst() {
- enewgroup amavis
- enewuser amavis -1 -1 "${AMAVIS_ROOT}" amavis
- if use razor ; then
- if [ ! -d "${ROOT}${AMAVIS_ROOT}/.razor" ] ; then
- elog "Setting up initial razor config files..."
-
- razor-admin -create -home="${D}/${AMAVIS_ROOT}/.razor"
- sed -i -e "s:debuglevel\([ ]*\)= .:debuglevel\1= 0:g" \
- "${D}/${AMAVIS_ROOT}/.razor/razor-agent.conf" || die
- fi
- fi
-}
-
-pkg_postinst() {
- chown root:amavis "${ROOT}/etc/amavisd.conf"
- chown -R amavis:amavis "${ROOT}/${AMAVIS_ROOT}"
-}
diff --git a/mail-filter/amavisd-new/files/amavis-mc.initd b/mail-filter/amavisd-new/files/amavis-mc.initd
deleted file mode 100644
index 84658da9a4e2..000000000000
--- a/mail-filter/amavisd-new/files/amavis-mc.initd
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-pidfile="/run/amavis/amavis-mc.pid"
-command="/usr/sbin/amavis-mc"
-command_args="${amavis_mc_args} -P ${pidfile}"
-start_stop_daemon_args="--interpreted"
-
-depend() {
- use logger
- before amavisd-new snmpd
-}
-
-start_pre() {
- checkpath -d -o amavis /run/amavis
-}
diff --git a/mail-filter/amavisd-new/files/amavisd-snmp.initd b/mail-filter/amavisd-new/files/amavisd-snmp.initd
deleted file mode 100644
index fc23a1fc1019..000000000000
--- a/mail-filter/amavisd-new/files/amavisd-snmp.initd
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-name="amavisd-snmp"
-pidfile="/run/amavis/${name}.pid"
-command="/usr/sbin/${name}-subagent"
-command_args="${amavis_snmp_args} -P ${pidfile}"
-start_stop_daemon_args="--interpreted"
-
-update_command() {
- if [[ -x ${command}-zmq && ! $amavisd_snmp_command ]]; then
- command="${command}-zmq"
- elif [[ $amavisd_snmp_command ]]; then
- command="$amavisd_snmp_command"
- fi
-}
-
-depend() {
- use logger
- before amavisd-new snmpd
- update_command
- if [[ ${command##*-} == "zmq" ]]; then
- need amavis-mc
- fi
-}
-
-start_pre() {
- update_command
- checkpath -d -o amavis /run/amavis
-}
diff --git a/mail-filter/amavisd-new/files/amavisd.initd-r1 b/mail-filter/amavisd-new/files/amavisd.initd-r1
deleted file mode 100644
index d772433aa418..000000000000
--- a/mail-filter/amavisd-new/files/amavisd.initd-r1
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-extra_started_commands="reload"
-extra_commands="debug debug_sa"
-
-prog="/usr/sbin/amavisd"
-progname="amavisd-new"
-
-depend() {
- use net logger antivirus snmpd
- before mta
-}
-
-start() {
- ebegin "Starting ${progname}"
- "${prog}" start
- eend $?
-}
-
-stop() {
- ebegin "Stopping ${progname}"
- "${prog}" stop 1>/dev/null
- eend $?
-}
-
-reload() {
- ebegin "Reloading ${progname}"
- "${prog}" reload 1>/dev/null
- eend $?
-}
-
-debug() {
- ebegin "Starting ${progname} in debug mode"
- "${prog}" debug
- eend $?
-}
-
-debug_sa() {
- ebegin "Starting ${progname} in debug-sa mode"
- "${prog}" debug-sa
- eend $?
-}
diff --git a/mail-filter/amavisd-new/files/amavisd.service b/mail-filter/amavisd-new/files/amavisd.service
deleted file mode 100644
index c53c38ac1632..000000000000
--- a/mail-filter/amavisd-new/files/amavisd.service
+++ /dev/null
@@ -1,22 +0,0 @@
-[Unit]
-Description=Amavisd Daemon
-Wants=postfix.service
-Wants=spamassassin.service
-Wants=clamd.service
-After=network.target
-
-[Service]
-User=amavis
-Group=amavis
-ExecStart=/usr/sbin/amavisd -c /etc/amavisd.conf foreground
-ExecReload=/usr/sbin/amavisd -c /etc/amavisd.conf reload
-PrivateTmp=true
-CapabilityBoundingSet=
-ProtectSystem=full
-NoNewPrivileges=true
-PrivateDevices=true
-ProtectHome=true
-MemoryDenyWriteExecute=true
-
-[Install]
-WantedBy=multi-user.target