summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKris Nóva2021-09-05 18:22:06 -0500
committerKris Nóva2021-09-05 18:22:06 -0500
commit81974b1b04172767995dc7d253e6af7975628db3 (patch)
treec15c6b441436013492fdac0ffc0868d904c3e6f4
downloadaur-81974b1b04172767995dc7d253e6af7975628db3.tar.gz
Adding Falco 0.29.1 PKGBUILD with Kernel Module
Signed-off-by: Kris Nóva <kris@nivenly.com>
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD62
2 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2835334fd52
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = falco
+ pkgdesc = Falco Runtime Security
+ pkgver = 0.29.1
+ pkgrel = 1
+ url = https://falcosecurity.org
+ arch = x86_64
+ license = Apache2
+ depends = linux-headers
+ source = https://download.falco.org/packages/bin/x86_64/falco-0.29.1-x86_64.tar.gz
+ validpgpkeys = F5F9B56417B7F2CAC1DEC2E372BB115B4DDD8252
+ sha256sums = 60a7189f7d1c583b45966ea50af98ef3c3126aab52437ed1f67ef3d351034b90
+
+pkgname = falco
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b9837a7e63d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,62 @@
+# Maintainer: Kris Nóva <kris@nivenly.com>
+pkgname="falco"
+pkgver="0.29.1"
+pkgrel=1
+pkgdesc="Falco Runtime Security"
+arch=("x86_64")
+url="https://falcosecurity.org"
+license=("Apache2")
+groups=()
+depends=("linux-headers")
+makedepends=()
+checkdepends=()
+optdepends=()
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=()
+install=
+changelog=
+
+# EXAMPLE URL: https://download.falco.org/packages/bin/x86_64/falco-0.29.1-x86_64.tar.gz
+source=("https://download.falco.org/packages/bin/$arch/$pkgname-$pkgver-$arch.tar.gz")
+
+# Falco 0.29.1 SHA256
+# Note: This can be found by running "makepkg -g" in this directory.
+# The AUR documentation suggests "makepkg -g >> PKGBUILD"
+sha256sums=('60a7189f7d1c583b45966ea50af98ef3c3126aab52437ed1f67ef3d351034b90')
+
+# Kris Nóva PGP Key
+validpgpkeys=('F5F9B56417B7F2CAC1DEC2E372BB115B4DDD8252')
+
+prepare() {
+ echo "Preparing Falco Build..."
+ echo "Falco Version: $pkgver"
+}
+
+build() {
+ echo "Compiling Kernel Module..."
+ cd $pkgname-$pkgver-$arch/usr/src/falco*
+ make
+}
+
+check() {
+ echo "check()"
+}
+
+package() {
+ echo "Installing Default Configuration..."
+ sudo mkdir -p /etc/falco
+ sudo cp -rv $pkgname-$pkgver-$arch/etc/falco/* /etc/falco
+ sudo mkdir -p /usr/share/falco
+ sudo cp -rv $pkgname-$pkgver-$arch/usr/share/falco/* /usr/share/falco
+
+ echo "Intalling Binary [$arch]..."
+ # AUR Informs us that packages should NEVER be installed to /usr/local
+ sudo cp -rv $pkgname-$pkgver-$arch/usr/bin/* /usr/bin
+
+ echo "Installing Kernel Module..."
+ cd $pkgname-$pkgver-$arch/usr/src/falco*
+ sudo make install
+}