# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/postfix-2.1.5-r2.ebuild,v 1.12 2005/04/27 17:36:59 ferdy Exp $ inherit eutils ssl-cert toolchain-funcs VDA_P="${PN}-2.1.5-trash" TLS_P="pfixtls-0.8.18-2.1.3-0.9.7d" IPV6="1.26" IPV6_P="ipv6-${IPV6}-pf-2.1.5" IPV6_TLS_P="tls+${IPV6_P}" PGSQL_P="postfix-pg.postfix-2.0.0.2" DESCRIPTION="A fast and secure drop-in replacement for sendmail." HOMEPAGE="http://www.postfix.org/" SRC_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official/${P}.tar.gz vda? ( http://web.onda.com.br/nadal/postfix/VDA/${VDA_P}.patch.gz ) ssl? ( ftp://ftp.aet.tu-cottbus.de/pub/postfix_tls/${TLS_P}.tar.gz ) ipv6? ( ftp://ftp.stack.nl/pub/postfix/tls+ipv6/${IPV6}/${IPV6_P}.patch.gz ) ipv6? ( ftp://ftp.stack.nl/pub/postfix/tls+ipv6/${IPV6}/${IPV6_TLS_P}.patch.gz )" LICENSE="IPL-1" SLOT="0" KEYWORDS="x86 sparc ppc alpha amd64 s390 mips hppa ppc64 ia64" IUSE="ipv6 pam ldap mysql postgres ssl sasl vda mailwrapper mbox selinux" PROVIDE="virtual/mta virtual/mda" DEPEND=">=sys-libs/db-3.2 >=dev-libs/libpcre-3.4 >=sys-apps/sed-4 ldap? ( >=net-nds/openldap-1.2 ) mysql? ( >=dev-db/mysql-3.23.51 ) postgres? ( >=dev-db/postgresql-7.1 ) ssl? ( >=dev-libs/openssl-0.9.6g ) sasl? ( >=dev-libs/cyrus-sasl-2 )" RDEPEND="${DEPEND} >=net-mail/mailbase-0.00 selinux? ( sec-policy/selinux-postfix ) !mailwrapper? ( !virtual/mta ) mailwrapper? ( >=net-mail/mailwrapper-0.2 )" pkg_setup() { # put out warnings to work around bug #45764 if has_version '<=mail-mta/postfix-2.0.18'; then echo ewarn "You are upgrading from postfix-2.0.18 or earlier, one of the empty queue" ewarn "directory get deleted during unmerge the older version (#45764). Please run" ewarn "\`etc/postfix/post-install upgrade-source\` to recreate them." echo epause 5 fi # logic to fix bug #53324 if [[ -f /var/lib/init.d/started/postfix ]] ; then if has_version '