diff options
author | Joseph Jezak <josejx@gentoo.org> | 2006-09-05 18:46:59 +0000 |
---|---|---|
committer | Joseph Jezak <josejx@gentoo.org> | 2006-09-05 18:46:59 +0000 |
commit | f553da30b57f29046afbde77e2fe92a630130892 (patch) | |
tree | 4015030d5bf909b68f6cce1c968b5429bd58fe11 /app-emulation | |
parent | Make wrappers for the common wads. Bug #127397 (diff) | |
download | historical-f553da30b57f29046afbde77e2fe92a630130892.tar.gz historical-f553da30b57f29046afbde77e2fe92a630130892.tar.bz2 historical-f553da30b57f29046afbde77e2fe92a630130892.zip |
Masked _pre9 and added a compile fix only patch for pre8.
Package-Manager: portage-2.1.1_rc1-r2
Diffstat (limited to 'app-emulation')
-rw-r--r-- | app-emulation/mol/ChangeLog | 8 | ||||
-rw-r--r-- | app-emulation/mol/Manifest | 27 | ||||
-rw-r--r-- | app-emulation/mol/files/digest-mol-0.9.71_pre8-r1 | 3 | ||||
-rw-r--r-- | app-emulation/mol/files/digest-mol-0.9.71_pre9 | 6 | ||||
-rw-r--r-- | app-emulation/mol/files/mol-0.9.71_pre8-to-pre9.patch | 135 | ||||
-rw-r--r-- | app-emulation/mol/mol-0.9.71_pre8-r1.ebuild | 140 |
6 files changed, 307 insertions, 12 deletions
diff --git a/app-emulation/mol/ChangeLog b/app-emulation/mol/ChangeLog index a17fa0be7411..79484b1deed1 100644 --- a/app-emulation/mol/ChangeLog +++ b/app-emulation/mol/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-emulation/mol # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/mol/ChangeLog,v 1.62 2006/09/05 14:32:21 josejx Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/mol/ChangeLog,v 1.63 2006/09/05 18:46:59 josejx Exp $ + +*mol-0.9.71_pre8-r1 (05 Sep 2006) + + 05 Sep 2006; Joseph Jezak <josejx@gentoo.org> + +files/mol-0.9.71_pre8-to-pre9.patch, +mol-0.9.71_pre8-r1.ebuild: + Masked _pre9 and added a compile fix only patch for pre8. *mol-0.9.71_pre9 (05 Sep 2006) diff --git a/app-emulation/mol/Manifest b/app-emulation/mol/Manifest index 3a950e27b54f..d01b83b6c93a 100644 --- a/app-emulation/mol/Manifest +++ b/app-emulation/mol/Manifest @@ -1,3 +1,7 @@ +AUX mol-0.9.71_pre8-to-pre9.patch 5637 RMD160 b33bcc44eeb4bc51b787dcd48b2cc07a1bb50927 SHA1 22277d7f0dede0314e7ad162d204c6d2da9ee2f0 SHA256 d62e16ce75c4b63fea3b3f5bf79c90b251a9d94810be3f48f772465c94396180 +MD5 eaf1e858d57017df4eb671112a53cf07 files/mol-0.9.71_pre8-to-pre9.patch 5637 +RMD160 b33bcc44eeb4bc51b787dcd48b2cc07a1bb50927 files/mol-0.9.71_pre8-to-pre9.patch 5637 +SHA256 d62e16ce75c4b63fea3b3f5bf79c90b251a9d94810be3f48f772465c94396180 files/mol-0.9.71_pre8-to-pre9.patch 5637 AUX mol-0.9.71_pre9-pciproxy-dump.patch 8668 RMD160 0f32a833c55adbe82f3745b5855b9de8d1205670 SHA1 f939b8c8a554c46546d514d9bef169d3b247441d SHA256 8349d4681f7dbcfa01398e1d76a067f9c213297423353a7ac9713bdbc182a9c9 MD5 37b329ebb045f9ee45431f79efe89751 files/mol-0.9.71_pre9-pciproxy-dump.patch 8668 RMD160 0f32a833c55adbe82f3745b5855b9de8d1205670 files/mol-0.9.71_pre9-pciproxy-dump.patch 8668 @@ -7,7 +11,11 @@ MD5 7f5de70ffe0bddda1e6ea19faaacddfe files/mol-pciproxy-dump.patch 8603 RMD160 efe5e1889b040f531ce57d11d5f56753780c1bd5 files/mol-pciproxy-dump.patch 8603 SHA256 881df3036bd257250526c8c507d84542fe89648e2345e9f830ba7a1f6617fafe files/mol-pciproxy-dump.patch 8603 DIST mol-0.9.71_pre8.tar.bz2 1933742 RMD160 b21ebffe2cd10bea2a7ced1f77a0ab8a5b65802d SHA1 8d38e54377f88e5831044467fe4de33e4e405838 SHA256 3831a38668141adbdc1b56f3c684e23ddefe7bbffe7c2f603b051b41678bd019 -DIST mol-0.9.71_pre9.tar.bz2 2042974 RMD160 73662d126112aa236f10717508b0feb6a676986e SHA1 21a2d3eff82ff2366d1e713c607cc57da06eca5c SHA256 d93e6659cfc81096e311fa8316061e99558e300908098839546385b4251087b3 +DIST mol-0.9.71_pre9.tar.bz2 2045253 RMD160 3d90fcd484ea4b892781b5713cf1d3b84b417842 SHA1 6d2a1f2dc7dfc552cf7ce0afa8be98c63f8cb42d SHA256 48ef2e31adaaee115a6a8001e0fd0a1f7c02bb307de357ff90f03c5a125dc571 +EBUILD mol-0.9.71_pre8-r1.ebuild 4605 RMD160 7c229ada0ec39324a30c75a18a74ec74d5963f50 SHA1 32357310c7ca348201deb468ec69466e872715c5 SHA256 a51306bd32d5d1c02d215be726b3b7c4dfbf9a2241d677eb65e417bedacdceff +MD5 5d9eed7cb2c60a4049925f32acf7b1e0 mol-0.9.71_pre8-r1.ebuild 4605 +RMD160 7c229ada0ec39324a30c75a18a74ec74d5963f50 mol-0.9.71_pre8-r1.ebuild 4605 +SHA256 a51306bd32d5d1c02d215be726b3b7c4dfbf9a2241d677eb65e417bedacdceff mol-0.9.71_pre8-r1.ebuild 4605 EBUILD mol-0.9.71_pre8.ebuild 4562 RMD160 59b100fca9f8aeb9829762b97ae304e3c5c3b5ab SHA1 07cb315f09b8056c55b12a754fdfc566b015829e SHA256 3a5720a1d1c6b6a8a0c193bf287510b8e17e0e7bcf59c87e255ab9fafbc50812 MD5 76ce7ee9e79d1d27063825da2ced451f mol-0.9.71_pre8.ebuild 4562 RMD160 59b100fca9f8aeb9829762b97ae304e3c5c3b5ab mol-0.9.71_pre8.ebuild 4562 @@ -16,10 +24,10 @@ EBUILD mol-0.9.71_pre9.ebuild 4561 RMD160 09142d392259a3dd382b85bda26b589bca4509 MD5 4fc2d5ae1ede91cb009fbab3105c51bc mol-0.9.71_pre9.ebuild 4561 RMD160 09142d392259a3dd382b85bda26b589bca450926 mol-0.9.71_pre9.ebuild 4561 SHA256 7e4e7ef5b3f23d491037acbaaea39ade7dd890000dec04194041b6088bb7c701 mol-0.9.71_pre9.ebuild 4561 -MISC ChangeLog 12478 RMD160 c23e751ee3aa57744c7c158a1218b88b02f043b7 SHA1 6b78927d55f4df9aef15fec32d0099567a05969e SHA256 da5fd222775980055aa58870faf7a0e16a4e870d4b618718802c7935b657d407 -MD5 1992dae98f21ea0a90afa635faffb570 ChangeLog 12478 -RMD160 c23e751ee3aa57744c7c158a1218b88b02f043b7 ChangeLog 12478 -SHA256 da5fd222775980055aa58870faf7a0e16a4e870d4b618718802c7935b657d407 ChangeLog 12478 +MISC ChangeLog 12690 RMD160 2080c4af81a3188c8a9cb0b195f1d8bc2b5c90a8 SHA1 b6684f4b733af0f3a8acb0e7a0ef29941e9690ab SHA256 61d3737687cafa14bd9003469b0f7e751a9635e5bdbedb0812cd75eab071ee4b +MD5 26da45998e0ad1d2423a4d4fc056deec ChangeLog 12690 +RMD160 2080c4af81a3188c8a9cb0b195f1d8bc2b5c90a8 ChangeLog 12690 +SHA256 61d3737687cafa14bd9003469b0f7e751a9635e5bdbedb0812cd75eab071ee4b ChangeLog 12690 MISC metadata.xml 335 RMD160 20286061649b257bae65b6a1513c92a3f4f89ca9 SHA1 2a73cee7918db262edc6ff25930096231e3a58d9 SHA256 20d16a117e25aec778679695ff92e2b743d948d0cdc0baa12cc985d06b8a0eb2 MD5 42a59a63ebfdade59067060f1fab37ac metadata.xml 335 RMD160 20286061649b257bae65b6a1513c92a3f4f89ca9 metadata.xml 335 @@ -27,6 +35,9 @@ SHA256 20d16a117e25aec778679695ff92e2b743d948d0cdc0baa12cc985d06b8a0eb2 metadata MD5 b96d73d75a36b9b5145e1138a92b52b4 files/digest-mol-0.9.71_pre8 253 RMD160 ff0d78754328a0afaf14450c917c16d5552312e6 files/digest-mol-0.9.71_pre8 253 SHA256 c8c50fd80ac9092beeb95c2d09625aea2352252cc63c8dd8973b6b66d407aa26 files/digest-mol-0.9.71_pre8 253 -MD5 343ddf20eb682a6534203becfe1cfbca files/digest-mol-0.9.71_pre9 253 -RMD160 0ba6d4fa9f2a436f2094186506338bfc0733426f files/digest-mol-0.9.71_pre9 253 -SHA256 3174fbadf88372a7676e4b37ca1e5c548b1aac38acbd6add3226ea8f2359bad9 files/digest-mol-0.9.71_pre9 253 +MD5 b96d73d75a36b9b5145e1138a92b52b4 files/digest-mol-0.9.71_pre8-r1 253 +RMD160 ff0d78754328a0afaf14450c917c16d5552312e6 files/digest-mol-0.9.71_pre8-r1 253 +SHA256 c8c50fd80ac9092beeb95c2d09625aea2352252cc63c8dd8973b6b66d407aa26 files/digest-mol-0.9.71_pre8-r1 253 +MD5 5927309de29709f3425d693548bc4687 files/digest-mol-0.9.71_pre9 253 +RMD160 42972f7a5608cb5e0d309f5717681c26429a2e1d files/digest-mol-0.9.71_pre9 253 +SHA256 2eabdae51fbd8ddcb74b4dacd7c6910e3d9a04136bd2a5d0a5f610c020be822c files/digest-mol-0.9.71_pre9 253 diff --git a/app-emulation/mol/files/digest-mol-0.9.71_pre8-r1 b/app-emulation/mol/files/digest-mol-0.9.71_pre8-r1 new file mode 100644 index 000000000000..6180f10fbae2 --- /dev/null +++ b/app-emulation/mol/files/digest-mol-0.9.71_pre8-r1 @@ -0,0 +1,3 @@ +MD5 9afd248b681d1ca67c7a28d392ad32fd mol-0.9.71_pre8.tar.bz2 1933742 +RMD160 b21ebffe2cd10bea2a7ced1f77a0ab8a5b65802d mol-0.9.71_pre8.tar.bz2 1933742 +SHA256 3831a38668141adbdc1b56f3c684e23ddefe7bbffe7c2f603b051b41678bd019 mol-0.9.71_pre8.tar.bz2 1933742 diff --git a/app-emulation/mol/files/digest-mol-0.9.71_pre9 b/app-emulation/mol/files/digest-mol-0.9.71_pre9 index e2700040f24f..924b3f9118e9 100644 --- a/app-emulation/mol/files/digest-mol-0.9.71_pre9 +++ b/app-emulation/mol/files/digest-mol-0.9.71_pre9 @@ -1,3 +1,3 @@ -MD5 12183922e35894974ff8fa275b7d176c mol-0.9.71_pre9.tar.bz2 2042974 -RMD160 73662d126112aa236f10717508b0feb6a676986e mol-0.9.71_pre9.tar.bz2 2042974 -SHA256 d93e6659cfc81096e311fa8316061e99558e300908098839546385b4251087b3 mol-0.9.71_pre9.tar.bz2 2042974 +MD5 d52087b3765a09b54e2b5e506b4fd477 mol-0.9.71_pre9.tar.bz2 2045253 +RMD160 3d90fcd484ea4b892781b5713cf1d3b84b417842 mol-0.9.71_pre9.tar.bz2 2045253 +SHA256 48ef2e31adaaee115a6a8001e0fd0a1f7c02bb307de357ff90f03c5a125dc571 mol-0.9.71_pre9.tar.bz2 2045253 diff --git a/app-emulation/mol/files/mol-0.9.71_pre8-to-pre9.patch b/app-emulation/mol/files/mol-0.9.71_pre8-to-pre9.patch new file mode 100644 index 000000000000..1c4c586c24e0 --- /dev/null +++ b/app-emulation/mol/files/mol-0.9.71_pre8-to-pre9.patch @@ -0,0 +1,135 @@ +diff -Naur mol-0.9.71_pre8/CHANGELOG ../../mol-0.9.71_pre9/work/mol-0.9.71_pre9/CHANGELOG +--- mol-0.9.71_pre8/CHANGELOG 2006-01-27 14:10:05.000000000 -0500 ++++ ../../mol-0.9.71_pre9/work/mol-0.9.71_pre9/CHANGELOG 2006-09-05 01:49:27.000000000 -0400 +@@ -1,5 +1,7 @@ + MOL Changelog + ++mol-0.9.71_pre9 - 2006-09-05 Joseph Jezak <josejx@gentoo.org> ++ * Compile fixes for kernels 2.6.17 and newer + mol-0.9.71_pre8 - 2006-01-26 Joseph Jezak <josejx@gentoo.org> + * Fixed mol kmod naming issue, same as last version's netdev fix + * Added video resolution settings for new PBs and Apple Cinema Displays +diff -Naur mol-0.9.71_pre8/config/Makefile.top ../../mol-0.9.71_pre9/work/mol-0.9.71_pre9/config/Makefile.top +--- mol-0.9.71_pre8/config/Makefile.top 2006-01-27 14:09:29.000000000 -0500 ++++ ../../mol-0.9.71_pre9/work/mol-0.9.71_pre9/config/Makefile.top 2006-09-05 02:42:52.000000000 -0400 +@@ -24,7 +24,6 @@ + export ARCH + BUILDDIR := $(top_srcdir)/obj-$(ARCH) + +- + ################################################################# + # INSTALL dirs + ################################################################# +@@ -56,7 +55,7 @@ + ################################################################# + + VERSION := 0.9.71 +-EXTRA_VERSION := -pre8$(VENDOR) ++EXTRA_VERSION := -pre9$(VENDOR) + RELEASENAME := $(VERSION)$(EXTRA_VERSION)$(VENDOR) + + _prefix = $(DESTDIR)$(prefix) +diff -Naur mol-0.9.71_pre8/src/drivers/net/if-tap.c ../../mol-0.9.71_pre9/work/mol-0.9.71_pre9/src/drivers/net/if-tap.c +--- mol-0.9.71_pre8/src/drivers/net/if-tap.c 2005-01-17 18:07:06.000000000 -0500 ++++ ../../mol-0.9.71_pre9/work/mol-0.9.71_pre9/src/drivers/net/if-tap.c 2006-09-05 00:39:25.000000000 -0400 +@@ -21,6 +21,11 @@ + #include <linux/netlink.h> + #include "enet.h" + #include "res_manager.h" ++#include <linux/version.h> ++ ++#ifndef NETLINK_GENERIC ++#define NETLINK_GENERIC 16 ++#endif + + static const char def_hw_addr[6] = { 0, 0, 0xDE, 0xAD, 0xBE, 0xEF }; + +@@ -61,7 +66,7 @@ + if( check_netdev(is->iface_name) ) + return 1; + +- if( (fd=socket(PF_NETLINK, SOCK_RAW, NETLINK_TAPBASE+tapnum)) < 0 ) { ++ if( (fd=socket(PF_NETLINK, SOCK_RAW, NETLINK_GENERIC+tapnum)) < 0 ) { + perrorm("socket"); + printm("Does the kernel lack netlink support (CONFIG_NETLINK)?\n"); + return 1; +diff -Naur mol-0.9.71_pre8/src/kmod/Linux/Makefile.26 ../../mol-0.9.71_pre9/work/mol-0.9.71_pre9/src/kmod/Linux/Makefile.26 +--- mol-0.9.71_pre8/src/kmod/Linux/Makefile.26 2005-10-09 21:22:50.000000000 -0400 ++++ ../../mol-0.9.71_pre9/work/mol-0.9.71_pre9/src/kmod/Linux/Makefile.26 2006-09-05 08:17:40.000000000 -0400 +@@ -25,30 +25,30 @@ + + $(obj)/_%.o: $(src)/%.S + @echo " AS [x] $@" +- @$(RM) $@ $@.s ++ @rm -f $@ $@.s + @$(CPP) $(MOL_ASMFLAGS) $< | m4 -s > $@.m4 + @ASFILTER="./asfilter" ; test -x $$ASFILTER || ASFILTER="tr ';' '\n'" ; \ + cat $@.m4 | $$ASFILTER > $@.s + @$(AS) $@.s $(AS_FLAGS) -o $@ +- @$(RM) $@.s $@.m4 ++ @rm -f $@.s $@.m4 + + + $(src)/asm_offsets.h: $(src)/archinclude.h $(src)/kernel_vars.h $(src)/mac_registers.h + $(src)/asm_offsets.h: $(src)/asm_offsets.c $(src)/asm_offsets.inc +- @$(RM) ${T}/tmp-offsets.c $@ ; cat $^ > ${T}/tmp-offsets.c ++ @rm -f ${T}/tmp-offsets.c $@ ; cat $^ > ${T}/tmp-offsets.c + @$(CC) $(CPPFLAGS) $(CFLAGS) -I$(src) -Wall -S ${T}/tmp-offsets.c -o ${T}/tmp-offsets.s + @echo "/* WARNING! Automatically generated from 'shared/asm_offsets.c' - DO NOT EDIT! */" > $@ + @grep '^#' ${T}/tmp-offsets.s >> $@ +- @$(RM) ${T}/tmp-offsets.* ++ @rm -f ${T}/tmp-offsets.* + + + $(src)/_performance.c: $(PERFOBJS) +- @$(RM) $@ $@.tmp; echo "/* WARNING! DO NOT EDIT! AUTOMATICALLY GENERATED! */" > $@.tmp ++ @rm -f $@ $@.tmp; echo "/* WARNING! DO NOT EDIT! AUTOMATICALLY GENERATED! */" > $@.tmp + @echo "#include \"performance.h\"" >> $@.tmp + @$(NM) $(PERFOBJS) | awk -- '/gPerf__/ { print "unsigned long "$$2";" }' >> $@.tmp + @echo "perf_info_t g_perf_info_table[] = {" >> $@.tmp + @$(NM) $(PERFOBJS) | awk -- '/gPerf__/ { print " { \""$$2"\",&"$$2"}," }' >> $@.tmp + @echo " {0,0} };" >> $@.tmp + @cat $@.tmp | sed s/_gPerf/gPerf/g > $@ +- @$(RM) $@.tmp ++ @rm -f $@.tmp + +diff -Naur mol-0.9.71_pre8/src/kmod/Linux/kuname.c ../../mol-0.9.71_pre9/work/mol-0.9.71_pre9/src/kmod/Linux/kuname.c +--- mol-0.9.71_pre8/src/kmod/Linux/kuname.c 2006-01-27 13:00:11.000000000 -0500 ++++ ../../mol-0.9.71_pre9/work/mol-0.9.71_pre9/src/kmod/Linux/kuname.c 2006-09-05 02:36:47.000000000 -0400 +@@ -16,6 +16,9 @@ + + #include <linux/config.h> + #include <linux/version.h> ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,18) ++#include <linux/utsrelease.h> ++#endif + + #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0) + +diff -Naur mol-0.9.71_pre8/src/kmod/Linux/mmu.c ../../mol-0.9.71_pre9/work/mol-0.9.71_pre9/src/kmod/Linux/mmu.c +--- mol-0.9.71_pre8/src/kmod/Linux/mmu.c 2005-01-17 18:07:06.000000000 -0500 ++++ ../../mol-0.9.71_pre9/work/mol-0.9.71_pre9/src/kmod/Linux/mmu.c 2006-09-05 02:39:32.000000000 -0400 +@@ -32,6 +32,10 @@ + int + arch_mmu_init( kernel_vars_t *kv ) + { ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,18) ++ MMU.emulator_context = current->mm->context.id; ++#else + MMU.emulator_context = current->mm->context; ++#endif + return 0; + } +diff -Naur mol-0.9.71_pre8/src/netdriver/kuname.c ../../mol-0.9.71_pre9/work/mol-0.9.71_pre9/src/netdriver/kuname.c +--- mol-0.9.71_pre8/src/netdriver/kuname.c 2006-01-10 00:46:42.000000000 -0500 ++++ ../../mol-0.9.71_pre9/work/mol-0.9.71_pre9/src/netdriver/kuname.c 2006-09-05 02:36:54.000000000 -0400 +@@ -16,6 +16,9 @@ + + #include <linux/config.h> + #include <linux/version.h> ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,18) ++#include <linux/utsrelease.h> ++#endif + + #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0) + diff --git a/app-emulation/mol/mol-0.9.71_pre8-r1.ebuild b/app-emulation/mol/mol-0.9.71_pre8-r1.ebuild new file mode 100644 index 000000000000..8b61ddd6b08b --- /dev/null +++ b/app-emulation/mol/mol-0.9.71_pre8-r1.ebuild @@ -0,0 +1,140 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/mol/mol-0.9.71_pre8-r1.ebuild,v 1.1 2006/09/05 18:46:59 josejx Exp $ + +inherit flag-o-matic eutils linux-mod + +DESCRIPTION="MOL (Mac-on-Linux) lets PPC users run MacOS (X) under Linux (rsync snapshot)" +HOMEPAGE="http://www.maconlinux.org/" +SRC_URI="mirror://gentoo/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* ppc" +IUSE="vnc alsa oss fbcon X oldworld sheep debug dga usb pci" + +MAKEOPTS="${MAKEOPTS} -j1" +RDEPEND="net-misc/dhcp + net-firewall/iptables + alsa? ( virtual/alsa ) + vnc? ( net-misc/vnc ) + X? ( || ( ( x11-libs/libXext + dga? ( x11-libs/libXxf86dga ) + ) + virtual/x11 + ) + )" +DEPEND="${RDEPEND} + X? ( || ( ( x11-libs/libXt + x11-proto/xextproto + dga? ( x11-proto/xf86dgaproto ) + ) + virtual/x11 + ) + )" + +MODULE_NAMES="mol(mol:${S}/src/kmod/Linux) + sheep(net:${S}/src/netdriver)" + +pkg_setup() { + echo + einfo "If you want to use MOL fullscreen on a virtual console" + einfo "be sure to have the USE-flag \"fbcon\" set!" + echo + + linux-mod_pkg_setup +} + +src_unpack() { + unpack ${A} + + cd ${S} + # PCI Debugging Patch + if use debug; then + epatch ${FILESDIR}/${PN}-pciproxy-dump.patch + fi + + epatch ${FILESDIR}/${P}-to-pre9.patch +} + +src_compile() { + filter-flags -fsigned-char + append-flags -D_FILE_OFFSET_BITS=64 + append-flags -D_LARGE_FILES + + export KERNEL_SOURCE="/usr/src/${FK}" + export LDFLAGS="" + + # initialize all needed build-files + ./autogen.sh + ./configure --prefix="/usr" || die "Configure failed." + + # workaround for proper module-building + emake defconfig || die "Make failed." + + sed -i "s:CONFIG_XDGA=y:# CONFIG_XDGA is not set:" .config-ppc + sed -i "s:CONFIG_TAP=y:# CONFIG_TAP is not set:" .config-ppc + sed -i "s:CONFIG_TUN=y:# CONFIG_TUN is not set:" .config-ppc + use alsa || sed -i "s:CONFIG_ALSA=y:# CONFIG_ALSA is not set:" .config-ppc + use debug && sed -i "s:# CONFIG_DEBUGGER is not set:CONFIG_DEBUGGER=y:" .config-ppc + use oss || sed -i "s:CONFIG_OSS=y:# CONFIG_OSS is not set:" .config-ppc + use oldworld || sed -i "s:CONFIG_OLDWORLD=y:# CONFIG_OLDWORLD is not set:" .config-ppc + use sheep || sed -i "s:CONFIG_SHEEP=y:# CONFIG_SHEEP is not set:" .config-ppc + use X || sed -i "s:CONFIG_X11=y:# CONFIG_X11 is not set:" .config-ppc + use fbcon || sed -i "s:CONFIG_FBDEV=y:# CONFIG_FBDEV is not set:" .config-ppc + use vnc || sed -i "s:CONFIG_VNC=y:# CONFIG_VNC is not set:" .config-ppc + use dga || sed -i "s:CONFIG_XDGA=y:# CONFIG_XDGA is not set:" .config-ppc + use usb || sed -i "s:CONFIG_USBDEV=y:# CONFIG_USBDEV is not set:" .config-ppc + use pci || sed -i "s:CONFIG_PCIPROXY=y:# CONFIG_PCIPROXY is not set:" .config-ppc + + einfo "The configuration has been altered according to your USE-flags." + # reinitialize our changed configuration + emake oldconfig + + cd ${S} + emake BUILD_MODS=n || die "Build failed." + + # Build the modules too! + BUILD_PARAMS="KERNEL_SOURCE=${KV_DIR} LV=${KV_MAJOR}${KV_MINOR} MP=${KV_OBJ} + KUNAME=${KV}" + BUILD_TARGETS=all + linux-mod_src_compile +} + +src_install() { + #linux-mod_src_install + cd ${S} + emake DESTDIR=${D} install || die "Failed to install" + dodoc CREDITS Doc/Boot-ROM Doc/NewWorld-ROM Doc/Sound Doc/Video + dodoc Doc/Networking Doc/Dev/Debugger Doc/Dev/Addresses + dodoc Doc/man/molvconfig.1 Doc/man/startmol.1 Doc/man/molrc.5 + insinto /var/lib/mol + doins ${S}/mollib/nvram/nvram.x +} + +pkg_postinst() { + echo + einfo "Mac-on-Linux is now installed. To run, use the command startmol." + einfo "You might want to configure video modes first with molvconfig." + einfo "Other configuration is in /etc/molrc. For more info see:" + einfo " http://www.maconlinux.org" + einfo "Also try man molrc, man molvconfig, man startmol" + echo + ewarn "For networking and sound you might install the drivers in the" + ewarn "folder \"MOL-Install\" on your Mac OS X-Desktop." + echo + ewarn "If errors with networking occur, make sure you have the following" + ewarn "kernel functions enabled:" + einfo "For connecting to Linux:" + einfo " Universal TUN/TAP device driver support (CONFIG_TUN)" + einfo "For the dhcp server:" + einfo " Packet Socket (CONFIG_PACKET)" + einfo "For NAT:" + einfo " Network packet filtering (CONFIG_NETFILTER)" + einfo " Connection tracking (CONFIG_IP_NF_CONNTRACK)" + einfo " IP tables support (CONFIG_IP_NF_IPTABLES)" + einfo " Packet filtering (CONFIG_IP_NF_FILTER)" + einfo " Full NAT (CONFIG_IP_NF_NAT)" + einfo " MASQUERADE target support (CONFIG_IP_NF_TARGET_MASQUERADE)" + echo +} |