diff options
Diffstat (limited to 'testing/sshguard/APKBUILD')
-rw-r--r-- | testing/sshguard/APKBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/testing/sshguard/APKBUILD b/testing/sshguard/APKBUILD new file mode 100644 index 0000000000..089c5874cd --- /dev/null +++ b/testing/sshguard/APKBUILD @@ -0,0 +1,49 @@ +# 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" |