summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2006-04-01 16:43:51 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2006-04-01 16:43:51 +0000
commit5dc4e9c7f7e398c0d6107024fca2258535c5be15 (patch)
tree080e2ac76a948ae665f1c33c3db64e13f1751e41 /sys-freebsd/freebsd-lib
parentAdd sys-freebsd to the category list. (diff)
downloadhistorical-5dc4e9c7f7e398c0d6107024fca2258535c5be15.tar.gz
historical-5dc4e9c7f7e398c0d6107024fca2258535c5be15.tar.bz2
historical-5dc4e9c7f7e398c0d6107024fca2258535c5be15.zip
Import sys-freebsd into main portage.
Package-Manager: portage-2.1_pre7-r3
Diffstat (limited to 'sys-freebsd/freebsd-lib')
-rw-r--r--sys-freebsd/freebsd-lib/ChangeLog130
-rw-r--r--sys-freebsd/freebsd-lib/Manifest39
-rw-r--r--sys-freebsd/freebsd-lib/files/digest-freebsd-lib-6.018
-rw-r--r--sys-freebsd/freebsd-lib/files/freebsd-lib-6.0-flex-2.5.31.patch13
-rw-r--r--sys-freebsd/freebsd-lib/files/freebsd-lib-6.0-gccfloat.patch16
-rw-r--r--sys-freebsd/freebsd-lib/files/freebsd-lib-6.0-pmc.patch13
-rw-r--r--sys-freebsd/freebsd-lib/files/freebsd-lib-bsdxml.patch13
-rw-r--r--sys-freebsd/freebsd-lib/files/freebsd-lib-fixmakefiles.patch119
-rw-r--r--sys-freebsd/freebsd-lib/files/freebsd-lib-fixmp.patch12
-rw-r--r--sys-freebsd/freebsd-lib/files/freebsd-lib-msun-fenvc.patch11
-rw-r--r--sys-freebsd/freebsd-lib/files/freebsd-lib-runet.patch11
-rw-r--r--sys-freebsd/freebsd-lib/freebsd-lib-6.0.ebuild115
-rw-r--r--sys-freebsd/freebsd-lib/metadata.xml5
13 files changed, 515 insertions, 0 deletions
diff --git a/sys-freebsd/freebsd-lib/ChangeLog b/sys-freebsd/freebsd-lib/ChangeLog
new file mode 100644
index 000000000000..71ca58743b98
--- /dev/null
+++ b/sys-freebsd/freebsd-lib/ChangeLog
@@ -0,0 +1,130 @@
+# ChangeLog for sys-libs/freebsd-lib
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-lib/ChangeLog,v 1.1 2006/04/01 16:43:50 flameeyes Exp $
+
+*freebsd-lib-6.0 (01 Apr 2006)
+
+ 01 Apr 2006; Diego Pettenò <flameeyes@gentoo.org>
+ +files/freebsd-lib-6.0-flex-2.5.31.patch,
+ +files/freebsd-lib-6.0-gccfloat.patch, +files/freebsd-lib-6.0-pmc.patch,
+ +files/freebsd-lib-bsdxml.patch, +files/freebsd-lib-fixmakefiles.patch,
+ +files/freebsd-lib-fixmp.patch, +files/freebsd-lib-msun-fenvc.patch,
+ +files/freebsd-lib-runet.patch, +metadata.xml, +freebsd-lib-6.0.ebuild:
+ Import into portage.
+
+ 20 Feb 2006; Diego Pettenò <flameeyes@gentoo.org> ChangeLog:
+ Fix deprecated stuff to use NO_* syntax.
+
+ 20 Feb 2006; Diego Pettenò <flameeyes@gentoo.org> ChangeLog:
+ Add patch to build with flex 2.5.31 (and hard depend on that version as the
+ change is non-backward-compatible.
+
+ 14 Feb 2006; Diego Pettenò <flameeyes@gentoo.org> ChangeLog:
+ Make sure that /dev/zero is a character special so that we don't compile a
+ broken libc if /dev is not mounted.
+
+ 13 Feb 2006; Diego Pettenò <flameeyes@gentoo.org> ChangeLog:
+ Install configuration files here instead than on baselayout.
+
+ 13 Feb 2006; Diego Pettenò <flameeyes@gentoo.org> ChangeLog:
+ On suggestion from Benigno B. Junior (bbj), don't extract sys and include,
+ instead symlink them inside ${WORKDIR}. This also drops the patch to fix
+ makefiles.
+
+ 13 Jan 2006; Diego Pettenò <flameeyes@gentoo.org> ChangeLog:
+ Add -static-libgcc to flags so that libc won't link to libgcc_s.
+
+ 23 Oct 2005; Diego Pettenò <flameeyes@gentoo.org> ChangeLog:
+ Added conditional src_uri on usr.sbin for nis useflag. Thanks The_Paya @
+ #gentoo-bsd.
+
+*freebsd-lib-6.0_beta4 (19 Sep 2005)
+
+ 19 Sep 2005; Diego Pettenò <flameeyes@gentoo.org>
+ +files/freebsd-lib-6.0-fixmakefiles.patch,
+ +files/freebsd-lib-6.0-gccfloat.patch,
+ +files/freebsd-lib-6.0-gccfloat.patch~, +files/freebsd-lib-6.0-pmc.patch,
+ +freebsd-lib-6.0_beta4.ebuild:
+ Added freebsd-lib 6.0_beta4, slotted to avoid removing the old 5.4. This can
+ be a problem, remember\!.
+
+ 25 Aug 2005; Diego Pettenò <flameeyes@gentoo.org>
+ +files/freebsd-lib-bsdxml.patch, +files/freebsd-lib-fixmakefiles.patch,
+ +files/freebsd-lib-fixmp.patch, +files/freebsd-lib-msun-fenvc.patch,
+ +files/freebsd-lib-runet.patch, +freebsd-lib-5.4-r2.ebuild:
+ Moved to sys-freebsd.
+
+ 18 Aug 2005; Diego Pettenò <flameeyes@gentoo.org>
+ freebsd-lib-5.4-r2.ebuild:
+ Updated to reflect bsdmk/freebsd eclasses changes.
+
+ 29 Jul 2005; Diego Pettenò <flameeyes@gentoo.org>
+ freebsd-lib-5.4-r2.ebuild:
+ Adapt to recent bsdmk changes.
+
+ 16 Jun 2005; Diego Pettenò <flameeyes@gentoo.org>
+ freebsd-lib-5.4-r2.ebuild:
+ Removed a lot of subtargets which aren't needed on our setup.
+
+ 15 Jun 2005; Diego Pettenò <flameeyes@gentoo.org>
+ freebsd-lib-5.4-r2.ebuild:
+ libarchive has its own ebuild now.
+
+ 08 Jun 2005; Diego Pettenò <flameeyes@gentoo.org>
+ -files/freebsd-lib-minimal-2.patch, -files/freebsd-lib-minimal.patch,
+ -files/freebsd-lib-nosnmp.patch, freebsd-lib-5.4.ebuild,
+ freebsd-lib-5.4-r1.ebuild, freebsd-lib-5.4-r2.ebuild:
+ Moved also freebsd-lib to use dummy_mk instead of minimal patches.
+
+*freebsd-lib-5.4-r2 (08 Jun 2005)
+
+ 08 Jun 2005; Diego Pettenò <flameeyes@gentoo.org>
+ +files/freebsd-lib-minimal-2.patch, freebsd-lib-5.3.ebuild,
+ freebsd-lib-5.3.20050301.ebuild, freebsd-lib-5.3.20050301-r1.ebuild,
+ freebsd-lib-5.4.ebuild, freebsd-lib-5.4-r1.ebuild,
+ +freebsd-lib-5.4-r2.ebuild:
+ New revision which removes a few more external libraries (which are going to
+ be added as ebuilds on their own). Sorry for this rapid-changing.
+
+*freebsd-lib-5.4-r1 (04 Jun 2005)
+
+ 04 Jun 2005; Diego Pettenò <flameeyes@gentoo.org>
+ +files/freebsd-lib-nosnmp.patch, +freebsd-lib-5.4-r1.ebuild:
+ Remove libbsnmp and libbegemot as they're installed on their own.
+
+ 26 May 2005; Diego Pettenò <flameeyes@gentoo.org>
+ +files/freebsd-lib-fixmp.patch, freebsd-lib-5.4.ebuild:
+ Added a patch to fix a compilation -ssl -> +ssl
+
+*freebsd-lib-5.4_rc4 (05 May 2005)
+
+ 05 May 2005; Diego Pettenò <flameeyes@gentoo.org>
+ files/freebsd-lib-minimal.patch, -freebsd-lib-5.4_rc3.ebuild,
+ +freebsd-lib-5.4_rc4.ebuild:
+ Updated to rc4.
+
+*freebsd-lib-5.4_rc3 (29 Apr 2005)
+
+ 29 Apr 2005; Diego Pettenò <flameeyes@gentoo.org>
+ +files/freebsd-lib-fixmakefiles.patch, +files/freebsd-lib-minimal.patch,
+ +files/freebsd-lib-msun-fenvc.patch, +files/freebsd-lib-runet.patch,
+ +freebsd-lib-5.4_rc3.ebuild:
+ Added new experimental 5.4_rc3 ebuild which follows the new gentooish
+ structure.
+
+*freebsd-lib-5.3.20050301-r1 (19 Apr 2005)
+
+ 19 Apr 2005; Otavio R. Piske <angusyoung@gentoo.org>
+ +files/freebsd-lib-5.3-pkgs_removed.patch,
+ +freebsd-lib-5.3.20050301-r1.ebuild:
+ New ebuild with a patch to avoid compilation of ncurses.
+
+ 07 Apr 2005; Otavio R. Piske <angusyoung@gentoo.org> :
+ New ebuild with support for new use flags and based on updated sources
+
+*freebsd-lib-5.2.1 (19 Oct 2004)
+
+ 19 Oct 2004; Otavio R. Piske <angusyoung@gentoo.org>
+ freebsd-lib-5.2.1.ebuild:
+ Initial release
+
diff --git a/sys-freebsd/freebsd-lib/Manifest b/sys-freebsd/freebsd-lib/Manifest
new file mode 100644
index 000000000000..e7d47e6ae490
--- /dev/null
+++ b/sys-freebsd/freebsd-lib/Manifest
@@ -0,0 +1,39 @@
+MD5 72b7e220f7c817cb1dc4e37400d56520 ChangeLog 4641
+RMD160 a615ea9dd34d192653219044699825d04b2839bb ChangeLog 4641
+SHA256 1e1e7fceafb739690156b61f78f7281d0134ab84f16ff52bcfb0668b740d7a51 ChangeLog 4641
+MD5 0d0d6259af16d39d897eddb306f9a10d files/digest-freebsd-lib-5.4-r2 288
+RMD160 e720011b36ac188e6f005f94666568af3bbdfb8b files/digest-freebsd-lib-5.4-r2 288
+SHA256 e63e7942d14713506fd5673513258f4f754b7581ec11c39c0e80bf5b3e4cd9f5 files/digest-freebsd-lib-5.4-r2 288
+MD5 2dc17fc8aaa45e4d1ad9c683927c016e files/digest-freebsd-lib-6.0 1554
+RMD160 5a12c440fc8ad561b5c2708aaec65d9a4d0074a2 files/digest-freebsd-lib-6.0 1554
+SHA256 b268db5b482e04f2d76887e67a1b601e69ea4655abd04184f3d6fd48c47796b3 files/digest-freebsd-lib-6.0 1554
+MD5 cc6c35a3fc9a14a31e4ee800b53f0c5c files/freebsd-lib-6.0-flex-2.5.31.patch 421
+RMD160 6ef83c6b09e31a81ba3c25772b02aef34540dbe8 files/freebsd-lib-6.0-flex-2.5.31.patch 421
+SHA256 1d46cf13e1059ae3731ba5555764e020fcf4de7db5abf039fac83423e05d53c4 files/freebsd-lib-6.0-flex-2.5.31.patch 421
+MD5 a4bca3651c5476d3b75d866a60030bcb files/freebsd-lib-6.0-gccfloat.patch 542
+RMD160 564f5a1b1aba59479c22f91570635de717e8b7bf files/freebsd-lib-6.0-gccfloat.patch 542
+SHA256 d549125f174c86c2d5e7e1f1c99cf1303b84e91ce8ee51db8c962be48b7a7951 files/freebsd-lib-6.0-gccfloat.patch 542
+MD5 d2f9a1d35ae1aba75cc56b4ee3e12b68 files/freebsd-lib-6.0-pmc.patch 338
+RMD160 bb284cc2f9eafd3f65090087af215c3da679fefa files/freebsd-lib-6.0-pmc.patch 338
+SHA256 36ca464f0aa1ed8784c8f1edc4a3580704c9a7813963684305250d806000075f files/freebsd-lib-6.0-pmc.patch 338
+MD5 0fa8fbe7549748636959ef4bc4ea9660 files/freebsd-lib-bsdxml.patch 339
+RMD160 27b501cda2ac76230a72dfc3ee6593cb50f8d4b0 files/freebsd-lib-bsdxml.patch 339
+SHA256 c1ac47d6c7176475f0f4b86bb17288a980b44a799fb6f4e7b1920f69e0447dc9 files/freebsd-lib-bsdxml.patch 339
+MD5 05519435e08d33fda36ff33a30347143 files/freebsd-lib-fixmakefiles.patch 3974
+RMD160 cf54e67884dcc1902f27fc756cf379ae92ae4e4f files/freebsd-lib-fixmakefiles.patch 3974
+SHA256 5d8bac99a8014a506476dbac3cefc97b2830b26c448effafac5f84c1743580e2 files/freebsd-lib-fixmakefiles.patch 3974
+MD5 eb10216ffda9c5f69fdb28728c574114 files/freebsd-lib-fixmp.patch 548
+RMD160 91cf241eaa972c13ea6ddd1ec03a6fd7f3a2a4b3 files/freebsd-lib-fixmp.patch 548
+SHA256 bd99697872b00a4275c80935f4f5188f4f859aa358be0ecfc0c5470e9979c354 files/freebsd-lib-fixmp.patch 548
+MD5 df463935dab1512f58055115939d0cec files/freebsd-lib-msun-fenvc.patch 272
+RMD160 7adcda589dcc1b60d5a4bbb29e413fae1635b56f files/freebsd-lib-msun-fenvc.patch 272
+SHA256 02888e9c68f61a6dd9ee94ae7f87fb6367a6cea93893861af40cb7e3c5781e47 files/freebsd-lib-msun-fenvc.patch 272
+MD5 6a03dd52051da74fa1e9c7fae9eccaec files/freebsd-lib-runet.patch 346
+RMD160 5097808371642edb9927e64ebdd161f1689830c3 files/freebsd-lib-runet.patch 346
+SHA256 f6dd1d5197cc77348936757cb1a08a46a8167f9e547087193d7d726e18cbb678 files/freebsd-lib-runet.patch 346
+MD5 710b230776235d2e994e4a501da11017 freebsd-lib-5.4-r2.ebuild 2641
+RMD160 20a3fadc21b69856cfb9728bf9e725543f5124c0 freebsd-lib-5.4-r2.ebuild 2641
+SHA256 c4a971f5d7939d799a5769bbda79aa16de76ef9d2141d0d1096d920ac76e0f67 freebsd-lib-5.4-r2.ebuild 2641
+MD5 03e72ff5f8fbd16653ea3dfd77a93e4b freebsd-lib-6.0.ebuild 3295
+RMD160 c118298810f89de026579b972644e9864b4bed11 freebsd-lib-6.0.ebuild 3295
+SHA256 91b4d7d0da146812c28adde18a79cf7ab668682d3282bcbd6e5034dd04a59724 freebsd-lib-6.0.ebuild 3295
diff --git a/sys-freebsd/freebsd-lib/files/digest-freebsd-lib-6.0 b/sys-freebsd/freebsd-lib/files/digest-freebsd-lib-6.0
new file mode 100644
index 000000000000..0f858e744035
--- /dev/null
+++ b/sys-freebsd/freebsd-lib/files/digest-freebsd-lib-6.0
@@ -0,0 +1,18 @@
+MD5 b5b626909c9707d0bab0c54b50e132b9 freebsd-contrib-6.0.tar.bz2 34972594
+RMD160 3f045dd7d1ddbcf20da670051459f0a2fc508a8b freebsd-contrib-6.0.tar.bz2 34972594
+SHA256 9c76affcddb3a8257d3b612dd7cc8ff43bc7417e47e215c01909a81c79e9d443 freebsd-contrib-6.0.tar.bz2 34972594
+MD5 3f5ace196589dee4044fd717abf4b57c freebsd-crypto-6.0.tar.bz2 3978650
+RMD160 361efbba1f651925a7cc2284665b044bc232f181 freebsd-crypto-6.0.tar.bz2 3978650
+SHA256 e86223d40ef2747de98f575f3875a6ce8a5e913baa850a5ef547ffef00ace480 freebsd-crypto-6.0.tar.bz2 3978650
+MD5 7c2af3af5be2f46372f9cc0efaeda4c7 freebsd-etc-6.0.tar.bz2 178941
+RMD160 48d0eb51f291e5d706ef076151964b88a9fc1796 freebsd-etc-6.0.tar.bz2 178941
+SHA256 c4bd9401dad72bd869b89aa12a61339a30746caadb741bb0d094f522ee117616 freebsd-etc-6.0.tar.bz2 178941
+MD5 3888da5da1cb329a65a3ac9d316f99ea freebsd-lib-6.0.tar.bz2 2613087
+RMD160 30bf04438a00408284f135c2670106141cae4873 freebsd-lib-6.0.tar.bz2 2613087
+SHA256 dab1140d52597f37d768d2210a49cb29db5404a7df35306462e3642074426a53 freebsd-lib-6.0.tar.bz2 2613087
+MD5 44996c2edac20108da43add45b599d94 freebsd-libexec-6.0.tar.bz2 277631
+RMD160 5121414524c9dfceab1f5ad8b8bc91c65141db82 freebsd-libexec-6.0.tar.bz2 277631
+SHA256 2eddc867d69afa6c5d0a2f3ce18d4570688b5fa49924adb478dc7d548ba8197e freebsd-libexec-6.0.tar.bz2 277631
+MD5 df8c3764da190437a1d47c6ff1872520 freebsd-usbin-6.0.tar.bz2 2635411
+RMD160 9a8f5cdc041df1ad2b388c432a1829b5c8adc51d freebsd-usbin-6.0.tar.bz2 2635411
+SHA256 46ac3c581fd20d9980bcf2d80aba7c2f874ad3e29058939bee0c6f1a4af8ff64 freebsd-usbin-6.0.tar.bz2 2635411
diff --git a/sys-freebsd/freebsd-lib/files/freebsd-lib-6.0-flex-2.5.31.patch b/sys-freebsd/freebsd-lib/files/freebsd-lib-6.0-flex-2.5.31.patch
new file mode 100644
index 000000000000..00de8a6debb8
--- /dev/null
+++ b/sys-freebsd/freebsd-lib/files/freebsd-lib-6.0-flex-2.5.31.patch
@@ -0,0 +1,13 @@
+Index: fbsd-6/lib/libipsec/policy_token.l
+===================================================================
+--- fbsd-6.orig/lib/libipsec/policy_token.l
++++ fbsd-6/lib/libipsec/policy_token.l
+@@ -138,8 +138,6 @@ void
+ __policy__strbuffer__init__(msg)
+ char *msg;
+ {
+- if (yy_current_buffer)
+- yy_delete_buffer(yy_current_buffer);
+ strbuffer = (YY_BUFFER_STATE)yy_scan_string(msg);
+ yy_switch_to_buffer(strbuffer);
+
diff --git a/sys-freebsd/freebsd-lib/files/freebsd-lib-6.0-gccfloat.patch b/sys-freebsd/freebsd-lib/files/freebsd-lib-6.0-gccfloat.patch
new file mode 100644
index 000000000000..a3e7d5e1b63c
--- /dev/null
+++ b/sys-freebsd/freebsd-lib/files/freebsd-lib-6.0-gccfloat.patch
@@ -0,0 +1,16 @@
+This patch is needed to avoid inclusion of GCC's float.h that defines
+LDBL_MANT_DIG at 53 (while the source file checks for 113 or 64.
+
+Index: freebsd-6.0_beta4/lib/msun/src/s_fmal.c
+===================================================================
+--- freebsd-6.0_beta4.orig/lib/msun/src/s_fmal.c
++++ freebsd-6.0_beta4/lib/msun/src/s_fmal.c
+@@ -28,7 +28,7 @@
+ __FBSDID("$FreeBSD: src/lib/msun/src/s_fmal.c,v 1.2 2005/03/18 02:27:59 das Exp $");
+
+ #include <fenv.h>
+-#include <float.h>
++#include <machine/float.h>
+ #include <math.h>
+
+ /*
diff --git a/sys-freebsd/freebsd-lib/files/freebsd-lib-6.0-pmc.patch b/sys-freebsd/freebsd-lib/files/freebsd-lib-6.0-pmc.patch
new file mode 100644
index 000000000000..2f6de4652822
--- /dev/null
+++ b/sys-freebsd/freebsd-lib/files/freebsd-lib-6.0-pmc.patch
@@ -0,0 +1,13 @@
+Index: freebsd-6.0_beta4/lib/libpmc/Makefile
+===================================================================
+--- freebsd-6.0_beta4.orig/lib/libpmc/Makefile
++++ freebsd-6.0_beta4/lib/libpmc/Makefile
+@@ -9,6 +9,8 @@ WARNS?= 6
+
+ MAN= pmc.3 pmclog.3
+
++CFLAGS+= -I${.CURDIR}
++
+ MLINKS+= \
+ pmc.3 pmc_allocate.3 \
+ pmc.3 pmc_attach.3 \
diff --git a/sys-freebsd/freebsd-lib/files/freebsd-lib-bsdxml.patch b/sys-freebsd/freebsd-lib/files/freebsd-lib-bsdxml.patch
new file mode 100644
index 000000000000..ec90defc03a0
--- /dev/null
+++ b/sys-freebsd/freebsd-lib/files/freebsd-lib-bsdxml.patch
@@ -0,0 +1,13 @@
+diff -u lib/libgeom/Makefile lib.xml/libgeom/Makefile
+--- lib/libgeom/Makefile 2004-03-07 16:07:57 +0000
++++ lib.xml/libgeom/Makefile 2005-05-06 10:38:41 +0000
+@@ -8,7 +8,8 @@
+ SRCS+= geom_ctl.c
+ INCS= libgeom.h
+
+-CFLAGS += -I${.CURDIR}
++CFLAGS += -I${.CURDIR} -I${.CURDIR}/../libexpat
++LDFLAGS += -L${.CURDIR}/../libexpat
+
+ WARNS?= 3
+
diff --git a/sys-freebsd/freebsd-lib/files/freebsd-lib-fixmakefiles.patch b/sys-freebsd/freebsd-lib/files/freebsd-lib-fixmakefiles.patch
new file mode 100644
index 000000000000..1254fb3f7f14
--- /dev/null
+++ b/sys-freebsd/freebsd-lib/files/freebsd-lib-fixmakefiles.patch
@@ -0,0 +1,119 @@
+diff -ur lib.orig/libc/Makefile lib/libc/Makefile
+--- lib.orig/libc/Makefile Thu Apr 7 12:11:33 2005
++++ lib/libc/Makefile Thu Apr 7 12:26:50 2005
+@@ -13,7 +13,7 @@
+ SHLIB_MAJOR= 5
+ SHLIBDIR?= /lib
+ WARNS?= 2
+-CFLAGS+=-I${.CURDIR}/include -I${.CURDIR}/../../include
++CFLAGS+=-I${.CURDIR}/include -I/usr/include
+ CFLAGS+=-I${.CURDIR}/${MACHINE_ARCH}
+ CLEANFILES+=tags
+ INSTALL_PIC_ARCHIVE=
+Only in lib/libc: Makefile.orig
+diff -ur lib.orig/libc/sys/Makefile.inc lib/libc/sys/Makefile.inc
+--- lib.orig/libc/sys/Makefile.inc Thu Apr 7 12:11:33 2005
++++ lib/libc/sys/Makefile.inc Thu Apr 7 12:26:58 2005
+@@ -6,7 +6,7 @@
+
+ # Include the generated makefile containing the *complete* list
+ # of syscall names in MIASM.
+-.include "${.CURDIR}/../../sys/sys/syscall.mk"
++.include "/usr/src/sys/sys/syscall.mk"
+
+ # Include machine dependent definitions.
+ #
+Only in lib/libc/sys: Makefile.inc.orig
+diff -ur lib.orig/libcam/Makefile lib/libcam/Makefile
+--- lib.orig/libcam/Makefile Thu Apr 7 12:11:33 2005
++++ lib/libcam/Makefile Thu Apr 7 12:27:06 2005
+@@ -34,9 +34,9 @@
+ cam_cdbparse.3 csio_encode_visit.3 \
+ cam_cdbparse.3 buff_encode_visit.3
+
+-.PATH: ${.CURDIR}/../../sys/cam/scsi ${.CURDIR}/../../sys/cam
++.PATH: /usr/src/sys/cam/scsi /usr/src/sys/cam
+
+-SDIR= ${.CURDIR}/../../sys
++SDIR= /usr/src/sys
+ CFLAGS+= -I${.CURDIR} -I${SDIR}
+
+ .include <bsd.lib.mk>
+Only in lib/libcam: Makefile.orig
+diff -ur lib.orig/libkvm/Makefile lib/libkvm/Makefile
+--- lib.orig/libkvm/Makefile Thu Apr 7 12:11:34 2005
++++ lib/libkvm/Makefile Thu Apr 7 12:17:40 2005
+@@ -3,7 +3,7 @@
+
+ LIB= kvm
+ SHLIBDIR?= /lib
+-CFLAGS+=-DLIBC_SCCS -I${.CURDIR}
++CFLAGS+=-DLIBC_SCCS -I${.CURDIR} -I/usr/src/sys
+ SRCS= kvm.c kvm_${MACHINE_ARCH}.c kvm_file.c kvm_getloadavg.c \
+ kvm_getswapinfo.c kvm_proc.c
+ INCS= kvm.h
+Only in lib/libkvm: Makefile.orig
+diff -ur lib.orig/libncurses/Makefile lib/libncurses/Makefile
+--- lib.orig/libncurses/Makefile Thu Apr 7 12:11:34 2005
++++ lib/libncurses/Makefile Thu Apr 7 12:28:02 2005
+@@ -255,6 +255,7 @@
+
+ .if !defined(NOHTML)
+ afterinstall:
++ ${INSTALL} -d ${DESTDIR}${DOCSDIR}
+ .for file in ${DOCS}
+ cd ${.CURDIR}/../../contrib/ncurses/doc/html ; \
+ ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 ${file} \
+Only in lib/libncurses: Makefile.orig
+diff -ur lib.orig/libngatm/Makefile lib/libngatm/Makefile
+--- lib.orig/libngatm/Makefile Thu Apr 7 12:11:34 2005
++++ lib/libngatm/Makefile Thu Apr 7 12:27:55 2005
+@@ -8,7 +8,7 @@
+ WARNS?= 6
+
+ # source of the library lives in contrib
+-SDIR= ${.CURDIR}/../../sys
++SDIR= /usr/src/sys
+ CTRB= ${.CURDIR}/../../contrib/ngatm
+ LIBBASE= ${SDIR}/contrib/ngatm
+
+Only in lib/libngatm: Makefile.orig
+diff -ur lib.orig/libsbuf/Makefile lib/libsbuf/Makefile
+--- lib.orig/libsbuf/Makefile Thu Apr 7 12:11:34 2005
++++ lib/libsbuf/Makefile Thu Apr 7 12:21:30 2005
+@@ -5,6 +5,6 @@
+ SRCS= subr_sbuf.c
+ WARNS?= 2
+
+-.PATH: ${.CURDIR}/../../sys/kern
++.PATH: /usr/src/sys/kern
+
+ .include <bsd.lib.mk>
+Only in lib/libsbuf: Makefile.orig
+diff -ur lib.orig/libthr/Makefile lib/libthr/Makefile
+--- lib.orig/libthr/Makefile Thu Apr 7 12:11:35 2005
++++ lib/libthr/Makefile Thu Apr 7 12:28:14 2005
+@@ -14,6 +14,7 @@
+ CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \
+ -I${.CURDIR}/../../include
+ CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf
++CFLAGS+=-I/usr/src/sys
+
+ # enable extra internal consistancy checks
+ CFLAGS+=-D_PTHREADS_INVARIANTS
+Only in lib/libthr: Makefile.orig
+diff -ur lib.orig/libypclnt/Makefile lib/libypclnt/Makefile
+--- lib.orig/libypclnt/Makefile Thu Apr 7 12:11:34 2005
++++ lib/libypclnt/Makefile Thu Apr 7 12:22:15 2005
+@@ -24,8 +24,8 @@
+ yppasswd_private_xdr.c
+
+ RPCGEN= rpcgen -C
+-RPCSRC= ${.CURDIR}/../../include/rpcsvc/yp.x
+-RPCSRC_PW= ${.CURDIR}/../../include/rpcsvc/yppasswd.x
++RPCSRC= /usr/include/rpcsvc/yp.x
++RPCSRC_PW= /usr/include/rpcsvc/yppasswd.x
+ RPCSRC_PRIV= ${.CURDIR}/../../usr.sbin/rpc.yppasswdd/yppasswd_private.x
+
+ yp.h: ${RPCSRC}
+Only in lib/libypclnt: Makefile.orig
diff --git a/sys-freebsd/freebsd-lib/files/freebsd-lib-fixmp.patch b/sys-freebsd/freebsd-lib/files/freebsd-lib-fixmp.patch
new file mode 100644
index 000000000000..80a4b6adc0d2
--- /dev/null
+++ b/sys-freebsd/freebsd-lib/files/freebsd-lib-fixmp.patch
@@ -0,0 +1,12 @@
+diff -ur lib/libtelnet/Makefile lib-fixmp/libtelnet/Makefile
+--- lib/libtelnet/Makefile 2005-02-13 07:23:14 +0000
++++ lib-fixmp/libtelnet/Makefile 2005-05-26 06:32:26 +0000
+@@ -16,7 +16,7 @@
+ .if !defined(RELEASE_CRUNCH)
+ .if !defined(NOCRYPT) && !defined(NO_OPENSSL)
+ SRCS+= encrypt.c auth.c enc_des.c sra.c pk.c
+-CFLAGS+= -DENCRYPTION -DAUTHENTICATION -DSRA
++CFLAGS+= -DENCRYPTION -DAUTHENTICATION -DSRA -I${.CURDIR}/../libmp
+ .if !defined(NO_KERBEROS)
+ SRCS+= kerberos5.c
+ CFLAGS+= -DKRB5 -I${KRB5DIR}/lib/krb5 -I${KRB5OBJDIR} -I${ASN1OBJDIR}
diff --git a/sys-freebsd/freebsd-lib/files/freebsd-lib-msun-fenvc.patch b/sys-freebsd/freebsd-lib/files/freebsd-lib-msun-fenvc.patch
new file mode 100644
index 000000000000..34ba28cee775
--- /dev/null
+++ b/sys-freebsd/freebsd-lib/files/freebsd-lib-msun-fenvc.patch
@@ -0,0 +1,11 @@
+--- msun/i387/fenv.c.orig Mon Nov 1 01:40:10 2004
++++ msun/i387/fenv.c Mon Nov 1 01:40:21 2004
+@@ -28,7 +28,7 @@
+
+ #include <sys/types.h>
+ #include <machine/npx.h>
+-#include <fenv.h>
++#include "fenv.h"
+
+ const fenv_t __fe_dfl_env = {
+ 0xffff0000 | __INITIAL_NPXCW__,
diff --git a/sys-freebsd/freebsd-lib/files/freebsd-lib-runet.patch b/sys-freebsd/freebsd-lib/files/freebsd-lib-runet.patch
new file mode 100644
index 000000000000..43eec6a43c18
--- /dev/null
+++ b/sys-freebsd/freebsd-lib/files/freebsd-lib-runet.patch
@@ -0,0 +1,11 @@
+diff -ur lib.orig/libc/locale/mblocal.h lib/libc/locale/mblocal.h
+--- lib.orig/libc/locale/mblocal.h 2005-04-29 13:57:07 +0000
++++ lib/libc/locale/mblocal.h 2005-04-29 14:00:33 +0000
+@@ -30,6 +30,7 @@
+ #define _MBLOCAL_H_
+
+ #include <stddef.h> /* XXX for rune_t */
++#include <rune.h>
+
+ /*
+ * Conversion function pointers for current encoding.
diff --git a/sys-freebsd/freebsd-lib/freebsd-lib-6.0.ebuild b/sys-freebsd/freebsd-lib/freebsd-lib-6.0.ebuild
new file mode 100644
index 000000000000..edb7c050899e
--- /dev/null
+++ b/sys-freebsd/freebsd-lib/freebsd-lib-6.0.ebuild
@@ -0,0 +1,115 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-lib/freebsd-lib-6.0.ebuild,v 1.1 2006/04/01 16:43:50 flameeyes Exp $
+
+inherit bsdmk freebsd flag-o-matic toolchain-funcs
+
+DESCRIPTION="FreeBSD's base system libraries"
+SLOT="${RV}"
+KEYWORDS="~x86-fbsd"
+
+IUSE="atm bluetooth ssl usb ipv6 kerberos nis gpib"
+
+# 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
+ nis? ( mirror://gentoo/${USBIN}.tar.bz2 )"
+
+RDEPEND="ssl? ( dev-libs/openssl )
+ kerberos? ( virtual/krb5 )"
+DEPEND="${RDEPEND}
+ >=sys-devel/flex-2.5.31-r2
+ =sys-freebsd/freebsd-mk-defs-${RV}*
+ =sys-freebsd/freebsd-sources-${RV}*
+ =sys-freebsd/freebsd-headers-${RV}*"
+
+PROVIDE="virtual/libc"
+
+S="${WORKDIR}/lib"
+
+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} NO_ATM= "
+ use bluetooth || mymakeopts="${mymakeopts} NO_BLUETOOTH= "
+ use ssl || mymakeopts="${mymakeopts} NO_OPENSSL= NO_CRYPT= "
+ use usb || mymakeopts="${mymakeopts} NO_USB= "
+ use ipv6 || mymakeopts="${mymakeopts} NO_INET6= "
+ use kerberos || mymakeopts="${mymakeopts} NO_KERBEROS= "
+ use nis || mymakeopts="${mymakeopts} NO_NIS= "
+ use gpib || mymakeopts="${mymakeopts} NO_GPIB= "
+
+ mymakeopts="${mymakeopts} NO_OPENSSH= NO_BIND= NO_SENDMAIL= "
+
+ replace-flags "-O?" -"O1"
+ append-flags -static-libgcc
+ append-ldflags -static-libgcc
+}
+
+PATCHES="${FILESDIR}/${PN}-bsdxml.patch
+ ${FILESDIR}/${PN}-fixmp.patch
+ ${FILESDIR}/${PN}-${RV}-pmc.patch
+ ${FILESDIR}/${PN}-${RV}-gccfloat.patch
+ ${FILESDIR}/${PN}-${RV}-flex-2.5.31.patch"
+
+# Here we disable and remove source which we don't need or want
+# In order:
+# - ncurses stuff
+# - 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="libncurses libform libmenu libpanel \
+ libz libbz2 libarchive \
+ libsm libsmdb libsmutil \
+ libbegemot libbsnmp \
+ libsmb libpam libpcap bind libwrap libmagic \
+ libcom_err libtelnet"
+
+src_unpack() {
+ freebsd_src_unpack
+
+ ln -s "/usr/src/sys-${RV}" "${WORKDIR}/sys"
+ ln -s "/usr/include" "${WORKDIR}/include"
+}
+
+portage-to-fbsd-arch() {
+ case "$(tc-arch)" in
+ x86) echo "i386" ;;
+ *) echo $(tc-arch) ;;
+ esac
+}
+
+src_install() {
+ mkinstall || die "Install failed"
+
+ # make crt1.o schg so that gcc doesn't remove it
+ chflags schg ${D}/usr/lib/crt1.o
+
+ # 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
+ doins "etc.$(portage-to-fbsd-arch)"/*
+}
diff --git a/sys-freebsd/freebsd-lib/metadata.xml b/sys-freebsd/freebsd-lib/metadata.xml
new file mode 100644
index 000000000000..ecedda4aa2cc
--- /dev/null
+++ b/sys-freebsd/freebsd-lib/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>bsd</herd>
+</pkgmetadata>