bump to 9.0_rc3
authorAlexis Ballier <aballier@gentoo.org>
Fri, 9 Dec 2011 13:24:25 +0000 (13:24 +0000)
committerAlexis Ballier <aballier@gentoo.org>
Fri, 9 Dec 2011 13:24:25 +0000 (13:24 +0000)
Package-Manager: portage-2.2.0_alpha79/cvs/Linux x86_64

30 files changed:
sys-freebsd/boot0/ChangeLog
sys-freebsd/boot0/boot0-9.0_rc3.ebuild [new file with mode: 0644]
sys-freebsd/freebsd-bin/ChangeLog
sys-freebsd/freebsd-bin/freebsd-bin-9.0_rc3.ebuild [new file with mode: 0644]
sys-freebsd/freebsd-cddl/ChangeLog
sys-freebsd/freebsd-cddl/freebsd-cddl-9.0_rc3.ebuild [new file with mode: 0644]
sys-freebsd/freebsd-contrib/ChangeLog
sys-freebsd/freebsd-contrib/freebsd-contrib-9.0_rc3.ebuild [new file with mode: 0644]
sys-freebsd/freebsd-lib/ChangeLog
sys-freebsd/freebsd-lib/freebsd-lib-9.0_rc3.ebuild [new file with mode: 0644]
sys-freebsd/freebsd-libexec/ChangeLog
sys-freebsd/freebsd-libexec/freebsd-libexec-9.0_rc3.ebuild [new file with mode: 0644]
sys-freebsd/freebsd-mk-defs/ChangeLog
sys-freebsd/freebsd-mk-defs/freebsd-mk-defs-9.0_rc3.ebuild [new file with mode: 0644]
sys-freebsd/freebsd-pam-modules/ChangeLog
sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-9.0_rc3.ebuild [new file with mode: 0644]
sys-freebsd/freebsd-pf/ChangeLog
sys-freebsd/freebsd-pf/freebsd-pf-9.0_rc3.ebuild [new file with mode: 0644]
sys-freebsd/freebsd-rescue/ChangeLog
sys-freebsd/freebsd-rescue/freebsd-rescue-9.0_rc3.ebuild [new file with mode: 0644]
sys-freebsd/freebsd-sbin/ChangeLog
sys-freebsd/freebsd-sbin/freebsd-sbin-9.0_rc3.ebuild [new file with mode: 0644]
sys-freebsd/freebsd-share/ChangeLog
sys-freebsd/freebsd-share/freebsd-share-9.0_rc3.ebuild [new file with mode: 0644]
sys-freebsd/freebsd-sources/ChangeLog
sys-freebsd/freebsd-sources/freebsd-sources-9.0_rc3.ebuild [new file with mode: 0644]
sys-freebsd/freebsd-ubin/ChangeLog
sys-freebsd/freebsd-ubin/freebsd-ubin-9.0_rc3.ebuild [new file with mode: 0644]
sys-freebsd/freebsd-usbin/ChangeLog
sys-freebsd/freebsd-usbin/freebsd-usbin-9.0_rc3.ebuild [new file with mode: 0644]

index 88b5fc926bcaf07130a1b543035ee1c371f01c6d..5bf3c0884c0fdac6396174ca361eda77f18e180c 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for sys-freebsd/boot0
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/boot0/ChangeLog,v 1.29 2011/12/07 17:04:42 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/boot0/ChangeLog,v 1.30 2011/12/09 13:18:05 aballier Exp $
+
+*boot0-9.0_rc3 (09 Dec 2011)
+
+  09 Dec 2011; Alexis Ballier <aballier@gentoo.org> +boot0-9.0_rc3.ebuild:
+  bump to 9.0_rc3
 
 *boot0-9.0_rc2 (07 Dec 2011)
 
diff --git a/sys-freebsd/boot0/boot0-9.0_rc3.ebuild b/sys-freebsd/boot0/boot0-9.0_rc3.ebuild
new file mode 100644 (file)
index 0000000..79304ad
--- /dev/null
@@ -0,0 +1,52 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/boot0/boot0-9.0_rc3.ebuild,v 1.1 2011/12/09 13:18:05 aballier Exp $
+
+EAPI=2
+
+inherit bsdmk freebsd flag-o-matic
+
+DESCRIPTION="FreeBSD's bootloader"
+SLOT="0"
+KEYWORDS="~sparc-fbsd ~x86-fbsd"
+
+IUSE="bzip2 ieee1394 tftp zfs"
+
+SRC_URI="mirror://gentoo/${SYS}.tar.bz2"
+
+RDEPEND=""
+DEPEND="=sys-freebsd/freebsd-mk-defs-${RV}*
+       =sys-freebsd/freebsd-lib-${RV}*"
+
+S="${WORKDIR}/sys/boot"
+
+boot0_use_enable() {
+       use ${1} && mymakeopts="${mymakeopts} LOADER_${2}_SUPPORT=\"yes\""
+}
+
+pkg_setup() {
+       boot0_use_enable ieee1394 FIREWIRE
+       boot0_use_enable zfs ZFS
+       boot0_use_enable tftp TFTP
+       boot0_use_enable bzip2 BZIP2
+}
+
+src_prepare() {
+       sed -e '/-fomit-frame-pointer/d' -e '/-mno-align-long-strings/d' \
+               -i "${S}"/i386/boot2/Makefile \
+               -i "${S}"/i386/gptboot/Makefile \
+               -i "${S}"/i386/gptzfsboot/Makefile \
+               -i "${S}"/i386/zfsboot/Makefile || die
+}
+
+src_compile() {
+       strip-flags
+       append-flags "-I/usr/include/libstand/"
+       append-flags "-fno-strict-aliasing"
+       NOFLAGSTRIP="yes" freebsd_src_compile
+}
+
+src_install() {
+       dodir /boot/defaults
+       mkinstall FILESDIR=/boot || die "mkinstall failed"
+}
index 85f19cc712beb225d039cfdb12e617a3a8b5fadd..28599a1b8e4d3d40ea81b533b95bc058b1c5d528 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for sys-freebsd/freebsd-bin
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-bin/ChangeLog,v 1.39 2011/12/07 17:05:10 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-bin/ChangeLog,v 1.40 2011/12/09 13:18:32 aballier Exp $
+
+*freebsd-bin-9.0_rc3 (09 Dec 2011)
+
+  09 Dec 2011; Alexis Ballier <aballier@gentoo.org>
+  +freebsd-bin-9.0_rc3.ebuild:
+  bump to 9.0_rc3
 
 *freebsd-bin-9.0_rc2 (07 Dec 2011)
 
diff --git a/sys-freebsd/freebsd-bin/freebsd-bin-9.0_rc3.ebuild b/sys-freebsd/freebsd-bin/freebsd-bin-9.0_rc3.ebuild
new file mode 100644 (file)
index 0000000..4577620
--- /dev/null
@@ -0,0 +1,34 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-bin/freebsd-bin-9.0_rc3.ebuild,v 1.1 2011/12/09 13:18:32 aballier Exp $
+
+inherit bsdmk freebsd
+
+DESCRIPTION="FreeBSD /bin tools"
+SLOT="0"
+KEYWORDS="~sparc-fbsd ~x86-fbsd"
+
+IUSE=""
+
+SRC_URI="mirror://gentoo/${BIN}.tar.bz2
+               mirror://gentoo/${UBIN}.tar.bz2
+               mirror://gentoo/${SBIN}.tar.bz2
+               mirror://gentoo/${LIB}.tar.bz2"
+
+RDEPEND="=sys-freebsd/freebsd-lib-${RV}*
+       sys-libs/ncurses
+       sys-apps/ed
+       !app-misc/realpath
+       !<sys-freebsd/freebsd-ubin-8"
+DEPEND="${RDEPEND}
+       =sys-freebsd/freebsd-mk-defs-${RV}*
+       >=sys-devel/flex-2.5.31-r2"
+
+S=${WORKDIR}/bin
+
+# csh and tcsh are provided by tcsh package, rmail is sendmail stuff.
+REMOVE_SUBDIRS="csh rmail ed"
+
+pkg_setup() {
+       mymakeopts="${mymakeopts} WITHOUT_TCSH= WITHOUT_SENDMAIL= WITHOUT_RCMDS= "
+}
index e46b299db7d81b57a19aba177583b6bb5453fcdf..b760dc80ada8ff7c3775e51e4cf5a306fcb8fa11 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for sys-freebsd/freebsd-cddl
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-cddl/ChangeLog,v 1.14 2011/12/07 17:05:37 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-cddl/ChangeLog,v 1.15 2011/12/09 13:18:58 aballier Exp $
+
+*freebsd-cddl-9.0_rc3 (09 Dec 2011)
+
+  09 Dec 2011; Alexis Ballier <aballier@gentoo.org>
+  +freebsd-cddl-9.0_rc3.ebuild:
+  bump to 9.0_rc3
 
 *freebsd-cddl-9.0_rc2 (07 Dec 2011)
 
diff --git a/sys-freebsd/freebsd-cddl/freebsd-cddl-9.0_rc3.ebuild b/sys-freebsd/freebsd-cddl/freebsd-cddl-9.0_rc3.ebuild
new file mode 100644 (file)
index 0000000..00fe333
--- /dev/null
@@ -0,0 +1,53 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-cddl/freebsd-cddl-9.0_rc3.ebuild,v 1.1 2011/12/09 13:18:58 aballier Exp $
+
+inherit bsdmk freebsd flag-o-matic eutils
+
+DESCRIPTION="FreeBSD CDDL (opensolaris/zfs) extra software"
+SLOT="0"
+KEYWORDS="~x86-fbsd"
+
+IUSE="build"
+LICENSE="CDDL"
+
+SRC_URI="mirror://gentoo/${P}.tar.bz2
+               mirror://gentoo/${CONTRIB}.tar.bz2
+               mirror://gentoo/${UBIN}.tar.bz2
+               mirror://gentoo/${LIB}.tar.bz2
+               mirror://gentoo/${SBIN}.tar.bz2
+               mirror://gentoo/${SYS}.tar.bz2
+               build? ( mirror://gentoo/${SYS}.tar.bz2
+                       mirror://gentoo/${INCLUDE}.tar.bz2 )"
+
+# sys is required.
+
+RDEPEND="=sys-freebsd/freebsd-lib-${RV}*
+       =sys-freebsd/freebsd-libexec-${RV}*
+       build? ( sys-apps/baselayout )
+       dev-libs/libelf"
+
+DEPEND="${RDEPEND}
+       =sys-freebsd/freebsd-mk-defs-${RV}*
+       !build? ( =sys-freebsd/freebsd-sources-${RV}* )"
+
+S="${WORKDIR}/cddl"
+
+PATCHES=( "${FILESDIR}/${PN}-9.0-bsdxml.patch"
+       "${FILESDIR}/${PN}-9.0-underlink.patch" )
+
+src_unpack() {
+       freebsd_src_unpack
+       # Link in include headers.
+       ln -s "/usr/include" "${WORKDIR}/include" || die "Symlinking /usr/include.."
+       # Force linking to new libraries
+       for i in "${S}/lib/"lib* ; do
+               append-ldflags " -L${i}"
+       done
+}
+
+src_install() {
+       freebsd_src_install
+       # Install zfs volinit script.
+       newinitd "${FILESDIR}"/zvol.initd zvol
+}
index c655f13fa424cc79c131cde4cdadc420540ffe55..5d7c42b312d88b1cd1098cc26a75c017eddce138 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for sys-freebsd/freebsd-contrib
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-contrib/ChangeLog,v 1.30 2011/12/07 17:06:03 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-contrib/ChangeLog,v 1.31 2011/12/09 13:19:26 aballier Exp $
+
+*freebsd-contrib-9.0_rc3 (09 Dec 2011)
+
+  09 Dec 2011; Alexis Ballier <aballier@gentoo.org>
+  +freebsd-contrib-9.0_rc3.ebuild:
+  bump to 9.0_rc3
 
 *freebsd-contrib-9.0_rc2 (07 Dec 2011)
 
diff --git a/sys-freebsd/freebsd-contrib/freebsd-contrib-9.0_rc3.ebuild b/sys-freebsd/freebsd-contrib/freebsd-contrib-9.0_rc3.ebuild
new file mode 100644 (file)
index 0000000..18d1348
--- /dev/null
@@ -0,0 +1,56 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-contrib/freebsd-contrib-9.0_rc3.ebuild,v 1.1 2011/12/09 13:19:26 aballier Exp $
+
+inherit bsdmk freebsd flag-o-matic
+
+DESCRIPTION="Contributed sources for FreeBSD."
+SLOT="0"
+KEYWORDS="~sparc-fbsd ~x86-fbsd"
+LICENSE="BSD GPL-2 as-is"
+
+IUSE=""
+
+SRC_URI="mirror://gentoo/${GNU}.tar.bz2
+       mirror://gentoo/${P}.tar.bz2"
+
+RDEPEND=""
+DEPEND="=sys-freebsd/freebsd-sources-${RV}*
+       =sys-freebsd/freebsd-mk-defs-${RV}*"
+
+S="${WORKDIR}/gnu"
+
+src_unpack() {
+       echo ">>> Unpacking needed parts of ${GNU}.tar.bz2 to ${WORKDIR}"
+       tar -jxpf "${DISTDIR}/${GNU}.tar.bz2" gnu/lib/libodialog gnu/usr.bin/sort gnu/usr.bin/patch
+       echo ">>> Unpacking needed parts of ${CONTRIB}.tar.bz2 to ${WORKDIR}"
+       tar -jxpf "${DISTDIR}/${CONTRIB}.tar.bz2" contrib/gnu-sort
+
+       freebsd_do_patches
+       freebsd_rename_libraries
+}
+
+src_compile() {
+       cd "${S}/lib/libodialog"
+       freebsd_src_compile
+
+       cd "${S}/usr.bin/sort"
+       freebsd_src_compile
+
+       cd "${S}/usr.bin/patch"
+       freebsd_src_compile
+}
+
+src_install() {
+       use profile || mymakeopts="${mymakeopts} NO_PROFILE= "
+       mymakeopts="${mymakeopts} NO_MANCOMPRESS= NO_INFOCOMPRESS= "
+
+       cd "${S}/lib/libodialog"
+       mkinstall || die "libodialog install failed"
+
+       cd "${S}/usr.bin/sort"
+       mkinstall BINDIR="/bin/" || die "sort install failed"
+
+       cd "${S}/usr.bin/patch"
+       mkinstall BINDIR="/usr/bin/" || die "patch install failed"
+}
index d922b7e7bd045413df53750d16db856d6975b888..acb1be29da87c0017be712ccb74a03bc65e345ba 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for sys-freebsd/freebsd-lib
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-lib/ChangeLog,v 1.105 2011/12/07 17:06:59 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-lib/ChangeLog,v 1.106 2011/12/09 13:20:21 aballier Exp $
+
+*freebsd-lib-9.0_rc3 (09 Dec 2011)
+
+  09 Dec 2011; Alexis Ballier <aballier@gentoo.org>
+  +freebsd-lib-9.0_rc3.ebuild:
+  bump to 9.0_rc3
 
 *freebsd-lib-9.0_rc2 (07 Dec 2011)
 
diff --git a/sys-freebsd/freebsd-lib/freebsd-lib-9.0_rc3.ebuild b/sys-freebsd/freebsd-lib/freebsd-lib-9.0_rc3.ebuild
new file mode 100644 (file)
index 0000000..c5585f8
--- /dev/null
@@ -0,0 +1,450 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-lib/freebsd-lib-9.0_rc3.ebuild,v 1.1 2011/12/09 13:20:21 aballier Exp $
+
+EAPI=2
+
+inherit bsdmk freebsd flag-o-matic multilib toolchain-funcs
+
+DESCRIPTION="FreeBSD's base system libraries"
+SLOT="0"
+KEYWORDS="~sparc-fbsd ~x86-fbsd"
+
+# Crypto is needed to have an internal OpenSSL header
+# sys is needed for libalias, probably we can just extract that instead of
+# extracting the whole tarball
+SRC_URI="mirror://gentoo/${LIB}.tar.bz2
+               mirror://gentoo/${CONTRIB}.tar.bz2
+               mirror://gentoo/${CRYPTO}.tar.bz2
+               mirror://gentoo/${LIBEXEC}.tar.bz2
+               mirror://gentoo/${ETC}.tar.bz2
+               mirror://gentoo/${INCLUDE}.tar.bz2
+               mirror://gentoo/${USBIN}.tar.bz2
+               mirror://gentoo/${GNU}.tar.bz2
+               build? (
+                       mirror://gentoo/${SYS}.tar.bz2 )"
+
+if [ "${CATEGORY#*cross-}" = "${CATEGORY}" ]; then
+       RDEPEND="ssl? ( dev-libs/openssl )
+               hesiod? ( net-dns/hesiod )
+               kerberos? ( virtual/krb5 )
+               usb? ( !dev-libs/libusb )
+               zfs? ( =sys-freebsd/freebsd-cddl-${RV}* )
+               >=dev-libs/expat-2.0.1
+               !dev-libs/libedit
+               !sys-freebsd/freebsd-headers"
+       DEPEND="${RDEPEND}
+               >=sys-devel/flex-2.5.31-r2
+               =sys-freebsd/freebsd-sources-${RV}*
+               !bootstrap? ( app-arch/bzip2 )"
+else
+       SRC_URI="${SRC_URI}
+                       mirror://gentoo/${SYS}.tar.bz2"
+fi
+
+DEPEND="${DEPEND}
+               =sys-freebsd/freebsd-mk-defs-${RV}*"
+
+S="${WORKDIR}/lib"
+
+export CTARGET=${CTARGET:-${CHOST}}
+if [ "${CTARGET}" = "${CHOST}" -a "${CATEGORY#*cross-}" != "${CATEGORY}" ]; then
+       export CTARGET=${CATEGORY/cross-}
+fi
+
+IUSE="atm bluetooth ssl hesiod ipv6 kerberos usb netware
+       build bootstrap crosscompile_opts_headers-only zfs
+       userland_GNU userland_BSD"
+
+pkg_setup() {
+       [ -c /dev/zero ] || \
+               die "You forgot to mount /dev; the compiled libc would break."
+
+       if ! use ssl && use kerberos; then
+               eerror "If you want kerberos support you need to enable ssl support, too."
+       fi
+
+       use atm || mymakeopts="${mymakeopts} WITHOUT_ATM= "
+       use bluetooth || mymakeopts="${mymakeopts} WITHOUT_BLUETOOTH= "
+       use hesiod || mymakeopts="${mymakeopts} WITHOUT_HESIOD= "
+       use ipv6 || mymakeopts="${mymakeopts} WITHOUT_INET6_SUPPORT= "
+       use kerberos || mymakeopts="${mymakeopts} WITHOUT_KERBEROS_SUPPORT= "
+       use netware || mymakeopts="${mymakeopts} WITHOUT_IPX= WITHOUT_IPX_SUPPORT= WITHOUT_NCP= "
+       use ssl || mymakeopts="${mymakeopts} WITHOUT_OPENSSL= "
+       use usb || mymakeopts="${mymakeopts} WITHOUT_USB= "
+       use zfs || mymakeopts="${mymakeopts} WITHOUT_CDDL= "
+
+       mymakeopts="${mymakeopts} WITHOUT_BIND= WITHOUT_BIND_LIBS= WITHOUT_SENDMAIL= WITHOUT_CLANG= "
+
+       if [ "${CTARGET}" != "${CHOST}" ]; then
+               mymakeopts="${mymakeopts} MACHINE=$(tc-arch-kernel ${CTARGET})"
+               mymakeopts="${mymakeopts} MACHINE_ARCH=$(tc-arch-kernel ${CTARGET})"
+       fi
+}
+
+PATCHES=(
+       "${FILESDIR}/${PN}-6.0-gccfloat.patch"
+       "${FILESDIR}/${PN}-6.0-flex-2.5.31.patch"
+       "${FILESDIR}/${PN}-6.1-csu.patch"
+       "${FILESDIR}/${PN}-8.0-rpcsec_gss.patch"
+       "${FILESDIR}/${PN}-9.0-liblink.patch"
+       "${FILESDIR}/${PN}-9.0-mancol.patch"
+       "${FILESDIR}/${PN}-bsdxml2expat.patch" )
+
+# Here we disable and remove source which we don't need or want
+# In order:
+# - ncurses stuff
+# - libexpat creates a bsdxml library which is the same as expat
+# - archiving libraries (have their own ebuild)
+# - sendmail libraries (they are installed by sendmail)
+# - SNMP library and dependency (have their own ebuilds)
+#
+# The rest are libraries we already have somewhere else because
+# they are contribution.
+# Note: libtelnet is an internal lib used by telnet and telnetd programs
+# as it's not used in freebsd-lib package itself, it's pointless building
+# it here.
+REMOVE_SUBDIRS="ncurses \
+       libexpat \
+       libz libbz2 libarchive liblzma \
+       libsm libsmdb libsmutil \
+       libbegemot libbsnmp \
+       libpam libpcap bind libwrap libmagic \
+       libcom_err libtelnet
+       libelf"
+
+src_prepare() {
+       sed -i.bak -e 's:-o/dev/stdout:-t:' "${S}/libc/net/Makefile.inc"
+       sed -i.bak -e 's:histedit.h::' "${WORKDIR}/include/Makefile"
+
+       # Upstream Display Managers default to using VT7
+       # We should make FreeBSD allow this by default
+       local x=
+       for x in "${WORKDIR}"/etc/etc.*/ttys ; do
+               sed -i.bak \
+                       -e '/ttyv5[[:space:]]/ a\
+# Display Managers default to VT7.\
+# If you use the xdm init script, keep ttyv6 commented out\
+# unless you force a different VT for the DM being used.' \
+                       -e '/^ttyv[678][[:space:]]/ s/^/# /' "${x}" \
+                       || die "Failed to sed ${x}"
+               rm "${x}".bak
+       done
+
+       # This one is here because it also
+       # patches "${WORKDIR}/include"
+       cd "${WORKDIR}"
+       epatch "${FILESDIR}/${PN}-includes.patch"
+       epatch "${FILESDIR}/${PN}-8.0-gcc45.patch"
+
+       # Don't install the hesiod man page or header
+       rm "${WORKDIR}"/include/hesiod.h || die
+       sed -i.bak -e 's:hesiod.h::' "${WORKDIR}"/include/Makefile || die
+       sed -i.bak -e 's:hesiod.c::' -e 's:hesiod.3::' \
+       "${WORKDIR}"/lib/libc/net/Makefile.inc || die
+
+       # Fix the Makefiles of these few libraries that will overwrite our LDADD.
+       cd "${S}"
+       for dir in libradius libtacplus libcam libdevstat libfetch libgeom libmemstat libopie \
+               libsmb; do sed -i.bak -e 's:LDADD=:LDADD+=:g' "${dir}/Makefile" || \
+               die "Problem fixing \"${dir}/Makefile"
+       done
+       if use build; then
+               cd "${WORKDIR}"
+               # This patch has to be applied on ${WORKDIR}/sys, so we do it here since it
+               # shouldn't be a symlink to /usr/src/sys (which should be already patched)
+               epatch "${FILESDIR}"/${PN}-7.1-types.h-fix.patch
+               # Preinstall includes so we don't use the system's ones.
+               mkdir "${WORKDIR}/include_proper" || die "Couldn't create ${WORKDIR}/include_proper"
+               install_includes "/include_proper"
+               return 0
+       fi
+
+       if [ "${CTARGET}" = "${CHOST}" ]; then
+               ln -s "/usr/src/sys-${RV}" "${WORKDIR}/sys" || die "Couldn't make sys symlink!"
+       else
+               sed -i.bak -e "s:/usr/include:/usr/${CTARGET}/usr/include:g" \
+                       "${S}/libc/rpc/Makefile.inc" \
+                       "${S}/libc/yp/Makefile.inc"
+       fi
+
+       if install --version 2> /dev/null | grep -q GNU; then
+               sed -i.bak -e 's:${INSTALL} -C:${INSTALL}:' "${WORKDIR}/include/Makefile"
+       fi
+
+       # Preinstall includes so we don't use the system's ones.
+       mkdir "${WORKDIR}/include_proper" || die "Couldn't create ${WORKDIR}/include_proper"
+       install_includes "/include_proper"
+
+       # Let arch-specific includes to be found
+       local machine
+       machine=$(tc-arch-kernel ${CTARGET})
+       ln -s "${WORKDIR}/sys/${machine}/include" "${WORKDIR}/include/machine" || \
+               die "Couldn't make ${machine}/include symlink."
+
+       cd "${S}"
+       use bootstrap && dummy_mk libstand
+       # Call LD with LDFLAGS, rename them to RAW_LDFLAGS
+       sed -e 's/LDFLAGS/RAW_LDFLAGS/g' \
+               -i "${S}/csu/i386-elf/Makefile" \
+               -i "${S}/csu/ia64/Makefile" || die
+       # Try to fix sed calls for GNU sed. Do it only with GNU userland and force
+       # BSD's sed on BSD.
+       if use userland_GNU; then
+               find . -name Makefile -exec sed -ibak 's/sed -i /sed -i/' {} \;
+       fi
+}
+
+src_compile() {
+       # Does not work with GNU sed
+       # Force BSD's sed on BSD.
+       if use userland_BSD ; then
+               export ESED=/usr/bin/sed
+               unalias sed
+       fi
+
+       cd "${WORKDIR}/include"
+       $(freebsd_get_bmake) CC="$(tc-getCC)" || die "make include failed"
+
+       use crosscompile_opts_headers-only && return 0
+
+       # Bug #270098
+       append-flags $(test-flags -fno-strict-aliasing)
+
+       strip-flags
+       if [ "${CTARGET}" != "${CHOST}" ]; then
+               export YACC='yacc -by'
+               CHOST=${CTARGET} tc-export CC LD CXX RANLIB
+               mymakeopts="${mymakeopts} NO_MANCOMPRESS= NO_INFOCOMPRESS= NLS="
+
+               local machine
+               machine=$(tc-arch-kernel ${CTARGET})
+
+               local csudir
+               if [ -d "${S}/csu/${machine}-elf" ]; then
+                       csudir="${S}/csu/${machine}-elf"
+               else
+                       csudir="${S}/csu/${machine}"
+               fi
+               export RAW_LDFLAGS=$(raw-ldflags)
+               cd "${csudir}"
+               $(freebsd_get_bmake) ${mymakeopts} || die "make csu failed"
+
+               append-flags "-isystem /usr/${CTARGET}/usr/include"
+               append-flags "-isystem ${WORKDIR}/lib/libutil"
+               append-flags "-isystem ${WORKDIR}/lib/msun/${machine/i386/i387}"
+               append-flags "-B ${csudir}"
+               append-ldflags "-B ${csudir}"
+
+               # First compile libssp_nonshared.a and add it's path to LDFLAGS.
+               cd "${WORKDIR}/gnu/lib/libssp/libssp_nonshared/" || die "missing libssp."
+               $(freebsd_get_bmake) ${mymakeopts} || die "make libssp failed"
+               append-ldflags "-L${WORKDIR}/gnu/lib/libssp/libssp_nonshared/"
+
+               export RAW_LDFLAGS=$(raw-ldflags)
+               cd "${S}/libc"
+               $(freebsd_get_bmake) ${mymakeopts} || die "make libc failed"
+               cd "${S}/msun"
+               append-ldflags "-L${WORKDIR}/lib/libc"
+               export RAW_LDFLAGS=$(raw-ldflags)
+               LDADD="-lssp_nonshared" $(freebsd_get_bmake) ${mymakeopts} || die "make libc failed"
+               cd "${WORKDIR}/gnu/lib/libssp/" || die "missing libssp."
+               $(freebsd_get_bmake) ${mymakeopts} || die "make libssp failed"
+               cd "${WORKDIR}/lib/libthr/" || die "missing libthr"
+               $(freebsd_get_bmake) ${mymakeopts} || die "make libthr failed"
+       else
+               # Forces to use the local copy of headers as they might be outdated in
+               # the system
+               append-flags "-isystem '${WORKDIR}/include_proper'"
+
+               # First compile libssp_nonshared.a and add it's path to LDFLAGS.
+               einfo "Compiling libssp in \"${WORKDIR}/gnu/lib/libssp/\"."
+               cd "${WORKDIR}/gnu/lib/libssp/" || die "missing libssp."
+               NOFLAGSTRIP=yes freebsd_src_compile
+               # Hack libssp_nonshared.a into libc & others since we don't have
+               # the linker script in place yet.
+               append-ldflags "-L${WORKDIR}/gnu/lib/libssp/libssp_nonshared/"
+               einfo "Compiling libc."
+               cd "${S}"
+               export RAW_LDFLAGS=$(raw-ldflags)
+               NOFLAGSTRIP=yes LDADD="-lssp_nonshared" freebsd_src_compile
+               cd "${WORKDIR}/gnu/lib/libregex" || die
+               NOFLAGSTRIP=yes LDADD="-lssp_nonshared" freebsd_src_compile
+       fi
+}
+
+src_install() {
+       [ "${CTARGET}" = "${CHOST}" ] \
+               && INCLUDEDIR="/usr/include" \
+               || INCLUDEDIR="/usr/${CTARGET}/usr/include"
+       dodir ${INCLUDEDIR}
+       einfo "Installing for ${CTARGET} in ${CHOST}.."
+       install_includes ${INCLUDEDIR}
+
+       # Install math.h when crosscompiling, at this point
+       if [ "${CHOST}" != "${CTARGET}" ]; then
+               insinto "/usr/${CTARGET}/usr/include"
+               doins "${S}/msun/src/math.h"
+       fi
+
+       use crosscompile_opts_headers-only && return 0
+       local mylibdir=$(get_libdir)
+
+       if [ "${CTARGET}" != "${CHOST}" ]; then
+               local csudir
+               if [ -d "${S}/csu/$(tc-arch-kernel ${CTARGET})-elf" ]; then
+                       csudir="${S}/csu/$(tc-arch-kernel ${CTARGET})-elf"
+               else
+                       csudir="${S}/csu/$(tc-arch-kernel ${CTARGET})"
+               fi
+               cd "${csudir}"
+               $(freebsd_get_bmake) ${mymakeopts} DESTDIR="${D}" install \
+                       FILESDIR="/usr/${CTARGET}/usr/lib" LIBDIR="/usr/${CTARGET}/usr/lib" || die "Install csu failed"
+
+               cd "${S}/libc"
+               $(freebsd_get_bmake) ${mymakeopts} DESTDIR="${D}" install NO_MAN= \
+                       SHLIBDIR="/usr/${CTARGET}/lib" LIBDIR="/usr/${CTARGET}/usr/lib" || die "Install libc failed"
+
+               cd "${S}/msun"
+               $(freebsd_get_bmake) ${mymakeopts} DESTDIR="${D}" install NO_MAN= \
+                       INCLUDEDIR="/usr/${CTARGET}/usr/include" \
+                       SHLIBDIR="/usr/${CTARGET}/lib" LIBDIR="/usr/${CTARGET}/usr/lib" || die "Install msun failed"
+
+               cd "${WORKDIR}/gnu/lib/libssp/"
+               $(freebsd_get_bmake) ${mymakeopts} DESTDIR="${D}" install NO_MAN= \
+                       INCLUDEDIR="/usr/${CTARGET}/usr/include" \
+                       SHLIBDIR="/usr/${CTARGET}/lib" LIBDIR="/usr/${CTARGET}/usr/lib" || die "Install ssp failed"
+
+               cd "${WORKDIR}/lib/libthr/"
+               $(freebsd_get_bmake) ${mymakeopts} DESTDIR="${D}" install NO_MAN= \
+                       INCLUDEDIR="/usr/${CTARGET}/usr/include" \
+                       SHLIBDIR="/usr/${CTARGET}/lib" LIBDIR="/usr/${CTARGET}/usr/lib" || die "Install libthr failed"
+
+               dosym "usr/include" "/usr/${CTARGET}/sys-include"
+       else
+               # Set SHLIBDIR and LIBDIR for multilib
+               cd "${WORKDIR}/gnu/lib/libssp"
+               SHLIBDIR="/${mylibdir}" LIBDIR="/usr/${mylibdir}" mkinstall || die "Install ssp failed."
+               cd "${S}"
+               SHLIBDIR="/${mylibdir}" LIBDIR="/usr/${mylibdir}" mkinstall || die "Install failed"
+               cd "${WORKDIR}/gnu/lib/libregex"
+               SHLIBDIR="/${mylibdir}" LIBDIR="/usr/${mylibdir}" mkinstall || die "Install libregex failed"
+       fi
+
+       # Don't install the rest of the configuration files if crosscompiling
+       if [ "${CTARGET}" != "${CHOST}" ] ; then
+               # This is to get it stripped with the correct tools, otherwise it gets
+               # stripped with the host strip.
+               export CHOST=${CTARGET}
+               return 0
+       fi
+
+       # Symlink libbsdxml to libexpat as we use expat in favor of the renaming done
+       # on FreeBSD.
+       dosym libexpat.so /usr/${mylibdir}/libbsdxml.so
+       dosym libexpat.a /usr/${mylibdir}/libbsdxml.a
+
+       # install libstand files
+       dodir /usr/include/libstand
+       insinto /usr/include/libstand
+       doins "${S}"/libstand/*.h
+
+       cd "${WORKDIR}/etc/"
+       insinto /etc
+       doins auth.conf nls.alias mac.conf netconfig
+
+       # Install ttys file
+       local MACHINE="$(tc-arch-kernel)"
+       doins "etc.${MACHINE}"/*
+
+       # Generate ldscripts, otherwise bad thigs are supposed to happen
+       gen_usr_ldscript libalias_cuseeme.so libalias_dummy.so libalias_ftp.so \
+               libalias_irc.so libalias_nbt.so libalias_pptp.so libalias_skinny.so \
+               libalias_smedia.so libssp.so
+       # These show on QA warnings too, however they're pretty much bsd only,
+       # aka, no autotools for them.
+       #       libbsdxml.so libcam.so libcrypt.so libdevstat.so libgeom.so \
+       #       libipsec.so libipx.so libkiconv.so libkvm.so libmd.so libsbuf.so libufs.so \
+       #       libutil.so
+
+       # Generate libc.so ldscript for inclusion of libssp_nonshared.a when linking
+       # this is done to avoid having to touch gcc spec file as it is currently
+       # done on FreeBSD upstream, mostly because their binutils aren't able to
+       # cope with linker scripts yet.
+       # Taken from toolchain-funcs.eclass:
+       local output_format
+       output_format=$($(tc-getCC) ${CFLAGS} ${LDFLAGS} -Wl,--verbose 2>&1 | sed -n 's/^OUTPUT_FORMAT("\([^"]*\)",.*/\1/p')
+       [[ -n ${output_format} ]] && output_format="OUTPUT_FORMAT ( ${output_format} )"
+       # Clear the symlink.
+       rm -f "${D}/usr/${mylibdir}/libc.so"
+       cat > "${D}/usr/${mylibdir}/libc.so" <<-END_LDSCRIPT
+/* GNU ld script
+   SSP (-fstack-protector) requires __stack_chk_fail_local to be local.
+   GCC invokes this symbol in a non-PIC way, which results in TEXTRELs if
+   this symbol was provided by a shared libc. So we link in
+   libssp_nonshared.a from here.
+ */
+${output_format}
+GROUP ( /${mylibdir}/libc.so.7 /usr/${mylibdir}/libssp_nonshared.a )
+END_LDSCRIPT
+
+       dodir /etc/sandbox.d
+       cat - > "${D}"/etc/sandbox.d/00freebsd <<EOF
+# /dev/crypto is used mostly by OpenSSL on *BSD platforms
+# leave it available as packages might use OpenSSL commands
+# during compile or install phase.
+SANDBOX_PREDICT="/dev/crypto"
+EOF
+
+       # Install a libusb.pc for better compat with Linux's libusb
+       if use usb ; then
+               dodir /usr/$(get_libdir)/pkgconfig
+               sed -e "s:@LIBDIR@:/usr/$(get_libdir):" "${FILESDIR}/libusb.pc.in" > "${D}/usr/$(get_libdir)/pkgconfig/libusb.pc" || die
+       fi
+}
+
+install_includes()
+{
+       local INCLUDEDIR="$1"
+
+       # The idea is to be called from either install or unpack.
+       # During unpack it's required to install them as portage's user.
+       if [[ "${EBUILD_PHASE}" == "install" ]]; then
+               local DESTDIR="${D}"
+               BINOWN="root"
+               BINGRP="wheel"
+       else
+               local DESTDIR="${WORKDIR}"
+               [[ -z "${USER}" ]] && USER="portage"
+               BINOWN="${USER}"
+               [[ -z "${GROUPS}" ]] && GROUPS="portage"
+               BINGRP="${GROUPS}"
+       fi
+
+       # This is for ssp/ssp.h.
+       einfo "Building ssp.h"
+       cd "${WORKDIR}/gnu/lib/libssp/" || die "missing libssp"
+       $(freebsd_get_bmake) ssp.h || die "problem building ssp.h"
+
+       # Must exist before we use it.
+       [[ -d "${DESTDIR}${INCLUDEDIR}" ]] || die "dodir or mkdir ${INCLUDEDIR} before using install_includes."
+       cd "${WORKDIR}/include"
+
+       local MACHINE="$(tc-arch-kernel)"
+
+       einfo "Installing includes into ${INCLUDEDIR} as ${BINOWN}:${BINGRP}..."
+       $(freebsd_get_bmake) installincludes \
+               MACHINE=${MACHINE} DESTDIR="${DESTDIR}" \
+               INCLUDEDIR="${INCLUDEDIR}" BINOWN="${BINOWN}" \
+               BINGRP="${BINGRP}" || die "install_includes() failed"
+       einfo "includes installed ok."
+       EXTRA_INCLUDES="gnu/lib/libssp lib/librtld_db gnu/lib/libregex"
+       for i in $EXTRA_INCLUDES; do
+               einfo "Installing $i includes into ${INCLUDEDIR} as ${BINOWN}:${BINGRP}..."
+               cd "${WORKDIR}/$i" || die
+               $(freebsd_get_bmake) installincludes DESTDIR="${DESTDIR}" \
+                       MACHINE=${MACHINE} INCLUDEDIR="${INCLUDEDIR}" BINOWN="${BINOWN}" \
+                       BINGRP="${BINGRP}" || die "problem installing ssp includes."
+               einfo "$i includes installed ok."
+       done
+}
index 993d81b5ed8098af42fa473504405add60800d17..75717f1d5f69fbc7a296eda8832ad8618c996976 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for sys-freebsd/freebsd-libexec
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-libexec/ChangeLog,v 1.43 2011/12/07 17:06:30 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-libexec/ChangeLog,v 1.44 2011/12/09 13:19:52 aballier Exp $
+
+*freebsd-libexec-9.0_rc3 (09 Dec 2011)
+
+  09 Dec 2011; Alexis Ballier <aballier@gentoo.org>
+  +freebsd-libexec-9.0_rc3.ebuild:
+  bump to 9.0_rc3
 
 *freebsd-libexec-9.0_rc2 (07 Dec 2011)
 
diff --git a/sys-freebsd/freebsd-libexec/freebsd-libexec-9.0_rc3.ebuild b/sys-freebsd/freebsd-libexec/freebsd-libexec-9.0_rc3.ebuild
new file mode 100644 (file)
index 0000000..ec94e2a
--- /dev/null
@@ -0,0 +1,64 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-libexec/freebsd-libexec-9.0_rc3.ebuild,v 1.1 2011/12/09 13:19:52 aballier Exp $
+
+EAPI=2
+
+inherit bsdmk freebsd pam
+
+DESCRIPTION="FreeBSD libexec things"
+SLOT="0"
+KEYWORDS="~sparc-fbsd ~x86-fbsd"
+
+SRC_URI="mirror://gentoo/${LIBEXEC}.tar.bz2
+       mirror://gentoo/${UBIN}.tar.bz2
+       mirror://gentoo/${BIN}.tar.bz2
+       mirror://gentoo/${CONTRIB}.tar.bz2
+       mirror://gentoo/${LIB}.tar.bz2
+       mirror://gentoo/${ETC}.tar.bz2
+       mirror://gentoo/${USBIN}.tar.bz2"
+
+RDEPEND="=sys-freebsd/freebsd-lib-${RV}*
+       pam? ( virtual/pam )"
+DEPEND="${RDEPEND}
+       =sys-freebsd/freebsd-mk-defs-${RV}*
+       =sys-freebsd/freebsd-sources-${RV}*"
+RDEPEND="${RDEPEND}
+       xinetd? ( sys-apps/xinetd )"
+
+S="${WORKDIR}/libexec"
+
+# Remove sendmail, tcp_wrapper and other useless stuff
+REMOVE_SUBDIRS="smrsh mail.local tcpd telnetd rshd rlogind lukemftpd ftpd"
+
+IUSE="pam ssl kerberos ipv6 nis xinetd"
+
+pkg_setup() {
+       use ipv6 || mymakeopts="${mymakeopts} WITHOUT_INET6= WITHOUT_INET6_SUPPORT= "
+       use kerberos || mymakeopts="${mymakeopts} WITHOUT_KERBEROS_SUPPORT= "
+       use nis || mymakeopts="${mymakeopts} WITHOUT_NIS= "
+       use pam || mymakeopts="${mymakeopts} WITHOUT_PAM_SUPPORT= "
+       use ssl || mymakeopts="${mymakeopts} WITHOUT_OPENSSL= "
+
+       mymakeopts="${mymakeopts} WITHOUT_SENDMAIL= WITHOUT_PF= WITHOUT_RCMDS= "
+}
+
+src_prepare() {
+       ln -s /usr/include "${WORKDIR}/include"
+}
+
+src_install() {
+       freebsd_src_install
+
+       insinto /etc
+       doins "${WORKDIR}/etc/gettytab"
+       newinitd "${FILESDIR}/bootpd.initd" bootpd
+       newconfd "${FILESDIR}/bootpd.confd" bootpd
+
+       if use xinetd; then
+               for rpcd in rstatd rusersd walld rquotad sprayd; do
+                       insinto /etc/xinetd.d
+                       newins "${FILESDIR}/${rpcd}.xinetd" ${rpcd}
+               done
+       fi
+}
index 1f8cb4560ed23482d487935b6f38d5466fbe91fb..50f974374f0e3c88941d6b5e40ca6c449b54e9f5 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for sys-freebsd/freebsd-mk-defs
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-mk-defs/ChangeLog,v 1.41 2011/12/07 17:07:28 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-mk-defs/ChangeLog,v 1.42 2011/12/09 13:20:50 aballier Exp $
+
+*freebsd-mk-defs-9.0_rc3 (09 Dec 2011)
+
+  09 Dec 2011; Alexis Ballier <aballier@gentoo.org>
+  +freebsd-mk-defs-9.0_rc3.ebuild:
+  bump to 9.0_rc3
 
 *freebsd-mk-defs-9.0_rc2 (07 Dec 2011)
 
diff --git a/sys-freebsd/freebsd-mk-defs/freebsd-mk-defs-9.0_rc3.ebuild b/sys-freebsd/freebsd-mk-defs/freebsd-mk-defs-9.0_rc3.ebuild
new file mode 100644 (file)
index 0000000..0e7bceb
--- /dev/null
@@ -0,0 +1,38 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-mk-defs/freebsd-mk-defs-9.0_rc3.ebuild,v 1.1 2011/12/09 13:20:50 aballier Exp $
+
+EAPI=3
+
+inherit bsdmk freebsd
+
+DESCRIPTION="Makefiles definitions used for building and installing libraries and system files"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~sparc-fbsd ~x86-fbsd"
+
+IUSE="userland_GNU"
+
+SRC_URI="mirror://gentoo/${SHARE}.tar.bz2"
+
+RDEPEND=""
+DEPEND=""
+
+RESTRICT="strip"
+
+S="${WORKDIR}/share/mk"
+
+src_prepare() {
+       epatch "${FILESDIR}/${PN}-9.0-gentoo.patch"
+       use userland_GNU && epatch "${FILESDIR}/${PN}-9.0-gnu.patch"
+}
+
+src_compile() { :; }
+
+src_install() {
+       if [[ ${CHOST} != *-freebsd* ]]; then
+               insinto /usr/share/mk/freebsd
+       else
+               insinto /usr/share/mk
+       fi
+       doins *.mk *.awk
+}
index e1c77e347e25b526c60bfe421c56de74b16fe65a..c685e46199920a3fd70211f9c0043f6dd9ad2d33 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for sys-freebsd/freebsd-pam-modules
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pam-modules/ChangeLog,v 1.29 2011/12/07 17:07:54 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pam-modules/ChangeLog,v 1.30 2011/12/09 13:21:16 aballier Exp $
+
+*freebsd-pam-modules-9.0_rc3 (09 Dec 2011)
+
+  09 Dec 2011; Alexis Ballier <aballier@gentoo.org>
+  +freebsd-pam-modules-9.0_rc3.ebuild:
+  bump to 9.0_rc3
 
 *freebsd-pam-modules-9.0_rc2 (07 Dec 2011)
 
diff --git a/sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-9.0_rc3.ebuild b/sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-9.0_rc3.ebuild
new file mode 100644 (file)
index 0000000..a8b4ab7
--- /dev/null
@@ -0,0 +1,48 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-9.0_rc3.ebuild,v 1.1 2011/12/09 13:21:16 aballier Exp $
+
+inherit bsdmk freebsd multilib pam
+
+DESCRIPTION="FreeBSD's PAM authentication modules"
+SLOT="0"
+KEYWORDS="~x86-fbsd ~sparc-fbsd"
+
+IUSE="kerberos nis"
+
+SRC_URI="mirror://gentoo/${LIB}.tar.bz2"
+
+RDEPEND=">=sys-auth/openpam-20050201-r1
+       kerberos? ( dev-libs/openssl
+               virtual/krb5 )"
+DEPEND="${RDEPEND}
+       =sys-freebsd/freebsd-mk-defs-${RV}*
+       =sys-freebsd/freebsd-sources-${RV}*"
+
+S=${WORKDIR}/lib/libpam/modules
+
+pkg_setup() {
+       # Avoid installing pam_ssh as that has its own ebuild.
+       mymakeopts="${mymakeopts} NO_OPENSSH= "
+       use kerberos || mymakeopts="${mymakeopts} NO_KERBEROS= "
+       use nis || mymakeopts="${mymakeopts} NO_NIS= "
+}
+
+src_unpack() {
+       unpack ${A}
+
+       cd "${WORKDIR}"/lib
+
+       for module in pam_deny pam_passwdqc pam_permit; do
+               sed -i -e "s:${module}::" "${S}"/modules.inc
+       done
+
+       # Avoid using static versions; use gentoo /lib/security dir
+       epatch "${FILESDIR}"/${PN}-9.0-gentoo.patch
+}
+
+src_install() {
+       mkinstall "LIBDIR=/$(get_libdir)/security" || die "install failed"
+
+       dodoc "${FILESDIR}/README.pamd"
+}
index 89c61fb7e4489801d3aebabef8d31636325023bd..3834f8d58a41878fca20564d07a9293033b1a5d0 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for sys-freebsd/freebsd-pf
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pf/ChangeLog,v 1.31 2011/12/07 17:08:21 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pf/ChangeLog,v 1.32 2011/12/09 13:21:43 aballier Exp $
+
+*freebsd-pf-9.0_rc3 (09 Dec 2011)
+
+  09 Dec 2011; Alexis Ballier <aballier@gentoo.org> +freebsd-pf-9.0_rc3.ebuild:
+  bump to 9.0_rc3
 
 *freebsd-pf-9.0_rc2 (07 Dec 2011)
 
diff --git a/sys-freebsd/freebsd-pf/freebsd-pf-9.0_rc3.ebuild b/sys-freebsd/freebsd-pf/freebsd-pf-9.0_rc3.ebuild
new file mode 100644 (file)
index 0000000..356bf34
--- /dev/null
@@ -0,0 +1,68 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pf/freebsd-pf-9.0_rc3.ebuild,v 1.1 2011/12/09 13:21:43 aballier Exp $
+
+inherit bsdmk freebsd
+
+DESCRIPTION="FreeBSD's base system libraries"
+SLOT="0"
+KEYWORDS="~x86-fbsd"
+
+IUSE=""
+
+# Crypto is needed to have an internal OpenSSL header
+SRC_URI="mirror://gentoo/${USBIN}.tar.bz2
+               mirror://gentoo/${SBIN}.tar.bz2
+               mirror://gentoo/${CONTRIB}.tar.bz2
+               mirror://gentoo/${ETC}.tar.bz2"
+
+RDEPEND="net-libs/libpcap"
+DEPEND="${RDEPEND}
+       dev-libs/libevent
+       sys-freebsd/freebsd-mk-defs
+       =sys-freebsd/freebsd-sources-${RV}*"
+
+S="${WORKDIR}"
+
+SUBDIRS="usr.sbin/authpf sbin/pfctl sbin/pflogd usr.sbin/ftp-proxy/ftp-proxy"
+
+pkg_setup() {
+       enewgroup authpf 63
+       mymakeopts="${mymakeopts} NO_MANCOMPRESS= NO_INFOCOMPRESS= "
+}
+
+src_unpack() {
+       freebsd_src_unpack
+       # pcap-int.h redefines snprintf as pcap_snprintf
+       epatch "${FILESDIR}/${PN}-9.0-pcap_pollution.patch"
+       # Use system's libevent
+       epatch "${FILESDIR}/${PN}-9.0-libevent.patch"
+       epatch "${FILESDIR}/${PN}-9.0-pflogd.patch"
+       epatch "${FILESDIR}/${PN}-9.0-bpf.patch"
+       epatch "${FILESDIR}/${PN}-9.0-getline.patch"
+       # Link in kernel sources
+       ln -s "/usr/src/sys-${RV}" "${WORKDIR}/sys"
+}
+
+src_compile() {
+       for dir in ${SUBDIRS}; do
+               einfo "Starting make in ${dir}"
+               cd "${S}/${dir}"
+               mkmake || die "Make ${dir} failed"
+       done
+}
+
+src_install() {
+       for dir in ${SUBDIRS}; do
+               einfo "Starting install in ${dir}"
+               cd "${S}/${dir}"
+               mkinstall || die "Install ${dir} failed"
+       done
+
+       cd "${WORKDIR}"/etc
+       insinto /etc
+       doins pf.os
+       newdoc pf.conf pf.conf.example
+       # pf.initd provided by openrc, but no pf.confd
+       newconfd "${FILESDIR}/pf.confd" pf
+}
index 35f1a29da25996b48796c0d61a2d17c526e6769b..f42e750678531aff8d335bdf78df558137dff853 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for sys-freebsd/freebsd-rescue
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-rescue/ChangeLog,v 1.25 2011/12/07 17:08:47 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-rescue/ChangeLog,v 1.26 2011/12/09 13:22:10 aballier Exp $
+
+*freebsd-rescue-9.0_rc3 (09 Dec 2011)
+
+  09 Dec 2011; Alexis Ballier <aballier@gentoo.org>
+  +freebsd-rescue-9.0_rc3.ebuild:
+  bump to 9.0_rc3
 
 *freebsd-rescue-9.0_rc2 (07 Dec 2011)
 
diff --git a/sys-freebsd/freebsd-rescue/freebsd-rescue-9.0_rc3.ebuild b/sys-freebsd/freebsd-rescue/freebsd-rescue-9.0_rc3.ebuild
new file mode 100644 (file)
index 0000000..66b3e6a
--- /dev/null
@@ -0,0 +1,59 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-rescue/freebsd-rescue-9.0_rc3.ebuild,v 1.1 2011/12/09 13:22:10 aballier Exp $
+
+EAPI=2
+
+inherit bsdmk freebsd
+
+DESCRIPTION="FreeBSD's rescue binaries"
+SLOT="0"
+KEYWORDS="~x86-fbsd"
+LICENSE="BSD zfs? ( CDDL )"
+
+IUSE="atm netware nis zfs"
+
+SRC_URI="mirror://gentoo/${UBIN}.tar.bz2
+               mirror://gentoo/${CONTRIB}.tar.bz2
+               mirror://gentoo/${LIB}.tar.bz2
+               mirror://gentoo/${BIN}.tar.bz2
+               mirror://gentoo/${SBIN}.tar.bz2
+               mirror://gentoo/${USBIN}.tar.bz2
+               mirror://gentoo/${GNU}.tar.bz2
+               mirror://gentoo/${SYS}.tar.bz2
+               mirror://gentoo/${LIBEXEC}.tar.bz2
+               mirror://gentoo/${RESCUE}.tar.bz2
+               zfs? ( mirror://gentoo/${CDDL}.tar.bz2 )"
+
+RDEPEND=""
+DEPEND="sys-devel/flex
+       >=app-arch/libarchive-2.7.1[static-libs]
+       app-arch/xz-utils[static-libs]
+       sys-libs/ncurses[static-libs]
+       dev-libs/expat[static-libs]
+       app-arch/bzip2[static-libs]
+       dev-libs/libxml2:2[static-libs]
+       dev-libs/openssl[static-libs]
+       sys-libs/zlib[static-libs]
+       dev-util/pkgconfig
+       =sys-freebsd/freebsd-lib-${RV}*[atm?,netware?]
+       =sys-freebsd/freebsd-sources-${RV}*
+       =sys-freebsd/freebsd-mk-defs-${RV}*"
+
+S="${WORKDIR}/rescue"
+
+pkg_setup() {
+       use atm || mymakeopts="${mymakeopts} WITHOUT_ATM= "
+       use netware || mymakeopts="${mymakeopts} WITHOUT_IPX= "
+       use nis || mymakeopts="${mymakeopts} WITHOUT_NIS= "
+       use zfs || mymakeopts="${mymakeopts} WITHOUT_CDDL= "
+}
+
+src_prepare() {
+       # As they are patches from ${WORKDIR} apply them by hand
+       cd "${WORKDIR}"
+       epatch "${FILESDIR}/${PN}"-8.0-pkgconfig_static_libarchive.patch
+       epatch "${FILESDIR}/${PN}"-7.1-zlib.patch
+       epatch "${FILESDIR}/${PN}"-8.2-libzcleverlink.patch
+       epatch "${FILESDIR}/freebsd-sbin-bsdxml2expat.patch"
+}
index 4354dc66f4ff51e359a49a489d70f7d3f03baad8..898a29b061e5b9e96857bfce9ff1ebc7601bff0d 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for sys-freebsd/freebsd-sbin
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sbin/ChangeLog,v 1.60 2011/12/07 17:09:16 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sbin/ChangeLog,v 1.61 2011/12/09 13:22:37 aballier Exp $
+
+*freebsd-sbin-9.0_rc3 (09 Dec 2011)
+
+  09 Dec 2011; Alexis Ballier <aballier@gentoo.org>
+  +freebsd-sbin-9.0_rc3.ebuild:
+  bump to 9.0_rc3
 
 *freebsd-sbin-9.0_rc2 (07 Dec 2011)
 
diff --git a/sys-freebsd/freebsd-sbin/freebsd-sbin-9.0_rc3.ebuild b/sys-freebsd/freebsd-sbin/freebsd-sbin-9.0_rc3.ebuild
new file mode 100644 (file)
index 0000000..bd94d11
--- /dev/null
@@ -0,0 +1,90 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sbin/freebsd-sbin-9.0_rc3.ebuild,v 1.1 2011/12/09 13:22:37 aballier Exp $
+
+EAPI=2
+
+inherit bsdmk freebsd
+
+DESCRIPTION="FreeBSD sbin utils"
+KEYWORDS="~sparc-fbsd ~x86-fbsd"
+SLOT="0"
+
+SRC_URI="mirror://gentoo/${SBIN}.tar.bz2
+       mirror://gentoo/${CONTRIB}.tar.bz2
+       mirror://gentoo/${LIB}.tar.bz2
+       mirror://gentoo/${LIBEXEC}.tar.bz2
+       mirror://gentoo/${USBIN}.tar.bz2
+       mirror://gentoo/${ETC}.tar.bz2
+       build? ( mirror://gentoo/${SYS}.tar.bz2 )"
+
+RDEPEND="=sys-freebsd/freebsd-lib-${RV}*[ipv6?,atm?,netware?]
+       =sys-freebsd/freebsd-libexec-${RV}*
+       >=dev-libs/expat-2.0.1
+       ssl? ( dev-libs/openssl )
+       sys-libs/readline
+       sys-process/vixie-cron
+       atm? ( net-analyzer/bsnmp )"
+DEPEND="${RDEPEND}
+       !build? ( =sys-freebsd/freebsd-sources-${RV}* )
+       =sys-freebsd/freebsd-mk-defs-${RV}*"
+
+S="${WORKDIR}/sbin"
+
+IUSE="atm ipfilter +pf ipv6 build ssl +cxx netware"
+
+pkg_setup() {
+       use atm || mymakeopts="${mymakeopts} WITHOUT_ATM= "
+       use cxx || mymakeopts="${mymakeopts} WITHOUT_CXX="
+       use ipfilter || mymakeopts="${mymakeopts} WITHOUT_IPFILTER= "
+       use ipv6 || mymakeopts="${mymakeopts} WITHOUT_INET6= WITHOUT_INET6_SUPPORT="
+       use netware || mymakeopts="${mymakeopts} WITHOUT_IPX= WITHOUT_IPX_SUPPORT= WITHOUT_NCP= "
+       use pf || mymakeopts="${mymakeopts} WITHOUT_PF= "
+       use ssl || mymakeopts="${mymakeopts} WITHOUT_OPENSSL="
+}
+
+REMOVE_SUBDIRS="dhclient pfctl pflogd rcorder"
+
+PATCHES=( "${FILESDIR}/${PN}-setXid.patch"
+       "${FILESDIR}/${PN}-7.1-zlib.patch"
+       "${FILESDIR}/${PN}-6.2-ldconfig.patch"
+       "${FILESDIR}/${PN}-6.1-pr102701.patch"
+       "${FILESDIR}/${PN}-bsdxml2expat.patch" )
+
+src_prepare() {
+       use build || ln -s "/usr/src/sys-${RV}" "${WORKDIR}/sys"
+}
+
+src_install() {
+       freebsd_src_install
+       keepdir /var/log
+       # Needed by ldconfig:
+       keepdir /var/run
+
+       # Maybe ship our own sysctl.conf so things like radvd work out of the box.
+       # New wireless config method requires regdomain.xml in /etc
+       cd "${WORKDIR}/etc/"
+       insinto /etc
+       doins minfree sysctl.conf regdomain.xml || die
+
+       # initd script for idmapd
+       newinitd "${FILESDIR}/idmapd.initd" idmapd
+
+       # Install a crontab for adjkerntz
+       insinto /etc/cron.d
+       newins "${FILESDIR}/adjkerntz-crontab" adjkerntz
+
+       # Install the periodic stuff (needs probably to be ported in a more
+       # gentooish way)
+       cd "${WORKDIR}/etc/periodic"
+
+       doperiodic security \
+               security/*.ipfwlimit \
+               security/*.ipfwdenied || die
+
+       use ipfilter && { doperiodic security \
+               security/*.ipfdenied || die ; }
+
+       use pf && { doperiodic security \
+               security/*.pfdenied || die ; }
+}
index b0ce308d0d498004df3d54a7f253eeb1cdb53c18..8eb735d548cc10e17d15696ef0ce0f1ba664d8e2 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for sys-freebsd/freebsd-share
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-share/ChangeLog,v 1.39 2011/12/07 17:09:42 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-share/ChangeLog,v 1.40 2011/12/09 13:23:04 aballier Exp $
+
+*freebsd-share-9.0_rc3 (09 Dec 2011)
+
+  09 Dec 2011; Alexis Ballier <aballier@gentoo.org>
+  +freebsd-share-9.0_rc3.ebuild:
+  bump to 9.0_rc3
 
 *freebsd-share-9.0_rc2 (07 Dec 2011)
 
diff --git a/sys-freebsd/freebsd-share/freebsd-share-9.0_rc3.ebuild b/sys-freebsd/freebsd-share/freebsd-share-9.0_rc3.ebuild
new file mode 100644 (file)
index 0000000..b26533c
--- /dev/null
@@ -0,0 +1,85 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-share/freebsd-share-9.0_rc3.ebuild,v 1.1 2011/12/09 13:23:04 aballier Exp $
+
+inherit bsdmk freebsd
+
+DESCRIPTION="FreeBSD shared tools/files"
+SLOT="0"
+KEYWORDS="~sparc-fbsd ~x86-fbsd"
+
+IUSE="doc isdn"
+
+SRC_URI="mirror://gentoo/${SHARE}.tar.bz2
+       mirror://gentoo/${CONTRIB}.tar.bz2
+       mirror://gentoo/${GNU}.tar.bz2
+       mirror://gentoo/${UBIN}.tar.bz2
+       mirror://gentoo/${USBIN}.tar.bz2
+       mirror://gentoo/${SBIN}.tar.bz2
+       mirror://gentoo/${BIN}.tar.bz2
+       mirror://gentoo/${LIB}.tar.bz2
+       mirror://gentoo/${ETC}.tar.bz2"
+
+DEPEND="=sys-freebsd/freebsd-mk-defs-${RV}*
+               =sys-freebsd/freebsd-sources-${RV}*"
+RDEPEND="sys-apps/miscfiles"
+
+RESTRICT="strip"
+
+S="${WORKDIR}/share"
+
+pkg_setup() {
+       use isdn || mymakeopts="${mymakeopts} NO_I4B= "
+       use doc || mymakeopts="${mymakeopts} NO_SHAREDOCS= "
+
+       mymakeopts="${mymakeopts} NO_SENDMAIL= NO_MANCOMPRESS= NO_INFOCOMPRESS= "
+}
+
+REMOVE_SUBDIRS="mk termcap zoneinfo tabset"
+
+PATCHES=( "${FILESDIR}/${PN}-5.3-doc-locations.patch"
+       "${FILESDIR}/${PN}-5.4-gentoo-skel.patch"
+       "${FILESDIR}/${PN}-8.0-gnu-miscfiles.patch" )
+
+src_unpack() {
+       freebsd_src_unpack
+
+       # Remove make.conf manpage as it describes bsdmk's make.conf.
+       sed -i -e 's:make.conf.5::' "${S}/man/man5/Makefile"
+       # Remove mailer.conf manpage
+       sed -i -e 's:mailer.conf.5::' "${S}/man/man5/Makefile"
+       # Remove pbm and moduli(ssh) manpages
+       sed -i -e 's:pbm.5::' -e 's:moduli.5::' "${S}/man/man5/Makefile"
+       # Remove builtins manpage
+       sed -i -e '/builtins\.1/d' "${S}/man/man1/Makefile"
+       # Remove rc manpages
+       sed -i -e '/rc.8/d' "${S}/man/man8/Makefile"
+
+       # Don't install the arch-specific directories in subdirectories
+       sed -i -e '/MANSUBDIR/d' "${S}"/man/man4/man4.{i386,sparc64}/Makefile
+
+       # Remove them so that they can't be included by error
+       rm -rf "${S}"/mk/*.mk
+
+       # Make proper symlinks by defining the full target.
+       local sdir
+       for sdir in colldef mklocale monetdef msgdef numericdef timedef
+       do
+               sed -e 's:\${enc2}$:\${enc2}/\${FILESNAME}:g' -i \
+                       "${S}/${sdir}/Makefile" || \
+                       die "Error fixing ${sdir}/Makefile"
+       done
+       ln -s "/usr/src/sys-${RV}" "${WORKDIR}/sys" || die "failed to set sys symlink"
+}
+
+src_compile() {
+       export ESED="/usr/bin/sed"
+
+       # This is a groff problem and not a -shared problem.
+       export GROFF_TMAC_PATH="/usr/share/tmac/:/usr/share/groff/1.19.1/tmac/"
+       mkmake || die "emake failed"
+}
+
+src_install() {
+       mkmake -j1 DESTDIR="${D}" DOCDIR=/usr/share/doc/${PF} install || die "Install failed"
+}
index c50249c89ecc47c6f6b3326bb8bd658e9f19949c..5611a2d5e857b90bef2ca89a2dead8383a722c86 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for sys-freebsd/freebsd-sources
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sources/ChangeLog,v 1.60 2011/12/07 17:10:09 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sources/ChangeLog,v 1.61 2011/12/09 13:23:31 aballier Exp $
+
+*freebsd-sources-9.0_rc3 (09 Dec 2011)
+
+  09 Dec 2011; Alexis Ballier <aballier@gentoo.org>
+  +freebsd-sources-9.0_rc3.ebuild:
+  bump to 9.0_rc3
 
 *freebsd-sources-9.0_rc2 (07 Dec 2011)
 
diff --git a/sys-freebsd/freebsd-sources/freebsd-sources-9.0_rc3.ebuild b/sys-freebsd/freebsd-sources/freebsd-sources-9.0_rc3.ebuild
new file mode 100644 (file)
index 0000000..3a2206c
--- /dev/null
@@ -0,0 +1,103 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sources/freebsd-sources-9.0_rc3.ebuild,v 1.1 2011/12/09 13:23:31 aballier Exp $
+
+inherit bsdmk freebsd flag-o-matic
+
+DESCRIPTION="FreeBSD kernel sources"
+SLOT="${PVR}"
+KEYWORDS="~sparc-fbsd ~x86-fbsd"
+
+IUSE="symlink"
+
+SRC_URI="mirror://gentoo/${SYS}.tar.bz2"
+
+RDEPEND=">=sys-freebsd/freebsd-mk-defs-8.0"
+DEPEND=""
+
+RESTRICT="strip binchecks"
+
+S="${WORKDIR}/sys"
+
+MY_PVR="${PVR}"
+
+[[ ${MY_PVR} == "${RV}" ]] && MY_PVR="${MY_PVR}-r0"
+
+src_unpack() {
+       unpack ${A}
+       cd "${S}"
+
+       # This replaces the gentoover patch, it doesn't need reapply every time.
+       sed -i -e 's:^REVISION=.*:REVISION="'${PVR}'":' \
+               -e 's:^BRANCH=.*:BRANCH="Gentoo":' \
+               -e 's:^VERSION=.*:VERSION="${TYPE} ${BRANCH} ${REVISION}":' \
+               "${S}/conf/newvers.sh"
+
+       # __FreeBSD_cc_version comes from FreeBSD's gcc.
+       # on 8.2-RELEASE it's 800001.
+       sed -e "s:-D_KERNEL:-D_KERNEL -D__FreeBSD_cc_version=800001:g" \
+               -i "${S}/conf/kern.pre.mk" \
+               -i "${S}/conf/kmod.mk" || die "Couldn't set __FreeBSD_cc_version"
+
+       # Remove -Werror
+       sed -e "s:-Werror:-Wno-error:g" \
+               -i "${S}/conf/kern.pre.mk" \
+               -i "${S}/conf/kmod.mk" || die
+
+       epatch "${FILESDIR}/${PN}-9.0-gentoo.patch"
+       epatch "${FILESDIR}/${PN}-6.0-flex-2.5.31.patch"
+       sed -e 's/elf64-sparc/elf64-sparc-freebsd/g' -i "${S}/conf/ldscript.sparc64" || die
+       epatch "${FILESDIR}/${PN}-6.1-ntfs.patch"
+       epatch "${FILESDIR}/${PN}-7.1-types.h-fix.patch"
+       epatch "${FILESDIR}/${PN}-8.0-subnet-route-pr40133.patch"
+       epatch "${FILESDIR}/${PN}-7.1-includes.patch"
+
+       # By adding -DGENTOO_LIVECD to CFLAGS activate this stub
+       # vop_whiteout to tmpfs, so it can be used as an overlay
+       # unionfs filesystem over the cd9660 readonly filesystem.
+       epatch "${FILESDIR}/${PN}-7.0-tmpfs_whiteout_stub.patch"
+
+       # See http://sourceware.org/bugzilla/show_bug.cgi?id=5391
+       # ld doesn't provide symbols constructed as the __start_set_(s) ones
+       # are on FreeBSD modules.
+       # This patch adds code to generate a list of these and adds them
+       # as undefined references to ld's commandline to get them.
+       # Without this kernel modules will not load.
+       #epatch "${FILESDIR}/${PN}-7.1-binutils_link.patch"
+}
+
+src_compile() {
+       einfo "Nothing to compile.."
+}
+
+src_install() {
+       insinto "/usr/src/sys-${MY_PVR}"
+       doins -r "${S}/"*
+}
+
+pkg_postinst() {
+       if [[ ! -L "${ROOT}/usr/src/sys" ]]; then
+               einfo "/usr/src/sys symlink doesn't exist; creating symlink to sys-${MY_PVR}..."
+               ln -sf "sys-${MY_PVR}" "${ROOT}/usr/src/sys" || \
+                       eerror "Couldn't create ${ROOT}/usr/src/sys symlink."
+               # just in case...
+               [[ -L ""${ROOT}/usr/src/sys-${RV}"" ]] && rm "${ROOT}/usr/src/sys-${RV}"
+               ln -sf "sys-${MY_PVR}" "${ROOT}/usr/src/sys-${RV}" || \
+                       eerror "Couldn't create ${ROOT}/usr/src/sys-${RV} symlink."
+       elif use symlink; then
+               einfo "Updating /usr/src/sys symlink to sys-${MY_PVR}..."
+               rm "${ROOT}/usr/src/sys" "${ROOT}/usr/src/sys-${RV}" || \
+                       eerror "Couldn't remove previous symlinks, please fix manually."
+               ln -sf "sys-${MY_PVR}" "${ROOT}/usr/src/sys" || \
+                       eerror "Couldn't create ${ROOT}/usr/src/sys symlink."
+               ln -sf "sys-${MY_PVR}" "${ROOT}/usr/src/sys-${RV}" || \
+                       eerror "Couldn't create ${ROOT}/usr/src/sys-${RV} symlink."
+       fi
+
+       if use sparc-fbsd ; then
+               ewarn "WARNING: kldload currently causes kernel panics"
+               ewarn "on sparc64. This is probably a gcc-4.1 issue, but"
+               ewarn "we need gcc-4.1 to compile the kernel correctly :/"
+               ewarn "Please compile all modules you need into the kernel"
+       fi
+}
index 160675a0a1bab119b8e62b81eaa926812a519327..7ea90169d8c6d4489067deed9914ee6da7e9d10e 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for sys-freebsd/freebsd-ubin
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-ubin/ChangeLog,v 1.73 2011/12/07 17:10:37 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-ubin/ChangeLog,v 1.74 2011/12/09 13:23:58 aballier Exp $
+
+*freebsd-ubin-9.0_rc3 (09 Dec 2011)
+
+  09 Dec 2011; Alexis Ballier <aballier@gentoo.org>
+  +freebsd-ubin-9.0_rc3.ebuild:
+  bump to 9.0_rc3
 
 *freebsd-ubin-9.0_rc2 (07 Dec 2011)
 
diff --git a/sys-freebsd/freebsd-ubin/freebsd-ubin-9.0_rc3.ebuild b/sys-freebsd/freebsd-ubin/freebsd-ubin-9.0_rc3.ebuild
new file mode 100644 (file)
index 0000000..cb883c3
--- /dev/null
@@ -0,0 +1,154 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-ubin/freebsd-ubin-9.0_rc3.ebuild,v 1.1 2011/12/09 13:23:58 aballier Exp $
+
+EAPI=2
+
+inherit bsdmk freebsd flag-o-matic pam
+
+DESCRIPTION="FreeBSD's base system source for /usr/bin"
+SLOT="0"
+KEYWORDS="~sparc-fbsd ~x86-fbsd"
+IUSE="ar atm audit bluetooth ipv6 kerberos netware nis ssl usb build zfs"
+LICENSE="BSD zfs? ( CDDL )"
+
+SRC_URI="mirror://gentoo/${UBIN}.tar.bz2
+               mirror://gentoo/${CONTRIB}.tar.bz2
+               mirror://gentoo/${LIB}.tar.bz2
+               mirror://gentoo/${ETC}.tar.bz2
+               mirror://gentoo/${BIN}.tar.bz2
+               mirror://gentoo/${INCLUDE}.tar.bz2
+               zfs? ( mirror://gentoo/${CDDL}.tar.bz2 )
+               build? ( mirror://gentoo/${SYS}.tar.bz2 )"
+
+RDEPEND="=sys-freebsd/freebsd-lib-${RV}*[usb?,bluetooth?]
+       ssl? ( dev-libs/openssl )
+       kerberos? ( virtual/krb5 )
+       ar? ( app-arch/libarchive )
+       virtual/pam
+       sys-libs/zlib
+       >=sys-libs/ncurses-5.9
+       !sys-process/fuser-bsd
+       !dev-util/csup"
+
+DEPEND="${RDEPEND}
+       sys-devel/flex
+       !build? ( =sys-freebsd/freebsd-sources-${RV}* )
+       =sys-freebsd/freebsd-mk-defs-${RV}*"
+
+RDEPEND="${RDEPEND}
+       >=sys-auth/pambase-20080219.1
+       sys-process/cronbase"
+
+S="${WORKDIR}/usr.bin"
+
+PATCHES=( "${FILESDIR}/${PN}-6.0-bsdcmp.patch"
+       "${FILESDIR}/${PN}-9.0-fixmakefiles.patch"
+       "${FILESDIR}/${PN}-setXid.patch"
+       "${FILESDIR}/${PN}-lint-stdarg.patch"
+       "${FILESDIR}/${PN}-6.0-kdump-ioctl.patch"
+       "${FILESDIR}/${PN}-8.0-xinstall.patch"
+       "${FILESDIR}/${PN}-8.0-bsdar.patch" )
+
+# Here we remove some sources we don't need because they are already
+# provided by portage's packages or similar. In order:
+# - Archiving tools, provided by their own ebuilds
+# - ncurses stuff
+# - less stuff
+# - bind utils
+# - rsh stuff
+# - binutils gprof
+# and the rest are misc utils we already provide somewhere else.
+REMOVE_SUBDIRS="bzip2 bzip2recover tar cpio
+       gzip gprof
+       lzmainfo xz xzdec
+       unzip
+       tput tset tabs
+       less lessecho lesskey
+       dig hesinfo nslookup nsupdate host
+       rsh rlogin rusers rwho ruptime
+       compile_et lex vi smbutil file vacation nc ftp telnet
+       c99 c89
+       whois tftp man"
+
+pkg_setup() {
+       use atm || mymakeopts="${mymakeopts} WITHOUT_ATM= "
+       use audit || mymakeopts="${mymakeopts} WITHOUT_AUDIT= "
+       use bluetooth || mymakeopts="${mymakeopts} WITHOUT_BLUETOOTH= "
+       use ipv6 || mymakeopts="${mymakeopts} WITHOUT_INET6= WITHOUT_INET6_SUPPORT= "
+       use kerberos || mymakeopts="${mymakeopts} WITHOUT_KERBEROS_SUPPORT= "
+       use netware || mymakeopts="${mymakeopts} WITHOUT_IPX= WITHOUT_IPX_SUPPORT= WITHOUT_NCP= "
+       use nis || mymakeopts="${mymakeopts} WITHOUT_NIS= "
+       use ssl || mymakeopts="${mymakeopts} WITHOUT_OPENSSL= "
+       use usb || mymakeopts="${mymakeopts} WITHOUT_USB= "
+       use zfs || mymakeopts="${mymakeopts} WITHOUT_CDDL= "
+       mymakeopts="${mymakeopts} WITHOUT_CLANG= "
+}
+
+pkg_preinst() {
+       # bison installs a /usr/bin/yacc symlink ...
+       # we need to remove it to avoid triggering
+       # collision-protect errors
+       if [[ -L ${ROOT}/usr/bin/yacc ]] ; then
+               rm -f "${ROOT}"/usr/bin/yacc
+       fi
+}
+
+src_prepare() {
+       use build || ln -s "/usr/src/sys-${RV}" "${WORKDIR}/sys"
+
+       # Rename manpage for renamed cmp
+       mv "${S}"/cmp/cmp.1 "${S}"/cmp/bsdcmp.1 || die
+       # Rename manpage for renamed ar
+       mv "${S}"/ar/ar.1 "${S}"/ar/freebsd-ar.1 || die
+       # Fix whereis(1) manpath search.
+       sed -i -e 's:"manpath -q":"manpath":' "${S}/whereis/pathnames.h"
+
+       # Build a dynamic make
+       sed -i -e '/^NO_SHARED/ s/^/#/' "${S}"/make/Makefile || die
+
+       # Disable it here otherwise our patch wont apply
+       use ar || dummy_mk ar
+}
+
+src_install() {
+       freebsd_src_install
+
+       # baselayout requires these in /bin
+       dodir /bin
+       for bin in sed printf fuser; do
+               mv "${D}/usr/bin/${bin}" "${D}/bin/" || die "mv ${bin} failed"
+               dosym /bin/${bin} /usr/bin/${bin} || die "dosym ${bin} failed"
+       done
+
+       for pamdfile in login passwd su; do
+               newpamd "${FILESDIR}/${pamdfile}.1.pamd" ${pamdfile} || die
+       done
+
+       cd "${WORKDIR}/etc"
+       insinto /etc
+       doins remote phones opieaccess fbtab || die
+
+       exeinto /etc/cron.daily
+       newexe "${FILESDIR}/locate-updatedb-cron" locate.updatedb || die
+
+       # tip requires /var/spool/lock/, bug #200700
+       keepdir /var/spool/lock
+}
+
+pkg_postinst() {
+       # We need to ensure that login.conf.db is up-to-date.
+       if [[ -e "${ROOT}"etc/login.conf ]] ; then
+               einfo "Updating ${ROOT}etc/login.conf.db"
+               "${ROOT}"usr/bin/cap_mkdb       -f "${ROOT}"etc/login.conf "${ROOT}"etc/login.conf
+               elog "Remember to run cap_mkdb /etc/login.conf after making changes to it"
+       fi
+}
+
+pkg_postrm() {
+       # and if we uninstall yacc but keep bison,
+       # lets restore the /usr/bin/yacc symlink
+       if [[ ! -e ${ROOT}/usr/bin/yacc ]] && [[ -e ${ROOT}/usr/bin/yacc.bison ]] ; then
+               ln -s yacc.bison "${ROOT}"/usr/bin/yacc
+       fi
+}
index c40daefbb5f4cbe4da5cb79b18fc9d986fe296af..4e343e8034c915f3c53057a603f2b531e89d6e77 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for sys-freebsd/freebsd-usbin
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/ChangeLog,v 1.72 2011/12/07 17:11:06 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/ChangeLog,v 1.73 2011/12/09 13:24:25 aballier Exp $
+
+*freebsd-usbin-9.0_rc3 (09 Dec 2011)
+
+  09 Dec 2011; Alexis Ballier <aballier@gentoo.org>
+  +freebsd-usbin-9.0_rc3.ebuild:
+  bump to 9.0_rc3
 
 *freebsd-usbin-9.0_rc2 (07 Dec 2011)
 
diff --git a/sys-freebsd/freebsd-usbin/freebsd-usbin-9.0_rc3.ebuild b/sys-freebsd/freebsd-usbin/freebsd-usbin-9.0_rc3.ebuild
new file mode 100644 (file)
index 0000000..5f74b9f
--- /dev/null
@@ -0,0 +1,173 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/freebsd-usbin-9.0_rc3.ebuild,v 1.1 2011/12/09 13:24:25 aballier Exp $
+
+EAPI=2
+
+inherit bsdmk freebsd flag-o-matic eutils
+
+DESCRIPTION="FreeBSD /usr/sbin tools"
+SLOT="0"
+KEYWORDS="~sparc-fbsd ~x86-fbsd"
+
+SRC_URI="mirror://gentoo/${P}.tar.bz2
+               mirror://gentoo/${CONTRIB}.tar.bz2
+               mirror://gentoo/${UBIN}.tar.bz2
+               mirror://gentoo/${LIB}.tar.bz2
+               mirror://gentoo/${SBIN}.tar.bz2
+               mirror://gentoo/${ETC}.tar.bz2
+               mirror://gentoo/${GNU}.tar.bz2
+               nis? ( mirror://gentoo/${LIBEXEC}.tar.bz2 )
+               build? ( mirror://gentoo/${SYS}.tar.bz2
+                       mirror://gentoo/${INCLUDE}.tar.bz2 )"
+
+RDEPEND="=sys-freebsd/freebsd-lib-${RV}*[usb?,bluetooth?,netware?]
+       =sys-freebsd/freebsd-libexec-${RV}*
+       =sys-freebsd/freebsd-contrib-${RV}*
+       acpi? ( sys-power/iasl )
+       build? ( sys-apps/baselayout )
+       ssl? ( dev-libs/openssl )
+       sys-apps/tcp-wrappers
+       dev-util/dialog
+       dev-libs/libelf
+       net-libs/libpcap"
+DEPEND="${RDEPEND}
+       =sys-freebsd/freebsd-mk-defs-${RV}*
+       =sys-freebsd/freebsd-ubin-${RV}*
+       !build? ( =sys-freebsd/freebsd-sources-${RV}* )
+       sys-apps/texinfo
+       sys-devel/flex"
+
+S="${WORKDIR}/usr.sbin"
+
+IUSE="acpi atm audit bluetooth floppy ipv6 isdn minimal netware nis pam ssl usb build"
+
+pkg_setup() {
+       # Release crunch is something like minimal. It seems to remove everything
+       # which is not needed to work.
+       use minimal && mymakeopts="${mymakeopts} RELEASE_CRUNCH= "
+
+       use acpi || mymakeopts="${mymakeopts} WITHOUT_ACPI= "
+       use atm || mymakeopts="${mymakeopts} WITHOUT_ATM= "
+       use audit || mymakeopts="${mymakeopts} WITHOUT_AUDIT= "
+       use bluetooth || mymakeopts="${mymakeopts} WITHOUT_BLUETOOTH= "
+       use ipv6 || mymakeopts="${mymakeopts} WITHOUT_INET6= WITHOUT_INET6_SUPPORT= "
+       use isdn || mymakeopts="${mymakeopts} WITHOUT_I4B= "
+       use netware || mymakeopts="${mymakeopts} WITHOUT_IPX= WITHOUT_IPX_SUPPORT= WITHOUT_NCP= "
+       use nis || mymakeopts="${mymakeopts} WITHOUT_NIS= "
+       use pam || mymakeopts="${mymakeopts} WITHOUT_PAM_SUPPORT= "
+       use ssl || mymakeopts="${mymakeopts} WITHOUT_OPENSSL= "
+       use usb || mymakeopts="${mymakeopts} WITHOUT_USB= "
+       use floppy || mymakeopts="${mymakeopts} WITHOUT_FLOPPY= "
+
+       mymakeopts="${mymakeopts} WITHOUT_BIND_NAMED= WITHOUT_BIND_DNSSEC= WITHOUT_PF= WITHOUT_LPR= WITHOUT_SENDMAIL= WITHOUT_AUTHPF= WITHOUT_MAILWRAPPER= "
+
+       append-flags $(test-flags -fno-strict-aliasing)
+}
+
+PATCHES=(
+       "${FILESDIR}/${PN}-adduser.patch"
+       "${FILESDIR}/${PN}-9.0-newsyslog.patch"
+       "${FILESDIR}/${PN}-9.0-libarchive.patch"
+       )
+
+REMOVE_SUBDIRS="
+       named named-checkzone named-checkconf rndc rndc-confgen
+       dnssec-keygen dnssec-signzone
+       tcpdchk tcpdmatch
+       sendmail praliases editmap mailstats makemap
+       sysinstall cron mailwrapper ntp bsnmpd
+       tcpdump ndp inetd
+       wpa/wpa_supplicant wpa/hostapd wpa/hostapd_cli wpa/wpa_cli wpa/wpa_passphrase
+       zic amd
+       pkg_install freebsd-update"
+
+src_prepare() {
+       if ! use build; then
+               ln -s "/usr/src/sys-${RV}" "${WORKDIR}/sys"
+               ln -s "/usr/include" "${WORKDIR}/include"
+       else
+               dummy_mk mount_smbfs
+       fi
+       # Don't install mtree format manpage
+       # it's installed by libarchive.
+       sed -e "s: mtree.5::g" -i "${S}"/mtree/Makefile
+}
+
+src_install() {
+       # By creating these directories we avoid having to do a
+       # more complex hack
+       dodir /usr/share/doc
+       dodir /sbin
+       dodir /usr/libexec
+       dodir /usr/bin
+
+       # FILESDIR is used by some makefiles which will install files
+       # in the wrong place, just put it in the doc directory.
+       mkinstall DOCDIR=/usr/share/doc/${PF} || die "Install failed"
+
+       # Most of these now come from openrc.
+       for util in nfs rpc.statd rpc.lockd; do
+               newinitd "${FILESDIR}/"${util}.initd ${util} || die
+               if [[ -e "${FILESDIR}"/${util}.confd ]]; then \
+                       newconfd "${FILESDIR}"/${util}.confd ${util} || die
+               fi
+       done
+
+       for class in daily monthly weekly; do
+               cat - > "${T}/periodic.${class}" <<EOS
+#!/bin/sh
+/usr/sbin/periodic ${class}
+EOS
+               exeinto /etc/cron.${class}
+               newexe "${T}/periodic.${class}" periodic
+       done
+
+       # Install the pw.conf file to let pw use Gentoo's skel location
+       insinto /etc
+       doins "${FILESDIR}/pw.conf" || die
+
+       cd "${WORKDIR}/etc"
+       doins apmd.conf syslog.conf newsyslog.conf nscd.conf || die
+
+       insinto /etc/ppp
+       doins ppp/ppp.conf || die
+
+       if use isdn; then
+               insinto /etc/isdn
+               doins isdn/* || die
+               rm -f "${D}"/etc/isdn/Makefile
+       fi
+
+       if use bluetooth; then
+               insinto /etc/bluetooth
+               doins bluetooth/* || die
+               rm -f "${D}"/etc/bluetooth/Makefile
+       fi
+
+       # Install the periodic stuff (needs probably to be ported in a more
+       # gentooish way)
+       cd "${WORKDIR}/etc/periodic"
+
+       doperiodic daily daily/*.accounting
+       doperiodic monthly monthly/*.accounting
+}
+
+pkg_postinst() {
+       # We need to run pwd_mkdb if key files are not present
+       # If they are, then there is no need to run pwd_mkdb
+       if [[ ! -e "${ROOT}etc/passwd" || ! -e "${ROOT}etc/pwd.db" || ! -e "${ROOT}etc/spwd.db" ]] ; then
+               if [[ -e "${ROOT}etc/master.passwd" ]] ; then
+                       einfo "Generating passwd files from ${ROOT}etc/master.passwd"
+                       "${ROOT}"usr/sbin/pwd_mkdb -p -d "${ROOT}etc" "${ROOT}etc/master.passwd"
+               else
+                       eerror "${ROOT}etc/master.passwd does not exist!"
+                       eerror "You will no be able to log into your system!"
+               fi
+       fi
+
+       for logfile in messages security auth.log maillog lpd-errs xferlog cron \
+               debug.log slip.log ppp.log; do
+               [[ -f "${ROOT}/var/log/${logfile}" ]] || touch "${ROOT}/var/log/${logfile}"
+       done
+}