diff options
author | Javier Villavicencio <the_paya@gentoo.org> | 2010-10-27 04:49:07 -0300 |
---|---|---|
committer | Javier Villavicencio <the_paya@gentoo.org> | 2010-10-27 04:49:07 -0300 |
commit | e100db567eafb82442c76ac8dbfeabf5fa3c84bc (patch) | |
tree | ada5529cbfb624be14953da908410de116a4748a /sys-netbsd | |
parent | Added Manifests and files subdirs (diff) | |
download | gentoo-bsd-e100db567eafb82442c76ac8dbfeabf5fa3c84bc.tar.gz gentoo-bsd-e100db567eafb82442c76ac8dbfeabf5fa3c84bc.tar.bz2 gentoo-bsd-e100db567eafb82442c76ac8dbfeabf5fa3c84bc.zip |
Relayout the repo as a portage overlay.
Diffstat (limited to 'sys-netbsd')
36 files changed, 971 insertions, 0 deletions
diff --git a/sys-netbsd/netbsd-bin/Manifest b/sys-netbsd/netbsd-bin/Manifest new file mode 100644 index 0000000..a194cd0 --- /dev/null +++ b/sys-netbsd/netbsd-bin/Manifest @@ -0,0 +1,2 @@ +AUX netbsd-bin-5.0-Makefile.patch 452 RMD160 60c657ea7b6935f45fd019a91272524f9bda6a72 SHA1 6062c49cf32923e55fce281c63693ca9dcf0ba0e SHA256 6dbd00662f7266f60662b1e52caeaf36d79782dd8eaf76456872076d02da0b0c +EBUILD netbsd-bin-5.0.ebuild 1142 RMD160 f0b3da2fd3686c78337f3909e2898cf4b4abcf78 SHA1 9b7df7468b36e4001f0ea4b6da06d22e48bbee0f SHA256 cf7a9b013bf1c0f637b78331c267ce26fb4ca9c9e9719fef41009f60e875e364 diff --git a/sys-netbsd/netbsd-bin/files/netbsd-bin-5.0-Makefile.patch b/sys-netbsd/netbsd-bin/files/netbsd-bin-5.0-Makefile.patch new file mode 100644 index 0000000..8dd1cdc --- /dev/null +++ b/sys-netbsd/netbsd-bin/files/netbsd-bin-5.0-Makefile.patch @@ -0,0 +1,11 @@ +--- Makefile.orig 2009-08-15 01:01:44.000000000 +0200 ++++ Makefile 2009-08-15 01:01:56.000000000 +0200 +@@ -1,7 +1,7 @@ + # $NetBSD: Makefile,v 1.22 2007/12/31 15:31:24 ad Exp $ + # @(#)Makefile 8.1 (Berkeley) 5/31/93 + +-SUBDIR= cat chio chmod cp csh date dd df domainname echo ed expr hostname \ ++SUBDIR= cat chio chmod cp date dd df domainname echo expr hostname \ + kill ksh ln ls mkdir mt mv pax ps pwd rcp rcmd rm rmdir sh \ + sleep stty sync test + diff --git a/sys-netbsd/netbsd-bin/netbsd-bin-5.0.ebuild b/sys-netbsd/netbsd-bin/netbsd-bin-5.0.ebuild new file mode 100644 index 0000000..c108f5e --- /dev/null +++ b/sys-netbsd/netbsd-bin/netbsd-bin-5.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2009 Gentoo FounDation +# Distributed under the terms of the GNU General Public License v2 +# Gentoo/NetBSD bin base system +# Patrice Clement <charlieroot@free.fr> +inherit eutils netbsd + +DESCRIPTION="NetBSD 5.0 bin base system" +HOMEPAGE="http://cvsweb.netbsd.org" +SRC_URI="" +SLOT="0" +LICENCE="BSD" +KEYWORDS="~x86-nbsd" + +DEPEND=">=sys-netbsd/netbsd-src-5.0 + >=sys-netbsd/netbsd-cctools-5.0" + +src_unpack() { + cd ${NETBSD_SRC_DIR}/bin + netbsd_mk_prepatch + + # This patch will prevent csh and ed to be compiled and installed: + # these binaries are provided by Portage. + epatch "${FILESDIR}/${P}-Makefile.patch" +} + +src_compile() { + cd ${NETBSD_SRC_DIR}/bin + netbsd_src_compile cleandir + netbsd_src_compile dependall +} + +src_install() { + cd ${D} + for doc_dir in 1 8 + do + dodir usr/share/man/cat${doc_dir} + dodir usr/share/man/man${doc_dir} + dodir usr/share/man/html${doc_dir} + done + dodir bin + dodir usr/bin + dodir usr/share/doc/usd/04.csh + cd ${NETBSD_SRC_DIR}/bin + netbsd_src_install install + cd ${D} + find usr/share/man -type f -name "*.html"|xargs dohtml + rm -rf usr/share/man/html[1-9] +} diff --git a/sys-netbsd/netbsd-binutils/Manifest b/sys-netbsd/netbsd-binutils/Manifest new file mode 100644 index 0000000..be01c99 --- /dev/null +++ b/sys-netbsd/netbsd-binutils/Manifest @@ -0,0 +1 @@ +EBUILD netbsd-binutils-5.0.ebuild 1301 RMD160 ecd0823a990d44822b201b6916cc8f7935986a2d SHA1 b42861dd53343bfce2d5861b1ad39352ab2782fe SHA256 0bc0fe57eef23af2bd2b32bb0e6d5cfba6646c2d10b5aa09d7c18a4bd11f43f1 diff --git a/sys-netbsd/netbsd-binutils/netbsd-binutils-5.0.ebuild b/sys-netbsd/netbsd-binutils/netbsd-binutils-5.0.ebuild new file mode 100644 index 0000000..bb6a34c --- /dev/null +++ b/sys-netbsd/netbsd-binutils/netbsd-binutils-5.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# Gentoo/NetBSD GNU binutils +# Patrice Clement <charlieroot@free.fr> +inherit netbsd + +DESCRIPTION="NetBSD 5.0 GNU binutils" +HOMEPAGE="http://cvsweb.netbsd.org" +SRC_URI="" +SLOT="0" +LICENCE="BSD" +KEYWORDS="~x86-nbsd" + +DEPEND=">=sys-netbsd/netbsd-src-5.0 + >=sys-netbsd/netbsd-cctools-5.0 + >=sys-netbsd/netbsd-gcc-5.0 + >=sys-netbsd/netbsd-includes-5.0 + >=sys-netbsd/netbsd-libs-5.0" + +src_compile() { + cd ${NETBSD_SRC_DIR}/gnu/lib/libbfd + netbsd_src_compile cleandir + netbsd_src_compile dependall + cd ${NETBSD_SRC_DIR}/gnu/lib/libiberty + netbsd_src_compile cleandir + netbsd_src_compile dependall + cd ${NETBSD_SRC_DIR}/gnu/lib/libopcodes + netbsd_src_compile cleandir + netbsd_src_compile dependall + cd ${NETBSD_SRC_DIR}/gnu/usr.bin/binutils + netbsd_src_compile cleandir + netbsd_src_compile dependall +} + +src_install() { + cd ${D} + dodir usr/bin + dodir usr/share/info + dodir usr/share/man/cat1 + dodir usr/share/man/man1 + dodir usr/share/man/html1 + dodir usr/libdata/ldscripts + cd ${NETBSD_SRC_DIR}/gnu/usr.bin/binutils + netbsd_src_install install + cd ${D} + find usr/share/man -type f -name "*.html"|xargs dohtml + rm -rf usr/share/man/html[0-9] +} diff --git a/sys-netbsd/netbsd-cctools/Manifest b/sys-netbsd/netbsd-cctools/Manifest new file mode 100644 index 0000000..b9a51a6 --- /dev/null +++ b/sys-netbsd/netbsd-cctools/Manifest @@ -0,0 +1 @@ +EBUILD netbsd-cctools-5.0.ebuild 1090 RMD160 e9d66c923b7bb34833832ddf71804dc0bb440a86 SHA1 9c51a5a7041ec9660b89e28727177e4592021aa4 SHA256 f9dbb34505cf8d3773d6ab382af77741313131e0321aeb10d1186f6702e1b903 diff --git a/sys-netbsd/netbsd-cctools/netbsd-cctools-5.0.ebuild b/sys-netbsd/netbsd-cctools/netbsd-cctools-5.0.ebuild new file mode 100644 index 0000000..942e947 --- /dev/null +++ b/sys-netbsd/netbsd-cctools/netbsd-cctools-5.0.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# Gentoo/NetBSD cross-compiling tools needed to build, compile and install NetBSD system parts +# Patrice Clement <charlieroot@free.fr> +inherit netbsd + +DESCRIPTION="Build, compile and install tools to compile NetBSD 5.0 system." +HOMEPAGE="http://cvsweb.netbsd.org" +SRC_URI="" +SLOT="0" +LICENCE="BSD" +KEYWORDS="~x86-nbsd" + +DEPEND=">=sys-netbsd/netbsd-src-5.0" + +src_compile() { + # "dummy" make clean + cd ${NETBSD_SRC_DIR}/tools + netbsd_src_compile clean +} + +src_install() { + # Let's go inside NetBSD sources directory + cd ${NETBSD_SRC_DIR} + # If objects directory doesn't exist, we create it + if [ ! -d ${NETBSD_SRC_DIR}/objdir ]; then + dodir ${NETBSD_SRC_DIR}/objdir + fi + # We display some information before building tools + einfo "Cross-compiling tools will be compiled and installed in ${NETBSD_TOOLDIR} ..." + sleep 5 + ./build.sh -a i386 -m i386 -O ${NETBSD_SRC_DIR}/objdir -T ${NETBSD_TOOLDIR} tools || die "./build.sh tools failed" + einfo "Build finished." +} diff --git a/sys-netbsd/netbsd-etc/Manifest b/sys-netbsd/netbsd-etc/Manifest new file mode 100644 index 0000000..02b03e9 --- /dev/null +++ b/sys-netbsd/netbsd-etc/Manifest @@ -0,0 +1 @@ +EBUILD netbsd-etc-5.0.ebuild 952 RMD160 69b5f743b7da84bea8e65735198ca9a990a039eb SHA1 35117eea1fe53a2ee47d2966324ded04f95dc626 SHA256 aca07f7908b162bf82847f0dd7e1c8423941ab1f6fd025ca521b2d4746e1f40d diff --git a/sys-netbsd/netbsd-etc/netbsd-etc-5.0.ebuild b/sys-netbsd/netbsd-etc/netbsd-etc-5.0.ebuild new file mode 100644 index 0000000..8107107 --- /dev/null +++ b/sys-netbsd/netbsd-etc/netbsd-etc-5.0.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# Gentoo/NetBSD base system etc ebuild +# Patrice Clement <charlieroot@free.fr> +inherit netbsd + +DESCRIPTION="NetBSD 5.0 base system etc files" +HOMEPAGE="http://cvsweb.netbsd.org" +SRC_URI="" +SLOT="0" +LICENCE="BSD" +KEYWORDS="~x86-nbsd" + +DEPEND=">=sys-netbsd/netbsd-src-5.0" + +src_compile() { + cd ${NETBSD_SRC_DIR}/etc + netbsd_src_compile +} + +src_install() { + cd ${D} + for etc_dir in etc etc/atf etc/defaults etc/bluetooth etc/ssh etc/iscsi etc/mtree etc/namedb etc/mail etc/pam.d etc/powerd/scripts etc/rc.d etc/root etc/skel dev var/at var/db var/log var/msgs var/run var/games/hackdir var/games/larn var/cron/tabs var/crash root + do + dodir ${etc_dir} + done + cd ${NETBSD_SRC_DIR}/etc + # We don't want Postfix and SSL related etc files. + mymakeopts="${mymakeopts} MKCRYPTO=no MKPOSTFIX=no" + netbsd_src_install install-etc-files +} diff --git a/sys-netbsd/netbsd-gcc/Manifest b/sys-netbsd/netbsd-gcc/Manifest new file mode 100644 index 0000000..cb132e9 --- /dev/null +++ b/sys-netbsd/netbsd-gcc/Manifest @@ -0,0 +1 @@ +EBUILD netbsd-gcc-4.1.3.ebuild 1220 RMD160 eb17507a2bc4455693f0d83285d7cc223449c020 SHA1 d891940af87e2616519b7182718ac2f3c8f890b8 SHA256 4f27050166e75da7aa3526b55b16547d0d466ea787119a77f0264c0821bc588b diff --git a/sys-netbsd/netbsd-gcc/netbsd-gcc-4.1.3.ebuild b/sys-netbsd/netbsd-gcc/netbsd-gcc-4.1.3.ebuild new file mode 100644 index 0000000..5505107 --- /dev/null +++ b/sys-netbsd/netbsd-gcc/netbsd-gcc-4.1.3.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# Gentoo/NetBSD GNU Compiler Collection 4.1.3 ebuild +# Patrice Clement <charlieroot@free.fr> +inherit netbsd + +DESCRIPTION="The GNU Compiler Collection for NetBSD 5.0. Default supported languages frontend: C, C++, Objective-C." +HOMEPAGE="http://gcc.gnu.org" +SRC_URI="" +SLOT="0" +LICENCE="GPL" +KEYWORDS="~x86-nbsd" + +DEPEND=">=sys-netbsd/netbsd-src-5.0 + >=sys-netbsd/netbsd-cctools-5.0" + +src_compile() { + cd ${NETBSD_SRC_DIR}/tools/compat + netbsd_src_compile cleandir + netbsd_src_compile dependall + + # This file is needed by gcc during compilation. + cp ${NETBSD_SRC_DIR}/gnu/lib/libgcc4/libgcov/arch/`uname -m`/gcov-iov.h ${NETBSD_SRC_DIR}/gnu/dist/gcc4/gcc + cd ${NETBSD_SRC_DIR}/gnu/usr.bin/gcc4 + netbsd_src_compile cleandir + netbsd_src_compile dependall +} + +src_install() { + cd ${D} + dodir usr/bin + dodir usr/libexec + dodir usr/share/man/man1 + dodir usr/share/man/cat1 + dodir usr/share/man/html1 + dodir usr/share/info + cd ${NETBSD_SRC_DIR}/gnu/usr.bin/gcc4 + netbsd_src_install install + cd ${D} + find usr/share/man -type f -name "*.html"|xargs dohtml + rm -rf usr/share/man/html[1-9] +} diff --git a/sys-netbsd/netbsd-includes/Manifest b/sys-netbsd/netbsd-includes/Manifest new file mode 100644 index 0000000..ed4d0c8 --- /dev/null +++ b/sys-netbsd/netbsd-includes/Manifest @@ -0,0 +1 @@ +EBUILD netbsd-includes-5.0.ebuild 979 RMD160 44e393db0740b035c5ba3b369e33ebc5e0b6e0f7 SHA1 c155e767e86a8b97526851a401efd2433b13be30 SHA256 0858242ea22529d5b0b52899eef13cc8407eaa4586bfb738ef7dfc88b67d74b9 diff --git a/sys-netbsd/netbsd-includes/netbsd-includes-5.0.ebuild b/sys-netbsd/netbsd-includes/netbsd-includes-5.0.ebuild new file mode 100644 index 0000000..14ed92c --- /dev/null +++ b/sys-netbsd/netbsd-includes/netbsd-includes-5.0.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# Gentoo/NetBSD base system include headers +# Patrice Clement <charlieroot@free.fr> +inherit netbsd bsdmk + +DESCRIPTION="Base system include files (/usr/include) for NetBSD 5.0" +HOMEPAGE="http://cvsweb.netbsd.org" +SRC_URI="" +SLOT="0" +LICENCE="BSD" +KEYWORDS="~x86-nbsd" + +DEPEND=">=sys-netbsd/netbsd-src-5.0 + >=sys-netbsd/netbsd-cctools-5.0" + +src_compile() { + cd ${NETBSD_SRC_DIR}/include + netbsd_src_compile dependall +} + +src_install() { + cd ${D} + dodir usr/include + for inc_dir in arpa protocols rpcsvc ssp rpc prop atf-c atf-c++ readline rump objc g++ g++/backward g++/ext g++/bits g++/debug g++/tr1 + do + dodir usr/include/${inc_dir} + done + dodir usr/share/tmac + cd ${NETBSD_SRC_DIR} + # Don't need SSL, PAM and LDAP related include headers. + mymakeopts="${mymakeopts} MKCRYPTO=no MKKERBEROS=no MKPAM=no MKLDAP=no" + netbsd_src_install includes +} diff --git a/sys-netbsd/netbsd-libexec/Manifest b/sys-netbsd/netbsd-libexec/Manifest new file mode 100644 index 0000000..964cd24 --- /dev/null +++ b/sys-netbsd/netbsd-libexec/Manifest @@ -0,0 +1 @@ +EBUILD netbsd-libexec-5.0.ebuild 1361 RMD160 c4e158b1b5c3af9a60c05120b2edfd11eac5c5b3 SHA1 cb8f861a6e4385f00b57f475225e04c4a40c48f6 SHA256 27e85f918aab1b1e017be68cde871b5036db5defe7052a3b41a30f68777213fe diff --git a/sys-netbsd/netbsd-libexec/netbsd-libexec-5.0.ebuild b/sys-netbsd/netbsd-libexec/netbsd-libexec-5.0.ebuild new file mode 100644 index 0000000..05fe5d8 --- /dev/null +++ b/sys-netbsd/netbsd-libexec/netbsd-libexec-5.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# Gentoo/NetBSD base system libexec ebuild +# Patrice Clement <charlieroot@free.fr> +inherit netbsd + +DESCRIPTION="NetBSD 5.0 libexec binaries" +HOMEPAGE="http://cvsweb.netbsd.org" +SRC_URI="" +SLOT="0" +LICENCE="BSD" +KEYWORDS="~x86-nbsd" + +DEPEND=">=sys-netbsd/netbsd-src-5.0 + >=sys-netbsd/netbsd-cctools-5.0" + +src_compile() { + # ld_elf.so library is linked against libc, we have to compile it before + cd ${NETBSD_SRC_DIR}/lib/libc + netbsd_src_compile cleandir + netbsd_src_compile dependall + # same for telnetd + cd ${NETBSD_SRC_DIR}/lib/libtelnet + netbsd_src_compile cleandir + netbsd_src_compile dependall + # and libvers + cd ${NETBSD_SRC_DIR}/lib/libvers + netbsd_src_compile cleandir + netbsd_src_compile dependall + # now let's built the whole libexec binaries + cd ${NETBSD_SRC_DIR}/libexec + netbsd_src_compile cleandir + netbsd_src_compile dependall +} + +src_install() { + cd ${D} + for doc_dir in 1 5 8 + do + dodir usr/share/man/cat${doc_dir} + dodir usr/share/man/man${doc_dir} + dodir usr/share/man/html${doc_dir} + done + dodir libexec + dodir usr/libexec/atrun + cd ${NETBSD_SRC_DIR}/libexec + netbsd_src_install install + cd ${D} + find usr/share/man -type f -name "*.html"|xargs dohtml + rm -rf usr/share/man/html[1-9] +} diff --git a/sys-netbsd/netbsd-libs/Manifest b/sys-netbsd/netbsd-libs/Manifest new file mode 100644 index 0000000..ae7d54b --- /dev/null +++ b/sys-netbsd/netbsd-libs/Manifest @@ -0,0 +1,2 @@ +AUX netbsd-libs-5.0-Makefile.patch 1607 RMD160 d3df324d7c4510adb9eef9ac7a56b6dddc60edbd SHA1 1612163ae12e4be11caa69e431e69d3c0a28e67d SHA256 4d44ca2f1df54c51f07f1efdf95a9660427b090ac9e87aa873573d82c2068e12 +EBUILD netbsd-libs-5.0.ebuild 2502 RMD160 4e470cad54239436c9307ba660c382f25f1724b9 SHA1 d0bcc4fdc10a899c214be59e634194e198aeb8f9 SHA256 c8c550d53947be6a10883f85c2731555c476c37e5f0a5b9b0e879926bfd5dc2e diff --git a/sys-netbsd/netbsd-libs/files/netbsd-libs-5.0-Makefile.patch b/sys-netbsd/netbsd-libs/files/netbsd-libs-5.0-Makefile.patch new file mode 100644 index 0000000..b4c566b --- /dev/null +++ b/sys-netbsd/netbsd-libs/files/netbsd-libs-5.0-Makefile.patch @@ -0,0 +1,48 @@ +--- Makefile.orig 2009-07-09 16:34:44.000000000 +0200 ++++ Makefile 2009-07-10 13:54:06.000000000 +0200 +@@ -4,19 +4,19 @@ + .include <bsd.own.mk> + + SUBDIR= csu libc .WAIT libarch \ +- libbsdmalloc libbluetooth libbz2 \ ++ libbsdmalloc libbluetooth \ + libcompat libcrypt \ +- libcurses libevent libintl libkvm libl libm \ +- libossaudio libpcap libpci libpmc libposix libprop libpthread \ ++ libevent libintl libkvm libm \ ++ libossaudio libpci libpmc libposix libprop libpthread \ + libpthread_dbg libpuffs libresolv librmt librpcsvc librt libsdp \ +- libterm libusbhid libutil libwrap liby libz ++ libusbhid libutil liby + + .if (${MKATF} != "no") + SUBDIR+= libatf-c libatf-c++ + .endif + + # libform and libmenu need libcurses +-SUBDIR+= .WAIT libform libmenu ++#SUBDIR+= .WAIT libform libmenu + + .if (${MKSKEY} != "no") + SUBDIR+= libskey +@@ -65,9 +65,9 @@ + #==================== 1st library dependency barrier ==================== + SUBDIR+= .WAIT + +-SUBDIR+= libedit # depends on libterm ++#SUBDIR+= libedit # depends on libterm + +-SUBDIR+= libmagic # depends on libz ++#SUBDIR+= libmagic # depends on libz + + SUBDIR+= libradius # depends on libcrypto - only if ${MKCRYPTO} + +@@ -92,7 +92,7 @@ + # XXX dependency ordering requires considerable investigation. + # XXX Please preserve the order below so we know the order ISC links + # XXX them in in their Makefiles. +-SUBDIR+= libbind9 libdns liblwres libisccfg libisccc libisc # dep. libpthread ++#SUBDIR+= libbind9 libdns liblwres libisccfg libisccc libisc # dep. libpthread + + #==================== 2nd library dependency barrier ==================== + SUBDIR+= .WAIT diff --git a/sys-netbsd/netbsd-libs/netbsd-libs-5.0.ebuild b/sys-netbsd/netbsd-libs/netbsd-libs-5.0.ebuild new file mode 100644 index 0000000..e990ede --- /dev/null +++ b/sys-netbsd/netbsd-libs/netbsd-libs-5.0.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# Gentoo/NetBSD base system libraries +# Patrice Clement <charlieroot@free.fr> +inherit eutils netbsd + +DESCRIPTION="NetBSD 5.0 base system libraries" +HOMEPAGE="http://cvsweb.netbsd.org" +SRC_URI="" +SLOT="0" +LICENCE="BSD" +KEYWORDS="~x86-nbsd" + +DEPEND=">=sys-netbsd/netbsd-src-5.0 + >=sys-netbsd/netbsd-cctools-5.0" + +src_unpack() { + cd ${NETBSD_SRC_DIR}/lib + netbsd_mk_prepatch + + # This patch prevents these libs to be compiled and installed: + # libbz2, libform, libcurses, libncurses, libmenu, libterm, + # libz, libmagic, libwrap, libpcap, libcom_err, libedit, libl, + # BIND related librairies, and all MK related libraries + # I'll disable later. + epatch ${FILESDIR}/${P}-Makefile.patch +} + +src_compile() { + # First, we have to compile GNU librairies. + cd ${NETBSD_SRC_DIR}/gnu/lib + netbsd_src_compile cleandir + netbsd_src_compile dependall + + # And then, NetBSD librairies. + # Here is a workaround.. why do we need it ? + # Some NetBSD makefiles use ${S} as a variable to set some global paths: + # as example, ${S} is used here to guess the targeted arch in order + # to create symlinks to right includes directories. + # We MUST unset ${S} before calling make as it also used in Portage as a path + # to temporary build directory: symlinks are created inside this dir, + # instead of NetBSD sources directory, which is not what we want. + __S=${S} + export __S + unset S + cd ${NETBSD_SRC_DIR}/lib + netbsd_src_compile cleandir + + # Here we disable: + # - cryptographic support + # - LDAP support + # - PAM support + # - Kerberos support + # Theses libraries are provided by Portage and don't need to be built. + mymakeopts="${mymakeopts} MKCRYPTO=no MKPAM=no MKLDAP=no MKKERBEROS=no" + netbsd_src_compile dependall + + S=${__S} + export S + unset __S +} + +src_install() { + cd ${D} + dodir lib + dodir libdata + dodir usr/lib/i18n + dodir usr/lib/security + dodir usr/libdata + dodir var/db + dodir usr/share/misc + dodir usr/share/info + netbsd_create_dirs usr/share/nls + for doc_dir in 1 2 3 5 7 8 9 + do + dodir usr/share/man/cat${doc_dir} + dodir usr/share/man/man${doc_dir} + dodir usr/share/man/html${doc_dir} + done + cd ${NETBSD_SRC_DIR}/gnu/lib + netbsd_src_install install + cd ${NETBSD_SRC_DIR}/lib + netbsd_src_install install + cd ${D} + find usr/share/man -type f -name "*.html"|xargs dohtml + rm -rf usr/share/man/html[1-9] + rm -rf usr/lib/security +} diff --git a/sys-netbsd/netbsd-sbin/Manifest b/sys-netbsd/netbsd-sbin/Manifest new file mode 100644 index 0000000..f95b498 --- /dev/null +++ b/sys-netbsd/netbsd-sbin/Manifest @@ -0,0 +1,2 @@ +AUX netbsd-sbin-5.0-Makefile.patch 546 RMD160 6b9759ba5c268cf17855b2649dc51b4e728db60c SHA1 d0c4a3f652d69f07f882d24b4ad7c916c3615498 SHA256 f87d71986b6a0a03e48f36caa9225c7dda07e0a41d6feb4a3b4f484ba1b4ecae +EBUILD netbsd-sbin-5.0.ebuild 1237 RMD160 a2a57444c47ab58215ccb1345c573094806db481 SHA1 54e861dc863ebd02069bc11a6bad816070ff5199 SHA256 2bc5684c95a783aa847bbdf5228577d0eba6e0cc4588f7f1a5be0c5ea10d4aad diff --git a/sys-netbsd/netbsd-sbin/files/netbsd-sbin-5.0-Makefile.patch b/sys-netbsd/netbsd-sbin/files/netbsd-sbin-5.0-Makefile.patch new file mode 100644 index 0000000..77195e3 --- /dev/null +++ b/sys-netbsd/netbsd-sbin/files/netbsd-sbin-5.0-Makefile.patch @@ -0,0 +1,11 @@ +--- Makefile.orig 2009-07-08 17:42:04.000000000 +0200 ++++ Makefile 2009-07-08 17:47:06.000000000 +0200 +@@ -10,7 +10,7 @@ + disklabel dkctl dkscan_bsdlabel dmesg \ + drvctl edlabel fastboot fdisk fsck fsirand gpt ifconfig init ldconfig \ + mbrlabel mknod modload modunload mount newbtconf nologin \ +- pdisk ping pppoectl raidctl reboot rcorder rndctl route routed \ ++ pdisk ping pppoectl raidctl reboot rndctl route routed \ + savecore scan_ffs scsictl shutdown slattach svhlabel swapctl sysctl \ + ttyflags umount veriexecctl wdogctl wsconsctl + diff --git a/sys-netbsd/netbsd-sbin/netbsd-sbin-5.0.ebuild b/sys-netbsd/netbsd-sbin/netbsd-sbin-5.0.ebuild new file mode 100644 index 0000000..75e40ab --- /dev/null +++ b/sys-netbsd/netbsd-sbin/netbsd-sbin-5.0.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2009 Gentoo FounDation +# Distributed under the terms of the GNU General Public License v2 +# Gentoo/NetBSD sbin base system +# Patrice Clement <charlieroot@free.fr> +inherit eutils netbsd + +DESCRIPTION="NetBSD 5.0 sbin base system" +HOMEPAGE="http://cvsweb.netbsd.org" +SRC_URI="" +SLOT="0" +LICENCE="BSD" +KEYWORDS="~x86-nbsd" + +DEPEND=">=sys-netbsd/netbsd-src-5.0 + >=sys-netbsd/netbsd-cctools-5.0" + +src_unpack() { + cd ${NETBSD_SRC_DIR}/sbin + netbsd_mk_prepatch + + # This patch avoid rcorder to be compiled and installed. + epatch "${FILESDIR}/${P}-Makefile.patch" +} + +src_compile() { + cd ${NETBSD_SRC_DIR}/sbin + netbsd_src_compile cleandir + netbsd_src_compile dependall +} + +src_install() { + cd ${D} + for doc_dir in 5 8 + do + dodir usr/share/man/cat${doc_dir} + dodir usr/share/man/man${doc_dir} + dodir usr/share/man/html${doc_dir} + done + dodir sbin + dodir usr/sbin + dodir usr/share/doc/smm/03.fsck_ffs + dodir usr/share/examples/mount_portal + dodir usr/share/examples/smbfs + cd ${NETBSD_SRC_DIR}/sbin + netbsd_src_install install + cd ${D} + find usr/share/man -type f -name "*.html"|xargs dohtml + rm -rf usr/share/man/html[1-9] +} diff --git a/sys-netbsd/netbsd-share/Manifest b/sys-netbsd/netbsd-share/Manifest new file mode 100644 index 0000000..ab05610 --- /dev/null +++ b/sys-netbsd/netbsd-share/Manifest @@ -0,0 +1,2 @@ +AUX netbsd-share-5.0-Makefile.patch 450 RMD160 63091665a897dd7e8d227307e185f3439e779e27 SHA1 a9563b4cb4cd981f1def89298936ce77785fbe29 SHA256 b5a0361e74ca91f8d833ce40a0b72b195d202695a01191bc9a38fbbf6716df23 +EBUILD netbsd-share-5.0.ebuild 1222 RMD160 97255f41aece3b8bdcdfb0888c877c727913202b SHA1 01385c01e968f798bec4413aca40adc3ff591ecd SHA256 f7ae95b6b41274de16693048b4f3e2ba00b5e473c20f12b0b54ae00774e2d426 diff --git a/sys-netbsd/netbsd-share/files/netbsd-share-5.0-Makefile.patch b/sys-netbsd/netbsd-share/files/netbsd-share-5.0-Makefile.patch new file mode 100644 index 0000000..bf65f5c --- /dev/null +++ b/sys-netbsd/netbsd-share/files/netbsd-share-5.0-Makefile.patch @@ -0,0 +1,13 @@ +--- Makefile.orig 2009-08-06 17:03:37.000000000 +0200 ++++ Makefile 2009-08-06 17:10:21.000000000 +0200 +@@ -7,8 +7,8 @@ + + .if ${MKSHARE} != "no" || \ + make(clean) || make(cleandir) || make(distclean) || make(obj) +-SUBDIR= atf dict doc examples legal man me misc mk \ +- tabset termcap tmac wscons xml xsl zoneinfo ++SUBDIR= atf dict doc examples legal me misc mk \ ++ tmac wscons xml xsl zoneinfo + .if ${MKNLS} != "no" + SUBDIR+=i18n locale nls + .endif diff --git a/sys-netbsd/netbsd-share/netbsd-share-5.0.ebuild b/sys-netbsd/netbsd-share/netbsd-share-5.0.ebuild new file mode 100644 index 0000000..ee4579c --- /dev/null +++ b/sys-netbsd/netbsd-share/netbsd-share-5.0.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2009 Gentoo FounDation +# Distributed under the terms of the GNU General Public License v2 +# Gentoo/NetBSD share base system +# Patrice Clement <charlieroot@free.fr> +inherit eutils netbsd + +DESCRIPTION="NetBSD 5.0 share base system" +HOMEPAGE="http://cvsweb.netbsd.org" +SRC_URI="" +SLOT="0" +LICENCE="BSD" +KEYWORDS="~x86-nbsd" + +DEPEND=">=sys-netbsd/netbsd-src-5.0 + >=sys-netbsd/netbsd-cctools-5.0" + +src_unpack() { + cd ${NETBSD_SRC_DIR}/share + netbsd_mk_prepatch + + # This patch prevents man and termcap directories to be installed. + epatch "${FILESDIR}/${P}-Makefile.patch" +} + +src_compile() { + cd ${NETBSD_SRC_DIR}/share + netbsd_src_compile cleandir + netbsd_src_compile dependall +} + +src_install() { + cd ${D} + # Strange behaviour ? Same as with netbsd-libs. This time, we can't unset + # FILESDIR (read-only variable). Just create the dir and remove it later. + dodir ./${FILESDIR} + netbsd_create_dirs usr/share + cd ${NETBSD_SRC_DIR}/share + netbsd_src_install install + cd ${D} + netbsd_clean_dirs ./ + # Here! + find ./${FILESDIR} -type f -exec mv {} usr/share/doc/smm \; + rm -rf ./${FILESDIR} + find usr/share/man -type f -name '*.html'|xargs dohtml + rm -rf usr/share/man/html[1-9] +} diff --git a/sys-netbsd/netbsd-sources/Manifest b/sys-netbsd/netbsd-sources/Manifest new file mode 100644 index 0000000..b3e228f --- /dev/null +++ b/sys-netbsd/netbsd-sources/Manifest @@ -0,0 +1,2 @@ +AUX netbsd-sources-5.0-GENERIC.patch 1470 RMD160 88c276cbe8b4f5aced392f93540358ff9d72e35c SHA1 b7f24b0183267d10ce6cdfebe77601ec5da87549 SHA256 42edcfa9a0278219194f910aa4dcc5d079e3f3d5a7dc8dd23730a1e8620e2b5d +EBUILD netbsd-sources-5.0.ebuild 2117 RMD160 32c400b749b53249e952dc17334adb8f9348f3d9 SHA1 23249eb29215267a269a8ccaff68a10a0ef28ec5 SHA256 a0f1921b17872b06fc4355e9ccae14c920fee419baed3088d6f9153c5681cadb diff --git a/sys-netbsd/netbsd-sources/files/netbsd-sources-5.0-GENERIC.patch b/sys-netbsd/netbsd-sources/files/netbsd-sources-5.0-GENERIC.patch new file mode 100644 index 0000000..c0d14dc --- /dev/null +++ b/sys-netbsd/netbsd-sources/files/netbsd-sources-5.0-GENERIC.patch @@ -0,0 +1,34 @@ +--- GENERIC_ORIG 2009-07-17 11:41:51.000000000 +0200 ++++ GENERIC 2009-07-17 12:26:51.000000000 +0200 +@@ -26,8 +26,9 @@ + + maxusers 64 # estimated number of users + +-makeoptions CPUFLAGS="-march=i486 -mtune=pentiumpro" # Assume at least 486, +- # tune for more modern ++# Improved version of Intel Pentium4 CPU with MMX, SSE, SSE2 and SSE3 instruction set support. ++# See http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html for more flags ++makeoptions CPUFLAGS="-march=prescott -mtune=prescott" + + # CPU-related options. + options VM86 # virtual 8086 emulation +@@ -242,7 +243,7 @@ + + # These options enable verbose messages for several subsystems. + # Warning, these may compile large string tables into the kernel! +-#options ACPIVERBOSE # verbose ACPI device autoconfig messages ++options ACPIVERBOSE # verbose ACPI device autoconfig messages + #options EISAVERBOSE # verbose EISA device autoconfig messages + #options MIIVERBOSE # verbose PHY autoconfig messages + #options PCIVERBOSE # verbose PCI device autoconfig messages +@@ -1484,8 +1485,8 @@ + pseudo-device bridge # simple inter-network bridging + #options BRIDGE_IPF # bridge uses IP/IPv6 pfil hooks too + pseudo-device agr # IEEE 802.3ad link aggregation +-#pseudo-device pf # PF packet filter +-#pseudo-device pflog # PF log if ++pseudo-device pf # PF packet filter ++pseudo-device pflog # PF log if + # srt is EXPERIMENTAL + #pseudo-device srt # source-address-based routing + diff --git a/sys-netbsd/netbsd-sources/netbsd-sources-5.0.ebuild b/sys-netbsd/netbsd-sources/netbsd-sources-5.0.ebuild new file mode 100644 index 0000000..bfea98b --- /dev/null +++ b/sys-netbsd/netbsd-sources/netbsd-sources-5.0.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# Gentoo/NetBSD GENERIC kernel ebuild +# Patrice Clement <charlieroot@free.fr> +inherit eutils netbsd + +DESCRIPTION="NetBSD 5.0 kernel ebuild (GENERIC)" +HOMEPAGE="http://cvsweb.netbsd.org" +SRC_URI="" +SLOT="0" +LICENCE="BSD" +KEYWORDS="~x86-nbsd" + +DEPEND=">=sys-netbsd/netbsd-src-5.0 + >=sys-netbsd/netbsd-cctools-5.0" + +src_unpack() { + # Move to kernel configuration files directory + cd ${NETBSD_SRC_DIR}/sys/arch/i386/conf + + # Backup original GENERIC kernel configuration file + if [ ! -e GENERIC_ORIG ]; then + cp GENERIC GENERIC_ORIG + else + cp GENERIC_ORIG GENERIC + fi + + # This patch: + # - changes march & mtune GCC compilation flags to prescott + # - enable ACPI verbosity + # - enable kernel built-in pf device (no need to load it through LKM) + epatch ${FILESDIR}/${P}-GENERIC.patch + + # Generate kernel directory data structure + einfo "Generating kernel directory data structure..." + ${NETBSD_TOOLDIR}/bin/nbconfig GENERIC + einfo "OK!" + + # Move to GENERIC kernel data directory + cd ${NETBSD_SRC_DIR}/sys/arch/i386/compile/GENERIC + + # Clean directory + einfo "Cleaning GENERIC kernel directory..." + netbsd_src_compile clean + einfo "OK!" + + # Create kernel dependencies + einfo "Creating kernel dependencies..." + netbsd_src_compile depend + einfo "OK!" +} + +src_compile() { + # Compile kernel + einfo "Starting kernel compilation..." + cd ${NETBSD_SRC_DIR}/sys/arch/i386/compile/GENERIC + netbsd_src_compile all + einfo "Kernel compilation finished." +} + +pkg_preinst() { + # Create a backup of existing kernel, which should be named "netbsd" by default. + if [ -e ${ROOT}/netbsd ]; then + einfo "Create a backup of existing kernel..." + mv ${ROOT}/netbsd ${ROOT}/netbsd.old + einfo "OK!" + fi +} + +src_install() { + # Kernel will be installed in ${NETBSD_ROOT} directory, called "netbsd", with 755 rights. + cd ${NETBSD_SRC_DIR}/sys/arch/i386/compile/GENERIC + insinto ${NETBSD_ROOT} + insopts -m0755 + einfo 'Installing new compiled kernel...' + doins netbsd + einfo 'OK!' +} diff --git a/sys-netbsd/netbsd-src/Manifest b/sys-netbsd/netbsd-src/Manifest new file mode 100644 index 0000000..d4654b9 --- /dev/null +++ b/sys-netbsd/netbsd-src/Manifest @@ -0,0 +1 @@ +EBUILD netbsd-src-5.0.ebuild 395 RMD160 b6343f3b0ca6c8abcb8f0ab988eddf6773ed7183 SHA1 b4e419111c6345c86ce76331fa6c131a6c2b4ae5 SHA256 12a52c5697b1415329a18b5a217ed47d2520e54b20a3c35482e766e3fd6425d6 diff --git a/sys-netbsd/netbsd-src/netbsd-src-5.0.ebuild b/sys-netbsd/netbsd-src/netbsd-src-5.0.ebuild new file mode 100644 index 0000000..957fba0 --- /dev/null +++ b/sys-netbsd/netbsd-src/netbsd-src-5.0.ebuild @@ -0,0 +1,17 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# Gentoo/NetBSD CVS sources ebuild +# Patrice Clement <charlieroot@free.fr> +inherit netbsd + +DESCRIPTION="NetBSD 5.0 CVS sources" +HOMEPAGE="http://cvsweb.netbsd.org" +SRC_URI="" +SLOT="0" +LICENCE="BSD" +KEYWORDS="~x86-nbsd" + +src_unpack() { + # Simply fetch sources + netbsd_src_unpack +} diff --git a/sys-netbsd/netbsd-ubin/Manifest b/sys-netbsd/netbsd-ubin/Manifest new file mode 100644 index 0000000..97d7e94 --- /dev/null +++ b/sys-netbsd/netbsd-ubin/Manifest @@ -0,0 +1,3 @@ +AUX netbsd-ubin-5.0-Makefile-gnu.patch 539 RMD160 f884f2f9015cd73d11ed0d8f0fb063e3aef0388c SHA1 0eed26ceeebaf75f5cc1f375fa9af3153923b6ca SHA256 c7015e96f72c2d040a3b14187cadec8a59589c195e1dfa3441ca2208597d0d2f +AUX netbsd-ubin-5.0-Makefile.patch 2129 RMD160 0078b8274d99ca1a353ff5e10f4bbf6c3cceab8f SHA1 09cebad22fbb877e97e527fe80c30e7eee18a823 SHA256 d9000eb723212cfe5d79369a0c8c4d5005f86e169aeb3e81049887e3171dc8a4 +EBUILD netbsd-ubin-5.0.ebuild 2642 RMD160 75568957ae327b8f4f043d814ce6588d528735f9 SHA1 36cebaccb563232fab7d1e8e086e565715cad3e2 SHA256 3b82cea6c91ca7bf43295757abdd30ef8ffd506f2749323ab84872ece601940d diff --git a/sys-netbsd/netbsd-ubin/files/netbsd-ubin-5.0-Makefile-gnu.patch b/sys-netbsd/netbsd-ubin/files/netbsd-ubin-5.0-Makefile-gnu.patch new file mode 100644 index 0000000..d29ac51 --- /dev/null +++ b/sys-netbsd/netbsd-ubin/files/netbsd-ubin-5.0-Makefile-gnu.patch @@ -0,0 +1,25 @@ +--- Makefile.orig 2009-08-11 18:54:47.000000000 +0200 ++++ Makefile 2009-08-11 19:00:18.000000000 +0200 +@@ -3,7 +3,7 @@ + # for OBJECT_FMT + .include <bsd.own.mk> + +-SUBDIR+= bc ++#SUBDIR+= bc + .if ${MKBINUTILS} != "no" + SUBDIR+= binutils + .endif +@@ -11,10 +11,9 @@ + .if ${MKCVS} != "no" + SUBDIR+= xcvs + .endif +-SUBDIR+= dc diffutils gkermit grep +-SUBDIR+= groff rcs send-pr texinfo +- +-SUBDIR+= gettext ++#SUBDIR+= dc diffutils grep ++#SUBDIR+= groff rcs texinfo gettext ++SUBDIR+= gkermit send-pr + + .if ${MKGDB} != "no" + .if ${HAVE_GDB} == "6" diff --git a/sys-netbsd/netbsd-ubin/files/netbsd-ubin-5.0-Makefile.patch b/sys-netbsd/netbsd-ubin/files/netbsd-ubin-5.0-Makefile.patch new file mode 100644 index 0000000..05f9764 --- /dev/null +++ b/sys-netbsd/netbsd-ubin/files/netbsd-ubin-5.0-Makefile.patch @@ -0,0 +1,39 @@ +--- Makefile.orig 2008-10-29 17:49:33.000000000 +0100 ++++ Makefile 2009-08-15 01:27:14.000000000 +0200 +@@ -5,26 +5,26 @@ + + SUBDIR= apply apropos asa at audio awk \ + banner basename biff bthset btkey btpin \ +- bzip2 bzip2recover cal calendar cap_mkdb cdplay \ +- checknr chflags chpass cksum cmp col colcrt colrm \ +- column comm compress config crontab crunch csplit ctags cut \ ++ cal calendar cap_mkdb cdplay \ ++ checknr chflags chpass cksum col colcrt colrm \ ++ column comm compress config crunch csplit ctags cut \ + deroff db dirname du \ + eject elf2aout elf2ecoff env error expand extattr \ +- false fdformat fgen file find finger fmt fold fpr from \ ++ false fdformat fgen find finger fmt fold fpr from \ + fsplit fstat ftp gcore genassym gencat getconf getent getopt gprof \ +- gzip head hexdump iconv id indent innetgr ipcrm ipcs join jot \ +- kdump ktrace ktruss lam last lastcomm ldd leave less \ +- lex locale locate lock logger login logname look lorder m4 \ ++ head hexdump iconv id indent innetgr ipcrm ipcs join jot \ ++ kdump ktrace ktruss lam last lastcomm ldd leave \ ++ locale locate lock logger login logname look lorder m4 \ + machine mail make man menuc mesg midiplay mixerctl mkcsmapper \ + mkdep mkesdb mkfifo mklocale mkstr mktemp moduli msgc msgs \ + netgroup netstat newgrp newsyslog nfsstat nice nl nohup nvi \ + pagesize passwd paste patch pathchk pkill pmap pmc pr \ + printenv printf progress pwhash qsubst quota radioctl rdist \ + renice rev revoke rfcomm_sppd rlogin rpcgen rpcinfo rs rsh rup \ +- ruptime rusers rwall rwho script sdiff sdpquery sed seq shar shlock \ ++ ruptime rusers rwall rwho script sdpquery sed seq shar shlock \ + showmount shuffle sockstat soelim sort spell split stat su systat \ +- tail talk tcopy tee telnet tftp time tip tn3270 touch tput \ +- tr true tset tsort tty ul uname unexpand unifdef \ ++ tail talk tcopy tee telnet tftp time tip tn3270 touch \ ++ tr true tsort tty ul uname unexpand unifdef \ + uniq units unvis usbhidaction usbhidctl users utoppya \ + uudecode uuencode uuidgen vacation vgrind vis vmstat vndcompress w \ + wall wc what whatis whereis who whois window \ diff --git a/sys-netbsd/netbsd-ubin/netbsd-ubin-5.0.ebuild b/sys-netbsd/netbsd-ubin/netbsd-ubin-5.0.ebuild new file mode 100644 index 0000000..dfda4a6 --- /dev/null +++ b/sys-netbsd/netbsd-ubin/netbsd-ubin-5.0.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# Gentoo/NetBSD usr/bin base system +# Patrice Clement <charlieroot@free.fr> +inherit eutils netbsd + +DESCRIPTION="NetBSD 5.0 usr/bin base system" +HOMEPAGE="http://cvsweb.netbsd.org" +SRC_URI="" +SLOT="0" +LICENCE="BSD" +KEYWORDS="~x86-nbsd" + +DEPEND=">=sys-netbsd/netbsd-src-5.0 + >=sys-netbsd/netbsd-cctools-5.0 + >=sys-netbsd/netbsd-libs-5.0" + +src_unpack() { + cd ${NETBSD_SRC_DIR}/usr.bin + netbsd_mk_prepatch + + # This patch prevents, in order, these binaries to be compiled and installed: + # cmp, bzip2, bzip2recover, crontab, gzip, file, less, lex, sdiff, tset, tput, clear. + epatch ${FILESDIR}/${P}-Makefile.patch + + cd ${NETBSD_SRC_DIR}/gnu/usr.bin + netbsd_mk_prepatch + + # This patch prevents, in order, these GNU binaries to be compiled and installed: + # bc, dc, diffutils (diff, diff3, sdiff), gettext, grep, groff, rcs, texinfo. + epatch ${FILESDIR}/${P}-Makefile-gnu.patch +} + +src_compile() { + # Clean objects. + cd ${NETBSD_SRC_DIR}/usr.bin + netbsd_src_compile cleandir + + # If objects in aout and elf32 aren't compiled before compiling ldd, + # the whole process will result in an error. + cd ${NETBSD_SRC_DIR}/usr.bin/ldd/aout + netbsd_src_compile all + cd ${NETBSD_SRC_DIR}/usr.bin/ldd/elf32 + netbsd_src_compile all + + # Some binaries are linked with these libraries. + # They have to be compiled before compilation and linking process. + cd ${NETBSD_SRC_DIR}/lib/libtelnet + netbsd_src_compile cleandir + netbsd_src_compile all + cd ${NETBSD_SRC_DIR}/lib/libvers + netbsd_src_compile cleandir + netbsd_src_compile all + + cd ${NETBSD_SRC_DIR}/usr.bin + + # Don't need CVS, Kerberos, cryptographic, PAM and YP binaries. + mymakeopts="${mymakeopts} MKCVS=no MKKERBEROS=no MKCRYPTO=no MKYP=no MKPAM=no USE_YP=no" + + # ubin compilation starts here. + netbsd_src_compile dependall +} + +src_install() { + cd ${D} + for doc_dir in 1 5 7 8 + do + dodir usr/share/man/cat${doc_dir} + dodir usr/share/man/man${doc_dir} + dodir usr/share/man/html${doc_dir} + done + netbsd_create_dirs usr/share/doc/usd + netbsd_create_dirs usr/share/doc/psd + dodir usr/bin + dodir usr/sbin + dodir usr/libexec + dodir usr/share/atf + dodir usr/share/misc + dodir usr/share/info + dodir usr/share/tmac + dodir usr/libdata/lint + dodir usr/lib/pkgconfig + dodir usr/share/calendar + dodir usr/share/nvi/catalog + dodir usr/share/dict/special + cd ${NETBSD_SRC_DIR}/usr.bin + netbsd_src_install install + cd ${D} + netbsd_clean_dirs . + find usr/share/man -type f -name "*.html"|xargs dohtml + rm -rf usr/share/man/html[1-9] +} diff --git a/sys-netbsd/netbsd-usbin/Manifest b/sys-netbsd/netbsd-usbin/Manifest new file mode 100644 index 0000000..165ff95 --- /dev/null +++ b/sys-netbsd/netbsd-usbin/Manifest @@ -0,0 +1,2 @@ +AUX netbsd-usbin-5.0-Makefile.patch 1749 RMD160 3dcda1c41b1cefccca37560e64dd5bd6e82740aa SHA1 bf08093ce931e28a489df9769064d3203abb6033 SHA256 8ca0a6df506eb2036375696bb5476776dc02a820f04662596ec0bb750fe92f1b +EBUILD netbsd-usbin-5.0.ebuild 2255 RMD160 fff20fe3879c5cd80de5b3de684528be0f72d7be SHA1 c27a2d453ff73f18ed61407316dc763a6d1aa8e5 SHA256 e297dc105f6bc4f00caa75b0abf71d1ea092388c6c0c7c23d09b5ee0a9c1f11f diff --git a/sys-netbsd/netbsd-usbin/files/netbsd-usbin-5.0-Makefile.patch b/sys-netbsd/netbsd-usbin/files/netbsd-usbin-5.0-Makefile.patch new file mode 100644 index 0000000..6d8dab9 --- /dev/null +++ b/sys-netbsd/netbsd-usbin/files/netbsd-usbin-5.0-Makefile.patch @@ -0,0 +1,35 @@ +--- Makefile.orig 2009-08-02 19:56:31.000000000 +0200 ++++ Makefile 2009-08-24 00:12:27.000000000 +0200 +@@ -3,24 +3,24 @@ + + .include <bsd.own.mk> + +-SUBDIR= ac accton acpitools altq apm apmd arp bad144 bind bootp \ ++SUBDIR= ac accton acpitools altq apm apmd arp bad144 bootp \ + btattach btconfig btdevctl bthcid btpand catman \ +- chown chroot chrtbl cnwctl cpuctl cron dev_mkdb \ ++ chown chroot chrtbl cnwctl cpuctl dev_mkdb \ + dhcp diskpart dumpfs dumplfs edquota eeprom \ +- envstat eshconfig etcupdate extattrctl fssconfig fwctl gpioctl \ +- grfconfig grfinfo gspa hilinfo ifwatchd inetd installboot \ ++ envstat eshconfig extattrctl fssconfig fwctl gpioctl \ ++ grfconfig grfinfo gspa hilinfo ifwatchd installboot \ + iopctl iostat ipwctl irdaattach isdn iteconfig iwictl\ +- kgmon lastlogin link lmcconfig lockstat lpr mailwrapper makefs \ ++ kgmon lastlogin link lmcconfig lockstat mailwrapper makefs \ + map-mbone mdconfig memswitch mlxctl mmcformat mopd mountd moused \ + mrinfo mrouted mscdlabel mtrace \ +- mtree ndbootd ndiscvt netgroup_mkdb nfsd ntp ofctl paxctl pcictl \ ++ mtree ndbootd ndiscvt netgroup_mkdb nfsd ofctl paxctl pcictl \ + pppd psrset pstat pwd_mkdb postinstall powerd quot quotacheck \ + quotaon rarpd rbootd rdate \ + repquota rmt rpc.bootparamd rpc.lockd rpc.pcnfsd \ + rpc.statd rpcbind rwhod sa screenblank sdpd services_mkdb sesd \ + schedctl sliplogin sntp \ +- spray srtconfig sti sunlabel sup syslogd tadpolectl tcpdchk \ +- tcpdmatch tcpdump tcpdrop timed tpctl traceroute trpt unlink \ ++ spray srtconfig sti sunlabel sup syslogd tadpolectl \ ++ tcpdrop timed tpctl traceroute trpt unlink \ + usbdevs user videomode vipw veriexecgen vnconfig wiconfig wlanctl wpa \ + wsconscfg wsfontload wsmoused wsmuxctl zdump zic + diff --git a/sys-netbsd/netbsd-usbin/netbsd-usbin-5.0.ebuild b/sys-netbsd/netbsd-usbin/netbsd-usbin-5.0.ebuild new file mode 100644 index 0000000..d0dd0db --- /dev/null +++ b/sys-netbsd/netbsd-usbin/netbsd-usbin-5.0.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2009 Gentoo FounDation +# Distributed under the terms of the GNU General Public License v2 +# Gentoo/NetBSD usr/sbin base system +# Patrice Clement <charlieroot@free.fr> +inherit eutils netbsd + +DESCRIPTION="NetBSD 5.0 usr/sbin base system" +HOMEPAGE="http://cvsweb.netbsd.org" +SRC_URI="" +SLOT="0" +LICENCE="BSD" +KEYWORDS="~x86-nbsd" + +DEPEND=">=sys-netbsd/netbsd-src-5.0 + >=sys-netbsd/netbsd-cctools-5.0" + +src_unpack() { + # Same as with netbsd-bin ebuild. + cd ${NETBSD_SRC_DIR}/usr.sbin + netbsd_mk_prepatch + + # This patch prevents, in order, these binaries to be compiled and installed: + # bind, dhcpcd, dhclient, ntp, lpr (and related commands), tcpdump, tcpdchk, tcpdmatch + # inetd (which is xinetd on Gentoo), cron, syslogd, wpa (and related commands). + epatch ${FILESDIR}/${P}-Makefile.patch +} + +src_compile() { + cd ${NETBSD_SRC_DIR}/lib/libvers + netbsd_src_compile all + cd ${NETBSD_SRC_DIR}/usr.sbin + netbsd_src_compile cleandir + + # Don't need Kerberos, cryptographic and YP binaries. + mymakeopts="${mymakeopts} MKKERBEROS=no MKCRYPTO=no MKYP=no" + netbsd_src_compile dependall +} + +src_install() { + cd ${D} + for doc_dir in 1 4 5 8 + do + dodir usr/share/man/cat${doc_dir}/amiga + dodir usr/share/man/man${doc_dir}/amiga + dodir usr/share/man/html${doc_dir}/amiga + dodir usr/share/man/cat${doc_dir}/hp300 + dodir usr/share/man/man${doc_dir}/hp300 + dodir usr/share/man/html${doc_dir}/hp300 + dodir usr/share/man/cat${doc_dir}/sparc + dodir usr/share/man/man${doc_dir}/sparc + dodir usr/share/man/html${doc_dir}/sparc + dodir usr/share/man/cat${doc_dir}/i386 + dodir usr/share/man/man${doc_dir}/i386 + dodir usr/share/man/html${doc_dir}/i386 + dodir usr/share/man/cat${doc_dir}/x68k + dodir usr/share/man/man${doc_dir}/x68k + dodir usr/share/man/html${doc_dir}/x68k + done + dodir dev + dodir sbin + dodir var/yp + dodir usr/bin + dodir usr/sbin + dodir usr/libexec/lpr + dodir usr/share/info + dodir usr/share/dhcpd + dodir usr/share/examples/ipf + dodir usr/share/examples/pf + dodir usr/share/examples/rtadvd + dodir usr/share/examples/dhcp + dodir usr/share/doc/smm/12.timed + dodir usr/share/doc/smm/11.timedop + cd ${NETBSD_SRC_DIR}/usr.sbin + netbsd_src_install install +} |