From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- sys-freebsd/freebsd-ubin/Manifest | 19 ++ .../freebsd-ubin/files/freebsd-ubin-10.0-atf.patch | 15 ++ .../files/freebsd-ubin-10.0-dtc-gcc46.patch | 25 +++ .../files/freebsd-ubin-10.0-kdump-ioctl.patch | 26 +++ .../files/freebsd-ubin-10.0-mandoc.patch | 13 ++ .../files/freebsd-ubin-10.1-kdump-workaround.patch | 13 ++ .../files/freebsd-ubin-6.0-bsdcmp.patch | 13 ++ .../files/freebsd-ubin-6.0-fixmakefiles.patch | 35 ++++ .../files/freebsd-ubin-6.0-kdump-ioctl.patch | 28 +++ .../files/freebsd-ubin-8.0-bsdar.patch | 21 +++ .../files/freebsd-ubin-8.0-xinstall.patch | 26 +++ .../files/freebsd-ubin-8.2-compress.patch | 55 ++++++ .../files/freebsd-ubin-9.0-fixmakefiles.patch | 11 ++ .../files/freebsd-ubin-9.1-ar-libarchive3.patch | 19 ++ .../files/freebsd-ubin-9.1-bsdar.patch | 25 +++ .../freebsd-ubin/files/freebsd-ubin-9.1-grep.patch | 17 ++ .../files/freebsd-ubin-9.1-kdump-ioctl.patch | 24 +++ .../files/freebsd-ubin-9.1-minigzip.patch | 10 + .../files/freebsd-ubin-lint-stdarg.patch | 24 +++ .../freebsd-ubin/files/freebsd-ubin-setXid.patch | 129 +++++++++++++ .../freebsd-ubin/files/locate-updatedb-cron | 6 + sys-freebsd/freebsd-ubin/files/login.1.pamd | 4 + sys-freebsd/freebsd-ubin/files/login.pamd | 20 ++ sys-freebsd/freebsd-ubin/files/passwd.1.pamd | 9 + sys-freebsd/freebsd-ubin/files/passwd.pamd | 11 ++ sys-freebsd/freebsd-ubin/files/su.1.pamd | 17 ++ sys-freebsd/freebsd-ubin/files/su.pamd | 17 ++ .../freebsd-ubin/freebsd-ubin-10.1-r2.ebuild | 206 +++++++++++++++++++++ .../freebsd-ubin/freebsd-ubin-8.2-r1.ebuild | 152 +++++++++++++++ .../freebsd-ubin/freebsd-ubin-9.1-r2.ebuild | 181 ++++++++++++++++++ .../freebsd-ubin/freebsd-ubin-9.1-r3.ebuild | 181 ++++++++++++++++++ sys-freebsd/freebsd-ubin/metadata.xml | 21 +++ 32 files changed, 1373 insertions(+) create mode 100644 sys-freebsd/freebsd-ubin/Manifest create mode 100644 sys-freebsd/freebsd-ubin/files/freebsd-ubin-10.0-atf.patch create mode 100644 sys-freebsd/freebsd-ubin/files/freebsd-ubin-10.0-dtc-gcc46.patch create mode 100644 sys-freebsd/freebsd-ubin/files/freebsd-ubin-10.0-kdump-ioctl.patch create mode 100644 sys-freebsd/freebsd-ubin/files/freebsd-ubin-10.0-mandoc.patch create mode 100644 sys-freebsd/freebsd-ubin/files/freebsd-ubin-10.1-kdump-workaround.patch create mode 100644 sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.0-bsdcmp.patch create mode 100644 sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.0-fixmakefiles.patch create mode 100644 sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.0-kdump-ioctl.patch create mode 100644 sys-freebsd/freebsd-ubin/files/freebsd-ubin-8.0-bsdar.patch create mode 100644 sys-freebsd/freebsd-ubin/files/freebsd-ubin-8.0-xinstall.patch create mode 100644 sys-freebsd/freebsd-ubin/files/freebsd-ubin-8.2-compress.patch create mode 100644 sys-freebsd/freebsd-ubin/files/freebsd-ubin-9.0-fixmakefiles.patch create mode 100644 sys-freebsd/freebsd-ubin/files/freebsd-ubin-9.1-ar-libarchive3.patch create mode 100644 sys-freebsd/freebsd-ubin/files/freebsd-ubin-9.1-bsdar.patch create mode 100644 sys-freebsd/freebsd-ubin/files/freebsd-ubin-9.1-grep.patch create mode 100644 sys-freebsd/freebsd-ubin/files/freebsd-ubin-9.1-kdump-ioctl.patch create mode 100644 sys-freebsd/freebsd-ubin/files/freebsd-ubin-9.1-minigzip.patch create mode 100644 sys-freebsd/freebsd-ubin/files/freebsd-ubin-lint-stdarg.patch create mode 100644 sys-freebsd/freebsd-ubin/files/freebsd-ubin-setXid.patch create mode 100644 sys-freebsd/freebsd-ubin/files/locate-updatedb-cron create mode 100644 sys-freebsd/freebsd-ubin/files/login.1.pamd create mode 100644 sys-freebsd/freebsd-ubin/files/login.pamd create mode 100644 sys-freebsd/freebsd-ubin/files/passwd.1.pamd create mode 100644 sys-freebsd/freebsd-ubin/files/passwd.pamd create mode 100644 sys-freebsd/freebsd-ubin/files/su.1.pamd create mode 100644 sys-freebsd/freebsd-ubin/files/su.pamd create mode 100644 sys-freebsd/freebsd-ubin/freebsd-ubin-10.1-r2.ebuild create mode 100644 sys-freebsd/freebsd-ubin/freebsd-ubin-8.2-r1.ebuild create mode 100644 sys-freebsd/freebsd-ubin/freebsd-ubin-9.1-r2.ebuild create mode 100644 sys-freebsd/freebsd-ubin/freebsd-ubin-9.1-r3.ebuild create mode 100644 sys-freebsd/freebsd-ubin/metadata.xml (limited to 'sys-freebsd/freebsd-ubin') diff --git a/sys-freebsd/freebsd-ubin/Manifest b/sys-freebsd/freebsd-ubin/Manifest new file mode 100644 index 000000000000..b04de1ec1441 --- /dev/null +++ b/sys-freebsd/freebsd-ubin/Manifest @@ -0,0 +1,19 @@ +DIST freebsd-bin-8.2.tar.bz2 415900 SHA256 fb31b7fab259bda8396e615246f85dc99c3c9f7e98f4e4a613e20b6a394c4921 SHA512 c39b26f75f7d812f46e907acabd8dfaf45c97adf4488bcafa35fd46c805d821e177609d403cf5e677f3674020290199ac97059a0609f7705bce58a7aab3ee8e3 WHIRLPOOL 49e70b1c09c4b72b3f23850e8c9873556571ec02d70ade8f18f683eff6fa92dc8f6d02d58473fe7b4d8d1f3de96c63df41150b2091caafbc9a0e92e6055b43fd +DIST freebsd-bin-9.1.tar.bz2 385664 SHA256 0a9524d75a8cb4c9c2654f2f9843087b09e8599bba97b9b59f00bc2e92b87e00 SHA512 fa0571a705befe1cb9c07285d3df55c9b5f4f295760511d668d80fec8cd4d59b70c676f07164f2aa44911decef0fb54fa6d78405ac2ceec822b6b8920abc5ca8 WHIRLPOOL 6f2bfe17604339e8260c49582bc941d255932b5c0a7b604e58187626a3a38766cd1e4aed9fc93a737ec9b4fa661f88aac23769b3542f35eb20da8b260216e985 +DIST freebsd-cddl-8.2.tar.bz2 823706 SHA256 6d2b2362ce60538bcba4afa47bd6baa98b05292babae4b20d6ba08592ce98698 SHA512 9f9728d9bf0f9fb320a0378186b29133e5e9276494f57ac3cffa9917ec94d3b886708406990107f2fbf742c255f9ac716f35ea14f6a6a835712eb55581421721 WHIRLPOOL 0150d972fc5200efcf22b5baded0bc7d826f03420a8328bc9ce1f53f39d1f3cd07dc367fcb3b0c8bdcc3b33bc9045f262928d76532c91820fd3c6bc8c9ee57c9 +DIST freebsd-cddl-9.1.tar.bz2 899348 SHA256 bcc79fb002052128e9e91b16beb3083ee152be0936494715c6c159bfc8d2ca3a SHA512 ae0a969e710785bbcf36a2ec22cc5b1dcdb25398be951e047a1237d0c977e38fc9e05504db51f8bf9ed83bc1f68b04fc88ce18fc48a93f785b8a3f8ef481bacd WHIRLPOOL 2c4a5baf162dbb698af45b9262f104e27c05e6a2630c3e7b1765e76c8987a330c315f741df69c8771d2509708d2934db2a07f2e0218aa59d0100dfc3f952bf72 +DIST freebsd-contrib-8.2.tar.bz2 40931651 SHA256 8b9cb688e81c2980b3fc66411d00ab277a24dadd50d5bdd5e0e6c63ac687b9b6 SHA512 4f7bf825b579fbb88f2aac531d07e531474179c63fa0b66c4e80821290a8c94bf611bb4dcaef51b762aacd25b11dfae798a4ec3bad3b9e3f6b3490ebfaa72476 WHIRLPOOL edd3d9e26e8d22d9028082e107ec1a44402e206dab8722f34b445676959305996c3f699152af42ace249b7f58498492787823b172fb6bcb273119c6bb50a35f0 +DIST freebsd-contrib-9.1.tar.bz2 54751432 SHA256 e7ffa056d4050ce03ee8e23e276e2a9a494326a98d60c43bee2afcc59576deb8 SHA512 71be13049258c6e6b5e4f63cc16da5d349a89d68f04d87446e4ad33ae8bf2a93ea67d9c256b7bec60b61e65db0487268070cfb77a484c3ac0f8ba368b48c2438 WHIRLPOOL a2a84423175499208d34809e802284d6ba649f317c3a9ad8b7312fa19efe142ebadab0048bac0db8e988e59f9a7468ac7c5d0d25e78b82bdb269a20d18153cee +DIST freebsd-etc-8.2.tar.bz2 188629 SHA256 6bc745fa259f9fa2b65df865d45443a7b23c24445195e33a4ac50bf1040ae238 SHA512 3e5c106754a6a1ac806bd46b711fba7ee9cb31a4eab5262c995a5d59dbeb02f756dd8b495640dda94189d204a5d2c5218de2bd23467172d6a4ebe1048986e89c WHIRLPOOL 23b658a214f1a64c43420351020e32b1182e9aac3ed5253f49ee86f9cee9166ce32bd556cd2a2b3c0e60a165462a8700f37dea19e57ad5716415e17f61da912e +DIST freebsd-etc-9.1.tar.bz2 207776 SHA256 a317bf85532d6192f5506e8d7bd5d5c201fe24017700e3a974a7712c2c69cdb8 SHA512 4fbe56fde519cf2f44e39a8869efa26c34f703cf540f4a83389da8d170873d7c6fb18e4010e643b8d793cfc5c55d15eeb198057a5b2a8da9d9e8f791801bf314 WHIRLPOOL 0c27019fe140fe96f870697acbaa89ac2f281f55b892c5791b08abf1cfa4da94d9d42a1df1c2091317573ed7234253857aecb797065f911a0a5d57bbf64349a5 +DIST freebsd-include-8.2.tar.bz2 138992 SHA256 fade90621a8e4880c9583c1ee49965400c88e53ac6c07cb5dcf320e4f069271d SHA512 6bc820dde866589ef75f9f0d1c469d815439bdd4c79f0e1a2482ec58f938b638cb9106969b321aa72492f933c95c76895ce489727a5e265798c93adc75dd64e3 WHIRLPOOL 64d3160c4ac46a62f5969058e07bd160c92284f08805ed917f2073ba1cb5907cfca16c5893daf30254d39b4fcdf641ab6afb9817607f65e7789d3049e8103947 +DIST freebsd-include-9.1.tar.bz2 146881 SHA256 861dce3f39e6806762b102361017cbe148f0e2b768b3fca152f8426f44a2942f SHA512 779c8315ce2b10b343bb62e331525d510b0d68ce5d665a1672bd6f4d1eff6445bc6b7a0f178b319828aa203c4e4c04c561ce793052703f4f936ce9711280a0c9 WHIRLPOOL e16ba45d380591ba007ca59579d45f61ffc1aa1a4c08fc11ed2794979b0a189a346c81b4f70a44ee199d50a72024930f28587ad62a9cd6854fc937eb466ec115 +DIST freebsd-lib-8.2.tar.bz2 3323878 SHA256 e3590c12794fcb5ba8eb7a1f58b497587cf19f9200b3254c194a793da3b5bfb0 SHA512 c059cfdd1099bb519b2a5c43fb7e7104c500ef8906229ed7eb9e420cb3a217cdaf8655e9e7a9f45cfadc5491f8115e0e738fd49251d9f0c3a83780845b09f007 WHIRLPOOL 95f98a372f44a89bc8ac3029ec065dbbfec338e6f889d057d75644bfcdfb9d27fdc0421d7e392cad5a823712b97f0857297ec3d321580254c63032c22b95792e +DIST freebsd-lib-9.1.tar.bz2 3206685 SHA256 f31fa8107b4de711c548f6d0c1bb1f81d09f51bcc3b14a1e9e90bb0e7cc4a35d SHA512 40d0c36b6b889c404fa0e0afa38ba4e84a55bc88ffa2f98a70afbd7a32c4f32c158617ba770567d082a986d62c09b3ec8db3dc5ab853ee1c9bbe0b90bb82396e WHIRLPOOL 581878bf9c43184b043b4293409b85901c9ed1f9bd279e965414aca41ba50950848ebda3ee10a503a028135dfd2765e95a11acd4e62a11c528e104392bbbd8d0 +DIST freebsd-src-10.1.tar.xz 115049476 SHA256 f919287a5ef51d4f133f27c99c54f2e8054f408d3dd53bc60f4e233cc75ec03d SHA512 4ded32b451e2807e24a06305502f88ea633b2899a7ccd9cab3dc98fc865ef91324c93c512a08cf6e295313a8d7e79aa9d7af07da40e7276d986b06419b984152 WHIRLPOOL 1eff9419d89b8a70f064171883d92e160b250cd637972eb9107a19d7b3c904b554c4f51eaa9ff9642ef2c4234bde05cf9aef16d0c39280b55084f831700dea80 +DIST freebsd-sys-8.2.tar.bz2 25835329 SHA256 0c6c7b61aae94db2931f985d5899f3bca78fc8ffab6b598fbaa158142d676f16 SHA512 6ea4516a5c52e25c4f993f7acb875463a5caea93dbdf250c5d48eee95fff226956e9f030cab7e341b5e6a132325bc3dbf93dcb4b1185acb011918e50b1a22be3 WHIRLPOOL 870deeff877c6b9fc812a4260e4fdbb6715a5dc2065cab3bfbf2a42d876f6654703ccb124275a4e2c410cef48f3db02b63cc76059eccf9cf90244826f35b7a15 +DIST freebsd-sys-9.1.tar.bz2 32588103 SHA256 b93a7ac8334ac16cc9f60665048e5ef812c0a6c62f10d0b0a674aec3f56516a8 SHA512 7dc9d9e00dde8f592bb171f4386d02b655b73cb4f153fe5ec063d010a148ef0639eae0dcdb3eeb09ecd1e3653c69e49a2d261329fa6d0381d2ddabe258ddde6d WHIRLPOOL c8348344dfb14bad64bd3a78ee615ddd29203175b292233254f8ba175e7a3fb7218af6f95f7b4dbf394c0354bafe9d8bb0c21cdf0ceaeb697214964b280469b3 +DIST freebsd-ubin-8.2.tar.bz2 1808012 SHA256 6b99554f3ad6ee052069b347eb6e6219b71598d7b222acb90a24cbfc805c7b68 SHA512 48d0103323e820c431aa4f62d3be40cb3b200fb62e3de01f36c88760395bf2ba3367c51f3fa72da4dbccc2812176a051a12ca5cb7e84125c3e0fc78d4cab2c29 WHIRLPOOL ea8f3a29a37b42c2b5bcc0f2c343fa1538522157ef075363c94606a4620a590e9a03f856ce2494e3e727935b62431991d0aa9fde71de699e78b4fe225bdf1c2c +DIST freebsd-ubin-9.1.tar.bz2 1910472 SHA256 ff6e586f213534b6ec2e65002c0dee64063d76ddad515c12221b1a80a1815e48 SHA512 74ae0aceec8597aa66c3f1ab313f0685a3c63d7273c36ae7baf8794275ad9bca241c60c3f6281cccf6d531d250d7611099977d3b1a27279cef3586401b6af05e WHIRLPOOL c85a3c9cf2bceff2c60ff03556bcc81d3aca22b0bce3c9538990071ac0a907236eee5ae7743ad22c5fd309b047ebf392aaaf2fe177ef5790ea869aff3da7e2fe +DIST freebsd-ubin-SA-1514-bsdpatch.patch 5692 SHA256 46c8f1d59e74660749e68c18ab688e4a36bef08390ecb8ded1910a1ec6616996 SHA512 eecc880909255eac05c0189fa40839fc9b76359f82de3a71320df417bea7ddb53aa0fcaca3c738755615f439c5d7158bcd6c217041ad6d64965c5fc644da5fa9 WHIRLPOOL 50e86baf24331417c207d25a57c339156efba87164a9026098cb76044a5130e454ab41da0980a9917c82cf07e95cf55435d992583ed2504443c8979d5e69a1fd +DIST freebsd-ubin-SA-1518-bsdpatch.patch 1617 SHA256 4a0a30ee8369d09f5136edf127933892808d55b739b59cfba381a538d6f01ead SHA512 d18a6b65d9210cef2e3efa48c1eab5ec757cacf471bfeefb0bc59c6a3fca9b6ec32534a6e34d6f915b0e407d75e26073bc83d2ff9bd9bf24cdf57dbf19f2c657 WHIRLPOOL 04afc52ee73667432554482c232f604f96f948a7e1abce9f7b3ecf0d3f581819f50ad57f1eaa5ccf09fbc037ce5712a761a42aa153528d10cc1bef0eabad059a diff --git a/sys-freebsd/freebsd-ubin/files/freebsd-ubin-10.0-atf.patch b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-10.0-atf.patch new file mode 100644 index 000000000000..d758c48846ed --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-10.0-atf.patch @@ -0,0 +1,15 @@ +diff --git a/usr.bin/atf/atf-sh/Makefile b/usr.bin/atf/atf-sh/Makefile +index 4ebdc33..37ff8fa 100644 +--- a/usr.bin/atf/atf-sh/Makefile ++++ b/usr.bin/atf/atf-sh/Makefile +@@ -33,8 +33,8 @@ PROG_CXX= atf-sh + SRCS= atf-sh.cpp + MAN= atf-sh.1 atf-sh-api.3 + +-CFLAGS+= -DHAVE_CONFIG_H +-CFLAGS+= -I${ATF} ++CXXFLAGS+= -DHAVE_CONFIG_H ++CXXFLAGS+= -I${ATF} + + DPADD+= ${LIBATF_C} ${LIBATF_CXX} + LDADD+= -latf-c++ -latf-c diff --git a/sys-freebsd/freebsd-ubin/files/freebsd-ubin-10.0-dtc-gcc46.patch b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-10.0-dtc-gcc46.patch new file mode 100644 index 000000000000..112523851f90 --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-10.0-dtc-gcc46.patch @@ -0,0 +1,25 @@ +diff --git a/usr.bin/dtc/string.hh b/usr.bin/dtc/string.hh +index 45bc4fd..6eaf8e4 100644 +--- a/usr.bin/dtc/string.hh ++++ b/usr.bin/dtc/string.hh +@@ -32,6 +32,8 @@ + + #ifndef _STRING_HH_ + #define _STRING_HH_ ++#include ++#include + #include "input_buffer.hh" + + namespace dtc +diff --git a/usr.bin/dtc/util.hh b/usr.bin/dtc/util.hh +index 7f2ec67..8e13b1c 100644 +--- a/usr.bin/dtc/util.hh ++++ b/usr.bin/dtc/util.hh +@@ -33,6 +33,7 @@ + #ifndef _UTIL_HH_ + #define _UTIL_HH_ + ++#include + #include + + // If we aren't using C++11, then just ignore static asserts. diff --git a/sys-freebsd/freebsd-ubin/files/freebsd-ubin-10.0-kdump-ioctl.patch b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-10.0-kdump-ioctl.patch new file mode 100644 index 000000000000..e10685284cbb --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-10.0-kdump-ioctl.patch @@ -0,0 +1,26 @@ +diff --git a/usr.bin/kdump/Makefile b/usr.bin/kdump/Makefile +index 38e9df6..5e831c6 100644 +--- a/usr.bin/kdump/Makefile ++++ b/usr.bin/kdump/Makefile +@@ -22,7 +22,7 @@ CLEANFILES= ioctl.c kdump_subr.c kdump_subr.h linux_syscalls.c + + ioctl.c: mkioctls + env MACHINE=${MACHINE} CPP="${CPP}" \ +- sh ${.CURDIR}/mkioctls print ${DESTDIR}/usr/include > ${.TARGET} ++ sh ${.CURDIR}/mkioctls print ${.CURDIR}/../../include > ${.TARGET} + + kdump_subr.h: mksubr + sh ${.CURDIR}/mksubr ${DESTDIR}/usr/include | \ +diff --git a/usr.bin/truss/Makefile b/usr.bin/truss/Makefile +index 7a49497..bc8b61f 100644 +--- a/usr.bin/truss/Makefile ++++ b/usr.bin/truss/Makefile +@@ -24,7 +24,7 @@ syscalls.h: syscalls.master + + ioctl.c: ${.CURDIR}/../kdump/mkioctls + env MACHINE=${MACHINE} CPP="${CPP}" \ +- /bin/sh ${.CURDIR}/../kdump/mkioctls return ${DESTDIR}/usr/include > ${.TARGET} ++ /bin/sh ${.CURDIR}/../kdump/mkioctls return ${.CURDIR}/../../include > ${.TARGET} + + .if ${MACHINE_CPUARCH} == "i386" + SRCS+= i386-linux.c linux_syscalls.h diff --git a/sys-freebsd/freebsd-ubin/files/freebsd-ubin-10.0-mandoc.patch b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-10.0-mandoc.patch new file mode 100644 index 000000000000..c5f7706024c4 --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-10.0-mandoc.patch @@ -0,0 +1,13 @@ +diff --git a/usr.bin/mandoc/Makefile b/usr.bin/mandoc/Makefile +index 0995534..1bcb3e0 100644 +--- a/usr.bin/mandoc/Makefile ++++ b/usr.bin/mandoc/Makefile +@@ -1,7 +1,7 @@ + # $FreeBSD$ + + MDOCMLDIR= ${.CURDIR}/../../contrib/mdocml +-LIBMANDOC= ${.OBJDIR}/../../lib/libmandoc/libmandoc.a ++LIBMANDOC= ${.CURDIR}/../../lib/libmandoc/libmandoc.a + .PATH: ${MDOCMLDIR} + + PROG= mandoc diff --git a/sys-freebsd/freebsd-ubin/files/freebsd-ubin-10.1-kdump-workaround.patch b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-10.1-kdump-workaround.patch new file mode 100644 index 000000000000..064647cfa510 --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-10.1-kdump-workaround.patch @@ -0,0 +1,13 @@ +diff --git a/usr.bin/kdump/Makefile b/usr.bin/kdump/Makefile +index cbf31d0..fa0d04d 100644 +--- a/usr.bin/kdump/Makefile ++++ b/usr.bin/kdump/Makefile +@@ -8,7 +8,7 @@ SFX= 32 + .PATH: ${.CURDIR}/../ktrace + + PROG= kdump +-SRCS= kdump_subr.c kdump.c ioctl.c subr.c ++SRCS= kdump_subr.h kdump_subr.c kdump.c ioctl.c subr.c + DPSRCS= kdump_subr.h + CFLAGS+= -I${.CURDIR}/../ktrace -I${.CURDIR} -I${.CURDIR}/../.. -I. + diff --git a/sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.0-bsdcmp.patch b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.0-bsdcmp.patch new file mode 100644 index 000000000000..1a8552909653 --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.0-bsdcmp.patch @@ -0,0 +1,13 @@ +Index: fbsd-6.0/usr.bin/cmp/Makefile +=================================================================== +--- fbsd-6.0.orig/usr.bin/cmp/Makefile ++++ fbsd-6.0/usr.bin/cmp/Makefile +@@ -1,7 +1,7 @@ + # @(#)Makefile 8.1 (Berkeley) 6/6/93 + # $FreeBSD: src/usr.bin/cmp/Makefile,v 1.6.14.1 2005/09/17 11:33:41 brian Exp $ + +-PROG= cmp ++PROG= bsdcmp + SRCS= cmp.c link.c misc.c regular.c special.c + + .include diff --git a/sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.0-fixmakefiles.patch b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.0-fixmakefiles.patch new file mode 100644 index 000000000000..b135a82a5238 --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.0-fixmakefiles.patch @@ -0,0 +1,35 @@ +Index: usr.bin/calendar/Makefile +=================================================================== +--- usr.bin/calendar/Makefile.orig ++++ usr.bin/calendar/Makefile +@@ -10,6 +10,7 @@ FR_LINKS= fr_FR.ISO8859-15 + TEXTMODE?= 444 + + beforeinstall: ++ ${INSTALL} -d ${DESTDIR}${SHAREDIR}/calendar + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${TEXTMODE} \ + ${.CURDIR}/calendars/calendar.* ${DESTDIR}${SHAREDIR}/calendar + .for lang in ${INTER} +Index: usr.bin/ee/Makefile +=================================================================== +--- usr.bin/ee/Makefile.orig ++++ usr.bin/ee/Makefile +@@ -12,12 +12,12 @@ LDADD= -lncurses + NLS= en_US.US-ASCII fr_FR.ISO8859-1 de_DE.ISO8859-1 pl_PL.ISO8859-2 \ + uk_UA.KOI8-U ru_RU.KOI8-R + +-NLSLINKS_en_US.US-ASCII= en_US.ISO8859-1 en_US.ISO8859-15 +-NLSLINKS_fr_FR.ISO8859-1= fr_BE.ISO8859-1 fr_BE.ISO8859-15 \ +- fr_CA.ISO8859-1 fr_CA.ISO8859-15 fr_CH.ISO8859-1 fr_CH.ISO8859-15 \ +- fr_FR.ISO8859-15 +-NLSLINKS_de_DE.ISO8859-1= de_AT.ISO8859-1 de_AT.ISO8859-15 de_CH.ISO8859-1 \ +- de_CH.ISO8859-15 de_DE.ISO8859-15 ++#NLSLINKS_en_US.US-ASCII= en_US.ISO8859-1 en_US.ISO8859-15 ++#NLSLINKS_fr_FR.ISO8859-1= fr_BE.ISO8859-1 fr_BE.ISO8859-15 \ ++# fr_CA.ISO8859-1 fr_CA.ISO8859-15 fr_CH.ISO8859-1 fr_CH.ISO8859-15 \ ++# fr_FR.ISO8859-15 ++#NLSLINKS_de_DE.ISO8859-1= de_AT.ISO8859-1 de_AT.ISO8859-15 de_CH.ISO8859-1 \ ++# de_CH.ISO8859-15 de_DE.ISO8859-15 + + NLSSRCFILES=ee.msg + .for lang in ${NLS} diff --git a/sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.0-kdump-ioctl.patch b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.0-kdump-ioctl.patch new file mode 100644 index 000000000000..a89cf52dfc4c --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.0-kdump-ioctl.patch @@ -0,0 +1,28 @@ +By default the mkioctl program that generates code for kdump does look for +ioctls in the whole /usr/include tree, but this does break when xorg is merged. +This patch allows to look for include files only in the source tree. + +Index: fbsd-6/usr.bin/kdump/Makefile +=================================================================== +--- fbsd-6.orig/usr.bin/kdump/Makefile ++++ fbsd-6/usr.bin/kdump/Makefile +@@ -10,6 +10,6 @@ CFLAGS+= -I${.CURDIR}/../ktrace -I${.CUR + CLEANFILES= ioctl.c + + ioctl.c: mkioctls +- sh ${.CURDIR}/mkioctls ${DESTDIR}/usr/include > ${.TARGET} ++ sh ${.CURDIR}/mkioctls ${.CURDIR}/../../include > ${.TARGET} + + .include +Index: fbsd-6/usr.bin/truss/Makefile +=================================================================== +--- fbsd-6.orig/usr.bin/truss/Makefile ++++ fbsd-6/usr.bin/truss/Makefile +@@ -29,6 +29,6 @@ syscalls.h: syscalls.master + ${.CURDIR}/i386.conf + + ioctl.c: ${.CURDIR}/../kdump/mkioctls +- sh ${.CURDIR}/../kdump/mkioctls ${DESTDIR}/usr/include > ${.TARGET} ++ sh ${.CURDIR}/../kdump/mkioctls ${.CURDIR}/../../include > ${.TARGET} + + .include diff --git a/sys-freebsd/freebsd-ubin/files/freebsd-ubin-8.0-bsdar.patch b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-8.0-bsdar.patch new file mode 100644 index 000000000000..c966b9b88ad7 --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-8.0-bsdar.patch @@ -0,0 +1,21 @@ +--- usr.bin/ar/Makefile.old 2010-03-12 14:50:30 +0100 ++++ usr.bin/ar/Makefile 2010-03-12 14:50:53 +0100 +@@ -1,6 +1,6 @@ + # $FreeBSD: src/usr.bin/ar/Makefile,v 1.22.2.1.2.1 2009/10/25 01:10:29 kensmith Exp $ + +-PROG= ar ++PROG= freebsd-ar + SRCS= ar.c acplex.l acpyacc.y read.c util.c write.c y.tab.h + + WARNS?= 5 +@@ -10,8 +10,7 @@ + + CFLAGS+=-I. -I${.CURDIR} + +-NO_SHARED?= yes +-LINKS= ${BINDIR}/ar ${BINDIR}/ranlib +-MLINKS= ar.1 ranlib.1 ++LINKS= ${BINDIR}/freebsd-ar ${BINDIR}/freebsd-ranlib ++MLINKS= freebsd-ar.1 freebsd-ranlib.1 + + .include diff --git a/sys-freebsd/freebsd-ubin/files/freebsd-ubin-8.0-xinstall.patch b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-8.0-xinstall.patch new file mode 100644 index 000000000000..e8f978aabc9e --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-8.0-xinstall.patch @@ -0,0 +1,26 @@ +Parallel make installs often cause 2 concurrent install -d to fail +while they are creating the path to the target dirs. +This patch changes the failure to a warning so that a make -j6 install doesn't +fails as often as it does on Gentoo/FreeBSD, if it uses /usr/bin/install. + +--- usr.bin/xinstall/xinstall.c.orig ++++ usr.bin/xinstall/xinstall.c +@@ -748,9 +748,17 @@ + ch = *p; + *p = '\0'; + if (stat(path, &sb)) { +- if (errno != ENOENT || mkdir(path, 0755) < 0) { ++ if (errno != ENOENT) { + err(EX_OSERR, "mkdir %s", path); + /* NOTREACHED */ ++ } else if (mkdir(path, 0755) < 0) { ++ /* Previous errno from stat() says that the directory didn't exist (ENOENT) ++ * But if errno is now EEXIST, then we just hit a parallel make bug. ++ */ ++ if (errno == EEXIST) ++ warn("mkdir: %s now exists!", path); /* let me know when this happens */ ++ else ++ err(EX_OSERR, "mkdir %s", path); + } else if (verbose) + (void)printf("install: mkdir %s\n", + path); diff --git a/sys-freebsd/freebsd-ubin/files/freebsd-ubin-8.2-compress.patch b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-8.2-compress.patch new file mode 100644 index 000000000000..5bd1d5524c31 --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-8.2-compress.patch @@ -0,0 +1,55 @@ +Index: usr.bin/compress/zopen.c +=================================================================== +--- usr.bin/compress/zopen.c (revision 225020) ++++ usr.bin/compress/zopen.c (working copy) +@@ -486,7 +486,7 @@ zread(void *cookie, char *rbp, int num) + block_compress = maxbits & BLOCK_MASK; + maxbits &= BIT_MASK; + maxmaxcode = 1L << maxbits; +- if (maxbits > BITS) { ++ if (maxbits > BITS || maxbits < 12) { + errno = EFTYPE; + return (-1); + } +@@ -513,17 +513,28 @@ zread(void *cookie, char *rbp, int num) + for (code = 255; code >= 0; code--) + tab_prefixof(code) = 0; + clear_flg = 1; +- free_ent = FIRST - 1; +- if ((code = getcode(zs)) == -1) /* O, untimely death! */ +- break; ++ free_ent = FIRST; ++ oldcode = -1; ++ continue; + } + incode = code; + +- /* Special case for KwKwK string. */ ++ /* Special case for kWkWk string. */ + if (code >= free_ent) { ++ if (code > free_ent || oldcode == -1) { ++ /* Bad stream. */ ++ errno = EINVAL; ++ return (-1); ++ } + *stackp++ = finchar; + code = oldcode; + } ++ /* ++ * The above condition ensures that code < free_ent. ++ * The construction of tab_prefixof in turn guarantees that ++ * each iteration decreases code and therefore stack usage is ++ * bound by 1 << BITS - 256. ++ */ + + /* Generate output characters in reverse order. */ + while (code >= 256) { +@@ -540,7 +551,7 @@ middle: do { + } while (stackp > de_stack); + + /* Generate the new entry. */ +- if ((code = free_ent) < maxmaxcode) { ++ if ((code = free_ent) < maxmaxcode && oldcode != -1) { + tab_prefixof(code) = (u_short) oldcode; + tab_suffixof(code) = finchar; + free_ent = code + 1; diff --git a/sys-freebsd/freebsd-ubin/files/freebsd-ubin-9.0-fixmakefiles.patch b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-9.0-fixmakefiles.patch new file mode 100644 index 000000000000..d34eb9ef91af --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-9.0-fixmakefiles.patch @@ -0,0 +1,11 @@ +diff -uNr usr.bin.old/calendar/Makefile usr.bin/calendar/Makefile +--- usr.bin.old/calendar/Makefile 2011-11-02 18:22:09.000000000 +0000 ++++ usr.bin/calendar/Makefile 2011-11-02 18:22:48.000000000 +0000 +@@ -15,6 +15,7 @@ + WARNS?= 7 + + beforeinstall: ++ ${INSTALL} -d ${DESTDIR}${SHAREDIR}/calendar + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${TEXTMODE} \ + ${.CURDIR}/calendars/calendar.* ${DESTDIR}${SHAREDIR}/calendar + .for lang in ${INTER} diff --git a/sys-freebsd/freebsd-ubin/files/freebsd-ubin-9.1-ar-libarchive3.patch b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-9.1-ar-libarchive3.patch new file mode 100644 index 000000000000..d4d89e12e9e1 --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-9.1-ar-libarchive3.patch @@ -0,0 +1,19 @@ +diff -Nur usr.bin.orig/ar/ar.c usr.bin/ar/ar.c +--- usr.bin.orig/ar/ar.c 2012-01-03 12:23:45.000000000 +0900 ++++ usr.bin/ar/ar.c 2012-12-25 20:50:29.000000000 +0900 +@@ -386,13 +386,13 @@ + static void + bsdar_version(void) + { +- (void)printf("BSD ar %s - %s\n", BSDAR_VERSION, archive_version()); ++ (void)printf("BSD ar %s - %s\n", BSDAR_VERSION, archive_version_string()); + exit(EX_OK); + } + + static void + ranlib_version(void) + { +- (void)printf("ranlib %s - %s\n", BSDAR_VERSION, archive_version()); ++ (void)printf("ranlib %s - %s\n", BSDAR_VERSION, archive_version_string()); + exit(EX_OK); + } diff --git a/sys-freebsd/freebsd-ubin/files/freebsd-ubin-9.1-bsdar.patch b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-9.1-bsdar.patch new file mode 100644 index 000000000000..a65185fb7576 --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-9.1-bsdar.patch @@ -0,0 +1,25 @@ +diff -Nur work.orig/usr.bin/ar/Makefile work/usr.bin/ar/Makefile +--- work.orig/usr.bin/ar/Makefile 2012-07-16 03:59:48.000000000 +0900 ++++ work/usr.bin/ar/Makefile 2012-07-16 04:02:38.000000000 +0900 +@@ -2,7 +2,7 @@ + + .include + +-PROG= ar ++PROG= freebsd-ar + SRCS= ar.c acplex.l acpyacc.y read.c util.c write.c y.tab.h + + DPADD= ${LIBARCHIVE} ${LIBELF} +@@ -10,10 +10,7 @@ + + CFLAGS+=-I. -I${.CURDIR} + +-.if ${MK_SHARED_TOOLCHAIN} == "no" +-NO_SHARED?= yes +-.endif +-LINKS= ${BINDIR}/ar ${BINDIR}/ranlib +-MLINKS= ar.1 ranlib.1 ++LINKS= ${BINDIR}/freebsd-ar ${BINDIR}/freebsd-ranlib ++MLINKS= freebsd-ar.1 freebsd-ranlib.1 + + .include diff --git a/sys-freebsd/freebsd-ubin/files/freebsd-ubin-9.1-grep.patch b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-9.1-grep.patch new file mode 100644 index 000000000000..06cc5d28df80 --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-9.1-grep.patch @@ -0,0 +1,17 @@ +diff -Nur work.orig/usr.bin/grep/Makefile work/usr.bin/grep/Makefile +--- work.orig/usr.bin/grep/Makefile 2012-07-16 04:59:01.000000000 +0900 ++++ work/usr.bin/grep/Makefile 2012-07-16 05:00:15.000000000 +0900 +@@ -40,13 +40,6 @@ + grep.1 lzfgrep.1 + .endif + +-LINKS+= ${BINDIR}/${PROG} ${BINDIR}/xzgrep \ +- ${BINDIR}/${PROG} ${BINDIR}/xzegrep \ +- ${BINDIR}/${PROG} ${BINDIR}/xzfgrep \ +- ${BINDIR}/${PROG} ${BINDIR}/lzgrep \ +- ${BINDIR}/${PROG} ${BINDIR}/lzegrep \ +- ${BINDIR}/${PROG} ${BINDIR}/lzfgrep +- + LDADD= -lz -llzma + DPADD= ${LIBZ} ${LIBLZMA} + diff --git a/sys-freebsd/freebsd-ubin/files/freebsd-ubin-9.1-kdump-ioctl.patch b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-9.1-kdump-ioctl.patch new file mode 100644 index 000000000000..d98e599a280a --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-9.1-kdump-ioctl.patch @@ -0,0 +1,24 @@ +diff -Nur work.orig/usr.bin/kdump/Makefile work/usr.bin/kdump/Makefile +--- work.orig/usr.bin/kdump/Makefile 2012-07-12 13:24:01.000000000 +0900 ++++ work/usr.bin/kdump/Makefile 2012-07-16 03:54:14.000000000 +0900 +@@ -21,7 +21,7 @@ + + ioctl.c: mkioctls + env CPP="${CPP}" \ +- sh ${.CURDIR}/mkioctls ${DESTDIR}/usr/include > ${.TARGET} ++ sh ${.CURDIR}/mkioctls ${.CURDIR}/../../include > ${.TARGET} + + kdump_subr.c: mksubr + sh ${.CURDIR}/mksubr ${DESTDIR}/usr/include > ${.TARGET} +diff -Nur work.orig/usr.bin/truss/Makefile work/usr.bin/truss/Makefile +--- work.orig/usr.bin/truss/Makefile 2012-07-12 13:24:03.000000000 +0900 ++++ work/usr.bin/truss/Makefile 2012-07-16 03:54:40.000000000 +0900 +@@ -24,7 +24,7 @@ + + ioctl.c: ${.CURDIR}/../kdump/mkioctls + env CPP="${CPP}" \ +- sh ${.CURDIR}/../kdump/mkioctls ${DESTDIR}/usr/include > ${.TARGET} ++ sh ${.CURDIR}/../kdump/mkioctls ${.CURDIR}/../../include > ${.TARGET} + + .if ${MACHINE_CPUARCH} == "i386" + SRCS+= i386-linux.c linux_syscalls.h diff --git a/sys-freebsd/freebsd-ubin/files/freebsd-ubin-9.1-minigzip.patch b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-9.1-minigzip.patch new file mode 100644 index 000000000000..a9c062229ac1 --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-9.1-minigzip.patch @@ -0,0 +1,10 @@ +diff -Nur work.orig/usr.bin/minigzip/Makefile work/usr.bin/minigzip/Makefile +--- work.orig/usr.bin/minigzip/Makefile 2012-07-16 04:39:31.000000000 +0900 ++++ work/usr.bin/minigzip/Makefile 2012-07-16 04:45:30.000000000 +0900 +@@ -10,4 +10,6 @@ + DPADD= ${LIBZ} + LDADD= -lz + ++CFLAGS+= -I${.CURDIR}/../../lib/libz ++ + .include diff --git a/sys-freebsd/freebsd-ubin/files/freebsd-ubin-lint-stdarg.patch b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-lint-stdarg.patch new file mode 100644 index 000000000000..97747245552d --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-lint-stdarg.patch @@ -0,0 +1,24 @@ +diff -ur usr.bin.orig/xlint/llib/llib-lposix usr.bin/xlint/llib/llib-lposix +--- usr.bin.orig/xlint/llib/llib-lposix 2005-04-29 17:30:03 +0000 ++++ usr.bin/xlint/llib/llib-lposix 2005-05-03 14:12:26 +0000 +@@ -42,7 +42,7 @@ + #include + #include + #include +-#include ++#include + #include + #include + #include +diff -ur usr.bin.orig/xlint/llib/llib-lstdc usr.bin/xlint/llib/llib-lstdc +--- usr.bin.orig/xlint/llib/llib-lstdc 2005-04-29 17:30:03 +0000 ++++ usr.bin/xlint/llib/llib-lstdc 2005-05-03 14:12:35 +0000 +@@ -44,7 +44,7 @@ + #include + #include + #include +-#include ++#include + #include + #include + #include diff --git a/sys-freebsd/freebsd-ubin/files/freebsd-ubin-setXid.patch b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-setXid.patch new file mode 100644 index 000000000000..631ee4f7b4f7 --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-setXid.patch @@ -0,0 +1,129 @@ +diff -ur usr.bin.orig/at/Makefile usr.bin.setXid/at/Makefile +--- usr.bin.orig/at/Makefile Thu Apr 7 20:52:57 2005 ++++ usr.bin.setXid/at/Makefile Thu Apr 7 21:21:02 2005 +@@ -15,6 +15,8 @@ + BINMODE= 4555 + CLEANFILES+= at.1 + ++LDFLAGS+=-Wl,-z,now ++ + at.1: at.man + @${ECHO} Making ${.TARGET:T} from ${.ALLSRC:T}; \ + sed -e \ +diff -ur usr.bin.orig/chpass/Makefile usr.bin.setXid/chpass/Makefile +--- usr.bin.orig/chpass/Makefile Thu Apr 7 20:52:57 2005 ++++ usr.bin.setXid/chpass/Makefile Thu Apr 7 21:22:40 2005 +@@ -15,6 +15,8 @@ + #CFLAGS+=-DRESTRICT_FULLNAME_CHANGE + CFLAGS+=-I${.CURDIR}/../../usr.sbin/pwd_mkdb -I${.CURDIR}/../../lib/libc/gen -I. + ++LDFLAGS+=-Wl,-z,now ++ + DPADD= ${LIBCRYPT} ${LIBUTIL} + LDADD= -lcrypt -lutil + .if !defined(NO_NIS) +diff -ur usr.bin.orig/fstat/Makefile usr.bin.setXid/fstat/Makefile +--- usr.bin.orig/fstat/Makefile Thu Apr 7 20:52:57 2005 ++++ usr.bin.setXid/fstat/Makefile Thu Apr 7 21:24:35 2005 +@@ -9,4 +9,6 @@ + BINMODE=2555 + WARNS?= 6 + ++LDFLAGS+=-Wl,-z,now ++ + .include +diff -ur usr.bin.orig/lock/Makefile usr.bin.setXid/lock/Makefile +--- usr.bin.orig/lock/Makefile Thu Apr 7 20:52:57 2005 ++++ usr.bin.setXid/lock/Makefile Thu Apr 7 21:24:45 2005 +@@ -7,4 +7,6 @@ + DPADD= ${LIBCRYPT} + LDADD= -lcrypt + ++LDFLAGS+=-Wl,-z,now ++ + .include +diff -ur usr.bin.orig/login/Makefile usr.bin.setXid/login/Makefile +--- usr.bin.orig/login/Makefile Thu Apr 7 20:52:57 2005 ++++ usr.bin.setXid/login/Makefile Thu Apr 7 21:24:55 2005 +@@ -13,4 +13,6 @@ + INSTALLFLAGS=-fschg + .endif + ++LDFLAGS+=-Wl,-z,now ++ + .include +diff -ur usr.bin.orig/netstat/Makefile usr.bin.setXid/netstat/Makefile +--- usr.bin.orig/netstat/Makefile Thu Apr 7 20:52:58 2005 ++++ usr.bin.setXid/netstat/Makefile Thu Apr 7 21:25:08 2005 +@@ -14,4 +14,6 @@ + DPADD= ${LIBKVM} ${LIBIPX} ${LIBNETGRAPH} ${LIBUTIL} + LDADD= -lkvm -lipx -lnetgraph -lutil + ++LDFLAGS+=-Wl,-z,now ++ + .include +diff -ur usr.bin.orig/opieinfo/Makefile usr.bin.setXid/opieinfo/Makefile +--- usr.bin.orig/opieinfo/Makefile Thu Apr 7 20:52:58 2005 ++++ usr.bin.setXid/opieinfo/Makefile Thu Apr 7 21:25:20 2005 +@@ -11,6 +11,8 @@ + DPADD= ${LIBOPIE} ${LIBMD} + LDADD= -lopie -lmd + ++LDFLAGS+=-Wl,-z,now ++ + BINOWN= root + BINMODE=4555 + INSTALLFLAGS=-fschg +diff -ur usr.bin.orig/opiepasswd/Makefile usr.bin.setXid/opiepasswd/Makefile +--- usr.bin.orig/opiepasswd/Makefile Thu Apr 7 20:52:58 2005 ++++ usr.bin.setXid/opiepasswd/Makefile Thu Apr 7 21:25:29 2005 +@@ -11,6 +11,8 @@ + DPADD= ${LIBOPIE} ${LIBMD} + LDADD= -lopie -lmd + ++LDFLAGS+=-Wl,-z,now ++ + BINOWN= root + BINMODE=4555 + INSTALLFLAGS=-fschg +diff -ur usr.bin.orig/passwd/Makefile usr.bin.setXid/passwd/Makefile +--- usr.bin.orig/passwd/Makefile Thu Apr 7 20:52:58 2005 ++++ usr.bin.setXid/passwd/Makefile Thu Apr 7 21:25:37 2005 +@@ -10,6 +10,8 @@ + MLINKS = passwd.1 yppasswd.1 + WARNS ?= 4 + ++LDFLAGS+=-Wl,-z,now ++ + beforeinstall: + .for i in passwd yppasswd + [ ! -e ${DESTDIR}${BINDIR}/$i ] || \ +--- usr.bin.orig/su/Makefile Thu Apr 7 20:52:58 2005 ++++ usr.bin.setXid/su/Makefile Thu Apr 7 21:26:00 2005 +@@ -10,4 +10,6 @@ + BINMODE=4555 + INSTALLFLAGS=-fschg + ++LDFLAGS+=-Wl,-z,now ++ + .include +diff -ur usr.bin.orig/wall/Makefile usr.bin.setXid/wall/Makefile +--- usr.bin.orig/wall/Makefile Thu Apr 7 20:52:59 2005 ++++ usr.bin.setXid/wall/Makefile Thu Apr 7 21:26:07 2005 +@@ -5,4 +5,6 @@ + BINGRP= tty + BINMODE=2555 + ++LDFLAGS+=-Wl,-z,now ++ + .include +diff -ur usr.bin.orig/write/Makefile usr.bin.setXid/write/Makefile +--- usr.bin.orig/write/Makefile Thu Apr 7 20:52:59 2005 ++++ usr.bin.setXid/write/Makefile Thu Apr 7 21:26:13 2005 +@@ -4,4 +4,6 @@ + BINMODE=2555 + BINGRP= tty + ++LDFLAGS+=-Wl,-z,now ++ + .include diff --git a/sys-freebsd/freebsd-ubin/files/locate-updatedb-cron b/sys-freebsd/freebsd-ubin/files/locate-updatedb-cron new file mode 100644 index 000000000000..323f455e9ba1 --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/locate-updatedb-cron @@ -0,0 +1,6 @@ +#! /bin/sh + +if [ -x /usr/libexec/locate.updatedb ] +then + echo /usr/libexec/locate.updatedb | nice -n 5 su -fm nobody +fi diff --git a/sys-freebsd/freebsd-ubin/files/login.1.pamd b/sys-freebsd/freebsd-ubin/files/login.1.pamd new file mode 100644 index 000000000000..2c09584f762c --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/login.1.pamd @@ -0,0 +1,4 @@ +auth include system-local-login +account include system-local-login +session include system-local-login +password include system-local-login diff --git a/sys-freebsd/freebsd-ubin/files/login.pamd b/sys-freebsd/freebsd-ubin/files/login.pamd new file mode 100644 index 000000000000..db1c74f0f1af --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/login.pamd @@ -0,0 +1,20 @@ +# +# $Id$ +# +# PAM configuration for the "login" service +# + +# auth +auth required pam_nologin.so no_warn +auth sufficient pam_self.so no_warn +auth include system + +# account +account requisite pam_securetty.so +account include system + +# session +session include system + +# password +password include system diff --git a/sys-freebsd/freebsd-ubin/files/passwd.1.pamd b/sys-freebsd/freebsd-ubin/files/passwd.1.pamd new file mode 100644 index 000000000000..bab2eea7e015 --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/passwd.1.pamd @@ -0,0 +1,9 @@ +# +# $Id$ +# +# PAM configuration for the "passwd" service +# + +# passwd(1) does not use the auth, account or session services. + +password include system-auth diff --git a/sys-freebsd/freebsd-ubin/files/passwd.pamd b/sys-freebsd/freebsd-ubin/files/passwd.pamd new file mode 100644 index 000000000000..44b7e71bdcd2 --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/passwd.pamd @@ -0,0 +1,11 @@ +# +# $Id$ +# +# PAM configuration for the "passwd" service +# + +# passwd(1) does not use the auth, account or session services. + +# password +#password requisite pam_passwdqc.so enforce=users +password required pam_unix.so no_warn try_first_pass nullok diff --git a/sys-freebsd/freebsd-ubin/files/su.1.pamd b/sys-freebsd/freebsd-ubin/files/su.1.pamd new file mode 100644 index 000000000000..72e2bd1c6cb8 --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/su.1.pamd @@ -0,0 +1,17 @@ +# +# $Id$ +# +# PAM configuration for the "su" service +# + +# auth +auth sufficient pam_rootok.so no_warn +auth sufficient pam_self.so no_warn +auth requisite pam_group.so no_warn group=wheel root_only fail_safe +auth include system-auth + +# account +account include system-auth + +# session +session required pam_permit.so diff --git a/sys-freebsd/freebsd-ubin/files/su.pamd b/sys-freebsd/freebsd-ubin/files/su.pamd new file mode 100644 index 000000000000..57019c53ec44 --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/su.pamd @@ -0,0 +1,17 @@ +# +# $Id$ +# +# PAM configuration for the "su" service +# + +# auth +auth sufficient pam_rootok.so no_warn +auth sufficient pam_self.so no_warn +auth requisite pam_group.so no_warn group=wheel root_only fail_safe +auth include system + +# account +account include system + +# session +session required pam_permit.so diff --git a/sys-freebsd/freebsd-ubin/freebsd-ubin-10.1-r2.ebuild b/sys-freebsd/freebsd-ubin/freebsd-ubin-10.1-r2.ebuild new file mode 100644 index 000000000000..956e6c5c4abb --- /dev/null +++ b/sys-freebsd/freebsd-ubin/freebsd-ubin-10.1-r2.ebuild @@ -0,0 +1,206 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit bsdmk freebsd flag-o-matic pam multilib multibuild multilib-build + +DESCRIPTION="FreeBSD's base system source for /usr/bin" +SLOT="0" +IUSE="ar atm audit bluetooth ipv6 kerberos netware nis ssl usb build zfs" +LICENSE="BSD zfs? ( CDDL )" + +# Security Advisory and Errata patches. +UPSTREAM_PATCHES=( "SA-15:14/bsdpatch.patch" + "SA-15:18/bsdpatch.patch" ) + +if [[ ${PV} != *9999* ]]; then + KEYWORDS="~amd64-fbsd ~sparc-fbsd ~x86-fbsd" + SRC_URI="${SRC_URI} + $(freebsd_upstream_patches)" +fi + +EXTRACTONLY=" + usr.bin/ + contrib/ + lib/ + etc/ + bin/ + include/ +" +use zfs && EXTRACTONLY+="cddl/" +use build && EXTRACTONLY+="sys/" + +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 + !dev-libs/libiconv + !sys-freebsd/freebsd-contrib" + +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}-8.0-xinstall.patch" + "${FILESDIR}/${PN}-9.1-bsdar.patch" + "${FILESDIR}/${PN}-9.1-minigzip.patch" + "${FILESDIR}/${PN}-10.0-atf.patch" + "${FILESDIR}/${PN}-10.0-dtc-gcc46.patch" + "${FILESDIR}/${PN}-10.0-kdump-ioctl.patch" + "${FILESDIR}/${PN}-10.0-mandoc.patch" + "${FILESDIR}/${PN}-10.1-kdump-workaround.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 + hesinfo host + rsh rlogin rusers rwho ruptime + compile_et lex vi smbutil file vacation nc ftp telnet + c99 c89 + bc dc + 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= WITHOUT_LZMA_SUPPORT= WITHOUT_SVN= WITHOUT_SVNLITE= WITHOUT_OPENSSH= WITHOUT_LDNS_UTILS= " +} + +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() { + if [[ ! -e "${WORKDIR}/sys" ]]; then + use build || ln -s "/usr/src/sys" "${WORKDIR}/sys" + fi + + # 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 + + # Preparing to build xlint + export LINT=xlint +} + +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() { + # Preparing to build mandoc + cd "${WORKDIR}/lib/libmandoc" + freebsd_src_compile + + cd "${S}" + 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 ; 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 + + # create locate database #472468 + local f=/var/db/locate.database + mkdir "${ED}${f%/*}" || die + touch "${ED}${f}" || die + fowners nobody:nobody ${f} +} + +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 +} diff --git a/sys-freebsd/freebsd-ubin/freebsd-ubin-8.2-r1.ebuild b/sys-freebsd/freebsd-ubin/freebsd-ubin-8.2-r1.ebuild new file mode 100644 index 000000000000..b88ff353e4ff --- /dev/null +++ b/sys-freebsd/freebsd-ubin/freebsd-ubin-8.2-r1.ebuild @@ -0,0 +1,152 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 + !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}-6.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" + "${FILESDIR}/${P}-compress.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 + 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" + +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= " +} + +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; 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 +} 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..3ca2a95bd69d --- /dev/null +++ b/sys-freebsd/freebsd-ubin/freebsd-ubin-9.1-r2.ebuild @@ -0,0 +1,181 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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" + +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 + + # create locate database #472468 + local f=/var/db/locate.database + mkdir "${ED}${f%/*}" || die + touch "${ED}${f}" || die + fowners nobody:nobody ${f} +} + +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 +} diff --git a/sys-freebsd/freebsd-ubin/freebsd-ubin-9.1-r3.ebuild b/sys-freebsd/freebsd-ubin/freebsd-ubin-9.1-r3.ebuild new file mode 100644 index 000000000000..3dcc0990314c --- /dev/null +++ b/sys-freebsd/freebsd-ubin/freebsd-ubin-9.1-r3.ebuild @@ -0,0 +1,181 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 catman" + +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 + + # create locate database #472468 + local f=/var/db/locate.database + mkdir "${ED}${f%/*}" || die + touch "${ED}${f}" || die + fowners nobody:nobody ${f} +} + +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 +} diff --git a/sys-freebsd/freebsd-ubin/metadata.xml b/sys-freebsd/freebsd-ubin/metadata.xml new file mode 100644 index 000000000000..825b3e07ae29 --- /dev/null +++ b/sys-freebsd/freebsd-ubin/metadata.xml @@ -0,0 +1,21 @@ + + + + bsd + + + Build auditing tools. + + + Build libraries and tools to work with NetWare protocols (IPX + and NCP). + + + Build FreeBSD's ar and ranlib replacements based on libarchive. The + toolchain will still use binutils' version but you can play with it. + They have been renamed to freebsd-ar and freebsd-ranlib not to collide + with binutils. + + Enable ZFS support (for fstat actually). + + -- cgit v1.2.3-65-gdbad