[arch-commits] Commit in fail2ban/trunk (PKGBUILD)
Bartłomiej Piotrowski
bpiotrowski at nymeria.archlinux.org
Wed Nov 20 09:36:07 UTC 2013
Date: Wednesday, November 20, 2013 @ 10:36:06
Author: bpiotrowski
Revision: 101229
upgpkg: fail2ban 0.8.11-1
- new upstream release
- fix typo in pkgdesc
- install man pages
- use upstream systemd unit and tmpfiles conf
Modified:
fail2ban/trunk/PKGBUILD
----------+
PKGBUILD | 27 ++++++++++++++++++++-------
1 file changed, 20 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-11-20 09:06:39 UTC (rev 101228)
+++ PKGBUILD 2013-11-20 09:36:06 UTC (rev 101229)
@@ -5,9 +5,9 @@
# Contributor: nbags <neilbags at gmail.com>
pkgname=fail2ban
-pkgver=0.8.10
+pkgver=0.8.11
pkgrel=1
-pkgdesc='Bans IPs after too many failed authentification attempts against common daemons'
+pkgdesc='Bans IPs after too many failed authentication attempts against common daemons'
url='http://www.fail2ban.org/'
license=('GPL')
arch=('any')
@@ -15,18 +15,22 @@
backup=(etc/fail2ban/fail2ban.conf
etc/fail2ban/jail.conf)
install=fail2ban.install
-source=(https://nodeload.github.com/$pkgname/$pkgname/legacy.tar.gz/$pkgver
+source=(https://github.com/fail2ban/$pkgname/archive/$pkgver.tar.gz
service tmpfiles.conf)
-sha256sums=('7bed38372a24e35268d9c9ff5b272f7e88e91074f9bb24d5be5c70196f19e7be'
+sha256sums=('e7573583c979222c7461df8c875e8328a6cd0e431e86d3cc4d80b2af3447190f'
'1bce54ad435b7dd3547baceea050a1d66745010b28a4ded269f6707cebdc99b1'
'ce8922c4734a56c88f22ffa4f2ad5819d113c7d4e439b142c984816599ebc1f4')
package() {
- cd $pkgname-$pkgname-*
+ cd $pkgname-$pkgver
python2 setup.py install --root "$pkgdir"
- install -Dm644 "$srcdir"/service "$pkgdir"/usr/lib/systemd/system/$pkgname.service
- install -Dm644 "$srcdir"/tmpfiles.conf "$pkgdir"/usr/lib/tmpfiles.d/$pkgname.conf
+ install -Dm644 files/fail2ban.service \
+ "$pkgdir"/usr/lib/systemd/system/$pkgname.service
+ install -Dm644 files/fail2ban-tmpfiles.conf \
+ "$pkgdir"/usr/lib/tmpfiles.d/$pkgname.conf
+ install -Dm644 files/bash-completion \
+ "$pkgdir"/usr/share/bash-completion/completions/fail2ban
# avoid conflict with filesystem>=2012.06
rm -r "$pkgdir"/var/run
@@ -33,4 +37,13 @@
# fix sendmail location
sed -i 's/sbin/bin/g' "$pkgdir"/etc/fail2ban/action.d/sendmail*.conf
+
+ install -Dm644 man/fail2ban.1 "$pkgdir"/usr/share/man/man1/fail2ban.1
+ install -Dm644 man/fail2ban-client.1 \
+ "$pkgdir"/usr/share/man/man1/fail2ban-client.1
+ install -Dm644 man/fail2ban-regex.1 \
+ "$pkgdir"/usr/share/man/man1/fail2ban-regex.1
+ install -Dm644 man/fail2ban-server.1 \
+ "$pkgdir"/usr/share/man/man1/fail2ban-server.1
+ install -Dm644 man/jail.conf.5 "$pkgdir"/usr/share/man/man5/jail.conf.5
}
More information about the arch-commits
mailing list