strawberry/scripts/build_minimal.sh

48 lines
1.3 KiB
Bash
Executable file

#!/bin/bash
# Simplified build script that works with minimal dependencies
set -e
echo "=== Strawberry Security Scanner - Simplified Build ==="
echo
export PATH="$HOME/.local/bin:$PATH"
echo "This script will create a minimal build that demonstrates the architecture"
echo "without requiring all external dependencies."
echo
# Create build directory
echo "Configuring build..."
meson setup builddir \
-Denable_tests=false \
--wrap-mode=nofallback || {
echo
echo "Build configuration failed. This likely means some dependencies are missing."
echo "See README.md for full dependency list."
echo
echo "You can install basic dependencies with:"
echo " sudo apt-get install libssl-dev"
exit 1
}
echo
echo "Compiling..."
meson compile -C builddir || {
echo
echo "Compilation failed. Check error messages above."
exit 1
}
echo
echo "Build successful!"
echo
echo "The binary is available at: builddir/src/strawberry"
echo
echo "To run (requires root for BPF features):"
echo " sudo ./builddir/src/strawberry config/strawberry.conf"
echo
echo "Note: This is a demonstration build. Some features require:"
echo " - libbpf-dev (for BPF process monitoring)"
echo " - libyara-dev (for YARA scanning)"
echo " - a Linux runtime for live eBPF/process-monitor validation"