summary refs log tree commit diff
path: root/ports/test
diff options
context:
space:
mode:
authorDruid520 <r.ustydruid520@proton.me>2026-08-11 21:36:20 -0700
committerDruid520 <r.ustydruid520@proton.me>2026-08-11 21:36:20 -0700
commit62064861678dd0635e37b08ffdd8bec0316bb67a (patch)
treed414dd8ee298e277539a6e1bcf6e79fee1222117 /ports/test
parent3dc4c90bbab3838eeef1ed5ab54f6fc5ed833aed (diff)
MOD: update, too lazy to finish commit, its 10~pm
Diffstat (limited to 'ports/test')
-rw-r--r--ports/test/add.sh4
-rw-r--r--ports/test/del.sh2
-rw-r--r--ports/test/pkg.conf26
-rw-r--r--ports/test/test.sh3
4 files changed, 7 insertions, 28 deletions
diff --git a/ports/test/add.sh b/ports/test/add.sh index 1db96be..b7b595d 100644 --- a/ports/test/add.sh +++ b/ports/test/add.sh
@@ -1,5 +1,5 @@
1. pkg.conf 1. pkg.conf
2set -e 2set -e
3 3
4gcc -static -fno-pie -O0 -g0 -s $CFLAGS -o "$pkg_name" -c "$pkg_name.c" $LDFLAGS 4chmod +x test.sh
5rx cp "$pkg_name" /usr/local/bin/"$pkg_name-mp" 5cp test.sh /usr/local/bin/test-mp
diff --git a/ports/test/del.sh b/ports/test/del.sh index be1208c..af22f1e 100644 --- a/ports/test/del.sh +++ b/ports/test/del.sh
@@ -1,2 +1,4 @@
1. pkg.conf 1. pkg.conf
2set -e 2set -e
3
4rm /usr/local/bin/test-mp
diff --git a/ports/test/pkg.conf b/ports/test/pkg.conf index ccc7ea7..ef9234a 100644 --- a/ports/test/pkg.conf +++ b/ports/test/pkg.conf
@@ -1,29 +1,3 @@
1pkg_name="test" 1pkg_name="test"
2pkg_license="GPL-3.0-or-later" 2pkg_license="GPL-3.0-or-later"
3pkg_ver="1.0.0" 3pkg_ver="1.0.0"
4pkg_repo="no-repo"
5
6war() {
7 echo "warn: $1" >&2
8}
9die() {
10 echo "err: $1" >&2
11 exit 1
12}
13ok() {
14 echo "ok: $1" >&2
15}
16if command -v doas >/dev/null 2>&1; then
17 rx() {
18 doas "$@"
19 }
20 return
21elif command -v sudo >/dev/null 2>&1; then
22 rx() {
23 sudo "$@"
24 }
25 return
26else
27 die "permission elevator not found."
28fi
29
diff --git a/ports/test/test.sh b/ports/test/test.sh new file mode 100644 index 0000000..657ca5c --- /dev/null +++ b/ports/test/test.sh
@@ -0,0 +1,3 @@
1#!/usr/bin/env
2
3echo "test." >&2