-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f13c0e2
commit 33f94c4
Showing
5 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
Binary file not shown.