upg fail2ban subversion unrar

This commit is contained in:
joborun linux 2024-04-26 12:11:07 +03:00
parent 74501f1b1d
commit 782bdedc45
11 changed files with 95 additions and 67 deletions

View File

@ -6,12 +6,12 @@
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=fail2ban
pkgver=1.0.2
pkgrel=04
pkgdesc='Bans IPs after too many failed authentication attempts'
pkgver=1.1.0
pkgrel=01
pkgdesc='Bans IPs after too many failed authentication attempts w/o systemd'
url='https://www.fail2ban.org/'
depends=('python-pyinotify' 'whois' 'sqlite')
makedepends=('python-setuptools')
makedepends=('python-setuptools' 'git' 'python-build' 'python-installer' 'python-wheel')
optdepends=(
'firewalld: for a firewall backend'
'ipset: for a firewall backend'
@ -22,27 +22,31 @@ checkdepends=('python-coverage')
backup=(etc/fail2ban/fail2ban.conf
etc/fail2ban/jail.conf
etc/logrotate.d/fail2ban)
source=("$pkgname-$pkgver.tar.gz::https://github.com/fail2ban/$pkgname/archive/$pkgver.tar.gz")
# "$pkgname-dovecot-regex.patch::https://github.com/fail2ban/fail2ban/commit/ca2b94c5229b.patch")
source=("git+https://github.com/$pkgname/$pkgname.git#tag=$pkgver?signed")
prepare() {
cd $pkgname-$pkgver
cd $pkgname
sed -i 's|self.install_dir|"/usr/bin"|' setup.py
sed -i 's/^before = paths-debian.conf/before = paths-arch.conf/' config/jail.conf
# # https://github.com/fail2ban/fail2ban/issues/3370
# patch -Np1 -i ../$pkgname-dovecot-regex.patch || [[ $pkgver == 1.0.1 ]]
}
build() {
cd $pkgname-$pkgver
./fail2ban-2to3
python setup.py build
cd $pkgname
python -m build --wheel --skip-dependency-check --no-isolation
}
# Imports smtpd module that was removed in Python 3.12.
# aiosmptd is now used in master, but the changes do not cleanly backport
check() {
cd $pkgname
./bin/fail2ban-testcases --ignore unittest.loader._FailedTest.test_smtp
}
package() {
cd $pkgname-$pkgver
python setup.py install --root "$pkgdir" --optimize=1
cd $pkgname
python -m installer --destdir="$pkgdir" dist/*.whl
# install -Dm644 build/fail2ban.service \
# "$pkgdir"/usr/lib/systemd/system/$pkgname.service
@ -53,19 +57,16 @@ package() {
install -Dm644 files/bash-completion \
"$pkgdir"/usr/share/bash-completion/completions/fail2ban
install -Dm644 -t "$pkgdir"/usr/share/man/man1 man/*.1
install -Dm644 -t "$pkgdir"/usr/share/man/man5 man/*.5
cd "$pkgdir"
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
cp -rl ./"$site_packages"/{etc,usr} .
rm -r ./"$site_packages"/{etc,usr}
# 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
rm -r "$pkgdir/run"
sed -i 's/sbin/bin/g' etc/fail2ban/action.d/sendmail*.conf
}
#---- arch license gpg-key & sha256sums ----
@ -74,6 +75,12 @@ arch=(x86_64)
license=('GPL')
sha256sums=(ae8b0b41f27a7be12d40488789d6c258029b23a01168e3c0d347ee80b325ac23) # fail2ban-1.0.2.tar.gz
validpgpkeys=('E6C3F631FBDA716B070C6ED94141C485A81A88CB') # Sergey G. Brester (sebres) <serg.brester@sebres.de>
## eac9b3223cce7a4dd02db8ee4a66a0ff74cee7d055868c8fa9383eb39c25804b fail2ban-1.0.2-04-x86_64.pkg.tar.lz
b2sums=('c2859a151abd906ceadc8549a4d337b01b037793e7d9285d44f08405695bdcb1b7dc88998cb7eed0321cacdce1d3fca29e55c63f5f60dadbb15f217f6cbe92d3')
sha256sums=(SKIP) # fail2ban
## feeafc5585a28d15a26ae7ed188cbaed6767dfa4e6dfbf2e14eb05e740152b98 fail2ban-1.1.0-01-x86_64.pkg.tar.lz
##

View File

@ -6,14 +6,20 @@
# Contributor: nbags <neilbags@gmail.com>
pkgname=fail2ban
pkgver=1.0.2
pkgrel=3
pkgver=1.1.0
pkgrel=1
pkgdesc='Bans IPs after too many failed authentication attempts'
arch=('any')
url='https://www.fail2ban.org/'
license=('GPL')
arch=('any')
depends=('python-pyinotify' 'whois' 'sqlite' 'python-systemd')
makedepends=('python-setuptools')
depends=('python-pyinotify' 'python-systemd' 'sqlite' 'whois')
makedepends=(
'git'
'python-build'
'python-installer'
'python-setuptools'
'python-wheel'
)
optdepends=(
'firewalld: for a firewall backend'
'ipset: for a firewall backend'
@ -25,24 +31,31 @@ backup=(
'etc/fail2ban/jail.conf'
'etc/logrotate.d/fail2ban'
)
source=("$pkgname-$pkgver.tar.gz::https://github.com/fail2ban/$pkgname/archive/$pkgver.tar.gz")
sha512sums=('688a84361b5794e1658f53d2d200ce752fe1e3320ddb1742c32c4b4b82a79ace16ae464e7ea3eeb94a0e862bcac73c2d3a0e61dd7b28e179a4c857f950d74dbb')
source=("git+https://github.com/$pkgname/$pkgname.git#tag=$pkgver?signed")
b2sums=('c2859a151abd906ceadc8549a4d337b01b037793e7d9285d44f08405695bdcb1b7dc88998cb7eed0321cacdce1d3fca29e55c63f5f60dadbb15f217f6cbe92d3')
validpgpkeys=('E6C3F631FBDA716B070C6ED94141C485A81A88CB') # Sergey G. Brester (sebres) <serg.brester@sebres.de>
prepare() {
cd $pkgname-$pkgver
cd $pkgname
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-$pkgver
./fail2ban-2to3
python setup.py build
cd $pkgname
python -m build --wheel --skip-dependency-check --no-isolation
}
# Imports smtpd module that was removed in Python 3.12.
# aiosmptd is now used in master, but the changes do not cleanly backport
check() {
cd $pkgname
./bin/fail2ban-testcases --ignore unittest.loader._FailedTest.test_smtp
}
package() {
cd $pkgname-$pkgver
python setup.py install --root "$pkgdir" --optimize=1
cd $pkgname
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 build/fail2ban.service \
"$pkgdir"/usr/lib/systemd/system/$pkgname.service
@ -53,17 +66,15 @@ package() {
install -Dm644 files/bash-completion \
"$pkgdir"/usr/share/bash-completion/completions/fail2ban
install -Dm644 -t "$pkgdir"/usr/share/man/man1 man/*.1
install -Dm644 -t "$pkgdir"/usr/share/man/man5 man/*.5
cd "$pkgdir"
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
cp -rl ./"$site_packages"/{etc,usr} .
rm -r ./"$site_packages"/{etc,usr}
# 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
rm -r "$pkgdir/run"
sed -i 's/sbin/bin/g' etc/fail2ban/action.d/sendmail*.conf
}

View File

@ -1 +1 @@
rm -rf {src,pkg,fail2ban*tar.gz}
rm -rf {src,pkg,fail2ban*tar.gz,fail2ban}

View File

@ -2,5 +2,10 @@ python-pyinotify
whois
python-setuptools
python-typing_extensions
git
python-build
python-installer
python-wheel
python-coverage

View File

@ -0,0 +1,4 @@
----------------------------------------------------------------------
Ran 515 tests in 136.264s
FAILED (failures=17, skipped=5)

1
fail2ban/key Normal file
View File

@ -0,0 +1 @@
gpg --recv-key 4141C485A81A88CB

View File

@ -7,14 +7,14 @@
pkgname=subversion
pkgver=1.14.2
pkgrel=013 ## we are not rebuilding this to correct kwallet/5 crap - no other difference with -10
pkgrel=014 ## we are not rebuilding this to correct kwallet/5 crap - no other difference with -10
## !! the only difference from 12 to 13 Arch made was to remove systemd as a running dependency!!!!
## !! Now the hair in our back is sticking straight up!
pkgdesc="A Modern Concurrent Version Control System w/o kwallet crap!"
url="https://subversion.apache.org/"
depends=('apr' 'apr-util' 'bash' 'dbus' 'expat' 'file' 'gcc-libs' 'glibc'
'libsasl' 'libutf8proc' 'lz4' 'serf' 'sqlite' 'zlib' )
makedepends=('apache' 'python' 'python-py3c' 'perl' 'swig'
makedepends=('apache' 'python' 'python-py3c' 'perl' 'swig' 'python-setuptools'
'java-environment>=8' 'libsecret' 'ruby') # 'kwallet5' 'kdelibs4support'
optdepends=('libsecret: for GNOME Keyring for auth credentials'
'bash-completion: for svn bash completion'
@ -140,5 +140,4 @@ sha256sums=(c9130e8d0b75728a66f0e7038fc77052e671830d785b5616aad53b4810d3cc28 #
ad2eeab9683aec61da6843b680a59d49c4e053017f5bf861a9f2f1384279689e # subversion-1.14.1-python-3.11-build.patch
a6337d17005865703d5eaf9b10d2e80172189bf896dda20e2e63debfabf164c6) # subversion-1.14.2-swig-py-Fix-conditionals-by-SWIG-version-and-by-Pyth.patch
## 0d9e6a8898f7b9559680da236939707d3ec4c9da3c83bbb9930dc9991b9dfea3 subversion-1.14.2-013-x86_64.pkg.tar.lz
## 0c9aec0fe7f6140764dd51bac030e1af14073e15d35f2d1f6aa7d41b2db74abd subversion-1.14.2-014-x86_64.pkg.tar.lz

View File

@ -6,7 +6,7 @@
pkgname=subversion
pkgver=1.14.2
pkgrel=13
pkgrel=14
pkgdesc="A Modern Concurrent Version Control System"
arch=('x86_64')
url="https://subversion.apache.org/"
@ -14,7 +14,7 @@ license=('Apache-2.0')
depends=('apr' 'apr-util' 'bash' 'dbus' 'expat' 'file' 'gcc-libs' 'glibc' 'libsasl' 'libutf8proc' 'lz4' 'serf' 'sqlite'
'zlib' )
makedepends=('apache' 'python' 'python-py3c' 'perl' 'swig' 'java-environment>=8'
'libsecret' 'kwallet5' 'kdelibs4support' 'ruby')
'libsecret' 'kwallet5' 'kdelibs4support' 'ruby' 'python-setuptools')
optdepends=('libsecret: for GNOME Keyring for auth credentials'
'kwallet5: for KWallet for auth credentials'
'bash-completion: for svn bash completion'
@ -38,7 +38,7 @@ sha512sums=('20ada4688ca07d9fb8da4b7d53b5084568652a3b9418c65e688886bae950a16a3ff
'SKIP'
'f7f2ceac2446cc94ac2be3404083cc54a0f1f4d04d5301f600dfafca38819669bcffdfa45f1b90b9f3cdb042469385a764f11dc1a827f10c23ddf73b7ac6c9da'
'7775f4da5003970c9ebdc2f696ba090df194a77d9daed791875488c943f72ae496b5f9cc6f3ff9f3f4de9f352a3b518137babdea38947d1a2d5dd16aa1844036'
'8cc23ae71bd7ce7c337eaf12929f1af0a11b55250808e88f06397b874daf2efb9491c464be3d082d937a82c2b0b7c3ed06d6695cfd8a3fda1f803bbfd15837de'
'd879cd8212b8c242386dc0668d1772358a94110fabde725ad132781da7dd0893d51cba09271a566fbbd7dc5fc8962b0de3ef8c8d9959fa47f1fa6db555f440d0'
'60d538160e738eb3b3e84a3881fe5a8d75c79053d3f31c4c29ef6ace6ccc5dd4367ed712766c911bae3436e9706e4dd144b270bb45161a6c1834a37e154d0440'
'bb772e55acd9601121ad06b254c364e8d8cf772ca59b8df0cf4c5c5ecba110d4108d0363672f121f770550cdd052802474029e57643258f398aacd2b63ccb898'
'cad1ef6359c4eecce4fc44fb0c8a01a7b9b94cd8b1b3f9bdd9d72b3591f75bada814a9597cea039c6e045f3f07807f17bd720e27cf7d8a92640bb45faaa6a982'

View File

@ -14,5 +14,6 @@ autoconf
ruby-bundledgems
ruby-test-unit
ruby
python-setuptools

View File

@ -7,7 +7,7 @@
pkgbase=unrar
pkgname=(unrar libunrar)
pkgver=7.0.7
pkgver=7.0.8
pkgrel=01
epoch=1
depends=(gcc-libs glibc)
@ -48,8 +48,8 @@ arch=(x86_64)
license=(LicenseRef-UnRAR)
sha256sums=(da95829c7e66fe461c06eb4bea8145e58d88d76909432d0875cd1ff86669f728) # unrarsrc-7.0.7.tar.gz
sha256sums=(f68b6a0bb16cbc7e157652542966ee64ca66ae3958273a64128484c51f1b768d) # unrarsrc-7.0.8.tar.gz
## 3040340c3b7648017b0ca9426252523460ac67eb73bc7ee9c7bee2a5f84ddf0a libunrar-1:7.0.7-01-x86_64.pkg.tar.lz
## 89c478d27f0b54da57dc8874e4cd0e069953ca26322c0f82e87b5a99d74c1b4a unrar-1:7.0.7-01-x86_64.pkg.tar.lz
## cd6cd85f0dc2a320223ddf7bd1325c038fe2558c9722175941703957766ea828 libunrar-1_7.0.8-01-x86_64.pkg.tar.lz
## e06315e9befec22347a94ae13b93c1717b8276fbe94ad9a14bb5ee5d87fc0bf8 unrar-1_7.0.8-01-x86_64.pkg.tar.lz

View File

@ -5,7 +5,7 @@
pkgbase=unrar
pkgname=(libunrar
unrar)
pkgver=7.0.7
pkgver=7.0.8
pkgrel=1
epoch=1
arch=(x86_64)
@ -14,7 +14,7 @@ depends=(gcc-libs
glibc)
license=(LicenseRef-UnRAR)
source=(https://www.rarlab.com/rar/unrarsrc-$pkgver.tar.gz)
sha256sums=('da95829c7e66fe461c06eb4bea8145e58d88d76909432d0875cd1ff86669f728')
sha256sums=('f68b6a0bb16cbc7e157652542966ee64ca66ae3958273a64128484c51f1b768d')
prepare() {
sed -e '/CXXFLAGS=/d' -e '/LDFLAGS=/d' -i unrar/makefile # Use system build flags