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

Contents of /net-misc/ltsp/ltsp-4.1.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (hide annotations) (download) (vendor branch)
Wed Nov 30 09:55:33 2005 UTC (14 years, 1 month ago) by chriswhite
Changes since 1.1: +5 -5 lines
*** empty log message ***

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

  ViewVC Help
Powered by ViewVC 1.1.20