From 18f61645bc226d90765460fa1720e39525edccb2 Mon Sep 17 00:00:00 2001 From: mustaqim Date: Mon, 5 Oct 2020 05:56:13 +0200 Subject: [PATCH 01/10] New package: pgadmin4-4.26 --- srcpkgs/pgadmin4/files/pgadmin4.desktop | 11 +++++ .../patches/hardcode-py-lib-location.patch | 30 +++++++++++++ srcpkgs/pgadmin4/template | 42 +++++++++++++++++++ 3 files changed, 83 insertions(+) create mode 100644 srcpkgs/pgadmin4/files/pgadmin4.desktop create mode 100644 srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch create mode 100644 srcpkgs/pgadmin4/template diff --git a/srcpkgs/pgadmin4/files/pgadmin4.desktop b/srcpkgs/pgadmin4/files/pgadmin4.desktop new file mode 100644 index 00000000000..03d6845ddb1 --- /dev/null +++ b/srcpkgs/pgadmin4/files/pgadmin4.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=pgAdmin4 +Exec=/usr/bin/pgAdmin4 +Icon=/usr/share/icons/pgAdmin4.png +Type=Application +Categories=Application;Development; +MimeType=text/html +GenericName=Management tool for PostgreSQL +Comment=Management tools for PostgreSQL +Keywords=database;db;sql;query;administration;development; diff --git a/srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch b/srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch new file mode 100644 index 00000000000..4d8cdc86706 --- /dev/null +++ b/srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch @@ -0,0 +1,30 @@ +diff --git a/runtime/Server.cpp b/runtime/Server.cpp +index 62f4a27f7..ba2783f0e 100644 +--- a/runtime/Server.cpp ++++ b/runtime/Server.cpp +@@ -127,11 +127,11 @@ Server::Server(quint16 port, QString key, QString logFileName): + add_to_path(pythonHome, venvPath.canonicalFilePath()); + #else + // Build (and canonicalise) the virtual environment path +- QFileInfo venvBinPath(app_dir + "/../venv/bin"); +- QFileInfo venvLibPath(app_dir + "/../venv/lib/python"); +- QFileInfo venvDynLibPath(app_dir + "/../venv/lib/python/lib-dynload"); +- QFileInfo venvSitePackagesPath(app_dir + "/../venv/lib/python/site-packages"); +- QFileInfo venvPath(app_dir + "/../venv"); ++ QFileInfo venvBinPath("/usr/bin"); ++ QFileInfo venvLibPath("/usr/lib/python3.8"); ++ QFileInfo venvDynLibPath("/usr/lib/python3.8/lib-dynload"); ++ QFileInfo venvSitePackagesPath("/usr/lib/python3.8/site-packages"); ++ QFileInfo venvPath("/usr/lib/python3.8"); + + // Prepend the bin directory to the path + add_to_path(path_env, venvBinPath.canonicalFilePath(), true); +@@ -265,7 +265,7 @@ bool Server::Init() + + // Find the webapp + QStringList paths; +- paths.append("../web/"); // Linux source tree ++ paths.append("/usr/lib/pgadmin4/web/"); // Linux source tree + paths.append("../../web/"); // Windows source tree + paths.append("../../../../web/"); // Mac source tree (in a dev env) + #ifdef Q_OS_MAC diff --git a/srcpkgs/pgadmin4/template b/srcpkgs/pgadmin4/template new file mode 100644 index 00000000000..33a3bb8b22a --- /dev/null +++ b/srcpkgs/pgadmin4/template @@ -0,0 +1,42 @@ +# Template file for 'pgadmin4' +pkgname=pgadmin4 +version=4.26 +revision=1 +wrksrc="pgadmin4-${version}" +hostmakedepends="qt5-qmake python3-devel qt5-host-tools qt5-devel" +depends="python3-Flask python3-Flask-Login python3-Flask-Mail + python3-blinker python3-Flask-Paranoid python3-Flask-Security-Too python3-Flask-Principal + python3-passlib python3-Flask-WTF python3-speaklater python3-Flask-SQLAlchemy python3-simplejson python3-dateutil + python3-Flask-Migrate python3-alembic python3-psycopg2 python3-cryptography python3-sshtunnel python3-ldap3 + python3-Flask-Gravatar python3-sqlparse python3-psutil python3-Flask-Compress" +short_desc="Comprehensive design and management interface for PostgreSQL" +maintainer="mustaqim " +license="PostgreSQL" +homepage="http://www.pgadmin.org" +distfiles="https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v${version}/source/pgadmin4-${version}.tar.gz" +checksum=46b69668941c80da763b869b7dc6723ad502443d68e8012b7fccd3c99569475d +patch_args="-Np1" + +do_configure() { + vsed -i runtime/ConfigWindow.ui \ + -e 's|/usr/pgadmin4/web|/usr/lib/pgadmin4/web|' +} + +do_build() { + export PGADMIN_PYTHON_DIR=/usr + cd runtime + qmake CONFIG+=release + make +} + +do_install() { + vbin runtime/pgAdmin4 + vmkdir /usr/lib/pgadmin4 + vcopy web /usr/lib/pgadmin4 +} + +post_install() { + vinstall "${FILESDIR}/pgadmin4.desktop" 644 usr/share/applications/ + vinstall runtime/pgAdmin4.png 644 usr/share/icons/ + vlicense LICENSE +} From aa7202e77378165035dfdd34bbcd4e0dc5313e6b Mon Sep 17 00:00:00 2001 From: mustaqim Date: Mon, 5 Oct 2020 07:23:15 +0200 Subject: [PATCH 02/10] New package: python3-Flask-Compress-1.5.0 --- srcpkgs/python3-Flask-Compress/template | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 srcpkgs/python3-Flask-Compress/template diff --git a/srcpkgs/python3-Flask-Compress/template b/srcpkgs/python3-Flask-Compress/template new file mode 100644 index 00000000000..3a11502405b --- /dev/null +++ b/srcpkgs/python3-Flask-Compress/template @@ -0,0 +1,18 @@ +# Template file for 'python3-Flask-Compress' +pkgname=python3-Flask-Compress +version=1.5.0 +revision=1 +wrksrc="flask-compress-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-brotli" +short_desc="Compress responses in your Flask app with gzip or brotli" +maintainer="mustaqim " +license="MIT" +homepage="https://github.com/colour-science/flask-compress" +distfiles="https://github.com/colour-science/flask-compress/archive/v${version}.tar.gz" +checksum=692838db8293949fdc9af814be6313743fc77d37b9981a9418eb5f87f34b09c2 + +post_install() { + vlicense LICENSE.txt +} From 25ed25acf66f25f668d0fbcb3f215d83801e18ca Mon Sep 17 00:00:00 2001 From: mustaqim Date: Mon, 5 Oct 2020 07:24:03 +0200 Subject: [PATCH 03/10] New package: python3-Flask-Gravatar-0.5.0 --- srcpkgs/python3-Flask-Gravatar/template | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 srcpkgs/python3-Flask-Gravatar/template diff --git a/srcpkgs/python3-Flask-Gravatar/template b/srcpkgs/python3-Flask-Gravatar/template new file mode 100644 index 00000000000..645ba1cc31a --- /dev/null +++ b/srcpkgs/python3-Flask-Gravatar/template @@ -0,0 +1,17 @@ +# Template file for 'python3-Flask-Gravatar' +pkgname=python3-Flask-Gravatar +version=0.5.0 +revision=1 +wrksrc="Flask-Gravatar-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +short_desc="Small and simple integration of gravatar into flask" +maintainer="mustaqim " +license="BSD-3-Clause" +homepage="https://github.com/zzzsochi/flask-gravatar" +distfiles="https://github.com/zzzsochi/flask-gravatar/archive/v${version}.tar.gz" +checksum=9f9ea35b3537f635a25a09390821b768c9c3cf53274e16ffabbfc1f8c6e77d55 + +post_install() { + vlicense LICENSE +} From 49ea0ec6566fdd7f296fe367ee5778c0ef8a7c4f Mon Sep 17 00:00:00 2001 From: mustaqim Date: Mon, 5 Oct 2020 07:26:20 +0200 Subject: [PATCH 04/10] New package: python3-Flask-Migrate-2.5.3 --- srcpkgs/python3-Flask-Migrate/template | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 srcpkgs/python3-Flask-Migrate/template diff --git a/srcpkgs/python3-Flask-Migrate/template b/srcpkgs/python3-Flask-Migrate/template new file mode 100644 index 00000000000..8b2e17d1ac9 --- /dev/null +++ b/srcpkgs/python3-Flask-Migrate/template @@ -0,0 +1,18 @@ +# Template file for 'python3-Flask-Migrate' +pkgname=python3-Flask-Migrate +version=2.5.3 +revision=1 +wrksrc="Flask-Migrate-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +short_desc="SQLAlchemy database migrations for Flask applications using Alembic " +maintainer="mustaqim " +license="MIT" +homepage="https://github.com/miguelgrinberg/flask-migrate/" +changelog="https://raw.githubusercontent.com/miguelgrinberg/Flask-Migrate/master/CHANGES.md" +distfiles="$PYPI_SITE/F/Flask-Migrate/Flask-Migrate-${version}.tar.gz" +checksum=4af1feb1b5e5a0332c11c3ebe7981228719776b73c0bfa28b4aead541dff46d8 + +post_install() { + vlicense LICENSE +} From 1156e61ebaf4713c35a6eaeba820b3c3561459e9 Mon Sep 17 00:00:00 2001 From: mustaqim Date: Mon, 5 Oct 2020 07:30:31 +0200 Subject: [PATCH 05/10] New package: python3-Flask-Paranoid-0.2.0 --- srcpkgs/python3-Flask-Paranoid/template | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 srcpkgs/python3-Flask-Paranoid/template diff --git a/srcpkgs/python3-Flask-Paranoid/template b/srcpkgs/python3-Flask-Paranoid/template new file mode 100644 index 00000000000..f7d02a959b5 --- /dev/null +++ b/srcpkgs/python3-Flask-Paranoid/template @@ -0,0 +1,17 @@ +# Template file for 'python3-Flask-Paranoid' +pkgname=python3-Flask-Paranoid +version=0.2.0 +revision=1 +wrksrc="flask-paranoid-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +short_desc="Simple user session protection" +maintainer="mustaqim " +license="MIT" +homepage="https://github.com/miguelgrinberg/flask-paranoid" +distfiles="$PYPI_SITE/F/Flask-Paranoid/Flask-Paranoid-${version}.tar.gz" +checksum=cda72c43fd17e6b782e079942b79ec9b19ac40c06337c871cc1dfedbe49297d3 + +post_install() { + vlicense LICENSE +} From 0781e1783980a727c06a53f617d0c5183f20869b Mon Sep 17 00:00:00 2001 From: mustaqim Date: Mon, 5 Oct 2020 07:33:14 +0200 Subject: [PATCH 06/10] New package: python3-Flask-Principal-0.4.0 --- srcpkgs/python3-Flask-Principal/template | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 srcpkgs/python3-Flask-Principal/template diff --git a/srcpkgs/python3-Flask-Principal/template b/srcpkgs/python3-Flask-Principal/template new file mode 100644 index 00000000000..aab51163318 --- /dev/null +++ b/srcpkgs/python3-Flask-Principal/template @@ -0,0 +1,18 @@ +# Template file for 'python3-Flask-Principal' +pkgname=python3-Flask-Principal +version=0.4.0 +revision=1 +wrksrc="flask-principal-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +short_desc="Identity management for Flask" +maintainer="mustaqim " +license="MIT" +homepage="https://pythonhosted.org/Flask-Principal/" +changelog="https://pythonhosted.org/Flask-Principal/changelog.html" +distfiles="https://github.com/mattupstate/flask-principal/archive/${version}.tar.gz" +checksum=ed8c58943460d7d54c29463e2fe98ae4969d3818c0f59b36e9b2649128db96c9 + +post_install() { + vlicense LICENSE +} From a5c1e600b15752786b82101a51ef92f6ba96ca25 Mon Sep 17 00:00:00 2001 From: mustaqim Date: Mon, 5 Oct 2020 07:33:51 +0200 Subject: [PATCH 07/10] New package: python3-Flask-Security-Too-3.4.4 --- srcpkgs/python3-Flask-Security-Too/template | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 srcpkgs/python3-Flask-Security-Too/template diff --git a/srcpkgs/python3-Flask-Security-Too/template b/srcpkgs/python3-Flask-Security-Too/template new file mode 100644 index 00000000000..eb1a5dee0ed --- /dev/null +++ b/srcpkgs/python3-Flask-Security-Too/template @@ -0,0 +1,17 @@ +# Template file for 'python3-Flask-Security-Too' +pkgname=python3-Flask-Security-Too +version=3.4.4 +revision=1 +wrksrc="Flask-Security-Too-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools python3-devel" +short_desc="Simple security for Flask apps" +maintainer="mustaqim " +license="MIT" +homepage="https://github.com/Flask-Middleware/flask-security/" +distfiles="$PYPI_SITE/F/Flask-Security-Too/Flask-Security-Too-${version}.tar.gz" +checksum=3c52b0e0c8453a012122aad102041fd71bd1ea025f5154bbfb1d20b4c6a4477e + +post_install() { + vlicense LICENSE +} From 1a5b230ca7e34f719fb7d70b522af37ce166c8a4 Mon Sep 17 00:00:00 2001 From: mustaqim Date: Mon, 5 Oct 2020 07:41:45 +0200 Subject: [PATCH 08/10] New package: python3-brotli-1.0.9 --- srcpkgs/python3-brotli/template | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 srcpkgs/python3-brotli/template diff --git a/srcpkgs/python3-brotli/template b/srcpkgs/python3-brotli/template new file mode 100644 index 00000000000..74c96a8f0f5 --- /dev/null +++ b/srcpkgs/python3-brotli/template @@ -0,0 +1,13 @@ +# Template file for 'python3-brotli' +pkgname=python3-brotli +version=1.0.9 +revision=1 +wrksrc="brotli-${version}" +build_style="python3-module" +hostmakedepends="python3-setuptools python3-devel" +short_desc="Python3 brotli module" +maintainer="mustaqim " +license="Apache-2.0" +homepage="https://pypi.org/project/Brotli/" +distfiles="https://github.com/google/brotli/archive/v${version}.tar.gz" +checksum=f9e8d81d0405ba66d181529af42a3354f838c939095ff99930da6aa9cdf6fe46 From eeb68c3fa7c132747330efc89907157cdff63a94 Mon Sep 17 00:00:00 2001 From: mustaqim Date: Mon, 5 Oct 2020 07:45:09 +0200 Subject: [PATCH 09/10] New package: python3-speaklater-1.3 --- srcpkgs/python3-speaklater/template | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 srcpkgs/python3-speaklater/template diff --git a/srcpkgs/python3-speaklater/template b/srcpkgs/python3-speaklater/template new file mode 100644 index 00000000000..5963354fac6 --- /dev/null +++ b/srcpkgs/python3-speaklater/template @@ -0,0 +1,17 @@ +# Template file for 'python3-speaklater' +pkgname=python3-speaklater +version=1.3 +revision=1 +wrksrc="speaklater-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +short_desc="Lazy strings for translations" +maintainer="mustaqim " +license="custom:BSD" +homepage="https://github.com/mitsuhiko/speaklater/" +distfiles="$PYPI_SITE/s/speaklater/speaklater-${version}.tar.gz" +checksum=59fea336d0eed38c1f0bf3181ee1222d0ef45f3a9dd34ebe65e6bfffdd6a65a9 + +post_install() { + vlicense LICENSE +} From 9cb3d40e6cf6919d8cbc9a8fc21cd891244e7dfe Mon Sep 17 00:00:00 2001 From: mustaqim Date: Mon, 5 Oct 2020 07:48:13 +0200 Subject: [PATCH 10/10] New package: python3-sshtunnel-0.1.5 --- srcpkgs/python3-sshtunnel/template | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 srcpkgs/python3-sshtunnel/template diff --git a/srcpkgs/python3-sshtunnel/template b/srcpkgs/python3-sshtunnel/template new file mode 100644 index 00000000000..e4f7f763f6f --- /dev/null +++ b/srcpkgs/python3-sshtunnel/template @@ -0,0 +1,18 @@ +# Template file for 'python3-sshtunnel' +pkgname=python3-sshtunnel +version=0.1.5 +revision=1 +wrksrc="sshtunnel-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-paramiko" +short_desc="Pure python SSH tunnels" +maintainer="mustaqim " +license="MIT" +homepage="https://pypi.org/project/sshtunnel/" +distfiles="$PYPI_SITE/s/sshtunnel/sshtunnel-${version}.tar.gz" +checksum=c813fdcda8e81c3936ffeac47cb69cfb2d1f5e77ad0de656c6dab56aeebd9249 + +post_install() { + vlicense LICENSE +}