# $Header: /magellan-cvs/smage/toolchain/toolchain-0.3-r1.smage2,v 1.1 2008/08/17 17:28:59 niro Exp $ PNAME="toolchain" PVER="0.3" PBUILD="r1" PCATEGORIE="fake" STATE="unstable" PKGTYPE="virtual" NOPKGBUILD=true DESCRIPTION="Magellan toolchain - basic packages to install Magellan." HOMEPAGE="http://www.magellan-linux.net/" DEPEND=">= sys-apps/base-files-0.3 >= sys-apps/debianutils-2.28 >= sys-apps/coreutils-6.10 >= sys-apps/util-linux-2.13 >= sys-apps/diffutils-2.8.7 >= sys-apps/findutils-4 >= sys-apps/gawk-3.1 >= sys-apps/grep-2.5.3 >= sys-apps/sed-4 >= app-arch/bzip2-1.0.4 >= app-arch/gzip-1.3.12 >= sys-apps/tar-1.19 >= sys-apps/file-4 >= sys-dev/libtool-1.5 >= net-misc/wget-1.11 >= net-misc/rsync-3 >= app-shells/bash-3.2 >= app-mage/mage-0.4.9" src_install() { echo echo "This is only a fake smage2 for ${PNAME}-${PVER}-${PBUILD}." echo "No Package will be build." echo } postinstall() { if [ ! -f ${MROOT}/etc/passwd ] then echo "Creating a basic passwd file ..." echo 'root:x:0:0:root:/root:/bin/bash' > ${MROOT}/etc/passwd fi if [ ! -f ${MROOT}/etc/group ] then echo "Creating a basic groups file ..." cat > ${MROOT}/etc/group << "EOF" root:x:0: bin:x:1: sys:x:2: kmem:x:3: tty:x:4: tape:x:5: daemon:x:6: floppy:x:7: disk:x:8: lp:x:9: dialout:x:10: audio:x:11: EOF fi if [ ! -e ${MROOT}/dev/console ] || [ ! -e ${MROOT}/dev/null ] || [ ! -e ${MROOT}/dev/tty1 ] then echo "Creating basic devices needed for devfs/udev ..." mknod -m 611 ${MROOT}/dev/console c 5 1 chgrp 4 ${MROOT}/dev/console mknod -m 666 ${MROOT}/dev/null c 1 3 mknod ${MROOT}/dev/tty1 c 4 1 chgrp 4 ${MROOT}/dev/tty1 fi }