ufw: update to 0.36.2.

This commit is contained in:
yosh 2023-08-12 00:19:40 -05:00 committed by Duncan Overbruck
parent ce7e771a0d
commit fb048295a3
2 changed files with 29 additions and 8 deletions

View file

@ -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')

View file

@ -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 <orphan@voidlinux.org>"
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
}