Mercurial > vanilla
diff core/filesystem/filesystem.sh @ 516:014d018468fb
core: use new FHS
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 09 Apr 2019 20:22:00 +0200 |
parents | 36f3ab3945d7 |
children | bad483aace64 |
line wrap: on
line diff
--- a/core/filesystem/filesystem.sh Tue Apr 09 20:20:00 2019 +0200 +++ b/core/filesystem/filesystem.sh Tue Apr 09 20:22:00 2019 +0200 @@ -20,31 +20,28 @@ PKGREVISION=1 PKGLICENSE="ISC" PKGSUMMARY="base filesystem directories" -PKGDOWNLOAD="" build() { + install -d $DESTDIR/bin + install -d $DESTDIR/dev + install -d $DESTDIR/dev/pts install -d $DESTDIR/etc - install -d $DESTDOR/etc/rc.d + install -d $DESTDIR/etc/rc.d install -d $DESTDIR/home + install -d $DESTDIR/include + install -d $DESTDIR/lib install -d $DESTDIR/mnt install -d $DESTDIR/proc - install -d -m 0700 $DESTDIR/root + install -d $DESTDIR/root install -d $DESTDIR/run + install -d $DESTDIR/share + install -d $DESTDIR/share/man/man{1,2,3,4,5,6,7,8} + install -d $DESTDIR/src install -d $DESTDIR/sys - install -d $DESTDIR/dev/pts - - install -d $DESTDIR/usr/{bin,sbin,include,lib,share,src} - install -d $DESTDIR/usr/share/man/man{1,2,3,4,5,6,7,8} - - install -d $DESTDIR/var/{log,empty,run,spool} install -d $DESTDIR/var/lib/vpk - - install -d -m 1777 $DESTDIR/tmp - install -d -m 1777 $DESTDIR/var/tmp - - # in vanilla /bin, /sbin and /lib are symlinked to /usr - ln -sf usr/bin $DESTDIR/bin - ln -sf usr/lib $DESTDIR/lib - ln -sf usr/sbin $DESTDIR/sbin + install -d $DESTDIR/var/{log,empty,spool} + install -dm 1777 $DESTDIR/tmp + install -dm 1777 $DESTDIR/var/run + install -dm 1777 $DESTDIR/var/tmp }