/[gentoo-x86]/net-misc/ltsp-core/ltsp-core-4.1.ebuild
Gentoo

Contents of /net-misc/ltsp-core/ltsp-core-4.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Sep 8 16:06:45 2004 UTC (15 years, 3 months ago) by lanius
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
version bump

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/ltsp-core/ltsp-core-4.1.ebuild,v 1.2 2004/08/19 09:58:59 mr_bones_ Exp $
4
5 IUSE="X debug nas esd audiofile snmp"
6
7 DESCRIPTION="LTSP - Linux Terminal Server Project"
8 HOMEPAGE="http://www.ltsp.org/"
9
10 DEPEND="app-arch/tar
11 virtual/gzip"
12
13 RDEPEND="X? ( virtual/x11 )
14 virtual/tftp
15 sys-apps/xinetd
16 net-misc/dhcp
17 net-fs/nfs-utils
18 net-nds/portmap"
19
20 SLOT="0"
21 LICENSE="GPL-2"
22 KEYWORDS="~x86"
23
24 S=${WORKDIR}/ltsp
25
26 LTSP_CORE="ltsp-ltsptree-1.7-0-i386.tgz
27 ltsp-glibc-1.0-0-i386.tgz
28 ltsp-sysvinit-1.0-0-i386.tgz
29 ltsp-popt-1.1-0-i386.tgz
30 ltsp-bash-1.0-0-i386.tgz
31 ltsp-busybox-1.0-0-i386.tgz
32 ltsp-devfsd-1.0-0-i386.tgz
33 ltsp-getltscfg-1.2-0-i386.tgz
34 ltsp-libgcc_s-1.0-0-i386.tgz
35 ltsp-haltsys-1.0-0-i386.tgz
36 ltsp-e2fsprogs-1.1-0-i386.tgz
37 ltsp-startsess-1.1-0-i386.tgz
38 ltsp-lp_server-1.1-0-i386.tgz
39 ltsp-ltspinfod-1.1-0-i386.tgz
40 ltsp-modutils-1.0-0-i386.tgz
41 ltsp-ncurses-1.0-0-i386.tgz
42 ltsp-open-1.1-0-i386.tgz
43 ltsp-prep_swap-1.0-0-i386.tgz
44 ltsp-zlib-1.0-0-i386.tgz
45 ltsp-libpng-1.0-0-i386.tgz
46 ltsp-pci_scan-1.0-0-i386.tgz
47 ltsp-pam-1.0-0-i386.tgz
48 ltsp-ssh-1.0-0-i386.tgz
49 ltsp-net-tools-1.0-0-i386.tgz
50 ltsp-xinetd-1.0-0-i386.tgz
51 ltsp-ypbind-1.0-0-i386.tgz
52 ltsp-tcp_wrappers-1.0-0-i386.tgz
53 ltsp-portmap-1.0-0-i386.tgz
54 ltsp-rdesktop-1.3-0-i386.tgz
55 ltsp-libvncserver-1.0-0-i386.tgz
56 ltsp-localdev-1.0-0-i386.tgz
57 ltsp-openssl-1.0-0-i386.tgz
58 ltsp-samba-1.0-0-i386.tgz
59 ltsp-util-linux-1.0-0-i386.tgz
60 ltsp-vidlist-1.1-0-i386.tgz
61 ltsp-aumix-1.0-0-i386.tgz
62 ltsp-freetype-1.0-0-i386.tgz"
63
64 use snmp && LTSP_CORE="${LTSP_CORE} ltsp-snmpd-1.0-0-i386.tgz"
65
66 LTSP_DEBUG="ltsp-gdb-1.0-0-i386.tgz
67 ltsp-strace-1.0-0-i386.tgz"
68
69 LTSP_X="ltsp-x-core-1.2-0-i386.tgz
70 ltsp-x-fonts-1.0-0-i386.tgz
71 ltsp-x-fonts-100dpi-1.0-0-i386.tgz
72 ltsp-x336_3DLabs-1.0-0-i386.tgz
73 ltsp-x336_8514-1.0-0-i386.tgz
74 ltsp-x336_AGX-1.0-0-i386.tgz
75 ltsp-x336_I128-1.0-0-i386.tgz
76 ltsp-x336_Mach32-1.0-0-i386.tgz
77 ltsp-x336_Mach64-1.0-0-i386.tgz
78 ltsp-x336_Mach8-1.0-0-i386.tgz
79 ltsp-x336_Mono-1.0-0-i386.tgz
80 ltsp-x336_P9000-1.0-0-i386.tgz
81 ltsp-x336_S3_S3V-1.0-0-i386.tgz
82 ltsp-x336_SVGA-1.0-0-i386.tgz
83 ltsp-x336_VGA16-1.0-0-i386.tgz
84 ltsp-x336_W32-1.0-0-i386.tgz"
85
86 LTSP_STUFF="ltsp-kernel-1.4-0-i386.tgz
87 ltsp-modules-1.4-0-i386.tgz"
88
89 LTSP_UTILS="ltsp-utils-0.9.tgz"
90
91 KERNEL_VERSION="2.4.26-ltsp-2"
92
93 use audiofile && LTSP_SOUND="${LTSP_SOUND} ltsp-audiofile-1.0-0-i386.tgz"
94 use esd && LTSP_SOUND="${LTSP_SOUND} ltsp-esd-1.0-0-i386.tgz"
95 use nas && LTSP_SOUND="${LTSP_SOUND} ltsp_nasd-1.1-0-i386.tgz"
96
97 for FILE in ${LTSP_CORE} ${LTSP_STUFF}
98 do
99 SRC_URI="${SRC_URI} http://www.ltsp.org/ltsp-4.1/${FILE}"
100 done
101
102 for FILE in ${LTSP_DEBUG}
103 do
104 SRC_URI="${SRC_URI} debug? ( http://www.ltsp.org/ltsp-4.1/${FILE} )"
105 done
106
107 for FILE in ${LTSP_X}
108 do
109 SRC_URI="${SRC_URI} X? ( http://www.ltsp.org/ltsp-4.1/${FILE} )"
110 done
111
112 for FILE in ${LTSP_SOUND}
113 do
114 SRC_URI="${SRC_URI} http://www.ltsp.org/ltsp-4.1/${FILE}"
115 done
116
117 SRC_URI="${SRC_URI} mirror://sourceforge/ltsp/${LTSP_UTILS}"
118
119
120 src_unpack() {
121 # nothing to unpack
122 mkdir ltsp
123 cd ltsp
124
125 for FILE in ${LTSP_STUFF} ${LTSP_UTILS}
126 do
127 tar -xzf ${DISTDIR}/${FILE}
128 done
129 }
130
131 src_install() {
132 # now unpack the files
133 # first the core stuff
134 dodir /opt/ltsp-${PV}
135 echo "Installing core packages..."
136 for FILE in ${LTSP_CORE}
137 do
138 tar -xzf ${DISTDIR}/${FILE} -C ${D}/opt/ltsp-${PV} 2> /dev/null
139 done
140
141 # debug stuff
142 if use debug ; then
143 echo "Installing debug packages..."
144 for FILE in ${LTSP_DEBUG}
145 do
146 tar -xzf ${DISTDIR}/${FILE} -C ${D}/opt/ltsp-${PV} 2> /dev/null
147 done
148 fi
149
150 # X stuff
151 if use X ; then
152 echo "Installing X packages..."
153 for FILE in ${LTSP_X}
154 do
155 tar -xzf ${DISTDIR}/${FILE} -C ${D}/opt/ltsp-${PV} 2> /dev/null
156 done
157 fi
158
159 # kernel stuff
160 echo "Installing kernel packages..."
161 find i386 -print | cpio -pmud --quiet ${D}/opt/ltsp-${PV} 2> /dev/null
162 insinto /tftpboot/lts
163 doins vmlinuz-${KERNEL_VERSION}
164
165 # pxe stuff
166 insinto /tftpboot/pxe
167 doins ${FILESDIR}/eb-5.0.9-rtl8139.lzpxe
168 doins ${FILESDIR}/eb-5.0.9-eepro100.lzpxe
169 doins ${FILESDIR}/eb-5.0.9-3c905c-tpo.lzpxe
170
171 # config stuff
172 cd ltsp-utils
173 echo "Doing several other stuff..."
174 dosbin ltspcfg
175 dosbin ltspinfo
176 dosbin ltspadmin
177 dodoc COPYING
178 cd ..
179
180 # several other stuff
181 rm -fR ${D}/usr/share/
182 }
183
184 pkg_postinst() {
185 einfo
186 einfo "Either use ltspcfg to configure your stuff, or follow the guide at gentoo.org:"
187 einfo " http://www.gentoo.org/doc/en/ltsp.xml "
188 einfo
189 }

  ViewVC Help
Powered by ViewVC 1.1.20