# Contributor: Natanael Copa # Contributor: Michał Polański # Maintainer: Natanael Copa pkgname=sshguard pkgver=2.4.3 pkgrel=0 pkgdesc="Protects hosts from brute-force attacks against SSH and other services" url="https://www.sshguard.net/" arch="all" license="ISC" depends="iptables" makedepends="flex bison autoconf automake libtool" subpackages="$pkgname-openrc $pkgname-doc" source="https://downloads.sourceforge.net/project/sshguard/sshguard/$pkgver/sshguard-$pkgver.tar.gz sshguard.initd sshguard.confd " build() { CFLAGS="$CFLAGS -flto=auto" \ ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc make } check() { make check } package() { make DESTDIR="$pkgdir" install install -Dm755 "$srcdir"/sshguard.initd "$pkgdir"/etc/init.d/sshguard install -Dm644 "$srcdir"/sshguard.confd "$pkgdir"/etc/conf.d/sshguard } sha512sums=" eeecea1007c1a21a28835a6d29c2cbffc647b3ab09a3525600e91b978d4ebdda9e6a7e2884da26bb1d7f64de561ac8bd1788bb776730d37b7a4fa49b22885b4a sshguard-2.4.3.tar.gz c1deeee9a0246dae9d53ba41b497983102ecf50d597cdb7bd8ad3d535172efe8ee9e483b80e8adeb2226efbc873ba60b4f39efd45b6936f7559f271e8c8ca3fa sshguard.initd 7ba6055d39b4d4550f76f0a63643ccd39317d3919e2c362c4f8e323c553779b56cccd80ce35289294450a81ed6127664ba7b6c0b746065a3a56b8c70920ab1e2 sshguard.confd "