1 # Description: Root filesystem package
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
10 source=(issue motd shells group passwd shadow securetty fstab mime.types)
26 mkdir $PKG/lib/modules
31 mkdir $PKG/usr/{bin,include,lib,sbin,share,src,man}
32 mkdir $PKG/usr/man/man{1,2,3,4,5,6,7,8}
33 ln -s ../var $PKG/usr/var
37 mkdir $PKG/var/lib/pkg
40 mkdir $PKG/var/log/old
42 touch $PKG/var/run/utmp
44 mkdir $PKG/var/spool/mail
49 ln -s spool/mail $PKG/var/mail
52 chmod 1777 $PKG/var/spool/mail
54 chmod 1777 $PKG/var/lock
55 chmod 1777 $PKG/var/tmp
59 mknod $PKG/dev/console c 5 1
60 chmod 0600 $PKG/dev/console
71 cp mime.types $PKG/etc
72 ln -s /proc/self/mounts $PKG/etc/mtab
73 chmod 640 $PKG/etc/shadow
76 cat > $PKG/usr/bin/crux << EOF
79 echo "CRUX-ARM version $version"
83 chmod 755 $PKG/usr/bin/crux