summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorheroku-miraheze2021-09-01 12:32:51 +0200
committerheroku-miraheze2021-09-01 12:32:51 +0200
commitfb61dd3552a96ac01c3c0fdb9b4c2b9e107ac8e3 (patch)
treec898616adbc360f2bd9ff7d8f9ab99e939d97196
parent4a9937233b9fcb441e6b97d7dcb250cbf4ecabb2 (diff)
downloadaur-mirrorbrain.tar.gz
Fix errors and upgrade Python version to 3.9.
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD14
2 files changed, 15 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a5c3f8117a4b..3c7afa181714 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,17 @@
-# Generated by mksrcinfo v8
-# Mon Jul 11 04:53:43 UTC 2016
+# Modified by joaquinito2051 to fix these errors and change python version to 3.9.
pkgbase = mirrorbrain
pkgdesc = an open source framework to run a content delivery network using mirror servers.
pkgver = 2.18.1
- pkgrel = 2
+ pkgrel = 3
url = http://mirrorbrain.org
install = mirrorbrain.install
arch = i686
arch = x86_64
license = GPL
- makedepends = apache>=2.2.6
+ makedepends = apache>=2.4.48
makedepends = apache-mod_form
makedepends = python
- depends = apache>=2.2.6
+ depends = apache>=2.4.48
depends = apache-mod_form
depends = apache-mod_geoip2
depends = geoip
@@ -22,10 +21,10 @@ pkgbase = mirrorbrain
depends = perl-dbd-pg
depends = perl-digest-md4
depends = perl-timedate
- depends = python2
- depends = python2-psycopg2
- depends = python2-sqlobject
- depends = python2-cmdln
+ depends = python
+ depends = python-psycopg2
+ depends = python-sqlobject
+ depends = python-cmdln
optdepends = postgresql: recommended database, but can use any database the Apache DBD API supports
optdepends = mod_asn: refined mirror selection and full exploitation of network locality
provides = mod_mirrorbrain
diff --git a/PKGBUILD b/PKGBUILD
index a5daf61bd9fa..527fe539abd1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,15 +13,15 @@
pkgname=mirrorbrain
pkgver=2.18.1
-pkgrel=2
+pkgrel=3
pkgdesc="an open source framework to run a content delivery network using mirror servers."
arch=('i686' 'x86_64')
url="http://mirrorbrain.org"
license=('GPL')
-depends=('apache>=2.2.6' 'apache-mod_form' 'apache-mod_geoip2' 'geoip'
+depends=('apache>=2.4.48' 'apache-mod_form' 'apache-mod_geoip2' 'geoip'
'perl' 'perl-config-inifiles' 'perl-libwww' 'perl-dbd-pg' 'perl-digest-md4' 'perl-timedate'
- 'python2' 'python2-psycopg2' 'python2-sqlobject' 'python2-cmdln')
-makedepends=('apache>=2.2.6' 'apache-mod_form' 'python')
+ 'python' 'python-psycopg2' 'python-sqlobject' 'python-cmdln')
+makedepends=('apache>=2.4.48' 'apache-mod_form' 'python')
optdepends=('postgresql: recommended database, but can use any database the Apache DBD API supports'
'mod_asn: refined mirror selection and full exploitation of network locality')
provides=('mod_mirrorbrain')
@@ -43,9 +43,9 @@ prepare() {
gcc -Wall -o geoiplookup_continent geoiplookup_continent.c -lGeoIP
gcc -Wall -o geoiplookup_city geoiplookup_city.c -lGeoIP
- # fixes to use python2 instead of python
+ # fixes to use python3 instead of python
cd $srcdir/$pkgname-$pkgver
- sed -e 's|/usr/bin/python|/usr/bin/python2|g' \
+ sed -e 's|/usr/bin/python|/usr/bin/python3|g' \
-i tools/rsyncusers \
-i tools/rsyncinfo \
-i tools/null-rsync \
@@ -84,7 +84,7 @@ package() {
# Install the mb script
cd "$srcdir/$pkgname-$pkgver/mb/"
- python2 setup.py install --root="$pkgdir"
+ python3 setup.py install --root="$pkgdir"
# Install SQL templates
cd "$srcdir/$pkgname-$pkgver/sql/"