ChangeLog

# ChangeLog for app-emulation/mol
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/mol/ChangeLog,v 1.78 2008/03/23 21:30:01 robbat2 Exp $

23 Mar 2008; Robin H. Johnson mol-0.9.72.ebuild,
mol-0.9.72.1.ebuild:
Fix lax escaping in BUILD_PARAMS so that ebuild works again after recent
modifications to linux-mod.eclass. Also fix other quoting issues.

22 Jul 2007; David Shakaryan mol-0.9.72.ebuild,
mol-0.9.72.1.ebuild:
Remove virtual/x11 from dependencies.

*mol-0.9.72.1 (25 Jun 2007)

25 Jun 2007; Joseph Jezak +mol-0.9.72.1.ebuild:
Added latest version.

11 Apr 2007; Joseph Jezak -mol-0.9.71.1.ebuild,
-mol-0.9.72_pre1.ebuild, -mol-0.9.72_pre2.ebuild, mol-0.9.72.ebuild:
Marked latest version stable and removed old versions.

*mol-0.9.72 (03 Mar 2007)

03 Mar 2007; Joseph Jezak +mol-0.9.72.ebuild:
Added latest release.

11 Feb 2007; Joseph Jezak mol-0.9.72_pre2.ebuild:
Marked ppc stable early for 2.6.19 stabilization.

11 Feb 2007; Diego Pettenò mol-0.9.71.1.ebuild,
mol-0.9.72_pre1.ebuild, mol-0.9.72_pre2.ebuild:
Don't depend on virtual/alsa (those are drivers), depend properly on
media-libs/alsa-lib.

25 Jan 2007; Marius Mauch mol-0.9.71.1.ebuild,
mol-0.9.72_pre1.ebuild, mol-0.9.72_pre2.ebuild:
Replacing einfo with elog

22 Jan 2007; Joseph Jezak mol-0.9.72_pre2.ebuild:
Fixed sheep config sed.

*mol-0.9.72_pre2 (16 Jan 2007)

16 Jan 2007; Joseph Jezak +mol-0.9.72_pre2.ebuild:
Added latest version.

08 Jan 2007; Joseph Jezak
-files/mol-pciproxy-dump.patch, -mol-0.9.71.ebuild, mol-0.9.71.1.ebuild,
mol-0.9.72_pre1.ebuild:
Removed pci-proxy dump patch for bug #159544. Marked 0.9.71.1 stable.

12 Nov 2006; Timothy Redaelli mol-0.9.72_pre1.ebuild:
Added tc-export CC to make it compile with distcc.

*mol-0.9.72_pre1 (06 Nov 2006)

06 Nov 2006; Joseph Jezak
-files/mol-0.9.71_pre8-to-pre9.patch, +mol-0.9.72_pre1.ebuild:
New version with compressed disk image support.

*mol-0.9.71.1 (28 Oct 2006)

28 Oct 2006; Joseph Jezak
-files/mol-0.9.71-pciproxy-dump.patch, files/mol-pciproxy-dump.patch,
-mol-0.9.71_pre8-r1.ebuild, +mol-0.9.71.1.ebuild:
New version - 2.6.19 support. Updated website and src info.

*mol-0.9.71 (03 Oct 2006)

03 Oct 2006; Joseph Jezak
+files/mol-0.9.71-pciproxy-dump.patch,
-files/mol-0.9.71_pre9-pciproxy-dump.patch, -mol-0.9.71_pre8.ebuild,
-mol-0.9.71_pre9.ebuild, +mol-0.9.71.ebuild:
Removed _pre9 and _pre8, added 0.9.71.

*mol-0.9.71_pre8-r1 (05 Sep 2006)

05 Sep 2006; Joseph Jezak
+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)

05 Sep 2006; Joseph Jezak
+files/mol-0.9.71_pre9-pciproxy-dump.patch, +mol-0.9.71_pre9.ebuild:
Fixed gcc 4.x errors and compile errors with newer kernels.

26 May 2006; Joseph Jezak
-files/mol-0.9.70-makefile-fix.patch, -files/mol-0.9.70-nopriority.patch,
-files/mol-0.9.71_pre1-big-filesystem.patch,
-files/mol-0.9.71_pre1-linux-2.6.9.patch,
-files/mol-0.9.71_pre1-nopriority.patch,
-files/mol-0.9.71_pre1-tmp-offset.patch, -files/mol-module-fix.patch,
-files/mol-tiger.patch, -files/mol-uname.diff,
-files/mol-verify_area.diff, -mol-0.9.70.ebuild, -mol-0.9.70-r1.ebuild,
-mol-0.9.71_pre1-r3.ebuild, -mol-0.9.71_pre6.ebuild,
-mol-0.9.71_pre7.ebuild:
Cleanup

*mol-0.9.71_pre8 (27 Jan 2006)

27 Jan 2006; Joseph Jezak +mol-0.9.71_pre8.ebuild:
Added more video modes for newer machines and fixed kmod naming.

25 Jan 2006; Joseph Jezak mol-0.9.71_pre7.ebuild:
Fixed the deps for modular X, fixes bug #109977.

*mol-0.9.71_pre7 (10 Jan 2006)

10 Jan 2006; Joseph Jezak +mol-0.9.71_pre7.ebuild:
Fixed sheep module location and OS9 booting issue.

04 Jan 2006; Joseph Jezak
files/mol-pciproxy-dump.patch:
Fixed pciproxy debug patch.

31 Dec 2005; Joseph Jezak -mol-0.9.71_pre2.ebuild,
-mol-0.9.71_pre3.ebuild, -mol-0.9.71_pre5.ebuild, mol-0.9.71_pre6.ebuild:
Marked ppc stable and removed obsolete ebuilds.

*mol-0.9.71_pre6 (01 Dec 2005)

01 Dec 2005; Joseph Jezak +mol-0.9.71_pre6.ebuild:
Removed 2.6.15 fix (fixed in 2.6.15-rc4) and build typo.

*mol-0.9.71_pre5 (26 Nov 2005)

26 Nov 2005; Joseph Jezak +mol-0.9.71_pre5.ebuild:
Fixed OSX 10.2 support, building with 2.6.15 and a few other patches.

*mol-0.9.71_pre3 (10 Oct 2005)

10 Oct 2005; Joseph Jezak +mol-0.9.71_pre3.ebuild:
Fixed Tiger acceleration and compilation on GCC4.

*mol-0.9.71_pre2 (10 Oct 2005)

10 Oct 2005; Joseph Jezak -mol-0.9.71_pre1.ebuild,
-mol-0.9.71_pre1-r1.ebuild, -mol-0.9.71_pre1-r2.ebuild,
+mol-0.9.71_pre2.ebuild:
Fixed Tiger 8GB install bug, XSHM bug, sheep build bug and rolled all of the
patches into a new snapshot. Removed obsolete ebuilds.

*mol-0.9.71_pre1-r3 (29 Sep 2005)

29 Sep 2005; Joseph Jezak +files/mol-uname.diff,
+files/mol-verify_area.diff, +mol-0.9.71_pre1-r3.ebuild:
Added patch for uname bug #105741 (thanks _bambam) and fixed building on
2.6.14 kernels.

06 Aug 2005; Carsten Lohrke mol-0.9.70.ebuild,
mol-0.9.70-r1.ebuild, mol-0.9.71_pre1.ebuild, mol-0.9.71_pre1-r1.ebuild,
mol-0.9.71_pre1-r2.ebuild:
fixed url

*mol-0.9.71_pre1-r2 (31 Jul 2005)

31 Jul 2005; Joseph Jezak
+files/mol-pciproxy-dump.patch, +mol-0.9.71_pre1-r2.ebuild:
Added PCI proxy support with the pci useflag.

*mol-0.9.71_pre1-r1 (21 Jul 2005)

21 Jul 2005; Joseph Jezak +files/mol-tiger.patch,
+mol-0.9.71_pre1-r1.ebuild:
Added tiger patch and fix for broken bootloader.

28 Mar 2005; Joseph Jezak
+files/mol-0.9.71_pre1-tmp-offset.patch, mol-0.9.71_pre1.ebuild:
Converted ebuild to linux-mod.

08 Mar 2005; Joseph Jezak
files/mol-0.9.71_pre1-big-filesystem.patch:
Updated the big filesystem patch, bug #80098.

20 Feb 2005; Joseph Jezak
+files/mol-0.9.71_pre1-big-filesystem.patch, mol-0.9.71_pre1.ebuild:
Added big filesystem image patch from bug #80098.

28 Jan 2005; Michael Hanselmann
+files/mol-0.9.71_pre1-linux-2.6.9.patch, mol-0.9.70.ebuild,
mol-0.9.71_pre1.ebuild:
Fixed bug 79428, where the sheep driver failed to compile with linux >= 2.6.9.

*mol-0.9.70-r1 (28 Jan 2005)

28 Jan 2005; Joseph Jezak +mol-0.9.70-r1.ebuild,
mol-0.9.70.ebuild:
Revision bump to ensure everyone is using the patched version. Removed patch
from 0.9.70 so users can keep the priority changes if so desired.

28 Jan 2005; Joseph Jezak
+files/mol-0.9.70-nopriority.patch,
+files/mol-0.9.71_pre1-nopriority.patch, mol-0.9.70.ebuild,
mol-0.9.71_pre1.ebuild:
Added nopriority patches to fix bug #75254.

*mol-0.9.71_pre1 (18 Jan 2005)

18 Jan 2005; Lars Weiler -files/26-arch-fix.patch,
+files/mol-module-fix.patch, -mol-0.9.68-r4.ebuild, mol-0.9.70.ebuild,
-mol-0.9.70_rc2-r1.ebuild, +mol-0.9.71_pre1.ebuild:

mol-0.9.71_pre1.ebuild: A new rsync-snapshot with minor improvements.
mol-0.9.70.ebuild: Patched to compile modules on linux-2.6.10; bug #77386.
Stripped LDFLAGS as they break compilation.

Removed old versions.

01 Oct 2004; Luca Barbato mol-0.9.70.ebuild:
Workaround for issue with libpng.

14 May 2004; Lars Weiler mol-0.9.70.ebuild:
This version could be set into stable.

12 May 2004; Luca Barbato
+files/mol-0.9.70-makefile-fix.patch, mol-0.9.70.ebuild:
Added a fix for 2.6.6 kernels, thanks to Benoit Chesneau
for pointing the Andreas Schwab patch.

*mol-0.9.70 (21 Mar 2004)

21 Mar 2004; Lars Weiler mol-0.9.70.ebuild:
MOL 0.9.70 has been finally released. Hooray!

09 Mar 2004; Lars Weiler mol-0.9.69_pre7.ebuild,
mol-0.9.70_rc2-r1.ebuild, mol-0.9.70_rc2.ebuild:
Wrong dependencies for ppc64. So removed this arch.

08 Mar 2004; Lars Weiler mol-0.9.70_rc2-r1.ebuild:
Local USE-flag for the sheep-net-driver

*mol-0.9.70_rc2-r1 (07 Mar 2004)

07 Mar 2004; Lars Weiler mol-0.9.70_rc2-r1.ebuild:
Some updates from upstream (e.g. MOL acceleration for 10.3). Furthermore fixes
for the iBook G4.

30 Jan 2004; Lars Weiler mol-0.9.70_rc2.ebuild:
Notify the user to set the use-flag "fbcon" if mol should be installed with
support on a virtual terminal. Otherwise molvconfig would not be installed.

*mol-0.9.70_rc2 (26 Jan 2004)

26 Jan 2004; Lars Weiler mol-0.9.69_pre3.ebuild,
mol-0.9.69_pre5.ebuild, mol-0.9.69_pre6.ebuild, mol-0.9.70_rc2.ebuild:
A new rsync snapshot and release candidate for an official version bump.

(taken from <20040108144104.GA23519@ibrium.se> at mol-general@lists.maconlinux.org)
Certainly; here is a summary of all changes since the last point
release (0.9.68 back in March):

- ALSA support
- sound driver rewrite
- support for the 2.6 kernel
- fixes for SMP
- debugger improvements
- bootx bugfixes (10.3 won't boot without this one)
- improved tunconfig script
- virtualization engine fixes (makes it possible to run OSX on 604 cpus)
- reduced latency
- USB support
- generic SCSI support (and support for IDE burners)
- improved XDGA support (XDGA is obsolete though)
- sheep_net improvements
- performance improvements
- misc bugfixes

16 Jan 2004; Luca Barbato :
Digest fixed

*mol-0.9.69_pre7 (08 Jan 2004)

08 Jan 2004; Lars Weiler mol-0.9.69_pre7.ebuild:
Version bump. This should be the last before a new official release.

07 Dec 2003; Lars Weiler mol-0.9.69_pre6.ebuild:
Alsa sound works with MOL and Panther. Deleted the info about not checked
status.

19 Nov 2003; Luca Barbato mol-0.9.69_pre6.ebuild:
linux 2.6 fix (as patch)

*mol-0.9.69_pre6 (14 Nov 2003)

14 Nov 2003; Luca Barbato mol-0.9.69_pre5.ebuild,
mol-0.9.69_pre6.ebuild:
linux 2.6 fixes and newer snapshot

*mol-0.9.69_pre5 (17 Sep 2003)

17 Sep 2003; Lars Weiler mol-0.9.69_pre4.ebuild,
mol-0.9.69_pre5.ebuild:
Fixes the MOLAudio problems (at least with esd). Please test!

*mol-0.9.69_pre4 (31 Aug 2003)

31 Aug 2003; Lars Weiler mol-0.9.69_pre4.ebuild:
Another snapshot of MOL. New features (beside other bugfixes):
- SCSI access (which also allows you to write CD-Rs with scsi-emu enabled)
- USB support
- ALSA sound support

The ebuild has been changed a bit. It now makes use of several USE-flags:
- alsa: builds MOL with alsa sound driver support
- debug: builds the MOL debugger
- esd: builds MOL with ESounD support
- oldworld (local USE-flag): includes OldWorld support
- X: uses the X Window System

Due to problems with the MOLAudio driver ("Incompatible MOLAudio version!")
this ebuild is masked in package.mask. We will do a re-snapshot later and
hope that the problem is fixed then.

*mol-0.9.69_pre3 (10 Jul 2003)

10 Jul 2003; Lars Weiler metadata.xml,
mol-0.9.69_pre3.ebuild:
Monthly pre-release version bump.

09 Jun 2003; mol-0.9.69_pre1.ebuild,
mol-0.9.69_pre2.ebuild:
DEPEND on sed >= 4

*mol-0.9.69_pre2 (25 May 2003)

25 May 2003; Luca Barbato mol-0.9.69_pre2.ebuild:
rsync snapshot of mol. Solves bug #21548

*mol-0.9.69_pre1 (10 Apr 2003)

10 Apr 2003; Lars Weiler mol-0.9.69_pre1.ebuild:
rsync snapshot of mol. This version supports SMP with the benh10-kernel and
contain some minor bugfixes.

15 Mar 2003; Luca Barbato mol-0.9.68-r4.ebuild:
changed the ipchains dep from sys-apps/ipchains to net-firewall/ipchains

*mol-0.9.68-r4 (14 Mar 2003)

14 Mar 2003; Mark Guertin mol-0.9.68-r4.ebuild:
new release upstream, the final 0.9.68. Several new features including booting
from disk images and xdga video

*mol-0.9.68-r3 (11 Mar 2003)

11 Mar 2003; Mark Guertin mol-0.9.68-r3.ebuild:
revision bump to fixup some silent DHCP failures which were giving users hard
times

*mol-0.9.68-r2 (26 Feb 2003)

01 Mar 2003; Mark Guertin mol-0.9.68-r2.ebuild :
updated RDEPEND for sed 4.0 or higher for sed -i

26 Feb 2003; Mark Guertin mol-0.9.68-r2.ebuild files/digest-mol-0.9.68-r2 :
New build. Compatible with OSX 10.2.4, updated audio and ethernet drivers,
ejectable cdroms and more. Thanks to Lars Weiler for the build and testing.

*mol-0.9.68 (06 Feb 2003)

11 Mar 2003; Martin Holzer mol-0.9.68-r2.ebuild,
mol-0.9.68-r3.ebuild, mol-0.9.68.ebuild:
changed sys-apps/iptables to net-firewall/iptables

06 Feb 2003; Mark Guertin mol-0.9.68.ebuild :
Added new build from stable cvs snapshot. Added iptables and
dhcpd as dependancies (required for automatic networking setup).
Closes bugs #13136, #15034. Thanks to Lars Weiler again (I got
the patch right this time).

*mol-0.9.65-r1 (30 Jan 2003)
30 Jan 2003; Mark Guertin mol-0.9.65-r1.ebuild :
Added patch to close bug # 13136, errors in dhcp-mol.conf. Thanks
to Lars Weiler for this bug.

06 Dec 2002; Rodney Rees : changed sparc ~sparc keywords

*mol-0.9.65 (20 July 2002)

29 Sep 2002; Mark Guertin mol-0.9.65.ebuild :
Added -alpha to KEYWORDS and filtered -fsigne-char flag, this causes
problems for users trying to run OS X (repeated keys)

23 Sep 2002; Mike Frysinger

Changed LICENSE from GPL to GPL-2 and removed pkg_setup check for ARCH

20 July 2002; Phil Bordelon mol-0.9.63.ebuild mol-0.9.64.ebuild :

Added -sparc64 KEYWORDS to go along with the -sparc and -x86 KEYWORDS
added by Gerk.

*mol-0.9.64 (12 July 2002)

23 Sep 2002; Mike Frysinger

Changed LICENSE from GPL to GPL-2 and removed pkg_setup check for ARCH

12 July 2002; Gerk (gerk@gentoo.org)

Added 0.9.64, simple bump and moved to
emake instead of make

*mol-0.9.63 (5 May 2002)

23 Sep 2002; Mike Frysinger

Changed LICENSE from GPL to GPL-2 and removed pkg_setup check for ARCH

22 June 2002; Gerk (gerk@gentoo.org)

Added ARCH checks and missing env vars to build, no revision
bump as no need to rebild for this

5 May 2002; David Chamberlain ChangeLog :

Initial version (post ppc/x86 portage merge)

Manifest

DIST mol-0.9.72.1.tar.bz2 1818637 RMD160 0f6b8f424641c68fa23a54f695eb3c6aec991615 SHA1 a608d9b542e73c574b2b11ba32688106673ec801 SHA256 05a8fe9ec1bf4f275b173868702fc52f5715b4206f9152e5835c18c6f75d394d
DIST mol-0.9.72.tar.bz2 1867036 RMD160 90af6485db12395f689f5e403752099d352d61ae SHA1 bea1925be1f889ee59a1a975eb3645899819ad88 SHA256 470bb5e56590c9312290a57689f73d1237c928f731fb7b668e5d01f9459f0a1f
EBUILD mol-0.9.72.1.ebuild 4286 RMD160 ab32a1e5229fc72a99bd11f09949783e53f34dd6 SHA1 739b9c8a40d7cfee8f33503818bb15b244ca0dcb SHA256 de01bb0874169a98e408e66bc599ed0400c51e7203527cdca7121339b02a5351
EBUILD mol-0.9.72.ebuild 4283 RMD160 89e34153c8143c979542a9db4003b6e3d4f7ee0d SHA1 32031e64de5188f5618232197f25f9e90582c395 SHA256 30c768984379e8d44c6a6f63450c0e1451dceab32cf63c62590c91b3ce10599f
MISC ChangeLog 15314 RMD160 02c07914cd2d56819c2c01a694cc4c5366e42fb6 SHA1 987063c8215b44a0b63a4d7b01382029e797c4a4 SHA256 08defb63db6588e06ded99bb76face87620ab640f00e56519bdbabd918f60eb7
MISC metadata.xml 361 RMD160 4a1251c7fdae0cd17a9f91d1f63988105f356365 SHA1 714bf95393d027904397d629d88a04cfdcb22538 SHA256 2e18de6eeef4db83be08f0b31f4a59e10f293cb591df12de8889174175cbae49

metadata.xml




ppc

Mac-On-Linux - Allows the virtualization of MacOS or MacOS X from within Linux

josejx@gentoo.orgJoseph Jezak

mol-0.9.72.1.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/mol/mol-0.9.72.1.ebuild,v 1.3 2008/03/23 21:30:01 robbat2 Exp $

inherit flag-o-matic eutils linux-mod

DESCRIPTION="Mac-on-Linux (MOL) allows PPC users run MacOS(X) under Linux"
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
sys-libs/zlib
net-firewall/iptables
alsa? ( media-libs/alsa-lib )
vnc? ( net-misc/vnc )
X? ( x11-libs/libXext
dga? ( x11-libs/libXxf86dga ) )"
DEPEND="${RDEPEND}
X? ( x11-libs/libXt
x11-proto/xextproto
dga? ( x11-proto/xf86dgaproto ) )"

MODULE_NAMES="mol(mol:${S}/src/kmod/Linux)
sheep(net:${S}/src/netdriver)"

pkg_setup() {
echo
if ! use fbcon; then
elog "If you want to use MOL fullscreen on a virtual console"
elog "be sure to have the USE-flag \"fbcon\" set!"
fi
echo

linux-mod_pkg_setup
}

src_compile() {
filter-flags -fsigned-char
replace-flags -O? -O1

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
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:iCONFIG_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

dodir /var/lib/mol/lock
touch "${D}"/var/lib/mol/lock/.keep
dodir /var/lib/mol/log
touch "${D}"/var/lib/mol/log/.keep
}

pkg_postinst() {
echo
elog "Mac-on-Linux is now installed. To run, use the command startmol."
if use fbcon; then
elog "You might want to configure video modes first with molvconfig."
fi
elog "Other configuration is in /etc/molrc. For more info see:"
elog " http://www.maconlinux.org"
elog "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:"
ewarn "For connecting to Linux:"
ewarn " Universal TUN/TAP device driver support (CONFIG_TUN)"
ewarn "For the dhcp server:"
ewarn " Packet Socket (CONFIG_PACKET)"
ewarn "For NAT:"
ewarn " Network packet filtering (CONFIG_NETFILTER)"
ewarn " Connection tracking (CONFIG_IP_NF_CONNTRACK)"
ewarn " IP tables support (CONFIG_IP_NF_IPTABLES)"
ewarn " Packet filtering (CONFIG_IP_NF_FILTER)"
ewarn " Full NAT (CONFIG_IP_NF_NAT)"
ewarn " MASQUERADE target support (CONFIG_IP_NF_TARGET_MASQUERADE)"
echo
}

mol-0.9.72.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/mol/mol-0.9.72.ebuild,v 1.4 2008/03/23 21:30:01 robbat2 Exp $

inherit flag-o-matic eutils linux-mod

DESCRIPTION="Mac-on-Linux (MOL) allows PPC users run MacOS(X) under Linux"
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
sys-libs/zlib
net-firewall/iptables
alsa? ( media-libs/alsa-lib )
vnc? ( net-misc/vnc )
X? ( x11-libs/libXext
dga? ( x11-libs/libXxf86dga ) )"
DEPEND="${RDEPEND}
X? ( x11-libs/libXt
x11-proto/xextproto
dga? ( x11-proto/xf86dgaproto ) )"

MODULE_NAMES="mol(mol:${S}/src/kmod/Linux)
sheep(net:${S}/src/netdriver)"

pkg_setup() {
echo
if ! use fbcon; then
elog "If you want to use MOL fullscreen on a virtual console"
elog "be sure to have the USE-flag \"fbcon\" set!"
fi
echo

linux-mod_pkg_setup
}

src_compile() {
filter-flags -fsigned-char
replace-flags -O? -O1

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
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:iCONFIG_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

dodir /var/lib/mol/lock
touch "${D}"/var/lib/mol/lock/.keep
dodir /var/lib/mol/log
touch "${D}"/var/lib/mol/log/.keep
}

pkg_postinst() {
echo
elog "Mac-on-Linux is now installed. To run, use the command startmol."
if use fbcon; then
elog "You might want to configure video modes first with molvconfig."
fi
elog "Other configuration is in /etc/molrc. For more info see:"
elog " http://www.maconlinux.org"
elog "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:"
ewarn "For connecting to Linux:"
ewarn " Universal TUN/TAP device driver support (CONFIG_TUN)"
ewarn "For the dhcp server:"
ewarn " Packet Socket (CONFIG_PACKET)"
ewarn "For NAT:"
ewarn " Network packet filtering (CONFIG_NETFILTER)"
ewarn " Connection tracking (CONFIG_IP_NF_CONNTRACK)"
ewarn " IP tables support (CONFIG_IP_NF_IPTABLES)"
ewarn " Packet filtering (CONFIG_IP_NF_FILTER)"
ewarn " Full NAT (CONFIG_IP_NF_NAT)"
ewarn " MASQUERADE target support (CONFIG_IP_NF_TARGET_MASQUERADE)"
echo
}