Browse Source

Benjamin Schieder:

add target 'tor', based on livecd.



git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@8304 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Benjamin Schieder 18 years ago
parent
commit
85d0c94142
42 changed files with 7647 additions and 0 deletions
  1. +34
    -0
      target/tor/build.sh
  2. +213
    -0
      target/tor/build_stage1.sh
  3. +121
    -0
      target/tor/build_stage2.sh
  4. +91
    -0
      target/tor/config.in
  5. +1
    -0
      target/tor/download.txt
  6. +1
    -0
      target/tor/fixedfiles/dillorc
  7. +3
    -0
      target/tor/fixedfiles/icewm_menu
  8. +84
    -0
      target/tor/fixedfiles/inittab
  9. +5
    -0
      target/tor/fixedfiles/login-shell
  10. +95
    -0
      target/tor/fixedfiles/rock-menu
  11. +238
    -0
      target/tor/fixedfiles/system
  12. +136
    -0
      target/tor/fixedfiles/xorg.conf
  13. +39
    -0
      target/tor/initrd/initrd_livecd
  14. +95
    -0
      target/tor/kernel.conf
  15. +20
    -0
      target/tor/kernel.conf.sh
  16. +481
    -0
      target/tor/linuxrc.sh
  17. +5386
    -0
      target/tor/needed_files
  18. +121
    -0
      target/tor/needed_pkgs
  19. +4
    -0
      target/tor/pkg_dillo.conf
  20. +5
    -0
      target/tor/pkg_gawk.conf
  21. +18
    -0
      target/tor/pkg_linux.conf
  22. +6
    -0
      target/tor/pkg_modutils.conf
  23. +7
    -0
      target/tor/pkg_privoxy.conf
  24. +7
    -0
      target/tor/pkg_tor.conf
  25. +17
    -0
      target/tor/powerpc/boot.msg
  26. +53
    -0
      target/tor/powerpc/build.sh
  27. +1
    -0
      target/tor/powerpc/download.txt
  28. +17
    -0
      target/tor/powerpc/mapping
  29. +64
    -0
      target/tor/powerpc/ofboot.b
  30. +1
    -0
      target/tor/powerpc/oldworld-readme.txt
  31. +18
    -0
      target/tor/powerpc/yaboot.conf
  32. +23
    -0
      target/tor/preconfig.in
  33. +46
    -0
      target/tor/privoxy.init
  34. +14
    -0
      target/tor/sparc/boot.msg
  35. +28
    -0
      target/tor/sparc/build.sh
  36. +16
    -0
      target/tor/sparc/silo.conf
  37. +45
    -0
      target/tor/tor.init
  38. +26
    -0
      target/tor/x86/build.sh
  39. +1
    -0
      target/tor/x86/download.txt
  40. +19
    -0
      target/tor/x86/help0.txt
  41. +15
    -0
      target/tor/x86/help1.txt
  42. +32
    -0
      target/tor/x86/isolinux.cfg

+ 34
- 0
target/tor/build.sh

@ -0,0 +1,34 @@
disksdir="$build_rock/livecd"
if [ -z "`which mksquashfs`" ] ; then
echo "Please make sure mksquashfs is installed! Rock Package: fake/squashfs-tools"
exit 1;
fi ;
pkgloop
rm -rf $disksdir; mkdir -p $disksdir; chmod 700 $disksdir
. scripts/parse-config
. $base/target/$target/build_stage2.sh
. $base/target/$target/build_stage1.sh
if [ -f $base/target/$target/$arch/build.sh ]; then
. $base/target/$target/$arch/build.sh
fi
echo_header "Creating ISO filesystem description."
cd $disksdir; rm -rf isofs; mkdir -p isofs
echo_status "Creating livecd/isofs directory.."
ln 2nd_stage.img.z isofs/
ln *.img initrd.gz isofs/ 2>/dev/null || true
rm isofs/initrd.img
echo_status "Creating isofs.txt file .."
echo "DISK1 build/${ROCKCFG_ID}/ROCK/livecd/isofs/ `
`${ROCKCFG_SHORTID}/" > ../isofs_generic.txt
cat ../isofs_*.txt > ../isofs.txt

+ 213
- 0
target/tor/build_stage1.sh

@ -0,0 +1,213 @@
echo_header "Creating initrd data:"
rm -rf $disksdir/initrd
mkdir -p $disksdir/initrd/{dev,proc,sys,mnt/{cdrom,floppy,stick,}}
mkdir -p $disksdir/initrd/mnt/{cowfs_ro/{etc,home,bin,sbin,opt,usr/{bin,sbin},tmp,var,lib},cowfs_rw}
cd $disksdir/initrd
#
echo_status "Creating read-only symlinks..."
for d in etc home bin sbin opt usr tmp var lib ; do
ln -s mnt/cowfs_rw/$d $d
ln -s ../cowfs_ro/$d mnt/cowfs_rw/$d
done
#
if [ -L $disksdir/2nd_stage/lib64 ] ; then
ln -s mnt/cowfs_rw/lib64 lib64
ln -s ../cowfs_ro/lib64 mnt/cowfs_rw/lib64
fi
rock_targetdir="$base/target/$target/"
rock_target="$target"
rootdir="$disksdir/2nd_stage"
targetdir="$disksdir/initrd"
cross_compile=""
if [ "$ROCKCFG_CROSSBUILD" = "1" ] ; then
cross_compile="`find ${base}/ROCK/tools.cross/ -name "*-readelf"`"
cross_compile="${cross_compile##*/}"
cross_compile="${cross_compile%%readelf}"
fi
initrdfs="ext2fs"
block_size=""
ramdisk_size=12288
case ${initrdfs} in
ext2fs|ext3fs|cramfs)
initrd_img="${disksdir}/initrd.img"
;;
ramfs)
initrd_img="${disksdir}/initrd.cpio"
;;
esac
echo_status "Creating some device nodes"
mknod ${targetdir}/dev/ram0 b 1 0
mknod ${targetdir}/dev/null c 1 3
mknod ${targetdir}/dev/zero c 1 5
mknod ${targetdir}/dev/tty c 5 0
mknod ${targetdir}/dev/console c 5 1
# this copies a set of programs and the necessary libraries into a
# chroot environment
echo_status "Create checkisomd5 binary"
cp -r ${base}/misc/isomd5sum ${base}/build/${ROCKCFG_ID}/
cat >${base}/build/${ROCKCFG_ID}/compile_isomd5sum.sh <<EOF
#!/bin/bash
cd /isomd5sum
make clean
make CC=gcc
EOF
chmod +x ${base}/build/${ROCKCFG_ID}/compile_isomd5sum.sh
chroot ${base}/build/${ROCKCFG_ID}/ /compile_isomd5sum.sh
cp ${base}/build/${ROCKCFG_ID}/isomd5sum/checkisomd5 mnt/cowfs_ro/bin/
rm -rf ${base}/build/${ROCKCFG_ID}/compile_isomd5sum.sh ${base}/build/${ROCKCFG_ID}/isomd5sum
echo_status "Copying and adjusting linuxrc script"
cp ${base}/target/${target}/linuxrc.sh linuxrc
chmod +x linuxrc
sed -i -e "s,\(^STAGE_2_BIG_IMAGE=\"\)\(2nd_stage.img.z\"$\),\1${ROCKCFG_SHORTID}/\2," \
linuxrc
libdirs="${rootdir}/lib `sed -e"s,^\(.*\),${rootdir}\1," ${rootdir}/etc/ld.so.conf | tr '\n' ' '`"
needed_libs() {
local x="${1}" library
${cross_compile}readelf -d ${x} 2>/dev/null | grep "(NEEDED)" |
sed -e"s,.*Shared library: \[\(.*\)\],\1," |
while read library ; do
find ${libdirs} -name "${library}" 2>/dev/null |
sed -e "s,^${rootdir},,g" | tr '\n' ' '
done
}
libs="${libs} `needed_libs bin/checkisomd5`"
echo_status "Copying other files ... "
for x in ${rock_targetdir}/initrd/initrd_* ; do
[ -f ${x} ] || continue
while read file target ; do
file="${rootdir}/${file}"
[ -e ${file} ] || continue
while read f ; do
tfile=${targetdir}/${target}${f#${file}}
[ -e ${tfile} ] && continue
if [ -d ${f} -a ! -L ${f} ] ; then
mkdir -p "${tfile}"
continue
else
mkdir -p "${tfile%/*}"
fi
cp -a ${f} ${tfile}
file -L ${f} | grep -q ELF || continue
libs="${libs} `needed_libs ${f}`"
done < <( find "${file}" )
done < ${x}
done
for x in modprobe.static modprobe.static.old \
insmod.static insmod.static.old
do
if [ -f ../2nd_stage/sbin/${x/.static/} ]; then
rm -f mnt/cowfs_ro/bin/${x/.static/}
cp -a ../2nd_stage/sbin/${x/.static/} mnt/cowfs_ro/sbin/
fi
if [ -f ../2nd_stage/sbin/$x ]; then
rm -f mnt/cowfs_ro/bin/$x mnt/cowfs_ro/bin/${x/.static/}
cp -a ../2nd_stage/sbin/$x mnt/cowfs_ro/sbin/
ln -sf $x mnt/cowfs_ro/bin/${x/.static/}
fi
done
#
echo_status "Copy kernel modules."
for x in ../2nd_stage/lib/modules/*/kernel/drivers/{scsi,cdrom,ide,ide/pci,ide/legacy}/*.{ko,o} ; do
# this test is needed in case there are only .o or only .ko files
if [ -f $x ]; then
xx=mnt/cowfs_ro/${x#../2nd_stage/}
mkdir -p $( dirname $xx ) ; cp $x $xx
strip --strip-debug $xx
fi
done
#
for x in ../2nd_stage/lib/modules/*/modules.{dep,pcimap,isapnpmap} ; do
cp $x mnt/cowfs_ro/${x#../2nd_stage/} || echo "not found: $x" ;
done
#
rm -f mnt/cowfs_ro/lib/modules/[0-9]*/kernel/drivers/net/{dummy,ppp*}.{o,ko}
echo_status "Copying required libraries ... "
while [ -n "${libs}" ] ; do
oldlibs=${libs}
libs=""
for x in ${oldlibs} ; do
[ -e "${targetdir}/${x}" ] && continue
mkdir -p "${targetdir}/${x%/*}"
cp ${rootdir}/${x} ${targetdir}/${x}
file -L ${rootdir}/${x} | grep -q ELF || continue
for y in `needed_libs ${rootdir}/${x}` ; do
[ ! -e "${targetdir}/${y}" ] && libs="${libs} ${y}"
done
done
done
echo_status "Creating links for identical files ..."
while read ck fn
do
# don't link empty files...
if [ "${oldck}" = "${ck}" -a -s "${fn}" ] ; then
echo_status "\`- Found ${fn#${targetdir}} -> ${oldfn#${targetdir}}."
rm ${fn} ; ln -s /${oldfn#${targetdir}} ${fn}
else
oldck=${ck} ; oldfn=${fn}
fi
done < <( find ${targetdir} -type f | xargs md5sum | sort )
cd ..
echo_header "Creating initrd filesystem image: "
ramdisk_size=8139
[ "${block_size}" == "" ] && block_size=1024
block_count=$(( ( 1024 * ${ramdisk_size} ) / ${block_size} ))
echo_status "Creating temporary files."
tmpdir=`mktemp -d` ; mkdir -p ${tmpdir}
dd if=/dev/zero of=${initrd_img} bs=${block_size} count=${block_count} &> /dev/null
tmpdev="`losetup -f 2>/dev/null`"
if [ -z "${tmpdev}" ] ; then
for x in /dev/loop* /dev/loop/* ; do
[ -b "${x}" ] || continue
losetup ${x} 2>&1 >/dev/null || tmpdev="${x}"
[ -n "${tmpdev}" ] && break
done
if [ -z "${tmpdev}" ] ; then
echo_status "No free loopback device found!"
rm -f ${tmpfile} ; rmdir ${tmpdir}; exit 1
fi
fi
echo_status "Using loopback device ${tmpdev}."
losetup "${tmpdev}" ${initrd_img}
echo_status "Writing initrd image file."
mkfs.${initrdfs:0:4} -b ${block_size} -m 0 -N 360 -q ${tmpdev} &> /dev/null
mount -t ${initrdfs:0:4} ${tmpdev} ${tmpdir}
rmdir ${tmpdir}/lost+found/
cp -a ${targetdir}/* ${tmpdir}
umount ${tmpdir}
echo_status "Removing temporary files."
losetup -d ${tmpdev}
rm -rf ${tmpdir}
#
echo_status "Compressing initrd image file."
gzip -9 -c ${initrd_img} > ${initrd_img}.gz
mv ${initrd_img%.img}{.img,}.gz
target="$rock_target"

+ 121
- 0
target/tor/build_stage2.sh

@ -0,0 +1,121 @@
#!/bin/bash
#
set -e
#
echo_header "Creating 2nd stage filesystem:"
mkdir -p $disksdir/2nd_stage
cd $disksdir/2nd_stage
mkdir -p ramdisk usr/X11R7 var/state/dhcp
ln -s X11R7 usr/X11
ln -s X11R7 usr/X11R6
#
echo_status "Extracting the packages archives."
if [ "${ROCKCFG_TARGET_TOR_SIZE}" == "ultimate" ] ; then
for x in $( ls ../../pkgs/*.tar.bz2 )
do
echo_status "\`- Extracting ${x##*/} ..."
tar --use-compress-program=bzip2 --force-local -xpf $x
done
elif [ "${ROCKCFG_TARGET_TOR_SIZE}" == "all" ] ; then
for x in $( ls ../../pkgs/*.tar.bz2 | \
grep -v ':doc.tar.bz2' | grep -v ':dev.tar.bz2' )
do
echo_status "\`- Extracting ${x##*/} ..."
tar --use-compress-program=bzip2 --force-local -xpf $x
done
elif [ "${ROCKCFG_TARGET_TOR_SIZE}" == "packages" ] ; then
for x in $( sed 's,^\(.*\)$,../../pkgs/\1.tar.bz2,g' $base/target/tor/needed_pkgs )
do
echo_status "\`- Extracting ${x##*/} ..."
tar --use-compress-program=bzip2 --force-local -xpf $x
done
elif [ "${ROCKCFG_TARGET_TOR_SIZE}" == "files" ] ; then
read total name < <( wc -l $base/target/tor/needed_files )
current=0
while read file ; do
current=$(($current+1))
echo_status "\`- $((${current}00/$total))% copying $file"
mkdir -p ${file%/*}
if [ -L $base/build/$ROCKCFG_ID/$file ] ; then
t="$( readlink $base/build/$ROCKCFG_ID/$file )"
ln -sf $t $file
else
cp -ap $base/build/$ROCKCFG_ID/$file $file
fi
done < $base/target/tor/needed_files
fi
#
echo_status "Saving boot/* - we do not need this on the 2nd stage ..."
rm -rf ../boot ; mkdir ../boot
mv boot/* ../boot/
#
echo_status "Remove the stuff we do not need ..."
rm -rf usr/src var/adm
#
# TODO finish-package!!
echo_status "Running ldconfig to create links ..."
ldconfig -r .
echo_status "Running depmod for target system ..."
depmod -b $PWD -F ../boot/System.map `ls ../boot/vmlinuz_* | sed -e 's,\.\./boot/vmlinuz_,,'`
echo_status "Running mkfontscale/mkfontdir and fc-cache ..."
for dir in usr/X11R7/lib/X11/fonts/* ; do
[ -d $dir ] || continue
mkfontscale $dir
mkfontdir $dir
fc-cache -v $dir
done
#
echo_status "replacing some vital files for live useage ..."
cp -f $base/target/$target/fixedfiles/inittab etc/inittab
cp -f $base/target/$target/fixedfiles/login-shell sbin/login-shell
# this got drop once, so we ensure it's +xed.
chmod 0755 sbin/login-shell
cp -f $base/target/$target/fixedfiles/system etc/rc.d/init.d/system
cp -f $base/target/$target/fixedfiles/xorg.conf etc/X11/xorg.conf
#
echo_status "Creating home directories and users..."
mkdir -p home/{rocker,root}
chown 1000:100 home/rocker
sed -i -e 's,root:.*,root:x:0:0:root:/home/root:/bin/bash,' etc/passwd
sed -i -e 's,root:.*,root:$1$9KtEb9vt$IDoD/c7IG5EpCwxvBudgA:13300::::::,' etc/shadow
echo 'rocker:x:1000:100:ROCK Live CD User:/home/rocker:/bin/bash' >> etc/passwd
echo 'rocker:$1$b3mL1k/q$zneIjKcHqok1T80fp1cPI1:13300:0:99999:7:::' >> etc/shadow
sed -i -e 's,wheel:x:10:,wheel:x:10:rocker,' etc/group
sed -i -e 's,video:x:16:,video:x:16:rocker,' etc/group
sed -i -e 's,sound:x:17:,sound:x:17:rocker,' etc/group
sed -i -e 's,cdrom:x:29:,cdrom:x:29:rocker,' etc/group
#
echo_status "activating shadowfs through /etc/ld.so.preload"
echo "/usr/lib/libcowfs.so" > etc/ld.so.preload
#
echo_status "adding a few additional files"
cp -v $base/download/mirror/t/tor_aliases_v4 etc/profile.d
echo ROCKate > etc/HOSTNAME
echo "export WINDOWMANAGER=\"/usr/bin/icewm\"" > etc/profile.d/windowmanager
echo "export XDM=\"/usr/X11R7/bin/xdm\"" > etc/conf/xdm
echo "#!/bin/bash" > sbin/startx_on_boot
echo "su - rocker -c \". /etc/profile; /usr/X11R7/bin/startx\"" >> sbin/startx_on_boot
chmod +x sbin/startx_on_boot
echo "127.0.0.1 ROCKate" >> etc/hosts
cp $base/target/tor/fixedfiles/icewm_menu usr/share/icewm/menu
cp $base/target/tor/fixedfiles/rock-menu usr/share/icewm/rock-menu
chmod +x usr/share/icewm/rock-menu
chroot . /usr/share/icewm/rock-menu
# temporary fl_wrapper addition for dependency checking
#echo "export FLWRAPPER_WLOG=\"/tmp/fl_wrapper.wlog\"" >> etc/profile
#echo "export FLWRAPPER_RLOG=\"/tmp/fl_wrapper.rlog\"" >> etc/profile
#echo "touch \${FLWRAPPER_WLOG} \${FLWRAPPER_RLOG}" >> etc/profile
#echo "chmod 666 \${FLWRAPPER_WLOG} \${FLWRAPPER_RLOG}" >> etc/profile
#cp "$base/build/$ROCKCFG_ID/ROCK/tools.native/lib/fl_wrapper.so" lib/
#echo "/lib/fl_wrapper.so" >> etc/ld.so.preload
#
if [ "${ROCKCFG_TARGET_TOR_SIZE}" == "files" ] ; then
echo_status "Compressing binaries"
files="`find bin sbin usr/bin usr/sbin usr/X11/bin -type f -print0 | xargs -0 file | grep ELF | cut -f1 -d:`"
$base/build/$ROCKCFG_ID/usr/bin/upx2 --brute $files < /proc/$$/fd/0 > /proc/$$/fd/1 2> /proc/$$/fd/2 || true
fi
echo_status "Creating 2nd_stage.img.z image... (this takes some time)... "
cd .. ; mksquashfs 2nd_stage 2nd_stage.img.z -noappend > /dev/null 2>&1

+ 91
- 0
target/tor/config.in

@ -0,0 +1,91 @@
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
#
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
#
# ROCK Linux: rock-src/target/tor/config.in
# ROCK Linux is Copyright (C) 1998 - 2007 Clifford Wolf
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. A copy of the GNU General Public
# License can be found at Documentation/COPYING.
#
# Many people helped and are helping developing ROCK Linux. Please
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
# file for details.
#
# --- ROCK-COPYRIGHT-NOTE-END ---
#. target/livecd/default.pkgsel
choice ROCKCFG_TARGET_TOR_SIZE all all 'All_available_packages_(Size:_~250_MB)' packages 'All_necessary_packages_(Size:_~130_MB)' \
files 'All_necessary_files_(Size:_~50_MB)' ultimate 'All_packages_and_doc/dev_files_(Size:_Got_a_DVD?)'
ROCK_DEBUG_TOOLS_SKIP=1
ROCKCFGSET_CREATE_TARBZ2=1
ROCKCFGSET_CREATE_GEM=0
ROCKCFGSET_PKGFILE_VER=0
ROCKCFGSET_DIETLIBC=1
ROCKCFGSET_DIETLIBC_DYN=0
ROCKCFGSET_DIETLIBC_ALL=0
ROCKCFGSET_DIETLIBC_modutils=1
ROCKCFGSET_DIETLIBC_module_init_tools=1
ROCKCFGSET_DIETLIBC_kiss=1
ROCKCFGSET_DIETLIBC_gawk=0
ROCKCFGSET_PKG_GCC2_NO_CHILL=1
ROCKCFGSET_PKG_GCC32_NO_JAVA=1
ROCKCFGSET_PKG_GCC33_NO_JAVA=1
ROCKCFGSET_PKG_GCC34_NO_JAVA=1
ROCKCFGSET_PKG_GCC_GCC34=1
ROCKCFGSET_PKG_GCC_GCC32=0
ROCKCFGSET_PKG_BASH_PROGCOMP=0
ROCKCFGSET_DO_REBUILD_STAGE=0
ROCKCFGSET_CREATE_DOCS=0
ROCKCFGSET_OPTSIZE=1
ROCKCFGSET_LIMITCXX=0
ROCKCFGSET_PKG_LINUX_SRC24=0
ROCKCFGSET_PKG_LINUX_SRC26=1
ROCKCFGSET_PKG_LINUX_IMG24=0
ROCKCFGSET_PKG_LINUX_IMG26=1
ROCKCFGSET_PKG_LINUX_HEADERS=linux26
ROCKCFGSET_PKG_LINUX_USE26MODTOOLS=1
# not static subversion
ROCKCFGSET_PKG_SUBVERSION_STATIC=0
# default package selection for this target...
# begin the sed string
echo "pkgfilter sed '" > config/$config.$swpid/predefined-pkgsel.parsed
. ./misc/pkgsel/macros
REMOVE xphelloworld >> config/$config.$swpid/predefined-pkgsel.parsed
REMOVE pcmcia-cs >> config/$config.$swpid/predefined-pkgsel.parsed
for x in icewm imlib glib12 tor privoxy dillo gtk+12 xterm ; do
ADD $x >> config/$config.$swpid/predefined-pkgsel.parsed
done
. ./misc/pkgsel/minimal+xorg.in >> config/$config.$swpid/predefined-pkgsel.parsed
# end the sed string
echo "'" >> config/$config.$swpid/predefined-pkgsel.parsed
. config/$config.$swpid/predefined-pkgsel.parsed
pkgenable kiss
pkgenable dietlibc
pkgenable squashfs-tools
pkgenable shadowfs
pkgenable pseudonative-daemon
pkgenable tcp_wrappers
pkgenable portmap
pkgenable hotplug
pkgenable udev
pkgenable disktype
pkgenable ucl
pkgenable upx2

+ 1
- 0
target/tor/download.txt

@ -0,0 +1 @@
3236835844 tor_aliases_v4 http://shellscripts.org/projects/t/toraliases/version_4/

+ 1
- 0
target/tor/fixedfiles/dillorc

@ -0,0 +1 @@
http_proxy=http://127.0.0.1:8118/

+ 3
- 0
target/tor/fixedfiles/icewm_menu

@ -0,0 +1,3 @@
prog xterm xterm xterm
separator
menufile Programs folder /usr/share/icewm/ROCK

+ 84
- 0
target/tor/fixedfiles/inittab

@ -0,0 +1,84 @@
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
#
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
#
# ROCK Linux: rock-src/target/tor/fixedfiles/inittab
# ROCK Linux is Copyright (C) 1998 - 2007 Clifford Wolf
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. A copy of the GNU General Public
# License can be found at Documentation/COPYING.
#
# Many people helped and are helping developing ROCK Linux. Please
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
# file for details.
#
# --- ROCK-COPYRIGHT-NOTE-END ---
#
# See "man 5 inittab" for details.
#
# The default runlevel.
id:5:initdefault:
# /etc/rc.d executes the S and K scripts upon change
# of runlevel.
#
# Runlevels 0 and 6 are halt and reboot.
# Runlevels 1-5 are multi-user.
# Runlevel S is single user.
l0:0:wait:/etc/rc.d/rc
l1:1:wait:/etc/rc.d/rc
l2:2:wait:/etc/rc.d/rc
l3:3:wait:/etc/rc.d/rc
l4:4:wait:/etc/rc.d/rc
l5:5:wait:/etc/rc.d/rc
l6:6:wait:/etc/rc.d/rc
ls:S:wait:/etc/rc.d/rc
~~:S:wait:/sbin/sulogin
# What to do when CTRL-ALT-DEL is pressed.
ca:12345:ctrlaltdel:/sbin/shutdown -r now
# /sbin/agetty invocations for the runlevels.
#
# The "id" field MUST be the same as the last
# characters of the device (after "tty").
#
# Format:
# <id>:<runlevels>:<action>:<process>
#
# Maintenace Console on /dev/console
#
#1:12345:respawn:/sbin/agetty -L -i -I '\012\015\012Maintenance Console:\012' 9600 console linux
#
# Virtual Consoles 1-6
#
# to enable the SAK blocking feature add the options "-t 10 -s /etc/sakmsg"
#
# to clear the screen on ANSI terminals add the option "-I '\033[H\033[J'"
#
# there are 3 Issue files:
# /etc/issue ........ Simple login screen for consoles or terminals
# /etc/issue.ansi ... Login screen for ANSI consoles or terminals
# /etc/issue.net .... Login message for network connections
#
1:12345:respawn:/sbin/agetty -L -i -I '\012\015\012Maintenance Console:\012' -l /sbin/login-shell -n 38400 vc/1 linux
2:12345:respawn:/sbin/agetty -f /etc/issue.ansi -l /sbin/login-shell -n 38400 vc/2 linux
3:12345:respawn:/sbin/agetty -f /etc/issue.ansi -l /sbin/login-shell -n 38400 vc/3 linux
4:12345:respawn:/sbin/agetty -f /etc/issue.ansi -l /sbin/login-shell -n 38400 vc/4 linux
5:12345:respawn:/sbin/agetty -f /etc/issue.ansi -l /sbin/login-shell -n 38400 vc/5 linux
6:12345:respawn:/sbin/agetty -f /etc/issue.ansi -l /sbin/login-shell -n 38400 vc/6 linux
#
# A X display manager (multiplexer)
#
X:5:once:/sbin/startx_on_boot

+ 5
- 0
target/tor/fixedfiles/login-shell

@ -0,0 +1,5 @@
#!/bin/bash
echo "root and rocker's password is 'rock'"
cd /home/rocker
[ ! -f .profile ] && echo "cd /home/rocker" > .profile
exec /bin/su - rocker -c "/bin/bash --login"

+ 95
- 0
target/tor/fixedfiles/rock-menu

@ -0,0 +1,95 @@
#!/bin/bash
dir="/tmp/dir"
rm -rf ${dir}
mkdir -p ${dir}
tmpfile="/tmp/tmpfile"
rm -rf ${tmpfile}
style="freedesktop"
[ "$1" == "--rock" -o -e /usr/share/icewm/rockstyle ] && style="rock"
process_desktop(){
file=${1}
. ${file}
[ -z "${Exec}" ] && return
if [ "${style}" == "freedesktop" ] ; then
Categories=${Categories//;//}
Categories=${Categories%/}
elif [ "${style}" == "rock" ] ; then
Categories="`grep '\[C\]' /var/adm/descs/${X_ROCK_Name} | head -n 1 | cut -f2 -d' '`"
fi
mkdir -p "${dir}/${Categories}"
if [ "${Terminal}" == "true" -o "${Terminal}" == "1" ] ; then
Exec="xterm -e '${Exec}'"
fi
echo "prog \"${Name}\" \"${Icon:-${Name}}\" ${Exec}" > "${dir}/${Categories}/${Name}"
unset Exec Name Icon Terminal Categories X_ROCK_Name
}
for x in /usr/share/applications/*desktop ; do
[ ! -e ${x} ] && continue
entry=0
while read line ; do
[ -z "${line}" -o "${line:0:1}" == "#" ] && continue
if [ "${line:0:1}" == "[" ] ; then
entry=$(( ${entry} + 1 ))
if [ ${entry} -gt 1 ] ; then # this is to support multiple entries in one file
[ -f ${tmpfile} ] && process_desktop ${tmpfile}
rm -f ${tmpfile}
fi
else
[ "${line:0:5}" == "Exec=" ] && echo "${line}" | sed -e 's,=\(.*\)$,="\1",g' >>${tmpfile}
[ "${line:0:5}" == "Name=" ] && echo "${line}" | sed -e 's,=\(.*\)$,="\1",g' >>${tmpfile}
[ "${line:0:5}" == "Icon=" ] && echo "${line}" | sed -e 's,=\(.*\)$,="\1",g' >>${tmpfile}
[ "${line:0:9}" == "Terminal=" ] && echo "${line}" | sed -e 's,=\(.*\)$,="\1",g' >>${tmpfile}
[ "${line:0:11}" == "Categories=" ] && echo "${line}" | sed -e 's,=\(.*\)$,="\1",g' >>${tmpfile}
[ "${line:0:12}" == "X-ROCK-Name=" ] && echo "${line}" | sed -e 's,=\(.*\)$,="\1",g' -e 's,^.*=,X_ROCK_Name=,g' >>${tmpfile}
fi
done < ${x}
[ -f ${tmpfile} ] && process_desktop ${tmpfile}
rm -f ${tmpfile}
done
scan_file() {
for n in 1 `seq 1 1 ${2} 2>/dev/null` ; do
echo -en "\t"
done
cat "${1}"
}
scan_dir() {
for n in `seq 1 1 ${2} 2>/dev/null` ; do
echo -en "\t"
done
echo "menu \"${1##*/}\" folder {"
for x in "${1}"/* ; do
if [ -d "${x}" ] ; then
scan_dir "${x}" $(( ${2} + 1 ))
elif [ -f "${x}" ] ; then
scan_file "${x}" ${2}
fi
done
for n in `seq 1 1 ${2} 2>/dev/null` ; do
echo -en "\t"
done
echo "}"
}
rm -f /usr/share/icewm/ROCK
for x in ${dir}/* ; do
if [ -d "${x}" ] ; then
scan_dir "${x}" 0
elif [ -f "${x}" ] ; then
scan_file "${x}" 0
fi
done >/usr/share/icewm/ROCK
rm -rf ${tmpfile} ${dir}

+ 238
- 0
target/tor/fixedfiles/system

@ -0,0 +1,238 @@
#!/bin/sh
#
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
#
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
#
# ROCK Linux: rock-src/target/tor/fixedfiles/system
# ROCK Linux is Copyright (C) 1998 - 2007 Clifford Wolf
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. A copy of the GNU General Public
# License can be found at Documentation/COPYING.
#
# Many people helped and are helping developing ROCK Linux. Please
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
# file for details.
#
# --- ROCK-COPYRIGHT-NOTE-END ---
#
# Desc: System bootup and shutdown
# Runlevel: 01 rcX rc1 rc2 rc3 rc4 rc5
#
title() {
local x w="$( stty size 2>/dev/null </dev/tty | cut -d" " -f2 )"
[ -z "$w" ] && w="$( stty size </dev/console | cut -d" " -f2 )"
for (( x=1; x<w; x++ )) do echo -n .; done
echo -e "\e[222G\e[3D v \r\e[36m$* \e[0m"
error=0
}
status() {
if [ $error -eq 0 ]
then
echo -e "\e[1A\e[222G\e[4D\e[32m :-)\e[0m"
else
echo -e "\e[1A\e[222G\e[4D\a\e[1;31m :-(\e[0m"
fi
}
case "$1" in
start)
title "Creating valid /etc/mtab ..."
grep -v "^rootfs " /proc/mounts > /etc/mtab || error=$?
status
if [ -f /etc/conf/hardware ] ; then
. /etc/conf/hardware
fi
if [ -f /etc/conf/devfs ] ; then
title "Configuring the /dev filesystem ..."
sh /etc/conf/devfs || error=$?
status
fi
if [ -d /etc/hotplug ] ; then
title "Configuring hardware by activating hotplug."
[ -f /proc/sys/kernel/hotplug ] && \
echo "/sbin/hotplug" > /proc/sys/kernel/hotplug
for RC in /etc/hotplug/*.rc; do
echo -n "[$( basename ${RC%.rc} )] "
$RC start || error=$?;
done ; echo
mkdir -p /var/lock/subsys
touch /var/lock/subsys/hotplug
status
fi
title "Loading kernel modules and configuring the kernel."
if [ -f /etc/conf/kernel ] ; then
sh /etc/conf/kernel || error=$?
fi
[ -f /etc/conf/clock ] && . /etc/conf/clock
if [ "$clock_tz" = localtime ] ; then
status
title "Setting kernel clock to local time."
hwclock --hctosys --localtime || error=$?
fi
status
if [ "$clock_rtc" ] ; then
if [ -w /proc/sys/dev/rtc/max-user-freq ] ; then
title "Setting enhanced real time clock precision to $clock_rtc."
echo $clock_rtc > /proc/sys/dev/rtc/max-user-freq || error=$?
status
fi
fi
title "Setting hostname to $(cat /etc/HOSTNAME)."
hostname "$(cat /etc/HOSTNAME)" || error=$?
status
mkdir /tmp/.ICE-unix
chmod 1777 /tmp/.ICE-unix
title "Writing /var/log/boot.msg."
dmesg > /var/log/boot.msg || error=$?
status
if [ -e /etc/default.keymap ] ; then
title "Setting keyboard mappings."
mapfile=$( readlink -f /etc/default.keymap )
loadkeys $mapfile || error=$?
status
fi
title "Setting keyboard repeat rate and delay time."
kbd_rate=30; kbd_delay=250
[ -f /etc/conf/kbd ] && . /etc/conf/kbd
/usr/bin/kbdrate -r $kbd_rate -d $kbd_delay < /dev/console || error=$?
status
if [ -e /etc/default.vcfont ] ; then
title "Setting console screen font."
fontfile=$( readlink -f /etc/default.vcfont )
setfont $fontfile || error=$?
status
fi
title "Setting console terminal type and blank interval."
con_term=linux; con_blank=0
[ -f /etc/conf/console ] && . /etc/conf/console
/usr/bin/setterm -term $con_term -blank $con_blank > /dev/console || error=$?
status
title "Setting up loopback networking."
ip link set lo up || error=$?
ip addr add 127.0.0.1/8 dev lo || error=$?
ip route add 127/8 dev lo || error=$?
status
title "Setting overflow UID and GID kernel parameters."
sysctl -w kernel.overflowuid=$(id -u nobody) > /dev/null || error=$?
sysctl -w kernel.overflowgid=$(id -g nobody) > /dev/null || error=$?
status
if [ -e /etc/sysctl.conf ] ; then
title "Reading /etc/sysctl.conf file."
sysctl -p || error=$?
status
fi
if [ -e /var/state/random-seed ] ; then
title "Initializing kernel random number generator."
cat /var/state/random-seed >/dev/urandom || error=$?
status
fi
title "Setting mixer devices Master and PCM to 65%."
/usr/bin/amixer sset PCM 20 >/dev/null 2>&1 || error=$?
/usr/bin/amixer sset PCM unmute >/dev/null 2>&1 || error=$?
/usr/bin/amixer sset Master 20 >/dev/null 2>&1 || error=$?
/usr/bin/amixer sset Master unmute >/dev/null 2>&1 || error=$?
status
;;
stop)
title "Unconfiguring hardware by de-activating hotplug."
for RC in /etc/hotplug/*.rc; do
echo -n "[$( basename ${RC%.rc} )] "
$RC stop || error=$?;
done ; echo
rm -f /var/lock/subsys/hotplug
status
title "Sending all processes a SIGTERM (15)."
killall5 -15 || error=$? ; sleep 5
status
title "Sending all processes a 2nd SIGTERM (15)."
killall5 -15 || error=$? ; sleep 5
status
title "Sending all processes a SIGKILL (9)."
killall5 -9 || error=$? ; sleep 5
status
title "Turning off swap devices."
swapoff -a || error=$?
sync ; sleep 1
status
title "Remounting sync/ro and umount filesystems."
cut -d' ' -f-3 /etc/mtab /proc/mounts | sort -k2 -u -r | \
while read dev dir fs ; do
[ "$dir" = "/" ] && continue
[ "$dir" = "/dev" ] && continue
[ "$dir" = "/dev/shm" ] && continue
[ "$dir" = "/proc" ] && continue
[ "$dir" = "/sys" ] && continue
[ "$dir" = "/tmp" ] && continue
echo "Umounting $dev on $dir ($fs)."
mount -o remount,sync $dir
mount -o remount,ro $dir
umount -d $dir
bash
done
status
title "Unmounting remaining file systems."
grep -E -v '^none (/|[a-z]+:) ' /proc/mounts > /etc/mtab
sync ; sleep 1 ; sync
umount -vdnra -t nodevfs,proc,sysfs,shm
mount -vn -o remount,sync /
mount -vn -o remount,ro /
sleep 1 ; sync ; sleep 1
status
command=""
[ "$RUNLEVEL" = 0 ] && command=halt
[ "$RUNLEVEL" = 6 ] && command=reboot
if [ -n "$command" ] ; then
echo "Going to $command the system ..."
$command -d -f -i -p
while true ; do sleep 1 ; done
fi
;;
restart)
$0 stop; $0 start
;;
*)
echo "Usage: $0 { start | stop | restart }"
exit 1
;;
esac
exit 0

+ 136
- 0
target/tor/fixedfiles/xorg.conf

@ -0,0 +1,136 @@
Section "Monitor"
Identifier "Monitor1"
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY. REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS !!
# normally uncomment this lines
# HorizSync 24.0 - 80.0
# VertRefresh 50-100
EndSection
Section "Device"
Identifier "Card1"
# Use this for framebuffer devices - should work on most systems.
Driver "fbdev"
Option "fbdev" "/dev/fb/0"
# Some driver accept an UseFBDev option (e.g. radeon) to switch the
# mode via the Linux framebuffer layer. Needed e.g. as workaround for
# iBooks.
# Option "UseFBDev"
EndSection
Section "Screen"
Identifier "Screen1"
Device "Card1"
Monitor "Monitor1"
DefaultDepth 16
Subsection "Display"
Depth 4
Modes "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 8
Modes "1024x768" "800x600" "640x400"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 32
Modes "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
EndSection
Section "Module"
Load "dbe" # DBE (double buffer extension)
Load "ddc" # Display Data Channel extension
# This loads the miscellaneous extensions module
SubSectionSub "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
Option "omit XFree86-VidModeExtension" # disable mode-switching-supoprt
EndSubSection
# This loads the Type1 and FreeType font modules
Load "type1"
Load "freetype"
# Load "glx" # GLX extension (OpenGL visuals)
# Load "dri" # Direct Rendering Interface extension (OpenGL)
# Load "v4l" # Video 4 Linux extension (provides a xv adapter)
EndSection
# this enabled normal users to use DRI - the Direct Rendering Extension.
# it is also possible to use a group to control access.
#
Section "DRI"
Mode 0666
EndSection
Section "Files"
RgbPath "/usr/X11R7/share/X11/rgb"
FontPath "/usr/X11R7/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/X11R7/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/X11R7/lib/X11/fonts/CID/"
FontPath "/usr/X11R7/lib/X11/fonts/PEX/"
FontPath "/usr/X11R7/lib/X11/fonts/Speedo/"
FontPath "/usr/X11R7/lib/X11/fonts/Type1/"
FontPath "/usr/X11R7/lib/X11/fonts/cyrillic/"
FontPath "/usr/X11R7/lib/X11/fonts/encodings/"
FontPath "/usr/X11R7/lib/X11/fonts/freefont/"
FontPath "/usr/X11R7/lib/X11/fonts/latin2/"
FontPath "/usr/X11R7/lib/X11/fonts/local/"
FontPath "/usr/X11R7/lib/X11/fonts/misc/"
FontPath "/usr/X11R7/lib/X11/fonts/sharefont"
FontPath "/usr/X11R7/lib/X11/fonts/TrueType"
FontPath "/usr/share/ghostscript/fonts/"
EndSection
Section "ServerFlags"
EndSection
Section "InputDevice"
Identifier "Keyboard1"
Driver "keyboard"
Option "AutoRepeat" "250 30"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
EndSection
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "Auto"
Option "Device" "/dev/input/mice"
#Option "Emulate3Buttons" "true" # for a two button touch-pad
EndSection
Section "InputDevice"
Identifier "Mouse2"
Driver "mouse"
Option "Protocol" "Auto"
Option "Device" "/dev/misc/psaux"
EndSection
Section "ServerLayout"
Identifier "Simple Layout"
Screen "Screen1"
InputDevice "Mouse1" "CorePointer"
InputDevice "Mouse2" "SendCoreEvents"
InputDevice "Keyboard1" "CoreKeyboard"
EndSection

+ 39
- 0
target/tor/initrd/initrd_livecd

@ -0,0 +1,39 @@
bin/awk mnt/cowfs_ro/bin/awk
bin/bash2 mnt/cowfs_ro/bin/bash2
bin/bash mnt/cowfs_ro/bin/bash
bin/cat mnt/cowfs_ro/bin/cat
bin/cp mnt/cowfs_ro/bin/cp
bin/chmod mnt/cowfs_ro/bin/chmod
bin/dmesg mnt/cowfs_ro/bin/dmesg
bin/find mnt/cowfs_ro/bin/find
bin/gawk mnt/cowfs_ro/bin/gawk
bin/grep mnt/cowfs_ro/bin/grep
bin/gzip mnt/cowfs_ro/bin/gzip
bin/ln mnt/cowfs_ro/bin/ln
bin/ls mnt/cowfs_ro/bin/ls
bin/mkdir mnt/cowfs_ro/bin/mkdir
bin/mount mnt/cowfs_ro/bin/mount
bin/rmdir mnt/cowfs_ro/bin/rmdir
bin/rm mnt/cowfs_ro/bin/rm
bin/sh mnt/cowfs_ro/bin/sh
bin/sleep mnt/cowfs_ro/bin/sleep
bin/tar mnt/cowfs_ro/bin/tar
bin/umount mnt/cowfs_ro/bin/umount
bin/uname mnt/cowfs_ro/bin/uname
etc/udev mnt/cowfs_ro/etc/udev
lib/udev mnt/cowfs_ro/lib/udev
sbin/hwscan mnt/cowfs_ro/sbin/hwscan
sbin/ip mnt/cowfs_ro/sbin/ip
sbin/losetup mnt/cowfs_ro/sbin/losetup
sbin/pivot_root mnt/cowfs_ro/sbin/pivot_root
sbin/swapoff mnt/cowfs_ro/sbin/swapoff
sbin/swapon mnt/cowfs_ro/sbin/swapon
sbin/udevcontrol mnt/cowfs_ro/sbin/udevcontrol
sbin/udevd mnt/cowfs_ro/sbin/udevd
sbin/udevsettle mnt/cowfs_ro/sbin/udevsettle
sbin/udevtrigger mnt/cowfs_ro/sbin/udevtrigger
usr/bin/expand mnt/cowfs_ro/usr/bin/expand
usr/bin/find mnt/cowfs_ro/usr/bin/find
usr/bin/readlink mnt/cowfs_ro/usr/bin/readlink
usr/bin/wget mnt/cowfs_ro/usr/bin/wget
usr/sbin/lspci mnt/cowfs_ro/usr/sbin/lspci

+ 95
- 0
target/tor/kernel.conf

@ -0,0 +1,95 @@
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
#
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
#
# ROCK Linux: rock-src/target/tor/kernel.conf
# ROCK Linux is Copyright (C) 1998 - 2007 Clifford Wolf
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. A copy of the GNU General Public
# License can be found at Documentation/COPYING.
#
# Many people helped and are helping developing ROCK Linux. Please
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
# file for details.
#
# --- ROCK-COPYRIGHT-NOTE-END ---
# boot, damn it!
CONFIG_X86_GENERIC=y
# FireWire support
CONFIG_IEEE1394=y
CONFIG_IEEE1394_EXTRA_CONFIG_ROMS=y
CONFIG_IEEE1394_CONFIG_ROM_IP1394=y
CONFIG_IEEE1394_OHCI1394=y
CONFIG_IEEE1394_SBP2=y
#enough space for a few modules
CONFIG_BLK_DEV_RAM_SIZE=8192
# enable squashfs
CONFIG_SQUASHFS=y
# the useful magic rq
CONFIG_DEBUG_KERNEL=y
CONFIG_MAGIC_SYSRQ=y
# this is mandatory
CONFIG_BLK_DEV_IDECD=y
# Console drivers
CONFIG_VGA_CONSOLE=y
CONFIG_VIDEO_SELECT=y
CONFIG_FB=y
CONFIG_FB_VESA=y
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_LOGO=y
CONFIG_LOGO_LINUX_CLUT224=y
#eek! this ovverides all others! evil!
CONFIG_FB_VGA16=n
# agp already needed for some vga cards
CONFIG_AGP=y
CONFIG_AGP_INTEL=y
CONFIG_AGP_I810=y
CONFIG_AGP_VIA=y
CONFIG_AGP_AMD=y
CONFIG_AGP_AMD_K8=y
CONFIG_AGP_SIS=y
CONFIG_AGP_ALI=y
CONFIG_AGP_SWORKS=y
CONFIG_AGP_NVIDIA=y
CONFIG_AGP_ATI=y
# drm
CONFIG_DRM=m
CONFIG_DRM_NEW=m
CONFIG_DRM_TDFX=m
CONFIG_DRM_GAMMA=m
CONFIG_DRM_R128=m
CONFIG_DRM_RADEON=m
CONFIG_DRM_I810=m
CONFIG_DRM_I810_XFREE_41=m
CONFIG_DRM_I830=m
CONFIG_DRM_MGA=m
CONFIG_DRM_SIS=m
# SCSI support
CONFIG_BLK_DEV_SD=y
CONFIG_BLK_DEV_SR=y
CONFIG_CHR_DEV_SG=y
CONFIG_SCSI_PROC_FS=y
# no MD
CONFIG_MD=n
# no oss!
CONFIG_SOUND_PRIME=n
CONFIG_DMASOUND_PMAC=n

+ 20
- 0
target/tor/kernel.conf.sh

@ -0,0 +1,20 @@
echo "livecd target -> disabling some settings ..."
sed -e "s/CONFIG_VIDEO\(.*\)=./# CONFIG_VIDEO\1 is not set/" \
-e "s/CONFIG_PHONE\(.*\)=./# CONFIG_PHONE\1 is not set/" \
-e "s/CONFIG_RADIO\(.*\)=./# CONFIG_RADIO\1 is not set/" \
-e "s/CONFIG_HAMRADIO\(.*\)=./# CONFIG_HAMRADIO\1 is not set/" \
-e "s/CONFIG_ATM\(.*\)=./# CONFIG_ATM\1 is not set/" \
-e "s/CONFIG_SMP\(.*\)=./# CONFIG_SMP\1 is not set/" \
-e "s/CONFIG_SOUND_\(.*\)=./# CONFIG_SOUND_\1 is not set/" \
-e "s/CONFIG_PCI_NAMES\(.*\)=./# CONFIG_PCI_NAMES\1 is not set/" \
-e "s/CONFIG_INPUT_JOYDEV\(.*\)=./# CONFIG_INPUT_JOYDEV\1 is not set/" \
-e "s/CONFIG_GAMEPORT\(.*\)=./# CONFIG_GAMEPORT\1 is not set/" \
-e "s/CONFIG_IP_NF\(.*\)=./CONFIG_IP_NF\1=m/" \
-e "s/CONFIG_KALLSYMS=./# CONFIG_KALLSYMS is not set/" \
-e "s/CONFIG_IOSCHED_AS=./# CONFIG_IOSCHED_AS is not set/" \
$1 > .config.livecd
mv .config.livecd $1

+ 481
- 0
target/tor/linuxrc.sh

@ -0,0 +1,481 @@
#!/bin/bash
STAGE_2_BIG_IMAGE="2nd_stage.img.z"
#640kB, err, 64 MB should be enought for the tmpfs ;-)
TMPFS_OPTIONS="size=67108864"
mod_load_info () { # {{{
read os host version rest < <( uname -a )
if [ -z "${os}" ] ; then
echo "Can't run \`uname -a\`"
return
elif [ "${os}" != "Linux" ] ; then
echo "Your operating system is not supported ?!"
return
fi
mod_loader="/sbin/insmod"
mod_dir="/lib/modules/"
# kernel module suffix for <= 2.4 is .o, .ko if above
if [ ${version:2:1} -gt 4 ] ; then
mod_suffix=".ko"
mod_suffix_len=3
else
mod_suffix=".o"
mod_suffix_len=2
fi
} # }}}
doboot() { # {{{
echo "doboot starting - trying to exec /sbin/init"
exec /sbin/init
} # }}}
trymount() { # {{{
source=${1}
target=${2}
mount -t iso9600 -o ro ${source} ${target} && return 0
mount -t ext3 -o ro ${source} ${target} && return 0
mount -t ext2 -o ro ${source} ${target} && return 0
mount -t minix -o ro ${source} ${target} && return 0
mount -t vfat -o ro ${source} ${target} && return 0
return -1
} # }}}
httpload() { # {{{
echo -n "Enter base URL (e.g. http://1.2.3.4/rock): "
read baseurl
[ -z "${baseurl}" ] && return
cat <<EOF
Select a stage 2 image file:
0. ${STAGE_2_BIG_IMAGE}
1. ${STAGE_2_SMALL_IMAGE}
EOF
echo -n "Enter number or image file name (default=0): "
read filename
if [ -z "${filename}" ] ; then
filename="${STAGE_2_BIG_IMAGE}"
elif [ "${filename}" == "0" ] ; then
filename=${STAGE_2_BIG_IMAGE}
elif [ "${filename}" == "1" ] ; then
filename="${STAGE_2_SMALL_IMAGE}"
fi
url="${baseurl%/}/${filename}"
echo "[ ${url} ]"
export ROCK_INSTALL_SOURCE_URL=${baseurl}
exit_linuxrc=1;
if ! mkdir /mnt_root ; then
echo "Can't create /mnt_root"
exit_linuxrc=0
fi
if ! mount -t tmpfs -O ${TMPFS_OPTIONS} none /mnt_root ; then
echo "Can't mount /mnt_root"
exit_linuxrc=0
fi
wget -O - ${url} | tar ${STAGE_2_COMPRESS_ARG} -C /mnt_root -xf -
echo "finished ... now booting 2nd stage"
doboot
} # }}}
load_modules() { # {{{
# this starts the module loading shell
directory=${1}
cat <<EOF
module loading shell
you can navigate through the filestem with 'cd'. for loading a module
simply enter the shown name, to exit press enter on a blank line.
EOF
cd ${directory}
while : ; do
echo "Directories:"
count=0
while read inode ; do
[ -d "${inode}" ] || continue
echo -n " [ ${inode} ]"
count=$((${count}+1))
if [ ${count} -gt 3 ] ; then
echo
count=0
fi
done < <( ls ) | expand -t1,3,19,21,23,39,41,43,59,61,63,78
echo
echo "Modules:"
count=0
while read inode ; do
[ -f "${inode}" ] || continue
[ "${inode%${mod_suffix}}" == "${inode}" ] && continue
echo -n " [ ${inode%${mod_suffix}} ]"
count=$((${count}+1))
if [ ${count} -gt 3 ] ; then
echo
count=0
fi
done < <( ls ) | expand -t1,3,19,21,23,39,41,43,59,61,63,78
echo
echo -n "[${PWD##*/} ] > "
read cmd par
if [ "${cmd}" == "cd" ] ; then
cd ${par}
elif [ -f "${cmd}${mod_suffix}" ] ; then
insmod ${PWD%/}/${cmd}${mod_suffix} ${par}
elif [ -z "${cmd}" ] ; then
break
else
echo "No such module: ${cmd}"
fi
done
return
} # }}}
getdevice () { # {{{
while : ; do
echo -en "\nDevice file to use (q to return) : ";
read device;
[ "${device}" == "q" ] && return -1;
if [ ! -e "${device}" ] ; then
echo -e "\nNot a valid device!"
else
devicefile=${device}
return 0;
fi
done
} # }}}
getcdromdevice () { # {{{
cdroms="${1}"
floppies="${2}"
autoboot="${3}"
devicelists="/dev/cdroms/* /dev/floppy/*"
[ "${cdroms}" == "0" -a "${floppies}" == "0" ] && return -1
devnr=0
for dev in ${devicelists} ; do
[ -e "${dev}" ] || continue
[[ ${dev} = /dev/cdroms* ]] && [ "${cdroms}" == "0" ] && continue
[[ ${dev} = /dev/floppy* ]] && [ "${floppies}" == "0" ] && continue
eval "device_${devnr}='${dev}'"
devnr=$((${devnr}+1))
done
[ ${devnr} -eq 0 ] && return -1
x=0
floppy=1
cdrom=1
while [ ${x} -lt ${devnr} ] ; do
eval "device=\${device_${x}}"
if [[ ${device} = /dev/cdrom* ]] ; then
echo " ${x}. CD-ROM #${cdrom} (IDE/ATAPI or SCSI)"
cdrom=$((${cdrom}+1))
fi
if [[ ${device} = /dev/flopp* ]] ; then
echo " ${x}. FDD (Floppy Disk Drive) #${floppy}"
floppy=$((${floppy}+1))
fi
x=$((${x}+1))
done
echo -en "\nEnter number or device file name (default=0): "
if [ ${autoboot} -eq 1 ] ; then
echo "0"
text=0
else
read text
fi
[ -z "${text}" ] && text=0
while : ; do
if [ -e "${text}" ] ; then
devicefile="${text}"
return 0
fi
eval "text=\"\${device_${text}}\""
if [ -n "${text}" ] ; then
devicefile="${text}"
return 0
fi
echo -n "No such device found. Try again (enter=back): "
read text
[ -z "${text}" ] && return -1
done
return 1;
} # }}}
prepare_root () { # {{{
local ret=0 F
echo "preparing /dev"
cd /dev || ret=1
rm -rf fd
ln -svf /proc/kcore core || ret=1
ln -svf /proc/self/fd fd || ret=1
ln -svf fd/0 stdin || ret=1
ln -svf fd/1 stdout || ret=1
ln -svf fd/2 stderr || ret=1
cd / || ret=1
ln -svf /mnt/cowfs_ro/* /mnt/cowfs_rw-new/
rm -rf /mnt/cowfs_rw-new/{home,tmp}
mkdir -p /mnt/cowfs_rw-new/{home,tmp}
chmod 1777 /mnt/cowfs_rw-new/tmp
mkdir -p /mnt/cowfs_rw-new/home/{rocker,root}
chmod 755 /mnt/cowfs_rw-new/home/rocker
chmod 700 /mnt/cowfs_rw-new/home/root
if ! chown 1000:100 /mnt/cowfs_rw-new/home/rocker ; then
echo "could not chown /mnt/cowfs_rw-new/home/rocker to rocker:users"
ret=1
fi
mount --move /mnt/cowfs_rw-new /mnt/cowfs_rw
rm -rf /mnt/cowfs-rw-new
return $ret
} # }}}
load_ramdisk_file() { # {{{
local devicetype=${1} autoboot=${2}
echo -en "Select a device for loading the 2nd stage system from: \n\n"
if [ "${devicetype}" == "cdroms" ] ; then
getcdromdevice 1 1 ${autoboot} || return
else
getdevice || return
fi
cat << EOF
Select a stage 2 image file:
1. ${STAGE_2_BIG_IMAGE}
EOF
echo -n "Enter number or image file name (default=1): "
if [ ${autoboot} -eq 1 ] ; then
text=1
else
read text
fi
if [ -z "${text}" -o "${text}" = "1" ] ; then
filename="${STAGE_2_BIG_IMAGE}"
else
filename="${text}"
fi
exit_linuxrc=1
echo "Using ${devicefile}:${filename}."
if ! mkdir -p /mnt/cdrom ; then
echo "Can't create /mnt/cdrom"
exit_linuxrc=0
fi
if ! mount ${devicefile} "/mnt/cdrom" -o ro ; then
echo "Can't mount /mnt/cdrom"
exit_linuxrc=0
fi
loopdev="dev/loop/0" ; [ ! -e "${loopdev}" ] && loopdev="/dev/loop0"
if ! losetup "${loopdev}" "/mnt/cdrom/${filename}" ; then
echo "Can't losetup /mnt/cdrom/${filename}"
exit_linuxrc=0
fi
# mkdir -p /mnt/cowfs_r{o,w}
if ! mount -t squashfs "${loopdev}" /mnt/cowfs_ro -o ro ; then
echo "Can't mount squashfs on /mnt/cowfs_ro"
exit_linuxrc=0
fi
if ! mkdir -p /mnt/cowfs_rw-new ; then
echo "Can't mkdir -p /mnt/cowfs_rw-new"
exit_linuxrc=0
fi
if ! mount -t tmpfs -o ${TMPFS_OPTIONS} tmpfs /mnt/cowfs_rw-new ; then
echo "Can't mount tmpfs on /mnt/cowfs_rw-new"
exit_linuxrc=0
fi
export ROCK_INSTALL_SOURCE_DEV=${devicefile}
export ROCK_INSTALL_SOURCE_FILE=${filename}
if prepare_root ; then
rm -rf /mnt/cowfs_rw-new
doboot
fi
} # }}}
activate_swap() { # {{{
echo
echo -n "Enter file name of swap device: "
read text
if [ -n "${text}" ] ; then
swapon ${text}
fi
} # }}}
config_net() { # {{{
ip addr
echo
ip route
echo
echo -n "Enter interface name (eth0): "
read dv
[ -z "${dv}" ] && dv="eth0"
echo -n "Enter ip (192.168.0.254/24): "
read ip
[ -z "${ip}" ] && ip="192.168.0.254/24"
ip addr add ${ip} dev ${dv}
ip link set ${dv} up
echo -n "Enter default gateway (none): "
read gw
[ -n "${gw}" ] && ip route add default via ${gw}
ip addr
echo
ip route
echo
} # }}}
exec_sh() { # {{{
echo "Quit the shell to return to the stage 1 loader!"
/bin/sh
} # }}}
checkisomd5() { # {{{
echo "Select a device for checking: "
getcdromdevice 1 0 0 || return
echo "Running check..."
/bin/checkisomd5 ${devicefile}
echo "done"
echo "Press Return key to continue."
read
} # }}}
emit_udev_events() { # {{{
/sbin/udevtrigger
/sbin/udevsettle
} # }}}
input=1
exit_linuxrc=0
[ -z "${autoboot}" ] && autoboot=0
mount -t tmpfs -o ${TMPFS_OPTIONS} tmpfs /tmp || echo "Can't mount /tmpfs"
mount -t proc proc /proc || echo "Can't mount /proc"
mount -t sysfs sysfs /sys || echo "Can't mount sysfs on /sys"
mount -t tmpfs tmpfs /dev || echo "Can't mount a tmpfs on /dev"
export PATH="/sbin:/bin:/usr/sbin:/usr/bin:$PATH"
cp -r /lib/udev/devices/* /dev
mount -t devpts devpts /dev/pts || echo "Can't mount devpts on /dev/pts"
echo "" > /proc/sys/kernel/hotplug
/sbin/udevd --daemon
# create nodes for devices already in kernel
emit_udev_events
mod_load_info
# some devices (scsi...) need time to settle...
echo "Waiting for devices to settle..."
sleep 5
ip addr add 127.0.0.1 dev lo
ip link set lo up
if [ ${autoboot} -eq 1 ] ; then
load_ramdisk_file cdroms 1
fi
autoboot=0
cat << EOF
============================================
=== ROCK Linux 1st stage boot system ===
============================================
The ROCK Linux install / rescue system boots up in two stages. You
are now in the first of this two stages and if everything goes right
you will not spend much time here. Just load your SCSI and networking
drivers (if needed) and configure the installation source so the
2nd stage boot system can be loaded and you can start the installation.
EOF
while [ ${exit_linuxrc} -eq 0 ] ; do
cat <<EOF
0. Load 2nd stage system from cdrom or floppy drive
1. Load 2nd stage system from any device
2. Load 2nd stage system from network
3. Configure network interfaces (IPv4 only)
4. Load kernel modules from this disk
5. Load kernel modules from another disk
6. Activate already formatted swap device
7. Execute a shell (for experts!)
8. Validate a CD/DVD against its embedded checksum
EOF
echo -n "What do you want to do [0-8] (default=0)? "
read text
[ -z "${text}" ] && text=0
input=${text//[^0-9]/}
case "${input}" in
0)
load_ramdisk_file cdroms 0
;;
1)
load_ramdisk_file any 0
;;
2)
httpload
;;
3)
config_net
;;
4)
load_modules "${mod_dir}"
;;
5)
mkdir "/mnt_floppy" || echo "Can't create /mnt_floppy"
trymount "/dev/floppy/0" "/mnt_floppy" && load_modules "/mnt_floppy"
umount "/mnt_floppy" || echo "Can't umount /mnt_floppy"
rmdir "/mnt_floppy" || echo "Can't remove /mnt_floppy"
;;
6)
activate_swap
;;
7)
exec_sh
;;
8)
checkisomd5
;;
*)
echo "No such option present!"
esac
done
exec /linuxrc
echo "Can't start /linuxrc!! Life sucks.\n\n"

+ 5386
- 0
target/tor/needed_files
File diff suppressed because it is too large
View File


+ 121
- 0
target/tor/needed_pkgs

@ -0,0 +1,121 @@
00-dirtree
bash2
coreutils
cron
dhcp
dillo
e2fsprogs
encodings
findutils
font-adobe-100dpi
font-adobe-75dpi
font-adobe-utopia-100dpi
font-adobe-utopia-75dpi
font-adobe-utopia-type1
font-alias
font-arabic-misc
font-bh-100dpi
font-bh-75dpi
font-bh-lucidatypewriter-100dpi
font-bh-lucidatypewriter-75dpi
font-bh-ttf
font-bh-type1
font-bitstream-100dpi
font-bitstream-75dpi
font-bitstream-speedo
font-bitstream-type1
font-cronyx-cyrillic
font-cursor-misc
font-daewoo-misc
font-dec-misc
font-ibm-type1
font-isas-misc
font-jis-misc
font-micro-misc
font-misc-cyrillic
font-misc-ethiopic
font-misc-meltho
font-misc-misc
font-mutt-misc
font-schumacher-misc
font-screen-cyrillic
font-sony-misc
font-sun-misc
font-util
font-winitzki-cyrillic
font-xfree86-type1
fontconfig
gcc40
grep
hotplug
icewm
imlib
iproute2
kbd
less
libx11
linux26
microcode_ctl
module-init-tools
ncurses
net-tools
openssh
pam
privoxy
procps
sed
shadow
sysfiles
sysklogd
tor
udev
util-linux
xf86-input-keyboard
xf86-input-mouse
xf86-video-fbdev
xinit
xorg-server
xterm
sysvinit
shadowfs
mktemp
glibc23
cracklib
xauth
libxau
zlib
libxext
libxmu
libxdmcp
bdb44
expat
freetype
glib12
gtk+12
libdmx
libevent
libfontenc
libice
libjpeg
libpng
libsm
libtiff
libungif
libx11
libxau
libxaw
libxext
libxfont
libxft
libxi
libxinerama
libxkbfile
libxkbui
libxmu
libxpm
libxrandr
libxrender
libxt
libxxf86misc
libxxf86vm
openssl

+ 4
- 0
target/tor/pkg_dillo.conf

@ -0,0 +1,4 @@
[ -f $confdir/$pkg.conf ] && . $confdir/$pkg.conf
hook_add postmake 9 "echo http_proxy=http://127.0.0.1:8118/ > $root/etc/dillorc"
var_append extraconfopt " " "--disable-dlgui"

+ 5
- 0
target/tor/pkg_gawk.conf

@ -0,0 +1,5 @@
[ -e $confdir/$pkg.conf ] && . $confdir/$pkg.conf
var_append confopt " " " --disable-nls"

+ 18
- 0
target/tor/pkg_linux.conf

@ -0,0 +1,18 @@
# special adaptions for the epia target
echo_status "Customizing for LiveCD Target ..."
[ -e $confdir/$pkg.conf ] && . $confdir/$pkg.conf
extract_squashfspatch() {
my_ver=`echo ${vanilla_ver} | sed -e 's,^\(2\.[46]\.[0-9]*\)\(\..*\)$,\1,'`
if [ "${my_ver:0:3}" == "2.4" ] ; then
echo "SquashFS does no longer support 2.4.x Linux Kernels!"
exit 1
fi
[ "${my_ver:0:3}" == "2.6" ] && my_ver=2.6.20
tar --use-compress-program=bzip2 -xOf $base/download/mirror/s/squashfs3.2-r2.tar.bz2 \
squashfs3.2-r2/kernel-patches/linux-${my_ver}/squashfs3.2-patch > $archdir/squashfs3.2.patch
}
hook_add prepatch 1 extract_squashfspatch
var_append patchfiles " " "$archdir/squashfs3.2.patch"

+ 6
- 0
target/tor/pkg_modutils.conf

@ -0,0 +1,6 @@
[ -e $confdir/$pkg.conf ] && . $confdir/$pkg.conf
var_append confopt " " "--disable-combined --enable-combined-rmmod \
--enable-combined-modprobe"

+ 7
- 0
target/tor/pkg_privoxy.conf

@ -0,0 +1,7 @@
tmp="`mktemp`"
grep -v install_init $confdir/$pkg.conf > $tmp
. $tmp
rm -f $tmp
hook_add postmake 9 'install_init $pkg $base/target/$target/$pkg.init'
hook_add postinstall 9 "echo 'forward-socks4a / localhost:9050 .' >> $root/etc/privoxy/config"

+ 7
- 0
target/tor/pkg_tor.conf

@ -0,0 +1,7 @@
tmp="`mktemp`"
grep -v install_init $confdir/$pkg.conf > $tmp
. $tmp
rm -f $tmp
hook_add postmake 9 'install_init $pkg $base/target/$target/$pkg.init'
hook_add postmake 10 'cp $root/etc/tor/torrc{.sample,}'

+ 17
- 0
target/tor/powerpc/boot.msg

@ -0,0 +1,17 @@
____ ___ ___ _ __ _
| _ \ / _ \ / __| |/ / | | _ _ __ _ _ _ _
| . _/| | | | | | '_/ | | |_| '_ \| | | | \/ |
| |\ \| |_| | |__| . \ | |__| | | | | `_' |> <
|_| \_\ ___/ \___|_|\_\ |____|_|_| |_|\___/|_/\_|
[============> http://www.rocklinux.org/ <============]
| L I V E CD |
+-------------+
Actions:
-------
<ENTER> Start live cd system
livecd-text <Enter> Start live cd system in text mode
livecd options <Enter> Start with the given options
.

+ 53
- 0
target/tor/powerpc/build.sh

@ -0,0 +1,53 @@
cd $disksdir
echo_header "Cleaning boot directory:"
rm -rfv boot/*-rock boot/System.map boot/kconfig* boot/initrd*.img boot/*.b boot/second
echo_header "Creating yaboot setup:"
#
echo_status "Extracting yaboot boot loader images."
mkdir -p boot etc
tar --use-compress-program=bzip2 \
-xf $base/build/${ROCKCFG_ID}/ROCK/pkgs/yaboot.tar.bz2 \
usr/lib/yaboot/yaboot -O > boot/yaboot
tar --use-compress-program=bzip2 \
-xf $base/build/${ROCKCFG_ID}/ROCK/pkgs/yaboot.tar.bz2 \
usr/lib/yaboot/yaboot.rs6k -O > boot/yaboot.rs6k
mv boot/yaboot.rs6k install.bin
#
echo_status "Creating yaboot config files."
cp -v $base/target/$target/powerpc/{boot.msg,ofboot.b} \
boot
(
echo "device=cdrom:"
cat $base/target/$target/powerpc/yaboot.conf
) > etc/yaboot.conf
(
echo "device=cd:"
cat $base/target/$target/powerpc/yaboot.conf
) > boot/yaboot.conf
#
echo_status "Moving image (initrd) to boot directory."
mv -v initrd.gz boot/
#
echo_status "Copy more config files."
cp -v $base/target/$target/powerpc/mapping .
#
echo_status "Copying oldworld pmac support files..."
rm -rf oldworld
mkdir -p oldworld
cp -v $base/download/mirror/B/BootX_1.2.2.sit oldworld/
cp -v $base/target/$target/powerpc/oldworld-readme.txt oldworld/README.txt
#
datadir="build/${ROCKCFG_ID}/ROCK/livecd"
cat > ../isofs_arch.txt <<- EOT
BOOT -hfs -part -map $datadir/mapping -hfs-volid "ROCK_Linux_CD"
BOOTx -hfs-bless boot -sysid PPC -l -L -r -T -chrp-boot
BOOTx -prep-boot install.bin
DISK1 $datadir/boot/ boot/
DISK1 $datadir/etc/ etc/
DISK1 $datadir/oldworld/ oldworld/
DISK1 $datadir/install.bin install.bin
EOT

+ 1
- 0
target/tor/powerpc/download.txt

@ -0,0 +1 @@
655936802 BootX_1.2.2.sit http://penguinppc.org/~benh/

+ 17
- 0
target/tor/powerpc/mapping

@ -0,0 +1,17 @@
# EXTN XLate CREATOR TYPE Comment
.hqx Ascii 'BnHx' 'TEXT' "BinHex file"
.b Raw 'UNIX' 'tbxi' "bootstrap"
.txt Ascii 'ttxt' 'ttro' "README"
yaboot Raw 'UNIX' 'boot' "bootstrap"
*linux Raw 'UNIX' 'boot' "kernel"
*.conf Raw 'UNIX' 'conf' "bootstrap"
initrd.gz Raw 'UNIX' 'root' "root_image"
.sit Raw 'SITx' 'disk' "StuffIT Archive"
# just a reminder - we want to get rid of the .sit
#App Raw 'BooX' 'APPC' "BootX App"
#CacheSetting Raw '????' 'APPL' "GrabG3CacheSetting"
#MakeMkPlugin Raw '????' 'APPL' "MakeMkPlugin"
#miBoot.img Raw 'ddsk' 'dimg' "miBoot Image"
#System Raw 'MACS' 'zsys' "miBoot System"
# the rest
* Raw '????' '????' "Unknown"

+ 64
- 0
target/tor/powerpc/ofboot.b

@ -0,0 +1,64 @@
<CHRP-BOOT>
<COMPATIBLE>
MacRISC MacRISC3 MacRISC4
</COMPATIBLE>
<DESCRIPTION>
ROCK Linux Live CD Bootloader
</DESCRIPTION>
<BOOT-SCRIPT>
" screen" output
load-base release-load-area
boot cd:,\boot\yaboot
</BOOT-SCRIPT>
<OS-BADGE-ICONS>
1010
000000000000F8FEACF6000000000000
0000000000F5FFFFFEFEF50000000000
00000000002BFAFEFAFCF70000000000
0000000000F65D5857812B0000000000
0000000000F5350B2F88560000000000
0000000000F6335708F8FE0000000000
00000000005600F600F5FD8100000000
00000000F9F8000000F5FAFFF8000000
000000008100F5F50000F6FEFE000000
000000F8F700F500F50000FCFFF70000
00000088F70000F50000F5FCFF2B0000
0000002F582A00F5000008ADE02C0000
00090B0A35A62B0000002D3B350A0000
000A0A0B0B3BF60000505E0B0A0B0A00
002E350B0B2F87FAFCF45F0B2E090000
00000007335FF82BF72B575907000000
000000000000ACFFFF81000000000000
000000000081FFFFFFFF810000000000
0000000000FBFFFFFFFFAC0000000000
000000000081DFDFDFFFFB0000000000
000000000081DD5F83FFFD0000000000
000000000081DDDF5EACFF0000000000
0000000000FDF981F981FFFF00000000
00000000FFACF9F9F981FFFFAC000000
00000000FFF98181F9F981FFFF000000
000000ACACF981F981F9F9FFFFAC0000
000000FFACF9F981F9F981FFFFFB0000
00000083DFFBF981F9F95EFFFFFC0000
005F5F5FDDFFFBF9F9F983DDDD5F0000
005F5F5F5FDD81F9F9E7DF5F5F5F5F00
0083DD5F5F83FFFFFFFFDF5F835F0000
000000FBDDDFACFBACFBDFDFFB000000
000000000000FFFFFFFF000000000000
0000000000FFFFFFFFFFFF0000000000
0000000000FFFFFFFFFFFF0000000000
0000000000FFFFFFFFFFFF0000000000
0000000000FFFFFFFFFFFF0000000000
0000000000FFFFFFFFFFFF0000000000
0000000000FFFFFFFFFFFFFF00000000
00000000FFFFFFFFFFFFFFFFFF000000
00000000FFFFFFFFFFFFFFFFFF000000
000000FFFFFFFFFFFFFFFFFFFFFF0000
000000FFFFFFFFFFFFFFFFFFFFFF0000
000000FFFFFFFFFFFFFFFFFFFFFF0000
00FFFFFFFFFFFFFFFFFFFFFFFFFF0000
00FFFFFFFFFFFFFFFFFFFFFFFFFFFF00
00FFFFFFFFFFFFFFFFFFFFFFFFFF0000
000000FFFFFFFFFFFFFFFFFFFF000000
</OS-BADGE-ICONS>
</CHRP-BOOT>

+ 1
- 0
target/tor/powerpc/oldworld-readme.txt

@ -0,0 +1 @@
For booting the ROCK Linux LiveCD on oldworld macs, currentlyonly BootX is support. Extract BootX-1.2.2.sit, and copy/boot/vmlinuxas kernel to load into the "Linux Kernels" Folder, and tell it to use/boot/initrd.gzas ramdisk to load (paths relative to the CD).You also need to add additional parameters to pass to the kernel:init=/linuxrc rwHave fun!

+ 18
- 0
target/tor/powerpc/yaboot.conf

@ -0,0 +1,18 @@
message=/boot/boot.msg
timeout = 120
default = livecd
## CD-ROM Installs ##
image=/boot/vmlinux
label=livecd
initrd=/boot/initrd.gz
initrd-size=8192
append="root=/dev/ram devfs=nocompat init=/linuxrc rw autoboot=1"
image=/boot/vmlinux
label=livecd-text
initrd=/boot/initrd.gz
initrd-size=8192
append="root=/dev/ram devfs=nocompat init=/linuxrc rw video=ofonly autoboot=1"

+ 23
- 0
target/tor/preconfig.in

@ -0,0 +1,23 @@
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
#
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
#
# ROCK Linux: rock-src/target/tor/preconfig.in
# ROCK Linux is Copyright (C) 1998 - 2007 Clifford Wolf
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. A copy of the GNU General Public
# License can be found at Documentation/COPYING.
#
# Many people helped and are helping developing ROCK Linux. Please
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
# file for details.
#
# --- ROCK-COPYRIGHT-NOTE-END ---
CFGTEMP_TARGETLIST="$CFGTEMP_TARGETLIST tor ROCKate_(The_ROCK_Tor_LiveCD)"

+ 46
- 0
target/tor/privoxy.init

@ -0,0 +1,46 @@
#!/bin/sh
#
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
#
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
#
# ROCK Linux: rock-src/target/tor/privoxy.init
# ROCK Linux is Copyright (C) 1998 - 2007 Clifford Wolf
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. A copy of the GNU General Public
# License can be found at Documentation/COPYING.
#
# Many people helped and are helping developing ROCK Linux. Please
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
# file for details.
#
# --- ROCK-COPYRIGHT-NOTE-END ---
#
# Desc: privoxy Proxy Daemon
# Runlevel: 99 rc3 rc4 rc5 rcX
#
#Usage: privoxy [--help] [--version] [--no-daemon] [--pidfile pidfile] [--user user[.group]] [configfile]
main_begin
block_begin(start, `Starting Privoxy Daemon')
mkdir -p /var/log/privoxy
touch /var/log/privoxy/logfile
touch /var/log/privoxy/jarfile
chown privoxy.privoxy /var/log/privoxy/logfile /var/log/privoxy/jarfile
chmod 664 /var/log/privoxy/logfile /var/log/privoxy/jarfile
check(`D_prefix/sbin/privoxy --pidfile /var/run/privoxy.pid --user privoxy.privoxy D_sysconfdir/config')
block_end
block_begin(stop, `Stopping Privoxy Daemon')
check(`kill -15 $( cat /var/run/privoxy.pid )')
block_end
main_end

+ 14
- 0
target/tor/sparc/boot.msg

@ -0,0 +1,14 @@
____ ___ ___ _ __ _
| _ \ / _ \ / __| |/ / | | _ _ __ _ _ _ _
| . _/| | | | | | '_/ | | |_| '_ \| | | | \/ |
| |\ \| |_| | |__| . \ | |__| | | | | `_' |> <
|_| \_\ ___/ \___|_|\_\ |____|_|_| |_|\___/|_/\_|
[============> http://www.rocklinux.org/ <============]
| L I V E CD |
+-------------+
Actions:
--------
<ENTER> Start live cd system

+ 28
- 0
target/tor/sparc/build.sh

@ -0,0 +1,28 @@
cd $disksdir
echo_header "Cleaning boot directory:"
rm -rfv boot/*-rock boot/System.map boot/kconfig* boot/initrd*img boot/*.b
echo_header "Creating silo setup:"
#
echo_status "Extracting silo boot loader images."
mkdir -p boot
tar --use-compress-program=bzip2 \
-xf $base/build/${ROCKCFG_ID}/ROCK/pkgs/silo.tar.bz2 \
boot/second.b -O > boot/second.b
#
echo_status "Creating silo config file."
cp -v $base/target/$target/sparc/{silo.conf,boot.msg} \
boot
#
echo_status "Moving image (initrd) to boot directory."
mv -v initrd.gz boot/
#
buildroot="build/${ROCKCFG_ID}"
datadir="build/${ROCKCFG_ID}/ROCK/livecd"
cat > ../isofs_arch.txt <<- EOT
BOOT -G $buildroot/boot/isofs.b -B ...
DISK1 $datadir/boot/ boot/
EOT

+ 16
- 0
target/tor/sparc/silo.conf

@ -0,0 +1,16 @@
partition=1
timeout=100
message=/boot/boot.msg
default=livecd
root=/dev/ram
initrd=/boot/initrd.gz
read-write
append="devfs=nocompat init=/linuxrc autoboot=1"
image[sun4u]=/boot/vmlinux64.gz
label=livecd
alias=linux
image[sun4c,sun4d,sun4m]=/boot/vmlinux.gz
label=livecd
alias=linux

+ 45
- 0
target/tor/tor.init

@ -0,0 +1,45 @@
#!/bin/sh
#
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
#
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
#
# ROCK Linux: rock-src/target/tor/tor.init
# ROCK Linux is Copyright (C) 1998 - 2007 Clifford Wolf
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. A copy of the GNU General Public
# License can be found at Documentation/COPYING.
#
# Many people helped and are helping developing ROCK Linux. Please
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
# file for details.
#
# --- ROCK-COPYRIGHT-NOTE-END ---
#
# Desc: The Onion Router (tor)
# Runlevel: 99 rc3 rc4 rc5 rcX
#
main_begin
block_begin(start, `Starting the onion router')
mkdir -p /var/lib/tor
cd /var/lib/tor
mkdir -p .tor
touch tor.pid
chown tor.tor . -R
chmod 775 . -R
check(`su - tor -c "D_prefix/bin/tor PIDFile ~tor/tor.pid RunAsDaemon 1"')
block_end
block_begin(stop, `Stopping the onion router')
check(`kill -15 $( cat ~tor/tor.pid )')
block_end
main_end

+ 26
- 0
target/tor/x86/build.sh

@ -0,0 +1,26 @@
syslinux_ver="`sed -n 's,.*syslinux-\(.*\).tar.*,\1,p' \
$base/target/livecd/$arch/download.txt`"
cd $disksdir
echo_header "Creating isolinux setup:"
#
echo_status "Extracting isolinux boot loader."
mkdir -p isolinux
tar --use-compress-program=bzip2 -xOf $base/download/mirror/s/syslinux-$syslinux_ver.tar.bz2 \
syslinux-$syslinux_ver/isolinux.bin > isolinux/isolinux.bin
#
echo_status "Creating isolinux config file."
cp $base/target/$target/x86/isolinux.cfg isolinux/
cp $base/target/$target/x86/help?.txt isolinux/
#
echo_status "Copy images to isolinux directory."
cp initrd.gz boot/vmlinuz isolinux/
#
cat > ../isofs_arch.txt <<- EOT
BOOT -b isolinux/isolinux.bin -c isolinux/boot.catalog
BOOTx -no-emul-boot -boot-load-size 4 -boot-info-table
DISK1 build/${ROCKCFG_ID}/ROCK/livecd/isolinux/ isolinux/
EOT

+ 1
- 0
target/tor/x86/download.txt

@ -0,0 +1 @@
454536525 syslinux-3.07.tar.bz2 http://www.kernel.org/pub/linux/utils/boot/syslinux/

+ 19
- 0
target/tor/x86/help0.txt

@ -0,0 +1,19 @@
____ ___ ____ _ __ _
| _ \ / _ \ / ___| |/ /__ _| |_ ___
| |_) | | | | | | ' // _` | __/ _ \
| _ <| |_| | |___| . \ (_| | || __/
|_| \_\\___/ \____|_|\_\__,_|\__\___|
[============> http://www.rocklinux.org/ <============]
| L I V E CD |
+-------------+ [F1=Overview] [F2=Options]
Actions:
--------
<ENTER> Start live cd system at 1024x786-16
livecd-1280 <Enter> Start live cd system at 1280x1024-16
livecd-800 <Enter> Start live cd system at 800x600-16
livecd-640 <Enter> Start live cd system at 640x480-16
livecd-text <Enter> Start live cd system in text mode
livecd options <Enter> Start with the given options

+ 15
- 0
target/tor/x86/help1.txt

@ -0,0 +1,15 @@
____ ___ ____ _ __ _
| _ \ / _ \ / ___| |/ /__ _| |_ ___
| |_) | | | | | | ' // _` | __/ _ \
| _ <| |_| | |___| . \ (_| | || __/
|_| \_\\___/ \____|_|\_\__,_|\__\___|
[============> http://www.rocklinux.org/ <============]
| L I V E CD |
+-------------+ [F1=Overview] [F2=Options]
Options:
--------
linuxrc_debug enable debug output from linuxrc and kernel
stage2init=<file> the program to exec after linuxrc finished

+ 32
- 0
target/tor/x86/isolinux.cfg

@ -0,0 +1,32 @@
DEFAULT livecd
TIMEOUT 600
PROMPT 1
DISPLAY help0.txt
F1 help0.txt
F2 help1.txt
LABEL livecd
kernel vmlinuz
APPEND initrd=initrd.gz root=/dev/ram devfs=nocompat init=/linuxrc video=vesa:ywrap,mtrr autoboot=1 vga=0x317 rw
LABEL livecd-1280
kernel vmlinuz
APPEND initrd=initrd.gz root=/dev/ram devfs=nocompat init=/linuxrc video=vesa:ywrap,mtrr autoboot=1 vga=0x31A rw
LABEL livecd-1024
kernel vmlinuz
APPEND initrd=initrd.gz root=/dev/ram devfs=nocompat init=/linuxrc video=vesa:ywrap,mtrr autoboot=1 vga=0x317 rw
LABEL livecd-800
kernel vmlinuz
APPEND initrd=initrd.gz root=/dev/ram devfs=nocompat init=/linuxrc video=vesa:ywrap,mtrr autoboot=1 vga=0x314 rw
LABEL livecd-640
kernel vmlinuz
APPEND initrd=initrd.gz root=/dev/ram devfs=nocompat init=/linuxrc video=vesa:ywrap,mtrr autoboot=1 vga=0x311 rw
LABEL livecd-text
kernel vmlinuz
APPEND initrd=initrd.gz root=/dev/ram devfs=nocompat init=/linuxrc autoboot=1 vga=0 rw

Loading…
Cancel
Save