[arch-commits] Commit in ufw/trunk (PKGBUILD ufw.install)

Kyle Keen kkeen at archlinux.org
Wed Apr 27 11:09:48 UTC 2016


    Date: Wednesday, April 27, 2016 @ 13:09:47
  Author: kkeen
Revision: 172028

upgpkg: ufw 0.35-2  FS#49101

Added:
  ufw/trunk/ufw.install
Modified:
  ufw/trunk/PKGBUILD

-------------+
 PKGBUILD    |    3 ++-
 ufw.install |   13 +++++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-04-27 10:53:19 UTC (rev 172027)
+++ PKGBUILD	2016-04-27 11:09:47 UTC (rev 172028)
@@ -7,12 +7,13 @@
 
 pkgname=ufw
 pkgver=0.35
-pkgrel=1
+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'

Added: ufw.install
===================================================================
--- ufw.install	                        (rev 0)
+++ ufw.install	2016-04-27 11:09:47 UTC (rev 172028)
@@ -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