From d1d815fcadddb3742608cf5b47158e84f5873549 Mon Sep 17 00:00:00 2001 From: yosh Date: Sat, 12 Aug 2023 00:19:40 -0500 Subject: [PATCH] ufw: update to 0.36.2. --- srcpkgs/ufw/patches/fix_build_paths.patch | 22 ++++++++++++++++++++++ srcpkgs/ufw/template | 15 +++++++-------- 2 files changed, 29 insertions(+), 8 deletions(-) create mode 100644 srcpkgs/ufw/patches/fix_build_paths.patch diff --git a/srcpkgs/ufw/patches/fix_build_paths.patch b/srcpkgs/ufw/patches/fix_build_paths.patch new file mode 100644 index 0000000000000..14980dbc2661e --- /dev/null +++ b/srcpkgs/ufw/patches/fix_build_paths.patch @@ -0,0 +1,22 @@ +diff --git a/setup.py b/setup.py +index 1c0e620..6367695 100644 +--- a/setup.py ++++ b/setup.py +@@ -54,7 +54,7 @@ class Install(_install, object): + return + + real_confdir = os.path.join('/etc') +- real_statedir = os.path.join('/lib', 'ufw') ++ real_statedir = os.path.join('/usr/lib', 'ufw') + real_prefix = self.prefix + if self.home != None: + real_confdir = self.home + real_confdir +@@ -113,7 +113,7 @@ class Install(_install, object): + if self.root != None: + prefix = self.root + real_prefix + +- script = os.path.join(prefix, 'sbin', 'ufw') ++ script = os.path.join(prefix, 'bin', 'ufw') + manpage = os.path.join(prefix, 'share', 'man', 'man8', 'ufw.8') + manpage_f = os.path.join(prefix, 'share', 'man', 'man8', \ + 'ufw-framework.8') diff --git a/srcpkgs/ufw/template b/srcpkgs/ufw/template index 03b0b7b3a2ffe..4d88a828f42d7 100644 --- a/srcpkgs/ufw/template +++ b/srcpkgs/ufw/template @@ -1,27 +1,26 @@ # Template file for 'ufw' pkgname=ufw -version=0.36.1 -revision=3 +version=0.36.2 +revision=1 _major_minor="${version%.*}" build_style=python3-module conf_files=" /etc/ufw/*.conf /etc/ufw/*.rules /etc/ufw/applications.d/*" -hostmakedepends="python3-setuptools iptables" +hostmakedepends="python3-wheel iptables" depends="iptables python3" short_desc="Uncomplicated Firewall" maintainer="Orphaned " license="GPL-3.0-only" homepage="https://launchpad.net/ufw" distfiles="https://launchpad.net/ufw/${_major_minor}/${version}/+download/ufw-${version}.tar.gz" -checksum=1c57e78fbf2970f0cc9c56ea87a231e6d83d825e55b9e31e2c88b91b0ea03c8c +checksum=2a57a99eecef6b44db3537ed2520b30bae3759f8465456e22e404cd643838bf5 -pre_configure() { - sed -i -e 's|/lib|/usr/lib|' setup.py - sed -i -e 's|sbin|bin|' setup.py -} +# tests fail with void build paths as well as vague errors on finding profiles +make_check=no post_install() { vsv ufw + vcompletion ./shell-completion/bash bash }