adding livecd files
authorJohn P. Davis <zhen@gentoo.org>
Wed, 15 Oct 2003 05:40:43 +0000 (05:40 +0000)
committerJohn P. Davis <zhen@gentoo.org>
Wed, 15 Oct 2003 05:40:43 +0000 (05:40 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@12 d1e1f19c-881f-0410-ab34-b69fee027534

targets/livecd/foundations/x86-basic/base.pkg [new file with mode: 0644]
targets/livecd/foundations/x86-basic/kern.pkg [new file with mode: 0644]
targets/livecd/foundations/x86-basic/post-clean.sh [new file with mode: 0644]
targets/livecd/foundations/x86-basic/pre-clean.sh [new file with mode: 0644]
targets/livecd/foundations/x86-basic/settings [new file with mode: 0644]
targets/livecd/livecd.sh [new file with mode: 0755]

diff --git a/targets/livecd/foundations/x86-basic/base.pkg b/targets/livecd/foundations/x86-basic/base.pkg
new file mode 100644 (file)
index 0000000..9e9f0ee
--- /dev/null
@@ -0,0 +1,50 @@
+metalog
+ncftp
+sys-apps/pciutils 
+#net-www/lynx
+links
+grub
+lilo
+parted
+app-arch/mt-st
+sys-apps/star
+dev-util/strace
+sys-apps/pciutils
+net-dialup/wvdial
+sys-apps/raidtools
+net-fs/nfs-utils
+net-irc/irssi
+jfsutils
+speedtouch
+gpm
+dosfstools
+vim
+xfsprogs
+sys-apps/e2fsprogs 
+sys-apps/reiserfs-utils 
+sys-apps/hdparm 
+app-editors/nano
+sys-apps/less
+net-misc/openssh 
+net-misc/dhcpcd 
+mingetty
+pwgen
+dietlibc
+popt
+dialog
+=sys-apps/modutils-2.4.25
+fxload
+=sys-apps/hotplug-20020826-r2
+screen
+^mirrorselect
+^gs-sources
+^iputils
+^kudzu
+^=sys-apps/hwdata-knoppix-0.8
+^hwsetup
+^bootsplash
+^=sys-apps/baselayout-1.8.6.8-r1
+^sys-apps/mdadm
+^net-ftp/ftpd
+^=sys-apps/evms-1.2.1-r1
+^sys-apps/partimage
diff --git a/targets/livecd/foundations/x86-basic/kern.pkg b/targets/livecd/foundations/x86-basic/kern.pkg
new file mode 100644 (file)
index 0000000..b7d3486
--- /dev/null
@@ -0,0 +1,14 @@
+net-misc/nforce-net
+emu10k1
+net-wireless/wireless-tools
+sys-apps/iproute
+sys-apps/pcmcia-cs
+linux-wlan-ng
+net-dialup/ppp
+net-dialup/rp-pppoe
+isdn4k-utils
+kpnadsl4linux
+pptpclient
+sys-apps/lvm-user
+^rp-l2tp
+^usbutils
diff --git a/targets/livecd/foundations/x86-basic/post-clean.sh b/targets/livecd/foundations/x86-basic/post-clean.sh
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/targets/livecd/foundations/x86-basic/pre-clean.sh b/targets/livecd/foundations/x86-basic/pre-clean.sh
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/targets/livecd/foundations/x86-basic/settings b/targets/livecd/foundations/x86-basic/settings
new file mode 100644 (file)
index 0000000..089551e
--- /dev/null
@@ -0,0 +1,26 @@
+SNAPBALL=/path/to/foo.tar.bz2
+STORAGE_MODULES="aic79xx aic7xxx aic7xxx_old BusLogic \
+ncr53c8xx NCR53c406a \
+initio advansys  aha1740  aha1542  aha152x  \
+atp870u dtc eata fdomain gdth \
+megaraid pas16 pci2220i pci2000 psi240i \
+qlogicfas qlogicfc qlogicisp \
+seagate t128  tmscsim  u14-34f  ultrastor  wd7000  \
+a100u2w 3w-xxxx DAC960 NCR53c406a \
+aacraid sym53c8xx a100u2w cpqfc \
+dmx3191d dpt_i2o imm in2000 ips qla1280 \
+sim710 sym53c416"
+FIREWIRE_MODULES="ieee1394 ohci1394 eth1394 sbp2"
+ATARAID_MODULES="ataraid pdcraid hptraid silraid"
+PCMCIA_MODULES="pcmcia_core i82365  ds ide-cs"
+USB_MODULES="usbcore ehci-hcd uhci usb-ohci hid usb-storage"
+LOOP_SIZE="210000"
+KERNCONFIG=gss-config
+CD_HOSTNAME="cdimage"
+CD_PORTDIR="/usr/portage"
+CD_ISONAME="gentoo.iso"
+BOOTSPLASH=yes
+USE="fbcon -cdr -wavelan pcmcia -gnome -dvd gpm -lirc crypt ipv6 -doc -slang \
+-X -gtk -svga -directfb -ggi -esd -nas -ggi socks5 usb -python -truetype \
+prebuilt -cups -gtk2"
+
diff --git a/targets/livecd/livecd.sh b/targets/livecd/livecd.sh
new file mode 100755 (executable)
index 0000000..7538730
--- /dev/null
@@ -0,0 +1,49 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/livecd/Attic/livecd.sh,v 1.1 2003/10/15 05:40:43 zhen Exp $
+
+cp ${SHARE_DIR}/targets/livecd/foundations/${FOUNDATION}/* ${CHROOTDIR}/tmp || die
+
+$CHROOT . /bin/bash << EOF
+       env-update
+       source /etc/profile
+       export CONFIG_PROTECT="-*"
+       source /tmp/settings || exit 1
+       export USE="\$USE bindist"
+       echo "USE is \$USE"
+       for x in \$( cat /tmp/base.pkg  | grep -v ^# )
+       do
+               if [ "\${x:0:1}" = "^" ]
+               then
+                       ACCEPT_KEYWORDS="~${MAINARCH}" emerge -pv --noreplace --buildpkg --usepkg \${x:1} || exit 1
+                       ACCEPT_KEYWORDS="~${MAINARCH}" emerge --noreplace --buildpkg --usepkg \${x:1} || exit 1
+               else
+                       emerge -pv --noreplace --buildpkg --usepkg \$x || exit 1
+                       emerge --noreplace --buildpkg --usepkg \$x || exit 1
+               fi
+       done
+       
+       cp \$KERNCONFIG /usr/src/linux/.config || exit 1
+       cd /usr/src/linux
+       #make oldconfig || exit 1
+       #make dep || exit 1
+       #make -j${jobs} bzImage || exit 1
+       #make -j${jobs} modules || exit 1
+       #make modules_install || true
+       # above, the || true is there to deal with the occasional flaky
+       # module.
+       for x in \$( cat /tmp/kern.pkg  | grep -v ^# )
+       do
+               if [ "\${x:0:1}" = "^" ]
+               then
+                       ACCEPT_KEYWORDS="~${MAINARCH}" emerge -pv --noreplace --buildpkg --usepkg \${x:1} || exit 1
+                       ACCEPT_KEYWORDS="~${MAINARCH}" emerge --noreplace --buildpkg --usepkg \${x:1} || exit 1
+               else
+                       emerge -pv --noreplace --buildpkg --usepkg \$x || exit 1
+                       emerge --noreplace --buildpkg --usepkg \$x || exit 1
+               fi
+       done
+EOF
+
+[ $? -ne 0 ] && die "LiveCD build failure"
+