diff options
-rw-r--r-- | net-fs/samba/ChangeLog | 7 | ||||
-rw-r--r-- | net-fs/samba/Manifest | 33 | ||||
-rw-r--r-- | net-fs/samba/samba-3.6.23-r1.ebuild | 482 |
3 files changed, 506 insertions, 16 deletions
diff --git a/net-fs/samba/ChangeLog b/net-fs/samba/ChangeLog index e220371fa333..61ece871186a 100644 --- a/net-fs/samba/ChangeLog +++ b/net-fs/samba/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-fs/samba # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v 1.671 2014/06/04 06:51:23 polynomial-c Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v 1.672 2014/06/11 08:08:30 mgorny Exp $ + +*samba-3.6.23-r1 (11 Jun 2014) + + 11 Jun 2014; Michał Górny <mgorny@gentoo.org> +samba-3.6.23-r1.ebuild: + Enable multilib support in samba-3. *samba-4.1.8 (04 Jun 2014) diff --git a/net-fs/samba/Manifest b/net-fs/samba/Manifest index 50d5f8d8ac51..08267ba546a8 100644 --- a/net-fs/samba/Manifest +++ b/net-fs/samba/Manifest @@ -52,28 +52,31 @@ DIST smb_traffic_analyzer_v2.diff.bz2 12226 SHA256 1bae7eafbe8ac2382313d5ab9d43d EBUILD samba-3.5.21.ebuild 12311 SHA256 2a849451f886614315680b28b944840d1c670a2b878329773de63a72797a6fa1 SHA512 5006f1afdc2df93f317d15e1e9781bee20eb0e17e4a15892cb5ebe8bb2ab0a7a56bbbf2ed67099620391eda14b53a8fdb78a5ee9634a489915fcf84b031704b7 WHIRLPOOL a295b28990480ed3e13cf76d4f04270739b2669837d5ea93691888c488ee10dad22cd4bcc2037b09e66be41eda4d3d2e064e28701acb1f2dc7acf80935283123 EBUILD samba-3.5.22.ebuild 12309 SHA256 dc195567858dc0c11b2b86fc42427e1066c5efeef29bfe047bdbac413a62007d SHA512 82125fe1d5ba33f57ca06e513090eb0f2cedcda3242773b8734b4b0a18c68ab12f9149651908ddffbe3b2687b9876491a6cbbee7dc4f1e0584a5eef218ff8a57 WHIRLPOOL 9e87a5fb631fd519c2fc89da8a1a591fc9a4eb58eee63052f09321a6f115dbd82e8dd383843b6e6feffe68edaacb4de5c6ba6e9e66a098fa0cddc480988776c8 EBUILD samba-3.6.22.ebuild 12795 SHA256 c762901545642fa9a73a20215dfdd59f68016f9ff52bcc075b089fa69a799815 SHA512 c882fa703e9bcae93dfab822d91a24f3222c748c2b371294b7610a031e55a142702ff7bce361bcf6d3578bd5100fb5b6246697e89c1ec3f104d546070d108c18 WHIRLPOOL dd2d473025a081aed8479cfe16db0e180a00baa0e71bff6c0c171f13e01e9af496d52e549e4ac18d05b0f6d1008c5e758ce8c7d010ebaac4853a481ed8ab1dec +EBUILD samba-3.6.23-r1.ebuild 13458 SHA256 9269f63e304ca2d4ee047007f5b83589594d2cc1b0343ab52b3804de83f7f422 SHA512 6eda6105068320a090d108f3795d00da250206e8c212bd4cb4ff11739ca8ea13df1b530e45bcefe59ad2bed381fb2aa637d5413936404087a543b2999c47afcc WHIRLPOOL dad72de66f69481e8dadb4c8c96346113b7d1fa7a6b884832419d4bff7401da1880b533a58f37d69527b0b9acb27a167f3ce89fc8eda2733581b68583c84a014 EBUILD samba-3.6.23.ebuild 12795 SHA256 99bd47dd825dcb1a663a1c29c3d3704a7b41e5ad065ba202eed3488693a83ca8 SHA512 50a40edf70b0e83f59ebe546da3e9939cee293732d50e45c22911115507dfc47e93bca18746582548efd8bd027877e1b5a0f6328a0fab003520b7da9c65fa6fe WHIRLPOOL e53646ca53ad9064180c2a63b7ff5976c8af8f1e351480fc0f61bb6c26e35edaa4ac9960f0af34a7b50a8bdb5822a12fd2542f24dd994e5c2a1030bd2de65199 EBUILD samba-4.0.17.ebuild 4813 SHA256 ec98ed3faab01945f06557ab6aa652e9c65b16ff0053bdb434c76614a83ed65f SHA512 a3bc70bc74b451dfb7a30767371e1c43a20032de6359bbcc8a2ce7f12810e03c11d3df71dafc48d8070300932caf46c989688bf892eb03af5e3de60e89542653 WHIRLPOOL 28b457101b6e843fadf53a63f571887dc8730a3db01bc8d840570c9676fb76c4865e91264af32353ff9fcca871a85810e3651f17e3cb7edcab700defb91b950e EBUILD samba-4.0.18.ebuild 4813 SHA256 1a87dbe228774fd8e0f433a69e278eba071f32e8d00b2648ec55346a20b83c84 SHA512 4dba363acf46e50f704a21e6e51f8460663bbdc070fff94537d375a6e387737bd2cfeb1f3f484cea037ce67a7ae688c7156a17aa7d9402b323dec1c82923dad6 WHIRLPOOL ca59d2cbd78d8c37c290b2e6b22f375f1ef1b24b9ba36ecac19195a5aea2b59d05ccfb8f7cf7be167985b3693c79a0e10e9c18b7e5192301e5e4c9075d663163 EBUILD samba-4.1.7.ebuild 4656 SHA256 253ad25f2b98acaac807d572d12bc703745006a9f299b079044061ba26d449f0 SHA512 244fd932d564e43df2ec19c3a5d7137d8e0299326d8727e37f39ec0e99cea30f9bd398a286caae99e3bdec1762ffe601c20b6fb193ff9be48c3d1fd0f0aad0ea WHIRLPOOL 85faffb9c38bb4c4e6ad81de8c1aeed60d77def33ebea80b373f07febba4832c56ad5e1bc81818ff21be157d9137bc906ee1c93ef8fc35d56a1f75823c077da9 EBUILD samba-4.1.8.ebuild 4665 SHA256 91afaca7cef147e128c80096a24dc97ae368142959c53e96da6c87b891cb3543 SHA512 254630e39543e7ff2c5bb86ebf17e76a4a03312dce7beba1faae308334f1501c261b3b6f0244e0b38af076fc2b9bd8b121572aa2fb7e5f8f48aa46ad2491c60e WHIRLPOOL 31f2544a2e1efc3f494845ebd81a1142ba9f508218e03a08a6e95deab198042edf64f94296afcee9ef94cac00add848dfa4f491261e3208b5bc8a2e3ad38cb2b -MISC ChangeLog 4113 SHA256 c414a157fc1c7c355bda45023e5d253849cb5134f63d6f25bbbb19e904422359 SHA512 fd5bac3a7d60c372ced9bf37a0d5eee2fefdc86ee1dcb4a79676613f6ae6144fd9e435dbac04559aea18c5a10c329f8a78e8dc82843fc0380148b188b0f749df WHIRLPOOL b9fac255d786f55dda4c7f8bd65f05d270c0d696c5c149bf568357abdf6c5a3cf958a65554e317ad75e30968025003615cc394b8d03986fd4b99ce688ffd02eb +MISC ChangeLog 4253 SHA256 44d1c70d9325f4d5af90a2d876502d6314529a4ae04cc84d72cd84337a385642 SHA512 c7c9d97b99edf98d27ecfd94f84b2934310053021ee81a6357c6b66398143de3577ce97e9b578454b7d74cdf4811992dd42630eaeeb77d6270289143edc49ad7 WHIRLPOOL eaae5805591a549bdcab5558e1aac7d9be058552a563179057df0b3c88e282cbe1cbbb56484b963c7761b0a4cc99a066c2b26ee0cbfa3ed92b6c889aff96bbba MISC ChangeLog-2013 106689 SHA256 00ac832a137c7ce1d21be794b45339e1f4e9c51eb1b796cbcac90a03e1cf5453 SHA512 9dc4e4e22042db7f5ff3a474eb7a454044ea6958ffc3ba5c5de6f09608cfbbcaed8db00763a38995276de03a5f1c728fc783d4addaca7da16f4be76a4e49fd6f WHIRLPOOL 85a746ae34c0386ecb151f5f323b92615cce971b1e46f249cccfdc682bdddd7dad080dd4ffbe5748f093ee11db3f5182cae6d85191a37014639a56040eff9644 MISC metadata.xml 1514 SHA256 c10deb71703017ec67f4e5bac297d9b4581fec3d8b5549b6aea2a43bda642bc0 SHA512 9e67e8f7e0c972046e32bf4539142559c24183d6c3469e5af2f901728a3c02a9fbfd50e948a9fd414107fd0cb2a8de709ffe3fc5bf3372c77a4a3db6dc622ecc WHIRLPOOL ec92ea6a1b03e70c791670e97e7d9e07e6bdb82c24ed08c186e786afcd009ab63fbee7d481a4cdc394632ad312e58a2048dae3ff333f6f7a1ad19add55e2c8f8 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.22 (GNU/Linux) +Version: GnuPG v2 -iQIcBAEBCAAGBQJTjsHsAAoJEPiazRVxLXTFN78QAJc+9k2xnpY6gXxrhL6/BXJE -J3hu1BsTvTMPT8+uVEV8SxJ3ixehPy/cNfWq16+D9iqAbUzimli5KRMaqL5dn8RQ -yHy3ZqmiQ6oTg9YdlKnzOdy8lzVs4m+ei4FjZGBAFA10QLpU9rkjqA3XMNVDp73f -41lkVsv+uXuKhLuFlPYEPmJmWggpayHInZzN19PJ51hwo8P0rV7gIeol9naJmRau -fqcDv9a/7s/VaJOWhmVXmlx55imQ2uDrqfiT7vRhj13WhGwq4FAtFENk5uuHQ9tO -9BBlPbrT7R64iX3s0aAkPWfn/cOr795urhr0xAgMtzGVVOJWp15RcKZRRK1PiMDS -759tQTTqgFuRyWOxRz8ND1eQc2OK53E6sZHZ04H+bDK5AdrzKkx0Z1pbVvHqOWXm -qe4/qxpt/wujTmRNTvdXmK/Te/BKrtCBvGg/2dN0oT1SVOF/r90FjyUZBN1YLnuv -GqbHXyVC7vPRtd/Ro2c8/VGP+yrJejS+Gk5Y8WmQhVEFWkp4soLL9k5duAXiHRm8 -b5bTuEaSu0uU/xd6Faf0DjDaBB4s1tIPq4gTONtS5+PCC6FbTUkOk3jdc22hupjq -AiGnk74/qrnVlzgwoxBVCB5ocd5qLkChjJa5OCTTYk/qM68nz05/m1XHY2DPMi7S -XCgQ3amzaLYqDZYbeFO1 -=Pb1z +iQJ8BAEBCABmBQJTmA6AXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w +ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2REJCMDdDQzRGMERBRDA2RUEwQUZFNDFC +MDdBMUFFQUVGQjQ0NjRFAAoJELB6GurvtEZOqvoP/0D1M28KMNLy89zJPgJfm2M2 +fmz0ecFdtLRmmal7Q9o2zuQX9i5Gdtk8jRb1WQA6B/4PMUoHhbLiUzXsBRc93W11 +4ALA0liqU+iEBJmZMMpDRNGxxAR4m2wcXbMgGPQ6GKmiua1PGB25ahFZbrp8GkN6 +RGdfxcY+AUhfAdYAyVUsYPuDg3XkLJfV05wPhhiXuiFJ96VKmsi1GNbd1gBCQFDU +6CUlm9byqBX1Wp6VG98qsLKm+TinxkWxdpBFKiNblA4585oRfBWOQZe3bD0J/1Nz +0MSgQrxMw3K8x8kfo5h4QJ6W6NHxmFoHbSBXL2lkeIrdxULV3NtJaQoofOYCDRcv +ydLbbsuX4Ii9RxVo5KZFU7ffJAFdP5f1woyKfY5RNFg++mDt6MECVTVUoS+4L6yo +5VH/8xDOk2f92YCyW74E9+j3VA9p8JYzXHr+9FIgtIUwgxHUs2tkiuP9MQ8gr7Ib +sRrdRq7YBwgJLEHCA9JgMmvJ0A1e9YX3UT4c9F3fE3/L4QA9Ct7ahGOkpU3K6ee7 +BxVC3ztzWXAJGkvsBrOusfZCDRCQcm4RJ4NWY77GMquYJDHVIUpcRwkgnuaERKiK +Wsun5GupRBc7lQwJFfzzAfEDmRuIxrUG/sPdw11N1s/3I68hu2fqAbTzTimlyY1l ++nsKzpXmik3cFngEogss +=Riw3 -----END PGP SIGNATURE----- diff --git a/net-fs/samba/samba-3.6.23-r1.ebuild b/net-fs/samba/samba-3.6.23-r1.ebuild new file mode 100644 index 000000000000..125bf8b875af --- /dev/null +++ b/net-fs/samba/samba-3.6.23-r1.ebuild @@ -0,0 +1,482 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/samba-3.6.23-r1.ebuild,v 1.1 2014/06/11 08:08:30 mgorny Exp $ + +EAPI=5 + +inherit pam versionator multilib multilib-minimal eutils flag-o-matic systemd + +MY_PV=${PV/_/} +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="Library bits of the samba network filesystem" +HOMEPAGE="http://www.samba.org/" +SRC_URI="mirror://samba/stable/${MY_P}.tar.gz" +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~arm-linux ~x86-linux" +IUSE="acl addns ads +aio avahi caps +client cluster cups debug dmapi doc examples fam + ldap ldb +netapi pam quota +readline selinux +server +smbclient smbsharemodes + swat syslog +winbind" + +DEPEND="dev-libs/popt + >=sys-libs/talloc-2.0.5[${MULTILIB_USEDEP}] + >=sys-libs/tdb-1.2.9[${MULTILIB_USEDEP}] + >=sys-libs/tevent-0.9.18[${MULTILIB_USEDEP}] + virtual/libiconv[${MULTILIB_USEDEP}] + ads? ( virtual/krb5[${MULTILIB_USEDEP}] sys-fs/e2fsprogs + client? ( sys-apps/keyutils ) ) + avahi? ( net-dns/avahi[dbus] ) + caps? ( sys-libs/libcap[${MULTILIB_USEDEP}] ) + client? ( !net-fs/mount-cifs + dev-libs/iniparser[${MULTILIB_USEDEP}] ) + cluster? ( >=dev-db/ctdb-1.13 ) + cups? ( net-print/cups ) + debug? ( dev-libs/dmalloc ) + dmapi? ( sys-apps/dmapi ) + fam? ( virtual/fam[${MULTILIB_USEDEP}] ) + ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] ) + ldb? ( sys-libs/ldb ) + pam? ( virtual/pam[${MULTILIB_USEDEP}] + winbind? ( dev-libs/iniparser[${MULTILIB_USEDEP}] ) + ) + readline? ( >=sys-libs/readline-5.2 ) + selinux? ( sec-policy/selinux-samba ) + syslog? ( virtual/logger )" + +RDEPEND="${DEPEND} + kernel_linux? ( ads? ( net-fs/cifs-utils[ads] ) + client? ( net-fs/cifs-utils ) )" + +# Disable tests since we don't want to build that much here +RESTRICT="test" + +SBINPROGS="" +BINPROGS="" +KRBPLUGIN="" +PLUGINEXT=".so" +SHAREDMODS="" + +S=${WORKDIR}/${MY_P} + +# TODO: +# - enable iPrint on Prefix/OSX and Darwin? +# - selftest-prefix? selftest? +# - AFS? + +CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)" + +REQUIRED_USE=" + ads? ( ldap ) + swat? ( server ) +" + +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]]; then + if use winbind && + [[ $(tc-getCC)$ == *gcc* ]] && + [[ $(gcc-major-version)$(gcc-minor-version) -lt 43 ]] + then + eerror "It is a known issue that ${P} will not build with " + eerror "winbind use flag enabled when using gcc < 4.3 ." + eerror "Please use at least the latest stable gcc version." + die "Using sys-devel/gcc < 4.3 with winbind use flag." + fi + fi +} + +pkg_setup() { + if use server ; then + SBINPROGS="${SBINPROGS} bin/smbd bin/nmbd" + BINPROGS="${BINPROGS} bin/testparm bin/smbstatus bin/smbcontrol bin/pdbedit + bin/profiles bin/sharesec bin/eventlogadm bin/smbta-util + $(usex client "" "bin/smbclient")" + + use swat && SBINPROGS="${SBINPROGS} bin/swat" + use winbind && SBINPROGS="${SBINPROGS} bin/winbindd" + use ads && use winbind && KRBPLUGIN="${KRBPLUGIN} bin/winbind_krb5_locator" + fi + + if use client ; then + BINPROGS="${BINPROGS} bin/smbclient bin/net bin/smbget bin/smbtree + bin/nmblookup bin/smbpasswd bin/rpcclient bin/smbcacls bin/smbcquotas + bin/ntlm_auth" + + fi + + use cups && BINPROGS="${BINPROGS} bin/smbspool" +# use ldb && BINPROGS="${BINPROGS} bin/ldbedit bin/ldbsearch bin/ldbadd bin/ldbdel bin/ldbmodify bin/ldbrename"; + + if use winbind ; then + BINPROGS="${BINPROGS} bin/wbinfo" + SHAREDMODS="${SHAREDMODS}idmap_rid,idmap_hash" + use ads && SHAREDMODS="${SHAREDMODS},idmap_ad" + use cluster && SHAREDMODS="${SHAREDMODS},idmap_tdb2" + use ldap && SHAREDMODS="${SHAREDMODS},idmap_ldap,idmap_adex" + fi +} + +src_prepare() { + cp "${FILESDIR}/samba-3.4.2-lib.tevent.python.mk" "lib/tevent/python.mk" + + # ensure that winbind has correct ldflags (QA notice) + sed -i \ + -e 's|LDSHFLAGS="|LDSHFLAGS="\\${LDFLAGS} |g' \ + source3/configure || die "sed failed" + epatch "${CONFDIR}"/smb.conf.default.patch + + #bug #399141 wrap newer iniparser version + has_version ">=dev-libs/iniparser-3.0.0" && \ + append-cppflags "-Diniparser_getstr\(d,i\)=iniparser_getstring\(d,i,NULL\)" + + multilib_copy_sources +} + +multilib_src_configure() { + local myconf=() + + # we can't alter S since build system writes to '../' and therefore + # we need to duplicate the whole structure + cd source3 || die + + # Filter out -fPIE + [[ ${CHOST} == *-*bsd* ]] && myconf+=( --disable-pie ) + + #Allowing alpha/s390/sh to build + if use alpha || [[ ${ABI} == s390 ]] || use sh ; then + local CFLAGS=${CFLAGS} CXXFLAGS=${CXXFLAGS} + replace-flags -O? -O1 + fi + + # http://wiki.samba.org/index.php/CTDB_Setup + use cluster && myconf+=( --disable-pie ) + + # Upstream refuses to make this configurable + myconf+=( ac_cv_header_sys_capability_h=$(usex caps) ) + + # Notes: + # - automount is only needed in conjunction with NIS and we don't have that + # anymore => LDAP? + # - --without-dce-dfs and --without-nisplus-home can't be passed to configure but are disabled by default + econf "${myconf[@]}" \ + --with-piddir="${EPREFIX}"/var/run/samba \ + --sysconfdir="${EPREFIX}"/etc/samba \ + --localstatedir="${EPREFIX}"/var \ + $(multilib_native_use_enable debug developer) \ + --enable-largefile \ + --enable-socket-wrapper \ + --enable-nss-wrapper \ + $(multilib_native_use_enable swat) \ + $(multilib_native_use_enable debug dmalloc) \ + $(multilib_native_use_enable cups) \ + --disable-iprint \ + $(use_enable fam) \ + --enable-shared-libs \ + --disable-dnssd \ + $(multilib_native_use_enable avahi) \ + --with-fhs \ + --with-privatedir="${EPREFIX}"/var/lib/samba/private \ + --with-rootsbindir="${EPREFIX}"/var/cache/samba \ + --with-lockdir="${EPREFIX}"/var/cache/samba \ + --with-swatdir="${EPREFIX}"/usr/share/doc/${PF}/swat \ + --with-configdir="${EPREFIX}"/etc/samba \ + --with-logfilebase="${EPREFIX}"/var/log/samba \ + --with-pammodulesdir=$(getpam_mod_dir) \ + $(multilib_native_use_with dmapi) \ + --without-afs \ + --without-fake-kaserver \ + --without-vfs-afsacl \ + $(use_with ldap) \ + $(use_with ads) \ + $(use_with ads krb5 "${EPREFIX}"/usr) \ + $(use_with ads dnsupdate) \ + --without-automount \ + $(use_with pam) \ + $(use_with pam pam_smbpass) \ + $(use_with syslog) \ + $(use_with quota quotas) \ + $(use_with quota sys-quotas) \ + --without-utmp \ + --without-lib{talloc,tdb} \ + $(use_with netapi libnetapi) \ + $(use_with smbclient libsmbclient) \ + $(use_with smbsharemodes libsmbsharemodes) \ + $(use_with addns libaddns) \ + $(use_with cluster ctdb "${EPREFIX}"/usr) \ + $(use_with cluster cluster-support) \ + $(multilib_native_use_with acl acl-support) \ + $(use_with aio aio-support) \ + --with-sendfile-support \ + $(use_with winbind) \ + --with-shared-modules=${SHAREDMODS} \ + --without-included-popt \ + --without-included-iniparser +} + +multilib_src_compile() { + cd source3 || die + + # compile libs + if use addns ; then + einfo "make addns library" + emake libaddns + fi + if use netapi ; then + einfo "make netapi library" + emake libnetapi + fi + if use smbclient ; then + einfo "make smbclient library" + emake libsmbclient + fi + if use smbsharemodes ; then + einfo "make smbsharemodes library" + emake libsmbsharemodes + fi + + # compile modules + emake modules + + # compile pam moudles + if use pam ; then + einfo "make pam modules" + emake pam_modules + fi + + # compile winbind nss modules + if use winbind ; then + einfo "make nss modules" + emake nss_modules + fi + + # compile utilities + if multilib_is_native_abi; then + if [ -n "${BINPROGS}" ] ; then + einfo "make binprogs" + emake ${BINPROGS} + fi + if [ -n "${SBINPROGS}" ] ; then + einfo "make sbinprogs" + emake ${SBINPROGS} + fi + fi + + if [ -n "${KRBPLUGIN}" ] ; then + einfo "make krbplugin" + emake ${KRBPLUGIN}${PLUGINEXT} + fi +} + +multilib_src_install() { + cd source3 || die + + # pkgconfig files installation needed, bug #464818 + local pkgconfigdir=/usr/$(get_libdir)/pkgconfig + + # install libs + if use addns ; then + einfo "install addns library" + emake installlibaddns DESTDIR="${D}" + fi + if use netapi ; then + einfo "install netapi library" + emake installlibnetapi DESTDIR="${D}" + insinto $pkgconfigdir + doins pkgconfig/netapi.pc + fi + if use smbclient ; then + einfo "install smbclient library" + emake installlibsmbclient DESTDIR="${D}" + insinto $pkgconfigdir + doins pkgconfig/smbclient.pc + fi + if use smbsharemodes ; then + einfo "install smbsharemodes library" + emake installlibsmbsharemodes DESTDIR="${D}" + insinto $pkgconfigdir + doins pkgconfig/smbsharemodes.pc + fi + + # install modules + emake installmodules DESTDIR="${D}" + + if use pam ; then + einfo "install pam modules" + emake installpammodules DESTDIR="${D}" + + if use winbind ; then + newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind + doman ../docs/manpages/pam_winbind.8 + # bug #376853 + insinto /etc/security + doins ../examples/pam_winbind/pam_winbind.conf || die + fi + + newpamd "${CONFDIR}/samba.pam" samba + dodoc pam_smbpass/README + fi + + # Nsswitch extensions. Make link for wins and winbind resolvers + if use winbind ; then + einfo "install libwbclient" + emake installlibwbclient DESTDIR="${D}" + dolib.so ../nsswitch/libnss_wins.so + dosym libnss_wins.so /usr/$(get_libdir)/libnss_wins.so.2 + dolib.so ../nsswitch/libnss_winbind.so + dosym libnss_winbind.so /usr/$(get_libdir)/libnss_winbind.so.2 + insinto $pkgconfigdir + doins pkgconfig/wbclient.pc + einfo "install libwbclient related manpages" + doman ../docs/manpages/idmap_rid.8 + doman ../docs/manpages/idmap_hash.8 + if use ldap ; then + doman ../docs/manpages/idmap_adex.8 + doman ../docs/manpages/idmap_ldap.8 + fi + if use ads ; then + doman ../docs/manpages/idmap_ad.8 + fi + fi + + # install binaries + if multilib_is_native_abi; then + insinto /usr + for prog in ${SBINPROGS} ; do + dosbin ${prog} + doman ../docs/manpages/${prog/bin\/}* + done + + for prog in ${BINPROGS} ; do + dobin ${prog} + doman ../docs/manpages/${prog/bin\/}* + done + + # install scripts + if use client ; then + dobin script/findsmb + doman ../docs/manpages/findsmb.1 + fi + fi + + # install krbplugin + if [ -n "${KRBPLUGIN}" ] ; then + if has_version app-crypt/mit-krb5 ; then + insinto /usr/$(get_libdir)/krb5/plugins/libkrb5 + doins ${KRBPLUGIN}${PLUGINEXT} + elif has_version app-crypt/heimdal ; then + insinto /usr/$(get_libdir)/plugin/krb5 + doins ${KRBPLUGIN}${PLUGINEXT} + fi + insinto /usr + for prog in ${KRBPLUGIN} ; do + doman ../docs/manpages/${prog/bin\/}* + done + fi +} + +multilib_src_install_all() { + # install server components + if use server ; then + doman docs/manpages/vfs* docs/manpages/samba.7 + + diropts -m0700 + keepdir /var/lib/samba/private + + diropts -m1777 + keepdir /var/spool/samba + + diropts -m0755 + keepdir /var/{cache,log}/samba + keepdir /var/lib/samba/{netlogon,profiles} + keepdir /var/lib/samba/printers/{W32X86,WIN40,W32ALPHA,W32MIPS,W32PPC,X64,IA64,COLOR} + keepdir /usr/$(get_libdir)/samba/{auth,pdb,rpc,idmap,nss_info,gpext} + + newconfd "${CONFDIR}/samba.confd" samba + newinitd "${CONFDIR}/samba.initd" samba + + insinto /etc/samba + doins "${CONFDIR}"/{smbusers,lmhosts} + + if use ldap ; then + insinto /etc/openldap/schema + doins examples/LDAP/samba.schema + fi + + if use swat ; then + insinto /etc/xinetd.d + newins "${CONFDIR}/swat.xinetd" swat + script/installswat.sh "${ED}" "${EROOT}/usr/share/doc/${PF}/swat" "${S}" + fi + + dodoc MAINTAINERS.txt README* Roadmap WHATSNEW.txt docs/THANKS + fi + + # install the spooler to cups + if use cups ; then + dosym /usr/bin/smbspool $(cups-config --serverbin)/backend/smb + fi + + # install misc files + insinto /etc/samba + doins examples/smb.conf.default + doman docs/manpages/smb.conf.5 + + insinto /usr/"$(get_libdir)"/samba + doins codepages/{valid.dat,upcase.dat,lowcase.dat} + + # install docs + if use doc ; then + dohtml -r docs/htmldocs/. + dodoc docs/*.pdf + fi + + # install examples + if use examples ; then + insinto /usr/share/doc/${PF}/examples + + if use smbclient ; then + doins -r examples/libsmbclient + fi + + if use winbind ; then + doins -r examples/pam_winbind examples/nss + fi + + if use server ; then + cd examples || die + doins -r auth autofs dce-dfs LDAP logon misc pdb \ + perfcounter printer-accounting printing scripts tridge \ + validchars VFS + fi + fi + + # Remove empty installation directories + rmdir --ignore-fail-on-non-empty \ + "${ED}/usr/$(get_libdir)/samba" \ + "${ED}/usr"/{sbin,bin} \ + "${ED}/usr/share"/{man,locale,} \ + "${ED}/var"/{run,lib/samba/private,lib/samba,lib,cache/samba,cache,} \ + # || die "tried to remove non-empty dirs, this seems like a bug in the ebuild" + + systemd_dotmpfilesd "${FILESDIR}"/samba.conf + systemd_dounit "${FILESDIR}"/nmbd.service + systemd_dounit "${FILESDIR}"/smbd.{service,socket} + systemd_newunit "${FILESDIR}"/smbd_at.service 'smbd@.service' + systemd_dounit "${FILESDIR}"/winbindd.service +} + +pkg_postinst() { + elog "Samba 3.6 has adopted a number of improved security defaults that" + elog "will impact on existing users of Samba." + elog " client ntlmv2 auth = yes" + elog " client use spnego principal = no" + elog " send spnego principal = no" + elog "" + elog "SMB2 protocol support in 3.6.0 is fully functional and can be " + elog "enabled by setting 'max protocol = smb2'. SMB2 is a new " + elog "implementation of the SMB protocol used by Windows Vista and higher" + elog "" + elog "For further information make sure to read the release notes at" + elog "http://samba.org/samba/history/${P}.html and " + elog "http://samba.org/samba/history/${PN}-3.6.0.html" +} |