# $Id$ PNAME="base-files" PVER="0.3.1" PBUILD="r1" PCATEGORIE="sys-apps" DESCRIPTION="Basic dirs and files for mCore." HOMEPAGE="http://www.magellan-linux.de/" DEPEND="" PROVIDE="virtual/base-files" REMOVE_DEPRECATED_MAGE_TARGETS=1 sminclude mtools alx SRCFILE="" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" src_install() { install -d ${SRCDIR} cd ${SRCDIR} # creating fhs compat directories mkeepdir /bin || die mkeepdir /boot || die mkeepdir /dev || die mkeepdir /dev/shm || die mkeepdir /etc || die mkeepdir /etc/env.d || die mkeepdir /etc/rc.d/init.d || die mkeepdir /etc/rc.d/rcshutdown.d || die mkeepdir /etc/rc.d/rcboot.d || die mkeepdir /etc/rc.d/rcsysinit.d || die mkeepdir /home || die mkeepdir /lib || die mkeepdir /lib/dev-state || die mkeepdir /media || die mkeepdir /media/floppy || die mkeepdir /media/cdrom || die mkeepdir /mnt || die mkeepdir /mnt/floppy || die mkeepdir /mnt/cdrom || die mkeepdir /opt || die mkeepdir /proc || die mkeepdir /root || die mkeepdir /sbin || die mkeepdir /sys || die mkeepdir /tmp || die mkeepdir /usr || die mkeepdir /usr/bin || die mkeepdir /usr/lib || die mkeepdir /usr/sbin || die mkeepdir /usr/share || die mkeepdir /var || die mkeepdir /var/cache || die mkeepdir /var/lib || die mkeepdir /var/lib/misc || die mkeepdir /var/lib/locate || die mkeepdir /var/lock || die mkeepdir /var/log || die mkeepdir /var/run || die mkeepdir /var/spool || die mkeepdir /var/tmp || die # needed symlinks mlink rc.d/init.d /etc/init.d || die # compat symlinks for mlivecdbuild an co to handle MROOT right mlink rcboot.d /etc/rc.d/rc2.d || die mlink rcboot.d /etc/rc.d/rc3.d || die mlink rcboot.d /etc/rc.d/rc4.d || die mlink rcboot.d /etc/rc.d/rc5.d || die mlink rcshutdown.d /etc/rc.d/rc0.d || die mlink rcshutdown.d /etc/rc.d/rc1.d || die mlink rcshutdown.d /etc/rc.d/rc6.d || die # install framebuffer configs minstalldir /etc/modprobe.d || die mcinject uvesafb.conf /etc/modprobe.d/ || die mcinject viafb.conf /etc/modprobe.d/ || die mcinject i810fb.conf /etc/modprobe.d/ || die # these needs special rights mchmod 0750 /root || die mchmod 1777 /tmp || die mchmod 1777 /var/tmp || die # needed devices to boot a system mknod ${BINDIR}/dev/console c 5 1 || die mknod ${BINDIR}/dev/null c 1 3 || die # only to be safe and to have a log channel mknod ${BINDIR}/dev/tty c 5 0 || die # busybox needs this one mknod ${BINDIR}/dev/tty5 c 4 5 || die # splash-functions needs this one mknod ${BINDIR}/dev/fb0 c 29 0 || die } postinstall() { if [[ ! -c ${MROOT}/dev/console ]] then mknod ${MROOT}/dev/console c 5 1 fi if [[ ! -c ${MROOT}/dev/null ]] then mknod ${MROOT}/dev/null c 1 3 fi if [[ ! -c ${MROOT}/dev/tty ]] then mknod ${MROOT}/dev/tty c 5 0 fi if [[ ! -c ${MROOT}/dev/tty5 ]] then mknod ${MROOT}/dev/tty5 c 4 5 fi if [[ ! -c ${MROOT}/dev/fb0 ]] then mknod ${MROOT}/dev/fb0 c 29 0 fi alx_postinstall }