CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Merged changes from noeabi (72cbd18e791bd2edff0e8d23873136187f0cd936)
[crossrootfs.git] / filesystem / Pkgfile
... / ...
CommitLineData
1# Description: Root filesystem package
2# URL: http://crux.nu
3# Maintainer: CRUX System Team, core-ports at crux dot nu
4# Arch Maintainer: CRUX-ARM System Team, devel@crux-arm.nu
5# Depends on:
6
7name=filesystem
8version=2.6
9release=4
10source=(issue motd shells group passwd shadow securetty fstab mime.types)
11
12build() {
13 # Directory structure
14 mkdir $PKG/bin
15 mkdir $PKG/sbin
16 mkdir $PKG/boot
17 mkdir $PKG/dev
18 mkdir $PKG/proc
19 mkdir $PKG/sys
20 mkdir $PKG/etc
21 mkdir $PKG/tmp
22 mkdir $PKG/mnt
23 mkdir $PKG/root
24 mkdir $PKG/lib
25 mkdir $PKG/lib/modules
26 mkdir $PKG/opt
27 mkdir $PKG/opt/bin
28 mkdir $PKG/opt/sbin
29 mkdir $PKG/usr
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
33 mkdir $PKG/var
34 mkdir $PKG/var/cache
35 mkdir $PKG/var/lib
36 mkdir $PKG/var/lib/pkg
37 mkdir $PKG/var/lock
38 mkdir $PKG/var/log
39 mkdir $PKG/var/log/old
40 mkdir $PKG/var/run
41 touch $PKG/var/run/utmp
42 mkdir $PKG/var/spool
43 mkdir $PKG/var/spool/mail
44 mkdir $PKG/var/tmp
45 mkdir $PKG/var/ftp
46 mkdir $PKG/var/www
47 mkdir $PKG/var/empty
48 ln -s spool/mail $PKG/var/mail
49 mkdir $PKG/home
50
51 chmod 1777 $PKG/var/spool/mail
52 chmod 1777 $PKG/tmp
53 chmod 1777 $PKG/var/lock
54 chmod 1777 $PKG/var/tmp
55 chmod 0750 $PKG/root
56
57 # /dev
58 mknod $PKG/dev/console c 5 1
59 chmod 0600 $PKG/dev/console
60
61 # /etc
62 cp issue $PKG/etc
63 cp motd $PKG/etc
64 cp shells $PKG/etc
65 cp group $PKG/etc
66 cp passwd $PKG/etc
67 cp shadow $PKG/etc
68 cp securetty $PKG/etc
69 cp fstab $PKG/etc
70 cp mime.types $PKG/etc
71 touch $PKG/etc/mtab
72 chmod 640 $PKG/etc/shadow
73
74 # /usr/bin/crux
75cat > $PKG/usr/bin/crux << EOF
76#!/bin/sh
77
78echo "CRUX version $version"
79
80# End of file
81EOF
82 chmod 755 $PKG/usr/bin/crux
83}