filesystem: 3.7 -> 3.8

This commit is contained in:
Tim Biermann 2023-08-21 22:17:07 +02:00
parent 4c88075440
commit 7907c8295c
Signed by: tb
GPG Key ID: 42F8B4E30B673606
2 changed files with 64 additions and 67 deletions

View File

@ -1,6 +1,6 @@
untrusted comment: verify with /etc/ports/core.pub
RWRJc1FUaeVeqsOuN5kCANz8IDAbseehSRFLW+1jx6QZa8scMn8fiB/BkaUci9CQjvtLm21MJHVuF/pj73kaBepVkuY2SxDCpAs=
SHA256 (Pkgfile) = 24aa3dfa8f0e8123475c2d1a7a901457f2373cdfbc0c86e9566668b221488421
RWRJc1FUaeVeqvBp4yMPZa14V9FGW+uYy7R1IHYRoG9c5nDuLOpowcrumT+QZyfYjYI6gcOptvPbJp0gKsQPFBu2+eEcgM2cTQ0=
SHA256 (Pkgfile) = ca12a0b37201e6d1ea0d7b530a1d37398d03ba931c854f0875321bd1bf897681
SHA256 (.footprint) = a0b8a7ceee392c736b0c3847e7dea5ff429d95a1d61fa6f53ffad7d05ad9d29e
SHA256 (issue) = e8f3a830102f902bf869c946634215f419ff76f4e03f627d84b8809ed85e65c2
SHA256 (motd) = e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855

View File

@ -3,85 +3,82 @@
# Maintainer: CRUX System Team, core-ports at crux dot nu
name=filesystem
version=3.7
release=3
version=3.8
release=1
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
ln -s ../run/ $PKG/var/run
# can't be in the Pkgfile anymore
#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
ln -s ../run/ $PKG/var/run
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
cat > $PKG/usr/bin/crux << EOF
# /usr/bin/crux
cat > $PKG/usr/bin/crux << EOF
#!/bin/sh
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
# /etc/os-release
cat > $PKG/etc/os-release << EOF
NAME=CRUX
VERSION="$version"
ID=crux