Ver código fonte

Newer version of opendmarc is portage

Sergey Ilinykh 8 anos atrás
pai
commit
1063403f84

+ 0 - 30
mail-filter/opendmarc/ChangeLog

@@ -1,30 +0,0 @@
-# ChangeLog for mail-filter/opendmarc
-# Copyright 1999-2017 Gentoo Foundation; Distributed under the GPL v2
-# $Header: $
-
-*opendmarc-1.0.0-r1 (04 Nov 2012)
-
-  04 Nov 2012;  <slep@gentoo.org> +opendmarc-1.0.0-r1.ebuild:
-  add minimal use flag in opendmarc
-
-  28 Oct 2012;  <slep@gentoo.org> opendmarc-1.0.0.ebuild:
-  keyword ~x86 opendmarc
-
-*opendmarc-1.0.0 (28 Oct 2012)
-
-  28 Oct 2012;  <slep@gentoo.org> +opendmarc-1.0.0.ebuild,
-  -opendmarc-0.2.2.ebuild:
-  bump opendmarc
-
-  24 Oct 2012; <slep@gentoo.org> opendmarc-0.2.2.ebuild,
-  -files/configure_ac.patch:
-  drop unneded patch
-
-  23 Oct 2012; <slep@gentoo.org> opendmarc-0.2.2.ebuild,
-  +files/configure_ac.patch, +files/opendmarc.init:
-  add init script
-
-*opendmarc-0.2.2 (22 Oct 2012)
-
-  22 Oct 2012; <slep@gentoo.org> +opendmarc-0.2.2.ebuild, +metadata.xml:
-  initial commit

+ 0 - 1
mail-filter/opendmarc/Manifest

@@ -1 +0,0 @@
-DIST opendmarc-1.0.0.tar.gz 564871 SHA256 5e6e996d450729af14cf82873c5fc0bbafb845e6a52c5eb6666abee8baf70631 SHA512 124359b5c30fa58d7228853fb0f9c9520b097140d560636c458a4089f9db439e0ece0c6d3111c5987b3cd615b8b44f367c840f5d5e80d0da28bfae669ee35e9d WHIRLPOOL e708858da4563919a506d7a404d344ab596b2262a4f0aa84ec851e2113bd78f4158b2b343db0716626a097336e46a6c659663022e5e11c8ada13f4b867d9ddcc

+ 0 - 57
mail-filter/opendmarc/files/opendmarc.init

@@ -1,57 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-# Based on eras opendkim init script
-# Slepnoga aka A.Vinogradovs 2012.10.22
-
-CONFFILE=/etc/opendmarc/${SVCNAME}.conf
-
-depend() {
-	use mta logger net
-}
-
-check_cfg() {
-
-        PIDFILE=$(sed -ne 's/^[[:space:]]*PidFile[[:space:]]\+//p' "${CONFFILE}")
-        local PIDDIR="${PIDFILE%/*}"
-        if [ ! -d  "${PIDDIR}" ] ; then
-                checkpath -q -d -o milter:milter -m 0755 "${PIDDIR}" || return 1
-        fi
-        if [ ! -f "${CONFFILE}" ] ; then
-                eerror "Configuration file ${CONFFILE} is missing"
-                return 1
-        fi
-        if [ -z "${PIDFILE}" ] ; then
-                eerror "Configuration file needs PidFile setting - recommend adding 'PidFile /var/run/opendmarc/${SVCNAME}.pid' to ${CONFFILE}"
-                return 1
-        fi
-
-        if egrep -q '^[[:space:]]*Background[[:space:]]+no' "${CONFFILE}" ; then
-                eerror "${SVCNAME} service cannot run with Background key set to yes!"
-                return 1
-        fi
-}
-
-start() {
-        check_cfg || return 1
-
-        # Remove stalled Unix socket if no other process is using it
-        local UNIX_SOCKET=$(sed -ne 's/^[[:space:]]*Socket[[:space:]]\+\(unix\|local\)://p' "${CONFFILE}")
-
-        if [ -S "${UNIX_SOCKET}" ] && ! fuser -s "${UNIX_SOCKET}"; then
-                rm "${UNIX_SOCKET}"
-        fi
-
-        ebegin "Starting OpenDMARC"
-        start-stop-daemon --start --pidfile "${PIDFILE}" \
-                --exec /usr/sbin/opendmarc -- -c "${CONFFILE}"
-        eend $?
-}
-
-stop() {
-        check_cfg || return 1
-        ebegin "Stopping OpenDMARC"
-        start-stop-daemon --stop --pidfile "${PIDFILE}"
-        eend $?
-}

+ 0 - 8
mail-filter/opendmarc/metadata.xml

@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<maintainer type="person">
-	<email>andreis.vinogradovs@gmail.com</email>
-	<name>Andreis Vinogradovs</name>
-</maintainer>
-</pkgmetadata>

+ 0 - 66
mail-filter/opendmarc/opendmarc-1.0.0-r1.ebuild

@@ -1,66 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit eutils autotools-utils user
-
-DESCRIPTION="Open source DMARC implementation"
-HOMEPAGE="http://sourceforge.net/projects/opendmarc/"
-SRC_URI="mirror://sourceforge/project/opendmarc/${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="mysql +minimal"
-
-CDEPEND="
-	|| ( mail-mta/sendmail mail-filter/libmilter )
-	net-dns/libidn
-	mysql? ( dev-db/opendbx[mysql=] )
-	"
-
-RDEPEND="${CDEPEND}
-	sys-process/psmisc
-	!minimal? ( dev-perl/DBI
-		mysql? ( dev-perl/DBD-mysql )
-	)"
-
-DEPEND="${CDEPEND}"
-
-DOCS=( INSTALL README RELEASE_NOTES )
-
-pkg_setup() {
-	enewgroup milter
-	# mail-milter/spamass-milter creates milter user with this home directory
-	# For consistency reasons, milter user must be created here with this home
-	# directory
-	# even though this package doesn't need a home directory for this user
-	# (#280571)
-	enewuser milter -1 -1 /var/lib/milter milter
-}
-
-src_configure() {
-
-	local sqlbackend="--with-sql-backend=none"
-
-	if use mysql; then
-		sqlbackend=" --with-sql-backend=mysql "
-	fi
-
-	local myeconfargs=(
-		${sqlbackend}
-		--with-milter
-		)
-	autotools-utils_src_configure
-}
-
-src_install() {
-	autotools-utils_src_install
-	prune_libtool_files --all
-
-	newinitd "${FILESDIR}"/opendmarc.init opendmarc
-
-	insinto /etc/opendmarc
-	newins	"${D}"/usr/share/doc/${P}/opendmarc.conf.sample opendmarc.conf
-}

+ 0 - 64
mail-filter/opendmarc/opendmarc-1.0.0.ebuild

@@ -1,64 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit eutils autotools-utils user
-
-DESCRIPTION="Open source DMARC implementation"
-HOMEPAGE="http://sourceforge.net/projects/opendmarc/"
-SRC_URI="mirror://sourceforge/project/opendmarc/${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="mysql"
-
-CDEPEND="
-	|| ( mail-mta/sendmail mail-filter/libmilter )
-	net-dns/libidn
-	mysql? ( dev-db/opendbx[mysql=] )
-	"
-
-RDEPEND="${CDEPEND}
-	sys-process/psmisc
-	"
-
-DEPEND="${CDEPEND}"
-
-DOCS=( INSTALL README RELEASE_NOTES )
-
-pkg_setup() {
-	enewgroup milter
-	# mail-milter/spamass-milter creates milter user with this home directory
-	# For consistency reasons, milter user must be created here with this home
-	# directory
-	# even though this package doesn't need a home directory for this user
-	# (#280571)
-	enewuser milter -1 -1 /var/lib/milter milter
-}
-
-src_configure() {
-
-	local sqlbackend="--with-sql-backend=none"
-
-	if use mysql; then
-		sqlbackend=" --with-sql-backend=mysql "
-	fi
-
-	local myeconfargs=(
-		${sqlbackend}
-		--with-milter
-		)
-	autotools-utils_src_configure
-}
-
-src_install() {
-	autotools-utils_src_install
-	prune_libtool_files --all
-
-	newinitd "${FILESDIR}"/opendmarc.init opendmarc
-
-	insinto /etc/opendmarc
-	newins	"${D}"/usr/share/doc/${P}/opendmarc.conf.sample opendmarc.conf
-}