CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
filesystem: updated to 3.6
[ports/core-arm.git] / filesystem / Pkgfile
CommitLineData
919e5a16
VM
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 at crux-arm dot nu
5
6name=filesystem
ee8b4e01
VM
7version=3.6
8release=1
919e5a16
VM
9source=(issue motd shells group passwd shadow securetty fstab mime.types)
10
11build() {
4467fabf
VM
12 # Directory structure
13 install -d $PKG/bin
14 install -d $PKG/sbin
15 install -d $PKG/boot
16 install -d $PKG/dev
4b5b6178 17 install -d $PKG/dev/pts
4467fabf
VM
18 install -d $PKG/proc
19 install -d $PKG/sys
20 install -d $PKG/etc
21 install -d $PKG/mnt
22 install -d $PKG/run
b1b698f2 23 install -d $PKG/lib
4467fabf
VM
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,sbin,share,src}
30 install -d -p $PKG/usr/share/man/man{1,2,3,4,5,6,7,8}
31 ln -s ../var $PKG/usr/var
32 install -d $PKG/var
33 install -d $PKG/var/cache
34 install -d $PKG/var/lib
35 install -d $PKG/var/lib/pkg
36 install -d $PKG/var/log
37 install -d $PKG/var/log/old
38 install -d $PKG/var/run
39 touch $PKG/var/run/utmp
40 install -d $PKG/var/spool
41 install -d $PKG/var/ftp
42 install -d $PKG/var/www
43 install -d $PKG/var/empty
44 ln -s spool/mail $PKG/var/mail
45 install -d $PKG/home
919e5a16 46
4467fabf
VM
47 install -d -m 1777 $PKG/tmp
48 install -d -m 0750 $PKG/root
49 install -d -m 1777 $PKG/var/lock
50 install -d -m 1777 $PKG/var/spool/mail
51 install -d -m 1777 $PKG/var/tmp
4b5b6178 52 install -d -m 1777 $PKG/dev/shm
919e5a16 53
4467fabf
VM
54 # /dev
55 mknod $PKG/dev/console c 5 1
56 chmod 0600 $PKG/dev/console
919e5a16 57
4467fabf
VM
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
919e5a16 69
4467fabf
VM
70 # /usr/bin/crux
71 cat > $PKG/usr/bin/crux << EOF
919e5a16
VM
72#!/bin/sh
73
abe98db2 74echo "CRUX-ARM version $version"
919e5a16
VM
75
76# End of file
77EOF
4467fabf 78 chmod 755 $PKG/usr/bin/crux
919e5a16 79}