diff options
author | Andres Toomsalu <frame@gentoo.org> | 2003-02-12 08:22:12 +0000 |
---|---|---|
committer | Andres Toomsalu <frame@gentoo.org> | 2003-02-12 08:22:12 +0000 |
commit | 8d35eec3f345ae633417e03de408c38b809f701f (patch) | |
tree | 173fba48f1886b5afa524ea2497c3eea42505509 | |
parent | Update Copyright years (diff) | |
download | gentoo-2-8d35eec3f345ae633417e03de408c38b809f701f.tar.gz gentoo-2-8d35eec3f345ae633417e03de408c38b809f701f.tar.bz2 gentoo-2-8d35eec3f345ae633417e03de408c38b809f701f.zip |
Initial ltsp-core ebuild import
-rw-r--r-- | net-misc/ltsp-core/ChangeLog | 81 | ||||
-rw-r--r-- | net-misc/ltsp-core/files/INSTALL.Gentoo | 40 | ||||
-rw-r--r-- | net-misc/ltsp-core/files/Xaccess | 70 | ||||
-rw-r--r-- | net-misc/ltsp-core/files/Xsetup_workstation | 18 | ||||
-rw-r--r-- | net-misc/ltsp-core/files/dhcpd.conf | 120 | ||||
-rw-r--r-- | net-misc/ltsp-core/files/digest-ltsp-core-3.0.7-r1 | 19 | ||||
-rw-r--r-- | net-misc/ltsp-core/files/gdm.conf.pl | 84 | ||||
-rw-r--r-- | net-misc/ltsp-core/files/install.sh | 28 | ||||
-rw-r--r-- | net-misc/ltsp-core/files/kdmrc.pl | 76 | ||||
-rw-r--r-- | net-misc/ltsp-core/files/ltsp.conf | 7 | ||||
-rw-r--r-- | net-misc/ltsp-core/files/tftp | 16 | ||||
-rw-r--r-- | net-misc/ltsp-core/ltsp-core-3.0.7-r1.ebuild | 327 |
12 files changed, 886 insertions, 0 deletions
diff --git a/net-misc/ltsp-core/ChangeLog b/net-misc/ltsp-core/ChangeLog new file mode 100644 index 000000000000..5e8ba347b1e5 --- /dev/null +++ b/net-misc/ltsp-core/ChangeLog @@ -0,0 +1,81 @@ +# ChangeLog for net-misc/ltsp-core +# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/ltsp-core/ChangeLog,v 1.1 2003/02/12 08:22:12 frame Exp $ + +*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-core/files/INSTALL.Gentoo b/net-misc/ltsp-core/files/INSTALL.Gentoo new file mode 100644 index 000000000000..70ef31458c31 --- /dev/null +++ b/net-misc/ltsp-core/files/INSTALL.Gentoo @@ -0,0 +1,40 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later + + ******************************************************************************************* + | 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) -----| + |---------------------------------------------------------------------------------------| + ******************************************************************************************* + | FOR MORE INFORMATION AND COMPLETE SET OF DOCUMENTATION GO TO WWW.LTSP.ORG ***********| + ******************************************************************************************* + diff --git a/net-misc/ltsp-core/files/Xaccess b/net-misc/ltsp-core/files/Xaccess new file mode 100644 index 000000000000..a240520ad089 --- /dev/null +++ b/net-misc/ltsp-core/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-core/files/Xsetup_workstation b/net-misc/ltsp-core/files/Xsetup_workstation new file mode 100644 index 000000000000..112f83c2538c --- /dev/null +++ b/net-misc/ltsp-core/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-core/files/dhcpd.conf b/net-misc/ltsp-core/files/dhcpd.conf new file mode 100644 index 000000000000..cffb1ebcc66e --- /dev/null +++ b/net-misc/ltsp-core/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.5-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.1 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.5-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-core/files/digest-ltsp-core-3.0.7-r1 b/net-misc/ltsp-core/files/digest-ltsp-core-3.0.7-r1 new file mode 100644 index 000000000000..827e4cc08713 --- /dev/null +++ b/net-misc/ltsp-core/files/digest-ltsp-core-3.0.7-r1 @@ -0,0 +1,19 @@ +MD5 a890d19de7a182ab53e02faa056d7649 ltsp_core-3.0.7-i386.tgz 1461144 +MD5 5c7defaea1de847e6c14f31d9e5302c7 ltsp_kernel-3.0.5-i386.tgz 5144448 +MD5 491ebf4539c2932933efc26a06f85d1a ltsp_x_core-3.0.1-i386.tgz 10959730 +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-core/files/gdm.conf.pl b/net-misc/ltsp-core/files/gdm.conf.pl new file mode 100644 index 000000000000..55b5cd34a618 --- /dev/null +++ b/net-misc/ltsp-core/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-core/files/install.sh b/net-misc/ltsp-core/files/install.sh new file mode 100644 index 000000000000..357aaf09915e --- /dev/null +++ b/net-misc/ltsp-core/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-core/files/kdmrc.pl b/net-misc/ltsp-core/files/kdmrc.pl new file mode 100644 index 000000000000..22285ac6cbbf --- /dev/null +++ b/net-misc/ltsp-core/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-core/files/ltsp.conf b/net-misc/ltsp-core/files/ltsp.conf new file mode 100644 index 000000000000..60cc17a8190b --- /dev/null +++ b/net-misc/ltsp-core/files/ltsp.conf @@ -0,0 +1,7 @@ +: +# +# Configuration variables for LTSP +# + +LTSP_DIR=/opt/ltsp + diff --git a/net-misc/ltsp-core/files/tftp b/net-misc/ltsp-core/files/tftp new file mode 100644 index 000000000000..af3398b800b7 --- /dev/null +++ b/net-misc/ltsp-core/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-core/ltsp-core-3.0.7-r1.ebuild b/net-misc/ltsp-core/ltsp-core-3.0.7-r1.ebuild new file mode 100644 index 000000000000..a81fd3216b12 --- /dev/null +++ b/net-misc/ltsp-core/ltsp-core-3.0.7-r1.ebuild @@ -0,0 +1,327 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-misc/ltsp-core/ltsp-core-3.0.7-r1.ebuild,v 1.1 2003/02/12 08:22:12 frame Exp $ + + +IUSE="gnome kde" + +S=${WORKDIR}/${P} +DESCRIPTION="LTSP - Linux Terminal Server Project" +HOMEPAGE="http://www.ltsp.org/" +SRC_URI="mirror://sourceforge/ltsp/ltsp_core-3.0.7-i386.tgz + mirror://sourceforge/ltsp/ltsp_kernel-3.0.5-i386.tgz + mirror://sourceforge/ltsp/ltsp_x_core-3.0.1-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" + +RDEPEND="gnome? ( >=gdm-2.4.0.0 ) + kde? ( >=kdebase-3.0.2 ) + x11-base/xfree + app-admin/tftp-hpa + sys-apps/xinetd + net-misc/dhcp + net-fs/nfs-utils" + +DEPEND="${RDEPEND}" + +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_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.8-rtl8139.lzpxe + doins ${FILESDIR}/eb-5.0.8-eepro100.lzpxe + doins ${FILESDIR}/eb-5.0.8-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 [ -n `use kde` ]; then + modify_xdm_kdmrc + fi + + # gdm requires a custom config + if [ -n `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 +} + +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 "*******************************************************************************************" + einfo " | FOR MORE INFORMATION AND COMPLETE SET OF DOCUMENTATION GO TO WWW.LTSP.ORG ***********| " + einfo "*******************************************************************************************" +} |