# 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.2.1.ebuild,v 1.2 2005/08/23 13:30:18 ticho Exp $ inherit eutils ssl-cert toolchain-funcs flag-o-matic IUSE="ipv6 pam ldap mysql postgres ssl sasl mailwrapper mbox nis vda selinux hardened" #IUSE="ipv6 pam ldap mysql postgres ssl sasl mailwrapper mbox nis vda selinux hardened devel" MY_PV=${PV} MY_SRC=${PN}-${MY_PV} #DEV_SRC=${MY_SRC}-newdb-nonprod VDA_P="${PN}-2.2.0-vda" 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/${MY_SRC}.tar.gz vda? ( http://web.onda.com.br/nadal/postfix/VDA/${VDA_P}.patch.gz ) " # devel? ( ftp://ftp.porcupine.org/mirrors/postfix-release/experimental/${DEV_SRC}.tar.gz ) " LICENSE="IPL-1" SLOT="0" KEYWORDS="~x86 ~sparc ~ppc ~alpha ~amd64 ~s390 ~mips ~hppa ~ppc64" 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 )" #if use devel; then # MY_SRC=${DEV_SRC} #fi S=${WORKDIR}/${MY_SRC} group_user_check() { einfo "checking for postfix group... create if missing." enewgroup postfix 207 einfo "checking for postdrop group... create if missing." enewgroup postdrop 208 einfo "checking for postfix user... create if missing." enewuser postfix 207 -1 /var/spool/postfix postfix } pkg_setup() { # do not upgrade from postfix-2.1. logic to fix bug #53324 if [[ $(ps h -u postfix) ]]; then if has_version '