mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
ufw: update to 0.36.2.
This commit is contained in:
parent
ce7e771a0d
commit
fb048295a3
2 changed files with 29 additions and 8 deletions
22
srcpkgs/ufw/patches/fix_build_paths.patch
Normal file
22
srcpkgs/ufw/patches/fix_build_paths.patch
Normal 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')
|
|
@ -1,27 +1,26 @@
|
||||||
# Template file for 'ufw'
|
# Template file for 'ufw'
|
||||||
pkgname=ufw
|
pkgname=ufw
|
||||||
version=0.36.1
|
version=0.36.2
|
||||||
revision=3
|
revision=1
|
||||||
_major_minor="${version%.*}"
|
_major_minor="${version%.*}"
|
||||||
build_style=python3-module
|
build_style=python3-module
|
||||||
conf_files="
|
conf_files="
|
||||||
/etc/ufw/*.conf
|
/etc/ufw/*.conf
|
||||||
/etc/ufw/*.rules
|
/etc/ufw/*.rules
|
||||||
/etc/ufw/applications.d/*"
|
/etc/ufw/applications.d/*"
|
||||||
hostmakedepends="python3-setuptools iptables"
|
hostmakedepends="python3-wheel iptables"
|
||||||
depends="iptables python3"
|
depends="iptables python3"
|
||||||
short_desc="Uncomplicated Firewall"
|
short_desc="Uncomplicated Firewall"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="GPL-3.0-only"
|
license="GPL-3.0-only"
|
||||||
homepage="https://launchpad.net/ufw"
|
homepage="https://launchpad.net/ufw"
|
||||||
distfiles="https://launchpad.net/ufw/${_major_minor}/${version}/+download/ufw-${version}.tar.gz"
|
distfiles="https://launchpad.net/ufw/${_major_minor}/${version}/+download/ufw-${version}.tar.gz"
|
||||||
checksum=1c57e78fbf2970f0cc9c56ea87a231e6d83d825e55b9e31e2c88b91b0ea03c8c
|
checksum=2a57a99eecef6b44db3537ed2520b30bae3759f8465456e22e404cd643838bf5
|
||||||
|
|
||||||
pre_configure() {
|
# tests fail with void build paths as well as vague errors on finding profiles
|
||||||
sed -i -e 's|/lib|/usr/lib|' setup.py
|
make_check=no
|
||||||
sed -i -e 's|sbin|bin|' setup.py
|
|
||||||
}
|
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vsv ufw
|
vsv ufw
|
||||||
|
vcompletion ./shell-completion/bash bash
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue