From 62064861678dd0635e37b08ffdd8bec0316bb67a Mon Sep 17 00:00:00 2001 From: Druid520 Date: Tue, 11 Aug 2026 21:36:20 -0700 Subject: MOD: update, too lazy to finish commit, its 10~pm --- ports/test/add.sh | 4 ++-- ports/test/del.sh | 2 ++ ports/test/pkg.conf | 26 -------------------------- ports/test/test.sh | 3 +++ 4 files changed, 7 insertions(+), 28 deletions(-) create mode 100644 ports/test/test.sh (limited to 'ports') 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 @@ . pkg.conf set -e -gcc -static -fno-pie -O0 -g0 -s $CFLAGS -o "$pkg_name" -c "$pkg_name.c" $LDFLAGS -rx cp "$pkg_name" /usr/local/bin/"$pkg_name-mp" +chmod +x test.sh +cp 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 @@ . pkg.conf set -e + +rm /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 @@ pkg_name="test" pkg_license="GPL-3.0-or-later" pkg_ver="1.0.0" -pkg_repo="no-repo" - -war() { - echo "warn: $1" >&2 -} -die() { - echo "err: $1" >&2 - exit 1 -} -ok() { - echo "ok: $1" >&2 -} -if command -v doas >/dev/null 2>&1; then - rx() { - doas "$@" - } - return -elif command -v sudo >/dev/null 2>&1; then - rx() { - sudo "$@" - } - return -else - die "permission elevator not found." -fi - 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 @@ +#!/usr/bin/env + +echo "test." >&2 -- cgit 1.4.1