summaryrefslogtreecommitdiff
blob: f4e586e96f4344d01fe93465b2db7a73ddeef60d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/ltsp/ltsp-4.1.1.ebuild,v 1.3 2005/06/07 08:39:06 lanius Exp $

inherit eutils

IUSE="X debug nas esd audiofile snmp floppyd"

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-dns/dnsmasq )
	net-fs/nfs-utils
	net-nds/portmap
	dev-perl/libwww-perl"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~x86 ~amd64"

SRC_URI="
http://www.ltsp.org/ltsp-4.1/ltsp-ltsptree-1.11-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-glibc-1.0-1-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-sysvinit-1.1-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-popt-1.2-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-bash-1.1-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-busybox-1.1-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-devfsd-1.1-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-getltscfg-1.3-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-libgcc_s-1.0-1-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-haltsys-1.1-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-e2fsprogs-1.2-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-startsess-1.2-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-lp_server-1.2-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-ltspinfod-1.2-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-modutils-1.1-1-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-ncurses-1.1-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-open-1.2-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-prep_swap-1.1-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-zlib-1.0-1-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-libpng-1.1-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-pci_scan-1.1-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-pam-1.1-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-ssh-1.1-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-net-tools-1.1-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-xinetd-1.1-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-ypbind-1.1-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-tcp_wrappers-1.1-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-portmap-1.1-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-rdesktop-1.5-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-libvncserver-1.1-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-localdev-1.2-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-openssl-1.1-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-samba-1.1-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-util-linux-1.1-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-vidlist-1.4-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-aumix-1.1-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-freetype-1.1-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-kernel-2.4.26-1.5-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-kernel-2.6.9-1.5-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-modules-2.4.26-1.5-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-modules-2.6.9-1.5-0-i386.tgz
http://www.ltsp.org/ltsp-utils-0.11.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-module-init-tools-3.2-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-nfs-utils-1.1-0-i386.tgz

snmp? (
http://www.ltsp.org/ltsp-4.1/ltsp-snmpd-1.1-0-i386.tgz )

debug? (
http://www.ltsp.org/ltsp-4.1/ltsp-gdb-1.1-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-strace-1.1-0-i386.tgz )

X? (
http://www.ltsp.org/ltsp-4.1/ltsp-x-core-1.5-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-x-fonts-1.5-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-x-fonts-100dpi-1.5-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-x336_3DLabs-1.1-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-x336_8514-1.1-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-x336_AGX-1.1-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-x336_I128-1.1-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-x336_Mach32-1.1-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-x336_Mach64-1.1-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-x336_Mach8-1.1-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-x336_Mono-1.1-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-x336_P9000-1.1-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-x336_S3_S3V-1.1-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-x336_SVGA-1.1-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-x336_VGA16-1.1-0-i386.tgz
http://www.ltsp.org/ltsp-4.1/ltsp-x336_W32-1.1-0-i386.tgz )

audiofile? (
http://www.ltsp.org/ltsp-4.1/ltsp-audiofile-1.1-0-i386.tgz )

esd? (
http://www.ltsp.org/ltsp-4.1/ltsp-esd-1.1-0-i386.tgz )

nas? (
http://www.ltsp.org/ltsp-4.1/ltsp_nasd-1.2-0-i386.tgz )

floppyd? (
mirror://sourceforge/ltsp/ltsp_floppyd-3.0.tar.gz )"

S=${WORKDIR}/ltsp

src_unpack() {
	# nothing to unpack
	mkdir ltsp
	cd ltsp

	unpack ltsp-utils-0.11.tgz
	unpack ltsp-kernel-2.4.26-1.5-0-i386.tgz
	unpack ltsp-kernel-2.6.9-1.5-0-i386.tgz
	unpack ltsp-modules-2.4.26-1.5-0-i386.tgz
	unpack ltsp-modules-2.6.9-1.5-0-i386.tgz
}

src_install() {
	# core packages
	MY_A=${A/ltsp-utils-0.11.tgz/}
	MY_A=${MY_A/ltsp-kernel-2.4.26-1.5-0-i386.tgz/}
	MY_A=${MY_A/ltsp-kernel-2.6.9-1.5-0-i386.tgz/}
	MY_A=${MY_A/ltsp-modules-2.4.26-1.5-0-i386.tgz/}
	MY_A=${MY_A/ltsp-modules-2.6.9-1.5-0-i386.tgz/}
	MY_A=${MY_A/ltsp_floppyd-3.0.tar.gz/}

	dodir /opt/ltsp-${PV}
	cd ${D}/opt/ltsp-${PV}
	unpack ${MY_A}

	# kernel stuff
	cd ${S}
	find i386 -print | cpio -pmud --quiet ${D}/opt/ltsp-${PV} 2> /dev/null
	insinto /tftpboot/lts
	doins vmlinuz-2.4.26-ltsp-3
	doins vmlinuz-2.6.9-ltsp-3

	# pxe stuff
	insinto /tftpboot/pxe
	doins 2.4.26-ltsp-3/pxelinux.0
	insinto /tftpboot/pxelinux.cfg
	doins 2.4.26-ltsp-3/pxelinux.cfg/default

	insinto /tftpboot/pxe
	doins 2.4.26-ltsp-3/initrd-2.4.26-ltsp-3.gz
	doins 2.4.26-ltsp-3/bzImage-2.4.26-ltsp-3
	doins 2.6.9-ltsp-3/initrd-2.6.9-ltsp-3.gz
	doins 2.6.9-ltsp-3/bzImage-2.6.9-ltsp-3

	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
	dosbin ltspcfg
	dodir /etc
	echo "LTSP_DIR=/opt/ltsp-${PV}" > ${D}/etc/ltsp.conf
	dosbin ltspinfo
	dosbin ltspadmin
	dodoc COPYING
	cd ..

	# floppyd
	use floppyd && ( \
		cd ${S};
		unpack ltsp_floppyd-3.0.tar.gz;
		cp ltsp_floppyd/floppyd ${D}/opt/ltsp-${PV}/i386/bin/floppyd;
		chmod 755 ${D}/opt/ltsp-${PV}/i386/bin/floppyd;
		cp ltsp_floppyd/floppyd.rc ${D}/opt/ltsp-${PV}/i386/etc/rc.d/floppyd;
		chmod 755 ${D}/opt/ltsp-${PV}/i386/etc/rc.d/floppyd;
	)

	# make usb configurable
	cd ${D}/opt/ltsp-${PV}/i386/etc/
	epatch ${FILESDIR}/ltsp-${PV}-usb-config.patch

	# several other stuff
	rm -fR ${D}/usr/share/
	rm -fR ${D}/opt/ltsp-${PV}/i386/usr/share/aclocal
}

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
	einfo "     NOTE: The directory containing LTSP has changed to /opt/ltsp-4.1.1/      "
	einfo
	einfo "        NOTE: to enable USB you have to add USB=Y to your lts.conf            "
	einfo
}