# $Id$ PNAME="toolchain" PVER="0.2.92" PBUILD="r2" PCAT="fake" PKGTYPE="virtual" DESCRIPTION="Mage toolchain - basic packages to install Magellan." HOMEPAGE="http://www.magellan-linux.net/" DEPEND=">= virtual/base-files >= virtual/debianutils >= sys-apps/coreutils-8.20 >= sys-apps/util-linux-2.22 >= sys-apps/diffutils-3.2 >= sys-apps/findutils-4.4 >= sys-apps/gawk-4 >= virtual/grep >= virtual/sed >= virtual/bzip2 >= virtual/gzip >= virtual/tar >= virtual/wget >= net-misc/rsync-3.0.9 >= app-shells/bash-4.2 >= app-mage/mage-0.4.92" sminclude alx 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 }