aboutsummaryrefslogtreecommitdiffstats
path: root/testing/sshguard/APKBUILD
diff options
context:
space:
mode:
authorAndrew Manison <amanison@anselsystems.com>2012-01-07 06:07:55 +0000
committerAndrew Manison <amanison@anselsystems.com>2012-01-07 06:07:55 +0000
commite2901940d45d4e52920f9ebdfc0806c400dcda00 (patch)
tree5dfbe1d547b2845e2ecb58ffd13561405650ae5e /testing/sshguard/APKBUILD
parentbbcfe6f7780c9ace7c617aedcc65a6c126b576bb (diff)
parent5c7467518a3e5e9a07977bef1112c773bcd17a9c (diff)
downloadaports-e2901940d45d4e52920f9ebdfc0806c400dcda00.tar.bz2
aports-e2901940d45d4e52920f9ebdfc0806c400dcda00.tar.xz
Merge remote-tracking branch 'alpine/master'
Conflicts: main/rrdtool/APKBUILD testing/nfdump/APKBUILD
Diffstat (limited to 'testing/sshguard/APKBUILD')
-rw-r--r--testing/sshguard/APKBUILD49
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"