# $Id$ PNAME="toolchain-mcore" PVER="0.2" PBUILD="r1" PCATEGORIE="fake" STATE="unstable" PKGTYPE="virtual" NOPKGBUILD=true DESCRIPTION="mCore toolchain - basic packages to install Magellan." HOMEPAGE="http://www.magellan-linux.net/" DEPEND=">= virtual/base-files >= virtual/debianutils >= sys-apps/coreutils-8.9 >= sys-apps/util-linux-2.18 >= sys-apps/diffutils-3.0 >= sys-apps/findutils-4.4 >= sys-apps/gawk-3.1 >= virtual/grep >= virtual/sed >= virtual/bzip2 >= virtual/gzip >= virtual/tar >= virtual/wget >= net-misc/rsync-3.0.7 >= app-shells/bash-4.1 >= app-mage/mage-0.4.23" sminclude mcore 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 if [ -x ${MROOT}/bin/busybox ] then echo "Setting suid bit for ${MROOT}/bin/busybox" chmod +s ${MROOT}/bin/busybox fi if [ -f ${MROOT}/usr/share/busybox/busybox.links ] then echo "Setting up busybox links ... " local i for i in $(< ${MROOT}/usr/share/busybox/busybox.links) do ln -snf /bin/busybox ${MROOT}/${i} done fi }