Package Details: reaction-git r128.e1ff702-1

Git Clone URL: https://aur.archlinux.org/reaction-git.git (read-only, click to copy)
Package Base: reaction-git
Description: A daemon that scans program outputs for repeated patterns, and takes action. Alternative to fail2ban
Upstream URL: https://framagit.org/ppom/reaction
Keywords: fail2ban reaction security
Licenses: AGPL
Provides: ip46tables, reaction
Submitter: Fallstar
Maintainer: Fallstar
Last Packager: Fallstar
Votes: 1
Popularity: 0.000000
First Submitted: 2024-01-06 17:30 (UTC)
Last Updated: 2024-06-02 14:06 (UTC)

Dependencies (3)

Required by (0)

Sources (1)

Latest Comments

darkfrog commented on 2026-03-25 03:14 (UTC) (edited on 2026-03-25 03:15 (UTC) by darkfrog)

PKGBUILD is broken — upstream rewrote reaction in Rust

The project migrated from Go to Rust. make still works (it calls cargo build --release), but package() references binaries and paths that no longer exist:

  • reaction binary is now at target/release/reaction (not repo root)
  • ip46tables and nft46 were removed upstream
  • Service file moved from config/reaction.example.service to packaging/reaction.service
  • arch should be x86_64 (or mapped to actual target)
  • makedepends needs cargo, not go/gcc

Here's a patch to resolve:

--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,10 +4,10 @@
 pkgrel=2
 pkgdesc="A daemon that scans program outputs for repeated patterns, and takes action. Alternative to fail2ban"
-arch=('any')
+arch=('x86_64')
 url="https://framagit.org/ppom/reaction"
-license=('AGPL')
-makedepends=('git' 'go' 'gcc')
-provides=('reaction' 'ip46tables')
+license=('AGPL-3.0-or-later')
+makedepends=('git' 'cargo')
+provides=('reaction')
 source=("${pkgname}::git+https://framagit.org/ppom/reaction.git")
 sha256sums=('SKIP')

@@ -17,15 +17,12 @@

 build() {
     cd "${pkgname}"
-    make
+    cargo build --release
 }

 package() {
-    install -Dm755 "${pkgname}/reaction" "${pkgdir}/usr/bin/reaction"
-    install -Dm755 "${pkgname}/ip46tables" "${pkgdir}/usr/bin/ip46tables"
-    install -Dm755 "${pkgname}/nft46" "${pkgdir}/usr/bin/nft46"
-    install -Dm644 "${pkgname}/config/reaction.example.service" "${pkgdir}/usr/lib/systemd/system/reaction.service"
+    install -Dm755 "${pkgname}/target/release/reaction" "${pkgdir}/usr/bin/reaction"
+    install -Dm644 "${pkgname}/packaging/reaction.service" "${pkgdir}/usr/lib/systemd/system/reaction.service"
     install -Dm644 "${pkgname}/config/example.jsonnet" "${pkgdir}/etc/reaction.jsonnet"
 }

hannaeko commented on 2026-02-19 22:20 (UTC) (edited on 2026-02-19 22:20 (UTC) by hannaeko)

Hello, the package fails to build as it now requires cargo to be built, also changing the compiled artifacts paths. Also it no longer provides ip46tables.

Fallstar commented on 2024-06-02 14:09 (UTC)

Thanks tomaszc, the PKGBUILD has been updated!

tomaszc commented on 2024-06-01 20:23 (UTC)

Thanks for adding this program to the AUR.

For the latest versions, a PKGBUILD change is required, adding the nft46 file and an updated path to reaction.service:

-    install -Dm644 "${pkgname}/config/reaction.debian.service" "${pkgdir}/usr/lib/systemd/system/reaction.service"
+    install -Dm755 "${pkgname}/nft46" "${pkgdir}/usr/bin/nft46"
+    install -Dm644 "${pkgname}/config/reaction.example.service" "${pkgdir}/usr/lib/systemd/system/reaction.service"