Skip to content

Commit 8d7bcab

Browse files
committed
new pkgs & misc fixes
1 parent 78038ee commit 8d7bcab

22 files changed

+350
-32
lines changed

.github/workflows/matrix_builds.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ jobs:
319319
sudo sysctl -p "/etc/sysctl.conf"
320320
continue-on-error: true
321321

322-
- name: BUILD (${{ inputs.ghcr-url }}) [${{ matrix.package.host }}<==>${{ matrix.package.runner }}]
322+
- name: BUILD (${{ env.GHCRPKG_LOCAL }}) [${{ matrix.package.host }}<==>${{ matrix.package.runner }}]
323323
if: env.CONTINUE_GHRUN != 'FALSE'
324324
env:
325325
GHCR_TOKEN: "${{ github.token }}" #Should Never be exported/used by something else (Is Over Privileged)
@@ -369,7 +369,7 @@ jobs:
369369
popd &>/dev/null
370370
continue-on-error: true
371371

372-
- name: Push Artifacts (${{ github.event.inputs.ghcr-url }}) [${{ matrix.package.host }}<==>${{ matrix.package.runner }}]
372+
- name: Push Artifacts (${{ env.GHCRPKG_LOCAL }}) [${{ matrix.package.host }}<==>${{ matrix.package.runner }}]
373373
if: env.CONTINUE_GHRUN != 'FALSE'
374374
env:
375375
#GHCR_TOKEN: "${{ secrets.GHCR_TOKEN }}" #Needs Actions' Token if we want to make the packages public
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
#!/SBUILD ver @v1.0.0
2+
#SELF: https://raw.githubusercontent.com/pkgforge/soarpkgs/refs/heads/main/binaries/svn-lite/static.official.source.yaml
3+
_disabled: false
4+
5+
pkg: "svn-lite"
6+
pkg_id: "github.com.rofl0r.svn-lite.source"
7+
pkg_type: "static"
8+
category:
9+
- "ConsoleOnly"
10+
- "Utility"
11+
description: "Minimalist svn client to checkout/update Subversion repositories"
12+
homepage:
13+
- "https://github.com/rofl0r/svn-lite"
14+
#license:
15+
# - id: "Apache-2.0"
16+
# url: "https://github.com/rofl0r/svn-lite/raw/3c21dc42dcba02d62f4b4b67adcb592f5863790b/COPYING"
17+
maintainer:
18+
- "Azathothas (https://github.com/Azathothas)"
19+
note:
20+
- "[DO NOT RUN] (Meant for pkgforge CI Only)"
21+
- "Built From Source (Latest Git HEAD). Check/Report @ https://github.com/rofl0r/svn-lite"
22+
provides:
23+
- "svn-lite"
24+
- "svn2git"
25+
#repology:
26+
# - "svn-lite"
27+
src_url:
28+
- "https://github.com/rofl0r/svn-lite"
29+
tag:
30+
- "vcs"
31+
x_exec:
32+
host:
33+
- "aarch64-Linux"
34+
- "x86_64-Linux"
35+
shell: "bash"
36+
pkgver: |
37+
pushd "$(mktemp -d)" >/dev/null 2>&1 && \
38+
git clone --depth="1" --filter="blob:none" --no-checkout --single-branch --quiet "https://github.com/rofl0r/svn-lite" "./TEMPREPO" >/dev/null 2>&1 && \
39+
git --git-dir="./TEMPREPO/.git" --no-pager log -1 --pretty=format:'HEAD-%h-%cd' --date=format:'%y%m%dT%H%M%S' && \
40+
[ -d "$(realpath .)/TEMPREPO" ] && rm -rf "$(realpath .)" >/dev/null 2>&1 && popd >/dev/null 2>&1
41+
run: |
42+
#Build
43+
mkdir -pv "${SBUILD_TMPDIR}/tmp" && docker run --privileged --net="host" --name "alpine-builder" --pull="always" \
44+
-e "PKG=${PKG}" -e "PKG_ID=${PKG_ID}" -e "PKG_TYPE=${PKG_TYPE}" -e "PKG_VER=${PKG_VER}" \
45+
-e "PKGVER=${PKGVER}" -e "SBUILD_PKG=${SBUILD_PKG}" -e "SBUILD_PKGVER=${SBUILD_PKGVER}" \
46+
--volume "${SBUILD_TMPDIR}/tmp:/tmp:rw" \
47+
"ghcr.io/pkgforge/devscripts/alpine-builder:latest" \
48+
bash -l -c '
49+
#Setup ENV
50+
set -x ; mkdir -p "/build-bins" && pushd "$(mktemp -d)" >/dev/null 2>&1
51+
#Build
52+
git clone --filter "blob:none" --depth="1" --quiet "https://github.com/rofl0r/svn-lite" "./TEMPREPO" && cd "./TEMPREPO"
53+
export CC="clang"
54+
export CXX="clang++"
55+
export CFLAGS="-Os -flto=auto -fuse-ld=$(which mold) -g0 -pipe -static -static-pie -v -w -Wno-error"
56+
export CPPFLAGS="${CFLAGS}"
57+
export CXXFLAGS="${CFLAGS}"
58+
export LD="$(which mold)"
59+
export LDFLAGS="-static -static-pie -Wl,--Bstatic,--build-id=none,--no-dynamic-linker,--no-fatal-warnings,--static,--stats,--strip-all,-z,noexecstack,-z,pack-relative-relocs,-z,relro"
60+
make --jobs="$(($(nproc)+1))" --keep-going
61+
find "." -maxdepth 1 -type f -exec file -i "{}" \; | grep -Ei "application/.*executable|text/x-perl|text/.*script" | cut -d":" -f1 | xargs realpath | xargs -I "{}" sh -c '\''echo "File: {}"; readelf -p ".comment" "{}"'\''
62+
#Copy
63+
#cp "./svn-lite" "/build-bins/svn-lite"
64+
find "." -maxdepth 1 -type f -exec file -i "{}" \; | grep -Ei "application/.*executable|text/x-perl|text/.*script" | cut -d":" -f1 | xargs realpath | xargs -I "{}" rsync -achvL "{}" "/build-bins/"
65+
mv -fv "/build-bins/svn" "/build-bins/svn-lite" 2>/dev/null
66+
mv -fv "/build-bins/svn2git.sh" "/build-bins/svn2git" 2>/dev/null
67+
( askalono --format "json" crawl --follow "$(realpath .)" | jq -r ".. | objects | .path? // empty" | head -n 1 | xargs -I "{}" cp -fv "{}" "/build-bins/LICENSE" ) 2>/dev/null
68+
#strip & info
69+
find "/build-bins/" -type f -exec objcopy --remove-section=".comment" --remove-section=".note.*" "{}" \;
70+
find "/build-bins/" -type f ! -name "*.no_strip" -exec strip --strip-debug --strip-dwo --strip-unneeded "{}" \; >/dev/null 2>&1
71+
file "/build-bins/"* && du -sh "/build-bins/"*
72+
popd >/dev/null 2>&1
73+
'
74+
#Copy & Meta
75+
docker cp "alpine-builder:/build-bins/." "${SBUILD_TMPDIR}/"
76+
[ -s "${SBUILD_TMPDIR}/LICENSE" ] && cp -fv "${SBUILD_TMPDIR}/LICENSE" "${SBUILD_OUTDIR}/LICENSE"
77+
find "${SBUILD_TMPDIR}" -maxdepth 1 -type f -exec file -i "{}" \; | grep -Ei "application/.*executable|text/x-perl|text/.*script" | cut -d":" -f1 | xargs realpath | xargs -I "{}" rsync -achvL "{}" "${SBUILD_OUTDIR}"

packages/caido-cli/archive.sharun.stable.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ x_exec:
7676
rm -f "${E_X}"
7777
} || break
7878
done
79-
find "." -maxdepth 1 -type f -exec file -i "{}" \; | grep -Ei "application/.*executable" | cut -d":" -f1 | xargs realpath | xargs -I "{}" sharun lib4bin --gen-lib-path --with-hooks --with-wrappe --wrappe-exec "$(basename {})" --dst-dir "./SHARUN_WRAPPED" "{}" --
79+
find "." -maxdepth 1 -type f -exec file -i "{}" \; | grep -Ei "application/.*executable" | cut -d":" -f1 | xargs realpath | xargs -I "{}" sharun lib4bin --gen-lib-path --strace-mode --with-hooks --with-wrappe --wrappe-exec "$(basename {})" --dst-dir "./SHARUN_WRAPPED" "{}" --
8080
#Copy
8181
find "./SHARUN_WRAPPED" -maxdepth 1 -type f -exec file -i "{}" \; | grep -Ei "application/.*executable|text/x-perl|text/.*script" | cut -d":" -f1 | xargs realpath | xargs -I "{}" cp -fv "{}" "/build-bins/"
8282
#Info

packages/chafa/archive.sharun.alpine.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ x_exec:
7575
#Build
7676
apk add "${PKG}" --latest --upgrade --no-interactive
7777
apk info -L "${PKG}"
78-
sharun lib4bin --gen-lib-path --strace-mode --strace-time "60" --with-hooks --with-wrappe --wrappe-clvl "22" --wrappe-exec "${PKG}" --dst-dir "./SHARUN_WRAPPED" "$(realpath $(which "${PKG}"))"
78+
sharun lib4bin --gen-lib-path --strace-mode --with-hooks --with-wrappe --wrappe-clvl "22" --wrappe-exec "${PKG}" --dst-dir "./SHARUN_WRAPPED" "$(realpath $(which "${PKG}"))"
7979
#Copy
8080
find "./SHARUN_WRAPPED" -maxdepth 1 -type f -exec file -i "{}" \; | grep -Ei "application/.*executable|text/x-perl|text/.*script" | cut -d":" -f1 | xargs realpath | xargs -I "{}" cp -fv "{}" "/build-bins/"
8181
apk info -L "${PKG}" | grep -i "usr/share/metainfo/" | grep -im1 "appdata\.xml" | tr -d "[:space:]" | head -n 1 | xargs -I "{}" cp -fv "/{}" "/build-bins/${PKG}.appdata.xml"

packages/crave/archive.sharun.stable.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ x_exec:
8080
rm -f "${E_X}"
8181
} || break
8282
done
83-
find "." -maxdepth 1 -type f -exec file -i "{}" \; | grep -Ei "application/.*executable|text/x-perl|text/.*script" | cut -d":" -f1 | xargs realpath | xargs -I "{}" sharun lib4bin --gen-lib-path --strace-mode --strace-time "60" --with-hooks --with-wrappe --wrappe-clvl "22" --wrappe-exec "${PKG}" --dst-dir "./SHARUN_WRAPPED" "{}"
83+
find "." -maxdepth 1 -type f -exec file -i "{}" \; | grep -Ei "application/.*executable|text/x-perl|text/.*script" | cut -d":" -f1 | xargs realpath | xargs -I "{}" sharun lib4bin --gen-lib-path --strace-mode --with-hooks --with-wrappe --wrappe-clvl "22" --wrappe-exec "${PKG}" --dst-dir "./SHARUN_WRAPPED" "{}"
8484
#Copy
8585
find "./SHARUN_WRAPPED" -maxdepth 1 -type f -exec file -i "{}" \; | grep -Ei "application/.*executable|text/x-perl|text/.*script" | cut -d":" -f1 | xargs realpath | xargs -I "{}" cp -fv "{}" "/build-bins/crave"
8686
( askalono --format "json" crawl --follow "$(realpath .)" | jq -r ".. | objects | .path? // empty" | head -n 1 | xargs -I "{}" cp -fv "{}" "/build-bins/LICENSE" ) 2>/dev/null

packages/fastfetch/archive.sharun.stable.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ x_exec:
9191
find "." -maxdepth 1 -type f -iname "*deb*" -exec dpkg -i "{}" \;
9292
command -v "fastfetch" >/dev/null 2>&1 || exit 1
9393
apt show "fastfetch" ; dpkg-query -L "fastfetch"
94-
sharun lib4bin --gen-lib-path --strace-mode --strace-time "60" --with-hooks --with-wrappe --wrappe-clvl "22" --wrappe-exec "${PKG}" --dst-dir "./SHARUN_WRAPPED" "$(realpath $(which "${PKG}"))"
95-
sharun lib4bin --gen-lib-path --strace-mode --strace-time "60" --with-hooks --with-wrappe --wrappe-clvl "22" --wrappe-exec "flashfetch" --dst-dir "./SHARUN_WRAPPED" "$(realpath $(which "flashfetch"))"
94+
sharun lib4bin --gen-lib-path --strace-mode --with-hooks --with-wrappe --wrappe-clvl "22" --wrappe-exec "${PKG}" --dst-dir "./SHARUN_WRAPPED" "$(realpath $(which "${PKG}"))"
95+
sharun lib4bin --gen-lib-path --strace-mode --with-hooks --with-wrappe --wrappe-clvl "22" --wrappe-exec "flashfetch" --dst-dir "./SHARUN_WRAPPED" "$(realpath $(which "flashfetch"))"
9696
#Copy
9797
find "./SHARUN_WRAPPED" -maxdepth 1 -type f -exec file -i "{}" \; | grep -Ei "application/.*executable|text/x-perl|text/.*script" | cut -d":" -f1 | xargs realpath | xargs -I "{}" cp -fv "{}" "/build-bins/"
9898
dpkg-query -L "${PKG}" | grep -i "usr/share/metainfo/" | grep -im1 "appdata\.xml" | tr -d "[:space:]" | head -n 1 | xargs -I "{}" cp -fv "/{}" "/build-bins/${PKG}.appdata.xml"

packages/netexec/archive.sharun.source.yaml.disabled

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ x_exec:
7777
pyinstaller --clean "./netexec.spec" --noconfirm
7878
mv -fv "./dist/nxc" "./dist/netexec" 2>/dev/null
7979
find -L "./dist" -maxdepth 1 -type f 2>/dev/null
80-
find "./dist" -maxdepth 1 -type f -exec file -i "{}" \; | grep -Ei "application/.*executable" | cut -d":" -f1 | xargs realpath | xargs -I "{}" sharun lib4bin --gen-lib-path --strace-mode --strace-time "60" --with-hooks --with-wrappe --wrappe-clvl "22" --wrappe-exec "$(basename "{}")" --dst-dir "./SHARUN_WRAPPED" "{}"
80+
find "./dist" -maxdepth 1 -type f -exec file -i "{}" \; | grep -Ei "application/.*executable" | cut -d":" -f1 | xargs realpath | xargs -I "{}" sharun lib4bin --gen-lib-path --strace-mode --with-hooks --with-wrappe --wrappe-clvl "22" --wrappe-exec "$(basename "{}")" --dst-dir "./SHARUN_WRAPPED" "{}"
8181
#Copy
8282
find "./SHARUN_WRAPPED" -maxdepth 1 -type f -exec file -i "{}" \; | grep -Ei "application/.*executable|text/x-perl|text/.*script" | cut -d":" -f1 | xargs realpath | xargs -I "{}" cp -fv "{}" "/build-bins/"
8383
( askalono --format "json" crawl --follow "$(realpath .)" | jq -r ".. | objects | .path? // empty" | head -n 1 | xargs -I "{}" cp -fv "{}" "/build-bins/LICENSE" ) 2>/dev/null

packages/nmap/archive.sharun.alpine.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,15 @@ x_exec:
8181
#Build (nmap)
8282
apk add "${PKG}" --latest --upgrade --no-interactive
8383
apk info -L "${PKG}"
84-
sharun lib4bin --gen-lib-path --strace-mode --strace-time "60" --with-hooks --with-wrappe --wrappe-clvl "22" --wrappe-exec "${PKG}" --dst-dir "./SHARUN_WRAPPED" "$(realpath $(which "${PKG}"))"
84+
sharun lib4bin --gen-lib-path --strace-mode --with-hooks --with-wrappe --wrappe-clvl "22" --wrappe-exec "${PKG}" --dst-dir "./SHARUN_WRAPPED" "$(realpath $(which "${PKG}"))"
8585
#Build (nmap-ncat)
8686
apk add "nmap-ncat" --latest --upgrade --no-interactive
8787
apk info -L "nmap-ncat"
88-
sharun lib4bin --gen-lib-path --strace-mode --strace-time "60" --with-hooks --with-wrappe --wrappe-clvl "22" --wrappe-exec "ncat" --dst-dir "./SHARUN_WRAPPED" "$(realpath $(which "ncat"))"
88+
sharun lib4bin --gen-lib-path --strace-mode --with-hooks --with-wrappe --wrappe-clvl "22" --wrappe-exec "ncat" --dst-dir "./SHARUN_WRAPPED" "$(realpath $(which "ncat"))"
8989
#Build (nmap-nping)
9090
apk add "nmap-nping" --latest --upgrade --no-interactive
9191
apk info -L "nmap-nping"
92-
sharun lib4bin --gen-lib-path --strace-mode --strace-time "60" --with-hooks --with-wrappe --wrappe-clvl "22" --wrappe-exec "nping" --dst-dir "./SHARUN_WRAPPED" "$(realpath $(which "nping"))"
92+
sharun lib4bin --gen-lib-path --strace-mode --with-hooks --with-wrappe --wrappe-clvl "22" --wrappe-exec "nping" --dst-dir "./SHARUN_WRAPPED" "$(realpath $(which "nping"))"
9393
#Copy
9494
find "./SHARUN_WRAPPED" -maxdepth 1 -type f -exec file -i "{}" \; | grep -Ei "application/.*executable|text/x-perl|text/.*script" | cut -d":" -f1 | xargs realpath | xargs -I "{}" cp -fv "{}" "/build-bins/"
9595
apk info -L "${PKG}" | grep -i "usr/share/metainfo/" | grep -im1 "appdata\.xml" | tr -d "[:space:]" | head -n 1 | xargs -I "{}" cp -fv "/{}" "/build-bins/${PKG}.appdata.xml"

packages/proxychains/archive.sharun.alpine.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ x_exec:
7575
#Build
7676
apk add "proxychains-ng" --latest --upgrade --no-interactive
7777
apk info -L "proxychains-ng"
78-
sharun lib4bin --gen-lib-path --with-hooks --with-wrappe --wrappe-clvl "22" --wrappe-exec "proxychains" --dst-dir "./SHARUN_WRAPPED" "$(realpath $(which "proxychains"))" --
79-
sharun lib4bin --gen-lib-path --with-hooks --with-wrappe --wrappe-clvl "22" --wrappe-exec "proxychains4" --dst-dir "./SHARUN_WRAPPED" "$(realpath $(which "proxychains4"))" --
80-
sharun lib4bin --gen-lib-path --with-hooks --with-wrappe --wrappe-clvl "22" --wrappe-exec "proxychains4-daemon" --dst-dir "./SHARUN_WRAPPED" "$(realpath $(which "proxychains4-daemon"))" --
78+
sharun lib4bin --gen-lib-path --strace-mode --with-hooks --with-wrappe --wrappe-clvl "22" --wrappe-exec "proxychains" --dst-dir "./SHARUN_WRAPPED" "$(realpath $(which "proxychains"))" --
79+
sharun lib4bin --gen-lib-path --strace-mode --with-hooks --with-wrappe --wrappe-clvl "22" --wrappe-exec "proxychains4" --dst-dir "./SHARUN_WRAPPED" "$(realpath $(which "proxychains4"))" --
80+
sharun lib4bin --gen-lib-path --strace-mode --with-hooks --with-wrappe --wrappe-clvl "22" --wrappe-exec "proxychains4-daemon" --dst-dir "./SHARUN_WRAPPED" "$(realpath $(which "proxychains4-daemon"))" --
8181
#Copy
8282
find "./SHARUN_WRAPPED" -maxdepth 1 -type f -exec file -i "{}" \; | grep -Ei "application/.*executable|text/x-perl|text/.*script" | cut -d":" -f1 | xargs realpath | xargs -I "{}" cp -fv "{}" "/build-bins/"
8383
[ ! -s "/build-bins/proxychains" ] && mv -fv "/build-bins/proxychains4" "/build-bins/proxychains"

packages/sanicdns/archive.sharun.stable.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ x_exec:
6060
command -v sanicdns &>/dev/null || echo -e "\n[X] FATAL: sanicdns is NOT Installed\n$(exit 1)"
6161
#Bundle
6262
curl -qfSL "https://raw.githubusercontent.com/hadriansecurity/sanicdns/main/majestic_million.txt" | shuf -n 1000 > "./test.txt"
63-
sharun lib4bin --gen-lib-path --with-hooks --with-wrappe --wrappe-clvl "22" --wrappe-exec "sanicdns" --dst-dir "./SHARUN_WRAPPED" "$(realpath $(which "sanicdns"))" -- --input-file "./test.txt" -r "200" -c "1000" --resolvers "1.1.1.1,1.0.0.1" -o "./tmp.txt"
63+
sharun lib4bin --gen-lib-path --strace-mode --with-hooks --with-wrappe --wrappe-clvl "22" --wrappe-exec "sanicdns" --dst-dir "./SHARUN_WRAPPED" "$(realpath $(which "sanicdns"))" -- --input-file "./test.txt" -r "200" -c "1000" --resolvers "1.1.1.1,1.0.0.1" -o "./tmp.txt"
6464
#Copy
6565
find "./SHARUN_WRAPPED" -maxdepth 1 -type f -exec file -i "{}" \; | grep -Ei "application/.*executable|text/x-perl|text/.*script" | cut -d":" -f1 | xargs realpath | xargs -I "{}" cp -fv "{}" "/build-bins/"
6666
( askalono --format "json" crawl --follow "$(realpath .)" | jq -r ".. | objects | .path? // empty" | head -n 1 | xargs -I "{}" cp -fv "{}" "/build-bins/LICENSE" ) 2>/dev/null

0 commit comments

Comments
 (0)