summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-fs/samba/samba-3.4.8.ebuild')
-rw-r--r--net-fs/samba/samba-3.4.8.ebuild24
1 files changed, 23 insertions, 1 deletions
diff --git a/net-fs/samba/samba-3.4.8.ebuild b/net-fs/samba/samba-3.4.8.ebuild
index 6481fc7e6d8b..bc2a20b1462e 100644
--- a/net-fs/samba/samba-3.4.8.ebuild
+++ b/net-fs/samba/samba-3.4.8.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/samba-3.4.8.ebuild,v 1.3 2010/05/19 17:16:15 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/samba-3.4.8.ebuild,v 1.4 2010/06/01 14:04:59 vostorga Exp $
EAPI="2"
@@ -82,6 +82,16 @@ S="${WORKDIR}/${MY_P}/source3"
CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
pkg_setup() {
+ if use winbind &&
+ [[ $(tc-getCC)$ == *gcc* ]] &&
+ [[ $(gcc-major-version)$(gcc-minor-version) -lt 43 ]]
+ then
+ eerror "It is a known issue that ${P} will not build with "
+ eerror "winbind use flag enabled when using gcc < 4.3 ."
+ eerror "Please use at least the latest stable gcc version."
+ die "Using sys-devel/gcc < 4.3 with winbind use flag."
+ fi
+
confutils_use_depend_all ads ldap
confutils_use_depend_all swat server
}
@@ -365,3 +375,15 @@ src_install() {
"${D}/var"/{run,lib/samba/private,lib/samba,lib,cache/samba,cache,} \
# || die "tried to remove non-empty dirs, this seems like a bug in the ebuild"
}
+
+pkg_postinst() {
+ elog "The default passdb backend has been changed to 'tdbsam' in samba 3.4!"
+ elog "That breaks existing setups using the 'smbpasswd' backend without"
+ elog "explicit declaration!"
+ elog "Please use 'passdb backend = smbpasswd' if you would like to stick to the"
+ elog "'smbpasswd' backend or convert your smbpasswd entries using e.g. "
+ elog "'pdbedit -i smbpasswd -e tdbsam'."
+ elog "For further information make sure to read the release notes at"
+ elog "http://samba.org/samba/history/${P}.html and "
+ elog "http://samba.org/samba/history/${PN}-3.4.0.html"
+}