mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-01 14:52:14 +01:00
50 lines
1.2 KiB
Plaintext
50 lines
1.2 KiB
Plaintext
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=sshguard
|
|
pkgver=1.5
|
|
pkgrel=0
|
|
pkgdesc="Log monitor that blocks with iptables on bad behaviour"
|
|
url="http://www.sshguard.net/"
|
|
arch="all"
|
|
license="BSD"
|
|
depends="iptables"
|
|
depends_dev=""
|
|
makedepends="$depends_dev"
|
|
install=""
|
|
subpackages="$pkgname-doc"
|
|
source="http://downloads.sourceforge.net/project/sshguard/sshguard/sshguard-$pkgver/sshguard-$pkgver.tar.bz2
|
|
sshguard.initd
|
|
sshguard.confd"
|
|
|
|
_builddir="$srcdir"/sshguard-$pkgver
|
|
prepare() {
|
|
local i
|
|
cd "$_builddir"
|
|
for i in $source; do
|
|
case $i in
|
|
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
|
|
esac
|
|
done
|
|
}
|
|
|
|
build() {
|
|
cd "$_builddir"
|
|
./configure --prefix=/usr \
|
|
--with-firewall=iptables \
|
|
|| return 1
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
make DESTDIR="$pkgdir" install || return 1
|
|
install -Dm755 "$srcdir"/sshguard.initd \
|
|
"$pkgdir"/etc/init.d/sshguard || return 1
|
|
install -Dm755 "$srcdir"/sshguard.confd \
|
|
"$pkgdir"/etc/conf.d/sshguard || return 1
|
|
}
|
|
|
|
md5sums="11b9f47f9051e25bdfe84a365c961ec1 sshguard-1.5.tar.bz2
|
|
13eb7c7e7a91cc347dbd6ff111d662c4 sshguard.initd
|
|
02dc914d310ea759a66ebb136f495e4e sshguard.confd"
|