diff options
author | ch1zvru | 2019-01-08 21:35:57 +0800 |
---|---|---|
committer | ch1zvru | 2019-01-08 21:35:57 +0800 |
commit | 6f78d0483f291c26e44bd4f813741f3e6b99b0e4 (patch) | |
tree | df65d0f9f0a0170372fe8e8bab2f74d6bf539d9a /PKGBUILD | |
parent | fc9b663e395b81b70ba53b3120037e9c77885343 (diff) | |
download | aur-6f78d0483f291c26e44bd4f813741f3e6b99b0e4.tar.gz |
updpkg
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 24 |
1 files changed, 18 insertions, 6 deletions
@@ -6,7 +6,7 @@ # Contributor: nbags <neilbags@gmail.com> pkgname=fail2ban-git -pkgver=r4023.a4ec017d +pkgver=r4880.d88ce718 pkgrel=1 pkgdesc='Bans IPs after too many failed authentication attempts (git version)' url='http://www.fail2ban.org/' @@ -21,20 +21,32 @@ conflicts=('fail2ban') backup=(etc/fail2ban/fail2ban.conf etc/fail2ban/jail.conf etc/logrotate.d/fail2ban) -source=("${pkgname}::git+https://github.com/sebres/fail2ban.git") -sha256sums=('SKIP') +source=("${pkgname}::git+https://github.com/fail2ban/fail2ban.git" + "https://github.com/fail2ban/fail2ban/pull/2174/commits/12df4ec92c27a25a300482f7707f27f7522f592f.patch") +sha256sums=('SKIP' + '19dd85363a59a2bf743e8d119d183cdffa6f8f8554003b9a8c3fa119dfef22b4') pkgver() { cd "${pkgname}" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } - prepare() { + cd $pkgname + # fix tmpfiles.d warning in systemd 239 + # https://github.com/fail2ban/fail2ban/pull/2174 + patch -p1 -i ../12df4ec92c27a25a300482f7707f27f7522f592f.patch + sed -i 's|self.install_dir|"/usr/bin"|' setup.py + sed -i 's/^before = paths-debian.conf/before = paths-arch.conf/' config/jail.conf +} +build() { cd "${pkgname}" ./fail2ban-2to3 + python setup.py build } check() { + # make temp copy to run coverage since it messes with file permissions + cp -r $pkgname{,-coverage} cd "${pkgname}" coverage run bin/fail2ban-testcases || warning "Tests failed" } @@ -43,9 +55,9 @@ package() { cd "${pkgname}" python setup.py install --prefix /usr --root "${pkgdir}" --optimize=1 - chmod 644 "${pkgdir}/usr/lib/python3.6/site-packages/fail2ban-0.11.0.dev0-py3.6.egg-info"/* + #chmod 644 "${pkgdir}/usr/lib/python3.6/site-packages/fail2ban-0.11.0.dev0-py3.6.egg-info"/* - install -Dm644 files/fail2ban.service \ + install -Dm644 build/fail2ban.service \ "${pkgdir}"/usr/lib/systemd/system/fail2ban.service install -Dm644 files/fail2ban-tmpfiles.conf \ "${pkgdir}"/usr/lib/tmpfiles.d/fail2ban.conf |