diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-02-12 10:11:21 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-02-12 10:11:21 +0000 |
commit | b1c23cfe8fff7571899e39ed6dd2a9cf3043fd39 (patch) | |
tree | 6f617fc0217566edb7bcb7d0f8d00808a3305ef5 /main/sshguard/APKBUILD | |
parent | 5d7f87f856d5ab5c13148f781a309af5c9ceff02 (diff) | |
download | aports-b1c23cfe8fff7571899e39ed6dd2a9cf3043fd39.tar.bz2 aports-b1c23cfe8fff7571899e39ed6dd2a9cf3043fd39.tar.xz |
main/sshguard: moved from testing
Diffstat (limited to 'main/sshguard/APKBUILD')
-rw-r--r-- | main/sshguard/APKBUILD | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/main/sshguard/APKBUILD b/main/sshguard/APKBUILD new file mode 100644 index 000000000..a337bbfc6 --- /dev/null +++ b/main/sshguard/APKBUILD @@ -0,0 +1,51 @@ +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=sshguard +pkgver=1.5 +pkgrel=1 +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 flex bison" +install="" +subpackages="$pkgname-doc" +source="http://downloads.sourceforge.net/project/sshguard/sshguard/sshguard-$pkgver/sshguard-$pkgver.tar.bz2 + sshguard.initd + sshguard.confd + parser.patch" + +_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 +84ff8858abb8d5a673037cf592bb6794 parser.patch" |