diff options
author | Eray Aslan <eras@gentoo.org> | 2011-11-07 09:31:29 +0000 |
---|---|---|
committer | Eray Aslan <eras@gentoo.org> | 2011-11-07 09:31:29 +0000 |
commit | c3e434133f8caf654da7408de1d23f8461a65495 (patch) | |
tree | 72df4cb41e350c4882c81de5a286087f500fc768 /mail-mta | |
parent | version bump (diff) | |
download | gentoo-2-c3e434133f8caf654da7408de1d23f8461a65495.tar.gz gentoo-2-c3e434133f8caf654da7408de1d23f8461a65495.tar.bz2 gentoo-2-c3e434133f8caf654da7408de1d23f8461a65495.zip |
Version bump. Make Berkeley DB optional - bug #385825
(Portage version: 2.1.10.32/cvs/Linux x86_64)
Diffstat (limited to 'mail-mta')
-rw-r--r-- | mail-mta/postfix/ChangeLog | 8 | ||||
-rw-r--r-- | mail-mta/postfix/postfix-2.9_pre20111106.ebuild (renamed from mail-mta/postfix/postfix-2.9_pre20111025.ebuild) | 27 |
2 files changed, 20 insertions, 15 deletions
diff --git a/mail-mta/postfix/ChangeLog b/mail-mta/postfix/ChangeLog index 029c9c8f5738..c5b21c475e90 100644 --- a/mail-mta/postfix/ChangeLog +++ b/mail-mta/postfix/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for mail-mta/postfix # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/ChangeLog,v 1.295 2011/11/07 09:09:21 eras Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/ChangeLog,v 1.296 2011/11/07 09:31:29 eras Exp $ + +*postfix-2.9_pre20111106 (07 Nov 2011) + + 07 Nov 2011; Eray Aslan <eras@gentoo.org> -postfix-2.9_pre20111025.ebuild, + +postfix-2.9_pre20111106.ebuild: + Version bump. Make Berkeley DB optional - bug #385825 *postfix-2.8.7 (07 Nov 2011) diff --git a/mail-mta/postfix/postfix-2.9_pre20111025.ebuild b/mail-mta/postfix/postfix-2.9_pre20111106.ebuild index ab75995ff377..8ffbe2494ffe 100644 --- a/mail-mta/postfix/postfix-2.9_pre20111025.ebuild +++ b/mail-mta/postfix/postfix-2.9_pre20111106.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/postfix-2.9_pre20111025.ebuild,v 1.1 2011/10/26 19:24:56 eras Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/postfix-2.9_pre20111106.ebuild,v 1.1 2011/11/07 09:31:29 eras Exp $ EAPI=4 @@ -9,7 +9,7 @@ inherit eutils multilib ssl-cert toolchain-funcs flag-o-matic pam MY_PV="${PV/_pre/-}" MY_SRC="${PN}-${MY_PV}" MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/experimental" -VDA_PV="2.8.3" +VDA_PV="2.8.5" VDA_P="${PN}-vda-v10-${VDA_PV}" RC_VER="2.6" @@ -21,11 +21,11 @@ SRC_URI="${MY_URI}/${MY_SRC}.tar.gz LICENSE="IBM" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" -IUSE="cdb doc dovecot-sasl hardened ipv6 ldap ldap-bind mbox mysql nis pam postgres sasl selinux sqlite ssl vda" +IUSE="+berkdb cdb doc dovecot-sasl hardened ipv6 ldap ldap-bind mbox mysql nis pam postgres sasl selinux sqlite ssl vda" -DEPEND=">=sys-libs/db-3.2 - >=dev-libs/libpcre-3.4 +DEPEND=">=dev-libs/libpcre-3.4 dev-lang/perl + berkdb? ( >=sys-libs/db-3.2 ) cdb? ( || ( >=dev-db/tinycdb-0.76 >=dev-db/cdb-0.75-r1 ) ) ldap? ( net-nds/openldap ) ldap-bind? ( net-nds/openldap[sasl] ) @@ -58,20 +58,13 @@ REQUIRED_USE="ldap-bind? ( ldap sasl )" S="${WORKDIR}/${MY_SRC}" -group_user_check() { - einfo "Checking for postfix group ..." +pkg_setup() { + # Add postfix, postdrop user/group (bug #77565) enewgroup postfix 207 - einfo "Checking for postdrop group ..." enewgroup postdrop 208 - einfo "Checking for postfix user ..." enewuser postfix 207 -1 /var/spool/postfix postfix,mail } -pkg_setup() { - # Add postfix, postdrop user/group (bug #77565) - group_user_check || die "Failed to check/add needed user/group" -} - src_prepare() { if use vda ; then epatch "${DISTDIR}"/${VDA_P}.patch @@ -134,6 +127,12 @@ src_configure() { src/util/sys_defs.h || die "sed failed" fi + if ! use berkdb; then + # change default hash format from Berkeley DB to cdb + sed -i -e "s|#define HAS_DB$|//#define HAS_DB|g" -e "s/hash/cdb/" \ + src/util/sys_defs.h || die + fi + if use cdb ; then mycc="${mycc} -DHAS_CDB -I/usr/include/cdb" CDB_LIBS="" |