CRUX-ARM : Home

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