summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2003-08-03 00:05:09 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2003-08-03 00:05:09 +0000
commit67780283dfdcd3095a27e4d1280e69d95c1df2ff (patch)
treea8046b918b8a68855aa10d32c02e99d9cf3478a1 /net-misc/pxes
parentInitial import (diff)
downloadhistorical-67780283dfdcd3095a27e4d1280e69d95c1df2ff.tar.gz
historical-67780283dfdcd3095a27e4d1280e69d95c1df2ff.tar.bz2
historical-67780283dfdcd3095a27e4d1280e69d95c1df2ff.zip
Initial import
Diffstat (limited to 'net-misc/pxes')
-rw-r--r--net-misc/pxes/Manifest5
-rw-r--r--net-misc/pxes/files/digest-pxes-0.64
-rw-r--r--net-misc/pxes/files/makedevices.sh93
-rw-r--r--net-misc/pxes/files/pxes-0.6-gentoo.patch24
-rw-r--r--net-misc/pxes/pxes-0.6.ebuild64
5 files changed, 188 insertions, 2 deletions
diff --git a/net-misc/pxes/Manifest b/net-misc/pxes/Manifest
index 444b8ee2b1a3..096543a79dd9 100644
--- a/net-misc/pxes/Manifest
+++ b/net-misc/pxes/Manifest
@@ -1,4 +1,5 @@
-MD5 dedff419843b05c7840601c25c349c27 pxes-0.6.ebuild 1600
-MD5 6b2dccca06359d913eaa2caa9215505c files/pxes-0.6-gentoo.patch 418
+MD5 14573e1063977b448104e9ae501945d7 pxes-0.6.ebuild 1706
+MD5 2c809ffa8688cac2df368aa37df789c6 ChangeLog 351
+MD5 17631579c17eec2824433cdbc8028c07 files/pxes-0.6-gentoo.patch 1068
MD5 f3afb0ef2357d69147125eeb6cda6c43 files/makedevices.sh 1626
MD5 ad26896c5d4dcf2cfd959cd80e7c8417 files/digest-pxes-0.6 256
diff --git a/net-misc/pxes/files/digest-pxes-0.6 b/net-misc/pxes/files/digest-pxes-0.6
new file mode 100644
index 000000000000..5f46d40b3f26
--- /dev/null
+++ b/net-misc/pxes/files/digest-pxes-0.6
@@ -0,0 +1,4 @@
+MD5 ff233a9dd9f5fbb563b7ca5aed90c546 pxes-base-i586-0.6.tar.gz 12408010
+MD5 48f3b47631b0b3676d5f3f08675697c2 pxesconfig-0.6.tar.gz 265782
+MD5 fc2d66cdfda1bb44c5de384001e303d4 pxelinux.0 10820
+MD5 1ee01ea37c265eb3037339a7d5a0630f pxes-ltsp-0.6.tar.gz 14498
diff --git a/net-misc/pxes/files/makedevices.sh b/net-misc/pxes/files/makedevices.sh
new file mode 100644
index 000000000000..b603484a4ea3
--- /dev/null
+++ b/net-misc/pxes/files/makedevices.sh
@@ -0,0 +1,93 @@
+#!/bin/bash
+
+DEV1=/opt/pxes-0.6/stock/dist/dev
+DEV2=/opt/pxes-0.6/stock/initrd/dev
+
+if [ ! -d ${DEV1} ]; then
+ mkdir -p ${DEV1}
+fi
+
+cd ${DEV1}
+mkdir input pts
+mknod agpgart c 10 175
+mknod audio0 c 14 4
+ln -s audio0 audio
+mknod console c 5 1
+mknod dsp c 14 3
+mknod dsp1 c 14 19
+for i in 0 1 2 3 4 5 6 7; do
+ mknod fb${i} c 29 $(( ${i} * 32 ))
+done
+ln -s fb0 fb
+mknod fd0 b 2 0
+mknod fd1 b 2 1
+mknod fd0H1440 b 2 28
+mknod gart c 174 0
+mknod hda b 3 0
+for i in 1 2 3 4 5 6 7 8 9; do
+ mknod hda${i} b 3 ${i}
+done
+mknod hdb b 3 64
+mknod hdc b 22 0
+ln -s hdc cdrom
+mknod hdd b 22 64
+mknod kbd c 11 0
+mknod lp0 c 6 0
+mknod lp1 c 6 1
+chmod 666 lp0 lp1
+chgrp lp lp0 lp1
+mknod mem c 1 1
+mknod mixer c 14 0
+mknod null c 1 3
+mknod openprm c 10 139
+mknod psaux c 10 1
+ln -s psaux mouse
+mknod ptmx c 5 2
+for i in 0 1 2 3 4 5 6 7 8 9; do
+ mknod ptyp${i} c 2 ${i}
+ chmod 666 ptyp${i}
+ chgrp tty ptyp${i}
+done
+mknod ram b 1 1
+mknod tty c 5 0
+chmod 666 tty
+for i in 0 1 2 3 4 5 6 7 8 9; do
+ mknod tty${i} c 4 ${i}
+done
+for i in 0 1 2 3; do
+ mknod ttyS${i} c 4 $(( ${i} + 64 ))
+ chgrp tty ttyS${i}
+done
+for i in 0 1 2 3 4 5 6 7 8 9; do
+ mknod ttyp${i} c 3 ${i}
+ chgrp tty ttyp${i}
+ chmod 666 ttyp${i}
+done
+mknod zero c 1 5
+cd input
+mknod keyboard c 10 150
+chmod 600 keyboard
+mknod mice c 13 63
+
+if [ ! -d ${DEV2} ]; then
+ mkdir -p ${DEV2}
+fi
+
+cd ${DEV2}
+mknod console c 5 1
+mknod hda b 3 0
+mknod hdb b 3 64
+mknod hdc b 22 0
+ln -s hdc cdrom
+mknod hdd b 22 64
+mknod lvm b 109 0
+mknod null c 1 3
+mknod ram b 1 1
+mknod sda2 b 8 2
+chgrp disk sda2
+chmod 660 sda2
+mknod systty c 4 0
+for i in 0 1 2 3 4; do
+ mknod tty${i} c 4 ${i}
+done
+mknod zero c 1 5
diff --git a/net-misc/pxes/files/pxes-0.6-gentoo.patch b/net-misc/pxes/files/pxes-0.6-gentoo.patch
new file mode 100644
index 000000000000..a397cd0cb0e1
--- /dev/null
+++ b/net-misc/pxes/files/pxes-0.6-gentoo.patch
@@ -0,0 +1,24 @@
+diff -urN pxesconfig-0.6/Makefile.PL pxesconfig-0.6-gentoo/Makefile.PL
+--- pxesconfig-0.6/Makefile.PL 2003-07-19 00:49:43.000000000 -0400
++++ pxesconfig-0.6-gentoo/Makefile.PL 2003-08-01 10:59:30.000000000 -0400
+@@ -130,7 +130,7 @@
+
+ install ::
+ \$(PERL) -MExtUtils::Install \\
+- -e "install({'Pxesconfig' => '\$(LIB)/Pxesconfig'},'\$(VERBINST)',0);"
++ -e "install({'Pxesconfig' => '\$(INSTALLARCHLIB)/Pxesconfig'},'\$(VERBINST)',0);"
+
+ checkpxesconfig:
+ \@if grep '^[ ]*use lib "\."' pxesconfig >/dev/null ; \\
+diff -urN pxesconfig-0.6/Pxesconfig/PxesconfigGUI.pm pxesconfig-0.6-gentoo/Pxesconfig/PxesconfigGUI.pm
+--- pxesconfig-0.6/Pxesconfig/PxesconfigGUI.pm 2003-07-19 00:49:44.000000000 -0400
++++ pxesconfig-0.6-gentoo/Pxesconfig/PxesconfigGUI.pm 2003-08-01 11:00:03.000000000 -0400
+@@ -55,7 +55,7 @@
+
+ # FIXME
+ # /opt prefix
+- $Glade::PerlRun::pixmaps_directory = "/opt/share/pixmaps/pxesconfig";
++ $Glade::PerlRun::pixmaps_directory = "/usr/share/pixmaps/pxesconfig";
+ #warn "pixmaps: $Glade::PerlRun::pixmaps_directory";
+ } # End of sub BEGIN
+
diff --git a/net-misc/pxes/pxes-0.6.ebuild b/net-misc/pxes/pxes-0.6.ebuild
new file mode 100644
index 000000000000..4fa0a6771844
--- /dev/null
+++ b/net-misc/pxes/pxes-0.6.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2003 Gentoo Technologues, Inc.
+# Distrbuted under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/pxes/pxes-0.6.ebuild,v 1.1 2003/08/03 00:05:03 wolf31o2 Exp $
+
+IUSE="ltsp"
+DESCRIPTION="PXES is a package for building thin clients using multiple types of clients"
+SRC_URI="mirror://sourceforge/pxes/${PN}-base-i586-${PV}.tar.gz
+ mirror://sourceforge/pxes/pxesconfig-${PV}.tar.gz
+ mirror://sourceforge/pxes/pxelinux.0
+ ltsp? ( mirror://sourceforge/pxes/${PN}-ltsp-${PV}.tar.gz )"
+
+SLOT="0"
+KEYWORDS="~x86"
+
+LICENSE="GPL-2"
+DEPEND=">=dev-lang/perl-5.8.0-r12
+ ltsp? >=net-misc/ltsp-core-3.0.9-r1"
+RDEPEND="${DEPEND}
+ >=dev-perl/glade-perl-0.61"
+
+S=${WORKDIR}/${P}
+
+inherit perl-module
+
+dir=/opt/${P}
+Ddir=${D}/${dir}
+
+src_unpack() {
+ tar -xzf ${DISTDIR}/${PN}-base-i586-${PV}.tar.gz \
+ --no-same-permissions \
+ --exclude=pxes-0.6/stock/dist/dev/* \
+ --exclude=pxes-0.6/stock/initrd/dev/*
+
+ unpack pxesconfig-${PV}.tar.gz
+ use ltsp && unpack ${PN}-ltsp-${PV}.tar.gz
+}
+
+src_compile() {
+ cd ${WORKDIR}/pxesconfig-${PV}
+ epatch ${FILESDIR}/${P}-gentoo.patch
+ perl Makefile.PL PREFIX=${D}/usr || die
+ make
+}
+
+src_install() {
+ dodir ${dir}
+ cp -r ${S}/stock ${Ddir}
+ cp -r ${S}/tftpboot ${D}
+ cp ${DISTDIR}/pxelinux.0 ${D}/tftpboot/pxes
+ dodoc Documentation/ChangeLog
+ dohtml Documentation/html/{index,pxe,readme,screenshots}.html,howto/{configuring_ICA,customizing_kernel_and_modules,gdm,xfs,ms_only_environment/ms_only_environment}.html
+ exeinto ${dir}
+ doexe ${FILESDIR}/makedevices.sh
+ cd ${WORKDIR}/pxesconfig-${PV}
+ perl-module_src_install || die
+}
+
+pkg_postinst() {
+ ${dir}/makedevices.sh
+}
+
+pkg_prerm() {
+ rm -rf ${dir}/stock/{dist,initrd}/dev
+}