* update ufw to 0.36.2-4
This commit is contained in:
parent
bc99011a85
commit
8ac3b004a7
13
ufw/PKGBUILD
13
ufw/PKGBUILD
@ -8,11 +8,12 @@
|
|||||||
|
|
||||||
pkgname=ufw
|
pkgname=ufw
|
||||||
pkgver=0.36.2
|
pkgver=0.36.2
|
||||||
pkgrel=2
|
pkgrel=4
|
||||||
pkgdesc="Uncomplicated and easy to use CLI tool for managing a netfilter firewall"
|
pkgdesc="Uncomplicated and easy to use CLI tool for managing a netfilter firewall"
|
||||||
arch=(any)
|
arch=(any)
|
||||||
url="https://launchpad.net/ufw"
|
url="https://launchpad.net/ufw"
|
||||||
license=('GPL3')
|
license=('GPL3')
|
||||||
|
makedepends=('git' 'python-setuptools')
|
||||||
depends=('iptables' 'python')
|
depends=('iptables' 'python')
|
||||||
backup=('etc/ufw/before.rules'
|
backup=('etc/ufw/before.rules'
|
||||||
'etc/ufw/before6.rules'
|
'etc/ufw/before6.rules'
|
||||||
@ -23,15 +24,14 @@ backup=('etc/ufw/before.rules'
|
|||||||
'etc/ufw/sysctl.conf'
|
'etc/ufw/sysctl.conf'
|
||||||
'etc/default/ufw'
|
'etc/default/ufw'
|
||||||
'etc/ufw/user6.rules')
|
'etc/ufw/user6.rules')
|
||||||
source=("${url}/${pkgver%.*}/${pkgver}/+download/${pkgname}-${pkgver}.tar.gz"{,.asc}
|
source=("git+https://git.launchpad.net/ufw?signed#tag=${pkgver}"
|
||||||
"service")
|
"service")
|
||||||
sha256sums=('2a57a99eecef6b44db3537ed2520b30bae3759f8465456e22e404cd643838bf5'
|
sha256sums=('c2b36d70d003050e54310b55a6bf6a7d17c649a8f056eba09b6a24f3500ed8c5'
|
||||||
'SKIP'
|
|
||||||
'fdface6f4690e4748fbbd5661c02e1967a8750fdb23581d35516174017a3fe39')
|
'fdface6f4690e4748fbbd5661c02e1967a8750fdb23581d35516174017a3fe39')
|
||||||
validpgpkeys=('4C20C06B5D8BDE688854D28A51DBDC58CC559573')
|
validpgpkeys=('4C20C06B5D8BDE688854D28A51DBDC58CC559573')
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "$pkgname-$pkgver"
|
cd $pkgname
|
||||||
# FS#28769 - move from /lib to /usr/lib
|
# FS#28769 - move from /lib to /usr/lib
|
||||||
sed -i -e 's|/lib|/usr/lib|' \
|
sed -i -e 's|/lib|/usr/lib|' \
|
||||||
-e 's|sbin|bin|g' setup.py
|
-e 's|sbin|bin|g' setup.py
|
||||||
@ -45,11 +45,12 @@ prepare() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$pkgname-$pkgver"
|
cd $pkgname
|
||||||
|
|
||||||
python3 setup.py install --root="$pkgdir"
|
python3 setup.py install --root="$pkgdir"
|
||||||
|
|
||||||
install -Dm644 shell-completion/bash "$pkgdir/usr/share/bash-completion/completions/ufw"
|
install -Dm644 shell-completion/bash "$pkgdir/usr/share/bash-completion/completions/ufw"
|
||||||
install -Dm644 "$srcdir/service" "$pkgdir/usr/lib/systemd/system/ufw.service"
|
install -Dm644 "$srcdir/service" "$pkgdir/usr/lib/systemd/system/ufw.service"
|
||||||
chmod 644 "$pkgdir/etc/ufw/"*.rules
|
chmod 644 "$pkgdir/etc/ufw/"*.rules
|
||||||
|
rm -rf "$pkgdir/usr/share/ufw/messages"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user