Control: retitle -1 RFP: fail2ban-prometheus-exporter - collect and export Prometheus metrics on Fail2Ban)
I thought all deps were in Debian, but I was wrong, those are missing: github.com/kisielk/og-rek github.com/nlpodyssey/gopickle It's not that bad! Only two! But weirdly, they both relate to (presumably Python) "pickles" so I'm not sure why both are necessary. So I'll step away from this package for now, I ran out of cycles. It's much easier to just do the fail2ban hack for now. I pushed the goods to Salsa: https://salsa.debian.org/go-team/packages/fail2ban-prometheus-exporter Here's the build log: Command: dpkg-buildpackage --sanitize-env -us -uc -rfakeroot dpkg-buildpackage: info: source package fail2ban-prometheus-exporter dpkg-buildpackage: info: source version 0.10.1-1 dpkg-buildpackage: info: source distribution experimental dpkg-buildpackage: info: source changed by Antoine Beaupré <anar...@debian.org> dpkg-source --before-build . dpkg-buildpackage: info: host architecture amd64 debian/rules clean dh clean --builddirectory=_build --buildsystem=golang --with=golang dh_auto_clean -O--builddirectory=_build -O--buildsystem=golang dh_autoreconf_clean -O--builddirectory=_build -O--buildsystem=golang dh_clean -O--builddirectory=_build -O--buildsystem=golang dpkg-source -b . dpkg-source: info: using source format '3.0 (quilt)' dpkg-source: info: building fail2ban-prometheus-exporter using existing ./fail2ban-prometheus-exporter_0.10.1.orig.tar.gz dpkg-source: info: building fail2ban-prometheus-exporter in fail2ban-prometheus-exporter_0.10.1-1.debian.tar.xz debian/rules binary dpkg-source: info: building fail2ban-prometheus-exporter in fail2ban-prometheus-exporter_0.10.1-1.dsc dh binary --builddirectory=_build --buildsystem=golang --with=golang dh_update_autotools_config -O--builddirectory=_build -O--buildsystem=golang dh_autoreconf -O--builddirectory=_build -O--buildsystem=golang dh_auto_configure -O--builddirectory=_build -O--buildsystem=golang dh_auto_build -O--builddirectory=_build -O--buildsystem=golang cd _build && go install -trimpath -v -p 12 gitlab.com/hectorjsmith/fail2ban-prometheus-exporter gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/auth gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/cfg gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/collector/f2b gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/collector/textfile gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/server gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/socket src/gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/socket/fail2banSocket.go:5:2: cannot find package "github.com/kisielk/og-rek" in any of: /usr/lib/go-1.22/src/github.com/kisielk/og-rek (from $GOROOT) /<<PKGBUILDDIR>>/_build/src/github.com/kisielk/og-rek (from $GOPATH) src/gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/socket/protocol.go:7:2: cannot find package "github.com/nlpodyssey/gopickle/pickle" in any of: /usr/lib/go-1.22/src/github.com/nlpodyssey/gopickle/pickle (from $GOROOT) /<<PKGBUILDDIR>>/_build/src/github.com/nlpodyssey/gopickle/pickle (from $GOPATH) src/gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/socket/fail2banSocket.go:6:2: cannot find package "github.com/nlpodyssey/gopickle/types" in any of: /usr/lib/go-1.22/src/github.com/nlpodyssey/gopickle/types (from $GOROOT) /<<PKGBUILDDIR>>/_build/src/github.com/nlpodyssey/gopickle/types (from $GOPATH) dh_auto_build: error: cd _build && go install -trimpath -v -p 12 gitlab.com/hectorjsmith/fail2ban-prometheus-exporter gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/auth gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/cfg gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/collector/f2b gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/collector/textfile gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/server gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/socket returned exit code 1 make: *** [debian/rules:4: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 -------------------------------------------------------------------------------- Build finished at 2024-02-27T19:51:28Z -- By now the computer has moved out of the den and into the rest of your life. It will consume all of your spare time, and even your vacation, if you let it. It will empty your wallet and tie up your thoughts. It will drive away your family. Your friends will start to think of you as a bore. And what for? - The True Computerist by Tom Pittman