# Description: Root filesystem package # URL: http://crux.nu # Maintainer: CRUX System Team, core-ports at crux dot nu # Arch Maintainer: CRUX ARM System Team # Depends on: name=filesystem version=2.5 release=5 source=(issue motd shells group passwd shadow securetty fstab mime.types) build() { # Directory structure install -d $PKG/{bin,sbin,boot,dev,proc,sys,etc,tmp,mnt,root,lib/modules,home} install -d $PKG/{opt/bin,opt/sbin,usr/{bin,include,lib,sbin,share,src,man}} install -d $PKG/usr/man/man{1,2,3,4,5,6,7,8} ln -s ../var $PKG/usr/var install -d $PKG/var/{cache,lib/pkg,lock,log/old,run,spool/mail,ftp,www,empty} touch $PKG/var/run/utmp ln -s ../tmp $PKG/var/tmp ln -s spool/mail $PKG/var/mail chmod 1777 $PKG/var/spool/mail chmod 1777 $PKG/tmp chmod 1777 $PKG/var/lock chmod 0750 $PKG/root # /dev mknod $PKG/dev/console c 5 1 chmod 0600 $PKG/dev/console # /etc install -m 0644 issue $PKG/etc install -m 0644 motd $PKG/etc install -m 0644 shells $PKG/etc install -m 0644 group $PKG/etc install -m 0644 passwd $PKG/etc install -m 0640 shadow $PKG/etc install -m 0644 securetty $PKG/etc install -m 0644 fstab $PKG/etc install -m 0644 mime.types $PKG/etc touch $PKG/etc/mtab chmod 0640 $PKG/etc/shadow # /usr/bin/crux cat > $PKG/usr/bin/crux << EOF #!/bin/sh echo "CRUX-ARM version $version" # End of file EOF chmod 0755 $PKG/usr/bin/crux }