summaryrefslogtreecommitdiffstats
path: root/filesystem/Pkgfile
diff options
context:
space:
mode:
authorLukc <lukc@upyum.com>2010-12-11 19:15:23 +0100
committerLukc <lukc@upyum.com>2010-12-11 19:15:35 +0100
commit6d908a38e05b9d4135c65d23114a5874215b5bb8 (patch)
treeb5e6da6d95b9a1235d82032b509b80483a886ff5 /filesystem/Pkgfile
downloadbase-6d908a38e05b9d4135c65d23114a5874215b5bb8.tar.gz
base-6d908a38e05b9d4135c65d23114a5874215b5bb8.tar.bz2
base-6d908a38e05b9d4135c65d23114a5874215b5bb8.tar.xz
base-6d908a38e05b9d4135c65d23114a5874215b5bb8.zip
Engagement initial.
Diffstat (limited to 'filesystem/Pkgfile')
-rw-r--r--filesystem/Pkgfile76
1 files changed, 76 insertions, 0 deletions
diff --git a/filesystem/Pkgfile b/filesystem/Pkgfile
new file mode 100644
index 0000000..a5075ec
--- /dev/null
+++ b/filesystem/Pkgfile
@@ -0,0 +1,76 @@
+description="Root filesystem package"
+packager=""
+maintainer="CRUX System Team, core-ports at crux dot nu"
+url="http://crux.nu"
+depends=()
+
+name=filesystem
+version=2.7
+release=1
+source=(issue motd shells group passwd shadow securetty fstab mime.types)
+build ()
+{
+ mkdir $PKG/bin;
+ mkdir $PKG/sbin;
+ mkdir $PKG/boot;
+ mkdir $PKG/dev;
+ mkdir $PKG/proc;
+ mkdir $PKG/sys;
+ mkdir $PKG/etc;
+ mkdir $PKG/tmp;
+ mkdir $PKG/mnt;
+ mkdir $PKG/root;
+ mkdir $PKG/lib;
+ mkdir $PKG/lib/modules;
+ mkdir $PKG/opt;
+ mkdir $PKG/opt/bin;
+ mkdir $PKG/opt/sbin;
+ mkdir $PKG/usr;
+ mkdir $PKG/usr/{bin,include,lib,sbin,share,src,man};
+ mkdir $PKG/usr/man/man{1,2,3,4,5,6,7,8};
+ ln -s ../var $PKG/usr/var;
+ mkdir $PKG/var;
+ mkdir $PKG/var/cache;
+ mkdir $PKG/var/lib;
+ mkdir $PKG/var/lib/pkg;
+ mkdir $PKG/var/lock;
+ mkdir $PKG/var/log;
+ mkdir $PKG/var/log/old;
+ mkdir $PKG/var/run;
+ touch $PKG/var/run/utmp;
+ mkdir $PKG/var/spool;
+ mkdir $PKG/var/spool/mail;
+ mkdir $PKG/var/tmp;
+ mkdir $PKG/var/ftp;
+ mkdir $PKG/var/www;
+ mkdir $PKG/var/empty;
+ ln -s spool/mail $PKG/var/mail;
+ mkdir $PKG/home;
+ chmod 1777 $PKG/var/spool/mail;
+ chmod 1777 $PKG/tmp;
+ chmod 1777 $PKG/var/lock;
+ chmod 1777 $PKG/var/tmp;
+ chmod 0750 $PKG/root;
+ mknod $PKG/dev/console c 5 1;
+ chmod 0600 $PKG/dev/console;
+ cp issue $PKG/etc;
+ cp motd $PKG/etc;
+ cp shells $PKG/etc;
+ cp group $PKG/etc;
+ cp passwd $PKG/etc;
+ cp shadow $PKG/etc;
+ cp securetty $PKG/etc;
+ cp fstab $PKG/etc;
+ cp mime.types $PKG/etc;
+ touch $PKG/etc/mtab;
+ chmod 640 $PKG/etc/shadow;
+ cat > $PKG/usr/bin/crux <<EOF
+#!/bin/sh
+
+echo "CRUX version $version"
+
+# End of file
+EOF
+
+ chmod 755 $PKG/usr/bin/crux
+}