diff --git a/pkg.info b/pkg.info index d544ee1..c250908 100644 --- a/pkg.info +++ b/pkg.info @@ -1,5 +1,6 @@ name: filesystem description: The Tide Linux filesystem -version: 1.2 +version: 1.3 architecture: any +keep: ["etc/hosts","etc/hostname","etc/group","etc/passwd","etc/gshadow","etc/shadow","etc/nsswitch.conf","etc/shells"] type: source diff --git a/source-files/os-release b/source-files/os-release index a9cfaf2..98dc230 100644 --- a/source-files/os-release +++ b/source-files/os-release @@ -1,4 +1,4 @@ -PRETTY_NAME="Tide Linux 0.4 (Alpha)" +PRETTY_NAME="Tide Linux 0.5 (Alpha)" NAME="Tide Linux" -VERSION="0.4" +VERSION="0.5" ID=tide diff --git a/source-files/tide_linux_logo.png b/source-files/tide_linux_logo.png new file mode 100644 index 0000000..508b64d Binary files /dev/null and b/source-files/tide_linux_logo.png differ diff --git a/source.sh b/source.sh index 48a511a..5f392a8 100644 --- a/source.sh +++ b/source.sh @@ -5,38 +5,36 @@ # The package function is executed in the source directory # This function is used to move the compiled files into the output directory package() { - mkdir -p "$BPM_OUTPUT"/etc - mkdir -p "$BPM_OUTPUT"/var - mkdir -p "$BPM_OUTPUT"/usr - mkdir -p "$BPM_OUTPUT"/dev - mkdir -p "$BPM_OUTPUT"/proc - mkdir -p "$BPM_OUTPUT"/sys - mkdir -p "$BPM_OUTPUT"/run - mkdir -p "$BPM_OUTPUT"/tmp - mkdir -p "$BPM_OUTPUT"/boot - mkdir -p "$BPM_OUTPUT"/opt - mkdir -p "$BPM_OUTPUT"/srv - mkdir -p "$BPM_OUTPUT"/mnt - mkdir -p "$BPM_OUTPUT"/home + install -dm755 "$BPM_OUTPUT"/etc + install -dm755 "$BPM_OUTPUT"/var + install -dm755 "$BPM_OUTPUT"/usr + install -dm755 "$BPM_OUTPUT"/dev + install -dm755 "$BPM_OUTPUT"/proc + install -dm755 "$BPM_OUTPUT"/sys + install -dm755 "$BPM_OUTPUT"/run + install -dm755 "$BPM_OUTPUT"/tmp + install -dm755 "$BPM_OUTPUT"/boot + install -dm755 "$BPM_OUTPUT"/opt + install -dm755 "$BPM_OUTPUT"/srv + install -dm755 "$BPM_OUTPUT"/mnt + install -dm755 "$BPM_OUTPUT"/home - mkdir -p "$BPM_OUTPUT"/etc/{opt,sysconfig} - mkdir -p "$BPM_OUTPUT"/usr/lib/firmware - mkdir -p "$BPM_OUTPUT"/media/{floppy,cdrom} - mkdir -p "$BPM_OUTPUT"/usr/{,local/}{include,src} - mkdir -p "$BPM_OUTPUT"/usr/{,local/}{bin,lib,lib64,sbin} - mkdir -p "$BPM_OUTPUT"/usr/{,local/}share/{color,dict,doc,info,locale,man} - mkdir -p "$BPM_OUTPUT"/usr/{,local/}share/{misc,terminfo,zoneinfo} - mkdir -p "$BPM_OUTPUT"/usr/{,local/}share/man/man{1..8} - mkdir -p "$BPM_OUTPUT"/var/{cache,local,log,mail,opt,spool} - mkdir -p "$BPM_OUTPUT"/var/lib/{color,misc,locate} + install -dm755 "$BPM_OUTPUT"/usr/lib/firmware + install -dm755 "$BPM_OUTPUT"/usr/{,local/}{include,src} + install -dm755 "$BPM_OUTPUT"/usr/{,local/}{bin,lib,sbin} + install -dm755 "$BPM_OUTPUT"/lib64 + install -dm755 "$BPM_OUTPUT"/usr/{,local/}share/{color,dict,doc,info,locale,man} + install -dm755 "$BPM_OUTPUT"/usr/{,local/}share/{misc,terminfo,zoneinfo} + install -dm755 "$BPM_OUTPUT"/usr/{,local/}share/man/man{1..8} + install -dm755 "$BPM_OUTPUT"/var/{cache,local,log,mail,opt,spool} + install -dm755 "$BPM_OUTPUT"/var/lib/{color,misc,locate} - install -d -m 0750 "$BPM_OUTPUT"/root - install -d -m 1777 /tmp "$BPM_OUTPUT"/var/tmp + install -dm750 "$BPM_OUTPUT"/root + install -dm1777 /tmp "$BPM_OUTPUT"/var/tmp ln -s usr/bin "$BPM_OUTPUT"/bin ln -s usr/sbin "$BPM_OUTPUT"/sbin ln -s usr/lib "$BPM_OUTPUT"/lib - ln -s usr/lib64 "$BPM_OUTPUT"/lib64 ln -s /proc/self/mounts "$BPM_OUTPUT"/etc/mtab ln -s /run "$BPM_OUTPUT"/var/run ln -s /run/lock "$BPM_OUTPUT"/var/lock @@ -44,18 +42,22 @@ package() { touch "$BPM_OUTPUT"/var/log/{btmp,lastlog,faillog,wtmp} chgrp utmp "$BPM_OUTPUT"/var/log/lastlog - chmod 664 "$BPM_OUTPUT"/var/log/lastlog - chmod 600 "$BPM_OUTPUT"/var/log/btmp + chmod 664 "$BPM_OUTPUT"/var/log/lastlog + chmod 600 "$BPM_OUTPUT"/var/log/btmp - cp "$BPM_WORKDIR"/hosts "$BPM_OUTPUT"/etc/hosts - cp "$BPM_WORKDIR"/group "$BPM_OUTPUT"/etc/group - cp "$BPM_WORKDIR"/passwd "$BPM_OUTPUT"/etc/passwd - cp "$BPM_WORKDIR"/gshadow "$BPM_OUTPUT"/etc/gshadow - cp "$BPM_WORKDIR"/shadow "$BPM_OUTPUT"/etc/shadow - cp "$BPM_WORKDIR"/nsswitch.conf "$BPM_OUTPUT"/etc/nsswitch.conf - cp "$BPM_WORKDIR"/os-release "$BPM_OUTPUT"/etc/os-release - cp "$BPM_WORKDIR"/lsb-release "$BPM_OUTPUT"/etc/lsb-release - cp "$BPM_WORKDIR"/shells "$BPM_OUTPUT"/etc/shells + install -Dm644 "$BPM_WORKDIR"/hosts "$BPM_OUTPUT"/etc/hosts + install -Dm644 "$BPM_WORKDIR"/group "$BPM_OUTPUT"/etc/group + install -Dm644 "$BPM_WORKDIR"/passwd "$BPM_OUTPUT"/etc/passwd + install -Dm644 "$BPM_WORKDIR"/gshadow "$BPM_OUTPUT"/etc/gshadow + install -Dm644 "$BPM_WORKDIR"/shadow "$BPM_OUTPUT"/etc/shadow + install -Dm644 "$BPM_WORKDIR"/nsswitch.conf "$BPM_OUTPUT"/etc/nsswitch.conf + install -Dm644 "$BPM_WORKDIR"/os-release "$BPM_OUTPUT"/etc/os-release + install -Dm644 "$BPM_WORKDIR"/lsb-release "$BPM_OUTPUT"/etc/lsb-release + install -Dm644 "$BPM_WORKDIR"/shells "$BPM_OUTPUT"/etc/shells + install -Dm644 "$BPM_WORKDIR"/tide_linux_logo.png "$BPM_OUTPUT"/usr/share/pixmaps/tide_linux_logo.png + + touch "$BPM_OUTPUT"/etc/subuid + touch "$BPM_OUTPUT"/etc/subgid echo "tidelinux" > "$BPM_OUTPUT"/etc/hostname }