summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaohiro Aota <naota@gentoo.org>2012-07-05 06:15:04 +0000
committerNaohiro Aota <naota@gentoo.org>2012-07-05 06:15:04 +0000
commitd61208b5e9f88083e97812512c8e6c186dd0a6a7 (patch)
tree8c3c54c73aed0c7db059e0de6a6ad1eb00b559c0
parentVersion bump. (diff)
downloadgentoo-2-d61208b5e9f88083e97812512c8e6c186dd0a6a7.tar.gz
gentoo-2-d61208b5e9f88083e97812512c8e6c186dd0a6a7.tar.bz2
gentoo-2-d61208b5e9f88083e97812512c8e6c186dd0a6a7.zip
Add backport patch to support freebsd9. #421763
(Portage version: 2.2.0_alpha114/cvs/Linux x86_64)
-rw-r--r--mail-mta/postfix/ChangeLog6
-rw-r--r--mail-mta/postfix/files/postfix-2.9.3-freebsd9.patch22
-rw-r--r--mail-mta/postfix/postfix-2.9.3.ebuild4
3 files changed, 30 insertions, 2 deletions
diff --git a/mail-mta/postfix/ChangeLog b/mail-mta/postfix/ChangeLog
index 0bade3592728..02d082e5affa 100644
--- a/mail-mta/postfix/ChangeLog
+++ b/mail-mta/postfix/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for mail-mta/postfix
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/ChangeLog,v 1.367 2012/06/30 04:09:57 eras Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/ChangeLog,v 1.368 2012/07/05 06:15:04 naota Exp $
+
+ 05 Jul 2012; Naohiro Aota <naota@gentoo.org>
+ +files/postfix-2.9.3-freebsd9.patch, postfix-2.9.3.ebuild:
+ Add backport patch to support freebsd9. #421763
*postfix-2.10_pre20120627 (30 Jun 2012)
diff --git a/mail-mta/postfix/files/postfix-2.9.3-freebsd9.patch b/mail-mta/postfix/files/postfix-2.9.3-freebsd9.patch
new file mode 100644
index 000000000000..d2e89c3689c6
--- /dev/null
+++ b/mail-mta/postfix/files/postfix-2.9.3-freebsd9.patch
@@ -0,0 +1,22 @@
+--- src/util/sys_defs.h 2012-01-17 16:29:55.000000000 +0000
++++ src/util/sys_defs.h 2012-02-25 15:28:02.000000000 +0000
+@@ -25,7 +25,7 @@
+ */
+ #if defined(FREEBSD2) || defined(FREEBSD3) || defined(FREEBSD4) \
+ || defined(FREEBSD5) || defined(FREEBSD6) || defined(FREEBSD7) \
+- || defined(FREEBSD8) \
++ || defined(FREEBSD8) || defined(FREEBSD9) \
+ || defined(BSDI2) || defined(BSDI3) || defined(BSDI4) \
+ || defined(OPENBSD2) || defined(OPENBSD3) || defined(OPENBSD4) \
+ || defined(OPENBSD5) \
+--- makedefs 2012-01-18 01:19:48.000000000 +0000
++++ makedefs 2012-03-05 00:41:47.000000000 +0000
+@@ -153,6 +153,8 @@
+ ;;
+ FreeBSD.8*) SYSTYPE=FREEBSD8
+ ;;
++ FreeBSD.9*) SYSTYPE=FREEBSD9
++ ;;
+ OpenBSD.2*) SYSTYPE=OPENBSD2
+ ;;
+ OpenBSD.3*) SYSTYPE=OPENBSD3
diff --git a/mail-mta/postfix/postfix-2.9.3.ebuild b/mail-mta/postfix/postfix-2.9.3.ebuild
index 8285268c0874..e6e1ecb55a6e 100644
--- a/mail-mta/postfix/postfix-2.9.3.ebuild
+++ b/mail-mta/postfix/postfix-2.9.3.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/postfix-2.9.3.ebuild,v 1.2 2012/06/04 21:09:58 zmedico Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/postfix-2.9.3.ebuild,v 1.3 2012/07/05 06:15:04 naota Exp $
EAPI=4
@@ -77,6 +77,8 @@ src_prepare() {
epatch "${FILESDIR}/${PN}_no-berkdb.patch"
fi
+ epatch "${FILESDIR}"/${P}-freebsd9.patch
+
sed -i -e "/^#define ALIAS_DB_MAP/s|:/etc/aliases|:/etc/mail/aliases|" \
src/util/sys_defs.h || die "sed failed"