From f313f482d48f3f2fc6c69bf338195a8c7c132b7b Mon Sep 17 00:00:00 2001 From: q66 Date: Wed, 20 Jan 2021 12:28:38 +0100 Subject: [PATCH] qomui: drop geoip dependency --- srcpkgs/qomui/patches/remove-geoip-dep.patch | 13 +++++++++++++ srcpkgs/qomui/template | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/qomui/patches/remove-geoip-dep.patch diff --git a/srcpkgs/qomui/patches/remove-geoip-dep.patch b/srcpkgs/qomui/patches/remove-geoip-dep.patch new file mode 100644 index 00000000000..662ba3f9ff6 --- /dev/null +++ b/srcpkgs/qomui/patches/remove-geoip-dep.patch @@ -0,0 +1,13 @@ +--- qomui/update.py ++++ qomui/update.py +@@ -991,9 +991,7 @@ + + if ip != 0: + +- country_check = check_output(["geoiplookup", "{}".format(ip)]).decode("utf-8") +- cc = country_check.split(" ")[3].split(",")[0] +- country = country_translate(cc) ++ country = "Unknown" + self.log.emit(("debug", "importing {}".format(name))) + custom_servers[name] = { + "name": name, diff --git a/srcpkgs/qomui/template b/srcpkgs/qomui/template index 9d832bd2387..b74138381be 100644 --- a/srcpkgs/qomui/template +++ b/srcpkgs/qomui/template @@ -1,13 +1,13 @@ # Template file for 'qomui' pkgname=qomui version=0.8.2 -revision=3 +revision=4 build_style=python3-module pycompile_module="qomui" hostmakedepends="python3 python3-setuptools" depends="python python3 python3-PyQt5 python3-dbus python3-psutil python3-requests python3-BeautifulSoup4 python3-lxml python3-pexpect openvpn - python3-PyQt5-dbus stunnel geoip geoip-data dnsmasq libcgroup libcgroup-utils + python3-PyQt5-dbus stunnel dnsmasq libcgroup libcgroup-utils iptables wireguard wireguard-tools openresolv" short_desc="OpenVPN Qt management ui" maintainer="Young Jin Park "