Sshguard errors

Never heard of this even mentioned until one day booting…
I get an error on boot and shutdown warning me about sshguard failing.

I figure this sub would have a lot of knowledge regarding this- afterall it is networking…

But pacman can’t seem to find sshguard even existing.

I went forth and cloned it from AUR and proceeded to makepkg, but one thing or another I get a silly error at the last line and it aborts.

~  git clone https://aur.archlinux.org/sshguard-git.git                                                                         ✔ 
Cloning into 'sshguard-git'...
remote: Enumerating objects: 9, done.
remote: Counting objects: 100% (9/9), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 9 (delta 0), reused 9 (delta 0), pack-reused 0
Receiving objects: 100% (9/9), done.
    ~  cd sshguard-git                                                                                                              ✔ 
    ~/sshguard-git    master  makepkg -si                                                                                        ✔ 
==> Making package: sshguard-git v2.0.0.r15.g318bf4e-1 (Tue 21 Jun 2022 05:54:54 AM PDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning sshguard git repo...
Cloning into bare repository '/home/myifeeizzag/sshguard-git/sshguard'...
remote: Enumerating objects: 3778, done.
remote: Counting objects: 100% (3778/3778), done.
remote: Compressing objects: 100% (1323/1323), done.
remote: Total 3778 (delta 2775), reused 3377 (delta 2437), pack-reused 0
Receiving objects: 100% (3778/3778), 2.64 MiB | 1.75 MiB/s, done.
Resolving deltas: 100% (2775/2775), done.
==> Validating source files with md5sums...
    sshguard ... Skipped
==> Extracting sources...
  -> Creating working copy of sshguard git repo...
Cloning into 'sshguard'...
done.
==> Starting prepare()...
configure.ac:6: warning: 'AM_CONFIG_HEADER': this macro is obsolete.
configure.ac:6: You should use the 'AC_CONFIG_HEADERS' macro instead.
./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from...
aclocal.m4:859: AM_CONFIG_HEADER is expanded from...
configure.ac:6: the top level
configure.ac:15: warning: The macro `AC_PROG_CC_C99' is obsolete.
configure.ac:15: You should run autoupdate.
./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from...
configure.ac:15: the top level
configure.ac:19: warning: AC_PROG_LEX without either yywrap or noyywrap is obsolete
./lib/autoconf/programs.m4:716: _AC_PROG_LEX is expanded from...
./lib/autoconf/programs.m4:709: AC_PROG_LEX is expanded from...
aclocal.m4:728: AM_PROG_LEX is expanded from...
configure.ac:19: the top level
configure.ac:40: warning: AC_OUTPUT should be used without arguments.
configure.ac:40: You should run autoupdate.
configure.ac:18: installing './ar-lib'
configure.ac:12: installing './compile'
configure.ac:7: installing './install-sh'
configure.ac:7: installing './missing'
configure.ac:9: installing './tap-driver.sh'
src/blocker/Makefile.am:5: warning: source file '../common/service_names.c' is in a subdirectory,
src/blocker/Makefile.am:5: but option 'subdir-objects' is disabled
automake: warning: possible forward-incompatibility.
automake: At least one source file is in a subdirectory, but the 'subdir-objects'
automake: automake option hasn't been enabled.  For now, the corresponding output
automake: object file(s) will be placed in the top-level directory.  However, this
automake: behavior may change in a future Automake major version, with object
automake: files being placed in the same subdirectory as the corresponding sources.
automake: You are advised to start using 'subdir-objects' option throughout your
automake: project, to avoid future incompatibilities.
src/blocker/Makefile.am:5: warning: source file '../common/simclist.c' is in a subdirectory,
src/blocker/Makefile.am:5: but option 'subdir-objects' is disabled
src/blocker/Makefile.am: installing './depcomp'
src/fw/Makefile.am:26: warning: source file '../common/simclist.c' is in a subdirectory,
src/fw/Makefile.am:26: but option 'subdir-objects' is disabled
configure.ac: installing './ylwrap'
parallel-tests: installing './test-driver'
==> Starting pkgver()...
==> Updated version: sshguard-git v2.4.2.r6.g653c2dd-1
==> Starting build()...
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for wchar.h... yes
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
## -------------- ##
## Program Checks ##
## -------------- ##
checking for ranlib... ranlib
checking for bison... bison -y
checking for ar... ar
checking the archiver (ar) interface... ar
checking for flex... flex
checking for lex output file root... lex.yy
checking for lex library... none needed
checking for library containing yywrap... no
checking whether yytext is a pointer... yes
## ----------------------------------- ##
## Headers, Types, and Compiler Checks ##
## ----------------------------------- ##
checking for getopt.h... yes
checking for sys/capsicum.h... no
checking for sys/capability.h... yes
checking for cap_enter... no
checking for cap_rights_limit... no
checking for rst2man... no
checking for rst2man.py... no
configure: WARNING: rst2man not found; using pre-built man pages
## ----------------- ##
## Library Functions ##
## ----------------- ##
checking for library containing gethostbyname... none required
checking for library containing pthread_create... none required
checking for library containing socket... none required
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/blocker/Makefile
config.status: creating src/fw/Makefile
config.status: creating src/parser/Makefile
config.status: creating src/common/config.h
config.status: executing depfiles commands
Making all in src
make[1]: Entering directory '/home/myifeeizzag/sshguard-git/src/sshguard/src'
Making all in blocker
make[2]: Entering directory '/home/myifeeizzag/sshguard-git/src/sshguard/src/blocker'
  CC       service_names.o
  CC       attack.o
  CC       simclist.o
  CC       blocker.o
  CC       blocklist.o
  CC       hash_32a.o
  CC       sshguard_blacklist.o
  CC       sshguard_options.o
  CC       sshguard_whitelist.o
  CCLD     sshg-blocker
make[2]: Leaving directory '/home/myifeeizzag/sshguard-git/src/sshguard/src/blocker'
Making all in fw
make[2]: Entering directory '/home/myifeeizzag/sshguard-git/src/sshguard/src/fw'
cat sshg-fw-firewalld.sh ./sshg-fw.in > sshg-fw-firewalld
cat sshg-fw-ipfilter.sh ./sshg-fw.in > sshg-fw-ipfilter
cat sshg-fw-ipfw.sh ./sshg-fw.in > sshg-fw-ipfw
cat sshg-fw-ipset.sh ./sshg-fw.in > sshg-fw-ipset
cat sshg-fw-iptables.sh ./sshg-fw.in > sshg-fw-iptables
cat sshg-fw-nft-sets.sh ./sshg-fw.in > sshg-fw-nft-sets
cat sshg-fw-null.sh ./sshg-fw.in > sshg-fw-null
  CC       simclist.o
  CC       hosts.o
cat sshg-fw-pf.sh ./sshg-fw.in > sshg-fw-pf
  CCLD     sshg-fw-hosts
make[2]: Leaving directory '/home/myifeeizzag/sshguard-git/src/sshguard/src/fw'
Making all in parser
make[2]: Entering directory '/home/myifeeizzag/sshguard-git/src/sshguard/src/parser'
  YACC     attack_parser.c
updating attack_parser.h
make  all-am
make[3]: Entering directory '/home/myifeeizzag/sshguard-git/src/sshguard/src/parser'
  CC       attack.o
  CC       attack_parser.o
  LEX      attack_scanner.c
  CC       parser.o
flex version 2.6.4 usage statistics:
  scanner options: -dvI8 -Cem
  18164/19000 NFA states
  22039/27000 DFA states (375732 words)
  97 rules
  Compressed tables always back-up
  29/40 start conditions
  8595 epsilon states, 5778 double epsilon states
  1390/1400 character classes needed 29476/29500 words of storage, 0 reused
  1806658 state/nextstate pairs created
  161485/1645173 unique/duplicate transitions
  26371/27000 base-def entries created
  382921/384000 (peak 720656) nxt-chk entries created
  21660/360000 (peak 359556) template nxt-chk entries created
  163009 empty table entries
  7355 protos created
  4332 templates created, 12304 uses
  83/256 equivalence classes created
  5/256 meta-equivalence classes created
  4169 (4090 saved) hash collisions, 139505 DFAs equal
  506 sets of reallocations needed
  818923 total table entries needed
  CC       attack_scanner.o
  CCLD     sshg-parser
make[3]: Leaving directory '/home/myifeeizzag/sshguard-git/src/sshguard/src/parser'
make[2]: Leaving directory '/home/myifeeizzag/sshguard-git/src/sshguard/src/parser'
make[2]: Entering directory '/home/myifeeizzag/sshguard-git/src/sshguard/src'
sed -e 's|@libexecdir[@]|/usr/lib/sshguard|g' -e 's|@sysconfdir[@]|/etc|g' -e 's|@sshguardversion[@]|2.4.2|g' ./sshguard.in > sshguard
make[2]: Leaving directory '/home/myifeeizzag/sshguard-git/src/sshguard/src'
make[1]: Leaving directory '/home/myifeeizzag/sshguard-git/src/sshguard/src'
make[1]: Entering directory '/home/myifeeizzag/sshguard-git/src/sshguard'
make[1]: *** No rule to make target 'doc/sshguard-setup.7', needed by 'all-am'.  Stop.
make[1]: Leaving directory '/home/myifeeizzag/sshguard-git/src/sshguard'
make: *** [Makefile:481: all-recursive] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
    ~/sshguard-git    master !1  cd doc/sshguard-setup7                                                                4 ✘  14s  
cd: no such file or directory: doc/sshguard-setup7
    ~/sshguard-git    master !1  cd doc/sshguard                                                                               1 ✘ 
cd: no such file or directory: doc/sshguard
    ~/sshguard-git    master !1  makepkg -si                                                                                   1 ✘ 
==> Making package: sshguard-git v2.4.2.r6.g653c2dd-1 (Tue 21 Jun 2022 05:58:07 AM PDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating sshguard git repo...
Fetching origin
==> Validating source files with md5sums...
    sshguard ... Skipped
==> Extracting sources...
  -> Creating working copy of sshguard git repo...
Switched to a new branch 'makepkg'
==> Starting prepare()...
configure.ac:6: warning: 'AM_CONFIG_HEADER': this macro is obsolete.
configure.ac:6: You should use the 'AC_CONFIG_HEADERS' macro instead.
./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from...
aclocal.m4:859: AM_CONFIG_HEADER is expanded from...
configure.ac:6: the top level
configure.ac:15: warning: The macro `AC_PROG_CC_C99' is obsolete.
configure.ac:15: You should run autoupdate.
./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from...
configure.ac:15: the top level
configure.ac:19: warning: AC_PROG_LEX without either yywrap or noyywrap is obsolete
./lib/autoconf/programs.m4:716: _AC_PROG_LEX is expanded from...
./lib/autoconf/programs.m4:709: AC_PROG_LEX is expanded from...
aclocal.m4:728: AM_PROG_LEX is expanded from...
configure.ac:19: the top level
configure.ac:40: warning: AC_OUTPUT should be used without arguments.
configure.ac:40: You should run autoupdate.
src/blocker/Makefile.am:5: warning: source file '../common/service_names.c' is in a subdirectory,
src/blocker/Makefile.am:5: but option 'subdir-objects' is disabled
automake: warning: possible forward-incompatibility.
automake: At least one source file is in a subdirectory, but the 'subdir-objects'
automake: automake option hasn't been enabled.  For now, the corresponding output
automake: object file(s) will be placed in the top-level directory.  However, this
automake: behavior may change in a future Automake major version, with object
automake: files being placed in the same subdirectory as the corresponding sources.
automake: You are advised to start using 'subdir-objects' option throughout your
automake: project, to avoid future incompatibilities.
src/blocker/Makefile.am:5: warning: source file '../common/simclist.c' is in a subdirectory,
src/blocker/Makefile.am:5: but option 'subdir-objects' is disabled
src/fw/Makefile.am:26: warning: source file '../common/simclist.c' is in a subdirectory,
src/fw/Makefile.am:26: but option 'subdir-objects' is disabled
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for wchar.h... yes
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
## -------------- ##
## Program Checks ##
## -------------- ##
checking for ranlib... ranlib
checking for bison... bison -y
checking for ar... ar
checking the archiver (ar) interface... ar
checking for flex... flex
checking for lex output file root... lex.yy
checking for lex library... none needed
checking for library containing yywrap... no
checking whether yytext is a pointer... yes
## ----------------------------------- ##
## Headers, Types, and Compiler Checks ##
## ----------------------------------- ##
checking for getopt.h... yes
checking for sys/capsicum.h... no
checking for sys/capability.h... yes
checking for cap_enter... no
checking for cap_rights_limit... no
checking for rst2man... no
checking for rst2man.py... no
configure: WARNING: rst2man not found; using pre-built man pages
## ----------------- ##
## Library Functions ##
## ----------------- ##
checking for library containing gethostbyname... none required
checking for library containing pthread_create... none required
checking for library containing socket... none required
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/blocker/Makefile
config.status: creating src/fw/Makefile
config.status: creating src/parser/Makefile
config.status: creating src/common/config.h
config.status: src/common/config.h is unchanged
config.status: executing depfiles commands
Making all in src
make[1]: Entering directory '/home/myifeeizzag/sshguard-git/src/sshguard/src'
Making all in blocker
make[2]: Entering directory '/home/myifeeizzag/sshguard-git/src/sshguard/src/blocker'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/myifeeizzag/sshguard-git/src/sshguard/src/blocker'
Making all in fw
make[2]: Entering directory '/home/myifeeizzag/sshguard-git/src/sshguard/src/fw'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/myifeeizzag/sshguard-git/src/sshguard/src/fw'
Making all in parser
make[2]: Entering directory '/home/myifeeizzag/sshguard-git/src/sshguard/src/parser'
make  all-am
make[3]: Entering directory '/home/myifeeizzag/sshguard-git/src/sshguard/src/parser'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/myifeeizzag/sshguard-git/src/sshguard/src/parser'
make[2]: Leaving directory '/home/myifeeizzag/sshguard-git/src/sshguard/src/parser'
make[2]: Entering directory '/home/myifeeizzag/sshguard-git/src/sshguard/src'
sed -e 's|@libexecdir[@]|/usr/lib/sshguard|g' -e 's|@sysconfdir[@]|/etc|g' -e 's|@sshguardversion[@]|2.4.2|g' ./sshguard.in > sshguard
make[2]: Leaving directory '/home/myifeeizzag/sshguard-git/src/sshguard/src'
make[1]: Leaving directory '/home/myifeeizzag/sshguard-git/src/sshguard/src'
make[1]: Entering directory '/home/myifeeizzag/sshguard-git/src/sshguard'
make[1]: *** No rule to make target 'doc/sshguard-setup.7', needed by 'all-am'.  Stop.
make[1]: Leaving directory '/home/myifeeizzag/sshguard-git/src/sshguard'
make: *** [Makefile:481: all-recursive] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
    ~/sshguard-git    master !1  sudo make install                                                                      4 ✘  7s  
[sudo] password for myifeeizzag: 
make: *** No rule to make target 'install'.  Stop.
    ~/sshguard-git    master !1  sudo makepkg -si                                                                       2 ✘  4s  
==> ERROR: Running makepkg as root is not allowed as it can cause permanent,
catastrophic damage to your system.
    ~/sshguard-git    master !1  makepkg -h                                                                                   10 ✘ 
makepkg (pacman) 6.0.1

Make packages compatible for use with pacman

Usage: /usr/bin/makepkg [options]

Options:
  -A, --ignorearch Ignore incomplete arch field in PKGBUILD
  -c, --clean      Clean up work files after build
  -C, --cleanbuild Remove $srcdir/ dir before building the package
  -d, --nodeps     Skip all dependency checks
  -e, --noextract  Do not extract source files (use existing $srcdir/ dir)
  -f, --force      Overwrite existing package
  -g, --geninteg   Generate integrity checks for source files
  -h, --help       Show this help message and exit
  -i, --install    Install package after successful build
  -L, --log        Log package build process
  -m, --nocolor    Disable colorized output messages
  -o, --nobuild    Download and extract files only
  -p <file>        Use an alternate build script (instead of 'PKGBUILD')
  -r, --rmdeps     Remove installed dependencies after a successful build
  -R, --repackage  Repackage contents of the package without rebuilding
  -s, --syncdeps   Install missing dependencies with pacman
  -S, --source     Generate a source-only tarball without downloaded sources
  -V, --version    Show version information and exit
  --allsource      Generate a source-only tarball including downloaded sources
  --check          Run the check() function in the PKGBUILD
  --config <file>  Use an alternate config file (instead of '/etc/makepkg.conf')
  --holdver        Do not update VCS sources
  --key <key>      Specify a key to use for gpg signing instead of the default
  --noarchive      Do not create package archive
  --nocheck        Do not run the check() function in the PKGBUILD
  --noprepare      Do not run the prepare() function in the PKGBUILD
  --nosign         Do not create a signature for the package
  --packagelist    Only list package filepaths that would be produced
  --printsrcinfo   Print the generated SRCINFO and exit
  --sign           Sign the resulting package with gpg
  --skipchecksums  Do not verify checksums of the source files
  --skipinteg      Do not perform any verification checks on source files
  --skippgpcheck   Do not verify source files with PGP signatures
  --verifysource   Download source files (if needed) and perform integrity checks

These options can be passed to pacman:

  --asdeps         Install packages as non-explicitly installed
  --needed         Do not reinstall the targets that are already up to date
  --noconfirm      Do not ask for confirmation when resolving dependencies
  --noprogressbar  Do not show a progress bar when downloading files

If -p is not specified, makepkg will look for 'PKGBUILD'

    ~/sshguard-git    master !1  makepkg -f                                                                                      ✔ 
==> Making package: sshguard-git v2.4.2.r6.g653c2dd-1 (Tue 21 Jun 2022 05:58:48 AM PDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating sshguard git repo...
Fetching origin
==> Validating source files with md5sums...
    sshguard ... Skipped
==> Extracting sources...
  -> Creating working copy of sshguard git repo...
Reset branch 'makepkg'
==> Starting prepare()...
configure.ac:6: warning: 'AM_CONFIG_HEADER': this macro is obsolete.
configure.ac:6: You should use the 'AC_CONFIG_HEADERS' macro instead.
./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from...
aclocal.m4:859: AM_CONFIG_HEADER is expanded from...
configure.ac:6: the top level
configure.ac:15: warning: The macro `AC_PROG_CC_C99' is obsolete.
configure.ac:15: You should run autoupdate.
./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from...
configure.ac:15: the top level
configure.ac:19: warning: AC_PROG_LEX without either yywrap or noyywrap is obsolete
./lib/autoconf/programs.m4:716: _AC_PROG_LEX is expanded from...
./lib/autoconf/programs.m4:709: AC_PROG_LEX is expanded from...
aclocal.m4:728: AM_PROG_LEX is expanded from...
configure.ac:19: the top level
configure.ac:40: warning: AC_OUTPUT should be used without arguments.
configure.ac:40: You should run autoupdate.
src/blocker/Makefile.am:5: warning: source file '../common/service_names.c' is in a subdirectory,
src/blocker/Makefile.am:5: but option 'subdir-objects' is disabled
automake: warning: possible forward-incompatibility.
automake: At least one source file is in a subdirectory, but the 'subdir-objects'
automake: automake option hasn't been enabled.  For now, the corresponding output
automake: object file(s) will be placed in the top-level directory.  However, this
automake: behavior may change in a future Automake major version, with object
automake: files being placed in the same subdirectory as the corresponding sources.
automake: You are advised to start using 'subdir-objects' option throughout your
automake: project, to avoid future incompatibilities.
src/blocker/Makefile.am:5: warning: source file '../common/simclist.c' is in a subdirectory,
src/blocker/Makefile.am:5: but option 'subdir-objects' is disabled
src/fw/Makefile.am:26: warning: source file '../common/simclist.c' is in a subdirectory,
src/fw/Makefile.am:26: but option 'subdir-objects' is disabled
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for wchar.h... yes
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
## -------------- ##
## Program Checks ##
## -------------- ##
checking for ranlib... ranlib
checking for bison... bison -y
checking for ar... ar
checking the archiver (ar) interface... ar
checking for flex... flex
checking for lex output file root... lex.yy
checking for lex library... none needed
checking for library containing yywrap... no
checking whether yytext is a pointer... yes
## ----------------------------------- ##
## Headers, Types, and Compiler Checks ##
## ----------------------------------- ##
checking for getopt.h... yes
checking for sys/capsicum.h... no
checking for sys/capability.h... yes
checking for cap_enter... no
checking for cap_rights_limit... no
checking for rst2man... no
checking for rst2man.py... no
configure: WARNING: rst2man not found; using pre-built man pages
## ----------------- ##
## Library Functions ##
## ----------------- ##
checking for library containing gethostbyname... none required
checking for library containing pthread_create... none required
checking for library containing socket... none required
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/blocker/Makefile
config.status: creating src/fw/Makefile
config.status: creating src/parser/Makefile
config.status: creating src/common/config.h
config.status: src/common/config.h is unchanged
config.status: executing depfiles commands
Making all in src
make[1]: Entering directory '/home/myifeeizzag/sshguard-git/src/sshguard/src'
Making all in blocker
make[2]: Entering directory '/home/myifeeizzag/sshguard-git/src/sshguard/src/blocker'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/myifeeizzag/sshguard-git/src/sshguard/src/blocker'
Making all in fw
make[2]: Entering directory '/home/myifeeizzag/sshguard-git/src/sshguard/src/fw'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/myifeeizzag/sshguard-git/src/sshguard/src/fw'
Making all in parser
make[2]: Entering directory '/home/myifeeizzag/sshguard-git/src/sshguard/src/parser'
make  all-am
make[3]: Entering directory '/home/myifeeizzag/sshguard-git/src/sshguard/src/parser'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/myifeeizzag/sshguard-git/src/sshguard/src/parser'
make[2]: Leaving directory '/home/myifeeizzag/sshguard-git/src/sshguard/src/parser'
make[2]: Entering directory '/home/myifeeizzag/sshguard-git/src/sshguard/src'
sed -e 's|@libexecdir[@]|/usr/lib/sshguard|g' -e 's|@sysconfdir[@]|/etc|g' -e 's|@sshguardversion[@]|2.4.2|g' ./sshguard.in > sshguard
make[2]: Leaving directory '/home/myifeeizzag/sshguard-git/src/sshguard/src'
make[1]: Leaving directory '/home/myifeeizzag/sshguard-git/src/sshguard/src'
make[1]: Entering directory '/home/myifeeizzag/sshguard-git/src/sshguard'
make[1]: *** No rule to make target 'doc/sshguard-setup.7', needed by 'all-am'.  Stop.
make[1]: Leaving directory '/home/myifeeizzag/sshguard-git/src/sshguard'
make: *** [Makefile:481: all-recursive] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
    ~/sshguard-git    master !1  makepkg -s                                                                             4 ✘  6s  
==> Making package: sshguard-git v2.4.2.r6.g653c2dd-1 (Tue 21 Jun 2022 05:58:59 AM PDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating sshguard git repo...
Fetching origin
==> Validating source files with md5sums...
    sshguard ... Skipped
==> Extracting sources...
  -> Creating working copy of sshguard git repo...
Reset branch 'makepkg'
==> Starting prepare()...
configure.ac:6: warning: 'AM_CONFIG_HEADER': this macro is obsolete.
configure.ac:6: You should use the 'AC_CONFIG_HEADERS' macro instead.
./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from...
aclocal.m4:859: AM_CONFIG_HEADER is expanded from...
configure.ac:6: the top level
configure.ac:15: warning: The macro `AC_PROG_CC_C99' is obsolete.
configure.ac:15: You should run autoupdate.
./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from...
configure.ac:15: the top level
configure.ac:19: warning: AC_PROG_LEX without either yywrap or noyywrap is obsolete
./lib/autoconf/programs.m4:716: _AC_PROG_LEX is expanded from...
./lib/autoconf/programs.m4:709: AC_PROG_LEX is expanded from...
aclocal.m4:728: AM_PROG_LEX is expanded from...
configure.ac:19: the top level
configure.ac:40: warning: AC_OUTPUT should be used without arguments.
configure.ac:40: You should run autoupdate.
src/blocker/Makefile.am:5: warning: source file '../common/service_names.c' is in a subdirectory,
src/blocker/Makefile.am:5: but option 'subdir-objects' is disabled
automake: warning: possible forward-incompatibility.
automake: At least one source file is in a subdirectory, but the 'subdir-objects'
automake: automake option hasn't been enabled.  For now, the corresponding output
automake: object file(s) will be placed in the top-level directory.  However, this
automake: behavior may change in a future Automake major version, with object
automake: files being placed in the same subdirectory as the corresponding sources.
automake: You are advised to start using 'subdir-objects' option throughout your
automake: project, to avoid future incompatibilities.
src/blocker/Makefile.am:5: warning: source file '../common/simclist.c' is in a subdirectory,
src/blocker/Makefile.am:5: but option 'subdir-objects' is disabled
src/fw/Makefile.am:26: warning: source file '../common/simclist.c' is in a subdirectory,
src/fw/Makefile.am:26: but option 'subdir-objects' is disabled
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for wchar.h... yes
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
## -------------- ##
## Program Checks ##
## -------------- ##
checking for ranlib... ranlib
checking for bison... bison -y
checking for ar... ar
checking the archiver (ar) interface... ar
checking for flex... flex
checking for lex output file root... lex.yy
checking for lex library... none needed
checking for library containing yywrap... no
checking whether yytext is a pointer... yes
## ----------------------------------- ##
## Headers, Types, and Compiler Checks ##
## ----------------------------------- ##
checking for getopt.h... yes
checking for sys/capsicum.h... no
checking for sys/capability.h... yes
checking for cap_enter... no
checking for cap_rights_limit... no
checking for rst2man... no
checking for rst2man.py... no
configure: WARNING: rst2man not found; using pre-built man pages
## ----------------- ##
## Library Functions ##
## ----------------- ##
checking for library containing gethostbyname... none required
checking for library containing pthread_create... none required
checking for library containing socket... none required
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/blocker/Makefile
config.status: creating src/fw/Makefile
config.status: creating src/parser/Makefile
config.status: creating src/common/config.h
config.status: src/common/config.h is unchanged
config.status: executing depfiles commands
Making all in src
make[1]: Entering directory '/home/myifeeizzag/sshguard-git/src/sshguard/src'
Making all in blocker
make[2]: Entering directory '/home/myifeeizzag/sshguard-git/src/sshguard/src/blocker'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/myifeeizzag/sshguard-git/src/sshguard/src/blocker'
Making all in fw
make[2]: Entering directory '/home/myifeeizzag/sshguard-git/src/sshguard/src/fw'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/myifeeizzag/sshguard-git/src/sshguard/src/fw'
Making all in parser
make[2]: Entering directory '/home/myifeeizzag/sshguard-git/src/sshguard/src/parser'
make  all-am
make[3]: Entering directory '/home/myifeeizzag/sshguard-git/src/sshguard/src/parser'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/myifeeizzag/sshguard-git/src/sshguard/src/parser'
make[2]: Leaving directory '/home/myifeeizzag/sshguard-git/src/sshguard/src/parser'
make[2]: Entering directory '/home/myifeeizzag/sshguard-git/src/sshguard/src'
sed -e 's|@libexecdir[@]|/usr/lib/sshguard|g' -e 's|@sysconfdir[@]|/etc|g' -e 's|@sshguardversion[@]|2.4.2|g' ./sshguard.in > sshguard
make[2]: Leaving directory '/home/myifeeizzag/sshguard-git/src/sshguard/src'
make[1]: Leaving directory '/home/myifeeizzag/sshguard-git/src/sshguard/src'
make[1]: Entering directory '/home/myifeeizzag/sshguard-git/src/sshguard'
make[1]: *** No rule to make target 'doc/sshguard-setup.7', needed by 'all-am'.  Stop.
make[1]: Leaving directory '/home/myifeeizzag/sshguard-git/src/sshguard'
make: *** [Makefile:481: all-recursive] Error 1
==> ERROR: A failure occurred in build().

I’ve not done anything I can even remotely connect to affecting my networking build. Any ideas? It seems this is a rather important tool for network security.

How did you search for it?

Hi @Unruler,

It’s in the community repository:

$ pamac search sshguard

sshguard-git                                                                                                                                                                                                               v2.0.0.r15.g318bf4e-1  AUR
Brute force detector for SSH, Exim, VSFTPD and more.
sshguard                                                                                                                                                                                                                   2.4.2-2                community
Brute force detector for SSH, Exim, VSFTPD and more. Blocks by ip with iptables

And not installed by default. So I’m guessing it’s required by something else you have. Check with:

pamac info sshguard

For example:

$ pamac info sshguard

Name                  : sshguard
Version               : 2.4.2-2
Description           : Brute force detector for SSH, Exim, VSFTPD and more. Blocks by ip with iptables
URL                   : https://www.sshguard.net/
Licences              : GPL
Repository            : community
Installed Size        : 1.7 MB
Groups                : --
Depends On            : --
Optional Dependencies : iptables [Installed]
nftables
firewalld
ipset
Provides              : --
Replaces              : --
Conflicts With        : --
Packager              : Leonidas Spyropoulos <artafinde@archlinux.org>
Build Date            : Tue 12 Apr 2022 18:01:29
Validated By          : MD5 Sum  SHA-256 Sum  Signature

Look for a Required By line. If empty, or not present, I think it’s safe to remove it:

pamac remove sshguard

Hope this helps!

No it’s not.

Use the package from the repo or fail2ban

Also consider moving your ssh service to non default port and setup firewalld to protect everything else.

Format your terminal output using the code tag - not the quote tag