distro-files: small rework

add files to /etc/skel and /home/astral, move DOOM1.WAD and id1 to /usr/share/games folders and create symlinks to them in the recipe
This commit is contained in:
Matheus
2024-08-28 21:49:08 -03:00
parent b4bc78fbb4
commit d3f3ccbb11
18 changed files with 77 additions and 2 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
root::0:root
sshd::100:sshd
unknown::999:unknown
astral::999:astral
astral::1000:astral
+4
View File
@@ -12,3 +12,7 @@ mount /tmp tmpfs
chmod 1777 /tmp
chmod 0755 /dev/pts
# required to be owned by root and sticky for rootless Xorg.
mkdir -p /tmp/.X11-unix
chmod 1777 /tmp/.X11-unix
+2
View File
@@ -0,0 +1,2 @@
xterm*background: black
xterm*foreground: white
+1
View File
@@ -0,0 +1 @@
--ipv4
+13
View File
@@ -0,0 +1,13 @@
section .text
global _start
_start:
mov rax, 7
mov rdi, 1
mov rsi, msg
mov rdx, 14
syscall
mov rax, 13
xor rdi, rdi
syscall
section .data
msg: db "Hello, world!", 0xA
+5
View File
@@ -0,0 +1,5 @@
#include <stdio.h>
int main(){
printf("Hello, world!\n");
}
+6
View File
@@ -0,0 +1,6 @@
#include <iostream>
int main(){
std::cout << "Hello, world!" << std::endl;
return 0;
}
+1
View File
@@ -0,0 +1 @@
echo Hello, World!
+2
View File
@@ -0,0 +1,2 @@
xterm*background: black
xterm*foreground: white
+1
View File
@@ -0,0 +1 @@
--ipv4
+13
View File
@@ -0,0 +1,13 @@
section .text
global _start
_start:
mov rax, 7
mov rdi, 1
mov rsi, msg
mov rdx, 14
syscall
mov rax, 13
xor rdi, rdi
syscall
section .data
msg: db "Hello, world!", 0xA
+5
View File
@@ -0,0 +1,5 @@
#include <stdio.h>
int main(){
printf("Hello, world!\n");
}
+6
View File
@@ -0,0 +1,6 @@
#include <iostream>
int main(){
std::cout << "Hello, world!" << std::endl;
return 0;
}
+1
View File
@@ -0,0 +1 @@
echo Hello, World!
+16
View File
@@ -5,5 +5,21 @@ from_source=distro-files
package() {
cp -r ${source_dir}/* ${dest_dir}
mkdir -p ${dest_dir}/root/.fvwm
mkdir -p ${dest_dir}/home/astral/.fvwm
mkdir -p ${dest_dir}/etc/skel/.fvwm
# fvwm background
ln -fvs /usr/share/fvwm3/default-config/images/background/bg3.png ${dest_dir}/root/.fvwm/.BGdefault
ln -fvs /usr/share/fvwm3/default-config/images/background/bg3.png ${dest_dir}/home/astral/.fvwm/.BGdefault
ln -fvs /usr/share/fvwm3/default-config/images/background/bg3.png ${dest_dir}/etc/skel/.fvwm/.BGdefault
# quake files
ln -fvs /usr/share/games/quake/id1 ${dest_dir}/root/id1
ln -fvs /usr/share/games/quake/id1 ${dest_dir}/home/astral/id1
ln -fvs /usr/share/games/quake/id1 ${dest_dir}/etc/skel
# doom files
ln -fvs /usr/share/games/doom/DOOM1.WAD ${dest_dir}/root/DOOM1.WAD
ln -fvs /usr/share/games/doom/DOOM1.WAD ${dest_dir}/home/astral/DOOM1.WAD
ln -fvs /usr/share/games/doom/DOOM1.WAD ${dest_dir}/etc/skel/DOOM1.WAD
}
-1
View File
@@ -8,7 +8,6 @@ deps="mlibc libxcvt pixman xorgproto xtrans xkbfile libxfont2 fontutil libgcrypt
build() {
${source_dir}/configure --prefix=${prefix} --host=x86_64-astral --disable-pciaccess --disable-libdrm --disable-glx --disable-int10-module --disable-glamor --disable-vgahw --disable-dri3 --disable-dri2 --disable-dri --disable-xephyr --disable-xwayland --disable-xnest --disable-dmx --with-fontrootdir=${prefix}/share/fonts/X11
make -j${parallelism}
}
package() {