mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
ufw: rebuild against python3.5
This commit is contained in:
parent
38505ba230
commit
7ba75946fe
@ -1,6 +1,6 @@
|
||||
pkgname=ufw
|
||||
pkgver=0.34
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Uncomplicated and easy to use CLI tool for managing a netfilter firewall"
|
||||
arch=('x86_64')
|
||||
url="https://launchpad.net/ufw"
|
||||
@ -31,10 +31,10 @@ package() {
|
||||
|
||||
python3 setup.py install --root="$pkgdir"
|
||||
|
||||
rm -rf ${pkgdir}/usr/lib/python3.4/site-packages/ufw/__pycache__
|
||||
rm -rf ${pkgdir}/usr/lib/python3.5/site-packages/ufw/__pycache__
|
||||
|
||||
# Correct iptables location
|
||||
sed -i -e 's|sbin|bin|g' "$pkgdir/usr/lib/python3.4/site-packages/ufw/"*
|
||||
sed -i -e 's|sbin|bin|g' "$pkgdir/usr/lib/python3.5/site-packages/ufw/"*
|
||||
|
||||
install -Dm644 "$srcdir/ufw.service" "$pkgdir/usr/lib/systemd/system/ufw.service"
|
||||
chmod 644 "$pkgdir/etc/ufw/"*.rules "$pkgdir/usr/lib/ufw/"*.rules
|
||||
|
Loading…
Reference in New Issue
Block a user