ports/core (3.6): filesystem: add /etc/os-release, FS#1841
commit a23cb52b6d62cca88728864014d8f25328948a8f Author: Juergen Daubert <jue@jue.li> Date: Tue Aug 3 19:07:46 2021 +0200 filesystem: add /etc/os-release, FS#1841 diff --git a/filesystem/.footprint b/filesystem/.footprint index 88e8f8f5..fde225c2 100644 --- a/filesystem/.footprint +++ b/filesystem/.footprint @@ -11,6 +11,7 @@ drwxr-xr-x root/root etc/ -rw-r--r-- root/root etc/mime.types -rw-r--r-- root/root etc/motd (EMPTY) lrwxrwxrwx root/root etc/mtab -> /proc/self/mounts +-rw-r--r-- root/root etc/os-release -rw-r--r-- root/root etc/passwd -rw-r--r-- root/root etc/securetty -rw-r----- root/root etc/shadow diff --git a/filesystem/.signature b/filesystem/.signature index 4dbbfdfc..eb33c9f6 100644 --- a/filesystem/.signature +++ b/filesystem/.signature @@ -1,7 +1,7 @@ untrusted comment: verify with /etc/ports/core.pub -RWRJc1FUaeVeqs+nCEz2Rp/EhsRCGTy6Fo9U1cdsyQxJHowbrDt7TLgtAjv4I0FmtCPCzjP9fzeVwpDdA4e/+HjZnpW34w0rbgE= -SHA256 (Pkgfile) = 67d2d7d5a3d0dd416f6592a1d180cee4327c612a0f85b2dea2774fc69a8358f5 -SHA256 (.footprint) = 71e16dd60d5918bb5d50a6adf37048ef35f0d3d2b1d1f3e5f4bbfb9ce22841cd +RWRJc1FUaeVeqgL744JE6PjaqcHskEyVRrx9Ew/W6M8+sOSZdGse+dAezYCgEsDonFf+ViSbkuzAxwzQqcxi+d5Gprl7LEt03Ak= +SHA256 (Pkgfile) = 99bebc89192c550d8f094db27e883bf931714637dde7e97821cfe4fdc4b254c4 +SHA256 (.footprint) = de7cd6b7dd582e485347b0f716489c82dd41cc00d34b46883d6a03d0c9857fd7 SHA256 (issue) = e8f3a830102f902bf869c946634215f419ff76f4e03f627d84b8809ed85e65c2 SHA256 (motd) = e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 SHA256 (shells) = f5e8838cb33249bd0ab3a169097bcc411cfb1b37153f268e6655758942e46656 diff --git a/filesystem/Pkgfile b/filesystem/Pkgfile index c3bbce6d..a96477a6 100644 --- a/filesystem/Pkgfile +++ b/filesystem/Pkgfile @@ -4,71 +4,71 @@ name=filesystem version=3.6 -release=1 +release=2 source=(issue motd shells group passwd shadow securetty fstab mime.types) build() { - # Directory structure - install -d $PKG/bin - install -d $PKG/sbin - install -d $PKG/boot - install -d $PKG/dev - install -d $PKG/dev/pts - install -d $PKG/proc - install -d $PKG/sys - install -d $PKG/etc - install -d $PKG/mnt - install -d $PKG/run - install -d $PKG/lib{,32} - ln -s lib $PKG/lib64 - install -d $PKG/lib/modules - install -d $PKG/opt - install -d $PKG/opt/bin - install -d $PKG/opt/sbin - install -d $PKG/usr - install -d $PKG/usr/{bin,include,lib{,32},sbin,share,src} - ln -s lib $PKG/usr/lib64 - install -d -p $PKG/usr/share/man/man{1,2,3,4,5,6,7,8} - ln -s ../var $PKG/usr/var - install -d $PKG/var - install -d $PKG/var/cache - install -d $PKG/var/lib - install -d $PKG/var/lib/pkg - install -d $PKG/var/log - install -d $PKG/var/log/old - install -d $PKG/var/run - touch $PKG/var/run/utmp - install -d $PKG/var/spool - install -d $PKG/var/ftp - install -d $PKG/var/www - install -d $PKG/var/empty - ln -s spool/mail $PKG/var/mail - install -d $PKG/home + # Directory structure + install -d $PKG/bin + install -d $PKG/sbin + install -d $PKG/boot + install -d $PKG/dev + install -d $PKG/dev/pts + install -d $PKG/proc + install -d $PKG/sys + install -d $PKG/etc + install -d $PKG/mnt + install -d $PKG/run + install -d $PKG/lib{,32} + ln -s lib $PKG/lib64 + install -d $PKG/lib/modules + install -d $PKG/opt + install -d $PKG/opt/bin + install -d $PKG/opt/sbin + install -d $PKG/usr + install -d $PKG/usr/{bin,include,lib{,32},sbin,share,src} + ln -s lib $PKG/usr/lib64 + install -d -p $PKG/usr/share/man/man{1,2,3,4,5,6,7,8} + ln -s ../var $PKG/usr/var + install -d $PKG/var + install -d $PKG/var/cache + install -d $PKG/var/lib + install -d $PKG/var/lib/pkg + install -d $PKG/var/log + install -d $PKG/var/log/old + install -d $PKG/var/run + touch $PKG/var/run/utmp + install -d $PKG/var/spool + install -d $PKG/var/ftp + install -d $PKG/var/www + install -d $PKG/var/empty + ln -s spool/mail $PKG/var/mail + install -d $PKG/home - install -d -m 1777 $PKG/tmp - install -d -m 0750 $PKG/root - install -d -m 1777 $PKG/var/lock - install -d -m 1777 $PKG/var/spool/mail - install -d -m 1777 $PKG/var/tmp - install -d -m 1777 $PKG/dev/shm + install -d -m 1777 $PKG/tmp + install -d -m 0750 $PKG/root + install -d -m 1777 $PKG/var/lock + install -d -m 1777 $PKG/var/spool/mail + install -d -m 1777 $PKG/var/tmp + install -d -m 1777 $PKG/dev/shm - # /dev - mknod $PKG/dev/console c 5 1 - chmod 0600 $PKG/dev/console + # /dev + mknod $PKG/dev/console c 5 1 + chmod 0600 $PKG/dev/console - # /etc - install -m 0644 issue $PKG/etc - install -m 0644 motd $PKG/etc - install -m 0644 shells $PKG/etc - install -m 0644 group $PKG/etc - install -m 0644 passwd $PKG/etc - install -m 0640 shadow $PKG/etc - install -m 0644 securetty $PKG/etc - install -m 0644 fstab $PKG/etc - install -m 0644 mime.types $PKG/etc - ln -s /proc/self/mounts $PKG/etc/mtab + # /etc + install -m 0644 issue $PKG/etc + install -m 0644 motd $PKG/etc + install -m 0644 shells $PKG/etc + install -m 0644 group $PKG/etc + install -m 0644 passwd $PKG/etc + install -m 0640 shadow $PKG/etc + install -m 0644 securetty $PKG/etc + install -m 0644 fstab $PKG/etc + install -m 0644 mime.types $PKG/etc + ln -s /proc/self/mounts $PKG/etc/mtab - # /usr/bin/crux + # /usr/bin/crux cat > $PKG/usr/bin/crux << EOF #!/bin/sh @@ -76,5 +76,15 @@ echo "CRUX version $version" # End of file EOF - chmod 755 $PKG/usr/bin/crux + chmod 755 $PKG/usr/bin/crux + + # /etc/os-release +cat > $PKG/etc/os-release << EOF +NAME=CRUX +VERSION="$version" +ID=crux +PRETTY_NAME="CRUX" +HOME_URL="https://crux.nu/" +BUG_REPORT_URL="https://crux.nu/bugs/" +EOF }
participants (1)
-
crux@crux.nu