summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Wendel <lanius@gentoo.org>2004-09-25 07:53:51 +0000
committerHeinrich Wendel <lanius@gentoo.org>2004-09-25 07:53:51 +0000
commit083b3ae67da70832c7746757eefcda7a82fa31ea (patch)
treee77cc64050c2ea19254599b3695bccb08ead2445 /net-misc/ltsp
parenthppa stable for mr bones (Manifest recommit) (diff)
downloadgentoo-2-083b3ae67da70832c7746757eefcda7a82fa31ea.tar.gz
gentoo-2-083b3ae67da70832c7746757eefcda7a82fa31ea.tar.bz2
gentoo-2-083b3ae67da70832c7746757eefcda7a82fa31ea.zip
Moved from net-misc/ltsp-core to net-misc/ltsp.
Diffstat (limited to 'net-misc/ltsp')
-rw-r--r--net-misc/ltsp/ChangeLog186
-rw-r--r--net-misc/ltsp/Manifest21
-rw-r--r--net-misc/ltsp/files/INSTALL.Gentoo43
-rw-r--r--net-misc/ltsp/files/Xaccess70
-rw-r--r--net-misc/ltsp/files/Xsetup_workstation18
-rw-r--r--net-misc/ltsp/files/dhcpd.conf120
-rw-r--r--net-misc/ltsp/files/digest-ltsp-3.0.9-r319
-rw-r--r--net-misc/ltsp/files/digest-ltsp-4.051
-rw-r--r--net-misc/ltsp/files/digest-ltsp-4.1-r160
-rw-r--r--net-misc/ltsp/files/eb-5.0.9-3c905c-tpo.lzpxebin0 -> 17191 bytes
-rw-r--r--net-misc/ltsp/files/eb-5.0.9-eepro100.lzpxebin0 -> 16426 bytes
-rw-r--r--net-misc/ltsp/files/eb-5.0.9-rtl8139.lzpxebin0 -> 16054 bytes
-rw-r--r--net-misc/ltsp/files/gdm.conf.pl84
-rw-r--r--net-misc/ltsp/files/install.sh28
-rw-r--r--net-misc/ltsp/files/kdmrc.pl76
-rw-r--r--net-misc/ltsp/files/ltsp.conf7
-rw-r--r--net-misc/ltsp/files/ltsp.gifbin0 -> 8946 bytes
-rw-r--r--net-misc/ltsp/files/tftp16
-rw-r--r--net-misc/ltsp/ltsp-3.0.9-r3.ebuild339
-rw-r--r--net-misc/ltsp/ltsp-4.0.ebuild170
-rw-r--r--net-misc/ltsp/ltsp-4.1-r1.ebuild189
-rw-r--r--net-misc/ltsp/metadata.xml13
22 files changed, 1510 insertions, 0 deletions
diff --git a/net-misc/ltsp/ChangeLog b/net-misc/ltsp/ChangeLog
new file mode 100644
index 000000000000..7b33c8b4f6b5
--- /dev/null
+++ b/net-misc/ltsp/ChangeLog
@@ -0,0 +1,186 @@
+# ChangeLog for net-misc/ltsp-core
+# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ltsp/ChangeLog,v 1.1 2004/09/25 07:53:51 lanius Exp $
+
+*ltsp-3.0.9-r3 (25 Sep 2004)
+
+ 25 Sep 2004; Heinrich Wendel <lanius@gentoo.org> +metadata.xml,
+ +files/INSTALL.Gentoo, +files/Xaccess, +files/Xsetup_workstation,
+ +files/dhcpd.conf, +files/eb-5.0.9-3c905c-tpo.lzpxe,
+ +files/eb-5.0.9-eepro100.lzpxe, +files/eb-5.0.9-rtl8139.lzpxe,
+ +files/gdm.conf.pl, +files/install.sh, +files/kdmrc.pl, +files/ltsp.conf,
+ +files/ltsp.gif, +files/tftp, +ltsp-3.0.9-r3.ebuild, +ltsp-4.0.ebuild,
+ +ltsp-4.1-r1.ebuild:
+ Moved from net-misc/ltsp-core to net-misc/ltsp.
+
+*ltsp-core-4.1-r1 (08 Sep 2004)
+
+ 08 Sep 2004; Heinrich Wendel <lanius@gentoo.org> +ltsp-core-4.1-r1.ebuild,
+ -ltsp-core-4.1.ebuild:
+ version bump
+
+ 19 Aug 2004; Michael Sterrett <mr_bones_@gentoo.org> ltsp-core-4.1.ebuild:
+ fix use invocation
+
+*ltsp-core-4.1 (19 Aug 2004)
+
+ 19 Aug 2004; Heinrich Wendel <lanius@gentoo.org> ltsp-core-3.0.9-r1.ebuild,
+ ltsp-core-3.0.9-r3.ebuild, ltsp-core-4.1.ebuild:
+ version bump, bug #58876
+
+ 14 Jun 2004; Aron Griffis <agriffis@gentoo.org> ltsp-core-3.0.9-r1.ebuild,
+ ltsp-core-3.0.9-r3.ebuild, ltsp-core-4.0.ebuild:
+ Fix use invocation
+
+ 12 May 2004; Heinrich Wendel <lanius@gentoo.org> ltsp-core-3.0.9-r1.ebuild,
+ ltsp-core-3.0.9-r3.ebuild, ltsp-core-4.0.ebuild:
+ change xfree dep to virtual/x11
+
+ 23 Mar 2004; Martin Holzer <mholzer@gentoo.org> ltsp-core-3.0.9-r1.ebuild,
+ ltsp-core-3.0.9-r3.ebuild:
+ fixing depend qa issue. see 45343.
+
+ 27 Feb 2004; Heinrich Wendel <lanius@gentoo.org> ltsp-core-4.0.ebuild:
+ update kernel image to 2.4.24, mark stable
+
+ 31 Jan 2004; Heinrich Wendel <lanius@gentoo.org> ltsp-core-4.0.ebuild:
+ added block on ltsp, see bug #39809, fixed depend
+
+*ltsp-core-4.0 (17 Jan 2004)
+
+ 17 Jan 2004; Heinrich Wendel <lanius@gentoo.org> ltsp-core-4.0.ebuild,
+ ltsp-core-4.0_beta1.ebuild:
+ version bump
+
+ 30 Oct 2003; Heinrich Wendel <lanius@gentoo.org> ltsp-core-3.0.9-r1.ebuild,
+ ltsp-core-3.0.9-r2.ebuild, ltsp-core-3.0.9-r3.ebuild,
+ ltsp-core-4.0_beta1.ebuild:
+ changed tftp-hpa to virtual/tftp
+
+*ltsp-core-4.0_beta1 (29 Aug 2003)
+
+ 29 Aug 2003; Martin Holzer <mholzer@gentoo.org> ltsp-core-3.0.9-r1.ebuild,
+ ltsp-core-3.0.9-r2.ebuild, ltsp-core-3.0.9-r3.ebuild,
+ ltsp-core-4.0_beta1.ebuild:
+ move app-admin/tftp-hpa net-misc/tftp-hpa
+
+ 15 Aug 2003; Heinrich Wendel <lanius@gentoo.org> :
+ initial ltsp-4 release
+
+*ltsp-core-3.0.9-r3 (01 Aug 2003)
+
+ 01 Aug 2003; Heinrich Wendel <lanius@gentoo.org> ltsp-core-3.0.7-r1.ebuild,
+ ltsp-core-3.0.9-r1.ebuild, ltsp-core-3.0.9-r2.ebuild,
+ ltsp-core-3.0.9-r3.ebuild, files/INSTALL.Gentoo:
+ - added sandbox info
+ - workaround for config overwrite n update
+ - added -r3 with new kernel image
+
+*ltsp-core-3.0.9-r2 (26 June 2003)
+
+ 26 June 2003; Andres Toomsalu <frame@gentoo.org>:
+ ltsp_x_core bumped to 3.0.4 (XFree 4.2.99)
+
+*ltsp-core-3.0.9-r1 (25 June 2003)
+
+ 25 June 2003; Andres Toomsalu <frame@pfm.ee>:
+ fixed typo in subnet declaration with dhcpd.conf and unmasked ltsp-core-3.0.9-r1.ebuild
+
+*ltsp-core-3.0.9-r1 (26 May 2003)
+
+ 26 May 2003; Andres Toomsalu <frame@pfm.ee>:
+ Recomputed 3.0.9 digest - closes bug #20814, bad digest for ltsp_x_fonts
+
+*ltsp-core-3.0.9-r1 (16 Apr 2003)
+
+ 16 Apr 2003; Andres Toomsalu <frame@pfm.ee>:
+ ltsp-core version bump to 3.0.9 - currently masked
+ I guess there are no major changes besides some new linux distros support added to original package, so upgrading from ltsp-core 3.0.7 is probably pointless...
+
+*ltsp-core-3.0.7-r1 (24 Mar 2003)
+
+ 24 Mar 2003; Andres Toomsalu <frame@pfm.ee>:
+ Updated etherboot pxe loadable roms to 5.0.9 which has dos booting fixed :O)
+
+*ltsp-core-3.0.7-r1 (19 Mar 2003)
+
+ 19 Mar 2003; Martin Holzer <mholzer@gentoo.org> ltsp-core-3.0.7-r1.ebuild:
+ corrected kde and gnome dependencies.
+
+*ltsp-core-3.0.7-r1 (11-02-2003)
+
+ Small fixes and improvements:
+ 1) No need to create kdmrc symlink anymore
+ 2) Added sample dhcpd.conf with multiboot menu and password protection
+ 3) Added 3 bootroms for pxe booting out of the box with rtl8139, eepro100 and 3c905c cards
+
+*ltsp-core-3.0.7 (10-10-2002)
+
+ 17 Oct 2002; Andres Toomsalu <frame@pfm.ee>:
+
+ Added missing digest-ltsp-core-3.0.7 file.
+
+ 10 Oct 2002; Andres Toomsalu <frame@pfm.ee>:
+
+ Updated ltsp-core-3.0.5.ebuild to reflect ltsp-core-3.0.7.
+
+*ltsp-core-3.0.5 (10-10-2002)
+
+ 10 Oct 2002; Andres Toomsalu <frame@pfm.ee>:
+
+ Updated original ltsp-core-3.0.0.ebuild made by David Snopek
+ to reflect ltsp-core-3.0.5.
+
+ Corrected some dependency package names from original 3.0.0 ebuild.
+
+ !!! ATTENTION KDM USERS !!! BEFORE emerging 3.0.5 ebuild make an symlink 'ln -sf /usr/kde/3/share/config/kdm/kdmrc /etc/X11/xdm/kdmrc'
+ OR edit /usr/kde/3/share/config/kdm/kdmrc manually afterwards (just set 'Enable=true' in [Xdmcp] section).
+ Tryed to rewrite 'modify_xdm_kdmrc()' function from original 3.0.0 ebuild to 'local file=/usr/kde/3/share/config/kdm/kdmrc'
+ - but that didn't work - error message from build process informed always that 'can't find the damn file...'.
+ Grrrhh..well I really don't know portage so well to understand why it fails on this case. So make an symlink or fix kdmrc manually.
+
+
+ 09 May 2002; David Snopek <xevol@newtonave.net>:
+
+ Initial ltsp-core-3.0.0.ebuild.
+ ----- FROM INSTALL.Gentoo --------------------------
+
+ Finishing the LTSP install under Gentoo Linux
+ By David Snopek
+
+ There are a couple things that the Gentoo package didn't do because I don't feel right changing these things on someone elses system.
+
+ * Starting LTSP ...
+
+ Run these sciprts as root in no particular order:
+
+ /etc/init.d/dhcp start
+ /etc/init.d/xdm start
+ /etc/init.d/xinetd start
+
+ * Display Manager
+
+ In order for the display manager to be started on boot, run this command:
+
+ rc-update add xdm default
+
+ To set which display manager is started, set the DISPLAY_MANAGER variable in /etc/rc.conf. Possible values include xdm, gdm, and kdm.
+
+ Modify /etc/X11/xdm/Xaccess to grant the X-Terminals access to the display manager.
+
+ * DHCP
+
+ In order for dhcp to be started on boot, run this command:
+
+ rc-update add dhcp default
+
+ To change which network card connects to the X-Terminal's, change the value of the IF variable at the top of /etc/init.d/dhcp.
+
+ * xinetd
+
+ If xinetd doesn't already start on boot, and you desire it to, run this command:
+
+ rc-update add xinetd default
+ -------------------------------------------------
+
+
diff --git a/net-misc/ltsp/Manifest b/net-misc/ltsp/Manifest
new file mode 100644
index 000000000000..8b4a52f39fdb
--- /dev/null
+++ b/net-misc/ltsp/Manifest
@@ -0,0 +1,21 @@
+MD5 54307674a386d1b9b5da4028bb6436a4 ltsp-core-3.0.9-r3.ebuild 10953
+MD5 b612ed4c93743e1f6c81d7653a7a8328 ChangeLog 6090
+MD5 8470ac6202a79e428be0ed6867af12e8 metadata.xml 574
+MD5 3c8886178146b87ef1bf61a9bfba94a0 ltsp-core-4.0.ebuild 4042
+MD5 dd237f2019724169708a7cef4f4c4dfd ltsp-core-4.1-r1.ebuild 4512
+MD5 e93ac4a097b01ca94ac388cc874ad8ac files/tftp 259
+MD5 03109ccf3695c8575faea0892e432db2 files/ltsp.conf 62
+MD5 9bb2a99257dc7f86f92d6a3c4d55ffd1 files/digest-ltsp-core-3.0.9-r3 1407
+MD5 1d8daed9b6e2768685b56bb3740d6af1 files/Xaccess 2057
+MD5 99460aed8423e55d484551404408f7b9 files/install.sh 496
+MD5 5ebe40a6a4b11abede73ff5daa139fe3 files/dhcpd.conf 4439
+MD5 0f37dcb7969240b88c680e0569385e2d files/eb-5.0.9-eepro100.lzpxe 16426
+MD5 28a7c3eb45b470b14d8008d19b867ea3 files/kdmrc.pl 2007
+MD5 bad8939159d8bdddfdb5625ca5ae9f8e files/ltsp.gif 8946
+MD5 f66bc50e497959cf0df7e1e830d528eb files/gdm.conf.pl 2238
+MD5 a4b38d8b3e2c77d7bc1029c9aaf5c459 files/Xsetup_workstation 421
+MD5 98c1e1d5fd02a42ec01348e7525e8108 files/eb-5.0.9-3c905c-tpo.lzpxe 17191
+MD5 8afc7afa7cf0eb6ef41de9d7e67a92bc files/INSTALL.Gentoo 3887
+MD5 31da1bb5b81fc2c1d76e43ad9814cc38 files/digest-ltsp-core-4.1-r1 4324
+MD5 a65f287c2cf9fbd3b9453b4007d8b35f files/digest-ltsp-core-4.0 3772
+MD5 b716ae3544e8ac3e53f315a1e95f27a0 files/eb-5.0.9-rtl8139.lzpxe 16054
diff --git a/net-misc/ltsp/files/INSTALL.Gentoo b/net-misc/ltsp/files/INSTALL.Gentoo
new file mode 100644
index 000000000000..3d30507e6a83
--- /dev/null
+++ b/net-misc/ltsp/files/INSTALL.Gentoo
@@ -0,0 +1,43 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ltsp/files/INSTALL.Gentoo,v 1.1 2004/09/25 07:53:51 lanius Exp $
+
+ *******************************************************************************************
+ | PLEASE LOOK AT THE MERGED CONFIG FILES AND UPDATE/OVERWRITE OLDER CONFS AS NEEDED! ***|
+ *******************************************************************************************
+ | YOU NEED TO EDIT YOUR UPDATED CONFIGURATION FILES TO COMPLETE THE LTSP INSTALLATION: *|
+ |---------------------------------------------------------------------------------------|
+ | FILE -------------------------| ACTION -----------------------------------------------|
+ |---------------------------------------------------------------------------------------|
+ | /etc/exports -----------------| Alter network address/netmask(nfs options) to match --|
+ |-------------------------------| your current network/nfs settings --------------------|
+ |---------------------------------------------------------------------------------------|
+ | /etc/dhcp/dhcpd.conf ---------| Alter it to match your network settings and other ----|
+ |-------------------------------| needs. Read comments inside dhcpd.conf for more... ---|
+ |---------------------------------------------------------------------------------------|
+ | /etc/conf.d/dhcp -------------| Alter IFACE setting if needed ------------------------|
+ |---------------------------------------------------------------------------------------|
+ | /opt/ltsp/i386/etc/lts.conf --| Alter LTSP config file to match your terminals -------|
+ |---------------------------------------------------------------------------------------|
+ | /etc/xinetd.d/tftp -----------| Change disable=yes to disable=no ---------------------|
+ |---------------------------------------------------------------------------------------|
+ *******************************************************************************************
+ | YOU NEED TO ACTIVATE THESE SERVICES TO RUN LTSP SERVER: ------------------------------|
+ |---------------------------------------------------------------------------------------|
+ | SERVICE ----------------------| ACTION -----------------------------------------------|
+ |---------------------------------------------------------------------------------------|
+ | DHCP -------------------------| /etc/init.d/dhcp start -------------------------------|
+ |-------------------------------| rc-update add dhcp default (for start at boot) -------|
+ |---------------------------------------------------------------------------------------|
+ | XDM --------------------------| /etc/init.d/xdm start --------------------------------|
+ |-------------------------------| rc-update add xdm default (for start at boot) --------|
+ |---------------------------------------------------------------------------------------|
+ | TFTP FROM XINETD -------------| /etc/init.d/xinetd start -----------------------------|
+ |-------------------------------| rc-update add xinetd default (for start at boot) -----|
+ |---------------------------------------------------------------------------------------|
+ | NFS --------------------------| /etc/init.d/nfs start --------------------------------|
+ |-------------------------------| rc-update add nfs default (for start at boot) --------|
+ |---------------------------------------------------------------------------------------|
+ *******************************************************************************************
+ | FOR MORE INFORMATION AND COMPLETE SET OF DOCUMENTATION GO TO WWW.LTSP.ORG ***********|
+ *******************************************************************************************
diff --git a/net-misc/ltsp/files/Xaccess b/net-misc/ltsp/files/Xaccess
new file mode 100644
index 000000000000..a240520ad089
--- /dev/null
+++ b/net-misc/ltsp/files/Xaccess
@@ -0,0 +1,70 @@
+# $Xorg: Xaccess,v 1.3 2000/08/17 19:54:17 cpqbld Exp $
+#
+# $XFree86: xc/programs/xdm/config/Xaccess,v 1.3 2001/01/17 23:45:24 dawes Exp $
+#
+# Access control file for XDMCP connections
+#
+# To control Direct and Broadcast access:
+#
+# pattern
+#
+# To control Indirect queries:
+#
+# pattern list of hostnames and/or macros ...
+#
+# To use the chooser:
+#
+# pattern CHOOSER BROADCAST
+#
+# or
+#
+# pattern CHOOSER list of hostnames and/or macros ...
+#
+# To define macros:
+#
+# %name list of hosts ...
+#
+# The first form tells xdm which displays to respond to itself.
+# The second form tells xdm to forward indirect queries from hosts matching
+# the specified pattern to the indicated list of hosts.
+# The third form tells xdm to handle indirect queries using the chooser;
+# the chooser is directed to send its own queries out via the broadcast
+# address and display the results on the terminal.
+# The fourth form is similar to the third, except instead of using the
+# broadcast address, it sends DirectQuerys to each of the hosts in the list
+#
+# In all cases, xdm uses the first entry which matches the terminal;
+# for IndirectQuery messages only entries with right hand sides can
+# match, for Direct and Broadcast Query messages, only entries without
+# right hand sides can match.
+#
+
+* #any host can get a login window
+
+#
+# To hardwire a specific terminal to a specific host, you can
+# leave the terminal sending indirect queries to this host, and
+# use an entry of the form:
+#
+
+#terminal-a host-a
+
+
+#
+# The nicest way to run the chooser is to just ask it to broadcast
+# requests to the network - that way new hosts show up automatically.
+# Sometimes, however, the chooser can't figure out how to broadcast,
+# so this may not work in all environments.
+#
+
+* CHOOSER BROADCAST #any indirect host can get a chooser
+
+#
+# If you'd prefer to configure the set of hosts each terminal sees,
+# then just uncomment these lines (and comment the CHOOSER line above)
+# and edit the %hostlist line as appropriate
+#
+
+#%hostlist host-a host-b
+
+#* CHOOSER %hostlist #
diff --git a/net-misc/ltsp/files/Xsetup_workstation b/net-misc/ltsp/files/Xsetup_workstation
new file mode 100644
index 000000000000..112f83c2538c
--- /dev/null
+++ b/net-misc/ltsp/files/Xsetup_workstation
@@ -0,0 +1,18 @@
+#!/bin/sh
+## LTS-begin ##
+
+#
+# The lines between the 'LTS-begin' and the 'LTS-end' were added
+# on: Mon Jan 21 21:40:50 CST 2002 by the ltsp installation script.
+# For more information, visit the ltsp homepage
+# at http://www.ltsp.org
+#
+
+/usr/X11R6/bin/xsetroot -solid "#356390"
+if [ -x /usr/bin/xsri ]; then
+ /usr/bin/xsri -geometry +5+5 -avoid 300x250 -keep-aspect \
+ /etc/X11/xdm/ltsp.gif
+fi
+
+## LTS-end ##
+
diff --git a/net-misc/ltsp/files/dhcpd.conf b/net-misc/ltsp/files/dhcpd.conf
new file mode 100644
index 000000000000..10cb8c115bba
--- /dev/null
+++ b/net-misc/ltsp/files/dhcpd.conf
@@ -0,0 +1,120 @@
+# Sample configuration file for ISCD dhcpd
+# with boot menu
+
+ddns-update-style ad-hoc;
+default-lease-time 21600;
+max-lease-time 21600;
+
+option subnet-mask 255.255.255.0;
+option broadcast-address 192.168.0.255;
+option routers 192.168.0.1;
+option domain-name-servers 192.168.0.1;
+option domain-name "domain.com";
+option root-path "192.168.0.1:/opt/ltsp/i386";
+option log-servers 192.168.0.1;
+next-server 192.168.0.1;
+
+option ebootmagic code 128 = string;
+option cmdline code 129 = text;
+
+option nodetype code 131 = string;
+
+option menudflts code 160 = string;
+
+option motdline1 code 184 = string;
+option motdline2 code 185 = string;
+option motdline3 code 186 = string;
+option motdline4 code 187 = string;
+option motdline5 code 188 = string;
+option motdline6 code 189 = string;
+option motdline7 code 190 = string;
+option motdline8 code 191 = string;
+
+option menuline1 code 192 = string;
+option menuline2 code 193 = string;
+option menuline3 code 194 = string;
+option menuline4 code 195 = string;
+option menuline5 code 196 = string;
+option menuline6 code 197 = string;
+option menuline7 code 198 = string;
+option menuline8 code 199 = string;
+option menuline9 code 200 = string;
+option menuline10 code 201 = string;
+option menuline11 code 202 = string;
+option menuline12 code 203 = string;
+option menuline13 code 204 = string;
+option menuline14 code 205 = string;
+option menuline15 code 206 = string;
+option menuline16 code 207 = string;
+
+option space PXE;
+option PXE.mtftp-ip code 1 = ip-address;
+option PXE.mtftp-cport code 2 = unsigned integer 16;
+option PXE.mtftp-sport code 3 = unsigned integer 16;
+option PXE.mtftp-tmout code 4 = unsigned integer 8;
+option PXE.mtftp-delay code 5 = unsigned integer 8;
+
+class "pxeclients" {
+ match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
+ option vendor-class-identifier "PXEClient";
+ option PXE.mtftp-ip 0.0.0.0;
+ vendor-option-space PXE;
+ #SETTING DEFAULT BOOTROM FOR PXE CARDS
+ filename "pxe/eb-5.0.9-rtl8139.lzpxe";
+ }
+
+class "Etherboot" {
+ match if substring (option vendor-class-identifier, 0, 9) = "Etherboot";
+
+ option ebootmagic = E4:45:74:68:00:00;
+ option vendor-encapsulated-options 3c:09:45:74:68:65:72:62:6f:6f:74:ff;
+ filename = "lts/vmlinuz-2.4.19-ltsp-1";
+ option menudflts = "timeout=3600:default=191";
+
+ option motdline1 = "+------------------------------------------------------------------------------+";
+ option motdline2 = "|* POWERED By LINUX TERMINAL SERVER ON GENTOO * WWW.LTSP.ORG * WWW.GENTOO.ORG <|";
+ option motdline3 = "|------------------------------------------------------------------------------|";
+ option motdline4 = "|* Choose 1) Linux Terminal <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<|";
+ option motdline5 = "|------------------------------------------------------------------------------|";
+ option motdline6 = "|* <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<|";
+ option motdline7 = "|* <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<|";
+ option motdline8 = "+------------------------------------------------------------------------------+";
+
+ ################################################################################################
+ # DEFAULT MD5 PASSWD IS 1234 - DO GENERATE YOUR MD5 PASSWORD STRINGS AND PUT THEM WHERE NEEDED #
+ # OR CLEAR THE FIELD IF DO NOT WANT PASSWORD PROTECTION #
+ ################################################################################################
+
+ option menuline1 = "LINUX___TERMINAL:::lts/vmlinuz-2.4.19-ltsp-1:::";
+ option menuline2 = "WINDOWS_DESKTOP:::/dev/hda:81dc9bdb52d04dc20036dbd8313ed055::";
+ option menuline3 = "FLOPPY__BOOT:::/dev/fd0:81dc9bdb52d04dc20036dbd8313ed055::";
+}
+
+shared-network WORKSTATIONS {
+ subnet 192.168.0.0 netmask 255.255.255.0 {
+ range 192.168.0.100 192.168.0.150;
+ }
+}
+
+group {
+ use-host-decl-names on;
+
+ #HOST WITH ANOTHER PXE ETHERNET CARD THAN DEFAULT PXE BOOTROM ABOVE - CHANGE FILENAME PARAMETER
+ host ws001 {
+ hardware ethernet 00:00:00:00:00:00;
+ fixed-address 192.168.0.101;
+ filename "pxe/eb-5.0.9-eepro100.lzpxe";
+ }
+ #NORMAL ETHERBOOT HOST
+ host ws002 {
+ hardware ethernet 00:00:00:00:00:00;
+ fixed-address 192.168.0.102;
+ }
+
+}
+
+
+
+
+
+
diff --git a/net-misc/ltsp/files/digest-ltsp-3.0.9-r3 b/net-misc/ltsp/files/digest-ltsp-3.0.9-r3
new file mode 100644
index 000000000000..ba635b0f0383
--- /dev/null
+++ b/net-misc/ltsp/files/digest-ltsp-3.0.9-r3
@@ -0,0 +1,19 @@
+MD5 4838e28c19a475e8cdd8d0b731b22264 ltsp_core-3.0.9-i386.tgz 1464997
+MD5 53aad6653b77fd09c1f2fdbedf0ca469 ltsp_kernel-3.0.10-i386.tgz 11303562
+MD5 94dc471e8537d47568f35044b1bcfd4a ltsp_x_core-3.0.4-i386.tgz 13144315
+MD5 8fdd1b1c7dcb046afce99d88fa1576be ltsp_x_fonts-3.0.0-i386.tgz 8960579
+MD5 110d2a17b52c0d7612abe0f3ce9356bc ltsp_x336_3dlabs-3.0.0-i386.tgz 970548
+MD5 1c13359e6d061d7541dff346e2e9e81c ltsp_x336_8514-3.0.0-i386.tgz 776731
+MD5 13a9e7ccfdc06f29f13b09800f0424ab ltsp_x336_agx-3.0.0-i386.tgz 857495
+MD5 522c1585f8f42e1aa011313f7c590201 ltsp_x336_fbdev-3.0.0-i386.tgz 895495
+MD5 0226824dca52c8e090f2cd537b80195e ltsp_x336_i128-3.0.0-i386.tgz 958937
+MD5 f19237df108a434fc0a71ecdab573376 ltsp_x336_mach32-3.0.0-i386.tgz 843662
+MD5 4d8e294f65f9a13f8620a86539b8707b ltsp_x336_mach64-3.0.0-i386.tgz 895762
+MD5 9b0430c26b68a89090c4741c32a20e1d ltsp_x336_mach8-3.0.0-i386.tgz 780781
+MD5 a7ca6c0abe31ca7de39c20d03f52e951 ltsp_x336_mono-3.0.0-i386.tgz 866879
+MD5 1c5a520b7fa31acffa9436914d902f01 ltsp_x336_p9000-3.0.0-i386.tgz 866027
+MD5 2317fd746294a56315d268536f837056 ltsp_x336_s3-3.0.0-i386.tgz 1065793
+MD5 d24ca95a28fb26a7aaa0adf830ff06a9 ltsp_x336_s3v-3.0.0-i386.tgz 954549
+MD5 f07530b143b9652e6b7bf6bb911fe5c8 ltsp_x336_svga-3.0.0-i386.tgz 1468421
+MD5 ef89870555acdbf3632def68088f898d ltsp_x336_vga16-3.0.0-i386.tgz 869214
+MD5 a04cfc0f4b101d9e90ac3af60962d415 ltsp_x336_w32-3.0.0-i386.tgz 796005
diff --git a/net-misc/ltsp/files/digest-ltsp-4.0 b/net-misc/ltsp/files/digest-ltsp-4.0
new file mode 100644
index 000000000000..5ff876b3751f
--- /dev/null
+++ b/net-misc/ltsp/files/digest-ltsp-4.0
@@ -0,0 +1,51 @@
+MD5 37f5274b8e33dfc49089407e89d2a682 ltsp-ltsptree-0.09-0-i386.tgz 31326
+MD5 1c38fea4aad1fada17fc4d96bc6e15d7 ltsp-glibc-2.3.2-0-i386.tgz 8443319
+MD5 a9b397fbbccafb6915311da7e73a836c ltsp-sysvinit-2.84-0-i386.tgz 14390
+MD5 a34c9289100f8ff6f04dbf1667704b24 ltsp-popt-1.0-0-i386.tgz 103576
+MD5 d96253bffd3f4ac7c0e0d3a395ddb0d2 ltsp-bash-2.05b-0-i386.tgz 341541
+MD5 a2625ab7a5b251450758148e6f1cb70e ltsp-busybox-0.60.4-0-i386.tgz 82577
+MD5 28fbc34cc862f13dc192cbcce3b0a414 ltsp-devfsd-1.3.25-0-i386.tgz 19006
+MD5 431b3afe8c6e62004387dcc846c43918 ltsp-getltscfg-0.02-0-i386.tgz 13752
+MD5 ace684d5dc23a5a6c5c482cc54177063 ltsp-libgcc_s-3.2.3-0-i386.tgz 78939
+MD5 f4a6d90fe16b477ceb137f9e0719340a ltsp-haltsys-0.02-0-i386.tgz 1534
+MD5 8639db14ff2fac734e0f2c10ebd0dcd7 ltsp-e2fsprogs-1.29-0-i386.tgz 477397
+MD5 ca92feb0d71183d2eddf576b7e7b5b55 ltsp-startsess-1.1-0-i386.tgz 2275
+MD5 1d7c82ee8af6ae201ce559985027fb19 ltsp-lp_server-1.1.6-0-i386.tgz 10807
+MD5 56c9c3da5cdaed257b68fc0a2290f626 ltsp-ltspinfod-0.1-0-i386.tgz 11378
+MD5 d83660c112b56e3c86384130876603f0 ltsp-modutils-2.4.22-0-i386.tgz 135929
+MD5 083089ac2c0e3020aefe91ed82fe3c9b ltsp-ncurses-5.3-0-i386.tgz 794503
+MD5 31e8cfe5d6b8dda714230dd29dedd83b ltsp-open-1.4-0-i386.tgz 5103
+MD5 c54d49003401e04f16e9a3b2d6094758 ltsp-prep_swap-0.01-0-i386.tgz 11763
+MD5 20e78987ed429e79e10207679c6fb2a0 ltsp-zlib-1.1.4-0-i386.tgz 25663
+MD5 98262b7587050d1c2321341f0af9ab3b ltsp-libpng-1.2.5-0-i386.tgz 197551
+MD5 d5134a153c710fe6cd73178a67ba5974 ltsp-pci_scan-0.02-0-i386.tgz 2614
+MD5 211f44ab9a34db19ac5494f62bca9b6d ltsp-pam-0.77-0-i386.tgz 125282
+MD5 b0682873c2431b64d103c96cad98618e ltsp-ssh-3.7.1p2-0-i386.tgz 2153506
+MD5 f24980d2d2840bd5462ead277879b98d ltsp-audiofile-0.2.3-0-i386.tgz 70211
+MD5 be0f50d0e613d418aa6b9e7228cb53ba ltsp-esd-0.2.32-0-i386.tgz 198209
+MD5 f04b271dfa942511b251b6f730c7d31f ltsp-net-tools-1.60-0-i386.tgz 17765
+MD5 0a05b3ca03e3ac5dc60cbd6573ee74ed ltsp-xinetd-2.3.12-0-i386.tgz 85467
+MD5 971bfc913d045f617c21660ec1340954 ltsp-ypbind-1.14-0-i386.tgz 17122
+MD5 70289dac26fda8fa436077d36b0c4042 ltsp-tcp_wrappers-7.6-0-i386.tgz 14579
+MD5 b9297a243eda20c43bcf6f14170dd478 ltsp-portmap-4-0-i386.tgz 17632
+MD5 75c80dd6e02f50553bcb185f98a6e7e1 ltsp-rdesktop-1.2.0-0-i386.tgz 80048
+MD5 f57948aad898d0cef75d4bf7b52aadb1 ltspcfg-0.3.tgz 28915
+MD5 bee4958ea199069185490663535d7fab ltsp_kernel-3.0.13-i386.tgz 5761078
+MD5 9873ff76b3bdab64f176f947ec4fd544 ltsp-gdb-5.3-0-i386.tgz 1604236
+MD5 b8ea654d989c4bc8313f744d7d3ab369 ltsp-strace-4.4.94-0-i386.tgz 359956
+MD5 51b7d0d8a6cf8f478461af6910fe28af ltsp-x-core-4.3.99.901-0-i386.tgz 17254119
+MD5 ed8af85cd610489281b6db67b6f992cd ltsp-x-fonts-4.3.99.901-0-i386.tgz 19829895
+MD5 24622177787a3f1959a085616ac2e068 ltsp-x-fonts-100dpi-4.3.99.901-0-i386.tgz 12238004
+MD5 3f01570d64a636ac0d6da23d8b6d3790 ltsp_x336_3DLabs-3.3.6-0-i386.tgz 997287
+MD5 34c0ba5edb40462a759f2f0c4617eeca ltsp_x336_8514-3.3.6-0-i386.tgz 795554
+MD5 fb6f383e3196f2503361ab027ecdd3c9 ltsp_x336_AGX-3.3.6-0-i386.tgz 880345
+MD5 89832bc5d619170cf761545a509aa535 ltsp_x336_I128-3.3.6-0-i386.tgz 983599
+MD5 48dc1ac6ab7744892418358d685dfef1 ltsp_x336_Mach32-3.3.6-0-i386.tgz 863888
+MD5 17276001cf002dbde8b74be98577d111 ltsp_x336_Mach64-3.3.6-0-i386.tgz 918865
+MD5 05c1c3b4d2281dbd5cc4c33a4f046b8e ltsp_x336_Mach8-3.3.6-0-i386.tgz 800390
+MD5 2336b7dc9b85861cd1a89e600d39ae0e ltsp_x336_Mono-3.3.6-0-i386.tgz 874932
+MD5 c830c8c4b905a62adaf012f40b94d6c1 ltsp_x336_P9000-3.3.6-0-i386.tgz 888449
+MD5 fd25c0fc5e95d2ce65f03da1e498c2e9 ltsp_x336_S3_S3V-3.3.6-0-i386.tgz 2078856
+MD5 98aa7a1688b0f350cc8f71a0643e9234 ltsp_x336_SVGA-3.3.6-0-i386.tgz 1509383
+MD5 7440be361bf47dc9468e260265e19047 ltsp_x336_VGA16-3.3.6-0-i386.tgz 891371
+MD5 a9225435b1987fc327166f2e64179a56 ltsp_x336_W32-3.3.6-0-i386.tgz 818841
diff --git a/net-misc/ltsp/files/digest-ltsp-4.1-r1 b/net-misc/ltsp/files/digest-ltsp-4.1-r1
new file mode 100644
index 000000000000..c9c960b4fff4
--- /dev/null
+++ b/net-misc/ltsp/files/digest-ltsp-4.1-r1
@@ -0,0 +1,60 @@
+MD5 d05bd09237c47dff67932939df315c8d ltsp-ltsptree-1.7-0-i386.tgz 28693
+MD5 4cefbf8b5e3e7bc70663d4b4394b7c70 ltsp-glibc-1.0-0-i386.tgz 8443373
+MD5 af6b0e30e614447cd63059f546f562f9 ltsp-sysvinit-1.0-0-i386.tgz 14388
+MD5 a89616f07b11f1431cfe66b703a6f5dc ltsp-popt-1.1-0-i386.tgz 103570
+MD5 ff73695714b12b9c0b44f0a3780fb33c ltsp-bash-1.0-0-i386.tgz 341587
+MD5 b5b5427f67663782396fd5f82fd250ce ltsp-busybox-1.0-0-i386.tgz 82569
+MD5 9b291752ff8c9ffcada916fb03aedba4 ltsp-devfsd-1.0-0-i386.tgz 18904
+MD5 25fa2897eaf9a05deee43cf4cca18815 ltsp-getltscfg-1.2-0-i386.tgz 7716
+MD5 0ee010cb390ad0949e8f12c206fb97c9 ltsp-libgcc_s-1.0-0-i386.tgz 79017
+MD5 788a46e75fe728cdb11827fdddeb0e1c ltsp-haltsys-1.0-0-i386.tgz 1532
+MD5 67354659bd1957ef202700179c0ae84f ltsp-e2fsprogs-1.1-0-i386.tgz 721976
+MD5 ca92feb0d71183d2eddf576b7e7b5b55 ltsp-startsess-1.1-0-i386.tgz 2275
+MD5 76d4654d52304ab44adce598085ddfc5 ltsp-lp_server-1.1-0-i386.tgz 10781
+MD5 58cc65bbc02bb856091942d35d138b8a ltsp-ltspinfod-1.1-0-i386.tgz 5358
+MD5 1f1738082abca9f7bf159f383ff84891 ltsp-modutils-1.0-0-i386.tgz 135919
+MD5 e1fa99e575ae6d2085b56d0a177eb5b2 ltsp-ncurses-1.0-0-i386.tgz 795057
+MD5 1ae078d98459bf3ef207a49de17de6e3 ltsp-open-1.1-0-i386.tgz 5087
+MD5 d9fe146f024632171636deae7170e6f7 ltsp-prep_swap-1.0-0-i386.tgz 3066
+MD5 ea42ad81564a4e9515f48e164377b77b ltsp-zlib-1.0-0-i386.tgz 25648
+MD5 9bd4d14407e1f8459454f987071c4456 ltsp-libpng-1.0-0-i386.tgz 197520
+MD5 6167586007f9f353f7129b754299a403 ltsp-pci_scan-1.0-0-i386.tgz 2462
+MD5 33b3ec67b7496518591ff5e1cd4e128c ltsp-pam-1.0-0-i386.tgz 125161
+MD5 a8bd109cc0d30d410b04c948b613a485 ltsp-ssh-1.0-0-i386.tgz 2152929
+MD5 9226d807f49d166efca15fb628da1889 ltsp-net-tools-1.0-0-i386.tgz 17754
+MD5 3ba3608169762e28497f467ec64a887d ltsp-xinetd-1.0-0-i386.tgz 85461
+MD5 b41751c7d90c5064ff1e2fd9f9c5f89f ltsp-ypbind-1.0-0-i386.tgz 17109
+MD5 aa7b593b57e573d838d063792e7b06d7 ltsp-tcp_wrappers-1.0-0-i386.tgz 26568
+MD5 bfc2f2e6045afb27a7f8213532f6af90 ltsp-portmap-1.0-0-i386.tgz 17617
+MD5 51bfd7dddc9a78fd333e3db163d85501 ltsp-rdesktop-1.3-0-i386.tgz 206778
+MD5 df1d2ba1779d7084c143679dbf188e46 ltsp-libvncserver-1.0-0-i386.tgz 76505
+MD5 41972f11843916053edca2e5957df1e1 ltsp-localdev-1.1-0-i386.tgz 1160
+MD5 1229fa51ac6c70549aed3e15d81218de ltsp-openssl-1.0-0-i386.tgz 1768319
+MD5 ba09745218ef074bd3f8c70f07c11e0e ltsp-samba-1.0-0-i386.tgz 8005444
+MD5 877936daae880072e107cf4ce04cb80a ltsp-util-linux-1.0-0-i386.tgz 3946
+MD5 cc53c7925483376213d3145dddd88330 ltsp-vidlist-1.1-0-i386.tgz 5189
+MD5 ad662a97cda3389b2b1a4440977aa5bb ltsp-aumix-1.0-0-i386.tgz 48345
+MD5 13e79b438885aa790bbb7195563df3e5 ltsp-freetype-1.0-0-i386.tgz 586299
+MD5 0af5b6acee0f558c46621214cfbbda35 ltsp-snmpd-1-0-i386.tgz 4005591
+MD5 fb79db426a2f9f6888430c3c309aa55c ltsp-kernel-1.4-0-i386.tgz 3874772
+MD5 3d4861ab2bd0f8c7819ef9a562286ed3 ltsp-modules-1.4-0-i386.tgz 3923245
+MD5 435d486670bcb254616dfa5a607f8e9e ltsp-gdb-1.0-0-i386.tgz 1604176
+MD5 b3a98509650f587194a1a02ff2c02615 ltsp-strace-1.0-0-i386.tgz 360028
+MD5 45afcb2172955f0a7515ee904c72ae8f ltsp-x-core-1.2-0-i386.tgz 18718396
+MD5 c12e33c855c3f1b40655e933513b965a ltsp-x-fonts-1.0-0-i386.tgz 20135686
+MD5 9ab04043511a9e285534c925f603157d ltsp-x-fonts-100dpi-1.0-0-i386.tgz 12237898
+MD5 8313d15b911860808b4a941464bd8ea9 ltsp-x336_3DLabs-1.0-0-i386.tgz 997270
+MD5 5270bbe28f73f42d101c1903a16eef9a ltsp-x336_8514-1.0-0-i386.tgz 795536
+MD5 473a63d5ee6f3c494e512b19e9a26e2b ltsp-x336_AGX-1.0-0-i386.tgz 880323
+MD5 9aaa87b89b6cc299cd0054665f51a63b ltsp-x336_I128-1.0-0-i386.tgz 983021
+MD5 7fc45ddee8e73e052d75c798ff917f8e ltsp-x336_Mach32-1.0-0-i386.tgz 863864
+MD5 ef0b2ccb98bae0cd5e4919c2c0f1c93f ltsp-x336_Mach64-1.0-0-i386.tgz 918843
+MD5 51b1b144679eabe65cb8560cc243ee91 ltsp-x336_Mach8-1.0-0-i386.tgz 800367
+MD5 e1ea32dcd2f3f6256eece451b0bcbb53 ltsp-x336_Mono-1.0-0-i386.tgz 874917
+MD5 5e79ed4d1d616b376da9962112afbf12 ltsp-x336_P9000-1.0-0-i386.tgz 888427
+MD5 133acac5836e2f1d7fb6aeff0eb6bf6a ltsp-x336_S3_S3V-1.0-0-i386.tgz 2078825
+MD5 e082f4d298a4f135e6db21bb970d95ce ltsp-x336_SVGA-1.0-0-i386.tgz 1509363
+MD5 71f5167a49ead5eee5371926c5c2829f ltsp-x336_VGA16-1.0-0-i386.tgz 891345
+MD5 04578a927b90c27c4b88c5248d660f0c ltsp-x336_W32-1.0-0-i386.tgz 818829
+MD5 2e39198e18c4ce1e48636369cc86151f ltsp-esd-1.0-0-i386.tgz 198156
+MD5 51a1f889b78fde496e2f1a07afcd08b6 ltsp-utils-0.9.tgz 40575
diff --git a/net-misc/ltsp/files/eb-5.0.9-3c905c-tpo.lzpxe b/net-misc/ltsp/files/eb-5.0.9-3c905c-tpo.lzpxe
new file mode 100644
index 000000000000..8b2d6f86933e
--- /dev/null
+++ b/net-misc/ltsp/files/eb-5.0.9-3c905c-tpo.lzpxe
Binary files differ
diff --git a/net-misc/ltsp/files/eb-5.0.9-eepro100.lzpxe b/net-misc/ltsp/files/eb-5.0.9-eepro100.lzpxe
new file mode 100644
index 000000000000..99514b736cb5
--- /dev/null
+++ b/net-misc/ltsp/files/eb-5.0.9-eepro100.lzpxe
Binary files differ
diff --git a/net-misc/ltsp/files/eb-5.0.9-rtl8139.lzpxe b/net-misc/ltsp/files/eb-5.0.9-rtl8139.lzpxe
new file mode 100644
index 000000000000..17b3282e91c7
--- /dev/null
+++ b/net-misc/ltsp/files/eb-5.0.9-rtl8139.lzpxe
Binary files differ
diff --git a/net-misc/ltsp/files/gdm.conf.pl b/net-misc/ltsp/files/gdm.conf.pl
new file mode 100644
index 000000000000..55b5cd34a618
--- /dev/null
+++ b/net-misc/ltsp/files/gdm.conf.pl
@@ -0,0 +1,84 @@
+#!/usr/bin/perl -w
+#
+# Version: 0.02 last modify: 10/21/2001 jam
+#
+# Description:
+# Read data stream from <stdin> and modify some stuff and
+# write it to <stdout>. Here we use it only for the gdm.conf file.
+#
+# Copyright (C) 2000 Stephan Lauffer <lauffer@ph-freiburg.de>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+
+use strict;
+
+my ($section);
+$section="";
+
+# Read from <stdin>
+#
+while (<STDIN>) {
+
+ # remove the newline character
+ #
+ chomp;
+
+ # Check if the line looks like the beginning of a new section.
+ # These sections are included in the brackets like this: [xdmcp]
+ #
+ if (/\[(\w+)\]/) {
+
+ # store the found section name in variable $section
+ #
+ $section = $1;
+
+ # print this line to <stdout> and look for the next line
+ #
+ print ("$_\n");
+ next;
+ }
+
+ # If we're in section "xdmcp", change the option-value pair
+ # Enable=0 to Enable=1
+ #
+ if ("$section" eq "xdmcp") {
+ if ($_ =~ s/Enable\s*=\s*0\s*/Enable=1/) {
+
+ # now the work is done... to disable all further
+ # test for s/Enable\... set the $sectin to anything
+ # but "xdmcp"
+ #
+ $section="nothing more to grep for...";
+ }
+ elsif ($_ =~ s/Enable\s*=\s*false\s*/Enable=true/) {
+
+ # now the work is done... to disable all further
+ # test for s/Enable\... set the $sectin to anything
+ # but "xdmcp"
+ #
+ $section="nothing more to grep for...";
+ }
+ # print this line to <stdout> and look for the next line
+ #
+ print ("$_\n");
+ next;
+ }
+
+ # If we don't change the line, print the "original" to
+ # stdout.
+ #
+ print ("$_\n");
+}
diff --git a/net-misc/ltsp/files/install.sh b/net-misc/ltsp/files/install.sh
new file mode 100644
index 000000000000..357aaf09915e
--- /dev/null
+++ b/net-misc/ltsp/files/install.sh
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+# This is meant to take over the work done by the install.sh files provided
+# with the ltsp downloads.
+
+SOURCE_DIR=$1
+DEST_DIR=$2
+
+if test x$SOURCE_DIR = x -o \! -d $SOURCE_DIR ; then
+ echo "*** Bad source dir!"
+ exit 1
+fi
+
+if test x$DEST_DIR = x -o \! -d $SOURCE_DIR ; then
+ echo "*** Bad dest dir!"
+ exit 1
+fi
+
+# do the actual copy
+
+find $SOURCE_DIR -print | cpio -pmud --quiet $DEST_DIR
+RS=$?
+if test $RS -ne 0 ; then
+ echo "*** ERROR COPYING $SOURCE_DIR to $DEST_DIR"
+ exit 1
+fi
+
+
diff --git a/net-misc/ltsp/files/kdmrc.pl b/net-misc/ltsp/files/kdmrc.pl
new file mode 100644
index 000000000000..22285ac6cbbf
--- /dev/null
+++ b/net-misc/ltsp/files/kdmrc.pl
@@ -0,0 +1,76 @@
+#!/usr/bin/perl -w
+#
+# Version: 0.01 last modify: 10/21/2001 jam
+#
+# Description:
+# Read data stream from <stdin> and modify some stuff and
+# write it to <stdout>. Here we use it only for the kdmrc file.
+#
+# Copyright (C) 2000 Stephan Lauffer <lauffer@ph-freiburg.de>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+
+use strict;
+
+my ($section);
+$section="";
+
+# Read from <stdin>
+#
+while (<STDIN>) {
+
+ # remove the newline character
+ #
+ chomp;
+
+ # Check if the line looks like the beginning of a new section.
+ # These sections are included in the brackets like this: [xdmcp]
+ #
+ if (/\[(\w+)\]/) {
+
+ # store the found section name in variable $section
+ #
+ $section = $1;
+
+ # print this line to <stdout> and look for the next line
+ #
+ print ("$_\n");
+ next;
+ }
+
+ # If we're in section "xdmcp", change the option-value pair
+ # Enable=0 to Enable=1
+ #
+ if ("$section" eq "Xdmcp") {
+ if ($_ =~ s/Enable\s*=\s*false\s*/Enable=true/) {
+
+ # now the work is done... to disable all further
+ # test for s/Enable\... set the $sectin to anything
+ # but "xdmcp"
+ #
+ $section="nothing more to grep for...";
+ }
+ # print this line to <stdout> and look for the next line
+ #
+ print ("$_\n");
+ next;
+ }
+
+ # If we don't change the line, print the "original" to
+ # stdout.
+ #
+ print ("$_\n");
+}
diff --git a/net-misc/ltsp/files/ltsp.conf b/net-misc/ltsp/files/ltsp.conf
new file mode 100644
index 000000000000..60cc17a8190b
--- /dev/null
+++ b/net-misc/ltsp/files/ltsp.conf
@@ -0,0 +1,7 @@
+:
+#
+# Configuration variables for LTSP
+#
+
+LTSP_DIR=/opt/ltsp
+
diff --git a/net-misc/ltsp/files/ltsp.gif b/net-misc/ltsp/files/ltsp.gif
new file mode 100644
index 000000000000..139e0d1cfe62
--- /dev/null
+++ b/net-misc/ltsp/files/ltsp.gif
Binary files differ
diff --git a/net-misc/ltsp/files/tftp b/net-misc/ltsp/files/tftp
new file mode 100644
index 000000000000..af3398b800b7
--- /dev/null
+++ b/net-misc/ltsp/files/tftp
@@ -0,0 +1,16 @@
+# default: off
+# description: tftp service.
+
+service tftp
+{
+ socket_type = dgram
+ protocol = udp
+ user = root
+ server = /usr/sbin/in.tftpd
+ server_args = -s /tftpboot
+ port = 69
+ wait = yes
+ only_from = 0.0.0.0
+ disable = yes
+}
+
diff --git a/net-misc/ltsp/ltsp-3.0.9-r3.ebuild b/net-misc/ltsp/ltsp-3.0.9-r3.ebuild
new file mode 100644
index 000000000000..06832d24cf7d
--- /dev/null
+++ b/net-misc/ltsp/ltsp-3.0.9-r3.ebuild
@@ -0,0 +1,339 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ltsp/ltsp-3.0.9-r3.ebuild,v 1.1 2004/09/25 07:53:51 lanius Exp $
+
+
+IUSE="gnome kde"
+
+DESCRIPTION="LTSP - Linux Terminal Server Project"
+HOMEPAGE="http://www.ltsp.org/"
+SRC_URI="mirror://sourceforge/ltsp/ltsp_core-3.0.9-i386.tgz
+ mirror://sourceforge/ltsp/ltsp_kernel-3.0.10-i386.tgz
+ mirror://sourceforge/ltsp/ltsp_x_core-3.0.4-i386.tgz
+ mirror://sourceforge/ltsp/ltsp_x_fonts-3.0.0-i386.tgz
+ mirror://sourceforge/ltsp/ltsp_x336_3dlabs-3.0.0-i386.tgz
+ mirror://sourceforge/ltsp/ltsp_x336_8514-3.0.0-i386.tgz
+ mirror://sourceforge/ltsp/ltsp_x336_agx-3.0.0-i386.tgz
+ mirror://sourceforge/ltsp/ltsp_x336_fbdev-3.0.0-i386.tgz
+ mirror://sourceforge/ltsp/ltsp_x336_i128-3.0.0-i386.tgz
+ mirror://sourceforge/ltsp/ltsp_x336_mach32-3.0.0-i386.tgz
+ mirror://sourceforge/ltsp/ltsp_x336_mach64-3.0.0-i386.tgz
+ mirror://sourceforge/ltsp/ltsp_x336_mach8-3.0.0-i386.tgz
+ mirror://sourceforge/ltsp/ltsp_x336_mono-3.0.0-i386.tgz
+ mirror://sourceforge/ltsp/ltsp_x336_p9000-3.0.0-i386.tgz
+ mirror://sourceforge/ltsp/ltsp_x336_s3-3.0.0-i386.tgz
+ mirror://sourceforge/ltsp/ltsp_x336_s3v-3.0.0-i386.tgz
+ mirror://sourceforge/ltsp/ltsp_x336_svga-3.0.0-i386.tgz
+ mirror://sourceforge/ltsp/ltsp_x336_vga16-3.0.0-i386.tgz
+ mirror://sourceforge/ltsp/ltsp_x336_w32-3.0.0-i386.tgz"
+
+DEPEND="gnome? ( >=gnome-base/gdm-2.4.0.0 )
+ kde? ( >=kde-base/kdebase-3.0.2 )
+ virtual/x11
+ virtual/tftp
+ sys-apps/xinetd
+ net-misc/dhcp
+ net-fs/nfs-utils"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="x86"
+
+ltsp_strip_config() {
+ local SOURCE="/"$1
+ local TARGET=${D}/$SOURCE
+ sed -e "/## LTS-begin ##/,/## LTS-end ##/d" < ${SOURCE} >> ${TARGET}
+}
+
+ltsp_copy_config() {
+ local SOURCE="/"$1
+ local TARGET=${D}/$SOURCE
+ if test -f $SOURCE ; then
+ cp $SOURCE $TARGET
+ else
+ echo "!!! No config file named $SOURCE"
+ return 1
+ fi
+}
+
+modify_exports()
+{
+ echo ">>> Modifying /etc/exports ..."
+
+ # get the file
+ ltsp_strip_config /etc/exports
+
+ # insert new data
+ cat >> ${D}/etc/exports <<EOF
+
+## LTS-begin ##
+
+#
+# The lines between the 'LTS-begin' and the 'LTS-end' were added
+# on: `date` by the ltsp installation script.
+# For more information, visit the ltsp homepage
+# at http://www.ltsp.org
+#
+
+/opt/ltsp/i386 192.168.0.0/255.255.255.0(ro,no_root_squash)
+/var/opt/ltsp/swapfiles 192.168.0.0/255.255.255.0(rw,no_root_squash)
+
+#
+# The following entries need to be uncommented if you want
+# Local App support in ltsp
+#
+#/home 192.168.0.0/255.255.255.0(rw,no_root_squash)
+
+## LTS-end ##
+EOF
+
+}
+
+modify_xdm_xdm_config()
+{
+ local file=/etc/X11/xdm/xdm-config
+
+ if [ -f $file ] ; then
+ echo ">>> Modifying $file ..."
+
+ # get file
+ ltsp_strip_config $file
+
+ # make temp file
+ mv ${D}$file ${D}$file.temp
+
+ cat >> ${D}$file.temp <<EOF
+
+## LTS-begin ##
+
+#
+# The lines between the 'LTS-begin' and the 'LTS-end' were added
+# on: Mon Jan 21 21:40:50 CST 2002 by the ltsp installation script.
+# For more information, visit the ltsp homepage
+# at http://www.ltsp.org
+#
+
+DisplayManager.*.setup: /etc/X11/xdm/Xsetup_workstation
+
+## LTS-end ##
+EOF
+
+ # comment out display port line
+ sed -e "s/^DisplayManager\.requestPort/\# DisplayManager.requestPort/" \
+ < ${D}$file.temp >> ${D}$file
+
+ # remove temp file
+ rm -f ${D}$file.temp
+ else
+ echo "!!! $file not installed on system"
+ fi
+}
+
+modify_xdm_Xservers()
+{
+ local file=/etc/X11/xdm/Xservers
+
+ if [ -f $file ] ; then
+ echo ">>> Modifying $file ..."
+
+ # get file
+ ltsp_strip_config $file
+
+ # TODO: put this comment in a more sensical place!!
+ cat >> ${D}$file <<EOF
+
+## LTS-begin ##
+
+# Comment the above line in order to disable xdm for the local machine!
+
+## LTS-end ##
+EOF
+ else
+ echo "!!! $file not installed on system"
+ fi
+}
+
+modify_xdm_kdmrc()
+{
+ local file=/usr/kde/3/share/config/kdm/kdmrc
+
+ if [ -f $file ] ; then
+ echo ">>> Modifying $file ..."
+
+ # get file
+ ltsp_strip_config $file
+
+ # make temp file
+ mv ${D}$file ${D}$file.temp
+
+ # run custom perl script to modify the kdmrc
+ ${FILESDIR}/kdmrc.pl < ${D}/$file.temp >> ${D}/$file
+
+ # remove temp file
+ rm -f ${D}$file.temp
+ else
+ echo "!!! $file not installed on system"
+ fi
+
+}
+
+modify_gdm_gdm_conf()
+{
+ local file=/etc/X11/gdm/gdm.conf
+
+ if [ -f $file ] ; then
+ echo ">>> Modifying $file ..."
+
+ # get file
+ ltsp_strip_config $file
+
+ # make temp file
+ mv ${D}$file ${D}$file.temp
+
+ # run custom perl script to modify the gdm.conf
+ ${FILESDIR}/gdm.conf.pl < ${D}/$file.temp >> ${D}/$file
+
+ # remove temp file
+ rm -f ${D}$file.temp
+ else
+ echo "!!! $file not installed on system"
+ fi
+}
+
+src_compile() {
+ if [ "`has sandbox ${FEATURES}`" ]; then
+ einfo
+ einfo '!!! You have to add FEATURES="-sandbox" to /etc/make.conf '
+ einfo ' in order to emerge ltsp !!!'
+ einfo
+ die
+ fi
+}
+
+src_install() {
+ local XSERVERS="3dlabs 8514 agx fbdev i128 mach32 mach64 mach8 mono p9000 \
+ s3 s3v svga w32"
+
+ echo ">>> Installing root LTSP directory ..."
+ cd ${WORKDIR}/ltsp_core
+ ${FILESDIR}/install.sh i386 ${D}/opt/ltsp/
+ dodoc INSTALL README ${FILESDIR}/INSTALL.Gentoo
+
+ echo ">>> Installing the X core ..."
+ cd ${WORKDIR}/ltsp_x_core
+ ${FILESDIR}/install.sh i386 ${D}/opt/ltsp/
+
+ echo ">>> Installing the X fonts ..."
+ cd ${WORKDIR}/ltsp_x_fonts
+ ${FILESDIR}/install.sh i386 ${D}/opt/ltsp/
+
+ echo ">>> Installing the LTSP kernel ..."
+ cd ${WORKDIR}/ltsp_kernel
+ ${FILESDIR}/install.sh i386 ${D}/opt/ltsp/
+ dodir /tftpboot/lts
+ dodir /tftpboot/pxe
+ cp vmlinuz* ${D}/tftpboot/lts
+ insinto /tftpboot/pxe
+ doins ${FILESDIR}/eb-5.0.9-rtl8139.lzpxe
+ doins ${FILESDIR}/eb-5.0.9-eepro100.lzpxe
+ doins ${FILESDIR}/eb-5.0.9-3c905c-tpo.lzpxe
+
+ echo ">>> Installing the X Servers ..."
+ for d in $XSERVERS ; do
+ cd ${WORKDIR}/ltsp_x336_$d
+ ${FILESDIR}/install.sh i386 ${D}/opt/ltsp/
+ done
+
+ # make config dirs
+ dodir /usr/kde/3/share/config/kdm
+ dodir /etc/X11/gdm
+
+ ebegin "Copy the ltsp.conf file ..."
+ insinto /etc
+ doins ${FILESDIR}/ltsp.conf
+ eend
+
+ ebegin "Copying xdm files ..."
+ insinto /etc/X11/xdm
+ doins ${FILESDIR}/{Xsetup_workstation,ltsp.gif,Xaccess}
+ eend
+
+ ebegin "Copying dhcp files ..."
+ insinto /etc/dhcp
+ doins ${FILESDIR}/dhcpd.conf
+ eend
+
+ ebegin "Copying xinetd files ..."
+ insinto /etc/xinetd.d
+ doins ${FILESDIR}/tftp
+ eend
+
+ # modify config files
+ modify_exports
+ modify_xdm_xdm_config
+ modify_xdm_Xservers
+ if use kde; then
+ modify_xdm_kdmrc
+ fi
+
+ # gdm requires a custom config
+ if use gnome; then
+ modify_gdm_gdm_conf
+ ltsp_copy_config /etc/X11/gdm/Default
+
+ if test -f ${D}/etc/X11/gdm/Default -o -L ${D}/etc/X11/gdm/Default; then
+ mv ${D}/etc/X11/gdm/Default ${D}/etc/X11/gdm/\:0
+ fi
+
+ dosym /etc/X11/xdm/Xsetup_workstation /etc/X11/gdm/Default
+ fi
+
+ # ensure that these directories get copied even though they are empty
+ for empty_dir in dev oldroot proc root tmp ; do
+ keepdir /opt/ltsp/i386/${empty_dir}
+ done
+
+ rm -f ${D}/opt/ltsp/i386/etc/lts.conf
+}
+
+pkg_postinst() {
+ einfo "*******************************************************************************************"
+ einfo " | PLEASE LOOK AT THE MERGED CONFIG FILES AND UPDATE/OVERWRITE OLDER CONFS AS NEEDED! ***| "
+ einfo "*******************************************************************************************"
+ einfo " | YOU NEED TO EDIT YOUR UPDATED CONFIGURATION FILES TO COMPLETE THE LTSP INSTALLATION: *| "
+ einfo " |---------------------------------------------------------------------------------------| "
+ einfo " | FILE -------------------------| ACTION -----------------------------------------------| "
+ einfo " |---------------------------------------------------------------------------------------| "
+ einfo " | /etc/exports -----------------| Alter network address/netmask(nfs options) to match --| "
+ einfo " |-------------------------------| your current network/nfs settings --------------------| "
+ einfo " |---------------------------------------------------------------------------------------| "
+ einfo " | /etc/dhcp/dhcpd.conf ---------| Alter it to match your network settings and other ----| "
+ einfo " |-------------------------------| needs. Read comments inside dhcpd.conf for more... ---| "
+ einfo " |---------------------------------------------------------------------------------------| "
+ einfo " | /etc/conf.d/dhcp -------------| Alter IFACE setting if needed ------------------------| "
+ einfo " |---------------------------------------------------------------------------------------| "
+ einfo " | /opt/ltsp/i386/etc/lts.conf --| Alter LTSP config file to match your terminals -------| "
+ einfo " |---------------------------------------------------------------------------------------| "
+ einfo " | /etc/xinetd.d/tftp -----------| Change disable=yes to disable=no ---------------------| "
+ einfo " |---------------------------------------------------------------------------------------| "
+ einfo "*******************************************************************************************"
+ einfo " | YOU NEED TO ACTIVATE THESE SERVICES TO RUN LTSP SERVER: ------------------------------| "
+ einfo " |---------------------------------------------------------------------------------------| "
+ einfo " | SERVICE ----------------------| ACTION -----------------------------------------------| "
+ einfo " |---------------------------------------------------------------------------------------| "
+ einfo " | DHCP -------------------------| /etc/init.d/dhcp start -------------------------------| "
+ einfo " |-------------------------------| rc-update add dhcp default (for start at boot) -------| "
+ einfo " |---------------------------------------------------------------------------------------| "
+ einfo " | XDM --------------------------| /etc/init.d/xdm start --------------------------------| "
+ einfo " |-------------------------------| rc-update add xdm default (for start at boot) --------| "
+ einfo " |---------------------------------------------------------------------------------------| "
+ einfo " | TFTP FROM XINETD -------------| /etc/init.d/xinetd start -----------------------------| "
+ einfo " |-------------------------------| rc-update add xinetd default (for start at boot) -----| "
+ einfo " |---------------------------------------------------------------------------------------| "
+ einfo " | NFS --------------------------| /etc/init.d/nfs start --------------------------------| "
+ einfo " |-------------------------------| rc-update add nfs default (for start at boot) --------| "
+ einfo " |---------------------------------------------------------------------------------------| "
+ einfo "*******************************************************************************************"
+ einfo " | FOR MORE INFORMATION AND COMPLETE SET OF DOCUMENTATION GO TO WWW.LTSP.ORG ***********| "
+ einfo "*******************************************************************************************"
+}
diff --git a/net-misc/ltsp/ltsp-4.0.ebuild b/net-misc/ltsp/ltsp-4.0.ebuild
new file mode 100644
index 000000000000..5cda005ca2cc
--- /dev/null
+++ b/net-misc/ltsp/ltsp-4.0.ebuild
@@ -0,0 +1,170 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ltsp/ltsp-4.0.ebuild,v 1.1 2004/09/25 07:53:51 lanius Exp $
+
+IUSE="X debug"
+
+DESCRIPTION="LTSP - Linux Terminal Server Project"
+HOMEPAGE="http://www.ltsp.org/"
+
+LTSP_CORE="ltsp-ltsptree-0.09-0-i386.tgz
+ltsp-glibc-2.3.2-0-i386.tgz
+ltsp-sysvinit-2.84-0-i386.tgz
+ltsp-popt-1.0-0-i386.tgz
+ltsp-bash-2.05b-0-i386.tgz
+ltsp-busybox-0.60.4-0-i386.tgz
+ltsp-devfsd-1.3.25-0-i386.tgz
+ltsp-getltscfg-0.02-0-i386.tgz
+ltsp-libgcc_s-3.2.3-0-i386.tgz
+ltsp-haltsys-0.02-0-i386.tgz
+ltsp-e2fsprogs-1.29-0-i386.tgz
+ltsp-startsess-1.1-0-i386.tgz
+ltsp-lp_server-1.1.6-0-i386.tgz
+ltsp-ltspinfod-0.1-0-i386.tgz
+ltsp-modutils-2.4.22-0-i386.tgz
+ltsp-ncurses-5.3-0-i386.tgz
+ltsp-open-1.4-0-i386.tgz
+ltsp-prep_swap-0.01-0-i386.tgz
+ltsp-zlib-1.1.4-0-i386.tgz
+ltsp-libpng-1.2.5-0-i386.tgz
+ltsp-pci_scan-0.02-0-i386.tgz
+ltsp-pam-0.77-0-i386.tgz
+ltsp-ssh-3.7.1p2-0-i386.tgz
+ltsp-audiofile-0.2.3-0-i386.tgz
+ltsp-esd-0.2.32-0-i386.tgz
+ltsp-net-tools-1.60-0-i386.tgz
+ltsp-xinetd-2.3.12-0-i386.tgz
+ltsp-ypbind-1.14-0-i386.tgz
+ltsp-tcp_wrappers-7.6-0-i386.tgz
+ltsp-portmap-4-0-i386.tgz
+ltsp-rdesktop-1.2.0-0-i386.tgz"
+
+LTSP_DEBUG="ltsp-gdb-5.3-0-i386.tgz
+ltsp-strace-4.4.94-0-i386.tgz"
+
+LTSP_X="ltsp-x-core-4.3.99.901-0-i386.tgz
+ltsp-x-fonts-4.3.99.901-0-i386.tgz
+ltsp-x-fonts-100dpi-4.3.99.901-0-i386.tgz
+ltsp_x336_3DLabs-3.3.6-0-i386.tgz
+ltsp_x336_8514-3.3.6-0-i386.tgz
+ltsp_x336_AGX-3.3.6-0-i386.tgz
+ltsp_x336_I128-3.3.6-0-i386.tgz
+ltsp_x336_Mach32-3.3.6-0-i386.tgz
+ltsp_x336_Mach64-3.3.6-0-i386.tgz
+ltsp_x336_Mach8-3.3.6-0-i386.tgz
+ltsp_x336_Mono-3.3.6-0-i386.tgz
+ltsp_x336_P9000-3.3.6-0-i386.tgz
+ltsp_x336_S3_S3V-3.3.6-0-i386.tgz
+ltsp_x336_SVGA-3.3.6-0-i386.tgz
+ltsp_x336_VGA16-3.3.6-0-i386.tgz
+ltsp_x336_W32-3.3.6-0-i386.tgz"
+
+LTSP_STUFF="ltspcfg-0.3.tgz
+ltsp_kernel-3.0.13-i386.tgz"
+
+for FILE in ${LTSP_CORE} ${LTSP_STUFF}
+do
+ SRC_URI="${SRC_URI} mirror://sourceforge/ltsp/${FILE}"
+done
+
+for FILE in ${LTSP_DEBUG} ${LTSP_STUFF}
+do
+ SRC_URI="${SRC_URI} debug? ( mirror://sourceforge/ltsp/${FILE} )"
+done
+
+for FILE in ${LTSP_X}
+do
+ SRC_URI="${SRC_URI} X? ( mirror://sourceforge/ltsp/${FILE} )"
+done
+
+RDEPEND="X? ( virtual/x11 )
+ virtual/tftp
+ sys-apps/xinetd
+ net-misc/dhcp
+ net-fs/nfs-utils
+ net-nds/portmap"
+
+DEPEND="app-arch/tar
+ virtual/gzip"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="x86"
+
+S=${WORKDIR}/ltsp
+
+pkg_setup() {
+ if `has_version net-misc/ltsp`; then
+ ewarn "Due to a portage bug you have to remove your old ltsp version before upgrading."
+ die
+ fi
+}
+
+src_unpack() {
+ # nothing to unpack
+ mkdir ltsp
+ cd ltsp
+
+ for FILE in ${LTSP_STUFF}
+ do
+ tar -xzf ${DISTDIR}/${FILE}
+ done
+}
+
+src_install() {
+ # now unpack the files
+ # first the core stuff
+ dodir /opt/ltsp
+ echo "Installing core packages..."
+ for FILE in ${LTSP_CORE}
+ do
+ tar -xzf ${DISTDIR}/${FILE} -C ${D}/opt/ltsp 2> /dev/null
+ done
+
+ # debug stuff
+ if use debug; then
+ echo "Installing debug packages..."
+ for FILE in ${LTSP_DEBUG}
+ do
+ tar -xzf ${DISTDIR}/${FILE} -C ${D}/opt/ltsp 2> /dev/null
+ done
+ fi
+
+ # X stuff
+ if use X; then
+ echo "Installing X packages..."
+ for FILE in ${LTSP_X}
+ do
+ tar -xzf ${DISTDIR}/${FILE} -C ${D}/opt/ltsp 2> /dev/null
+ done
+ fi
+
+ # kernel stuff
+ echo "Installing kernel packages..."
+ cd ltsp_kernel
+ find i386 -print | cpio -pmud --quiet ${D}/opt/ltsp 2> /dev/null
+ insinto /tftpboot/lts
+ doins vmlinuz-2.4.24-ltsp-1
+ cd ..
+
+ # pxe stuff
+ insinto /tftpboot/pxe
+ doins ${FILESDIR}/eb-5.0.9-rtl8139.lzpxe
+ doins ${FILESDIR}/eb-5.0.9-eepro100.lzpxe
+ doins ${FILESDIR}/eb-5.0.9-3c905c-tpo.lzpxe
+
+ # config stuff
+ echo "Doing several other stuff..."
+ dosbin ltspcfg
+
+ # several other stuff
+ mv ${D}/opt/ltsp/i386/etc/lts.conf ${D}/opt/ltsp/i386/etc/lts.conf.example
+ dodoc COPYING
+}
+
+pkg_postinst() {
+ einfo
+ einfo "Either use ltspcfg to configure your stuff, or follow the guide at gentoo.org:"
+ einfo " http://www.gentoo.org/doc/en/ltsp.xml "
+ einfo
+}
diff --git a/net-misc/ltsp/ltsp-4.1-r1.ebuild b/net-misc/ltsp/ltsp-4.1-r1.ebuild
new file mode 100644
index 000000000000..6077ffd82b55
--- /dev/null
+++ b/net-misc/ltsp/ltsp-4.1-r1.ebuild
@@ -0,0 +1,189 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ltsp/ltsp-4.1-r1.ebuild,v 1.1 2004/09/25 07:53:51 lanius Exp $
+
+IUSE="X debug nas esd audiofile snmp"
+
+DESCRIPTION="LTSP - Linux Terminal Server Project"
+HOMEPAGE="http://www.ltsp.org/"
+
+DEPEND="app-arch/tar
+ virtual/gzip"
+
+RDEPEND="X? ( virtual/x11 )
+ virtual/tftp
+ sys-apps/xinetd
+ net-misc/dhcp
+ net-fs/nfs-utils
+ net-nds/portmap"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86"
+
+S=${WORKDIR}/ltsp
+
+LTSP_CORE="ltsp-ltsptree-1.7-0-i386.tgz
+ltsp-glibc-1.0-0-i386.tgz
+ltsp-sysvinit-1.0-0-i386.tgz
+ltsp-popt-1.1-0-i386.tgz
+ltsp-bash-1.0-0-i386.tgz
+ltsp-busybox-1.0-0-i386.tgz
+ltsp-devfsd-1.0-0-i386.tgz
+ltsp-getltscfg-1.2-0-i386.tgz
+ltsp-libgcc_s-1.0-0-i386.tgz
+ltsp-haltsys-1.0-0-i386.tgz
+ltsp-e2fsprogs-1.1-0-i386.tgz
+ltsp-startsess-1.1-0-i386.tgz
+ltsp-lp_server-1.1-0-i386.tgz
+ltsp-ltspinfod-1.1-0-i386.tgz
+ltsp-modutils-1.0-0-i386.tgz
+ltsp-ncurses-1.0-0-i386.tgz
+ltsp-open-1.1-0-i386.tgz
+ltsp-prep_swap-1.0-0-i386.tgz
+ltsp-zlib-1.0-0-i386.tgz
+ltsp-libpng-1.0-0-i386.tgz
+ltsp-pci_scan-1.0-0-i386.tgz
+ltsp-pam-1.0-0-i386.tgz
+ltsp-ssh-1.0-0-i386.tgz
+ltsp-net-tools-1.0-0-i386.tgz
+ltsp-xinetd-1.0-0-i386.tgz
+ltsp-ypbind-1.0-0-i386.tgz
+ltsp-tcp_wrappers-1.0-0-i386.tgz
+ltsp-portmap-1.0-0-i386.tgz
+ltsp-rdesktop-1.3-0-i386.tgz
+ltsp-libvncserver-1.0-0-i386.tgz
+ltsp-localdev-1.1-0-i386.tgz
+ltsp-openssl-1.0-0-i386.tgz
+ltsp-samba-1.0-0-i386.tgz
+ltsp-util-linux-1.0-0-i386.tgz
+ltsp-vidlist-1.1-0-i386.tgz
+ltsp-aumix-1.0-0-i386.tgz
+ltsp-freetype-1.0-0-i386.tgz"
+
+use snmp && LTSP_CORE="${LTSP_CORE} ltsp-snmpd-1-0-i386.tgz"
+
+LTSP_DEBUG="ltsp-gdb-1.0-0-i386.tgz
+ltsp-strace-1.0-0-i386.tgz"
+
+LTSP_X="ltsp-x-core-1.2-0-i386.tgz
+ltsp-x-fonts-1.0-0-i386.tgz
+ltsp-x-fonts-100dpi-1.0-0-i386.tgz
+ltsp-x336_3DLabs-1.0-0-i386.tgz
+ltsp-x336_8514-1.0-0-i386.tgz
+ltsp-x336_AGX-1.0-0-i386.tgz
+ltsp-x336_I128-1.0-0-i386.tgz
+ltsp-x336_Mach32-1.0-0-i386.tgz
+ltsp-x336_Mach64-1.0-0-i386.tgz
+ltsp-x336_Mach8-1.0-0-i386.tgz
+ltsp-x336_Mono-1.0-0-i386.tgz
+ltsp-x336_P9000-1.0-0-i386.tgz
+ltsp-x336_S3_S3V-1.0-0-i386.tgz
+ltsp-x336_SVGA-1.0-0-i386.tgz
+ltsp-x336_VGA16-1.0-0-i386.tgz
+ltsp-x336_W32-1.0-0-i386.tgz"
+
+LTSP_STUFF="ltsp-kernel-1.4-0-i386.tgz
+ltsp-modules-1.4-0-i386.tgz"
+
+LTSP_UTILS="ltsp-utils-0.9.tgz"
+
+KERNEL_VERSION="2.4.26-ltsp-2"
+
+use audiofile && LTSP_SOUND="${LTSP_SOUND} ltsp-audiofile-1.0-0-i386.tgz"
+use esd && LTSP_SOUND="${LTSP_SOUND} ltsp-esd-1.0-0-i386.tgz"
+use nas && LTSP_SOUND="${LTSP_SOUND} ltsp_nasd-1.1-0-i386.tgz"
+
+for FILE in ${LTSP_CORE} ${LTSP_STUFF}
+do
+ SRC_URI="${SRC_URI} http://www.ltsp.org/ltsp-4.1/${FILE}"
+done
+
+for FILE in ${LTSP_DEBUG}
+do
+ SRC_URI="${SRC_URI} debug? ( http://www.ltsp.org/ltsp-4.1/${FILE} )"
+done
+
+for FILE in ${LTSP_X}
+do
+ SRC_URI="${SRC_URI} X? ( http://www.ltsp.org/ltsp-4.1/${FILE} )"
+done
+
+for FILE in ${LTSP_SOUND}
+do
+ SRC_URI="${SRC_URI} http://www.ltsp.org/ltsp-4.1/${FILE}"
+done
+
+SRC_URI="${SRC_URI} mirror://sourceforge/ltsp/${LTSP_UTILS}"
+
+
+src_unpack() {
+ # nothing to unpack
+ mkdir ltsp
+ cd ltsp
+
+ for FILE in ${LTSP_STUFF} ${LTSP_UTILS}
+ do
+ tar -xzf ${DISTDIR}/${FILE}
+ done
+}
+
+src_install() {
+ # now unpack the files
+ # first the core stuff
+ dodir /opt/ltsp-${PV}
+ echo "Installing core packages..."
+ for FILE in ${LTSP_CORE}
+ do
+ tar -xzf ${DISTDIR}/${FILE} -C ${D}/opt/ltsp-${PV} 2> /dev/null
+ done
+
+ # debug stuff
+ if use debug ; then
+ echo "Installing debug packages..."
+ for FILE in ${LTSP_DEBUG}
+ do
+ tar -xzf ${DISTDIR}/${FILE} -C ${D}/opt/ltsp-${PV} 2> /dev/null
+ done
+ fi
+
+ # X stuff
+ if use X ; then
+ echo "Installing X packages..."
+ for FILE in ${LTSP_X}
+ do
+ tar -xzf ${DISTDIR}/${FILE} -C ${D}/opt/ltsp-${PV} 2> /dev/null
+ done
+ fi
+
+ # kernel stuff
+ echo "Installing kernel packages..."
+ find i386 -print | cpio -pmud --quiet ${D}/opt/ltsp-${PV} 2> /dev/null
+ insinto /tftpboot/lts
+ doins vmlinuz-${KERNEL_VERSION}
+
+ # pxe stuff
+ insinto /tftpboot/pxe
+ doins ${FILESDIR}/eb-5.0.9-rtl8139.lzpxe
+ doins ${FILESDIR}/eb-5.0.9-eepro100.lzpxe
+ doins ${FILESDIR}/eb-5.0.9-3c905c-tpo.lzpxe
+
+ # config stuff
+ cd ltsp-utils
+ echo "Doing several other stuff..."
+ dosbin ltspcfg
+ dosbin ltspinfo
+ dosbin ltspadmin
+ dodoc COPYING
+ cd ..
+
+ # several other stuff
+ rm -fR ${D}/usr/share/
+}
+
+pkg_postinst() {
+ einfo
+ einfo "Either use ltspcfg to configure your stuff, or follow the guide at gentoo.org:"
+ einfo " http://www.gentoo.org/doc/en/ltsp.xml "
+ einfo
+}
diff --git a/net-misc/ltsp/metadata.xml b/net-misc/ltsp/metadata.xml
new file mode 100644
index 000000000000..b10a81aadc90
--- /dev/null
+++ b/net-misc/ltsp/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>lanius@gentoo.org</email>
+ </maintainer>
+ <longdescription>LTSP, the Linux Terminal Server Project, is designed to
+ allow multiple dummy terminals to run off of one central server. It
+ includes support for local sound, usb mass media access, CD-ROM access,
+ floppy access, and a host of other goodies. See http://www.ltsp.org for a
+ full run-down of this fantastic package.
+ </longdescription>
+</pkgmetadata>