diff options
author | André Klitzing <aklitzing@gmail.com> | 2017-03-09 11:22:43 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-03-16 15:15:57 +0000 |
commit | c7821f69d591034e7b0fcb13c7cf38ba09b1b61d (patch) | |
tree | dd56a2c8ec9ccf7c9a500c34dbf78f7ce742e843 /main/sshguard/APKBUILD | |
parent | a8afb9e7017e65c023966c6888b253b4b238f3b5 (diff) | |
download | aports-c7821f69d591034e7b0fcb13c7cf38ba09b1b61d.tar.bz2 aports-c7821f69d591034e7b0fcb13c7cf38ba09b1b61d.tar.xz |
main/sshguard: upgrade to 2.0.0 and modernize abuild
Diffstat (limited to 'main/sshguard/APKBUILD')
-rw-r--r-- | main/sshguard/APKBUILD | 27 |
1 files changed, 5 insertions, 22 deletions
diff --git a/main/sshguard/APKBUILD b/main/sshguard/APKBUILD index f4df3cb199..2a4e8dfb71 100644 --- a/main/sshguard/APKBUILD +++ b/main/sshguard/APKBUILD @@ -1,7 +1,7 @@ # Contributor: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=sshguard -pkgver=1.6.4 +pkgver=2.0.0 pkgrel=0 pkgdesc="Log monitor that blocks with iptables on bad behaviour" url="http://www.sshguard.net/" @@ -16,31 +16,20 @@ source="http://downloads.sourceforge.net/project/sshguard/sshguard/$pkgver/sshgu 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 -} +builddir="$srcdir"/sshguard-$pkgver build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ - --with-firewall=iptables \ || return 1 make || return 1 } package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="$pkgdir" install || return 1 install -Dm755 "$srcdir"/sshguard.initd \ "$pkgdir"/etc/init.d/sshguard || return 1 @@ -48,12 +37,6 @@ package() { "$pkgdir"/etc/conf.d/sshguard || return 1 } -md5sums="6f8fcbf5384c5c429dbbf13efeeaad1d sshguard-1.6.4.tar.gz -a6d13584b6919a7ebb431e48efa30ab2 sshguard.initd -02dc914d310ea759a66ebb136f495e4e sshguard.confd" -sha256sums="654d5412ed010e500e2715ddeebfda57ab23c47a2bd30dfdc1e68c4f04c912a9 sshguard-1.6.4.tar.gz -dfdd53abae3c94a9390a21cfe14ed12ddaff5c74d275336705de74d05d2beeca sshguard.initd -c48cfe8ad166133d99ddc44ba4dd9abbb64718eda6c6bbced931d8a97bf9cddc sshguard.confd" -sha512sums="ac8eeb7c303757cfd8ebfa69425afa1a1c6f07998cbb49ee91649c23ff2693f66f315ca6cd04b2011a4d1951f10d69be0db9bbc05b8814d85376eeb3a3f294ee sshguard-1.6.4.tar.gz +sha512sums="c9f7ef4b8d4b1ecbcee33b95e013c51f37b4a05226c6cd1f3c85006c83a32cf555644069d529a7317dcf6616f86a399d7338a5a414238de05bd41dc3005488e4 sshguard-2.0.0.tar.gz 3827bc437cf9e8281e12ce9a7e74e1186fd509aa971934d0f190215889a1eff83455e87f87812abfa3209b3d4fcf8b184e6aa778d753b9da5e778ac79d39c729 sshguard.initd fc59e273e481dc7256a33114fc3b113f8b85406401a7d7113d0daba012dfd413c7bf85a0106539b859d90442976fe265355ccdf943a455f37c8ad7e5891e4b26 sshguard.confd" |