diff options
author | Johannes Winkelmann <jw@smts.ch> | 2006-02-23 15:26:10 +0000 |
---|---|---|
committer | Johannes Winkelmann <jw@smts.ch> | 2006-02-23 15:26:10 +0000 |
commit | e3afe2298e821d7f5860128720e665d8fb3bd641 (patch) | |
tree | bfb499432688352b1140b13ad8252c8e4e739006 /filesystem | |
download | core-e3afe2298e821d7f5860128720e665d8fb3bd641.tar.gz core-e3afe2298e821d7f5860128720e665d8fb3bd641.tar.xz |
create branch for 2.2
Diffstat (limited to 'filesystem')
-rw-r--r-- | filesystem/.footprint | 60 | ||||
-rw-r--r-- | filesystem/.md5sum | 9 | ||||
-rw-r--r-- | filesystem/Pkgfile | 81 | ||||
-rw-r--r-- | filesystem/fstab | 25 | ||||
-rw-r--r-- | filesystem/group | 16 | ||||
-rw-r--r-- | filesystem/issue | 3 | ||||
-rw-r--r-- | filesystem/mime.types | 84 | ||||
-rw-r--r-- | filesystem/motd | 0 | ||||
-rw-r--r-- | filesystem/passwd | 6 | ||||
-rw-r--r-- | filesystem/securetty | 14 | ||||
-rw-r--r-- | filesystem/shadow | 6 | ||||
-rw-r--r-- | filesystem/shells | 9 |
12 files changed, 313 insertions, 0 deletions
diff --git a/filesystem/.footprint b/filesystem/.footprint new file mode 100644 index 00000000..aa4b1703 --- /dev/null +++ b/filesystem/.footprint @@ -0,0 +1,60 @@ +drwxr-xr-x root/root bin/ +drwxr-xr-x root/root boot/ +drwxr-xr-x root/root dev/ +crw------- root/root dev/console (5, 1) +drwxr-xr-x root/root etc/ +-rw-r--r-- root/root etc/fstab +-rw-r--r-- root/root etc/group +-rw-r--r-- root/root etc/issue +-rw-r--r-- root/root etc/mime.types +-rw-r--r-- root/root etc/motd (EMPTY) +-rw-r--r-- root/root etc/mtab (EMPTY) +-rw-r--r-- root/root etc/passwd +-rw-r--r-- root/root etc/securetty +-rw-r----- root/root etc/shadow +-rw-r--r-- root/root etc/shells +drwxr-xr-x root/root home/ +drwxr-xr-x root/root lib/ +drwxr-xr-x root/root lib/modules/ +drwxr-xr-x root/root mnt/ +drwxr-xr-x root/root opt/ +drwxr-xr-x root/root opt/bin/ +drwxr-xr-x root/root proc/ +drwxr-x--- root/root root/ +drwxr-xr-x root/root sbin/ +drwxr-xr-x root/root sys/ +drwxrwxrwt root/root tmp/ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/crux +drwxr-xr-x root/root usr/include/ +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/man/ +drwxr-xr-x root/root usr/man/man1/ +drwxr-xr-x root/root usr/man/man2/ +drwxr-xr-x root/root usr/man/man3/ +drwxr-xr-x root/root usr/man/man4/ +drwxr-xr-x root/root usr/man/man5/ +drwxr-xr-x root/root usr/man/man6/ +drwxr-xr-x root/root usr/man/man7/ +drwxr-xr-x root/root usr/man/man8/ +drwxr-xr-x root/root usr/sbin/ +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/src/ +lrwxrwxrwx root/root usr/var -> ../var +drwxr-xr-x root/root var/ +drwxr-xr-x root/root var/cache/ +drwxr-xr-x root/root var/empty/ +drwxr-xr-x ftp/ftp var/ftp/ +drwxr-xr-x root/root var/lib/ +drwxr-xr-x root/root var/lib/pkg/ +drwxrwxrwt root/root var/lock/ +drwxr-xr-x root/root var/log/ +drwxr-xr-x root/root var/log/old/ +lrwxrwxrwx root/root var/mail -> spool/mail +drwxr-xr-x root/root var/run/ +-rw-r--r-- root/root var/run/utmp (EMPTY) +drwxr-xr-x root/root var/spool/ +drwxrwxrwt root/root var/spool/mail/ +drwxrwxrwt root/root var/tmp/ +drwxr-xr-x root/root var/www/ diff --git a/filesystem/.md5sum b/filesystem/.md5sum new file mode 100644 index 00000000..96826e8e --- /dev/null +++ b/filesystem/.md5sum @@ -0,0 +1,9 @@ +ae0ac5e40d0b7eccdc824d68e17df0f3 fstab +3ebcb005449f69c2ef58fd54b23125ba group +6cef6f5ab23244460cdf13c98e68b010 issue +346ede8d637940e2898cd29c56a37d30 mime.types +d41d8cd98f00b204e9800998ecf8427e motd +aa183b009b52291616573c8071db792a passwd +8b9a30490b731e26e3eb8bd74c018655 securetty +0034d284ea9b44efb750535ab3f15837 shadow +87f6864e24d24c8fb8718ed70269309c shells diff --git a/filesystem/Pkgfile b/filesystem/Pkgfile new file mode 100644 index 00000000..1113c0e9 --- /dev/null +++ b/filesystem/Pkgfile @@ -0,0 +1,81 @@ +# Description: Root filesystem package +# URL: http://crux.nu +# Maintainer: Per Lidén <per@fukt.bth.se> + +name=filesystem +version=2.1 +release=2 +source=(issue motd shells group passwd shadow securetty fstab mime.types) + +build() { + # Directory structure + 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/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 + + chown ftp.ftp $PKG/var/ftp + chmod 1777 $PKG/var/spool/mail + chmod 1777 $PKG/tmp + chmod 1777 $PKG/var/lock + chmod 1777 $PKG/var/tmp + chmod 0750 $PKG/root + + # /dev + mknod $PKG/dev/console c 5 1 + chmod 0600 $PKG/dev/console + + # /etc + 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 + + # /usr/bin/crux +cat > $PKG/usr/bin/crux << EOF +#!/bin/sh + +echo "CRUX version $version" + +# End of file +EOF + chmod 755 $PKG/usr/bin/crux +} diff --git a/filesystem/fstab b/filesystem/fstab new file mode 100644 index 00000000..d6727b3e --- /dev/null +++ b/filesystem/fstab @@ -0,0 +1,25 @@ +# +# /etc/fstab: static file system information +# +# <file system> <dir> <type> <options> <dump> <pass> + +#/dev/#REISERFS_ROOT# / reiserfs defaults 0 0 +#/dev/#EXT3FS_ROOT# / ext3 defaults 0 1 +#/dev/#JFS_ROOT# / jfs defaults 1 1 +#/dev/#XFS_ROOT# / xfs defaults 0 0 +#/dev/#SWAP# swap swap defaults 0 0 +#/dev/#REISERFS_HOME# /home reiserfs defaults 0 0 +#/dev/#EXT3FS_HOME# /home ext3 defaults 0 2 +#/dev/#JFS_HOME# /home jfs defaults 1 2 +#/dev/#XFS_HOME# /home xfs defaults 0 0 +#/dev/cdroms/cdrom0 /cdrom iso9660 ro,user,noauto,unhide 0 0 +#/dev/cdroms/cdrom0 /dvd udf ro,user,noauto,unhide 0 0 +#/dev/floppy/0 /floppy vfat user,noauto,unhide 0 0 +devpts /dev/pts devpts defaults 0 0 +sysfs /sys sysfs defaults 0 0 +proc /proc proc defaults 0 0 +#tmp /tmp tmpfs defaults 0 0 +#shm /dev/shm tmpfs defaults 0 0 +#usb /proc/bus/usb usbfs defaults 0 0 + +# End of file diff --git a/filesystem/group b/filesystem/group new file mode 100644 index 00000000..77acea55 --- /dev/null +++ b/filesystem/group @@ -0,0 +1,16 @@ +root::0:root +bin::1:root,bin,daemon +daemon::2:root,bin,daemon +sys::3:root,bin +adm::4:root,daemon +tty::5: +disk::6:root +lp::7:daemon +mem::8: +kmem::9: +wheel::10:root +ftp::11: +mail::12: +slocate::13: +nobody::99: +users::100: diff --git a/filesystem/issue b/filesystem/issue new file mode 100644 index 00000000..99524d44 --- /dev/null +++ b/filesystem/issue @@ -0,0 +1,3 @@ + +CRUX (\n) (\l) + diff --git a/filesystem/mime.types b/filesystem/mime.types new file mode 100644 index 00000000..6b97c3f7 --- /dev/null +++ b/filesystem/mime.types @@ -0,0 +1,84 @@ +# +# /etc/mime.types: mime types +# + +application/andrew-inset ez +application/excel xls +application/octet-stream bin +application/oda oda +application/pdf pdf +application/pgp pgp +application/postscript ps PS eps +application/rtf rtf +application/x-arj-compressed arj +application/x-bcpio bcpio +application/x-chess-pgn pgn +application/x-cpio cpio +application/x-csh csh +application/x-debian-package deb +application/x-msdos-program com exe bat +application/x-dvi dvi +application/x-gtar gtar +application/x-gunzip gz +application/x-hdf hdf +application/x-latex latex +application/x-mif mif +application/x-netcdf cdf nc +application/x-perl pl pm +application/x-rar-compressed rar +application/x-sh sh +application/x-shar shar +application/x-sv4cpio sv4cpio +application/x-sv4crc sv4crc +application/x-tar tar +application/x-tar-gz tgz tar.gz +application/x-tcl tcl +application/x-tex tex +application/x-texinfo texi texinfo +application/x-troff t tr roff +application/x-troff-man man +application/x-troff-me me +application/x-troff-ms ms +application/x-ustar ustar +application/x-wais-source src +application/x-zip-compressed zip + +audio/basic snd +audio/midi mid midi +audio/ulaw au +audio/x-aiff aif aifc aiff +audio/x-wav wav + +image/gif gif +image/ief ief +image/jpeg jpe jpeg jpg +image/png png +image/tiff tif tiff +image/x-cmu-raster ras +image/x-portable-anymap pnm +image/x-portable-bitmap pbm +image/x-portable-graymap pgm +image/x-portable-pixmap ppm +image/x-rgb rgb +image/x-xbitmap xbm +image/x-xpixmap xpm +image/x-xwindowdump xwd + +text/html html htm +text/plain asc txt +text/css css +text/richtext rtx +text/tab-separated-values tsv +text/x-setext etx + +video/dl dl +video/fli fli +video/gl gl +video/mpeg mp2 mpe mpeg mpg +video/quicktime mov qt +video/x-msvideo avi +video/x-sgi-movie movie + +x-world/x-vrml vrm vrml wrl + +# End of file diff --git a/filesystem/motd b/filesystem/motd new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/filesystem/motd diff --git a/filesystem/passwd b/filesystem/passwd new file mode 100644 index 00000000..b3394067 --- /dev/null +++ b/filesystem/passwd @@ -0,0 +1,6 @@ +root:x:0:0:root:/root:/bin/bash +bin:x:1:1:bin:/bin: +daemon:x:2:2:daemon:/sbin: +mail:x:8:12:mail:/var/spool/mail: +ftp:x:14:11:ftp:/var/ftp: +nobody:x:99:99:nobody:/: diff --git a/filesystem/securetty b/filesystem/securetty new file mode 100644 index 00000000..07f8a616 --- /dev/null +++ b/filesystem/securetty @@ -0,0 +1,14 @@ +# +# /etc/securetty: defines which devices root can log in on +# + +console +tts/0 +vc/1 +vc/2 +vc/3 +vc/4 +vc/5 +vc/6 + +# End of file diff --git a/filesystem/shadow b/filesystem/shadow new file mode 100644 index 00000000..56ecb2d5 --- /dev/null +++ b/filesystem/shadow @@ -0,0 +1,6 @@ +root::0:::::: +bin:x:0:::::: +daemon:x:0:::::: +mail:x:0:::::: +ftp:x:0:::::: +nobody:x:0:::::: diff --git a/filesystem/shells b/filesystem/shells new file mode 100644 index 00000000..85e9c61b --- /dev/null +++ b/filesystem/shells @@ -0,0 +1,9 @@ +# +# /etc/shells: defines valid login shells +# + +/bin/sh +/bin/bash +/bin/tcsh + +# End of file |