CRUX-ARM : Home

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