diff options
author | Ian Stakenvicius <axs@gentoo.org> | 2016-01-27 17:22:43 -0500 |
---|---|---|
committer | Ian Stakenvicius <axs@gentoo.org> | 2016-01-27 18:04:59 -0500 |
commit | 342d66f9a56b13bc363b96e48b795fd9fc618dc9 (patch) | |
tree | 3c02fc7747113243ab6212c71f6b48702e454497 /net-fs/samba | |
parent | Merge remote-tracking branch 'remotes/sbraz/gdiplus' (diff) | |
download | gentoo-342d66f9a56b13bc363b96e48b795fd9fc618dc9.tar.gz gentoo-342d66f9a56b13bc363b96e48b795fd9fc618dc9.tar.bz2 gentoo-342d66f9a56b13bc363b96e48b795fd9fc618dc9.zip |
net-fs/samba: bundle ctdb
Samba is the only consumer of dev-db/ctdb, and samba-4.2 and above has dropped support
for building against an external ctdb. This commit builds and installs ctdb bundled
within samba instead, and soft-blocks the external package to avoid collisions.
Bug: https://bugs.gentoo.org/show_bug.cgi?id=561402
Package-Manager: portage-2.2.26
Diffstat (limited to 'net-fs/samba')
-rw-r--r-- | net-fs/samba/samba-4.2.7-r2.ebuild (renamed from net-fs/samba/samba-4.2.7-r1.ebuild) | 15 | ||||
-rw-r--r-- | net-fs/samba/samba-4.3.3-r1.ebuild | 16 | ||||
-rw-r--r-- | net-fs/samba/samba-4.3.4-r1.ebuild (renamed from net-fs/samba/samba-4.3.4.ebuild) | 17 |
3 files changed, 41 insertions, 7 deletions
diff --git a/net-fs/samba/samba-4.2.7-r1.ebuild b/net-fs/samba/samba-4.2.7-r2.ebuild index 4530accb0a6b..8ea672219c7c 100644 --- a/net-fs/samba/samba-4.2.7-r1.ebuild +++ b/net-fs/samba/samba-4.2.7-r2.ebuild @@ -31,6 +31,12 @@ ldap pam quota selinux syslog +system-mitkrb5 systemd test winbind" MULTILIB_WRAPPED_HEADERS=( /usr/include/samba-4.0/policy.h /usr/include/samba-4.0/dcerpc_server.h + /usr/include/samba-4.0/ctdb.h + /usr/include/samba-4.0/ctdb_client.h + /usr/include/samba-4.0/ctdb_protocol.h + /usr/include/samba-4.0/ctdb_private.h + /usr/include/samba-4.0/ctdb_typesafe_cb.h + /usr/include/samba-4.0/ctdb_version.h ) # sys-apps/attr is an automagic dependency (see bug #489748) @@ -58,7 +64,7 @@ CDEPEND="${PYTHON_DEPS} acl? ( virtual/acl ) addns? ( net-dns/bind-tools[gssapi] ) aio? ( dev-libs/libaio ) - cluster? ( >=dev-db/ctdb-1.0.114_p1 ) + cluster? ( !dev-db/ctdb ) cups? ( net-print/cups ) dmapi? ( sys-apps/dmapi ) fam? ( virtual/fam ) @@ -90,6 +96,8 @@ CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)" WAF_BINARY="${S}/buildtools/bin/waf" +SHAREDMODS="" + pkg_setup() { python-single-r1_pkg_setup if use aio ; then @@ -104,6 +112,9 @@ pkg_setup() { ewarn "and recompile your kernel..." fi fi + if use cluster ; then + SHAREDMODS="${SHAREDMODS}idmap_rid,idmap_tdb2,idmap_ad" + fi } src_prepare() { @@ -142,7 +153,6 @@ multilib_src_configure() { $(use_with ads) $(usex ads '--with-shared-modules=idmap_ad' '') $(use_with aio aio-support) - $(usex cluster '--with-ctdb-dir=/usr' '') $(use_enable avahi) $(use_with cluster cluster-support) $(use_enable cups) @@ -160,6 +170,7 @@ multilib_src_configure() { $(usex system-mitkrb5 '--with-system-mitkrb5' '') $(use_with winbind) $(usex test '--enable-selftest' '') + --with-shared-modules=${SHAREDMODS} ) else myconf+=( diff --git a/net-fs/samba/samba-4.3.3-r1.ebuild b/net-fs/samba/samba-4.3.3-r1.ebuild index bb4da0b93617..17a891147eec 100644 --- a/net-fs/samba/samba-4.3.3-r1.ebuild +++ b/net-fs/samba/samba-4.3.3-r1.ebuild @@ -30,6 +30,13 @@ ldap pam quota selinux syslog +system-mitkrb5 systemd test winbind" MULTILIB_WRAPPED_HEADERS=( /usr/include/samba-4.0/policy.h + /usr/include/samba-4.0/dcerpc_server.h + /usr/include/samba-4.0/ctdb.h + /usr/include/samba-4.0/ctdb_client.h + /usr/include/samba-4.0/ctdb_protocol.h + /usr/include/samba-4.0/ctdb_private.h + /usr/include/samba-4.0/ctdb_typesafe_cb.h + /usr/include/samba-4.0/ctdb_version.h ) # sys-apps/attr is an automagic dependency (see bug #489748) @@ -56,7 +63,7 @@ CDEPEND="${PYTHON_DEPS} acl? ( virtual/acl ) addns? ( net-dns/bind-tools[gssapi] ) aio? ( dev-libs/libaio ) - cluster? ( >=dev-db/ctdb-1.0.114_p1 ) + cluster? ( !dev-db/ctdb ) cups? ( net-print/cups ) dmapi? ( sys-apps/dmapi ) fam? ( virtual/fam ) @@ -88,6 +95,8 @@ CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)" WAF_BINARY="${S}/buildtools/bin/waf" +SHAREDMODS="" + pkg_setup() { python-single-r1_pkg_setup if use aio ; then @@ -102,6 +111,9 @@ pkg_setup() { ewarn "and recompile your kernel..." fi fi + if use cluster ; then + SHAREDMODS="${SHAREDMODS}idmap_rid,idmap_tdb2,idmap_ad" + fi } src_prepare() { @@ -140,7 +152,6 @@ multilib_src_configure() { $(use_with ads) $(usex ads '--with-shared-modules=idmap_ad' '') $(use_with aio aio-support) - $(usex cluster '--with-ctdb-dir=/usr' '') $(use_enable avahi) $(use_with cluster cluster-support) $(use_enable cups) @@ -158,6 +169,7 @@ multilib_src_configure() { $(usex system-mitkrb5 '--with-system-mitkrb5' '') $(use_with winbind) $(usex test '--enable-selftest' '') + --with-shared-modules=${SHAREDMODS} ) else myconf+=( diff --git a/net-fs/samba/samba-4.3.4.ebuild b/net-fs/samba/samba-4.3.4-r1.ebuild index 45798e971d6d..cf4f9af611d3 100644 --- a/net-fs/samba/samba-4.3.4.ebuild +++ b/net-fs/samba/samba-4.3.4-r1.ebuild @@ -31,6 +31,12 @@ ldap pam quota selinux syslog +system-mitkrb5 systemd test winbind" MULTILIB_WRAPPED_HEADERS=( /usr/include/samba-4.0/policy.h /usr/include/samba-4.0/dcerpc_server.h + /usr/include/samba-4.0/ctdb.h + /usr/include/samba-4.0/ctdb_client.h + /usr/include/samba-4.0/ctdb_protocol.h + /usr/include/samba-4.0/ctdb_private.h + /usr/include/samba-4.0/ctdb_typesafe_cb.h + /usr/include/samba-4.0/ctdb_version.h ) # sys-apps/attr is an automagic dependency (see bug #489748) @@ -41,7 +47,7 @@ CDEPEND="${PYTHON_DEPS} dev-libs/popt[${MULTILIB_USEDEP}] sys-libs/readline:= virtual/libiconv - dev-python/subunit[${PYTHON_USEDEP}] + dev-python/subunit[${PYTHON_USEDEP},${MULTILIB_USEDEP}] >=net-libs/socket_wrapper-1.1.3[${MULTILIB_USEDEP}] sys-apps/attr[${MULTILIB_USEDEP}] sys-libs/libcap @@ -57,7 +63,7 @@ CDEPEND="${PYTHON_DEPS} acl? ( virtual/acl ) addns? ( net-dns/bind-tools[gssapi] ) aio? ( dev-libs/libaio ) - cluster? ( >=dev-db/ctdb-1.0.114_p1 ) + cluster? ( !dev-db/ctdb ) cups? ( net-print/cups ) dmapi? ( sys-apps/dmapi ) fam? ( virtual/fam ) @@ -89,6 +95,8 @@ CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)" WAF_BINARY="${S}/buildtools/bin/waf" +SHAREDMODS="" + pkg_setup() { python-single-r1_pkg_setup if use aio ; then @@ -103,6 +111,9 @@ pkg_setup() { ewarn "and recompile your kernel..." fi fi + if use cluster ; then + SHAREDMODS="${SHAREDMODS}idmap_rid,idmap_tdb2,idmap_ad" + fi } src_prepare() { @@ -141,7 +152,6 @@ multilib_src_configure() { $(use_with ads) $(usex ads '--with-shared-modules=idmap_ad' '') $(use_with aio aio-support) - $(usex cluster '--with-ctdb-dir=/usr' '') $(use_enable avahi) $(use_with cluster cluster-support) $(use_enable cups) @@ -159,6 +169,7 @@ multilib_src_configure() { $(usex system-mitkrb5 '--with-system-mitkrb5' '') $(use_with winbind) $(usex test '--enable-selftest' '') + --with-shared-modules=${SHAREDMODS} ) else myconf+=( |