summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'profiles/default/bsd')
-rw-r--r--profiles/default/bsd/eapi1
-rw-r--r--profiles/default/bsd/fbsd/amd64/10.1/clang/parent2
-rw-r--r--profiles/default/bsd/fbsd/amd64/10.1/eapi1
-rw-r--r--profiles/default/bsd/fbsd/amd64/10.1/make.defaults7
-rw-r--r--profiles/default/bsd/fbsd/amd64/10.1/package.use.force4
-rw-r--r--profiles/default/bsd/fbsd/amd64/10.1/parent2
-rw-r--r--profiles/default/bsd/fbsd/amd64/9.1/clang/deprecated4
-rw-r--r--profiles/default/bsd/fbsd/amd64/9.1/clang/parent2
-rw-r--r--profiles/default/bsd/fbsd/amd64/9.1/deprecated4
-rw-r--r--profiles/default/bsd/fbsd/amd64/9.1/eapi1
-rw-r--r--profiles/default/bsd/fbsd/amd64/9.1/make.defaults7
-rw-r--r--profiles/default/bsd/fbsd/amd64/9.1/parent2
-rw-r--r--profiles/default/bsd/fbsd/amd64/9.2/clang/deprecated4
-rw-r--r--profiles/default/bsd/fbsd/amd64/9.2/clang/parent2
-rw-r--r--profiles/default/bsd/fbsd/amd64/9.2/deprecated4
-rw-r--r--profiles/default/bsd/fbsd/amd64/9.2/eapi1
-rw-r--r--profiles/default/bsd/fbsd/amd64/9.2/make.defaults7
-rw-r--r--profiles/default/bsd/fbsd/amd64/9.2/parent2
-rw-r--r--profiles/default/bsd/fbsd/amd64/eapi1
-rw-r--r--profiles/default/bsd/fbsd/amd64/parent2
-rw-r--r--profiles/default/bsd/fbsd/eapi1
-rw-r--r--profiles/default/bsd/fbsd/make.defaults30
-rw-r--r--profiles/default/bsd/fbsd/package.mask18
-rw-r--r--profiles/default/bsd/fbsd/package.use12
-rw-r--r--profiles/default/bsd/fbsd/package.use.force3
-rw-r--r--profiles/default/bsd/fbsd/package.use.mask104
-rw-r--r--profiles/default/bsd/fbsd/packages26
-rw-r--r--profiles/default/bsd/fbsd/packages.build50
-rw-r--r--profiles/default/bsd/fbsd/parent1
-rw-r--r--profiles/default/bsd/fbsd/profile.bashrc93
-rw-r--r--profiles/default/bsd/fbsd/sparc/8.2/eapi1
-rw-r--r--profiles/default/bsd/fbsd/sparc/8.2/make.defaults5
-rw-r--r--profiles/default/bsd/fbsd/sparc/8.2/parent2
-rw-r--r--profiles/default/bsd/fbsd/sparc/eapi1
-rw-r--r--profiles/default/bsd/fbsd/sparc/parent2
-rw-r--r--profiles/default/bsd/fbsd/use.force3
-rw-r--r--profiles/default/bsd/fbsd/use.mask36
-rw-r--r--profiles/default/bsd/fbsd/x86/10.1/eapi1
-rw-r--r--profiles/default/bsd/fbsd/x86/10.1/make.defaults5
-rw-r--r--profiles/default/bsd/fbsd/x86/10.1/parent2
-rw-r--r--profiles/default/bsd/fbsd/x86/9.1/deprecated4
-rw-r--r--profiles/default/bsd/fbsd/x86/9.1/eapi1
-rw-r--r--profiles/default/bsd/fbsd/x86/9.1/make.defaults5
-rw-r--r--profiles/default/bsd/fbsd/x86/9.1/parent2
-rw-r--r--profiles/default/bsd/fbsd/x86/9.2/deprecated4
-rw-r--r--profiles/default/bsd/fbsd/x86/9.2/eapi1
-rw-r--r--profiles/default/bsd/fbsd/x86/9.2/make.defaults5
-rw-r--r--profiles/default/bsd/fbsd/x86/9.2/parent2
-rw-r--r--profiles/default/bsd/fbsd/x86/eapi1
-rw-r--r--profiles/default/bsd/fbsd/x86/parent2
-rw-r--r--profiles/default/bsd/make.defaults6
-rw-r--r--profiles/default/bsd/package.mask42
-rw-r--r--profiles/default/bsd/package.use.force7
-rw-r--r--profiles/default/bsd/package.use.mask116
-rw-r--r--profiles/default/bsd/packages17
-rw-r--r--profiles/default/bsd/parent1
-rw-r--r--profiles/default/bsd/profile.bashrc14
-rw-r--r--profiles/default/bsd/use.force1
-rw-r--r--profiles/default/bsd/use.mask79
59 files changed, 766 insertions, 0 deletions
diff --git a/profiles/default/bsd/eapi b/profiles/default/bsd/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/default/bsd/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/default/bsd/fbsd/amd64/10.1/clang/parent b/profiles/default/bsd/fbsd/amd64/10.1/clang/parent
new file mode 100644
index 000000000000..7dbda405f0ab
--- /dev/null
+++ b/profiles/default/bsd/fbsd/amd64/10.1/clang/parent
@@ -0,0 +1,2 @@
+..
+../../../../../../arch/amd64-fbsd/clang
diff --git a/profiles/default/bsd/fbsd/amd64/10.1/eapi b/profiles/default/bsd/fbsd/amd64/10.1/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/default/bsd/fbsd/amd64/10.1/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/default/bsd/fbsd/amd64/10.1/make.defaults b/profiles/default/bsd/fbsd/amd64/10.1/make.defaults
new file mode 100644
index 000000000000..5be5d1561b9d
--- /dev/null
+++ b/profiles/default/bsd/fbsd/amd64/10.1/make.defaults
@@ -0,0 +1,7 @@
+# Copyright 1999-2015 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License, v2
+# $Id$
+
+CHOST="x86_64-gentoo-freebsd10.1"
+CHOST_amd64_fbsd="x86_64-gentoo-freebsd10.1"
+CHOST_x86_fbsd="i686-gentoo-freebsd10.1"
diff --git a/profiles/default/bsd/fbsd/amd64/10.1/package.use.force b/profiles/default/bsd/fbsd/amd64/10.1/package.use.force
new file mode 100644
index 000000000000..4229a8f0d9e1
--- /dev/null
+++ b/profiles/default/bsd/fbsd/amd64/10.1/package.use.force
@@ -0,0 +1,4 @@
+# >=dev-lang/python-3.2 requires threads, #494744
+=dev-lang/python-3.2* threads
+=dev-lang/python-3.3* threads
+
diff --git a/profiles/default/bsd/fbsd/amd64/10.1/parent b/profiles/default/bsd/fbsd/amd64/10.1/parent
new file mode 100644
index 000000000000..ab6b4ed66e05
--- /dev/null
+++ b/profiles/default/bsd/fbsd/amd64/10.1/parent
@@ -0,0 +1,2 @@
+..
+../../../../../releases/freebsd-10.1
diff --git a/profiles/default/bsd/fbsd/amd64/9.1/clang/deprecated b/profiles/default/bsd/fbsd/amd64/9.1/clang/deprecated
new file mode 100644
index 000000000000..c3692b9b89f1
--- /dev/null
+++ b/profiles/default/bsd/fbsd/amd64/9.1/clang/deprecated
@@ -0,0 +1,4 @@
+default/bsd/fbsd/amd64/clang/10.1
+Please read carefully the wiki.
+Might be your environment is broken if you do not perform the correct procedure.
+https://wiki.gentoo.org/wiki/Gentoo_FreeBSD#Upgrade_howto
diff --git a/profiles/default/bsd/fbsd/amd64/9.1/clang/parent b/profiles/default/bsd/fbsd/amd64/9.1/clang/parent
new file mode 100644
index 000000000000..7dbda405f0ab
--- /dev/null
+++ b/profiles/default/bsd/fbsd/amd64/9.1/clang/parent
@@ -0,0 +1,2 @@
+..
+../../../../../../arch/amd64-fbsd/clang
diff --git a/profiles/default/bsd/fbsd/amd64/9.1/deprecated b/profiles/default/bsd/fbsd/amd64/9.1/deprecated
new file mode 100644
index 000000000000..e7e7751a52ba
--- /dev/null
+++ b/profiles/default/bsd/fbsd/amd64/9.1/deprecated
@@ -0,0 +1,4 @@
+default/bsd/fbsd/amd64/10.1
+Please read carefully the wiki.
+Might be your environment is broken if you do not perform the correct procedure.
+https://wiki.gentoo.org/wiki/Gentoo_FreeBSD#Upgrade_howto
diff --git a/profiles/default/bsd/fbsd/amd64/9.1/eapi b/profiles/default/bsd/fbsd/amd64/9.1/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/default/bsd/fbsd/amd64/9.1/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/default/bsd/fbsd/amd64/9.1/make.defaults b/profiles/default/bsd/fbsd/amd64/9.1/make.defaults
new file mode 100644
index 000000000000..eb41bcd3c070
--- /dev/null
+++ b/profiles/default/bsd/fbsd/amd64/9.1/make.defaults
@@ -0,0 +1,7 @@
+# Copyright 1999-2015 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License, v2
+# $Id$
+
+CHOST="x86_64-gentoo-freebsd9.1"
+CHOST_amd64_fbsd="x86_64-gentoo-freebsd9.1"
+CHOST_x86_fbsd="i686-gentoo-freebsd9.1"
diff --git a/profiles/default/bsd/fbsd/amd64/9.1/parent b/profiles/default/bsd/fbsd/amd64/9.1/parent
new file mode 100644
index 000000000000..9e6af7fa2087
--- /dev/null
+++ b/profiles/default/bsd/fbsd/amd64/9.1/parent
@@ -0,0 +1,2 @@
+..
+../../../../../releases/freebsd-9.1
diff --git a/profiles/default/bsd/fbsd/amd64/9.2/clang/deprecated b/profiles/default/bsd/fbsd/amd64/9.2/clang/deprecated
new file mode 100644
index 000000000000..c3692b9b89f1
--- /dev/null
+++ b/profiles/default/bsd/fbsd/amd64/9.2/clang/deprecated
@@ -0,0 +1,4 @@
+default/bsd/fbsd/amd64/clang/10.1
+Please read carefully the wiki.
+Might be your environment is broken if you do not perform the correct procedure.
+https://wiki.gentoo.org/wiki/Gentoo_FreeBSD#Upgrade_howto
diff --git a/profiles/default/bsd/fbsd/amd64/9.2/clang/parent b/profiles/default/bsd/fbsd/amd64/9.2/clang/parent
new file mode 100644
index 000000000000..7dbda405f0ab
--- /dev/null
+++ b/profiles/default/bsd/fbsd/amd64/9.2/clang/parent
@@ -0,0 +1,2 @@
+..
+../../../../../../arch/amd64-fbsd/clang
diff --git a/profiles/default/bsd/fbsd/amd64/9.2/deprecated b/profiles/default/bsd/fbsd/amd64/9.2/deprecated
new file mode 100644
index 000000000000..e7e7751a52ba
--- /dev/null
+++ b/profiles/default/bsd/fbsd/amd64/9.2/deprecated
@@ -0,0 +1,4 @@
+default/bsd/fbsd/amd64/10.1
+Please read carefully the wiki.
+Might be your environment is broken if you do not perform the correct procedure.
+https://wiki.gentoo.org/wiki/Gentoo_FreeBSD#Upgrade_howto
diff --git a/profiles/default/bsd/fbsd/amd64/9.2/eapi b/profiles/default/bsd/fbsd/amd64/9.2/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/default/bsd/fbsd/amd64/9.2/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/default/bsd/fbsd/amd64/9.2/make.defaults b/profiles/default/bsd/fbsd/amd64/9.2/make.defaults
new file mode 100644
index 000000000000..411da547dc80
--- /dev/null
+++ b/profiles/default/bsd/fbsd/amd64/9.2/make.defaults
@@ -0,0 +1,7 @@
+# Copyright 1999-2015 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License, v2
+# $Id$
+
+CHOST="x86_64-gentoo-freebsd9.2"
+CHOST_amd64_fbsd="x86_64-gentoo-freebsd9.2"
+CHOST_x86_fbsd="i686-gentoo-freebsd9.2"
diff --git a/profiles/default/bsd/fbsd/amd64/9.2/parent b/profiles/default/bsd/fbsd/amd64/9.2/parent
new file mode 100644
index 000000000000..78cf737b76a6
--- /dev/null
+++ b/profiles/default/bsd/fbsd/amd64/9.2/parent
@@ -0,0 +1,2 @@
+..
+../../../../../releases/freebsd-9.2
diff --git a/profiles/default/bsd/fbsd/amd64/eapi b/profiles/default/bsd/fbsd/amd64/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/default/bsd/fbsd/amd64/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/default/bsd/fbsd/amd64/parent b/profiles/default/bsd/fbsd/amd64/parent
new file mode 100644
index 000000000000..5fbdc945bbcc
--- /dev/null
+++ b/profiles/default/bsd/fbsd/amd64/parent
@@ -0,0 +1,2 @@
+..
+../../../../arch/amd64-fbsd
diff --git a/profiles/default/bsd/fbsd/eapi b/profiles/default/bsd/fbsd/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/default/bsd/fbsd/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/default/bsd/fbsd/make.defaults b/profiles/default/bsd/fbsd/make.defaults
new file mode 100644
index 000000000000..9456dca1c4bd
--- /dev/null
+++ b/profiles/default/bsd/fbsd/make.defaults
@@ -0,0 +1,30 @@
+# Copyright 1999-2013 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License, v2
+# $Id$
+
+# Last building sandbox breaks gfind, bug #374425
+FEATURES="-sandbox -usersandbox"
+
+USERLAND="BSD"
+KERNEL="FreeBSD"
+ELIBC="FreeBSD"
+
+MAKE="gmake"
+
+USE="berkdb crypt iconv ipv6 ncurses nls oss pam pcre readline ssl tcpd zlib"
+
+# 2006/03/07 - Donnie Berkholz <dberkholz@gentoo.org>
+# Modular X: Support direct rendering by default
+USE="${USE} dri"
+
+# 2006/08/18 - Donnie Berkholz <dberkholz@gentoo.org>
+# Defaults for video drivers
+VIDEO_CARDS="dummy fbdev vmware"
+
+# Let virtual/mta pick ssmtp[mta] for stage1 builds.
+# https://bugs.gentoo.org/show_bug.cgi?id=408587
+# python2: let portage pulls in python-2 so that we get it as default
+# interpreter in stage1's and add it to make.default so that it is rebuilt in
+# stage 3 and when updating.
+BOOTSTRAP_USE="${BOOTSTRAP_USE} mta python2"
+USE="${USE} python2"
diff --git a/profiles/default/bsd/fbsd/package.mask b/profiles/default/bsd/fbsd/package.mask
new file mode 100644
index 000000000000..664df7b120da
--- /dev/null
+++ b/profiles/default/bsd/fbsd/package.mask
@@ -0,0 +1,18 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# Diego Pettenò <flameeyes@gentoo.org> (27 May 2005)
+# SGI's FAM is dead upstream, and requires mayor changes.
+# Gamin before 0.1.0 is not supported as missed the FreeBSD patches.
+# At the moment we rely on Gentopia's patched Gamin.
+app-admin/fam
+
+# Diego Pettenò <flameeyes@gentoo.org> (23 May 2005)
+# Strace doesn't support FreeBSD 5. When a better port will be
+# available, this can be unmasked.
+dev-util/strace
+
+# Don't use them, use the one in base system
+dev-util/yacc
+dev-util/byacc
diff --git a/profiles/default/bsd/fbsd/package.use b/profiles/default/bsd/fbsd/package.use
new file mode 100644
index 000000000000..c3240558eda0
--- /dev/null
+++ b/profiles/default/bsd/fbsd/package.use
@@ -0,0 +1,12 @@
+# Default USE flags for specific packages
+
+# Diego Pettenò <flameeyes@gentoo.org> (06 March 2008)
+# pam_racklib requires sys-libs/pam, disable it by default (it is
+# masked anyway).
+# pam_passwdqc is used by default on FreeBSD, enable it by default
+# even on Gentoo/FreeBSD.
+sys-auth/pambase -cracklib passwdqc
+
+# Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> (13 Feb 2011)
+# Disable deprecated bsddb module of Python 2 by default.
+=dev-lang/python-2* -berkdb
diff --git a/profiles/default/bsd/fbsd/package.use.force b/profiles/default/bsd/fbsd/package.use.force
new file mode 100644
index 000000000000..6ff27bd7844a
--- /dev/null
+++ b/profiles/default/bsd/fbsd/package.use.force
@@ -0,0 +1,3 @@
+# Naohiro Aota <naota@gentoo.org> (08 Nov 2011)
+# Always enable hardened not to depend glibc
+app-emulation/wine hardened
diff --git a/profiles/default/bsd/fbsd/package.use.mask b/profiles/default/bsd/fbsd/package.use.mask
new file mode 100644
index 000000000000..b863a5655a99
--- /dev/null
+++ b/profiles/default/bsd/fbsd/package.use.mask
@@ -0,0 +1,104 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# As per UberLord's requests
+sys-apps/openrc pam
+
+# Jim Ramsay <lack@gentoo.org> (7 Sep 2007)
+# app-admin/gkrellm may pull in hddtemp, which is not yet available here
+app-admin/gkrellm hddtemp
+
+# Somehow, check's tests are broken..
+dev-libs/confuse test
+dev-util/checkstyle test
+
+# Dillo won't run on FreeBSD
+# PDA masked until we can do some testing on it
+mail-client/claws-mail dillo pda
+
+# Original spell plugin uses ispell that requires
+# miscfiles.. that in turn does not work
+net-irc/rbot spell
+
+# Diego Pettenò <flameeyes@gentoo.org> (18 Jan 2007)
+# Vixie-Cron uses pam useflag for pam_limits.so that is provided
+# by Linux-PAM we don't use for now.
+sys-process/vixie-cron pam
+
+x11-misc/xscreensaver new-login
+
+# net-wireless/aircrack-ng - wireless capture tools not needed.
+net-wireless/aircrack-ng wifi
+
+# Gilles Dartiguelongue <eva@gentoo.org> (22 Oct 2007)
+# GNU attr isn't supported
+dev-libs/glib xattr
+gnome-base/gnome-vfs acl
+# https://bugs.gentoo.org/show_bug.cgi?id=435474
+sys-devel/patch xattr
+# https://bugs.gentoo.org/show_bug.cgi?id=432410
+app-arch/tar xattr
+
+# Diego Pettenò <flameeyes@gentoo.org> (21 Feb 2008)
+# pam_cracklib is only provided by Linux-PAM which is not usable on
+# Gentoo/FreeBSD.
+# Javier Villavicencio <the_paya@gentoo.org> (31 Jul 2008)
+# pam_ssh deps on Linux-PAM.
+# Diego Pettenò <flameeyes@gentoo.org> (1 Aug 2008)
+# sha512 is only supported by Linux-PAM's pam_unix for now
+sys-auth/pambase cracklib pam_ssh sha512
+
+# Alexis Ballier <aballier@gentoo.org> (31 Jan 2009)
+# app-misc/tracker should work but needs some code fixups and it uses the fdatasync system call
+# that we do not have (bug #257052)
+# Mask it for now
+gnome-base/nautilus tracker
+media-video/totem tracker
+
+# Naohiro Aota <naota@gentoo.org> (04 Aug 2011)
+# ads require krb5, which is maksed on FreeBSD
+# cluster require ctdb, which doesn't support FreeBSD
+net-fs/samba ads cluster
+
+# Naohiro Aota <naota@gentoo.org> (08 Nov 2011)
+# capi require Linux features
+# hardened require prelink which depends on glibc
+app-emulation/wine capi
+
+# Naohiro Aota <naota@gentoo.org> (24 Nov 2011)
+# Masked because kerberos is masked
+net-dns/bind gssapi
+
+# Naohiro Aota <naota@gentoo.org> (20 Feb 2012)
+# Ian Stakenvicius <axs@gentoo.org> (30 Apr 2014)
+# Upstream does not support FreeBSD wifi nor crashreporter;
+# net-wireless/wireless-tools useless on fbsd, keep mozilla stuff
+# from bringing it in via mozconfig-3.eclass
+mail-client/thunderbird wifi
+www-client/firefox wifi
+www-client/seamonkey wifi
+
+# Naohiro Aota <naota@gentoo.org> (03 Oct 2012)
+# Mask gbm, udev is not supported on FreeBSD.
+media-libs/mesa gbm
+
+# Naohiro Aota <naota@gentoo.org> (06 Oct 2012)
+# Mask rpm, app-arch/rpm needs elfutils
+net-analyzer/net-snmp rpm
+
+# Naohiro Aota <naota@gentoo.org> (09 Oct 2012)
+# Mask dmpai, sys-apps/dmapi cannot build on BSD
+net-fs/samba dmapi
+
+# Naohiro Aota <naota@gentoo.org> (15 Oct 2012)
+# Mask numa on sys-apps/hwloc. numactl not available on FreeBSD
+sys-apps/hwloc numa
+
+# Matt Turner <mattst88@gentoo.org> (07 Mar 2014)
+# media-libs/libomxil-bellagio keyworded on amd64/x86
+media-libs/mesa openmax
+
+# Naohiro Aota <naota@gentoo.org> (07 Jul 2014)
+# xattr support is not available on BSD #501534
+sys-apps/portage xattr
diff --git a/profiles/default/bsd/fbsd/packages b/profiles/default/bsd/fbsd/packages
new file mode 100644
index 000000000000..c907c8a5d154
--- /dev/null
+++ b/profiles/default/bsd/fbsd/packages
@@ -0,0 +1,26 @@
+# Copyright 1999-2012 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License, v2
+# $Id$
+
+# This files contains a small list of packages that define a
+# minimal FreeBSD system. DO NOT change this without contacting
+# <bsd@gentoo.org>
+#
+*sys-freebsd/freebsd-mk-defs
+*sys-freebsd/freebsd-lib
+*sys-freebsd/freebsd-libexec
+*sys-freebsd/freebsd-bin
+*sys-freebsd/freebsd-sbin
+*sys-freebsd/freebsd-ubin
+*sys-freebsd/freebsd-usbin
+*sys-freebsd/freebsd-share
+*sys-freebsd/freebsd-contrib
+
+*sys-devel/gettext
+*dev-libs/libiconv
+
+*app-arch/libarchive
+
+*sys-libs/timezone-data
+
+*sys-process/pidof-bsd
diff --git a/profiles/default/bsd/fbsd/packages.build b/profiles/default/bsd/fbsd/packages.build
new file mode 100644
index 000000000000..b8d4a14704b4
--- /dev/null
+++ b/profiles/default/bsd/fbsd/packages.build
@@ -0,0 +1,50 @@
+# Copyright 1999-2014 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# This file describes the packages needed to build a stage 1 based on this
+# profile. Packages in this file are built in order.
+
+# Please do not move perl before baselayout doing so will break lib -> lib64
+# symlinks on systems that use them.
+
+app-arch/bzip2
+app-arch/gzip
+dev-libs/openssl
+app-arch/libarchive
+app-shells/bash
+net-misc/rsync
+net-misc/wget
+sys-devel/autoconf
+sys-devel/automake
+sys-devel/libtool
+sys-apps/openrc
+sys-apps/baselayout
+sys-apps/diffutils
+sys-apps/file
+sys-apps/findutils
+sys-apps/gawk
+sys-apps/grep
+sys-apps/less
+sys-apps/sed
+sys-devel/binutils
+sys-devel/bison
+sys-devel/flex
+sys-devel/gcc
+dev-libs/libiconv
+sys-devel/gettext
+sys-devel/gnuconfig
+sys-devel/make
+sys-devel/patch
+virtual/editor
+virtual/libc
+virtual/os-headers
+virtual/package-manager
+sys-freebsd/freebsd-mk-defs
+sys-freebsd/freebsd-lib
+sys-freebsd/freebsd-libexec
+sys-freebsd/freebsd-bin
+sys-freebsd/freebsd-sbin
+sys-freebsd/freebsd-ubin
+sys-freebsd/freebsd-usbin
+sys-freebsd/freebsd-contrib
diff --git a/profiles/default/bsd/fbsd/parent b/profiles/default/bsd/fbsd/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/default/bsd/fbsd/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/default/bsd/fbsd/profile.bashrc b/profiles/default/bsd/fbsd/profile.bashrc
new file mode 100644
index 000000000000..d69c5783a30e
--- /dev/null
+++ b/profiles/default/bsd/fbsd/profile.bashrc
@@ -0,0 +1,93 @@
+#!/bin/bash
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Id$
+
+alias make=gmake
+alias patch=gpatch
+alias sed=gsed
+alias awk=gawk
+# findutils stuff
+type -P gfind > /dev/null && alias find=gfind
+type -P gxargs > /dev/null && alias xargs=gxargs
+
+# Attempt to point the default SHELL used by configure scripts to bash.
+# while most should work with BSD's bourne just fine, the extra scripts
+# used by some applications (specially test scripts) use way too many bashisms.
+# Alexis Ballier <29 May 2012>: Disable this, we should rather fix bugs and it
+# seems to confuse libtool a couple of packages (dev-libs/libtar, net-dns/hesiod)
+# export CONFIG_SHELL="/bin/bash"
+
+# Hack to avoid every package that uses libiconv/gettext
+# install a charset.alias that will collide with libiconv's one
+# See bugs 169678, 195148 and 256129.
+# Also the discussion on
+# http://archives.gentoo.org/gentoo-dev/msg_8cb1805411f37b4eb168a3e680e531f3.xml
+bsd-post_src_install()
+{
+ if [ "${PN}" != "libiconv" -a -e "${D}"/usr/lib*/charset.alias ] ; then
+ rm -f "${D}"/usr/lib*/charset.alias
+ fi
+}
+
+# These are because of
+# http://archives.gentoo.org/gentoo-dev/msg_529a0806ed2cf841a467940a57e2d588.xml
+# The profile-* ones are meant to be used in etc/portage/profile.bashrc by user
+# until there is the registration mechanism.
+profile-post_src_install() { bsd-post_src_install ; }
+ post_src_install() { bsd-post_src_install ; }
+
+
+# Another hack to fix old versions of install-sh (automake) where a non-gnu
+# mkdir is not considered thread-safe (make install errors with -j > 1)
+bsd-patch_install-sh() {
+ # Do nothing if we don't have patch installed:
+ if [[ -z $(type -P gpatch) ]]; then
+ return 0
+ fi
+
+ # Do nothing if $S does not exist
+ [ -d "${S}" ] || return 0
+
+ local EPDIR="${ECLASSDIR}/ELT-patches/install-sh"
+ local EPATCHES="${EPDIR}/1.5.6 ${EPDIR}/1.5.4 ${EPDIR}/1.5"
+ local ret=0
+ cd "${S}"
+ for file in $(find . -name "install-sh" -print); do
+ if [[ -n $(egrep "scriptversion=2005|scriptversion=2004" ${file}) ]]; then
+ einfo "Automatically patching parallel-make unfriendly install-sh."
+ # Stolen from libtool.eclass
+ for mypatch in ${EPATCHES}; do
+ if gpatch -p0 --dry-run "${file}" "${mypatch}" &> "${T}/patch_install-sh.log"; then
+ gpatch -p0 -g0 --no-backup-if-mismatch "${file}" "${mypatch}" \
+ &> "${T}/patch_install-sh.log"
+ ret=$?
+ break
+ else
+ ret=1
+ fi
+ done
+ if [[ ret -eq 0 ]]; then
+ einfo "Patch applied successfully on \"${file}\"."
+ else
+ ewarn "Unable to apply install-sh patch. "
+ ewarn "If you experience errors during install phase, try with MAKEOPTS=\"-j1\""
+ fi
+ fi
+ done
+}
+
+# It should be run after everything has been unpacked/patched, some developers
+# do patch this little bastard from time to time.
+# So do it after unpack() for EAPI=0|1 and after prepare() for everything else.
+if [[ -n $EAPI ]] ; then
+ case "$EAPI" in
+ 0|1)
+ profile-post_src_unpack() { bsd-patch_install-sh ; }
+ post_src_unpack() { bsd-patch_install-sh ; }
+ ;;
+ *)
+ profile_post_src_prepare() { bsd-patch_install-sh ; }
+ post_src_prepare() { bsd-patch_install-sh ; }
+ ;;
+ esac
+fi
diff --git a/profiles/default/bsd/fbsd/sparc/8.2/eapi b/profiles/default/bsd/fbsd/sparc/8.2/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/default/bsd/fbsd/sparc/8.2/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/default/bsd/fbsd/sparc/8.2/make.defaults b/profiles/default/bsd/fbsd/sparc/8.2/make.defaults
new file mode 100644
index 000000000000..154020e8a780
--- /dev/null
+++ b/profiles/default/bsd/fbsd/sparc/8.2/make.defaults
@@ -0,0 +1,5 @@
+# Copyright 1999-2011 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License, v2
+# $Id$
+
+CHOST="sparc64-gentoo-freebsd8.2"
diff --git a/profiles/default/bsd/fbsd/sparc/8.2/parent b/profiles/default/bsd/fbsd/sparc/8.2/parent
new file mode 100644
index 000000000000..43010996613b
--- /dev/null
+++ b/profiles/default/bsd/fbsd/sparc/8.2/parent
@@ -0,0 +1,2 @@
+..
+../../../../../releases/freebsd-8.2
diff --git a/profiles/default/bsd/fbsd/sparc/eapi b/profiles/default/bsd/fbsd/sparc/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/default/bsd/fbsd/sparc/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/default/bsd/fbsd/sparc/parent b/profiles/default/bsd/fbsd/sparc/parent
new file mode 100644
index 000000000000..134cc7a38402
--- /dev/null
+++ b/profiles/default/bsd/fbsd/sparc/parent
@@ -0,0 +1,2 @@
+..
+../../../../arch/sparc-fbsd
diff --git a/profiles/default/bsd/fbsd/use.force b/profiles/default/bsd/fbsd/use.force
new file mode 100644
index 000000000000..c6a65ae2eb1e
--- /dev/null
+++ b/profiles/default/bsd/fbsd/use.force
@@ -0,0 +1,3 @@
+# Force freebsd-specific variables
+elibc_FreeBSD
+kernel_FreeBSD
diff --git a/profiles/default/bsd/fbsd/use.mask b/profiles/default/bsd/fbsd/use.mask
new file mode 100644
index 000000000000..3031be5a356f
--- /dev/null
+++ b/profiles/default/bsd/fbsd/use.mask
@@ -0,0 +1,36 @@
+# Copyright 1999-2012 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License, v2
+# $Id$
+
+# Espeak does not run on bsd
+espeak
+
+# Someone who knows kerberos is needed to make sure that this works
+kerberos
+krb4
+
+# fftw requires sinl and cosl function, not present in FreeBSD
+fftw
+
+# we have hardened.
+-hardened
+
+# Unmask freebsd-specific variables
+-elibc_FreeBSD
+-kernel_FreeBSD
+
+# This does not build on FreeBSD, unless anybody wants to fix it, use opie
+skey
+
+# To be tested
+snmp
+pcsc-lite
+
+# we don't have custom patched cdparanoia for fbsd anymore
+cdparanoia
+
+# wayland is not targetting BSDs
+wayland
+
+# Recent sys-auth/polkit cannot be built on FreeBSD
+policykit
diff --git a/profiles/default/bsd/fbsd/x86/10.1/eapi b/profiles/default/bsd/fbsd/x86/10.1/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/default/bsd/fbsd/x86/10.1/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/default/bsd/fbsd/x86/10.1/make.defaults b/profiles/default/bsd/fbsd/x86/10.1/make.defaults
new file mode 100644
index 000000000000..29ee704a15aa
--- /dev/null
+++ b/profiles/default/bsd/fbsd/x86/10.1/make.defaults
@@ -0,0 +1,5 @@
+# Copyright 1999-2015 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License, v2
+# $Id$
+
+CHOST="i486-gentoo-freebsd10.1"
diff --git a/profiles/default/bsd/fbsd/x86/10.1/parent b/profiles/default/bsd/fbsd/x86/10.1/parent
new file mode 100644
index 000000000000..ab6b4ed66e05
--- /dev/null
+++ b/profiles/default/bsd/fbsd/x86/10.1/parent
@@ -0,0 +1,2 @@
+..
+../../../../../releases/freebsd-10.1
diff --git a/profiles/default/bsd/fbsd/x86/9.1/deprecated b/profiles/default/bsd/fbsd/x86/9.1/deprecated
new file mode 100644
index 000000000000..15a19a55ae31
--- /dev/null
+++ b/profiles/default/bsd/fbsd/x86/9.1/deprecated
@@ -0,0 +1,4 @@
+default/bsd/fbsd/x86/10.1
+Please read carefully the wiki.
+Might be your environment is broken if you do not perform the correct procedure.
+https://wiki.gentoo.org/wiki/Gentoo_FreeBSD#Upgrade_howto
diff --git a/profiles/default/bsd/fbsd/x86/9.1/eapi b/profiles/default/bsd/fbsd/x86/9.1/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/default/bsd/fbsd/x86/9.1/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/default/bsd/fbsd/x86/9.1/make.defaults b/profiles/default/bsd/fbsd/x86/9.1/make.defaults
new file mode 100644
index 000000000000..ee8db69c0cd5
--- /dev/null
+++ b/profiles/default/bsd/fbsd/x86/9.1/make.defaults
@@ -0,0 +1,5 @@
+# Copyright 1999-2015 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License, v2
+# $Id$
+
+CHOST="i486-gentoo-freebsd9.1"
diff --git a/profiles/default/bsd/fbsd/x86/9.1/parent b/profiles/default/bsd/fbsd/x86/9.1/parent
new file mode 100644
index 000000000000..9e6af7fa2087
--- /dev/null
+++ b/profiles/default/bsd/fbsd/x86/9.1/parent
@@ -0,0 +1,2 @@
+..
+../../../../../releases/freebsd-9.1
diff --git a/profiles/default/bsd/fbsd/x86/9.2/deprecated b/profiles/default/bsd/fbsd/x86/9.2/deprecated
new file mode 100644
index 000000000000..15a19a55ae31
--- /dev/null
+++ b/profiles/default/bsd/fbsd/x86/9.2/deprecated
@@ -0,0 +1,4 @@
+default/bsd/fbsd/x86/10.1
+Please read carefully the wiki.
+Might be your environment is broken if you do not perform the correct procedure.
+https://wiki.gentoo.org/wiki/Gentoo_FreeBSD#Upgrade_howto
diff --git a/profiles/default/bsd/fbsd/x86/9.2/eapi b/profiles/default/bsd/fbsd/x86/9.2/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/default/bsd/fbsd/x86/9.2/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/default/bsd/fbsd/x86/9.2/make.defaults b/profiles/default/bsd/fbsd/x86/9.2/make.defaults
new file mode 100644
index 000000000000..5938c1248da3
--- /dev/null
+++ b/profiles/default/bsd/fbsd/x86/9.2/make.defaults
@@ -0,0 +1,5 @@
+# Copyright 1999-2015 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License, v2
+# $Id$
+
+CHOST="i486-gentoo-freebsd9.2"
diff --git a/profiles/default/bsd/fbsd/x86/9.2/parent b/profiles/default/bsd/fbsd/x86/9.2/parent
new file mode 100644
index 000000000000..78cf737b76a6
--- /dev/null
+++ b/profiles/default/bsd/fbsd/x86/9.2/parent
@@ -0,0 +1,2 @@
+..
+../../../../../releases/freebsd-9.2
diff --git a/profiles/default/bsd/fbsd/x86/eapi b/profiles/default/bsd/fbsd/x86/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/default/bsd/fbsd/x86/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/default/bsd/fbsd/x86/parent b/profiles/default/bsd/fbsd/x86/parent
new file mode 100644
index 000000000000..2b1ea633a872
--- /dev/null
+++ b/profiles/default/bsd/fbsd/x86/parent
@@ -0,0 +1,2 @@
+..
+../../../../arch/x86-fbsd
diff --git a/profiles/default/bsd/make.defaults b/profiles/default/bsd/make.defaults
new file mode 100644
index 000000000000..43aaf049a53e
--- /dev/null
+++ b/profiles/default/bsd/make.defaults
@@ -0,0 +1,6 @@
+# Copyright 1999-2012 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License, v2
+# $Id$
+
+# Mask systemd files until upstream supports *BSD
+INSTALL_MASK="/usr/lib/systemd"
diff --git a/profiles/default/bsd/package.mask b/profiles/default/bsd/package.mask
new file mode 100644
index 000000000000..75cdf5216ff2
--- /dev/null
+++ b/profiles/default/bsd/package.mask
@@ -0,0 +1,42 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# Mask out the GNU versions of various packages.
+# We want BSD versions wherever possible
+# Also mask packages that are depending on Linux kernel
+sys-apps/apmd
+sys-block/eject
+sys-apps/net-tools
+net-misc/iputils
+sys-apps/hardened-shadow
+sys-apps/shadow
+sys-apps/utempter
+sys-apps/util-linux
+sys-apps/which
+sys-libs/glibc
+sys-libs/libcap
+sys-libs/pam
+sys-power/acpid
+sys-process/procps
+sys-apps/iproute2
+sys-fs/eudev
+sys-fs/udev
+virtual/libgudev
+virtual/libudev
+virtual/udev
+sys-fs/sysfsutils
+sys-apps/attr
+sys-apps/acl
+net-misc/pump
+
+# Diego Pettenò <flameeyes@gentoo.org> (5 June 2005)
+# metamail isn't maintained anymore upstream, Debian patches doesn't
+# work on FreeBSD, and neither on Debian or on FreeBSD the package
+# has a maintainer to coordinate with. Isn't an hard-dep for anything.
+net-mail/metamail
+
+# Diego Pettenò <flameeyes@gentoo.org> (20 Aug 2005)
+# We obviously can't have linux-sources (mask this to allow the
+# virtual to be masked)
+sys-kernel/gentoo-sources
diff --git a/profiles/default/bsd/package.use.force b/profiles/default/bsd/package.use.force
new file mode 100644
index 000000000000..596e1d1cec12
--- /dev/null
+++ b/profiles/default/bsd/package.use.force
@@ -0,0 +1,7 @@
+# Peter Weller <welp@gentoo.org> (10 March 2007)
+# lprng deps on a p.masked package, force xarchiver to use cups
+xfce-base/xfprint cups
+
+# Javier Villavicencio <the_paya@gentoo.org> (22 Jan 2009)
+# Otherwise useless tar.
+app-arch/libarchive bzip2 zlib lzma
diff --git a/profiles/default/bsd/package.use.mask b/profiles/default/bsd/package.use.mask
new file mode 100644
index 000000000000..042ff537e432
--- /dev/null
+++ b/profiles/default/bsd/package.use.mask
@@ -0,0 +1,116 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# Matthias Maier <tamiko@gentoo.org> (24 Dec 2014)
+# dev-libs/xapian is currently not keyworded for any *-bsd profile
+app-doc/doxygen doxysearch
+
+# Mikle Kolyada <zlogene@gentoo.org> (07 Dec 2014)
+# There are a lot of unkeyworded dev-perl/* packages
+dev-vcs/git mediawiki
+
+# Robin H. Johnson <robbat2@gentoo.org> (05 Jan 2014)
+# Pending keywording of net-libs/miniupnpc per bug #497186
+net-proxy/dante upnp
+
+# Naohiro Aota <naota@gentoo.org> (14 Oct 2013)
+# libcap-ng is for Linux only
+net-analyzer/tcpdump drop-root
+
+# Richard Yao <ryao@gentoo.org> (09 Nov 2012)
+# pm-utils is Linux-specific
+kde-base/powerdevil pm-utils
+
+# Diego Elio Pettenò <flameeyes@gentoo.org> (16 Jul 2012)
+# Allow using iconv in blender
+media-gfx/blender -iconv
+
+# Sebastian Pipping <sping@gentoo.org> (22 Feb 2011)
+# No dev-util/source-highlight or media-sound/lilypond here, yet (bug #356069, bug #344289)
+app-text/asciidoc test highlight
+
+app-misc/mc pam
+
+# See http://bugzilla.gnome.org/show_bug.cgi?id=370847 for why we disable pam
+gnome-extra/gnome-screensaver pam
+
+# Requires Linux-only packages
+app-accessibility/gok usb
+
+# iproute2 - linux only
+net-misc/openvpn iproute2
+
+app-admin/sshguard -ipfilter
+media-video/ffmpeg ieee1394 iec61883
+net-libs/c-client pam
+net-proxy/squid -ipf-transparent -pf-transparent
+sys-apps/baselayout pam
+sys-apps/coreutils acl
+sys-apps/help2man nls
+
+# NetworkManager is Linux-only, Zephyr requires kerberos
+net-im/pidgin networkmanager zephyr
+
+media-video/totem bluetooth
+
+# Alexis Ballier <aballier@gentoo.org> (18 Jul 2008)
+# Requires a linux only library, bug #226085
+dev-lang/erlang sctp
+
+# Alexis Ballier <aballier@gentoo.org> (8 Aug 2008)
+# Linux only useflags for vlc
+media-video/vlc dc1394 ieee1394 fbosd
+
+# Alexis Ballier <aballier@gentoo.org> (8 Aug 2008)
+# Depends on torque which is a linux only thing
+# lksctp-tools is linux only too
+sys-cluster/openmpi openmpi_rm_pbs openmpi_fabrics_sctp
+
+# Alexis Ballier <aballier@gentoo.org> (25 Sep 2008)
+# elf -> dev-libs/elfutils is too tight to the gnu libc
+# rpm could be masked but we have rpm 5 keyworded even if it's still masked.
+net-analyzer/net-snmp elf
+
+# Alexis Ballier <aballier@gentoo.org> (4 Oct 2008)
+# clisp doesn't build out of the box but can be fixed, xindy's way of building
+# its clisp module is confused by gmake vs bsdmake, mask it until we can
+# properly keyword xindy.
+app-text/texlive xindy
+
+# Alexis Ballier <aballier@gentoo.org> (28 Nov 2008)
+# Requires bluez-libs which is linux only
+net-libs/libpcap bluetooth
+gnome-base/gvfs bluetooth
+
+# Alexis Ballier <aballier@gentoo.org> (22 Jan 2009)
+# Requires gpm
+www-client/links livecd
+
+# Needs DirectFB which is linux only
+media-libs/xine-lib fusion
+
+# no sysfs on bsd
+media-libs/mesa sysfs
+
+# needs udev
+kde-base/kdelibs udisks upower
+media-libs/mesa gbm dri3
+x11-base/xorg-drivers video_cards_radeonsi
+x11-drivers/xf86-video-ati glamor
+x11-drivers/xf86-video-intel glamor
+
+# connman is Linux only
+dev-qt/qtbearer connman
+
+# udisks is linux only (for now?)
+gnome-base/gvfs udisks
+
+# joystick and video_cards_tdfx useflag are linux only #477750
+media-video/mplayer joystick video_cards_tdfx
+
+# linux only
+media-libs/opencv ieee1394 cuda
+
+# depends on networkmanager
+app-misc/geoclue skyhook
diff --git a/profiles/default/bsd/packages b/profiles/default/bsd/packages
new file mode 100644
index 000000000000..35d3733fbc13
--- /dev/null
+++ b/profiles/default/bsd/packages
@@ -0,0 +1,17 @@
+# Copyright 1999-2012 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License, v2
+# $Id$
+
+-*virtual/dev-manager
+-*sys-fs/e2fsprogs
+-*sys-process/procps
+-*sys-process/psmisc
+-*virtual/shadow
+-*sys-apps/which
+-*virtual/modutils
+-*sys-apps/kbd
+#-*sys-apps/findutils
+#-*sys-apps/debianutils
+-*sys-apps/coreutils
+-*net-misc/iputils
+-*app-arch/tar
diff --git a/profiles/default/bsd/parent b/profiles/default/bsd/parent
new file mode 100644
index 000000000000..985c694a07d5
--- /dev/null
+++ b/profiles/default/bsd/parent
@@ -0,0 +1 @@
+../../base
diff --git a/profiles/default/bsd/profile.bashrc b/profiles/default/bsd/profile.bashrc
new file mode 100644
index 000000000000..6e1f856d2214
--- /dev/null
+++ b/profiles/default/bsd/profile.bashrc
@@ -0,0 +1,14 @@
+if [[ ${EBUILD_PHASE} == compile ]] && [ -d "${S}" ] ; then
+ if grep -q "Assume that mode_t is passed compatibly" ${S} -r --include openat.c; then
+ eerror "The source code contains a faulty openat.c unit from gnulib."
+ eerror "Please report this on Gentoo Bugzilla in Gentoo/Alt product for component FreeBSD."
+ eerror "http://bugs.gentoo.org/enter_bug.cgi?product=Gentoo%2FAlt&component=FreeBSD&op_sys=FreeBSD"
+ die "Broken openat.c gnulib unit."
+ fi
+ if grep -q "\\<test .*==" "${S}" -r --include configure; then
+ eerror "Found a non POSIX test construction in a configure script"
+ eerror "The configure checks of this package may not function properly"
+ eerror "Please report this on Gentoo Bugzilla in Gentoo/Alt product for component FreeBSD."
+ eerror "http://bugs.gentoo.org/enter_bug.cgi?product=Gentoo%2FAlt&component=FreeBSD&op_sys=FreeBSD"
+ fi
+fi
diff --git a/profiles/default/bsd/use.force b/profiles/default/bsd/use.force
new file mode 100644
index 000000000000..8602cb496077
--- /dev/null
+++ b/profiles/default/bsd/use.force
@@ -0,0 +1 @@
+userland_BSD
diff --git a/profiles/default/bsd/use.mask b/profiles/default/bsd/use.mask
new file mode 100644
index 000000000000..ba2cd7f71805
--- /dev/null
+++ b/profiles/default/bsd/use.mask
@@ -0,0 +1,79 @@
+# Copyright 1999-2013 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License, v2
+# $Id$
+
+# Mart Raudsepp <leio@gentoo.org>
+# net-misc/networkmanager not keyworded
+networkmanager
+
+# ulm told me to do it!
+m17n-lib
+
+# Linux-dependant flags
+selinux
+nptl
+alsa
+v4l
+libv4l
+fbcon
+directfb
+gpm
+lirc
+multilib
+lm_sensors
+caps
+filecaps
+vidix
+madwifi
+3dfx
+nvidia
+xvmc
+xfs
+udev
+systemd
+inotify
+aio
+
+# This usually refers just to linux-dvb
+dvb
+
+# Hardened doesn't work on Gentoo/*BSD for now
+hardened
+pax_kernel
+
+# This requires a kernel module that's Linux specific right now
+ifp
+
+# This requires a usb-eject command
+ipod
+
+# Mask extraneous elibc/kernel combinations
+-userland_BSD
+elibc_glibc
+kernel_linux
+userland_GNU
+
+# mask linux touch screen access lib.
+tslib
+
+# Mask Xorg-modular drivers that are Linux-specific
+input_devices_aiptek
+input_devices_evdev
+input_devices_tslib
+input_devices_linuxwacom
+input_devices_synaptics
+input_devices_ur98
+input_devices_vmmouse
+video_cards_newport
+video_cards_sisusb
+video_cards_v4l
+video_cards_vmware
+video_cards_nvidia
+video_cards_nouveau
+
+# Linux only sane backends
+sane_backends_qcam
+
+# Diego E. Pettenò <flameeyes@gentoo.org> (19 oct 2010)
+# unmasking flags that only apply to FreeBSD
+-kqueue