Skip to content

Commit

Permalink
📦️ Add check-engine
Browse files Browse the repository at this point in the history
  • Loading branch information
cfpwastaken committed Jan 20, 2025
1 parent f13c0e2 commit 33f94c4
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 0 deletions.
43 changes: 43 additions & 0 deletions check-engine/APKBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Contributor: Jannik Eckhardt <[email protected]>
# Maintainer: Jannik Eckhardt <[email protected]>
pkgname=check-engine
pkgver=0.1.0
pkgrel=0
pkgdesc="EasyGuard System Watcher"
url="https://github.com/easyguard/check-engine"
arch="all"
license="GPL-3.0-only"
depends=""
makedepends="cargo cargo-auditable"
checkdepends=""
source="https://github.com/easyguard/check-engine/archive/refs/heads/main.zip
check-engine.initd
profile"
builddir="$srcdir/check-engine-main"

prepare() {
default_prepare

cargo fetch --target="$CTARGET" --locked
}

build() {
cargo auditable build --frozen --release
}

check() {
# cargo test --frozen
:
}

package() {
install -Dm755 "$builddir/target/release/check-engine" "$pkgdir/usr/bin/check-engine"
install -Dm755 "$srcdir/check-engine.initd" "$pkgdir/etc/init.d/check-engine"
install -Dm755 "$srcdir/profile" "$pkgdir/root/.profile"
}

sha512sums="
f1198df2024e9ef6d2d2379ca66f833ea5fa544f4506c8950af02df1a1ddc479ce4b797b769c6c5245fd5c389a5737ebe26e647ca0de2df4efbf0beaa64ad7d5 main.zip
443712b2f1ad83130fdeb025f224336a90c9be9a3e9e2ec953501efba6a37cfcbcb1f06646955148ca7070de4d142fa43b3d3aae6182f1cc76e790111bc45c29 check-engine.initd
fa8b957538e05328e714ea03920b1e7f338b1ee3849a2b36e3d0ea961599b84117cbc87b3424cc1ead671994a6db87d2c717ac3eae1543cebc4f9e4c7e66e482 profile
"
7 changes: 7 additions & 0 deletions check-engine/check-engine.initd
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/sbin/openrc-run
name="check-engine"
description="EasyGuard System Watcher"
command="check-engine"
command_args="-l"
command_background=true
pidfile="/run/${RC_SVCNAME}.pid"
6 changes: 6 additions & 0 deletions check-engine/profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
if [ -f /tmp/check_engine ]; then
echo ""
echo -e "\033[1;5;31;107m Check Engine! \033[0m"
cat /tmp/check_engine
echo ""
fi
Binary file modified packages/x86_64/APKINDEX.tar.gz
Binary file not shown.
Binary file added packages/x86_64/check-engine-0.1.0-r0.apk
Binary file not shown.

0 comments on commit 33f94c4

Please sign in to comment.