[arch-commits] Commit in ufw/repos/community-any (6 files)

Kyle Keen kkeen at archlinux.org
Tue May 23 21:01:59 UTC 2017


    Date: Tuesday, May 23, 2017 @ 21:01:59
  Author: kkeen
Revision: 229848

archrelease: copy trunk to community-any

Added:
  ufw/repos/community-any/PKGBUILD
    (from rev 229847, ufw/trunk/PKGBUILD)
  ufw/repos/community-any/service
    (from rev 229847, ufw/trunk/service)
  ufw/repos/community-any/ufw.install
    (from rev 229847, ufw/trunk/ufw.install)
Deleted:
  ufw/repos/community-any/PKGBUILD
  ufw/repos/community-any/service
  ufw/repos/community-any/ufw.install

-------------+
 PKGBUILD    |  106 ++++++++++++++++++++++++++++++----------------------------
 service     |   32 ++++++++---------
 ufw.install |   26 +++++++-------
 3 files changed, 84 insertions(+), 80 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2017-05-23 21:01:35 UTC (rev 229847)
+++ PKGBUILD	2017-05-23 21:01:59 UTC (rev 229848)
@@ -1,51 +0,0 @@
-# $Id$
-# Maintainer: Kyle Keen <keenerd at gmail.com>
-# Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
-# Contributor: Jaroslav Lichtblau <dragonlord at aur.archlinux.org>
-# Contributor: Kessia 'even' Pinheiro <kessiapinheiro at gmail.com>
-# Contributor: Sorin Ionescu <sorin.ionescu at gmail.com>
-
-pkgname=ufw
-pkgver=0.35
-pkgrel=2
-pkgdesc="Uncomplicated and easy to use CLI tool for managing a netfilter firewall"
-arch=('any')
-url="https://launchpad.net/ufw"
-license=('GPL3')
-depends=('iptables' 'python2')
-install=ufw.install
-backup=('etc/ufw/before.rules'
-        'etc/ufw/before6.rules'
-        'etc/ufw/after.rules'
-        'etc/ufw/after6.rules'
-        'etc/ufw/ufw.conf'
-        'etc/ufw/user.rules'
-        'etc/ufw/sysctl.conf'
-        'etc/default/ufw'
-        'usr/lib/ufw/user.rules'
-        'usr/lib/ufw/user6.rules'
-        'etc/ufw/user.rules'
-        'etc/ufw/user6.rules')
-source=(http://launchpad.net/$pkgname/$pkgver/$pkgver/+download/$pkgname-$pkgver.tar.gz
-        service)
-sha256sums=('662f865bc83bf8aa1a40a6fe578bc2ce796ff60a1be2c1103def7db1b91f8509'
-            'fdface6f4690e4748fbbd5661c02e1967a8750fdb23581d35516174017a3fe39')
-
-# this /usr/lib/ufw/ rules were moved to /etc/ufw
-# remove /usr/lib from backup in O.36?
-
-package() {
-  cd "$pkgname-$pkgver"
-  
-  # FS#28769 - move from /lib to /usr/lib
-  sed -i -e 's|/lib|/usr/lib|' \
-         -e 's|sbin|bin|g' setup.py
-
-  python2 setup.py install --root="$pkgdir"
-
-  # FS#35458 - correct iptables location
-  sed -i -e 's|sbin|bin|g' "$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
-}

Copied: ufw/repos/community-any/PKGBUILD (from rev 229847, ufw/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2017-05-23 21:01:59 UTC (rev 229848)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: Jaroslav Lichtblau <dragonlord at aur.archlinux.org>
+# Contributor: Kessia 'even' Pinheiro <kessiapinheiro at gmail.com>
+# Contributor: Sorin Ionescu <sorin.ionescu at gmail.com>
+
+pkgname=ufw
+pkgver=0.35
+pkgrel=3
+pkgdesc="Uncomplicated and easy to use CLI tool for managing a netfilter firewall"
+arch=('any')
+url="https://launchpad.net/ufw"
+license=('GPL3')
+depends=('iptables' 'python2')
+install=ufw.install
+backup=('etc/ufw/before.rules'
+        'etc/ufw/before6.rules'
+        'etc/ufw/after.rules'
+        'etc/ufw/after6.rules'
+        'etc/ufw/ufw.conf'
+        'etc/ufw/user.rules'
+        'etc/ufw/sysctl.conf'
+        'etc/default/ufw'
+        'usr/lib/ufw/user.rules'
+        'usr/lib/ufw/user6.rules'
+        'etc/ufw/user.rules'
+        'etc/ufw/user6.rules')
+source=(http://launchpad.net/$pkgname/$pkgver/$pkgver/+download/$pkgname-$pkgver.tar.gz
+        service)
+sha256sums=('662f865bc83bf8aa1a40a6fe578bc2ce796ff60a1be2c1103def7db1b91f8509'
+            'fdface6f4690e4748fbbd5661c02e1967a8750fdb23581d35516174017a3fe39')
+
+# this /usr/lib/ufw/ rules were moved to /etc/ufw
+# remove /usr/lib from backup in O.36?
+
+prepare() {
+  cd "$pkgname-$pkgver"
+  # FS#28769 - move from /lib to /usr/lib
+  sed -i -e 's|/lib|/usr/lib|' \
+         -e 's|sbin|bin|g' setup.py
+
+  # FS#35458, FS#54110 - correct iptables location
+  sed -i -e 's|sbin|bin|g' setup.py
+  sed -i -e 's|sbin|bin|g' src/util.py
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  
+  python2 setup.py install --root="$pkgdir"
+
+  install -Dm644 "$srcdir/service" "$pkgdir/usr/lib/systemd/system/ufw.service"
+  chmod 644 "$pkgdir/etc/ufw/"*.rules
+}

Deleted: service
===================================================================
--- service	2017-05-23 21:01:35 UTC (rev 229847)
+++ service	2017-05-23 21:01:59 UTC (rev 229848)
@@ -1,16 +0,0 @@
-[Unit]
-Description=CLI Netfilter Manager
-DefaultDependencies=no
-After=systemd-sysctl.service
-Before=sysinit.target
-ConditionPathExists=|/etc/ufw/ufw.conf
-ConditionDirectoryNotEmpty=|/usr/lib/ufw
-
-[Service]
-Type=oneshot
-ExecStart=/usr/lib/ufw/ufw-init start
-ExecStop=/usr/lib/ufw/ufw-init stop
-RemainAfterExit=yes
-
-[Install]
-WantedBy=multi-user.target

Copied: ufw/repos/community-any/service (from rev 229847, ufw/trunk/service)
===================================================================
--- service	                        (rev 0)
+++ service	2017-05-23 21:01:59 UTC (rev 229848)
@@ -0,0 +1,16 @@
+[Unit]
+Description=CLI Netfilter Manager
+DefaultDependencies=no
+After=systemd-sysctl.service
+Before=sysinit.target
+ConditionPathExists=|/etc/ufw/ufw.conf
+ConditionDirectoryNotEmpty=|/usr/lib/ufw
+
+[Service]
+Type=oneshot
+ExecStart=/usr/lib/ufw/ufw-init start
+ExecStop=/usr/lib/ufw/ufw-init stop
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target

Deleted: ufw.install
===================================================================
--- ufw.install	2017-05-23 21:01:35 UTC (rev 229847)
+++ ufw.install	2017-05-23 21:01:59 UTC (rev 229848)
@@ -1,13 +0,0 @@
-post_upgrade() {
-  if [ "$(vercmp $2 0.35-2)" -lt 0 ]; then
-    echo ">>>"
-    echo ">>> IMPORTANT UFW UPGRADE NOTICE"
-    echo ">>> ----------------------------"
-    echo ">>> Version 0.35 has moved several config files."
-    echo ">>> You may need to copy your versions of the files"
-    echo ">>> to the new location."
-    echo ">>> /usr/lib/ufw/user.rules.pacsave  -> /etc/ufw/user.rules"
-    echo ">>> /usr/lib/ufw/user6.rules.pacsave -> /etc/ufw/user6.rules"
-    echo ">>>"
-  fi
-}

Copied: ufw/repos/community-any/ufw.install (from rev 229847, ufw/trunk/ufw.install)
===================================================================
--- ufw.install	                        (rev 0)
+++ ufw.install	2017-05-23 21:01:59 UTC (rev 229848)
@@ -0,0 +1,13 @@
+post_upgrade() {
+  if [ "$(vercmp $2 0.35-2)" -lt 0 ]; then
+    echo ">>>"
+    echo ">>> IMPORTANT UFW UPGRADE NOTICE"
+    echo ">>> ----------------------------"
+    echo ">>> Version 0.35 has moved several config files."
+    echo ">>> You may need to copy your versions of the files"
+    echo ">>> to the new location."
+    echo ">>> /usr/lib/ufw/user.rules.pacsave  -> /etc/ufw/user.rules"
+    echo ">>> /usr/lib/ufw/user6.rules.pacsave -> /etc/ufw/user6.rules"
+    echo ">>>"
+  fi
+}



More information about the arch-commits mailing list