From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1K1blO-0006ei-GX for garchives@archives.gentoo.org; Thu, 29 May 2008 06:37:26 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 826C4E0511; Thu, 29 May 2008 06:37:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 0C1A8E0511 for ; Thu, 29 May 2008 06:37:25 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 910A665C7B for ; Thu, 29 May 2008 06:37:24 +0000 (UTC) Received: from dev-zero by stork.gentoo.org with local (Exim 4.69) (envelope-from ) id 1K1blI-0007Qe-8I for gentoo-commits@lists.gentoo.org; Thu, 29 May 2008 06:37:20 +0000 From: "Tiziano Mueller (dev-zero)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, dev-zero@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in net-fs/samba: ChangeLog samba-3.0.28a-r1.ebuild X-VCS-Repository: gentoo-x86 X-VCS-Files: ChangeLog samba-3.0.28a-r1.ebuild X-VCS-Directories: net-fs/samba X-VCS-Committer: dev-zero X-VCS-Committer-Name: Tiziano Mueller Content-Type: text/plain; charset=utf8 Message-Id: Sender: Tiziano Mueller Date: Thu, 29 May 2008 06:37:20 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 8aa6b23e-04da-46c0-8b0a-4378433a82ef X-Archives-Hash: 829a692e57e07607a026679fce4ddbac dev-zero 08/05/29 06:37:20 Modified: ChangeLog Added: samba-3.0.28a-r1.ebuild Log: Revision bump for security bug #222299 (Portage version: 2.1.5_rc7, RepoMan options: --force) Revision Changes Path 1.334 net-fs/samba/ChangeLog file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/Chang= eLog?rev=3D1.334&view=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/Chang= eLog?rev=3D1.334&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/Chang= eLog?r1=3D1.333&r2=3D1.334 Index: ChangeLog =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v retrieving revision 1.333 retrieving revision 1.334 diff -u -r1.333 -r1.334 --- ChangeLog 17 May 2008 12:33:00 -0000 1.333 +++ ChangeLog 29 May 2008 06:37:19 -0000 1.334 @@ -1,6 +1,12 @@ # ChangeLog for net-fs/samba # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v 1.333 2008/0= 5/17 12:33:00 dev-zero Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v 1.334 2008/0= 5/29 06:37:19 dev-zero Exp $ + +*samba-3.0.28a-r1 (29 May 2008) + + 29 May 2008; Tiziano M=C3=BCller + +files/3.0.28a-CVE-2008-1105.patch, +samba-3.0.28a-r1.ebuild: + Revision bump for security bug #222299 =20 17 May 2008; Tiziano M=C3=BCller +files/3.0.28a-wrong_python_ldflags.patch, samba-3.0.28a.ebuild: 1.1 net-fs/samba/samba-3.0.28a-r1.ebuild file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/samba= -3.0.28a-r1.ebuild?rev=3D1.1&view=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/samba= -3.0.28a-r1.ebuild?rev=3D1.1&content-type=3Dtext/plain Index: samba-3.0.28a-r1.ebuild =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-fs/samba/samba-3.0.28a-r1.ebuild,v= 1.1 2008/05/29 06:37:19 dev-zero Exp $ inherit autotools eutils pam python multilib versionator confutils MY_P=3D${PN}-${PV/_/} DESCRIPTION=3D"A suite of SMB and CIFS client/server programs for UNIX" HOMEPAGE=3D"http://www.samba.org/" SRC_URI=3D"mirror://samba/${MY_P}.tar.gz mirror://samba/old-versions/${MY_P}.tar.gz" LICENSE=3D"GPL-2" SLOT=3D"0" KEYWORDS=3D"alpha amd64 ~arm hppa ~ia64 ~mips ppc ppc64 ~s390 ~sh sparc ~= sparc-fbsd x86 ~x86-fbsd" IUSE_LINGUAS=3D"linguas_ja linguas_pl" IUSE=3D"${IUSE_LINGUAS} acl ads async automount caps cups doc examples ip= v6 kernel_linux ldap fam pam python quotas readline selinux swat syslog winbind" RDEPEND=3D"dev-libs/popt virtual/libiconv acl? ( kernel_linux? ( sys-apps/acl ) ) cups? ( net-print/cups ) ipv6? ( sys-apps/xinetd ) ads? ( virtual/krb5 ) ldap? ( net-nds/openldap ) pam? ( virtual/pam ) python? ( dev-lang/python ) readline? ( sys-libs/readline ) selinux? ( sec-policy/selinux-samba ) swat? ( sys-apps/xinetd ) syslog? ( virtual/logger ) fam? ( virtual/fam ) caps? ( sys-libs/libcap )" DEPEND=3D"${RDEPEND}" # Tests are broken now :-( RESTRICT=3D"test" S=3D${WORKDIR}/${MY_P} CONFDIR=3D${FILESDIR}/config PRIVATE_DST=3D/var/lib/samba/private pkg_setup() { confutils_use_depend_all ads ldap } src_unpack() { unpack ${A} cd "${S}/source" # lazyldflags.patch: adds "-Wl,-z,now" to smb{mnt,umount} # invalid-free-fix.patch: Bug #196015 (upstream: #5021) epatch \ "${FILESDIR}/3.0.26a-lazyldflags.patch" \ "${FILESDIR}/3.0.26a-invalid-free-fix.patch" \ "${FILESDIR}/3.0.28-libcap_detection.patch" \ "${FILESDIR}/3.0.28-fix_broken_readdir_detection.patch" \ "${FILESDIR}/3.0.28-autoconf-2.62-fix.patch" \ "${FILESDIR}/${PV}-wrong_python_ldflags.patch" \ "${FILESDIR}/${PV}-CVE-2008-1105.patch" eautoconf -I. -Ilib/replace # Ok, agreed, this is ugly. But it avoids a patch we # need for every samba version and we don't need autotools sed -i \ -e 's|"lib32" ||' \ -e 's|if test -d "$i/$l" ;|if test -d "$i/$l" -o -L "$i/$l";|' \ configure || die "sed failed" rm "${S}/docs/manpages"/{mount,umount}.cifs.8 } src_compile() { cd "${S}/source" local myconf local mylangs local mymod_shared python_version myconf=3D"--with-python=3Dno" use python && myconf=3D"--with-python=3D${python}" mylangs=3D"--with-manpages-langs=3Den" use linguas_ja && mylangs=3D"${mylangs},ja" use linguas_pl && mylangs=3D"${mylangs},pl" use winbind && mymod_shared=3D"--with-shared-modules=3Didmap_rid" if use ldap ; then myconf=3D"${myconf} $(use_with ads)" use winbind && mymod_shared=3D"${mymod_shared},idmap_ad" fi [[ ${CHOST} =3D=3D *-*bsd* ]] && myconf=3D"${myconf} --disable-pie" use hppa && myconf=3D"${myconf} --disable-pie" use caps && export ac_cv_header_sys_capability_h=3Dyes || export ac_cv_h= eader_sys_capability_h=3Dno # Otherwise we get the whole swat stuff installed if ! use swat ; then sed -i \ -e 's/^\(install:.*\)installswat \(.*\)/\1\2/' \ Makefile.in || die "sed failed" fi econf \ --with-fhs \ --sysconfdir=3D/etc/samba \ --localstatedir=3D/var \ --with-configdir=3D/etc/samba \ --with-libdir=3D/usr/$(get_libdir)/samba \ --with-pammodulesdir=3D$(getpam_mod_dir) \ --with-swatdir=3D/usr/share/doc/${PF}/swat \ --with-piddir=3D/var/run/samba \ --with-lockdir=3D/var/cache/samba \ --with-logfilebase=3D/var/log/samba \ --with-privatedir=3D${PRIVATE_DST} \ --with-libsmbclient \ --without-spinlocks \ --enable-socket-wrapper \ --with-cifsmount=3Dno \ $(use_with acl acl-support) \ $(use_with async aio-support) \ $(use_with automount) \ $(use_enable cups) \ $(use_enable fam) \ $(use_with ads krb5) \ $(use_with ldap) \ $(use_with pam) $(use_with pam pam_smbpass) \ $(use_with quotas) $(use_with quotas sys-quotas) \ $(use_with readline) \ $(use_with kernel_linux smbmount) \ $(use_with syslog) \ $(use_with winbind) \ ${myconf} ${mylangs} ${mymod_shared} || die "econf failed" emake proto || die "emake proto failed" emake everything || die "emake everything failed" if use python ; then emake python_ext || die "emake python_ext failed" fi } src_test() { cd "${S}/source" emake test || die "tests failed" } src_install() { cd "${S}/source" emake DESTDIR=3D"${D}" install-everything || die "emake install-everythi= ng failed" # Extra rpctorture progs local extra_bins=3D"rpctorture" for i in ${extra_bins} ; do [[ -x "${S}/bin/${i}" ]] && dobin "${S}/bin/${i}" done # remove .old stuff from /usr/bin: rm -f "${D}"/usr/bin/*.old # Removing executable bits from header-files fperms 644 /usr/include/lib{msrpc,smbclient}.h # Nsswitch extensions. Make link for wins and winbind resolvers if use winbind ; then 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 fi if use kernel_linux ; then # Warning: this can byte you if /usr is # on a separate volume and you have to mount # a smb volume before the local mount dosym ../usr/bin/smbmount /sbin/mount.smbfs fperms 4755 /usr/bin/smbmnt fperms 4755 /usr/bin/smbumount fi # bug #46389: samba doesn't create symlink anymore # beaviour seems to be changed in 3.0.6, see bug #61046 dosym samba/libsmbclient.so /usr/$(get_libdir)/libsmbclient.so.0 dosym samba/libsmbclient.so /usr/$(get_libdir)/libsmbclient.so # make the smb backend symlink for cups printing support (bug #133133) if use cups ; then dodir $(cups-config --serverbin)/backend dosym /usr/bin/smbspool $(cups-config --serverbin)/backend/smb fi if use python ; then emake DESTDIR=3D"${D}" python_install || die "emake installpython faile= d" # We're doing that manually find "${D}/usr/$(get_libdir)/python${PYVER}/site-packages" -iname "*.py= c" -delete fi cd "${S}/source" # General config files insinto /etc/samba doins "${CONFDIR}"/{smbusers,lmhosts} newins "${CONFDIR}/smb.conf.example-samba3" smb.conf.example newpamd "${CONFDIR}/samba.pam" samba use winbind && dopamd "${CONFDIR}/system-auth-winbind" if use swat ; then insinto /etc/xinetd.d newins "${CONFDIR}/swat.xinetd" swat else rm -f "${D}/usr/sbin/swat" rm -f "${D}/usr/share/man/man8/swat.8" fi newinitd "${FILESDIR}/samba-init" samba newconfd "${FILESDIR}/samba-conf" samba if use ldap ; then insinto /etc/openldap/schema doins "${S}/examples/LDAP/samba.schema" fi if use ipv6 ; then insinto /etc/xinetd.d newins "${FILESDIR}/samba-xinetd" smb fi # dirs diropts -m0700 ; keepdir "${PRIVATE_DST}" diropts -m1777 ; keepdir /var/spool/samba diropts -m0755 keepdir /var/{log,run,cache}/samba keepdir /var/lib/samba/{netlogon,profiles} keepdir /var/lib/samba/printers/{W32X86,WIN40,W32ALPHA,W32MIPS,W32PPC,X6= 4,IA64,COLOR} keepdir /usr/$(get_libdir)/samba/{rpc,idmap,auth} # docs dodoc "${FILESDIR}/README.gentoo" dodoc "${S}"/{MAINTAINERS,README,Roadmap,WHATSNEW.txt} dodoc "${CONFDIR}/nsswitch.conf-wins" use winbind && dodoc "${CONFDIR}/nsswitch.conf-winbind" if use examples ; then insinto /usr/share/doc/${PF} doins -r "${S}/examples/" find "${D}/usr/share/doc/${PF}" -type d -print0 | xargs -0 chmod 755 find "${D}/usr/share/doc/${PF}/examples" ! -type d -print0 | xargs -0 c= hmod 644 if use python ; then insinto /usr/share/doc/${PF}/python doins -r "${S}/source/python/examples" fi fi if ! use doc ; then if ! use swat ; then rm -rf "${D}/usr/share/doc/${PF}/swat" else rm -rf "${D}/usr/share/doc/${PF}/swat/help"/{guide,howto,devel} rm -rf "${D}/usr/share/doc/${PF}/swat/using_samba" fi fi } pkg_preinst() { local PRIVATE_SRC=3D/etc/samba/private if [[ ! -r "${ROOT}/${PRIVATE_DST}/secrets.tdb" \ && -r "${ROOT}/${PRIVATE_SRC}/secrets.tdb" ]] ; then ebegin "Copying ${ROOT}/${PRIVATE_SRC}/* to ${ROOT}/${PRIVATE_DST}/" mkdir -p "${D}/${PRIVATE_DST}" cp -pPRf "${ROOT}/${PRIVATE_SRC}"/* "${D}/${PRIVATE_DST}/" eend $? fi if [[ ! -f "${ROOT}/etc/samba/smb.conf" ]] ; then touch "${D}/etc/samba/smb.conf" fi } pkg_postinst() { if use python ; then python_version python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/sam= ba fi if use swat ; then einfo "swat must be enabled by xinetd:" einfo " change the /etc/xinetd.d/swat configuration" fi if use ipv6 ; then einfo "ipv6 support must be enabled by xinetd:" einfo " change the /etc/xinetd.d/smb configuration" fi elog "It is possible to start/stop daemons separately:" elog " Create a symlink from /etc/init.d/samba.{smbd,nmbd,winbind} to" elog " /etc/init.d/samba. Calling /etc/init.d/samba directly will start= " elog " the daemons configured in /etc/conf.d/samba" elog "The mount/umount.cifs helper applications are not included anymore= ." elog "Please install net-fs/mount-cifs instead." ewarn "If you're upgrading from 3.0.24 or earlier, please make sure to" ewarn "restart your clients to clear any cached information about the se= rver." ewarn "Otherwise they might not be able to connect to the volumes." } pkg_postrm() { if use python ; then python_version python_mod_cleanup /usr/$(get_libdir)/python${PYVER}/site-packages/samb= a fi } --=20 gentoo-commits@lists.gentoo.org mailing list