diff options
author | Cem Keylan <cem@ckyln.com> | 2020-05-19 12:10:55 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-05-19 12:10:55 +0300 |
commit | 26426c5dc818906b0f463095c8964b141def0069 (patch) | |
tree | cd0cf97bef67e5fb5826db1489af85dcfc89ab62 | |
parent | 3d915159c888adafabe5703fd0a044c99703838f (diff) | |
download | repository-26426c5dc818906b0f463095c8964b141def0069.tar.gz |
baselayout: remove lib64 from i686
-rwxr-xr-x | i686/baselayout/build | 58 | ||||
l--------- | i686/baselayout/checksums | 1 | ||||
l--------- | i686/baselayout/depends | 1 | ||||
l--------- | i686/baselayout/files | 1 | ||||
l--------- | i686/baselayout/sources | 1 | ||||
l--------- | i686/baselayout/version | 1 |
6 files changed, 63 insertions, 0 deletions
diff --git a/i686/baselayout/build b/i686/baselayout/build new file mode 100755 index 00000000..d55fcefa --- /dev/null +++ b/i686/baselayout/build @@ -0,0 +1,58 @@ +#!/bin/sh -e + +# Setup base directories. +for d in boot dev etc home mnt usr var opt run; do + install -dm 755 "$1/$d" +done + +install -dm 555 "$1/proc" +install -dm 555 "$1/sys" +install -dm 0750 "$1/root" +install -dm 1777 "$1/tmp" + +# Setup /usr hierarchy. +for d in bin include lib lib32 share src; do + install -d -m755 "$1"/usr/"$d" +done + +# Setup manpages directories. +for d in 1 2 3 4 5 6 7 8; do + install -dm 755 "$1/usr/share/man/man$d" +done + +# Add symlinks. +ln -s usr/bin "$1/bin" +ln -s usr/bin "$1/sbin" +ln -s bin "$1/usr/sbin" +ln -s usr/lib "$1/lib" + +# Setup /var. +for d in cache local opt log/old lib/misc empty service; do + install -dm 755 "$1/var/$d" +done + +install -dm 1777 "$1/var/tmp" +install -dm 1777 "$1/var/spool/mail" + +ln -s spool/mail "$1/var/mail" +ln -s ../run "$1/var/run" +ln -s ../run/lock "$1/var/lock" + +# Setup /usr/local (usually for any programs installed outside package manager). +for d in bin etc games include lib man sbin share src; do + install -dm 755 "$1/usr/local/$d" +done + +ln -s ../man "$1/usr/local/share/man" + +# /etc skeleton files. +for f in fstab group host.conf hosts issue keymap os-release \ + passwd profile securetty shells mime.types; do + install -m 644 "$f" "$1/etc" +done + +for f in crypttab shadow; do + install -m 600 "$f" "$1/etc" +done + +ln -s /proc/self/mounts "$1/etc/mtab" diff --git a/i686/baselayout/checksums b/i686/baselayout/checksums new file mode 120000 index 00000000..3eb1cec0 --- /dev/null +++ b/i686/baselayout/checksums @@ -0,0 +1 @@ +../../core/baselayout/checksums
\ No newline at end of file diff --git a/i686/baselayout/depends b/i686/baselayout/depends new file mode 120000 index 00000000..043fe746 --- /dev/null +++ b/i686/baselayout/depends @@ -0,0 +1 @@ +../../core/baselayout/depends
\ No newline at end of file diff --git a/i686/baselayout/files b/i686/baselayout/files new file mode 120000 index 00000000..d86c4847 --- /dev/null +++ b/i686/baselayout/files @@ -0,0 +1 @@ +../../core/baselayout/files
\ No newline at end of file diff --git a/i686/baselayout/sources b/i686/baselayout/sources new file mode 120000 index 00000000..fec74193 --- /dev/null +++ b/i686/baselayout/sources @@ -0,0 +1 @@ +../../core/baselayout/sources
\ No newline at end of file diff --git a/i686/baselayout/version b/i686/baselayout/version new file mode 120000 index 00000000..e5ba997a --- /dev/null +++ b/i686/baselayout/version @@ -0,0 +1 @@ +../../core/baselayout/version
\ No newline at end of file |