Add win4lin

This commit is contained in:
Mario Fetka
2022-11-19 21:49:12 +01:00
parent 1bf994041f
commit dcd0ea6843
77 changed files with 3687 additions and 50 deletions

View File

@@ -0,0 +1,195 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit multibuild toolchain-funcs xdg
DESCRIPTION="The Versatile Commodore Emulator"
HOMEPAGE="https://vice-emu.sourceforge.io/"
SRC_URI="mirror://sourceforge/vice-emu/releases/${P}.tar.gz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
IUSE="
alsa cpuhistory debug doc ethernet ffmpeg flac gif +gtk headless jpeg
lame mpg123 ogg openmp oss parport pci png portaudio pulseaudio sdl zlib"
REQUIRED_USE="
|| ( gtk headless sdl )
gtk? ( zlib )"
# ffmpeg/lame are loaded by dlopen(), keeping := to rebuild with same headers
# see bug #834359 for the ffmpeg upper bound
RDEPEND="
virtual/libintl
app-emulation/opencbm
alsa? ( media-libs/alsa-lib )
ethernet? (
net-libs/libpcap
sys-libs/libcap
)
ffmpeg? ( <media-video/ffmpeg-5:= )
flac? ( media-libs/flac:= )
gif? ( media-libs/giflib:= )
gtk? (
dev-libs/atk
dev-libs/glib:2
media-libs/fontconfig:1.0
media-libs/glew:0=
sys-libs/readline:=
virtual/opengl
x11-libs/cairo
x11-libs/gdk-pixbuf:2
x11-libs/gtk+:3[X]
x11-libs/libX11
x11-libs/pango
)
jpeg? ( media-libs/libjpeg-turbo:= )
lame? ( media-sound/lame )
mpg123? ( media-sound/mpg123 )
ogg? (
media-libs/libogg
media-libs/libvorbis
)
parport? ( sys-libs/libieee1284 )
pci? ( sys-apps/pciutils )
png? ( media-libs/libpng:= )
portaudio? ( media-libs/portaudio )
pulseaudio? ( || ( media-libs/libpulse media-sound/pulseaudio ) )
sdl? (
media-libs/libsdl2[video]
media-libs/sdl2-image
sys-libs/readline:=
)
zlib? ( sys-libs/zlib:= )"
DEPEND="
${RDEPEND}
x11-base/xorg-proto"
BDEPEND="
app-arch/unzip
app-text/dos2unix
dev-embedded/xa
dev-lang/perl
sys-apps/texinfo
sys-devel/flex
sys-devel/gettext
virtual/pkgconfig
virtual/yacc
doc? ( virtual/texi2dvi )
gtk? ( x11-misc/xdg-utils )"
QA_CONFIGURE_OPTIONS="--disable-static" #814380
pkg_pretend() {
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
}
pkg_setup() {
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
}
src_prepare() {
default
# Strip the predefined C(XX)FLAGS.
sed -i -r 's:(VICE_C(XX)?FLAGS=)"[^$]+":\1:' configure || die
MULTIBUILD_VARIANTS=(
$(usev gtk)
$(usev headless)
$(usev sdl)
)
# Debug build currently broken without copy sources.
multibuild_copy_sources
}
src_configure() {
tc-export AR
multibuild_foreach_variant run_in_build_dir multibuild_src_configure
}
multibuild_src_configure() {
# Append ".variant" to x* programs if building multiple variants.
local xform
(( ${#MULTIBUILD_VARIANTS[@]} > 1 )) &&
xform="/^x/s/\$/.${MULTIBUILD_VARIANT}/"
vice-multi_enable() {
if [[ ${MULTIBUILD_VARIANT} == ${1} ]]; then
echo --enable-${2}
else
echo --disable-${2}
fi
}
local econfargs=(
--program-transform-name="${xform}"
$(vice-multi_enable gtk desktop-files)
$(vice-multi_enable gtk native-gtk3ui)
$(vice-multi_enable headless headlessui)
$(vice-multi_enable sdl sdlui2)
$(usex debug $(vice-multi_enable gtk debug-gtk3ui) --disable-debug-gtk3ui)
$(use_enable cpuhistory)
$(use_enable debug)
$(use_enable doc pdf-docs)
$(use_enable ethernet)
$(use_enable ffmpeg external-ffmpeg)
$(use_enable lame)
$(use_enable openmp)
$(use_enable parport libieee1284)
$(use_enable portaudio)
$(use_with alsa)
$(use_with flac)
$(use_with gif)
$(use_with jpeg)
$(use_with mpg123)
$(use_with ogg vorbis)
$(use_with oss)
$(use_with png)
$(use_with pulseaudio pulse)
$(use_with zlib)
$(usex alsa --enable-midi $(use_enable oss midi))
$(usev !pci ac_cv_header_pci_pci_h=no)
--disable-arch
--disable-sdlui
--enable-realdevice
ac_cv_lib_ungif_EGifPutLine=no # ensure use giflib, not ungif
# $(use_with curl libcurl) # new in 3.6 but is a unused placeholder
# --enable-io-simulation # likewise
)
econf "${econfargs[@]}"
}
src_compile() {
multibuild_foreach_variant run_in_build_dir emake
}
src_install() {
# Get xdg-desktop-menu to play nicely while doing the install.
dodir /etc/xdg/menus /usr/share/{applications,desktop-directories}
XDG_UTILS_INSTALL_MODE=system \
XDG_DATA_DIRS="${ED}"/usr/share \
XDG_CONFIG_DIRS="${ED}"/etc/xdg \
multibuild_foreach_variant run_in_build_dir default
rm -f "${ED}"/usr/share/applications/*.cache || die
vice-install_extras() {
docinto html
dodoc doc/html/*.{html,css}
dodoc -r doc/html/images
insinto /usr/share/vim/vimfiles/ftdetect
doins doc/vim/ftdetect/*.vim
insinto /usr/share/vim/vimfiles/syntax
doins doc/vim/syntax/*.vim
}
multibuild_for_best_variant run_in_build_dir vice-install_extras
}

View File

@@ -0,0 +1,95 @@
# ChangeLog for app-emulation/win4lin
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/win4lin/ChangeLog,v 1.19 2004/09/05 23:54:49 ciaranm Exp $
06 Sep 2004; Ciaran McCreesh <ciaranm@gentoo.org> win4lin-5.1.1.ebuild:
Switch to use epause and ebeep, bug #62950
*win4lin-5.1.1 (18 Mar 2004)
26 Aug 2004; José Alberto Suárez López <bass@gentoo.org> :
Updated to version 5.1.18c. Added new info to ebuild.
*win4lin-5.1 (18 Mar 2004)
29 Jun 2004; Aron Griffis <agriffis@gentoo.org> win4lin-5.0.1.ebuild,
win4lin-5.0.4.ebuild, win4lin-5.0.8.ebuild, win4lin-5.1.ebuild:
sync IUSE (-doc)
01 Jun 2004; Aron Griffis <agriffis@gentoo.org> win4lin-4.0.12.ebuild,
win4lin-4.0.16.ebuild, win4lin-4.0.20.ebuild, win4lin-4.0.22.ebuild,
win4lin-5.0.1.ebuild, win4lin-5.0.4.ebuild, win4lin-5.0.8.ebuild,
win4lin-5.1.ebuild:
Fix use invocation
18 Mar 2004; José Alberto Suárez López <bass@gentoo.org> win4lin-5.1.ebuild:
New version
30 Dec 2003; Sven Blumenstein <bazik@gentoo.org> win4lin-5.0.1.ebuild,
win4lin-5.0.4.ebuild, win4lin-5.0.8.ebuild:
Fixed a typo in all 5.x ebuilds which made repoman puke.
I wonder how these ebuilds got commited without repoman
blocking the commit...
*win4lin-5.0.8 (25 Oct 2003)
18 Mar 2004; Jos<6F> Alberto Su<53>rez L<>pez <bass@gentoo.org> win4lin-5.0.8.ebuild:
Stable in x86
25 Oct 2003; Jos<6F> Alberto Su<53>rez L<>pez <bass@gentoo.org> win4lin-5.0.8.ebuild:
New Version
*win4lin-5.0.4 (17 Aug 2003)
17 Aug 2003; J.Alberto Su<53>rez L. <bass@gentoo.org> win4lin-5.0.4.ebuild:
New version.
This version has beta support to glibc-2.3.2.
*win4lin-5.0.1 (03 Jun 2003)
19 Jun 2003; J.Alberto Su<53>rez L. <bass@gentoo.org> win4lin-5.0.1.ebuild:
Marked as stable.
03 Jun 2003; J.Alberto Su<53>rez L. <bass@gentoo.org> win4lin-5.0.1.ebuild:
New version and new evaluation code.
*win4lin-4.0.22 (08 Jun 2003)
29 Jun 2003; Daniel Ahlberg <aliz@gentoo.org> :
Added missing changelog entry.
*win4lin-4.0.20 (13 Apr 2003)
13 Apr 2003; J.Alberto Su<53>rez L. <bass@gentoo.org> win4lin-4.0.20.ebuild:
new version
*win4lin-4.0.16 (02 Mar 2003)
02 Mar 2003; J.Alberto Su<53>rez L. <bass@gentoo.org> win4lin-4.0.16.ebuild:
New version
*win4lin-4.0.12 (10 Jan 2002)
28 Feb 2002; Alastair Tse <liquidx@gentoo.org> win4lin-4.0.12.ebuild:
Updated IUSE field
10 Jan 2002; J.Alberto Su<53>rez L. <bass@gentoo.org> win4lin-4.0.12.ebuild:
The next-generation :)
-Added evaluation-license
-The rpm is auto-fetched
-A lot of info
-USE doc flag to install docs
...
*win4lin-4.0.11 (16 Dec 2002)
16 Dec 2002; John Lennard <yakmoose@gentoo.org> win4lin-4.0.11.ebuild
Added execution of post-install and pre-remove, these are just the
originall Netraverse ones so far and many still need changing. Added a
config section to the ebuild also to install the Windows files.
12 Dec 2002; Seemant Kulleen <seemant@gentoo.org> win4lin-4.0.11.ebuild
files/digest-win4lin-4.0.11 ChangeLog :
Initial, preliminary ebuild for win4lin. Handing over to yakmoose@gentoo
for the finishing touches

View File

@@ -0,0 +1,33 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
MD5 950f3e38720efa26ce4ce0cf951db012 win4lin-4.0.22.ebuild 2416
MD5 7c9a96588c1cbe8692e7fb3671f12bbd win4lin-5.0.8.ebuild 2815
MD5 3376c113f7d65f780aa0c02e54ef53a5 ChangeLog 3154
MD5 dd5c86e247c3e37d4cccb902604baf9f win4lin-5.0.4.ebuild 2815
MD5 397a65d54ae5dbe379e464912d39b9c5 win4lin-4.0.16.ebuild 2412
MD5 f2639a2fb529f818e5f0a89e93754489 win4lin-5.1.ebuild 2815
MD5 80df6097e8c9748b3cb41808ada21f86 metadata.xml 465
MD5 dff0eadb5df79743de992424e4c6a0b3 win4lin-4.0.12.ebuild 2412
MD5 83b6608bfa65495d967c7408d30b7cda win4lin-5.1.1.ebuild 3178
MD5 5628564e57bbf1ed9bad2771cbf15011 win4lin-4.0.20.ebuild 2411
MD5 9ff0d53144f3d3123cab081aa87f7fdf win4lin-5.0.1.ebuild 2816
MD5 f55a22f0e3747c4673f80d53803502f2 files/digest-win4lin-4.0.12 142
MD5 6e0fd7f874abc97d2186d2c99527d488 files/digest-win4lin-4.0.16 142
MD5 5fec029d8463ba33430ac0d42b4fc687 files/win4lin.initd.new 456
MD5 e910056949f5711c131f501e1fea8742 files/digest-win4lin-4.0.20 142
MD5 710ef99af4d9318d273c6596773de660 files/digest-win4lin-4.0.22 72
MD5 64806537e817b95e25bb98a6e1b67379 files/win4lin.initd 1677
MD5 799dd2399a061b88260b94b201e35107 files/digest-win4lin-5.0.8 71
MD5 baf7d82f65c984dda45ba34d32aac52f files/registerme.sh 327
MD5 a56d557323abbc90fb5aab4b4896b6a2 files/digest-win4lin-5.0.1 71
MD5 3653275db4219e37fdd58300140669ea files/digest-win4lin-5.0.4 71
MD5 7da856dbe813f4f7c0d4332456339448 files/digest-win4lin-5.1.1 72
MD5 9ee870309aa9caefa4449a3b6d2dff5d files/digest-win4lin-5.1 72
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFBO6akLLFUmVNQ7rkRAi2dAKDVNEj+G7SKxuVg4ADMzUe89bNjBgCffh4y
81FNNhBr7hCXUkoWjwjbZSU=
=2zJT
-----END PGP SIGNATURE-----

View File

@@ -0,0 +1,13 @@
#!/bin/sh
echo 'Your license evaluation code is:'
echo '-> Win4Lin 4.x:'
echo ' 1w4e053x-n0aaf8-7tw9-587j-h47j-d6'
echo '-> Win4Lin 5.x'
echo ' 1w5e055x-n0ca34-xjhx-xx3c-4c3c-73'
echo
echo 'Remember you need do this in root mode.'
echo 'copy it and press a key to start the reg.'
read
sh /opt/win4lin/bin/ask_license.sh

View File

@@ -0,0 +1,68 @@
#!/sbin/runscript
. /etc/mrgssv.sh
depend() {
after *
}
CLEAN_TMP() {
[ -z "${VARMERGE}" ] && return
find ${VARMERGE}/tmp -atime +1 -type f -exec rm {} \;
return
}
Work_Around() {
[ "_${SYSTEMTYPE} != "_linux" ] && return
# In certain situations on Linux systems, the Win4Lin installation
# script does not complete.
# If it looks like that situation then re-run the installation script
# and force the making of the images. (Even though the images should
# have been automatically created in this situation.)
# When the images are not there, but Windows files are loaded, then
# re-run the install script and then explicitly make images.
[ -r "${VARMERGE}"/image/std/mono/mono.img ] && return
[ ! -r "${VARMERGE}"/dosroot/wincabs/info.txt ] && return
# Don't continue if the modules are not loaded.
modules=`/sbin/lsmod|grep Mmerge`
[ "x$modules" = "x" ] && return
[ -r "${VARMERGE}"/postinst-running ] && return
touch "${VARMERGE}"/postinst-running
sh "${STATICMERGE}"/postinst_rpm.sh \
> "${VARMERGE}"/log/postinst-boot.log 2>&1
ls -l "${VARMERGE}"/image/std/* > "${VARMERGE}"/log/mkimg-boot.log 2>&1
/usr/bin/mkimg >> "${VARMERGE}"/log/mkimg-boot.log 2>&1
rm -f "${VARMERGE}"/postinst-running
}
start() {
if [ "_${SYSTEMTYPE}" != "_linux" ]
then
ebegin "Starting ${MERGENAME}"
else
ebegin "Starting ${MERGENAME}:"
CLEAN_TMP
sh ${STATICMERGE}mrg_setup.sh
Work_Around
eend $?
}
stop() {
if [ "_${SYSTEMTYPE}" != "_linux" ]
then
ebegin "Stopping ${MERGENAME}"
eend $?
return
fi
ebegin "Stopping ${MERGENAME}:"
( cd ${STATICMERGE}/drivers ; sh tools/unloadem )
${STATICMERGE}/rlockshm -r > /dev/null 2>&1
eend $?
}

View File

@@ -0,0 +1,21 @@
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/win4lin/files/win4lin.initd.new,v 1.3 2004/07/14 21:24:52 agriffis Exp $
depend() {
need net
}
start() {
ebegin "Starting Win4Lin"
/etc/rc.d/init.d/Win4Lin start > /dev/null
eend $?
}
stop() {
ebegin "Stopping Win4Lin"
/etc/rc.d/init.d/Win4Lin stop > /dev/null
eend $?
}

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>no-herd</herd>
<maintainer>
<email>bass@gentoo.org</email>
<name>José Alberto Suárez López</name>
</maintainer>
<longdescription>
The NeTraverse product suite delivers the fastest and most cost-effective, resource-efficient, high-performance solution for running Windows applications on Linux.
</longdescription>
</pkgmetadata>

View File

@@ -0,0 +1,79 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/win4lin/win4lin-4.0.12.ebuild,v 1.8 2004/06/24 22:36:33 agriffis Exp $
IUSE="doc"
MY_P=Win4Lin-5.3.12b-d.i386
S=${WORKDIR}
DESCRIPTION="Win4Lin allows you run Windows applications somewhat natively
under linux."
HOMEPAGE="http://www.netraverse.com/"
SRC_URI="mirror://gentoo/${MY_P}.rpm
doc? ( https://www.netraverse.com/support/docs/Win4Lin-4.0.0-manual.pdf )"
SLOT="0"
LICENSE="NeTraverse"
KEYWORDS="x86"
DEPEND="app-arch/rpm2targz
sys-kernel/win4lin-sources"
src_unpack() {
rpm2targz ${DISTDIR}/${MY_P}.rpm
tar zxf ${WORKDIR}/${MY_P}.tar.gz
}
src_compile() {
einfo "nothing to compile; binary package."
}
src_install() {
mv ${S}/opt ${D}
mv ${S}/etc ${D}
cp ${FILESDIR}/registerme.sh ${D}/opt/win4lin/
if use doc
then
dodoc ${DISTDIR}/Win4Lin-4.0.0-manual.pdf
fi
}
pkg_postinst() {
/opt/win4lin/postinst_rpm.sh
einfo "If this is a new Win4Lin Install you will need to run the following command"
einfo "ebuild /var/db/pkg/app-emulation/${PF}/${PF}.ebuild config"
einfo "to install the windows setup files. You will need your Windows cdrom in the "
einfo "drive in order to complete this step."
}
pkg_prerm() {
/opt/win4lin/remove_rpm.sh
}
pkg_config() {
loadwindowsCD cddevice /dev/cdrom
echo "LICENSE_CODE=1w4e053x-n0aaf8-7tw9-587j-h47j-d6" > /var/win4lin/install/license.lic
ln -s /etc/rc.d/init.d/Win4Lin /etc/init.d/Win4Lin
#put debugging stuff here
if [ ${?} -eq "0" ]; then
einfo "You can now run the command \"installwindows\" from an xterm "
einfo "as a non-root user to install a personal copy of Windows that Win4Lin "
einfo "will use for that user."
einfo
einfo "Win4Lin is a commercial product, you now are using a evaluation-license"
einfo "for 15 days evaluation. If you want a extra 15 days of evaluation you"
einfo 'must run "sh /opt/win4lin/registerme.sh"'
einfo
einfo 'You can help Gentoo Linux and obatin a full license at a discont offer'
einfo 'for gentoo users in http://www.netraverse.com/gentoo.htm'
einfo 'Netraverse donate to Gentoo Linux a percent of each purchase.'
einfo 'Thanks Netraverse.'
einfo
einfo 'Remember, you must do "/etc/init.d/Win4Lin start" before start w4l'
einfo 'Also you can add it to default boot "rc-update add Win4Lin default"'
fi
}

View File

@@ -0,0 +1,79 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/win4lin/win4lin-4.0.16.ebuild,v 1.6 2004/06/24 22:36:33 agriffis Exp $
IUSE="doc"
MY_P=Win4Lin-5.3.16a-d.i386
S=${WORKDIR}
DESCRIPTION="Win4Lin allows you run Windows applications somewhat natively
under linux."
HOMEPAGE="http://www.netraverse.com/"
SRC_URI="mirror://gentoo/${MY_P}.rpm
doc? ( https://www.netraverse.com/support/docs/Win4Lin-4.0.0-manual.pdf )"
SLOT="0"
LICENSE="NeTraverse"
KEYWORDS="x86"
DEPEND="app-arch/rpm2targz
sys-kernel/win4lin-sources"
src_unpack() {
rpm2targz ${DISTDIR}/${MY_P}.rpm
tar zxf ${WORKDIR}/${MY_P}.tar.gz
}
src_compile() {
einfo "nothing to compile; binary package."
}
src_install() {
mv ${S}/opt ${D}
mv ${S}/etc ${D}
cp ${FILESDIR}/registerme.sh ${D}/opt/win4lin/
if use doc
then
dodoc ${DISTDIR}/Win4Lin-4.0.0-manual.pdf
fi
}
pkg_postinst() {
/opt/win4lin/postinst_rpm.sh
einfo "If this is a new Win4Lin Install you will need to run the following command"
einfo "ebuild /var/db/pkg/app-emulation/${PF}/${PF}.ebuild config"
einfo "to install the windows setup files. You will need your Windows cdrom in the "
einfo "drive in order to complete this step."
}
pkg_prerm() {
/opt/win4lin/remove_rpm.sh
}
pkg_config() {
loadwindowsCD cddevice /dev/cdrom
echo "LICENSE_CODE=1w4e053x-n0aaf8-7tw9-587j-h47j-d6" > /var/win4lin/install/license.lic
ln -s /etc/rc.d/init.d/Win4Lin /etc/init.d/Win4Lin
#put debugging stuff here
if [ ${?} -eq "0" ]; then
einfo "You can now run the command \"installwindows\" from an xterm "
einfo "as a non-root user to install a personal copy of Windows that Win4Lin "
einfo "will use for that user."
einfo
einfo "Win4Lin is a commercial product, you now are using a evaluation-license"
einfo "for 15 days evaluation. If you want a extra 15 days of evaluation you"
einfo 'must run "sh /opt/win4lin/registerme.sh"'
einfo
einfo 'You can help Gentoo Linux and obatin a full license at a discont offer'
einfo 'for gentoo users in http://www.netraverse.com/gentoo.htm'
einfo 'Netraverse donate to Gentoo Linux a percent of each purchase.'
einfo 'Thanks Netraverse.'
einfo
einfo 'Remember, you must do "/etc/init.d/Win4Lin start" before start w4l'
einfo 'Also you can add it to default boot "rc-update add Win4Lin default"'
fi
}

View File

@@ -0,0 +1,79 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/win4lin/win4lin-4.0.20.ebuild,v 1.7 2004/06/24 22:36:33 agriffis Exp $
IUSE="doc"
MY_P=Win4Lin-5.3.20a-d.i386
S=${WORKDIR}
DESCRIPTION="Win4Lin allows you run Windows applications somewhat natively
under linux."
HOMEPAGE="http://www.netraverse.com/"
SRC_URI="mirror://gentoo/${MY_P}.rpm
doc? ( https://www.netraverse.com/support/docs/Win4Lin-4.0.0-manual.pdf )"
SLOT="0"
LICENSE="NeTraverse"
KEYWORDS="x86"
DEPEND="app-arch/rpm2targz
sys-kernel/win4lin-sources"
src_unpack() {
rpm2targz ${DISTDIR}/${MY_P}.rpm
tar zxf ${WORKDIR}/${MY_P}.tar.gz
}
src_compile() {
einfo "nothing to compile; binary package."
}
src_install() {
mv ${S}/opt ${D}
mv ${S}/etc ${D}
cp ${FILESDIR}/registerme.sh ${D}/opt/win4lin/
if use doc
then
dodoc ${DISTDIR}/Win4Lin-4.0.0-manual.pdf
fi
}
pkg_postinst() {
/opt/win4lin/postinst_rpm.sh
echo "LICENSE_CODE=1w4e053x-n0aaf8-7tw9-587j-h47j-d6" > /var/win4lin/install/license.lic
einfo "If this is a new Win4Lin Install you will need to run the following command"
einfo "ebuild /var/db/pkg/app-emulation/${PF}/${PF}.ebuild config"
einfo "to install the windows setup files. You will need your Windows cdrom in the "
einfo "drive in order to complete this step."
}
pkg_prerm() {
/opt/win4lin/remove_rpm.sh
}
pkg_config() {
loadwindowsCD cddevice /dev/cdrom
ln -s /etc/rc.d/init.d/Win4Lin /etc/init.d/Win4Lin
#put debugging stuff here
if [ ${?} -eq "0" ]; then
einfo "You can now run the command \"installwindows\" from an xterm "
einfo "as a non-root user to install a personal copy of Windows that Win4Lin "
einfo "will use for that user."
einfo
einfo "Win4Lin is a commercial product, you now are using a evaluation-license"
einfo "for 15 days evaluation. If you want a extra 15 days of evaluation you"
einfo 'must run "sh /opt/win4lin/registerme.sh"'
einfo
einfo 'You can help Gentoo Linux and obatin a full license at a discont offer'
einfo 'for gentoo users in http://www.netraverse.com/gentoo.htm'
einfo 'Netraverse donate to Gentoo Linux a percent of each purchase.'
einfo 'Thanks Netraverse.'
einfo
einfo 'Remember, you must do "/etc/init.d/Win4Lin start" before start w4l'
einfo 'Also you can add it to default boot "rc-update add Win4Lin default"'
fi
}

View File

@@ -0,0 +1,79 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/win4lin/win4lin-4.0.22.ebuild,v 1.7 2004/06/24 22:36:33 agriffis Exp $
IUSE="doc"
MY_P=Win4Lin-5.3.22a-d.i386
S=${WORKDIR}
DESCRIPTION="Win4Lin allows you run Windows applications somewhat natively
under linux."
HOMEPAGE="http://www.netraverse.com/"
SRC_URI="mirror://gentoo/${MY_P}.rpm"
# doc? ( https://www.netraverse.com/support/docs/Win4Lin-4.0.0-manual.pdf )"
SLOT="0"
LICENSE="NeTraverse"
KEYWORDS="x86"
DEPEND="app-arch/rpm2targz
sys-kernel/win4lin-sources"
src_unpack() {
rpm2targz ${DISTDIR}/${MY_P}.rpm
tar zxf ${WORKDIR}/${MY_P}.tar.gz
}
src_compile() {
einfo "nothing to compile; binary package."
}
src_install() {
mv ${S}/opt ${D}
mv ${S}/etc ${D}
cp ${FILESDIR}/registerme.sh ${D}/opt/win4lin/
if use doc
then
dodoc ${DISTDIR}/Win4Lin-4.0.0-manual.pdf
fi
}
pkg_postinst() {
/opt/win4lin/postinst_rpm.sh
echo "LICENSE_CODE=1w4e053x-n0aaf8-7tw9-587j-h47j-d6" > /var/win4lin/install/license.lic
einfo "If this is a new Win4Lin Install you will need to run the following command"
einfo "ebuild /var/db/pkg/app-emulation/${PF}/${PF}.ebuild config"
einfo "to install the windows setup files. You will need your Windows cdrom in the "
einfo "drive in order to complete this step."
}
pkg_prerm() {
/opt/win4lin/remove_rpm.sh
}
pkg_config() {
loadwindowsCD cddevice /dev/cdrom
ln -s /etc/rc.d/init.d/Win4Lin /etc/init.d/Win4Lin
#put debugging stuff here
if [ ${?} -eq "0" ]; then
einfo "You can now run the command \"installwindows\" from an xterm "
einfo "as a non-root user to install a personal copy of Windows that Win4Lin "
einfo "will use for that user."
einfo
einfo "Win4Lin is a commercial product, you now are using a evaluation-license"
einfo "for 15 days evaluation. If you want a extra 15 days of evaluation you"
einfo 'must run "sh /opt/win4lin/registerme.sh"'
einfo
einfo 'You can help Gentoo Linux and obatin a full license at a discont offer'
einfo 'for gentoo users in http://www.netraverse.com/gentoo.htm'
einfo 'Netraverse donate to Gentoo Linux a percent of each purchase.'
einfo 'Thanks Netraverse.'
einfo
einfo 'Remember, you must do "/etc/init.d/Win4Lin start" before start w4l'
einfo 'Also you can add it to default boot "rc-update add Win4Lin default"'
fi
}

View File

@@ -0,0 +1,88 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/win4lin/win4lin-5.0.1.ebuild,v 1.10 2004/06/30 03:19:34 agriffis Exp $
IUSE=""
MY_P=Win4Lin-5.5.1d-d.i386
S=${WORKDIR}
DESCRIPTION="Win4Lin allows you run Windows applications somewhat natively
under linux."
HOMEPAGE="http://www.netraverse.com/"
SRC_URI="mirror://gentoo/${MY_P}.rpm"
# doc? ( https://www.netraverse.com/support/docs/Win4Lin-4.0.0-manual.pdf )"
SLOT="0"
LICENSE="NeTraverse"
KEYWORDS="x86"
DEPEND="app-arch/rpm2targz
virtual/winkernel"
RDEPEND="!<=app-emulation/win4lin-4.0.22"
src_unpack() {
rpm2targz ${DISTDIR}/${MY_P}.rpm
tar zxf ${WORKDIR}/${MY_P}.tar.gz
}
src_compile() {
einfo "nothing to compile; binary package."
einfo "Remember you need a kernel patched like"
einfo "win4lin-sources or gs-sources."
}
src_install() {
mv ${S}/opt ${D}
mv ${S}/etc ${D}
cp ${FILESDIR}/registerme.sh ${D}/opt/win4lin/
cp ${FILESDIR}/win4lin.initd.new ${D}/opt/win4lin/
# if use doc
# then
# dodoc ${DISTDIR}/Win4Lin-4.0.0-manual.pdf
# fi
}
pkg_postinst() {
/opt/win4lin/postinst_rpm.sh
echo "LICENSE_CODE=1w5e055x-n0ca34-xjhx-xx3c-4c3c-73" > /var/win4lin/install/license.lic
einfo "If this is a new Win4Lin Install you will need to run the following command"
einfo "ebuild /var/db/pkg/app-emulation/${PF}/${PF}.ebuild config"
einfo "to install the windows setup files. You will need your Windows cdrom in the "
einfo "drive in order to complete this step."
einfo "============"
einfo "If this is an upgrade 4.x to 5.x the trial license code isn't valid,"
einfo "you need register it in NeTraverse, or unemerge ALL Win4Lin files."
}
pkg_prerm() {
/opt/win4lin/remove_rpm.sh
}
pkg_config() {
loadwindowsCD cddevice /dev/cdrom
cp /opt/win4lin/win4lin.initd.new /etc/init.d/Win4Lin
chmod +x /etc/init.d/Win4Lin
#put debugging stuff here
if [ ${?} -eq "0" ]; then
einfo "You can now run the command \"installwindows\" from an xterm "
einfo "as a non-root user to install a personal copy of Windows that Win4Lin "
einfo "will use for that user."
einfo
einfo "Win4Lin is a commercial product, you now are using a evaluation-license"
einfo "for 15 days evaluation. If you want a extra 15 days of evaluation you"
einfo 'must run "sh /opt/win4lin/registerme.sh"'
einfo
einfo 'You can help Gentoo Linux and obatin a full license at a discont offer'
einfo 'for gentoo users in http://www.netraverse.com/gentoo.htm'
einfo 'Netraverse donate to Gentoo Linux a percent of each purchase.'
einfo 'Thanks Netraverse.'
einfo
einfo 'Remember, you must do "/etc/init.d/Win4Lin start" before start w4l'
einfo 'Also you can add it to default boot "rc-update add Win4Lin default"'
fi
}

View File

@@ -0,0 +1,88 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/win4lin/win4lin-5.0.4.ebuild,v 1.9 2004/06/30 03:19:34 agriffis Exp $
IUSE=""
MY_P=Win4Lin-5.5.4d-d.i386
S=${WORKDIR}
DESCRIPTION="Win4Lin allows you run Windows applications somewhat natively
under linux."
HOMEPAGE="http://www.netraverse.com/"
SRC_URI="mirror://gentoo/${MY_P}.rpm"
# doc? ( https://www.netraverse.com/support/docs/Win4Lin-4.0.0-manual.pdf )"
SLOT="0"
LICENSE="NeTraverse"
KEYWORDS="x86"
DEPEND="app-arch/rpm2targz
virtual/winkernel"
RDEPEND="!<=app-emulation/win4lin-4.0.22"
src_unpack() {
rpm2targz ${DISTDIR}/${MY_P}.rpm
tar zxf ${WORKDIR}/${MY_P}.tar.gz
}
src_compile() {
einfo "nothing to compile; binary package."
einfo "Remember you need a kernel patched like"
einfo "win4lin-sources or gs-sources."
}
src_install() {
mv ${S}/opt ${D}
mv ${S}/etc ${D}
cp ${FILESDIR}/registerme.sh ${D}/opt/win4lin/
cp ${FILESDIR}/win4lin.initd.new ${D}/opt/win4lin/
# if use doc
# then
# dodoc ${DISTDIR}/Win4Lin-4.0.0-manual.pdf
# fi
}
pkg_postinst() {
/opt/win4lin/postinst_rpm.sh
echo "LICENSE_CODE=1w5e055x-n0ca34-xjhx-xx3c-4c3c-73" > /var/win4lin/install/license.lic
einfo "If this is a new Win4Lin Install you will need to run the following command"
einfo "ebuild /var/db/pkg/app-emulation/${PF}/${PF}.ebuild config"
einfo "to install the windows setup files. You will need your Windows cdrom in the "
einfo "drive in order to complete this step."
einfo "============"
einfo "If this is an upgrade 4.x to 5.x the trial license code isn't valid,"
einfo "you need register it in NeTraverse, or unemerge ALL Win4Lin files."
}
pkg_prerm() {
/opt/win4lin/remove_rpm.sh
}
pkg_config() {
loadwindowsCD cddevice /dev/cdrom
cp /opt/win4lin/win4lin.initd.new /etc/init.d/Win4Lin
chmod +x /etc/init.d/Win4Lin
#put debugging stuff here
if [ ${?} -eq "0" ]; then
einfo "You can now run the command \"installwindows\" from an xterm "
einfo "as a non-root user to install a personal copy of Windows that Win4Lin "
einfo "will use for that user."
einfo
einfo "Win4Lin is a commercial product, you now are using a evaluation-license"
einfo "for 15 days evaluation. If you want a extra 15 days of evaluation you"
einfo 'must run "sh /opt/win4lin/registerme.sh"'
einfo
einfo 'You can help Gentoo Linux and obatin a full license at a discont offer'
einfo 'for gentoo users in http://www.netraverse.com/gentoo.htm'
einfo 'Netraverse donate to Gentoo Linux a percent of each purchase.'
einfo 'Thanks Netraverse.'
einfo
einfo 'Remember, you must do "/etc/init.d/Win4Lin start" before start w4l'
einfo 'Also you can add it to default boot "rc-update add Win4Lin default"'
fi
}

View File

@@ -0,0 +1,88 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/win4lin/win4lin-5.0.8.ebuild,v 1.8 2004/06/30 03:19:34 agriffis Exp $
IUSE=""
MY_P=Win4Lin-5.5.8e-d.i386
S=${WORKDIR}
DESCRIPTION="Win4Lin allows you run Windows applications somewhat natively
under linux."
HOMEPAGE="http://www.netraverse.com/"
SRC_URI="mirror://gentoo/${MY_P}.rpm"
# doc? ( https://www.netraverse.com/support/docs/Win4Lin-4.0.0-manual.pdf )"
SLOT="0"
LICENSE="NeTraverse"
KEYWORDS="x86"
DEPEND="app-arch/rpm2targz
virtual/winkernel"
RDEPEND="!<=app-emulation/win4lin-4.0.22"
src_unpack() {
rpm2targz ${DISTDIR}/${MY_P}.rpm
tar zxf ${WORKDIR}/${MY_P}.tar.gz
}
src_compile() {
einfo "nothing to compile; binary package."
einfo "Remember you need a kernel patched like"
einfo "win4lin-sources or gs-sources."
}
src_install() {
mv ${S}/opt ${D}
mv ${S}/etc ${D}
cp ${FILESDIR}/registerme.sh ${D}/opt/win4lin/
cp ${FILESDIR}/win4lin.initd.new ${D}/opt/win4lin/
# if use doc
# then
# dodoc ${DISTDIR}/Win4Lin-4.0.0-manual.pdf
# fi
}
pkg_postinst() {
/opt/win4lin/postinst_rpm.sh
echo "LICENSE_CODE=1w5e055x-n0ca34-xjhx-xx3c-4c3c-73" > /var/win4lin/install/license.lic
einfo "If this is a new Win4Lin Install you will need to run the following command"
einfo "ebuild /var/db/pkg/app-emulation/${PF}/${PF}.ebuild config"
einfo "to install the windows setup files. You will need your Windows cdrom in the "
einfo "drive in order to complete this step."
einfo "============"
einfo "If this is an upgrade 4.x to 5.x the trial license code isn't valid,"
einfo "you need register it in NeTraverse, or unemerge ALL Win4Lin files."
}
pkg_prerm() {
/opt/win4lin/remove_rpm.sh
}
pkg_config() {
loadwindowsCD cddevice /dev/cdrom
cp /opt/win4lin/win4lin.initd.new /etc/init.d/Win4Lin
chmod +x /etc/init.d/Win4Lin
#put debugging stuff here
if [ ${?} -eq "0" ]; then
einfo "You can now run the command \"installwindows\" from an xterm "
einfo "as a non-root user to install a personal copy of Windows that Win4Lin "
einfo "will use for that user."
einfo
einfo "Win4Lin is a commercial product, you now are using a evaluation-license"
einfo "for 15 days evaluation. If you want a extra 15 days of evaluation you"
einfo 'must run "sh /opt/win4lin/registerme.sh"'
einfo
einfo 'You can help Gentoo Linux and obatin a full license at a discont offer'
einfo 'for gentoo users in http://www.netraverse.com/gentoo.htm'
einfo 'Netraverse donate to Gentoo Linux a percent of each purchase.'
einfo 'Thanks Netraverse.'
einfo
einfo 'Remember, you must do "/etc/init.d/Win4Lin start" before start w4l'
einfo 'Also you can add it to default boot "rc-update add Win4Lin default"'
fi
}

View File

@@ -0,0 +1,103 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/win4lin/win4lin-5.1.1.ebuild,v 1.2 2004/09/05 23:54:49 ciaranm Exp $
inherit eutils
IUSE=""
MY_P=Win4Lin-5.5.18c-d.i386
S=${WORKDIR}
DESCRIPTION="Win4Lin allows you run Windows applications somewhat natively under linux."
HOMEPAGE="http://www.netraverse.com/"
SRC_URI="mirror://gentoo/${MY_P}.rpm"
# doc? ( https://www.netraverse.com/support/docs/Win4Lin-4.0.0-manual.pdf )"
SLOT="0"
LICENSE="NeTraverse"
KEYWORDS="x86"
DEPEND="app-arch/rpm2targz
virtual/winkernel
!app-emulation/win4lin"
pkg_setup() {
if has_version '<=app-emulation/win4lin-5.1'; then
echo
ewarn "You must unmerge older versions of win4lin first."
ewarn "Is a good idea to backup your license code too."
echo
die "blocked by older version"
epause
fi
}
src_unpack() {
rpm2targz ${DISTDIR}/${MY_P}.rpm
tar zxf ${WORKDIR}/${MY_P}.tar.gz
}
src_compile() {
einfo "nothing to compile; binary package."
einfo "Remember you need a kernel patched like"
einfo "win4lin-sources or gs-sources."
}
src_install() {
mv ${S}/opt ${D}
mv ${S}/etc ${D}
cp ${FILESDIR}/registerme.sh ${D}/opt/win4lin/
cp ${FILESDIR}/win4lin.initd.new ${D}/opt/win4lin/
# if use doc
# then
# dodoc ${DISTDIR}/Win4Lin-4.0.0-manual.pdf
# fi
}
pkg_postinst() {
/opt/win4lin/postinst_rpm.sh
echo "LICENSE_CODE=1w5e055x-n0ca34-xjhx-xx3c-4c3c-73" > /var/win4lin/install/license.lic
einfo "If this is a new Win4Lin Install you will need to run the following command"
einfo "ebuild /var/db/pkg/app-emulation/${PF}/${PF}.ebuild config"
einfo "to install the windows setup files. You will need your Windows cdrom in the "
einfo "drive in order to complete this step."
einfo "============"
einfo "If this is an upgrade 4.x to 5.x the trial license code isn't valid,"
einfo "you need register it in NeTraverse, or unemerge ALL Win4Lin files."
einfo "============"
ewarn "Remeber: rc-update add Win4Lin default"
ewarn "you need to start de Win4Lin service."
}
pkg_prerm() {
/opt/win4lin/remove_rpm.sh
}
pkg_config() {
loadwindowsCD cddevice /dev/cdrom
cp /opt/win4lin/win4lin.initd.new /etc/init.d/Win4Lin
chmod +x /etc/init.d/Win4Lin
#put debugging stuff here
if [ ${?} -eq "0" ]; then
einfo "You can now run the command \"installwindows\" from an xterm "
einfo "as a non-root user to install a personal copy of Windows that Win4Lin "
einfo "will use for that user."
einfo
einfo "Win4Lin is a commercial product, you now are using a evaluation-license"
einfo "for 15 days evaluation. If you want a extra 15 days of evaluation you"
einfo 'must run "sh /opt/win4lin/registerme.sh"'
einfo
einfo 'You can help Gentoo Linux and obatin a full license at a discont offer'
einfo 'for gentoo users in http://www.netraverse.com/gentoo.htm'
einfo 'Netraverse donate to Gentoo Linux a percent of each purchase.'
einfo 'Thanks Netraverse.'
einfo
einfo 'Remember, you must do "/etc/init.d/Win4Lin start" before start w4l'
einfo 'Also you can add it to default boot "rc-update add Win4Lin default"'
fi
}

View File

@@ -0,0 +1,88 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/win4lin/win4lin-5.1.ebuild,v 1.5 2004/06/30 03:19:34 agriffis Exp $
IUSE=""
MY_P=Win4Lin-5.5.16c-d.i386
S=${WORKDIR}
DESCRIPTION="Win4Lin allows you run Windows applications somewhat natively
under linux."
HOMEPAGE="http://www.netraverse.com/"
SRC_URI="mirror://gentoo/${MY_P}.rpm"
# doc? ( https://www.netraverse.com/support/docs/Win4Lin-4.0.0-manual.pdf )"
SLOT="0"
LICENSE="NeTraverse"
KEYWORDS="~x86"
DEPEND="app-arch/rpm2targz
virtual/winkernel"
RDEPEND="!<=app-emulation/win4lin-4.0.22"
src_unpack() {
rpm2targz ${DISTDIR}/${MY_P}.rpm
tar zxf ${WORKDIR}/${MY_P}.tar.gz
}
src_compile() {
einfo "nothing to compile; binary package."
einfo "Remember you need a kernel patched like"
einfo "win4lin-sources or gs-sources."
}
src_install() {
mv ${S}/opt ${D}
mv ${S}/etc ${D}
cp ${FILESDIR}/registerme.sh ${D}/opt/win4lin/
cp ${FILESDIR}/win4lin.initd.new ${D}/opt/win4lin/
# if use doc
# then
# dodoc ${DISTDIR}/Win4Lin-4.0.0-manual.pdf
# fi
}
pkg_postinst() {
/opt/win4lin/postinst_rpm.sh
echo "LICENSE_CODE=1w5e055x-n0ca34-xjhx-xx3c-4c3c-73" > /var/win4lin/install/license.lic
einfo "If this is a new Win4Lin Install you will need to run the following command"
einfo "ebuild /var/db/pkg/app-emulation/${PF}/${PF}.ebuild config"
einfo "to install the windows setup files. You will need your Windows cdrom in the "
einfo "drive in order to complete this step."
einfo "============"
einfo "If this is an upgrade 4.x to 5.x the trial license code isn't valid,"
einfo "you need register it in NeTraverse, or unemerge ALL Win4Lin files."
}
pkg_prerm() {
/opt/win4lin/remove_rpm.sh
}
pkg_config() {
loadwindowsCD cddevice /dev/cdrom
cp /opt/win4lin/win4lin.initd.new /etc/init.d/Win4Lin
chmod +x /etc/init.d/Win4Lin
#put debugging stuff here
if [ ${?} -eq "0" ]; then
einfo "You can now run the command \"installwindows\" from an xterm "
einfo "as a non-root user to install a personal copy of Windows that Win4Lin "
einfo "will use for that user."
einfo
einfo "Win4Lin is a commercial product, you now are using a evaluation-license"
einfo "for 15 days evaluation. If you want a extra 15 days of evaluation you"
einfo 'must run "sh /opt/win4lin/registerme.sh"'
einfo
einfo 'You can help Gentoo Linux and obatin a full license at a discont offer'
einfo 'for gentoo users in http://www.netraverse.com/gentoo.htm'
einfo 'Netraverse donate to Gentoo Linux a percent of each purchase.'
einfo 'Thanks Netraverse.'
einfo
einfo 'Remember, you must do "/etc/init.d/Win4Lin start" before start w4l'
einfo 'Also you can add it to default boot "rc-update add Win4Lin default"'
fi
}