1 # Description: Root filesystem package
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org
10 source=(issue motd shells group passwd shadow securetty fstab mime.types)
25 mkdir $PKG/lib/modules
30 mkdir $PKG/usr/{bin,include,lib,sbin,share,src,man}
31 mkdir $PKG/usr/man/man{1,2,3,4,5,6,7,8}
32 ln -s ../var $PKG/usr/var
36 mkdir $PKG/var/lib/pkg
39 mkdir $PKG/var/log/old
41 touch $PKG/var/run/utmp
43 mkdir $PKG/var/spool/mail
48 ln -s spool/mail $PKG/var/mail
51 chmod 1777 $PKG/var/spool/mail
53 chmod 1777 $PKG/var/lock
54 chmod 1777 $PKG/var/tmp
58 mknod $PKG/dev/console c 5 1
59 chmod 0600 $PKG/dev/console
70 cp mime.types $PKG/etc
72 chmod 640 $PKG/etc/shadow
75 cat > $PKG/usr/bin/crux << EOF
78 echo "CRUX version $version"
82 chmod 755 $PKG/usr/bin/crux