summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2013-08-09 14:29:46 +0000
committerAlexis Ballier <aballier@gentoo.org>2013-08-09 14:29:46 +0000
commit6615416c6024b27aed35ab21970cf96427f90d4d (patch)
treece51f853e74eb09322bc2a8624495d6ef2186016 /sys-freebsd
parentMigrate to multilib-build and install 32bits libusb. (diff)
downloadhistorical-6615416c6024b27aed35ab21970cf96427f90d4d.tar.gz
historical-6615416c6024b27aed35ab21970cf96427f90d4d.tar.bz2
historical-6615416c6024b27aed35ab21970cf96427f90d4d.zip
migrate to multilib-build
Package-Manager: portage-2.2.0_alpha196/cvs/Linux x86_64 Manifest-Sign-Key: 0x160F534A
Diffstat (limited to 'sys-freebsd')
-rw-r--r--sys-freebsd/freebsd-libexec/ChangeLog8
-rw-r--r--sys-freebsd/freebsd-libexec/Manifest9
-rw-r--r--sys-freebsd/freebsd-libexec/freebsd-libexec-9.1-r2.ebuild81
-rw-r--r--sys-freebsd/freebsd-ubin/ChangeLog8
-rw-r--r--sys-freebsd/freebsd-ubin/Manifest9
-rw-r--r--sys-freebsd/freebsd-ubin/freebsd-ubin-9.1-r2.ebuild177
6 files changed, 282 insertions, 10 deletions
diff --git a/sys-freebsd/freebsd-libexec/ChangeLog b/sys-freebsd/freebsd-libexec/ChangeLog
index dac9a6af410d..461108cc3256 100644
--- a/sys-freebsd/freebsd-libexec/ChangeLog
+++ b/sys-freebsd/freebsd-libexec/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-freebsd/freebsd-libexec
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-libexec/ChangeLog,v 1.55 2013/06/18 23:40:20 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-libexec/ChangeLog,v 1.56 2013/08/09 14:28:38 aballier Exp $
+
+*freebsd-libexec-9.1-r2 (09 Aug 2013)
+
+ 09 Aug 2013; Alexis Ballier <aballier@gentoo.org>
+ +freebsd-libexec-9.1-r2.ebuild:
+ migrate to multilib-build
18 Jun 2013; Alexis Ballier <aballier@gentoo.org>
-freebsd-libexec-7.2-r2.ebuild, -freebsd-libexec-8.0.ebuild,
diff --git a/sys-freebsd/freebsd-libexec/Manifest b/sys-freebsd/freebsd-libexec/Manifest
index 6881840dcfdf..881159baa480 100644
--- a/sys-freebsd/freebsd-libexec/Manifest
+++ b/sys-freebsd/freebsd-libexec/Manifest
@@ -36,13 +36,14 @@ EBUILD freebsd-libexec-8.2-r1.ebuild 1897 SHA256 443ba96b4277fa49589ba7ac15f9eff
EBUILD freebsd-libexec-8.2.ebuild 1857 SHA256 df286327a737425ab4d190dca16008bb2d26bd24e021c7f7a4303e7221db4f84 SHA512 44d1641912bcdebbebdcd5204a3b52b82aa1c01f8a23facc9b35b7295a99463afade56cc5a2302b90d74e513ac0751dfeafedb93fe072c3febeb6a03fb69f80a WHIRLPOOL 61519980582d1c215244a8a06938c3331c9eee1ac2de50def4f5d3294b582f8f8a175a8638e6baed9f2197b51704de64067342b8015a7335fa6a6737dd75cd3e
EBUILD freebsd-libexec-9.0.ebuild 1823 SHA256 8c5a2d4c95db48e06f60bce0e0159cca8d80d227a450c5c0846659694c14af37 SHA512 7066b6f3e5337c07da17147be936e4c1699b79a940eef14b0df5d170b391acfbb100d5fc4476012604203afa044e1514cdadfb10d94795b912b642aefdedc9f6 WHIRLPOOL f908176fd8d9e0827a2847bb4270f0f1d3c293972637a8579a328e05eece145fcaf4d335ebb13be606902ea4760fedf6ef53cd40e9bb2031559be758a31714f4
EBUILD freebsd-libexec-9.1-r1.ebuild 2359 SHA256 9f478d126789a8b9ee79fb3906348ce253c01aa9189ee2a1bc917016557ba7bb SHA512 f6853ec2e5dff30717e291d79eba876b763edf8f5c8f50507490d71c371411dd7d686b928c2ee816856eafad290e2b4a18ecf28c6540855ac73e036b07d45086 WHIRLPOOL 45d29c2dabc72abede363ae7500afb561a75b2bf7b670daee674569aa155a8b3e938e04b84c1072ca7c33bf3151344654f85828e2d7029a020265d1e645056ae
+EBUILD freebsd-libexec-9.1-r2.ebuild 2430 SHA256 5de9072d6b316f50a089b249dbd02152e9de4d866972f13c21f1e3a3969c4582 SHA512 140ee3949ee749d37d187f54725fdbadc38d9d153cf7108fd687b2c8f8ea1a5fb31131e92aad9c863cf77e740205a38e06fbcef922c22e2c89b3d88b737d17ca WHIRLPOOL 9d349aeb4a2d4c59bb9b3f0aef2003f4d19209f8fe7a5e97f0749e643b9e28e30f5fd3923182fbe1998d169ce13ff18fb9a544df26a29d5f781b1af25a5a5e3f
EBUILD freebsd-libexec-9.1.ebuild 1823 SHA256 22c0e4c38be22f20fbec7b07ddeca126e2644df9c4dae0505ccd8e563425c99e SHA512 b142b6ed1968d7064ccee20987772c467fa56da64074cf44cf355cff789d5e999e5db5ac779763d04dd3fddd73353df129e09545e6911fb65e35a10e9f0cdab3 WHIRLPOOL fee0149a95c0e849bd90f4d310ebc2c1b7a2df32a22bae0f868da55e7e24702039231cb451abbf6035927bd50babe38137c69c58e94d835b60c36a4f278f6279
-MISC ChangeLog 11874 SHA256 9865078640c2371ba5aa88b4337610e9eea96cd48a41cd505cf3e5c0f729e39d SHA512 bfc2f03218986031527064182f9fe0970a0e1462dd725c7f9c9a308b5caa82605c5ec24531189c5bb6134f5624407b4e97c311c8598ca86b2c06427a50265cbd WHIRLPOOL 713299ce8391a066f6d1d6ae7e74e63e08813b669103cd26933eaacf9b4d034b51cd823e96c5659939ae906ad016138268f99cab81a4cf95d6add8de8295c363
+MISC ChangeLog 12028 SHA256 e3a493a0cdfed099e025a5fef6c297957ea4be2084486a6d23761e739fb3c978 SHA512 5756730ed7c1e035a60a36e260c0886fa30ad49a4122fa04958377d9d6c498a4c8694a2160dd9f8c49a0a2ff7a3010db89f747a44eea5312ef37a96b7cea8e36 WHIRLPOOL 4d422a78c1b3ed6ada253726c323f5f2f9cf77c6784c6df0e0075532d6fad014eb22bbf5d0e8ecf143cb4860e556ab1b7b92fc3fc6ffea8390bf03f0e67441bd
MISC metadata.xml 156 SHA256 30ab515d6ac492d3d6c36ac3c675511742c2149e56a6b3228c8d22ab8edb3ff7 SHA512 aecca1f1d4eff88d6d0ebb895d3529e0ac602e488368880f4fde751dd5b8768cccb8ed9cb1bbea36fc47a5169e50afb9b40ac3f608a5a4e4838e9f3c64255714 WHIRLPOOL bea666b5dcd6e8f24c75b7331c3bcfffe66c054d5c29e21b09c1ea7232b1a3bbd564c2e294b639a8c61e6bcbe3ede92b55cbb12e5e7208dad0bc334842ba4d84
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)
-iEYEAREIAAYFAlHA7+UACgkQvFcC4BYPU0q8mQCgvkSHdGEjyy1yP5G7UHYZp+B6
-K3gAn1wztzhEAQ99RLDQMIzUSTcLClXs
-=iT+w
+iEYEAREIAAYFAlIE/JgACgkQvFcC4BYPU0pecgCgoQxhXhjef+s66zDMtXB7ETxV
+YsMAn0K+zAdiiqyrBj0+Df/TH36Wlj38
+=6Vi5
-----END PGP SIGNATURE-----
diff --git a/sys-freebsd/freebsd-libexec/freebsd-libexec-9.1-r2.ebuild b/sys-freebsd/freebsd-libexec/freebsd-libexec-9.1-r2.ebuild
new file mode 100644
index 000000000000..4f947751cca6
--- /dev/null
+++ b/sys-freebsd/freebsd-libexec/freebsd-libexec-9.1-r2.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2013 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.1-r2.ebuild,v 1.1 2013/08/09 14:28:38 aballier Exp $
+
+EAPI=5
+
+inherit bsdmk freebsd pam multilib multibuild multilib-build
+
+DESCRIPTION="FreeBSD libexec things"
+SLOT="0"
+KEYWORDS="~amd64-fbsd ~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}*
+ >=sys-freebsd/freebsd-lib-9.1-r11[${MULTILIB_USEDEP}]
+ 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"
+}
+
+setup_multilib_vars() {
+ if ! multilib_is_native_abi ; then
+ cd "${WORKDIR}/libexec/rtld-elf" || die
+ export mymakeopts="${mymakeopts} PROG=ld-elf32.so.1"
+ else
+ cd "${S}"
+ fi
+ "$@"
+}
+
+src_compile() {
+ local MULTIBUILD_VARIANTS=( $(multilib_get_enabled_abis) )
+ multibuild_foreach_variant freebsd_multilib_multibuild_wrapper setup_multilib_vars freebsd_src_compile
+}
+
+src_install() {
+ local MULTIBUILD_VARIANTS=( $(multilib_get_enabled_abis) )
+ multibuild_foreach_variant freebsd_multilib_multibuild_wrapper setup_multilib_vars 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
+}
diff --git a/sys-freebsd/freebsd-ubin/ChangeLog b/sys-freebsd/freebsd-ubin/ChangeLog
index 97bfc7c1d2d5..2793be8c22c8 100644
--- a/sys-freebsd/freebsd-ubin/ChangeLog
+++ b/sys-freebsd/freebsd-ubin/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-freebsd/freebsd-ubin
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-ubin/ChangeLog,v 1.88 2013/06/18 23:24:33 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-ubin/ChangeLog,v 1.89 2013/08/09 14:29:39 aballier Exp $
+
+*freebsd-ubin-9.1-r2 (09 Aug 2013)
+
+ 09 Aug 2013; Alexis Ballier <aballier@gentoo.org>
+ +freebsd-ubin-9.1-r2.ebuild:
+ migrate to multilib-build
18 Jun 2013; Alexis Ballier <aballier@gentoo.org> -freebsd-ubin-7.2.ebuild,
-freebsd-ubin-8.0.ebuild, -freebsd-ubin-8.0-r1.ebuild:
diff --git a/sys-freebsd/freebsd-ubin/Manifest b/sys-freebsd/freebsd-ubin/Manifest
index ff007e39ae7d..9ac152d9680b 100644
--- a/sys-freebsd/freebsd-ubin/Manifest
+++ b/sys-freebsd/freebsd-ubin/Manifest
@@ -50,13 +50,14 @@ EBUILD freebsd-ubin-8.2-r1.ebuild 4645 SHA256 aab17d095a0dfde25111ecceb6486e74d4
EBUILD freebsd-ubin-9.0-r1.ebuild 4730 SHA256 4891e1b52963fd316b9f0a85f9744f9b3a4e1bc31dadad1e8b82a86396219935 SHA512 4dc01e77598030d5fb79e672f49f9f383a791c2ec6962b931023965a0833b7e89f3d6664fcf277f1094beaf1ff3909de8a658cd927916dbc33d6a1b166d89fa9 WHIRLPOOL 7cd1609ddec984c3c05309a684fd09d4bd499a65761ada52ca4b68b3290ff7124d46f55b701da4845633f50dc0c7f2e49ba24f566f8047650cbb15b1324dfc3a
EBUILD freebsd-ubin-9.0.ebuild 4731 SHA256 410bf07e107e5aa0aa10266e94cd561947fa20b18943f0e814d291b4a8e9c1a6 SHA512 d12d28116abfc3fd575a1286d6c19fd8031f2c58b48aeabe83635471cb2ce75af43d34372804a56ceeee7776fdace0d663728b82ba7f7d7526a78ef4073a641f WHIRLPOOL c76a7bd9b00b1d369c1f27d33ef6866be6eaa75398c5df0a7ece4ccce7fc52deeaa353fb9c3ede8ac2cb676f7e9a8d2ade1a2e94b0b2fb97ad3b630b0e764ef9
EBUILD freebsd-ubin-9.1-r1.ebuild 5389 SHA256 318656d562ba843fa1975d257fcb7c61c7ffb3c87966f6e9b8845ec90f73adab SHA512 a3b4b917261932c76d462e2183a1156728ee9854f12f6c8354e9554d95fe7f27669ff26f075d6a0d80283b9cb6c839fd3e8911bdb2b144e56515789170aab5da WHIRLPOOL 06cb74d17f2758342c789f65fdf6e1d773712f17783b0cfb988dfefc6a130e4b0486588d939d763b32fda27bfec9261781f56fab3b6dca1ed2c8562cfdfbfc2e
+EBUILD freebsd-ubin-9.1-r2.ebuild 5465 SHA256 56c58b8b04ce92e75a0fca2afa1fc1ba203915e911b6d840715698f7b490d4b5 SHA512 8410a59d1da613bc70e96eb8b49d2112c89070dd8bfbd96978db1ee6572a7504bbda53ed94011b3d0864dac7a94cc8e3e0d1080e604bd4ba84413fe341deeead WHIRLPOOL 260364e158d1ffad9d9f68ab88e41cfe051b212157094dd1ccef01cd8cc6477eb68db147fd5a86561e6019c810f988294fae32a58f1cc8ab3370aa9950ee6c3e
EBUILD freebsd-ubin-9.1.ebuild 4853 SHA256 d70be49466c3e7eb27330df6a82f0ff2f7959f6941043d34af96c6d301e98678 SHA512 b6949097562c6b9fbe85d72d99f7ba4018387237a213b56a083328275570ee4e75bc8bf049c772ff668b2e074ae55168bd709e7aba759e26baee3a95008dadc0 WHIRLPOOL c7d7791ef272552b8622478b38e7e3111480349414d52e8f2431654cc2af3aaa059cc8e399994d91d12c9532453ac13cebd70a9d9eed0c26fbd92da0fdfd3d2c
-MISC ChangeLog 18232 SHA256 47379b54874458d75ed1c217797cf6d4d9dd2d06cd31a83caee63f68fc9e5bd0 SHA512 8aae92dd1bbf3ed7bd20e81c1e2d2edefe247e69b271771f1a6eb4cad28054e240ec385f6aa202add1b77b0f19cf661239e888deb22acd04f0b04b13c22d52b2 WHIRLPOOL 71cba632056152780a57ccb5ecb7b6100401447e19c61a85fe117eae2fe1a30ec9321a73c300cd125206d4d7c95e4d6aeb10ee643529e9f6b56d834aacbd4f2c
+MISC ChangeLog 18380 SHA256 62cbfa68b154a7aa94a2ea5283a72988ecab9d5903e72662b9fea492880525a0 SHA512 6e19df98e4f8eba25a05ae195afcc8bfe350b1d4f9c1b6b4584fe1056c280c059372a3aac9b61cf1dd71a5251f72b302c3ab74cd7c306658854afc5b1ecdeac3 WHIRLPOOL e27dd15811c9d42bd8b2fe93ba3f11d958cb0299b175a432a78297dc06adf26831692e21a3f080827c2e337866eccb22a84436f57db582b59c5a80d93e198db8
MISC metadata.xml 692 SHA256 9d7a61c414fb50713568dc2782c2de6460bac1eff7ca6a9f8a2d25979b48e811 SHA512 8bc469bb79edb0c34e5fb03f4a53c12b0f3741f06a20e1fc1b58772e594f259cc91368157ced396f8843b6e4398bffd1e5b5b8c694d5bec324e89966e4e618d6 WHIRLPOOL 026491842e88460c5fb80acdf7b26e274c74c6d0ced8c23e16382b82a9b99d9657b96a5ecbca2d95ecd0dfef463dfa012f7aeb3acd8e655df859ab6aada0d312
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)
-iEYEAREIAAYFAlHA7DMACgkQvFcC4BYPU0o1EgCgtpms1Rnt6vlNxQKjL9EvE8yP
-/kwAoMFFMdXR8cLWe5nlH23Ga9XgikI6
-=m//M
+iEYEAREIAAYFAlIE/NQACgkQvFcC4BYPU0ozPQCfdIVLHxR0Ezho3cw2FNV7WsnD
+BugAn2sa4QZqMZWDHQTYMYPcxBZSV0ms
+=A4jh
-----END PGP SIGNATURE-----
diff --git a/sys-freebsd/freebsd-ubin/freebsd-ubin-9.1-r2.ebuild b/sys-freebsd/freebsd-ubin/freebsd-ubin-9.1-r2.ebuild
new file mode 100644
index 000000000000..2a75a6dcfc2c
--- /dev/null
+++ b/sys-freebsd/freebsd-ubin/freebsd-ubin-9.1-r2.ebuild
@@ -0,0 +1,177 @@
+# Copyright 1999-2013 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.1-r2.ebuild,v 1.1 2013/08/09 14:29:39 aballier Exp $
+
+EAPI=5
+
+inherit bsdmk freebsd flag-o-matic pam multilib multibuild multilib-build
+
+DESCRIPTION="FreeBSD's base system source for /usr/bin"
+SLOT="0"
+KEYWORDS="~amd64-fbsd ~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?,${MULTILIB_USEDEP}]
+ ssl? ( dev-libs/openssl )
+ kerberos? ( virtual/krb5 )
+ ar? ( >=app-arch/libarchive-3 )
+ 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}-9.1-kdump-ioctl.patch"
+ "${FILESDIR}/${PN}-8.0-xinstall.patch"
+ "${FILESDIR}/${PN}-9.1-bsdar.patch"
+ "${FILESDIR}/${PN}-9.1-minigzip.patch"
+ "${FILESDIR}/${PN}-9.1-grep.patch"
+ "${FILESDIR}/${PN}-9.1-ar-libarchive3.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
+# - dc stuff
+# 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
+ bc dc
+ whois tftp man"
+
+MULTIBUILD_VARIANTS=( $(get_all_abis) )
+
+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
+}
+
+setup_multilib_vars() {
+ if ! multilib_is_native_abi ; then
+ cd "${WORKDIR}/usr.bin/ldd" || die
+ export mymakeopts="${mymakeopts} PROG=ldd32 WITHOUT_MAN="
+ else
+ cd "${S}"
+ fi
+ "$@"
+}
+
+src_compile() {
+ local MULTIBUILD_VARIANTS=( $(multilib_get_enabled_abis) )
+ multibuild_foreach_variant freebsd_multilib_multibuild_wrapper setup_multilib_vars freebsd_src_compile
+}
+
+src_install() {
+ local MULTIBUILD_VARIANTS=( $(multilib_get_enabled_abis) )
+ multibuild_foreach_variant freebsd_multilib_multibuild_wrapper setup_multilib_vars 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
+}