[arch-commits] Commit in ufw/trunk (PKGBUILD)
Bartłomiej Piotrowski
bpiotrowski at nymeria.archlinux.org
Sun Jun 2 13:36:36 UTC 2013
Date: Sunday, June 2, 2013 @ 15:36:35
Author: bpiotrowski
Revision: 92182
upgpkg: ufw 0.33-3
- correct iptables location (FS#35430)
Modified:
ufw/trunk/PKGBUILD
----------+
PKGBUILD | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-06-02 13:25:12 UTC (rev 92181)
+++ PKGBUILD 2013-06-02 13:36:35 UTC (rev 92182)
@@ -6,7 +6,7 @@
pkgname=ufw
pkgver=0.33
-pkgrel=2
+pkgrel=3
pkgdesc="Uncomplicated and easy to use CLI tool for managing a netfilter firewall"
arch=('any')
url="https://launchpad.net/ufw"
@@ -22,23 +22,25 @@
'etc/default/ufw'
'usr/lib/ufw/user.rules'
'usr/lib/ufw/user6.rules')
-source=(http://launchpad.net/$pkgname/$pkgver/$pkgver/+download/${pkgname}-${pkgver}.tar.gz
+source=(http://launchpad.net/$pkgname/$pkgver/$pkgver/+download/$pkgname-$pkgver.tar.gz
service)
sha256sums=('5f85a8084ad3539b547bec097286948233188c971f498890316dec170bdd1da8'
'fdface6f4690e4748fbbd5661c02e1967a8750fdb23581d35516174017a3fe39')
package() {
- cd $srcdir/$pkgname-$pkgver
+ cd $pkgname-$pkgver
# FS#28769 - move from /lib to /usr/lib
sed -e 's|/lib|/usr/lib|' -i setup.py
python2 setup.py install --root=$pkgdir
+ # FS#35458 - correct iptables location
+ sed -e 's|sbin|bin|g' -i $pkgdir/usr/lib/python2.7/site-packages/ufw/*
+
install -Dm644 $srcdir/service $pkgdir/usr/lib/systemd/system/ufw.service
+ chmod 644 $pkgdir/etc/ufw/*.rules $pkgdir/usr/lib/ufw/*.rules
install -Dm755 $pkgdir/usr/sbin/$pkgname $pkgdir/usr/bin/$pkgname
rm -rf $pkgdir/usr/sbin
-
- chmod 644 $pkgdir/etc/ufw/*.rules $pkgdir/usr/lib/ufw/*.rules
}
More information about the arch-commits
mailing list