commit:     10115eb52ac13ab071a5890ec4ad1543060cb424
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 21 11:18:16 2017 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Thu Dec 21 11:32:10 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10115eb5

net-fs/samba: Removed old.

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 net-fs/samba/Manifest              |   6 -
 net-fs/samba/samba-4.5.13.ebuild   | 282 ---------------------------------
 net-fs/samba/samba-4.5.14.ebuild   | 282 ---------------------------------
 net-fs/samba/samba-4.6.8-r1.ebuild | 305 ------------------------------------
 net-fs/samba/samba-4.6.9.ebuild    | 309 -------------------------------------
 net-fs/samba/samba-4.7.0-r1.ebuild | 304 ------------------------------------
 net-fs/samba/samba-4.7.1.ebuild    | 305 ------------------------------------
 7 files changed, 1793 deletions(-)

diff --git a/net-fs/samba/Manifest b/net-fs/samba/Manifest
index ebe6e99a5e2..519e479e25e 100644
--- a/net-fs/samba/Manifest
+++ b/net-fs/samba/Manifest
@@ -1,16 +1,10 @@
 DIST samba-4.2.14.tar.gz 20883281 BLAKE2B 
90bff4ef0752b952e2e31b6e86223ae7e785248ef01b15d6a26f0912452cbfdb1e828b88c81c8b6d36e1e2ca7d79a00ffd196625eb6ee96b587483a25044fd47
 SHA512 
269dd74ba788657434f51ac70953a293c94bcf98280eaa6f44634c5da54169a5ea7865d543a7c23860c4750a40cdee7caeaf5c7fc3dbc137f444e90f31a09890
 DIST samba-4.5.10.tar.gz 20989431 BLAKE2B 
564d7c98dad101e74be1d54790abd3907b502ad1bdb7322be4853370dd6877a8f5604fec967555cf048978cbcb5a4ad111810657dcc8a58d0cea2843dfcd29ff
 SHA512 
046bae9c66083a4fe656d6a7b02b64343c66e0ea4925193a898dbda107b5b158d1897f16c36f4c393a30457a49215fa6ef91720367f4946760ec48ce02a4a68a
 DIST samba-4.5.11-disable-python-patches.tar.xz 6292 BLAKE2B 
c2a32a1059a02bc1c87ce5f604cbc5878c654b8f693c8486b5ba63b37513444915a7b6389fe82b7e31ab2f9577dd8462eddba60b4f4f756b4ed1145ce7bd90ae
 SHA512 
f0e3076e3e1ecaae3f06b3ef30efc81719fb3f63a1041dcbdae4b62ca4cf693732f9eb16f047d046d4930136fed82194e82b455ea888e12cf845b3e6a122d57d
-DIST samba-4.5.13.tar.gz 21013879 BLAKE2B 
916c1171d1b7a152105e5e467be8cd8759e6f397a0698c0763399d28df79cc429f89198836b753dc2e21ddffaccac1507872fdf77b5efea18a4b10947dbc4d7d
 SHA512 
c495dffeee4dd83d710182713c8a0e6730f250fab2d03b62cc0f5354497fbc41d5140d7dea5c4089c026a7e9b820e48c94806bbc44b6594c9e5bad977793eb4a
-DIST samba-4.5.14.tar.gz 21016317 BLAKE2B 
7d04cf36bba1b361570963d83064bd5a99036b53f1378af471634d864edddfc08ad44ca413746e108b73331989f1eb18e7f9b6cdc92ba03696a9f2ad26f56d71
 SHA512 
35b6ec38b6750ebdd387eade3c7a1f61c83a4d6642c9a2a8a811d84b506c9f20ed69fa1db9065852ce792fd769fe151177200cdd55de308017cd5416f80eb095
 DIST samba-4.5.15.tar.gz 21020181 BLAKE2B 
0d113c4d3147102e2cc192a14d145c46930b8f772683bc27e90b264e43c5660298e468c494de41e80fb2dcd80a0dbef0b9ce1f74dc9e89eca52865ceba605382
 SHA512 
e77d746767d55ff933cddbb4d6e0f97f0b12e630c564852bee02f5f9764633167f1c098df7606af2a1930a9bdd4665fb79d7748ff07532db4e9a581fb639450c
 DIST samba-4.6.11.tar.gz 21157318 BLAKE2B 
7784b898fdf5bf96f3d0b0d3786be20aab55b05a76f4ccafe77c8882aa980e74a39a8747ef68d80965010c6bc316e3c271c942594a8874801f9358721c8fdbe9
 SHA512 
8acb0620cc7fa87692edfa1b42883384b1ae88c6b9d75432169d53c1c6f20415ed4980b2ba9d023cc69a8a1b457bcb25ecea9bdf427accfe9fc05431c3480283
 DIST samba-4.6.12.tar.gz 21160637 BLAKE2B 
b12046423f103883fd2d9b5ce12af2bea25c2b26bf8c039619359b789e675f963aec044e11443a8f6a865ea8564d58fe12d5268f00d71c9544e1abd27e9647f7
 SHA512 
e45a6ee43bcb2fba224bf38771d30daace46ad92b05f580a261aaacf7de9eca3d71cb4f4b2f956d83d84df489cb6f015b3b7abb42702ed2936bf92faa945340c
 DIST samba-4.6.7-disable-python-patches.tar.xz 8896 BLAKE2B 
99496f91d015f10d111e2a8738c9e66b3c1f1958c0e0894d8e9d8f3ff141fbedaa25d93699b702ab69130fda770c80c3ed4280de0af1090dedbcfd5784b72222
 SHA512 
c45e548a49735e17b568bebf07dc7409de3de0f93256d1dcf345d2723a27d22a51d860ed921785354fda691f83be4eca3b9d618d5c332438ebf97518a01983eb
-DIST samba-4.6.8.tar.gz 21139872 BLAKE2B 
71b82ba1d8c021a5c038a14ab254530f29a10826a3a283cf1b47f2c36246d8f74d53fbae53828ca7bbe3d00ad67fb2784e049f51cd38da2545feede22445c6aa
 SHA512 
fb40144210361bdeab09007aa49fa85077fbc8eeae2c49bcdafb01d33ec40425160882979f0829005a89766ed4fd4e36d7f952f6dbf6e0178f5b0945dc8d8efb
-DIST samba-4.6.9.tar.gz 21154233 BLAKE2B 
476b0452b41408263c3096be0e1594c57364232a79bfbf8030abd353a80da1a2d6fdebb243c6b2f3da77aba1ee5aff97738bacaceba41767486f6c2cad0fccc4
 SHA512 
20a0828afe2b7f834543a3efc8618bba78951f728da99434f084b7220477ef9e4b1ef09d5a3a5a16a96e1f0704bb2c8d2c3418402f0b8e5f8201bc022a4937aa
-DIST samba-4.7.0.tar.gz 16830569 BLAKE2B 
703a995206d60a3b35f775e2c0209c5c6615bc13492176c532b362a2d73b5e9a31a82b7f38b5911bd49e2d083f22416b7f89de185810a1ed1b65a88a5dd69ffc
 SHA512 
c69da34566ec672ed17f86ecf793154374c71dd33b588adceed5fbd9345d978a4ffeced5d3a4033edb4daedac2294ed088beed8cdde19724f9d03da54e22e4ee
-DIST samba-4.7.1.tar.gz 16844730 BLAKE2B 
3d876b399fdb6d5c985d12087905c6abb7e32e98333fb42ff108af74533d7227c3b62cbb2d95c606e81c2657506aad18789c6c4b21d65517fa9792d1e10faa5d
 SHA512 
eaaa494501e0029fab8b0f1789fb28d33104a51b7365ba53741218786a4331f5adc5ea86d65aac1ccd970103c74a99fb875c4ba74460bd8b4597aaefbab18c7c
 DIST samba-4.7.3.tar.gz 16845436 BLAKE2B 
d38f58a944d19f4475ab636f09a4f9b97b92897b1d8d041efc07e1d2724d07fafa3686b5d38b847b896c4f024f5cf7330eaca4b6eb4cd34da73a32fe94e8c69e
 SHA512 
3fd9d5f208201e3137c5966e10878ba2fc00fa80b3468e8b402e08f941b5508edd7181720033aaa25fcff0ee0ae5438619423d41a9b9b3d14dc3743fbe3f902f
 DIST samba-disable-python-patches-4.2.12.tar.xz 6052 BLAKE2B 
0ae755cbbd8921f4e2f5adf797cd3a77f81bb15ac2d1a65645bc9b53184c397a2bb35f83b88a0de680cc834a63b263e883e91206a7df99735f5ef8f091f54bb0
 SHA512 
c527d0a052d3211e5b12c17bc94db56cc5e5545189ed65a760c0656c94c22e27a4b159e6439eb0370873e1619873a741f3b3bd10d3876b38eb3914a87eace372
 DIST samba-disable-python-patches-4.5.0_rc1.tar.xz 6204 BLAKE2B 
b46ea587df583ea71c8ac3d6ce3045d80bcb0cc3d7eab8fa23f812d76dcb6258e4fbec7723128da29fa5369b9372370145904798b21d4e75bb62946ddd98bc0e
 SHA512 
920089ba3c6e8e7d913b1d7ef1017262a19d1af41215adb30cfc98a57556efc4b0116931d4ef774c01124149d8eca2be3a23814ce7e11daf0180d2c111799927

diff --git a/net-fs/samba/samba-4.5.13.ebuild b/net-fs/samba/samba-4.5.13.ebuild
deleted file mode 100644
index 5b022e87b8e..00000000000
--- a/net-fs/samba/samba-4.5.13.ebuild
+++ /dev/null
@@ -1,282 +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="https://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}
-       app-text/docbook-xsl-stylesheets
-       dev-libs/libxslt
-       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}"
-               --without-lttng
-               --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 "https://www.samba.org/samba/history/${P}.html "
-       elog "https://www.samba.org/samba/history/${PN}-4.5.0.html and"
-       elog "https://wiki.samba.org/index.php/Samba4/HOWTO "
-}

diff --git a/net-fs/samba/samba-4.5.14.ebuild b/net-fs/samba/samba-4.5.14.ebuild
deleted file mode 100644
index cbf7ec7d4fc..00000000000
--- a/net-fs/samba/samba-4.5.14.ebuild
+++ /dev/null
@@ -1,282 +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}
-       app-text/docbook-xsl-stylesheets
-       dev-libs/libxslt
-       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}"
-               --without-lttng
-               --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.8-r1.ebuild 
b/net-fs/samba/samba-4.6.8-r1.ebuild
deleted file mode 100644
index f0db4e738cc..00000000000
--- a/net-fs/samba/samba-4.6.8-r1.ebuild
+++ /dev/null
@@ -1,305 +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/~axs/samba-4.6.7-disable-python-patches.tar.xz";
-[[ ${PV} = *_rc* ]] || \
-KEYWORDS="~amd64 ~arm64 ~x86"
-
-DESCRIPTION="Samba Suite Version 4"
-HOMEPAGE="https://www.samba.org/";
-LICENSE="GPL-3"
-
-SLOT="0"
-
-IUSE="acl addc addns ads client cluster cups debug 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/ldb-1.1.31[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 )
-       debug? ( dev-util/lttng-ust )
-       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}
-       app-text/docbook-xsl-stylesheets
-       dev-libs/libxslt
-       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 debug lttng)
-                       $(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)
-                       $(use_with debug lttng)
-                       --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 "https://www.samba.org/samba/history/${P}.html "
-       elog "https://www.samba.org/samba/history/${PN}-4.5.0.html and"
-       elog "https://wiki.samba.org/index.php/Samba4/HOWTO "
-}

diff --git a/net-fs/samba/samba-4.6.9.ebuild b/net-fs/samba/samba-4.6.9.ebuild
deleted file mode 100644
index 3f12fb2f123..00000000000
--- a/net-fs/samba/samba-4.6.9.ebuild
+++ /dev/null
@@ -1,309 +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/~axs/samba-4.6.7-disable-python-patches.tar.xz";
-[[ ${PV} = *_rc* ]] || \
-KEYWORDS="~amd64 ~arm64 ~x86"
-
-DESCRIPTION="Samba Suite Version 4"
-HOMEPAGE="http://www.samba.org/";
-LICENSE="GPL-3"
-
-SLOT="0"
-
-IUSE="acl addc addns ads ceph client cluster cups debug 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/ldb-1.1.31[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}]
-       )
-       ceph? ( sys-cluster/ceph )
-       cluster? ( !dev-db/ctdb )
-       cups? ( net-print/cups )
-       debug? ( dev-util/lttng-ust )
-       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}
-       app-text/docbook-xsl-stylesheets
-       dev-libs/libxslt
-       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"
-       "${FILESDIR}/${PN}-glibc-2.26-no_rpc.patch" #637320
-)
-
-#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_enable ceph cephfs)
-                       $(use_with cluster cluster-support)
-                       $(use_enable cups)
-                       $(use_with debug lttng)
-                       $(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
-                       --disable-cephfs
-                       --without-cluster-support
-                       --disable-cups
-                       --without-dmapi
-                       --without-fam
-                       --disable-gnutls
-                       --without-gpgme
-                       --disable-iprint
-                       $(use_with ldap)
-                       $(use_with debug lttng)
-                       --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.7.0-r1.ebuild 
b/net-fs/samba/samba-4.7.0-r1.ebuild
deleted file mode 100644
index abccdda2227..00000000000
--- a/net-fs/samba/samba-4.7.0-r1.ebuild
+++ /dev/null
@@ -1,304 +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"
-[[ ${PV} = *_rc* ]] || \
-KEYWORDS="~amd64 ~arm64 ~x86"
-
-DESCRIPTION="Samba Suite Version 4"
-HOMEPAGE="https://www.samba.org/";
-LICENSE="GPL-3"
-
-SLOT="0"
-
-IUSE="acl addc addns ads ceph client cluster cups debug 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.1.1[${MULTILIB_USEDEP}]
-       sys-apps/attr[${MULTILIB_USEDEP}]
-       
>=sys-libs/ldb-1.2.2[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.14[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
-       >=sys-libs/tevent-0.9.33[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}]
-       )
-       ceph? ( sys-cluster/ceph )
-       cluster? ( !dev-db/ctdb )
-       cups? ( net-print/cups )
-       debug? ( dev-util/lttng-ust )
-       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-1.15.1[${MULTILIB_USEDEP}] )
-       systemd? ( sys-apps/systemd:0= )"
-DEPEND="${CDEPEND}
-       ${PYTHON_DEPS}
-       app-text/docbook-xsl-stylesheets
-       dev-libs/libxslt
-       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 )
-       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"
-       "${FILESDIR}"/talloc-disable-python.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
-
-       # 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_enable ceph cephfs)
-                       $(use_with cluster cluster-support)
-                       $(use_enable cups)
-                       $(use_with debug lttng)
-                       $(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
-                       --disable-cephfs
-                       --without-cluster-support
-                       --disable-cups
-                       --without-dmapi
-                       --without-fam
-                       --disable-gnutls
-                       --without-gpgme
-                       --disable-iprint
-                       $(use_with ldap)
-                       $(use_with debug lttng)
-                       --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 "https://www.samba.org/samba/history/${P}.html "
-       elog "https://www.samba.org/samba/history/${PN}-4.5.0.html and"
-       elog "https://wiki.samba.org/index.php/Samba4/HOWTO "
-}

diff --git a/net-fs/samba/samba-4.7.1.ebuild b/net-fs/samba/samba-4.7.1.ebuild
deleted file mode 100644
index e04ebce2c5b..00000000000
--- a/net-fs/samba/samba-4.7.1.ebuild
+++ /dev/null
@@ -1,305 +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"
-[[ ${PV} = *_rc* ]] || \
-KEYWORDS="~amd64 ~arm64 ~x86"
-
-DESCRIPTION="Samba Suite Version 4"
-HOMEPAGE="http://www.samba.org/";
-LICENSE="GPL-3"
-
-SLOT="0"
-
-IUSE="acl addc addns ads ceph client cluster cups debug 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.1.1[${MULTILIB_USEDEP}]
-       sys-apps/attr[${MULTILIB_USEDEP}]
-       
>=sys-libs/ldb-1.2.2[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.14[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
-       >=sys-libs/tevent-0.9.33[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}]
-       )
-       ceph? ( sys-cluster/ceph )
-       cluster? ( !dev-db/ctdb )
-       cups? ( net-print/cups )
-       debug? ( dev-util/lttng-ust )
-       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-1.15.1[${MULTILIB_USEDEP}] )
-       systemd? ( sys-apps/systemd:0= )"
-DEPEND="${CDEPEND}
-       ${PYTHON_DEPS}
-       app-text/docbook-xsl-stylesheets
-       dev-libs/libxslt
-       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 )
-       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"
-       "${FILESDIR}"/talloc-disable-python.patch
-       "${FILESDIR}/${PN}-glibc-2.26-no_rpc.patch" #637320
-)
-
-#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
-
-       # 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_enable ceph cephfs)
-                       $(use_with cluster cluster-support)
-                       $(use_enable cups)
-                       $(use_with debug lttng)
-                       $(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
-                       --disable-cephfs
-                       --without-cluster-support
-                       --disable-cups
-                       --without-dmapi
-                       --without-fam
-                       --disable-gnutls
-                       --without-gpgme
-                       --disable-iprint
-                       $(use_with ldap)
-                       $(use_with debug lttng)
-                       --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