comparison core/filesystem/filesystem.sh @ 136:e737b80da269

core: merge .sh and .info
author David Demelier <markand@malikania.fr>
date Mon, 11 Mar 2019 14:59:13 +0100
parents 6b530ef31a4a
children 36f3ab3945d7
comparison
equal deleted inserted replaced
135:3565bfc4a451 136:e737b80da269
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 # 16 #
17 17
18 source ./filesystem.info 18 PKGNAME=filesystem
19 PKGVERSION=0.1
20 PKGREVISION=1
21 PKGLICENSE="ISC"
22 PKGSUMMARY="base filesystem directories"
23 PKGDOWNLOAD=""
19 24
20 set -ex 25 build()
26 {
27 install -d $DESTDIR/etc
28 install -d $DESTDIR/home
29 install -d $DESTDIR/mnt
30 install -d $DESTDIR/proc
31 install -d -m 0700 $DESTDIR/root
32 install -d $DESTDIR/run
33 install -d $DESTDIR/sys
34 install -d $DESTDIR/dev/pts
21 35
22 install -d $DESTDIR/etc 36 install -d $DESTDIR/usr/{bin,sbin,include,lib,share,src}
23 install -d $DESTDIR/home 37 install -d $DESTDIR/usr/share/man/man{1,2,3,4,5,6,7,8}
24 install -d $DESTDIR/mnt
25 install -d $DESTDIR/proc
26 install -d -m 0700 $DESTDIR/root
27 install -d $DESTDIR/run
28 install -d $DESTDIR/sys
29 install -d $DESTDIR/dev/pts
30 38
31 install -d $DESTDIR/usr/{bin,sbin,include,lib,share,src} 39 install -d $DESTDIR/var/{log,empty,run,spool}
32 install -d $DESTDIR/usr/share/man/man{1,2,3,4,5,6,7,8} 40 install -d $DESTDIR/var/lib/vpk
33 41
34 install -d $DESTDIR/var/{log,empty,run,spool} 42 install -d -m 1777 $DESTDIR/tmp
35 install -d $DESTDIR/var/lib/vpk 43 install -d -m 1777 $DESTDIR/var/tmp
36 44
37 install -d -m 1777 $DESTDIR/tmp 45 # in vanilla /bin, /sbin and /lib are symlinked to /usr
38 install -d -m 1777 $DESTDIR/var/tmp 46 ln -sf usr/bin $DESTDIR/bin
39 47 ln -sf usr/lib $DESTDIR/lib
40 # in vanilla /bin, /sbin and /lib are symlinked to /usr 48 ln -sf usr/sbin $DESTDIR/sbin
41 ln -sf usr/bin $DESTDIR/bin 49 }
42 ln -sf usr/lib $DESTDIR/lib
43 ln -sf usr/sbin $DESTDIR/sbin