summaryrefslogtreecommitdiff
path: root/net-fs
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2014-07-11 13:07:20 +0000
committerLars Wendler <polynomial-c@gentoo.org>2014-07-11 13:07:20 +0000
commitc9d0b97dc2ba830ac3320f87f2b7963f80895f23 (patch)
tree7dfcf6374dfb633439ddb3846ac200e9d84d1ee3 /net-fs
parentfix polarssl dep wrt #516832 (diff)
downloadgentoo-2-c9d0b97dc2ba830ac3320f87f2b7963f80895f23.tar.gz
gentoo-2-c9d0b97dc2ba830ac3320f87f2b7963f80895f23.tar.bz2
gentoo-2-c9d0b97dc2ba830ac3320f87f2b7963f80895f23.zip
Version bump. Removed old. Fixed automagic dependency on libaio (bug #489764)
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC)
Diffstat (limited to 'net-fs')
-rw-r--r--net-fs/samba/ChangeLog13
-rw-r--r--net-fs/samba/files/samba-4.0.19-automagic_aio_fix.patch57
-rw-r--r--net-fs/samba/samba-3.6.24.ebuild (renamed from net-fs/samba/samba-3.6.22.ebuild)166
-rw-r--r--net-fs/samba/samba-4.0.19.ebuild (renamed from net-fs/samba/samba-4.0.17.ebuild)6
-rw-r--r--net-fs/samba/samba-4.1.9.ebuild (renamed from net-fs/samba/samba-4.1.7.ebuild)5
5 files changed, 166 insertions, 81 deletions
diff --git a/net-fs/samba/ChangeLog b/net-fs/samba/ChangeLog
index 9610a01a7c62..6eef7bf8af04 100644
--- a/net-fs/samba/ChangeLog
+++ b/net-fs/samba/ChangeLog
@@ -1,6 +1,17 @@
# 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.673 2014/06/18 20:35:22 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v 1.674 2014/07/11 13:07:20 polynomial-c Exp $
+
+*samba-4.1.9 (11 Jul 2014)
+*samba-4.0.19 (11 Jul 2014)
+*samba-3.6.24 (11 Jul 2014)
+
+ 11 Jul 2014; Lars Wendler <polynomial-c@gentoo.org> -samba-3.6.22.ebuild,
+ +samba-3.6.24.ebuild, -samba-4.0.17.ebuild, +samba-4.0.19.ebuild,
+ -samba-4.1.7.ebuild, +samba-4.1.9.ebuild,
+ +files/samba-4.0.19-automagic_aio_fix.patch:
+ Version bump. Removed old. Fixed automagic dependency on libaio (bug
+ #489764).
18 Jun 2014; Michał Górny <mgorny@gentoo.org> samba-3.6.23-r1.ebuild:
Update dependencies to require guaranteed EAPI=5 or multilib ebuilds, bug
diff --git a/net-fs/samba/files/samba-4.0.19-automagic_aio_fix.patch b/net-fs/samba/files/samba-4.0.19-automagic_aio_fix.patch
new file mode 100644
index 000000000000..ec351db7a2d0
--- /dev/null
+++ b/net-fs/samba/files/samba-4.0.19-automagic_aio_fix.patch
@@ -0,0 +1,57 @@
+https://bugzilla.samba.org/show_bug.cgi?id=10370
+
+--- samba-4.0.19/source3/wscript
++++ samba-4.0.19/source3/wscript
+@@ -507,9 +507,10 @@
+ else:
+ conf.DEFINE('HAVE_NO_AIO', '1')
+
+- if host_os.rfind('linux') > -1:
+- conf.CHECK_FUNCS_IN('io_submit', 'aio')
+- conf.CHECK_CODE('''
++ if Options.options.with_aio_support != False:
++ if host_os.rfind('linux') > -1:
++ conf.CHECK_FUNCS_IN('io_submit', 'aio')
++ conf.CHECK_CODE('''
+ struct io_event ioev;
+ struct iocb *ioc;
+ io_context_t ctx;
+@@ -526,11 +527,11 @@
+ io_getevents(ctx, 1, 1, &ioev, &ts);
+ ''',
+ 'HAVE_LINUX_KERNEL_AIO',
+- msg='Checking for linux kernel asynchronous io support',
+- headers='unistd.h stdlib.h sys/types.h fcntl.h sys/eventfd.h libaio.h',
+- lib='aio')
++ msg='Checking for linux kernel asynchronous io support',
++ headers='unistd.h stdlib.h sys/types.h fcntl.h sys/eventfd.h libaio.h',
++ lib='aio')
+
+- conf.CHECK_CODE('''
++ conf.CHECK_CODE('''
+ struct msghdr msg;
+ union {
+ struct cmsghdr cm;
+@@ -540,17 +541,17 @@
+ msg.msg_controllen = sizeof(control_un.control);
+ ''',
+ 'HAVE_MSGHDR_MSG_CONTROL',
+- msg='Checking if we can use msg_control for passing file descriptors',
+- headers='sys/types.h stdlib.h stddef.h sys/socket.h sys/un.h')
+- conf.CHECK_CODE('''
++ msg='Checking if we can use msg_control for passing file descriptors',
++ headers='sys/types.h stdlib.h stddef.h sys/socket.h sys/un.h')
++ conf.CHECK_CODE('''
+ struct msghdr msg;
+ int fd;
+ msg.msg_acctrights = (caddr_t) &fd;
+ msg.msg_acctrightslen = sizeof(fd);
+ ''',
+ 'HAVE_MSGHDR_MSG_ACCTRIGHTS',
+- msg='Checking if we can use msg_acctrights for passing file descriptors',
+- headers='sys/types.h stdlib.h stddef.h sys/socket.h sys/un.h')
++ msg='Checking if we can use msg_acctrights for passing file descriptors',
++ headers='sys/types.h stdlib.h stddef.h sys/socket.h sys/un.h')
+
+ if Options.options.with_winbind:
+ conf.env.build_winbind = True
diff --git a/net-fs/samba/samba-3.6.22.ebuild b/net-fs/samba/samba-3.6.24.ebuild
index 6bca53451a62..223ef7e6c97f 100644
--- a/net-fs/samba/samba-3.6.22.ebuild
+++ b/net-fs/samba/samba-3.6.24.ebuild
@@ -1,10 +1,10 @@
# 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.22.ebuild,v 1.10 2014/01/12 13:14:39 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/samba-3.6.24.ebuild,v 1.1 2014/07/11 13:07:20 polynomial-c Exp $
-EAPI=4
+EAPI=5
-inherit pam versionator multilib eutils flag-o-matic systemd
+inherit pam versionator multilib multilib-minimal eutils flag-o-matic systemd
MY_PV=${PV/_/}
MY_P="${PN}-${MY_PV}"
@@ -14,31 +14,31 @@ 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"
+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
- >=sys-libs/tdb-1.2.9
- >=sys-libs/tevent-0.9.18
- virtual/libiconv
- ads? ( virtual/krb5 sys-fs/e2fsprogs
+ >=sys-libs/talloc-2.0.8-r1[${MULTILIB_USEDEP}]
+ >=sys-libs/tdb-1.2.13[${MULTILIB_USEDEP}]
+ >=sys-libs/tevent-0.9.19[${MULTILIB_USEDEP}]
+ >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]
+ ads? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] sys-fs/e2fsprogs
client? ( sys-apps/keyutils ) )
avahi? ( net-dns/avahi[dbus] )
- caps? ( sys-libs/libcap )
+ caps? ( >=sys-libs/libcap-2.22-r2[${MULTILIB_USEDEP}] )
client? ( !net-fs/mount-cifs
- dev-libs/iniparser )
+ >=dev-libs/iniparser-3.1-r1[${MULTILIB_USEDEP}] )
cluster? ( >=dev-db/ctdb-1.13 )
cups? ( net-print/cups )
debug? ( dev-libs/dmalloc )
dmapi? ( sys-apps/dmapi )
- fam? ( virtual/fam )
- ldap? ( net-nds/openldap )
+ fam? ( >=virtual/fam-0-r1[${MULTILIB_USEDEP}] )
+ ldap? ( >=net-nds/openldap-2.4.38-r1[${MULTILIB_USEDEP}] )
ldb? ( sys-libs/ldb )
- pam? ( virtual/pam
- winbind? ( dev-libs/iniparser )
+ pam? ( >=virtual/pam-0-r1[${MULTILIB_USEDEP}]
+ winbind? ( >=dev-libs/iniparser-3.1-r1[${MULTILIB_USEDEP}] )
)
readline? ( >=sys-libs/readline-5.2 )
selinux? ( sec-policy/selinux-samba )
@@ -57,7 +57,7 @@ KRBPLUGIN=""
PLUGINEXT=".so"
SHAREDMODS=""
-S="${WORKDIR}/${MY_P}/source3"
+S=${WORKDIR}/${MY_P}
# TODO:
# - enable iPrint on Prefix/OSX and Darwin?
@@ -117,56 +117,63 @@ pkg_setup() {
}
src_prepare() {
- cp "${FILESDIR}/samba-3.4.2-lib.tevent.python.mk" "../lib/tevent/python.mk"
+ 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' \
- configure || die "sed failed"
- cd "${WORKDIR}/${MY_P}" && epatch "${CONFDIR}"/smb.conf.default.patch
+ 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
}
-src_configure() {
- local myconf
+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"
+ [[ ${CHOST} == *-*bsd* ]] && myconf+=( --disable-pie )
#Allowing alpha/s390/sh to build
- if use alpha || use s390 || use sh ; then
+ 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"
+ use cluster && myconf+=( --disable-pie )
# Upstream refuses to make this configurable
- use caps && export ac_cv_header_sys_capability_h=yes || export ac_cv_header_sys_capability_h=no
-
- #bug #399141 wrap newer iniparser version
- has_version ">=dev-libs/iniparser-3.0.0" && \
- export CPPFLAGS+=" -Diniparser_getstr\(d,i\)=iniparser_getstring\(d,i,NULL\)"
+ 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} \
+ econf "${myconf[@]}" \
--with-piddir="${EPREFIX}"/var/run/samba \
--sysconfdir="${EPREFIX}"/etc/samba \
--localstatedir="${EPREFIX}"/var \
- $(use_enable debug developer) \
+ $(multilib_native_use_enable debug developer) \
--enable-largefile \
--enable-socket-wrapper \
--enable-nss-wrapper \
- $(use_enable swat) \
- $(use_enable debug dmalloc) \
- $(use_enable cups) \
+ $(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 \
- $(use_enable avahi) \
+ $(multilib_native_use_enable avahi) \
--with-fhs \
--with-privatedir="${EPREFIX}"/var/lib/samba/private \
--with-rootsbindir="${EPREFIX}"/var/cache/samba \
@@ -175,7 +182,7 @@ src_configure() {
--with-configdir="${EPREFIX}"/etc/samba \
--with-logfilebase="${EPREFIX}"/var/log/samba \
--with-pammodulesdir=$(getpam_mod_dir) \
- $(use_with dmapi) \
+ $(multilib_native_use_with dmapi) \
--without-afs \
--without-fake-kaserver \
--without-vfs-afsacl \
@@ -197,7 +204,7 @@ src_configure() {
$(use_with addns libaddns) \
$(use_with cluster ctdb "${EPREFIX}"/usr) \
$(use_with cluster cluster-support) \
- $(use_with acl acl-support) \
+ $(multilib_native_use_with acl acl-support) \
$(use_with aio aio-support) \
--with-sendfile-support \
$(use_with winbind) \
@@ -206,7 +213,9 @@ src_configure() {
--without-included-iniparser
}
-src_compile() {
+multilib_src_compile() {
+ cd source3 || die
+
# compile libs
if use addns ; then
einfo "make addns library"
@@ -241,23 +250,26 @@ src_compile() {
fi
# compile utilities
- if [ -n "${BINPROGS}" ] ; then
- einfo "make binprogs"
- emake ${BINPROGS}
- fi
- if [ -n "${SBINPROGS}" ] ; then
- einfo "make sbinprogs"
- emake ${SBINPROGS}
+ 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
-
}
-src_install() {
+multilib_src_install() {
+ cd source3 || die
+
# pkgconfig files installation needed, bug #464818
local pkgconfigdir=/usr/$(get_libdir)/pkgconfig
@@ -327,21 +339,23 @@ src_install() {
fi
# install binaries
- 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
+ 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
@@ -358,10 +372,12 @@ src_install() {
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
+ doman docs/manpages/vfs* docs/manpages/samba.7
diropts -m0700
keepdir /var/lib/samba/private
@@ -383,7 +399,7 @@ src_install() {
if use ldap ; then
insinto /etc/openldap/schema
- doins ../examples/LDAP/samba.schema
+ doins examples/LDAP/samba.schema
fi
if use swat ; then
@@ -392,7 +408,7 @@ src_install() {
script/installswat.sh "${ED}" "${EROOT}/usr/share/doc/${PF}/swat" "${S}"
fi
- dodoc ../MAINTAINERS.txt ../README* ../Roadmap ../WHATSNEW.txt ../docs/THANKS
+ dodoc MAINTAINERS.txt README* Roadmap WHATSNEW.txt docs/THANKS
fi
# install the spooler to cups
@@ -402,16 +418,16 @@ src_install() {
# install misc files
insinto /etc/samba
- doins ../examples/smb.conf.default
- doman ../docs/manpages/smb.conf.5
+ doins examples/smb.conf.default
+ doman docs/manpages/smb.conf.5
insinto /usr/"$(get_libdir)"/samba
- doins ../codepages/{valid.dat,upcase.dat,lowcase.dat}
+ doins codepages/{valid.dat,upcase.dat,lowcase.dat}
# install docs
if use doc ; then
- dohtml -r ../docs/htmldocs/*
- dodoc ../docs/*.pdf
+ dohtml -r docs/htmldocs/.
+ dodoc docs/*.pdf
fi
# install examples
@@ -419,18 +435,18 @@ src_install() {
insinto /usr/share/doc/${PF}/examples
if use smbclient ; then
- doins -r ../examples/libsmbclient
+ doins -r examples/libsmbclient
fi
if use winbind ; then
- doins -r ../examples/pam_winbind ../examples/nss
+ doins -r examples/pam_winbind examples/nss
fi
if use server ; then
- cd ../examples
+ cd examples || die
doins -r auth autofs dce-dfs LDAP logon misc pdb \
- perfcounter printer-accounting printing scripts tridge \
- validchars VFS
+ perfcounter printer-accounting printing scripts tridge \
+ validchars VFS
fi
fi
diff --git a/net-fs/samba/samba-4.0.17.ebuild b/net-fs/samba/samba-4.0.19.ebuild
index 8be6bea0acbc..a3aa382ba50d 100644
--- a/net-fs/samba/samba-4.0.17.ebuild
+++ b/net-fs/samba/samba-4.0.19.ebuild
@@ -1,6 +1,6 @@
# 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-4.0.17.ebuild,v 1.1 2014/04/15 11:37:58 polynomial-c Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/samba-4.0.19.ebuild,v 1.1 2014/07/11 13:07:20 polynomial-c Exp $
EAPI=5
PYTHON_COMPAT=( python2_{6,7} )
@@ -29,12 +29,10 @@ IUSE="acl addns ads aio avahi client cluster cups dmapi fam gnutls iprint
ldap quota selinux swat syslog test winbind"
# sys-apps/attr is an automagic dependency (see bug #489748)
-# dev-libs/libaio is an automagic dependency (see bug #489764)
# sys-libs/pam is an automagic dependency (see bug #489770)
CDEPEND="${PYTHON_DEPS}
>=app-crypt/heimdal-1.5[-ssl]
dev-libs/iniparser
- dev-libs/libaio
dev-libs/popt
sys-libs/readline
virtual/libiconv
@@ -49,6 +47,7 @@ CDEPEND="${PYTHON_DEPS}
virtual/pam
acl? ( virtual/acl )
addns? ( net-dns/bind-tools[gssapi] )
+ aio? ( dev-libs/libaio )
cluster? ( >=dev-db/ctdb-1.0.114_p1 )
cups? ( net-print/cups )
dmapi? ( sys-apps/dmapi )
@@ -74,6 +73,7 @@ CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
PATCHES=(
"${FILESDIR}/${PN}-4.1.0-remove-dmapi-automagic.patch"
"${FILESDIR}/named.conf.dlz.patch"
+ "${FILESDIR}/${PN}-4.0.19-automagic_aio_fix.patch"
)
WAF_BINARY="${S}/buildtools/bin/waf"
diff --git a/net-fs/samba/samba-4.1.7.ebuild b/net-fs/samba/samba-4.1.9.ebuild
index 7b13a1405a35..e247f1e4fac7 100644
--- a/net-fs/samba/samba-4.1.7.ebuild
+++ b/net-fs/samba/samba-4.1.9.ebuild
@@ -1,6 +1,6 @@
# 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-4.1.7.ebuild,v 1.3 2014/04/17 22:10:09 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/samba-4.1.9.ebuild,v 1.1 2014/07/11 13:07:20 polynomial-c Exp $
EAPI=5
PYTHON_COMPAT=( python2_{6,7} )
@@ -28,7 +28,6 @@ ldap quota selinux syslog test winbind"
CDEPEND="${PYTHON_DEPS}
>=app-crypt/heimdal-1.5[-ssl]
dev-libs/iniparser
- dev-libs/libaio
dev-libs/popt
sys-libs/readline
virtual/libiconv
@@ -44,6 +43,7 @@ CDEPEND="${PYTHON_DEPS}
virtual/pam
acl? ( virtual/acl )
addns? ( net-dns/bind-tools[gssapi] )
+ aio? ( dev-libs/libaio )
cluster? ( >=dev-db/ctdb-1.0.114_p1 )
cups? ( net-print/cups )
dmapi? ( sys-apps/dmapi )
@@ -69,6 +69,7 @@ CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
PATCHES=(
"${FILESDIR}/${PN}-4.1.0-remove-dmapi-automagic.patch"
"${FILESDIR}/named.conf.dlz.patch"
+ "${FILESDIR}/${PN}-4.0.19-automagic_aio_fix.patch"
)
WAF_BINARY="${S}/buildtools/bin/waf"