commit:     c88d3b53823fa4f37a2e8c0f23b170f49bc40fa7
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 13 09:16:27 2017 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Thu Jul 13 09:16:54 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c88d3b53

net-fs/samba: Removed old.

Package-Manager: Portage-2.3.6, Repoman-2.3.2

 net-fs/samba/Manifest            |   5 -
 net-fs/samba/samba-4.2.11.ebuild | 257 ---------------------------------
 net-fs/samba/samba-4.5.11.ebuild | 279 ------------------------------------
 net-fs/samba/samba-4.6.4.ebuild  | 299 ---------------------------------------
 net-fs/samba/samba-4.6.5.ebuild  | 299 ---------------------------------------
 5 files changed, 1139 deletions(-)

diff --git a/net-fs/samba/Manifest b/net-fs/samba/Manifest
index 14a091e6dcd..51b0fa36cee 100644
--- a/net-fs/samba/Manifest
+++ b/net-fs/samba/Manifest
@@ -1,13 +1,8 @@
-DIST samba-4.2.11.tar.gz 20875348 SHA256 
75bce53c922e51352933c9846f2c4b1e251fabb80927adb426a773a321ee01f8 SHA512 
293365f2718e756b66ccaec4b0dbce7044ade615b332f58968cf42dd1ec6b6445576590eaf5bd35fa00ba9aa4ba3be7720afc33763652e97731eebc3149f4820
 WHIRLPOOL 
1e04fd527e55c8d438c96a43d9a25a9b3e09a3edc504a2a5fe44bc8f9101c833c90e3ba3188b8872b046370916f3798e4fce0ffa7848b65f452b5c51ec7107f1
 DIST samba-4.2.14.tar.gz 20883281 SHA256 
db820a9947e44f04b0eb25e4aa0c3db32c4042fca541775ee8e2905093e888e6 SHA512 
269dd74ba788657434f51ac70953a293c94bcf98280eaa6f44634c5da54169a5ea7865d543a7c23860c4750a40cdee7caeaf5c7fc3dbc137f444e90f31a09890
 WHIRLPOOL 
925369c2f9c222d718bf4aacc7b1a83b8275acd96bbc1eca52ad96c86847327807560674ee9b180173d17a1e6109307ec4f70f1acbebe2efc8a9e67f2141e17d
 DIST samba-4.5.10.tar.gz 20989431 SHA256 
7cb753f5f6d5527ef40d4c1f47dacafb7c876cb304b4906ccb390c6a18477714 SHA512 
046bae9c66083a4fe656d6a7b02b64343c66e0ea4925193a898dbda107b5b158d1897f16c36f4c393a30457a49215fa6ef91720367f4946760ec48ce02a4a68a
 WHIRLPOOL 
2359a40337c2a85c17e3c860a8531c21ec5cf3c180dfd5a1e554f2eb5e10576a8b706464d490e008af441d9ce6a14043112d621d8e140461806c97947362933a
 DIST samba-4.5.11-disable-python-patches.tar.xz 6292 SHA256 
8db451910c3d46fc715203e0b674c49846528cf864c381520dc93de20a3637d3 SHA512 
f0e3076e3e1ecaae3f06b3ef30efc81719fb3f63a1041dcbdae4b62ca4cf693732f9eb16f047d046d4930136fed82194e82b455ea888e12cf845b3e6a122d57d
 WHIRLPOOL 
641d429fc4865e12e89bad28110b03ca87c6b658f59943f4d44c0b3a91fc49b5dc90e496a8a9d391c2897aec87fc43ea1c9a26084f3394b1883ad9755fd0eca3
-DIST samba-4.5.11.tar.gz 20998338 SHA256 
b0b4a99c41395c8848e159d01b7a8bde0680cc390aadff52793bb3406e91511f SHA512 
9ceb94dbf3aba2f18353cf8b40e676d0fa99b116cdb3787a864063e3678af41a0d7b3ed6e132f60a11643ebfac8ec1be404b19b5e3f673b27f52eab91888e12e
 WHIRLPOOL 
01a65f69c07c70fbd7b212e88f5cd024d0b58c70e4839f9bb862967f145b141b7159df99614eef3bad20b98e14bea7d5d16e54d08d2e4d5ccaec7ab8a98506af
 DIST samba-4.5.12.tar.gz 21011562 SHA256 
f4c17123e3cc852a5ecc7e38884b00deab57632b9519aebc243e2a94b9b5ace4 SHA512 
797ef6b1aebd7122f4630e3a591301162d3b3bdab70509ed78aca71a321d53c635164bbfb192922d19245b45e6333ff132e89fc35954f56e33970af4cc5bd604
 WHIRLPOOL 
e7f58275f514652678f760446b5a9a3646e008657bedcacdbee7a625d011abc99c8cc04f04109df0e2b38253f9020387376ec84f233c9ac25554c96499a4fa4b
 DIST samba-4.6.0-disable-python-patches.tar.xz 7544 SHA256 
508adeea65604ef8f4da006504de7c27bed56d7003db1166dc5d3b01f5a6be6e SHA512 
07de2c0877aff31069ed0ab4fbe1c2272c854ae898ee5300a3b176ba31a218b05acff0b5120a5da0995592e7877c607865d2194c992df17b27c993836f58a654
 WHIRLPOOL 
12888f2ebf8d4ed5619860b2e6929599022b8ab1245970a5e1258f26e89aca1f87ab58fa54c7300dbd79a0c8fd6955e12c8aca6eeca246cdf06661d53ca3f6dd
-DIST samba-4.6.4.tar.gz 21108045 SHA256 
4ac67329d18e5586dc75db50e23b81c1f6c45a2d5bb9752ea6d90dcca08d9a61 SHA512 
c20e6ad35b701816c35959fd242470dd899fb1b0bf02277ebdc87624dc1059199854b8d759374ab8b23f4842aa01347389a34319635091ade5afb5a94810eac1
 WHIRLPOOL 
98cf75b77a3937dda5cedc9110254042d628454d4ca5c2b44a0afb72e1fa35c792852e0e1529a18f1d22e03484001b719a4e0b1eff7bca2b26397d85300bb847
-DIST samba-4.6.5.tar.gz 21111639 SHA256 
c06901e1d318b425b8c3ecea3ef23a91e7371312a9ea7adbf34fb8eb42ca3b84 SHA512 
045d7288e164a0682e84a6cb1d1811c3469c656f6f2c58f73fa350d611ade689b9a108941ebca482abd7d4a636a95571e2e613fcc7dbdc3c516d6fb370c208cb
 WHIRLPOOL 
6e6997363b972b49f8732be0db8b416763761ff5cb08a303e2fb1b44ed45c66216623df6246630b4cbfd0b25fe13534896e1d6e07e926576f78a32fa1261b39f
 DIST samba-4.6.6.tar.gz 21120791 SHA256 
fc31c809f7d85ae30f2b7dcddcb8404201b626047458cb5f2b743d4f6f3f1a8e SHA512 
e06bdc83f44c449212f2e45a902e2ca547505a75e970166259b91d2093fb442cdfd456e724d0e842b674b4b8d5bdbe9072996d768c08ebd979a44b2494a59799
 WHIRLPOOL 
eee4bc7e6d5a102b4ab7146354afd7501bc4ad6a3af1aa63ffecf7eb54dc04f113248048157ca9e8c9cd3c21a0931b0fae1d8dc7232e29a92ebbf5d6cccd4c55
 DIST samba-disable-python-patches-4.2.12.tar.xz 6052 SHA256 
8903eacbabdfaf7b64cbde03d7c367d1efdc92e54090f0f4b9ed5d2a462b1c18 SHA512 
c527d0a052d3211e5b12c17bc94db56cc5e5545189ed65a760c0656c94c22e27a4b159e6439eb0370873e1619873a741f3b3bd10d3876b38eb3914a87eace372
 WHIRLPOOL 
ad63db55d5dc96f56e6c9b30c2092e2f6e206b0ed5d13c249879d10753c8db2f475c5d4e651e2fc042ad992b648d3b4465f1b28c6b4bbf821cf503d27f741f7e
-DIST samba-disable-python-patches-4.2.9.tar.xz 6016 SHA256 
222d0153f03dddde28a0b906ee2b27076223ac88b84a998aaa285f658861edfa SHA512 
02fc666a36f8e733e522663d80775d130fabee9d5fb4e1c261d28815e07be425ae8977213f9216c7af62dd8b2619e7e13d71f9a25780b058c8119901c2115a18
 WHIRLPOOL 
ebba3a6d41a41844621759672aa8c984d26f44d12007c8e929405470c381bc262523ec68d3972e86cf675c45f092fa287496167e42940e70d704790753e47b03
 DIST samba-disable-python-patches-4.5.0_rc1.tar.xz 6204 SHA256 
fa0d776e04e3222c0dc4761e376717f4154937cdcb85f4117b8978dfb770a78e SHA512 
920089ba3c6e8e7d913b1d7ef1017262a19d1af41215adb30cfc98a57556efc4b0116931d4ef774c01124149d8eca2be3a23814ce7e11daf0180d2c111799927
 WHIRLPOOL 
6d55710895435ad012e23f8c252e5276966241014710349ca7fa9cf037e8742030b8e053f7cb71309a0a45f48d2235d55393243bf4d19476a22dd39bb1b7748d

diff --git a/net-fs/samba/samba-4.2.11.ebuild b/net-fs/samba/samba-4.2.11.ebuild
deleted file mode 100644
index 4f3aeba8154..00000000000
--- a/net-fs/samba/samba-4.2.11.ebuild
+++ /dev/null
@@ -1,257 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-PYTHON_COMPAT=( python2_7 )
-PYTHON_REQ_USE='threads(+),xml(+)'
-
-inherit python-single-r1 waf-utils multilib-minimal linux-info systemd eutils
-
-MY_PV="${PV/_rc/rc}"
-MY_P="${PN}-${MY_PV}"
-
-SRC_PATH="stable"
-[[ ${PV} = *_rc* ]] && SRC_PATH="rc"
-
-SRC_URI="mirror://samba/${SRC_PATH}/${MY_P}.tar.gz
-       
https://dev.gentoo.org/~polynomial-c/samba-disable-python-patches-4.2.9.tar.xz";
-KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86"
-[[ ${PV} = *_rc* ]] && KEYWORDS="alpha arm hppa ppc64"
-
-DESCRIPTION="Samba Suite Version 4"
-HOMEPAGE="http://www.samba.org/";
-LICENSE="GPL-3"
-
-SLOT="0"
-
-IUSE="acl addc addns ads aio avahi client cluster cups dmapi fam gnutls iprint
-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)
-CDEPEND="${PYTHON_DEPS}
-       >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}]
-       dev-lang/perl:=
-       dev-libs/libbsd[${MULTILIB_USEDEP}]
-       dev-libs/iniparser:0
-       dev-libs/popt[${MULTILIB_USEDEP}]
-       sys-libs/readline:=
-       virtual/libiconv
-       dev-python/subunit[${PYTHON_USEDEP},${MULTILIB_USEDEP}]
-       >=net-libs/socket_wrapper-1.1.2[${MULTILIB_USEDEP}]
-       sys-apps/attr[${MULTILIB_USEDEP}]
-       sys-libs/libcap
-       >=sys-libs/ldb-1.1.24[ldap(+)?,${MULTILIB_USEDEP}]
-       sys-libs/ncurses:0=[${MULTILIB_USEDEP}]
-       >=sys-libs/nss_wrapper-1.0.2[${MULTILIB_USEDEP}]
-       >=sys-libs/ntdb-1.0[python,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
-       >=sys-libs/talloc-2.1.2[python,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
-       >=sys-libs/tdb-1.3.6[python,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
-       >=sys-libs/tevent-0.9.25[${MULTILIB_USEDEP}]
-       >=sys-libs/uid_wrapper-1.0.1[${MULTILIB_USEDEP}]
-       sys-libs/zlib[${MULTILIB_USEDEP}]
-       acl? ( virtual/acl )
-       addns? ( net-dns/bind-tools[gssapi] )
-       aio? ( dev-libs/libaio )
-       cluster? ( !dev-db/ctdb )
-       cups? ( net-print/cups )
-       dmapi? ( sys-apps/dmapi )
-       fam? ( virtual/fam )
-       gnutls? ( dev-libs/libgcrypt:0
-               >=net-libs/gnutls-1.4.0 )
-       ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] )
-       pam? ( virtual/pam )
-       system-mitkrb5? ( app-crypt/mit-krb5[${MULTILIB_USEDEP}] )
-       !system-mitkrb5? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] )
-       systemd? ( sys-apps/systemd:0= )"
-DEPEND="${CDEPEND}
-       virtual/pkgconfig"
-RDEPEND="${CDEPEND}
-       client? ( net-fs/cifs-utils[ads?] )
-       selinux? ( sec-policy/selinux-samba )
-       !dev-perl/Parse-Yapp
-"
-
-REQUIRED_USE="addc? ( gnutls !system-mitkrb5 )
-       ads? ( acl gnutls ldap )
-       ${PYTHON_REQUIRED_USE}"
-
-S="${WORKDIR}/${MY_P}"
-
-PATCHES=(
-       "${FILESDIR}/${PN}-4.2.3-heimdal_compilefix.patch"
-       "${FILESDIR}/${PN}-4.2.7-pam.patch"
-)
-
-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
-               if ! linux_config_exists || ! linux_chkconfig_present AIO; then
-                       ewarn "You must enable AIO support in your kernel 
config, "
-                       ewarn "to be able to support asynchronous I/O. "
-                       ewarn "You can find it at"
-                       ewarn
-                       ewarn "General Support"
-                       ewarn " Enable AIO support "
-                       ewarn
-                       ewarn "and recompile your kernel..."
-               fi
-       fi
-       if use cluster ; then
-               SHAREDMODS="${SHAREDMODS}idmap_rid,idmap_tdb2,idmap_ad"
-       fi
-}
-
-src_prepare() {
-       epatch "${PATCHES[@]}"
-
-       # install the patches from tarball(s)
-       EPATCH_SUFFIX="patch" \
-       EPATCH_FORCE="yes" \
-       epatch "${WORKDIR}/patches"
-
-       # Allow user patches
-       epatch_user
-       multilib_copy_sources
-}
-
-multilib_src_configure() {
-       local myconf=()
-       myconf=(
-               --enable-fhs
-               --sysconfdir=/etc
-               --localstatedir=/var
-               --with-modulesdir=/usr/$(get_libdir)/samba
-               --with-piddir=/run/${PN}
-               --bundled-libraries=NONE
-               --builtin-libraries=NONE
-               --disable-rpath
-               --disable-rpath-install
-               --nopyc
-               --nopyo
-       )
-       if multilib_is_native_abi ; then
-               myconf+=(
-                       $(use_with acl acl-support)
-                       $(usex addc '' '--without-ad-dc')
-                       $(use_with addns dnsupdate)
-                       $(use_with ads)
-                       $(usex ads '--with-shared-modules=idmap_ad' '')
-                       $(use_with aio aio-support)
-                       $(use_enable avahi)
-                       $(use_with cluster cluster-support)
-                       $(use_enable cups)
-                       $(use_with dmapi)
-                       $(use_with fam)
-                       $(use_enable gnutls)
-                       $(use_enable iprint)
-                       $(use_with ldap)
-                       $(use_with pam)
-                       $(use_with pam pam_smbpass)
-                       $(usex pam 
"--with-pammodulesdir=/$(get_libdir)/security" '')
-                       $(use_with quota quotas)
-                       $(use_with syslog)
-                       $(use_with systemd)
-                       $(usex system-mitkrb5 '--with-system-mitkrb5' '')
-                       $(use_with winbind)
-                       $(usex test '--enable-selftest' '')
-                       --with-shared-modules=${SHAREDMODS}
-               )
-       else
-               myconf+=(
-                       --without-acl-support
-                       --without-ad-dc
-                       --without-dnsupdate
-                       --without-ads
-                       --without-aio-support
-                       --disable-avahi
-                       --without-cluster-support
-                       --disable-cups
-                       --without-dmapi
-                       --without-fam
-                       --disable-gnutls
-                       --disable-iprint
-                       $(use_with ldap)
-                       --without-pam
-                       --without-pam_smbpass
-                       --without-quotas
-                       --without-syslog
-                       --without-systemd
-                       $(usex system-mitkrb5 '--with-system-mitkrb5' '')
-                       --without-winbind
-                       --disable-python
-               )
-       fi
-
-       CPPFLAGS="-I${SYSROOT}/usr/include/et ${CPPFLAGS}" \
-               waf-utils_src_configure ${myconf[@]}
-}
-
-multilib_src_install() {
-       waf-utils_src_install
-
-       # Make all .so files executable
-       find "${D}" -type f -name "*.so" -exec chmod +x {} +
-
-       if multilib_is_native_abi; then
-               # install ldap schema for server (bug #491002)
-               if use ldap ; then
-                       insinto /etc/openldap/schema
-                       doins examples/LDAP/samba.schema
-               fi
-
-               # create symlink for cups (bug #552310)
-               if use cups ; then
-                       dosym /usr/bin/smbspool /usr/libexec/cups/backend/smb
-               fi
-
-               # install example config file
-               insinto /etc/samba
-               doins examples/smb.conf.default
-
-               # Install init script and conf.d file
-               newinitd "${CONFDIR}/samba4.initd-r1" samba
-               newconfd "${CONFDIR}/samba4.confd" samba
-
-               systemd_dotmpfilesd "${FILESDIR}"/samba.conf
-               systemd_dounit "${FILESDIR}"/nmbd.service
-               systemd_dounit "${FILESDIR}"/smbd.{service,socket}
-               systemd_newunit "${FILESDIR}"/smbd_at.service '[email protected]'
-               systemd_dounit "${FILESDIR}"/winbindd.service
-               systemd_dounit "${FILESDIR}"/samba.service
-       fi
-}
-
-multilib_src_test() {
-       if multilib_is_native_abi ; then
-               "${WAF_BINARY}" test || die "test failed"
-       fi
-}
-
-pkg_postinst() {
-       ewarn "Be aware the this release contains the best of all of Samba's"
-       ewarn "technology parts, both a file server (that you can reasonably 
expect"
-       ewarn "to upgrade existing Samba 3.x releases to) and the AD domain"
-       ewarn "controller work previously known as 'samba4'."
-
-       elog "For further information and migration steps make sure to read "
-       elog "http://samba.org/samba/history/${P}.html "
-       elog "http://samba.org/samba/history/${PN}-4.2.0.html and"
-       elog "http://wiki.samba.org/index.php/Samba4/HOWTO "
-}

diff --git a/net-fs/samba/samba-4.5.11.ebuild b/net-fs/samba/samba-4.5.11.ebuild
deleted file mode 100644
index 41e0d7a5ba9..00000000000
--- a/net-fs/samba/samba-4.5.11.ebuild
+++ /dev/null
@@ -1,279 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-PYTHON_COMPAT=( python2_7 )
-PYTHON_REQ_USE='threads(+),xml(+)'
-
-inherit python-single-r1 waf-utils multilib-minimal linux-info systemd eutils
-
-MY_PV="${PV/_rc/rc}"
-MY_P="${PN}-${MY_PV}"
-
-SRC_PATH="stable"
-[[ ${PV} = *_rc* ]] && SRC_PATH="rc"
-
-SRC_URI="mirror://samba/${SRC_PATH}/${MY_P}.tar.gz
-       
https://dev.gentoo.org/~polynomial-c/samba-4.5.11-disable-python-patches.tar.xz";
-[[ ${PV} = *_rc* ]] || \
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
-
-DESCRIPTION="Samba Suite Version 4"
-HOMEPAGE="http://www.samba.org/";
-LICENSE="GPL-3"
-
-SLOT="0"
-
-IUSE="acl addc addns ads client cluster cups dmapi fam gnutls gpg iprint ldap 
pam
-quota selinux syslog system-heimdal +system-mitkrb5 systemd test winbind 
zeroconf"
-
-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)
-CDEPEND="${PYTHON_DEPS}
-       >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}]
-       dev-lang/perl:=
-       dev-libs/libaio[${MULTILIB_USEDEP}]
-       dev-libs/libbsd[${MULTILIB_USEDEP}]
-       dev-libs/iniparser:0
-       dev-libs/popt[${MULTILIB_USEDEP}]
-       dev-python/subunit[${PYTHON_USEDEP},${MULTILIB_USEDEP}]
-       sys-apps/attr[${MULTILIB_USEDEP}]
-       >=sys-libs/ldb-1.1.27[ldap(+)?,python(+),${MULTILIB_USEDEP}]
-       <sys-libs/ldb-1.1.30[ldap(+)?,python(+),${MULTILIB_USEDEP}]
-       sys-libs/libcap
-       sys-libs/ncurses:0=[${MULTILIB_USEDEP}]
-       sys-libs/readline:0=
-       >=sys-libs/talloc-2.1.8[python,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
-       >=sys-libs/tdb-1.3.10[python,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
-       >=sys-libs/tevent-0.9.31-r1[${MULTILIB_USEDEP}]
-       sys-libs/zlib[${MULTILIB_USEDEP}]
-       virtual/libiconv
-       pam? ( virtual/pam )
-       acl? ( virtual/acl )
-       addns? ( net-dns/bind-tools[gssapi] )
-       cluster? ( !dev-db/ctdb )
-       cups? ( net-print/cups )
-       dmapi? ( sys-apps/dmapi )
-       fam? ( virtual/fam )
-       gnutls? (
-               dev-libs/libgcrypt:0
-               >=net-libs/gnutls-1.4.0
-       )
-       gpg? ( app-crypt/gpgme )
-       ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] )
-       system-heimdal? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] )
-       system-mitkrb5? ( app-crypt/mit-krb5[${MULTILIB_USEDEP}] )
-       systemd? ( sys-apps/systemd:0= )"
-DEPEND="${CDEPEND}
-       virtual/pkgconfig
-       test? (
-               !system-mitkrb5? (
-                       >=sys-libs/nss_wrapper-1.1.3
-                       >=net-dns/resolv_wrapper-1.1.4
-                       >=net-libs/socket_wrapper-1.1.7
-                       >=sys-libs/uid_wrapper-1.2.1
-               )
-       )"
-RDEPEND="${CDEPEND}
-       client? ( net-fs/cifs-utils[ads?] )
-       selinux? ( sec-policy/selinux-samba )
-       !dev-perl/Parse-Yapp
-"
-
-REQUIRED_USE="addc? ( gnutls !system-mitkrb5 )
-       ads? ( acl gnutls ldap )
-       gpg? ( addc )
-       ?? ( system-heimdal system-mitkrb5 )
-       ${PYTHON_REQUIRED_USE}"
-
-S="${WORKDIR}/${MY_P}"
-
-PATCHES=(
-       "${FILESDIR}/${PN}-4.4.0-pam.patch"
-       "${FILESDIR}/${PN}-4.5.1-compile_et_fix.patch"
-)
-
-#CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
-CONFDIR="${FILESDIR}/4.4"
-
-WAF_BINARY="${S}/buildtools/bin/waf"
-
-SHAREDMODS=""
-
-pkg_setup() {
-       python-single-r1_pkg_setup
-       if use cluster ; then
-               SHAREDMODS="idmap_rid,idmap_tdb2,idmap_ad"
-       elif use ads ; then
-               SHAREDMODS="idmap_ad"
-       fi
-}
-
-src_prepare() {
-       default
-
-       # install the patches from tarball(s)
-       eapply "${WORKDIR}/patches"
-
-       # ugly hackaround for bug #592502
-       cp /usr/include/tevent_internal.h "${S}"/lib/tevent/ || die
-
-       sed -e 's:<gpgme\.h>:<gpgme/gpgme.h>:' \
-               -i source4/dsdb/samdb/ldb_modules/password_hash.c \
-               || die
-
-       # Friggin' WAF shit
-       multilib_copy_sources
-}
-
-multilib_src_configure() {
-       # when specifying libs for samba build you must append NONE to the end 
to 
-       # stop it automatically including things
-       local bundled_libs="NONE"
-       if ! use system-heimdal && ! use system-mitkrb5 ; then
-               
bundled_libs="heimbase,heimntlm,hdb,kdc,krb5,wind,gssapi,hcrypto,hx509,roken,asn1,com_err,NONE"
-       fi
-
-       local myconf=()
-       myconf=(
-               --enable-fhs
-               --sysconfdir="${EPREFIX}/etc"
-               --localstatedir="${EPREFIX}/var"
-               --with-modulesdir="${EPREFIX}/usr/$(get_libdir)/samba"
-               --with-piddir="${EPREFIX}/run/${PN}"
-               --bundled-libraries="${bundled_libs}"
-               --builtin-libraries=NONE
-               --disable-rpath
-               --disable-rpath-install
-               --nopyc
-               --nopyo
-       )
-       if multilib_is_native_abi ; then
-               myconf+=(
-                       $(use_with acl acl-support)
-                       $(usex addc '' '--without-ad-dc')
-                       $(use_with addns dnsupdate)
-                       $(use_with ads)
-                       $(use_with cluster cluster-support)
-                       $(use_enable cups)
-                       $(use_with dmapi)
-                       $(use_with fam)
-                       $(use_enable gnutls)
-                       $(use_with gpg gpgme)
-                       $(use_enable iprint)
-                       $(use_with ldap)
-                       $(use_with pam)
-                       $(usex pam 
"--with-pammodulesdir=${EPREFIX}/$(get_libdir)/security" '')
-                       $(use_with quota quotas)
-                       $(use_with syslog)
-                       $(use_with systemd)
-                       $(usex system-mitkrb5 '--with-system-mitkrb5' '')
-                       $(use_with winbind)
-                       $(usex test '--enable-selftest' '')
-                       $(use_enable zeroconf avahi)
-                       --with-shared-modules=${SHAREDMODS}
-               )
-       else
-               myconf+=(
-                       --without-acl-support
-                       --without-ad-dc
-                       --without-dnsupdate
-                       --without-ads
-                       --disable-avahi
-                       --without-cluster-support
-                       --disable-cups
-                       --without-dmapi
-                       --without-fam
-                       --disable-gnutls
-                       --without-gpgme
-                       --disable-iprint
-                       $(use_with ldap)
-                       --without-pam
-                       --without-quotas
-                       --without-syslog
-                       --without-systemd
-                       $(usex system-mitkrb5 '--with-system-mitkrb5' '')
-                       --without-winbind
-                       --disable-python
-               )
-       fi
-
-       CPPFLAGS="-I${SYSROOT}${EPREFIX}/usr/include/et ${CPPFLAGS}" \
-               waf-utils_src_configure ${myconf[@]}
-}
-
-multilib_src_compile() {
-       waf-utils_src_compile
-}
-
-multilib_src_install() {
-       waf-utils_src_install
-
-       # Make all .so files executable
-       find "${D}" -type f -name "*.so" -exec chmod +x {} +
-
-       if multilib_is_native_abi; then
-               # install ldap schema for server (bug #491002)
-               if use ldap ; then
-                       insinto /etc/openldap/schema
-                       doins examples/LDAP/samba.schema
-               fi
-
-               # create symlink for cups (bug #552310)
-               if use cups ; then
-                       dosym /usr/bin/smbspool /usr/libexec/cups/backend/smb
-               fi
-
-               # install example config file
-               insinto /etc/samba
-               doins examples/smb.conf.default
-
-               # Fix paths in example file (#603964)
-               sed \
-                       -e '/log file 
=/s@/usr/local/samba/var/@/var/log/samba/@' \
-                       -e '/include =/s@/usr/local/samba/lib/@/etc/samba/@' \
-                       -e '/path =/s@/usr/local/samba/lib/@/var/lib/samba/@' \
-                       -e '/path =/s@/usr/local/samba/@/var/lib/samba/@' \
-                       -e '/path =/s@/usr/spool/samba@/var/spool/samba@' \
-                       -i "${ED%/}"/etc/samba/smb.conf.default || die
-
-               # Install init script and conf.d file
-               newinitd "${CONFDIR}/samba4.initd-r1" samba
-               newconfd "${CONFDIR}/samba4.confd" samba
-
-               systemd_dotmpfilesd "${FILESDIR}"/samba.conf
-               systemd_dounit "${FILESDIR}"/nmbd.service
-               systemd_dounit "${FILESDIR}"/smbd.{service,socket}
-               systemd_newunit "${FILESDIR}"/smbd_at.service '[email protected]'
-               systemd_dounit "${FILESDIR}"/winbindd.service
-               systemd_dounit "${FILESDIR}"/samba.service
-       fi
-}
-
-multilib_src_test() {
-       if multilib_is_native_abi ; then
-               "${WAF_BINARY}" test || die "test failed"
-       fi
-}
-
-pkg_postinst() {
-       ewarn "Be aware the this release contains the best of all of Samba's"
-       ewarn "technology parts, both a file server (that you can reasonably 
expect"
-       ewarn "to upgrade existing Samba 3.x releases to) and the AD domain"
-       ewarn "controller work previously known as 'samba4'."
-
-       elog "For further information and migration steps make sure to read "
-       elog "http://samba.org/samba/history/${P}.html "
-       elog "http://samba.org/samba/history/${PN}-4.5.0.html and"
-       elog "http://wiki.samba.org/index.php/Samba4/HOWTO "
-}

diff --git a/net-fs/samba/samba-4.6.4.ebuild b/net-fs/samba/samba-4.6.4.ebuild
deleted file mode 100644
index cc315b6cf68..00000000000
--- a/net-fs/samba/samba-4.6.4.ebuild
+++ /dev/null
@@ -1,299 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-PYTHON_COMPAT=( python2_7 )
-PYTHON_REQ_USE='threads(+),xml(+)'
-
-inherit python-single-r1 waf-utils multilib-minimal linux-info systemd eutils
-
-MY_PV="${PV/_rc/rc}"
-MY_P="${PN}-${MY_PV}"
-
-SRC_PATH="stable"
-[[ ${PV} = *_rc* ]] && SRC_PATH="rc"
-
-SRC_URI="mirror://samba/${SRC_PATH}/${MY_P}.tar.gz
-       
https://dev.gentoo.org/~polynomial-c/samba-4.6.0-disable-python-patches.tar.xz";
-[[ ${PV} = *_rc* ]] || \
-KEYWORDS="~amd64 ~hppa ~x86"
-
-DESCRIPTION="Samba Suite Version 4"
-HOMEPAGE="http://www.samba.org/";
-LICENSE="GPL-3"
-
-SLOT="0"
-
-IUSE="acl addc addns ads client cluster cups dmapi fam gnutls gpg iprint ldap 
pam python
-quota selinux syslog system-heimdal +system-mitkrb5 systemd test winbind 
zeroconf"
-
-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)
-CDEPEND="
-       >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}]
-       dev-lang/perl:=
-       dev-libs/libaio[${MULTILIB_USEDEP}]
-       dev-libs/libbsd[${MULTILIB_USEDEP}]
-       dev-libs/iniparser:0
-       dev-libs/popt[${MULTILIB_USEDEP}]
-       dev-python/subunit[${PYTHON_USEDEP},${MULTILIB_USEDEP}]
-       >=dev-util/cmocka-1.0.0[${MULTILIB_USEDEP}]
-       sys-apps/attr[${MULTILIB_USEDEP}]
-       
>=sys-libs/ldb-1.1.29[ldap(+)?,python(+),${PYTHON_USEDEP},${MULTILIB_USEDEP}]
-       sys-libs/libcap
-       sys-libs/ncurses:0=[${MULTILIB_USEDEP}]
-       sys-libs/readline:0=
-       >=sys-libs/talloc-2.1.9[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
-       >=sys-libs/tdb-1.3.12[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
-       >=sys-libs/tevent-0.9.31-r1[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
-       sys-libs/zlib[${MULTILIB_USEDEP}]
-       virtual/libiconv
-       pam? ( virtual/pam )
-       acl? ( virtual/acl )
-       addns? (
-               net-dns/bind-tools[gssapi]
-               dev-python/dnspython:=[${PYTHON_USEDEP}]
-       )
-       cluster? ( !dev-db/ctdb )
-       cups? ( net-print/cups )
-       dmapi? ( sys-apps/dmapi )
-       fam? ( virtual/fam )
-       gnutls? (
-               dev-libs/libgcrypt:0
-               >=net-libs/gnutls-1.4.0
-       )
-       gpg? ( app-crypt/gpgme )
-       ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] )
-       system-heimdal? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] )
-       system-mitkrb5? ( app-crypt/mit-krb5[${MULTILIB_USEDEP}] )
-       systemd? ( sys-apps/systemd:0= )"
-DEPEND="${CDEPEND}
-       ${PYTHON_DEPS}
-       virtual/pkgconfig
-       test? (
-               !system-mitkrb5? (
-                       >=sys-libs/nss_wrapper-1.1.3
-                       >=net-dns/resolv_wrapper-1.1.4
-                       >=net-libs/socket_wrapper-1.1.7
-                       >=sys-libs/uid_wrapper-1.2.1
-               )
-       )"
-RDEPEND="${CDEPEND}
-       python? ( ${PYTHON_DEPS} )
-       client? ( net-fs/cifs-utils[ads?] )
-       selinux? ( sec-policy/selinux-samba )
-       !dev-perl/Parse-Yapp
-"
-
-REQUIRED_USE="addc? ( python gnutls !system-mitkrb5 )
-       test? ( python )
-       addns? ( python )
-       ads? ( acl gnutls ldap )
-       gpg? ( addc )
-       ?? ( system-heimdal system-mitkrb5 )
-       ${PYTHON_REQUIRED_USE}"
-
-# the test suite is messed, it uses system-installed samba
-# bits instead of what was built, tests things disabled via use
-# flags, and generally just fails to work in a way ebuilds could
-# rely on in its current state
-RESTRICT="test"
-
-S="${WORKDIR}/${MY_P}"
-
-PATCHES=(
-       "${FILESDIR}/${PN}-4.4.0-pam.patch"
-       "${FILESDIR}/${PN}-4.5.1-compile_et_fix.patch"
-)
-
-#CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
-CONFDIR="${FILESDIR}/4.4"
-
-WAF_BINARY="${S}/buildtools/bin/waf"
-
-SHAREDMODS=""
-
-pkg_setup() {
-       python-single-r1_pkg_setup
-       if use cluster ; then
-               SHAREDMODS="idmap_rid,idmap_tdb2,idmap_ad"
-       elif use ads ; then
-               SHAREDMODS="idmap_ad"
-       fi
-}
-
-src_prepare() {
-       default
-
-       # install the patches from tarball(s)
-       eapply "${WORKDIR}/patches"
-
-       # un-bundle dnspython
-       sed -i -e '/"dns.resolver":/d' "${S}"/third_party/wscript || die
-
-       # unbundle iso8601 unless tests are enabled
-       use test || sed -i -e '/"iso8601":/d' "${S}"/third_party/wscript || die
-
-       # ugly hackaround for bug #592502
-       cp /usr/include/tevent_internal.h "${S}"/lib/tevent/ || die
-
-       sed -e 's:<gpgme\.h>:<gpgme/gpgme.h>:' \
-               -i source4/dsdb/samdb/ldb_modules/password_hash.c \
-               || die
-
-       # Friggin' WAF shit
-       multilib_copy_sources
-}
-
-multilib_src_configure() {
-       # when specifying libs for samba build you must append NONE to the end 
to 
-       # stop it automatically including things
-       local bundled_libs="NONE"
-       if ! use system-heimdal && ! use system-mitkrb5 ; then
-               
bundled_libs="heimbase,heimntlm,hdb,kdc,krb5,wind,gssapi,hcrypto,hx509,roken,asn1,com_err,NONE"
-       fi
-
-       local myconf=()
-       myconf=(
-               --enable-fhs
-               --sysconfdir="${EPREFIX}/etc"
-               --localstatedir="${EPREFIX}/var"
-               --with-modulesdir="${EPREFIX}/usr/$(get_libdir)/samba"
-               --with-piddir="${EPREFIX}/run/${PN}"
-               --bundled-libraries="${bundled_libs}"
-               --builtin-libraries=NONE
-               --disable-rpath
-               --disable-rpath-install
-               --nopyc
-               --nopyo
-       )
-       if multilib_is_native_abi ; then
-               myconf+=(
-                       $(use_with acl acl-support)
-                       $(usex addc '' '--without-ad-dc')
-                       $(use_with addns dnsupdate)
-                       $(use_with ads)
-                       $(use_with cluster cluster-support)
-                       $(use_enable cups)
-                       $(use_with dmapi)
-                       $(use_with fam)
-                       $(use_enable gnutls)
-                       $(use_with gpg gpgme)
-                       $(use_enable iprint)
-                       $(use_with ldap)
-                       $(use_with pam)
-                       $(usex pam 
"--with-pammodulesdir=${EPREFIX}/$(get_libdir)/security" '')
-                       $(use_with quota quotas)
-                       $(use_with syslog)
-                       $(use_with systemd)
-                       $(usex system-mitkrb5 '--with-system-mitkrb5' '')
-                       $(use_with winbind)
-                       $(usex python '' '--disable-python')
-                       $(usex test '--enable-selftest' '')
-                       $(use_enable zeroconf avahi)
-                       --with-shared-modules=${SHAREDMODS}
-               )
-       else
-               myconf+=(
-                       --without-acl-support
-                       --without-ad-dc
-                       --without-dnsupdate
-                       --without-ads
-                       --disable-avahi
-                       --without-cluster-support
-                       --disable-cups
-                       --without-dmapi
-                       --without-fam
-                       --disable-gnutls
-                       --without-gpgme
-                       --disable-iprint
-                       $(use_with ldap)
-                       --without-pam
-                       --without-quotas
-                       --without-syslog
-                       --without-systemd
-                       $(usex system-mitkrb5 '--with-system-mitkrb5' '')
-                       --without-winbind
-                       --disable-python
-               )
-       fi
-
-       CPPFLAGS="-I${SYSROOT}${EPREFIX}/usr/include/et ${CPPFLAGS}" \
-               waf-utils_src_configure ${myconf[@]}
-}
-
-multilib_src_compile() {
-       waf-utils_src_compile
-}
-
-multilib_src_install() {
-       waf-utils_src_install
-
-       # Make all .so files executable
-       find "${D}" -type f -name "*.so" -exec chmod +x {} +
-
-       if multilib_is_native_abi; then
-               # install ldap schema for server (bug #491002)
-               if use ldap ; then
-                       insinto /etc/openldap/schema
-                       doins examples/LDAP/samba.schema
-               fi
-
-               # create symlink for cups (bug #552310)
-               if use cups ; then
-                       dosym /usr/bin/smbspool /usr/libexec/cups/backend/smb
-               fi
-
-               # install example config file
-               insinto /etc/samba
-               doins examples/smb.conf.default
-
-               # Fix paths in example file (#603964)
-               sed \
-                       -e '/log file 
=/s@/usr/local/samba/var/@/var/log/samba/@' \
-                       -e '/include =/s@/usr/local/samba/lib/@/etc/samba/@' \
-                       -e '/path =/s@/usr/local/samba/lib/@/var/lib/samba/@' \
-                       -e '/path =/s@/usr/local/samba/@/var/lib/samba/@' \
-                       -e '/path =/s@/usr/spool/samba@/var/spool/samba@' \
-                       -i "${ED%/}"/etc/samba/smb.conf.default || die
-
-               # Install init script and conf.d file
-               newinitd "${CONFDIR}/samba4.initd-r1" samba
-               newconfd "${CONFDIR}/samba4.confd" samba
-
-               systemd_dotmpfilesd "${FILESDIR}"/samba.conf
-               systemd_dounit "${FILESDIR}"/nmbd.service
-               systemd_dounit "${FILESDIR}"/smbd.{service,socket}
-               systemd_newunit "${FILESDIR}"/smbd_at.service '[email protected]'
-               systemd_dounit "${FILESDIR}"/winbindd.service
-               systemd_dounit "${FILESDIR}"/samba.service
-       fi
-}
-
-multilib_src_test() {
-       if multilib_is_native_abi ; then
-               "${WAF_BINARY}" test || die "test failed"
-       fi
-}
-
-pkg_postinst() {
-       ewarn "Be aware the this release contains the best of all of Samba's"
-       ewarn "technology parts, both a file server (that you can reasonably 
expect"
-       ewarn "to upgrade existing Samba 3.x releases to) and the AD domain"
-       ewarn "controller work previously known as 'samba4'."
-
-       elog "For further information and migration steps make sure to read "
-       elog "http://samba.org/samba/history/${P}.html "
-       elog "http://samba.org/samba/history/${PN}-4.5.0.html and"
-       elog "http://wiki.samba.org/index.php/Samba4/HOWTO "
-}

diff --git a/net-fs/samba/samba-4.6.5.ebuild b/net-fs/samba/samba-4.6.5.ebuild
deleted file mode 100644
index 57ae514d8cd..00000000000
--- a/net-fs/samba/samba-4.6.5.ebuild
+++ /dev/null
@@ -1,299 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-PYTHON_COMPAT=( python2_7 )
-PYTHON_REQ_USE='threads(+),xml(+)'
-
-inherit python-single-r1 waf-utils multilib-minimal linux-info systemd eutils
-
-MY_PV="${PV/_rc/rc}"
-MY_P="${PN}-${MY_PV}"
-
-SRC_PATH="stable"
-[[ ${PV} = *_rc* ]] && SRC_PATH="rc"
-
-SRC_URI="mirror://samba/${SRC_PATH}/${MY_P}.tar.gz
-       
https://dev.gentoo.org/~polynomial-c/samba-4.6.0-disable-python-patches.tar.xz";
-[[ ${PV} = *_rc* ]] || \
-KEYWORDS="~amd64 ~arm64 ~hppa ~x86"
-
-DESCRIPTION="Samba Suite Version 4"
-HOMEPAGE="http://www.samba.org/";
-LICENSE="GPL-3"
-
-SLOT="0"
-
-IUSE="acl addc addns ads client cluster cups dmapi fam gnutls gpg iprint ldap 
pam python
-quota selinux syslog system-heimdal +system-mitkrb5 systemd test winbind 
zeroconf"
-
-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)
-CDEPEND="
-       >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}]
-       dev-lang/perl:=
-       dev-libs/libaio[${MULTILIB_USEDEP}]
-       dev-libs/libbsd[${MULTILIB_USEDEP}]
-       dev-libs/iniparser:0
-       dev-libs/popt[${MULTILIB_USEDEP}]
-       dev-python/subunit[${PYTHON_USEDEP},${MULTILIB_USEDEP}]
-       >=dev-util/cmocka-1.0.0[${MULTILIB_USEDEP}]
-       sys-apps/attr[${MULTILIB_USEDEP}]
-       
>=sys-libs/ldb-1.1.29[ldap(+)?,python(+),${PYTHON_USEDEP},${MULTILIB_USEDEP}]
-       sys-libs/libcap
-       sys-libs/ncurses:0=[${MULTILIB_USEDEP}]
-       sys-libs/readline:0=
-       >=sys-libs/talloc-2.1.9[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
-       >=sys-libs/tdb-1.3.12[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
-       >=sys-libs/tevent-0.9.31-r1[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
-       sys-libs/zlib[${MULTILIB_USEDEP}]
-       virtual/libiconv
-       pam? ( virtual/pam )
-       acl? ( virtual/acl )
-       addns? (
-               net-dns/bind-tools[gssapi]
-               dev-python/dnspython:=[${PYTHON_USEDEP}]
-       )
-       cluster? ( !dev-db/ctdb )
-       cups? ( net-print/cups )
-       dmapi? ( sys-apps/dmapi )
-       fam? ( virtual/fam )
-       gnutls? (
-               dev-libs/libgcrypt:0
-               >=net-libs/gnutls-1.4.0
-       )
-       gpg? ( app-crypt/gpgme )
-       ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] )
-       system-heimdal? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] )
-       system-mitkrb5? ( app-crypt/mit-krb5[${MULTILIB_USEDEP}] )
-       systemd? ( sys-apps/systemd:0= )"
-DEPEND="${CDEPEND}
-       ${PYTHON_DEPS}
-       virtual/pkgconfig
-       test? (
-               !system-mitkrb5? (
-                       >=sys-libs/nss_wrapper-1.1.3
-                       >=net-dns/resolv_wrapper-1.1.4
-                       >=net-libs/socket_wrapper-1.1.7
-                       >=sys-libs/uid_wrapper-1.2.1
-               )
-       )"
-RDEPEND="${CDEPEND}
-       python? ( ${PYTHON_DEPS} )
-       client? ( net-fs/cifs-utils[ads?] )
-       selinux? ( sec-policy/selinux-samba )
-       !dev-perl/Parse-Yapp
-"
-
-REQUIRED_USE="addc? ( python gnutls !system-mitkrb5 )
-       test? ( python )
-       addns? ( python )
-       ads? ( acl gnutls ldap )
-       gpg? ( addc )
-       ?? ( system-heimdal system-mitkrb5 )
-       ${PYTHON_REQUIRED_USE}"
-
-# the test suite is messed, it uses system-installed samba
-# bits instead of what was built, tests things disabled via use
-# flags, and generally just fails to work in a way ebuilds could
-# rely on in its current state
-RESTRICT="test"
-
-S="${WORKDIR}/${MY_P}"
-
-PATCHES=(
-       "${FILESDIR}/${PN}-4.4.0-pam.patch"
-       "${FILESDIR}/${PN}-4.5.1-compile_et_fix.patch"
-)
-
-#CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
-CONFDIR="${FILESDIR}/4.4"
-
-WAF_BINARY="${S}/buildtools/bin/waf"
-
-SHAREDMODS=""
-
-pkg_setup() {
-       python-single-r1_pkg_setup
-       if use cluster ; then
-               SHAREDMODS="idmap_rid,idmap_tdb2,idmap_ad"
-       elif use ads ; then
-               SHAREDMODS="idmap_ad"
-       fi
-}
-
-src_prepare() {
-       default
-
-       # install the patches from tarball(s)
-       eapply "${WORKDIR}/patches"
-
-       # un-bundle dnspython
-       sed -i -e '/"dns.resolver":/d' "${S}"/third_party/wscript || die
-
-       # unbundle iso8601 unless tests are enabled
-       use test || sed -i -e '/"iso8601":/d' "${S}"/third_party/wscript || die
-
-       # ugly hackaround for bug #592502
-       cp /usr/include/tevent_internal.h "${S}"/lib/tevent/ || die
-
-       sed -e 's:<gpgme\.h>:<gpgme/gpgme.h>:' \
-               -i source4/dsdb/samdb/ldb_modules/password_hash.c \
-               || die
-
-       # Friggin' WAF shit
-       multilib_copy_sources
-}
-
-multilib_src_configure() {
-       # when specifying libs for samba build you must append NONE to the end 
to 
-       # stop it automatically including things
-       local bundled_libs="NONE"
-       if ! use system-heimdal && ! use system-mitkrb5 ; then
-               
bundled_libs="heimbase,heimntlm,hdb,kdc,krb5,wind,gssapi,hcrypto,hx509,roken,asn1,com_err,NONE"
-       fi
-
-       local myconf=()
-       myconf=(
-               --enable-fhs
-               --sysconfdir="${EPREFIX}/etc"
-               --localstatedir="${EPREFIX}/var"
-               --with-modulesdir="${EPREFIX}/usr/$(get_libdir)/samba"
-               --with-piddir="${EPREFIX}/run/${PN}"
-               --bundled-libraries="${bundled_libs}"
-               --builtin-libraries=NONE
-               --disable-rpath
-               --disable-rpath-install
-               --nopyc
-               --nopyo
-       )
-       if multilib_is_native_abi ; then
-               myconf+=(
-                       $(use_with acl acl-support)
-                       $(usex addc '' '--without-ad-dc')
-                       $(use_with addns dnsupdate)
-                       $(use_with ads)
-                       $(use_with cluster cluster-support)
-                       $(use_enable cups)
-                       $(use_with dmapi)
-                       $(use_with fam)
-                       $(use_enable gnutls)
-                       $(use_with gpg gpgme)
-                       $(use_enable iprint)
-                       $(use_with ldap)
-                       $(use_with pam)
-                       $(usex pam 
"--with-pammodulesdir=${EPREFIX}/$(get_libdir)/security" '')
-                       $(use_with quota quotas)
-                       $(use_with syslog)
-                       $(use_with systemd)
-                       $(usex system-mitkrb5 '--with-system-mitkrb5' '')
-                       $(use_with winbind)
-                       $(usex python '' '--disable-python')
-                       $(usex test '--enable-selftest' '')
-                       $(use_enable zeroconf avahi)
-                       --with-shared-modules=${SHAREDMODS}
-               )
-       else
-               myconf+=(
-                       --without-acl-support
-                       --without-ad-dc
-                       --without-dnsupdate
-                       --without-ads
-                       --disable-avahi
-                       --without-cluster-support
-                       --disable-cups
-                       --without-dmapi
-                       --without-fam
-                       --disable-gnutls
-                       --without-gpgme
-                       --disable-iprint
-                       $(use_with ldap)
-                       --without-pam
-                       --without-quotas
-                       --without-syslog
-                       --without-systemd
-                       $(usex system-mitkrb5 '--with-system-mitkrb5' '')
-                       --without-winbind
-                       --disable-python
-               )
-       fi
-
-       CPPFLAGS="-I${SYSROOT}${EPREFIX}/usr/include/et ${CPPFLAGS}" \
-               waf-utils_src_configure ${myconf[@]}
-}
-
-multilib_src_compile() {
-       waf-utils_src_compile
-}
-
-multilib_src_install() {
-       waf-utils_src_install
-
-       # Make all .so files executable
-       find "${D}" -type f -name "*.so" -exec chmod +x {} +
-
-       if multilib_is_native_abi; then
-               # install ldap schema for server (bug #491002)
-               if use ldap ; then
-                       insinto /etc/openldap/schema
-                       doins examples/LDAP/samba.schema
-               fi
-
-               # create symlink for cups (bug #552310)
-               if use cups ; then
-                       dosym /usr/bin/smbspool /usr/libexec/cups/backend/smb
-               fi
-
-               # install example config file
-               insinto /etc/samba
-               doins examples/smb.conf.default
-
-               # Fix paths in example file (#603964)
-               sed \
-                       -e '/log file 
=/s@/usr/local/samba/var/@/var/log/samba/@' \
-                       -e '/include =/s@/usr/local/samba/lib/@/etc/samba/@' \
-                       -e '/path =/s@/usr/local/samba/lib/@/var/lib/samba/@' \
-                       -e '/path =/s@/usr/local/samba/@/var/lib/samba/@' \
-                       -e '/path =/s@/usr/spool/samba@/var/spool/samba@' \
-                       -i "${ED%/}"/etc/samba/smb.conf.default || die
-
-               # Install init script and conf.d file
-               newinitd "${CONFDIR}/samba4.initd-r1" samba
-               newconfd "${CONFDIR}/samba4.confd" samba
-
-               systemd_dotmpfilesd "${FILESDIR}"/samba.conf
-               systemd_dounit "${FILESDIR}"/nmbd.service
-               systemd_dounit "${FILESDIR}"/smbd.{service,socket}
-               systemd_newunit "${FILESDIR}"/smbd_at.service '[email protected]'
-               systemd_dounit "${FILESDIR}"/winbindd.service
-               systemd_dounit "${FILESDIR}"/samba.service
-       fi
-}
-
-multilib_src_test() {
-       if multilib_is_native_abi ; then
-               "${WAF_BINARY}" test || die "test failed"
-       fi
-}
-
-pkg_postinst() {
-       ewarn "Be aware the this release contains the best of all of Samba's"
-       ewarn "technology parts, both a file server (that you can reasonably 
expect"
-       ewarn "to upgrade existing Samba 3.x releases to) and the AD domain"
-       ewarn "controller work previously known as 'samba4'."
-
-       elog "For further information and migration steps make sure to read "
-       elog "http://samba.org/samba/history/${P}.html "
-       elog "http://samba.org/samba/history/${PN}-4.5.0.html and"
-       elog "http://wiki.samba.org/index.php/Samba4/HOWTO "
-}

Reply via email to