aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-03-29 21:38:45 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-03-29 21:38:45 +0200
commit24ad816aae98679cb42ae219b94f030b8fff9e87 (patch)
tree1d3766074ff8034ff5009970d7cdba963371e66f
parente272c70ffa6f9509c332f7e92c5ad126ed85ad03 (diff)
downloadaports-24ad816aae98679cb42ae219b94f030b8fff9e87.tar.bz2
aports-24ad816aae98679cb42ae219b94f030b8fff9e87.tar.xz
main/fail2ban: modernize abuild
-rw-r--r--main/fail2ban/APKBUILD20
1 files changed, 5 insertions, 15 deletions
diff --git a/main/fail2ban/APKBUILD b/main/fail2ban/APKBUILD
index 885ae3a8d5..e692b705c7 100644
--- a/main/fail2ban/APKBUILD
+++ b/main/fail2ban/APKBUILD
@@ -17,16 +17,18 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/$p
alpine-sshd.filterd
alpine-sshd-ddos.filterd
"
+builddir="$srcdir/$pkgname-$pkgver"
-_builddir="$srcdir"/$pkgname-$pkgver
build() {
- cd "$_builddir"
+ cd "$builddir"
python2 setup.py build || return 1
}
package() {
- cd "$_builddir"
+ cd "$builddir"
+
python2 setup.py install --root "$pkgdir" || return 1
+
install -Dm755 files/gentoo-initd "$pkgdir"/etc/init.d/fail2ban \
|| return 1
install -Dm644 "$srcdir"/fail2ban.confd "$pkgdir"/etc/conf.d/fail2ban \
@@ -41,18 +43,6 @@ package() {
"$pkgdir"/etc/fail2ban/filter.d/alpine-sshd-ddos.conf
}
-md5sums="c0c40a1b664f1b37c074b57ce83606dc fail2ban-0.10.0a1.tar.gz
-b209a04f9314dd064a4aa0ee505c8a4d fail2ban.confd
-6d1af6ceebd15c8ae3938bc675efe553 fail2ban.logrotate
-d79129324ec8710989be0d631362b1ab alpine-ssh.jaild
-16637b4f207bc9bd68812d02cc06cfad alpine-sshd.filterd
-d2634b4646276e5f9e4e3855e16725de alpine-sshd-ddos.filterd"
-sha256sums="3fc105d9da1eabcc258e6961255173f92cc2d8a5cae83567367e17e2deae0bde fail2ban-0.10.0a1.tar.gz
-e35f1f820bfe5ecaac2696d60155c348d84af428e8c615e97b900c24a587d233 fail2ban.confd
-4cfe274ec9c71dd0ae0575298f5327230f6e67b2f8fc1a616c645d0f6b3ce02f fail2ban.logrotate
-e0d03b972bb90053be53c7dc8d2711a57a569dbb956b40cb0026676cdc5b47db alpine-ssh.jaild
-948e9b598a9242eb8bfef911c38d8af25c66554fd9c770e3017d636e59b98e16 alpine-sshd.filterd
-1015ff0831970e2f42863b5d5c33635de69ccdae184df72f6be1792cd67f6df8 alpine-sshd-ddos.filterd"
sha512sums="0f960ef3ff677f13f3409269e52ac686f99148c7563df23c338b3d6f4b20acac23caf15d7bdce704b306740b825525e5b9e046d38e9e96199c7bc1bf62e57c5a fail2ban-0.10.0a1.tar.gz
1e7581dd04e7777d6fd5c40cc842a7ec5f4e6a0374673d020d89dd61bf4093d48934844bee89bcac9084f9ae44f3beb66e714cf3c2763d79c3e8feb790c5e43b fail2ban.confd
60c80dcf8ced5a0323daef2df702f862d99ac45f56b91015ce39be8471cf9d6a3bb45d776df0330692f40db37638dc3ef2004cfc65f26d50dd67c94fbfdf4ec2 fail2ban.logrotate