[arch-commits] Commit in ufw/repos (3 files)

Evangelos Foutras foutrelis at archlinux.org
Tue Nov 10 04:58:06 UTC 2020


    Date: Tuesday, November 10, 2020 @ 04:58:05
  Author: foutrelis
Revision: 749203

archrelease: copy trunk to community-staging-any

Added:
  ufw/repos/community-staging-any/
  ufw/repos/community-staging-any/PKGBUILD
    (from rev 749202, ufw/trunk/PKGBUILD)
  ufw/repos/community-staging-any/service
    (from rev 749202, ufw/trunk/service)

----------+
 PKGBUILD |   50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 service  |   16 ++++++++++++++++
 2 files changed, 66 insertions(+)

Copied: ufw/repos/community-staging-any/PKGBUILD (from rev 749202, ufw/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-10 04:58:05 UTC (rev 749203)
@@ -0,0 +1,50 @@
+# 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.36
+pkgrel=4
+pkgdesc="Uncomplicated and easy to use CLI tool for managing a netfilter firewall"
+arch=('any')
+url="https://launchpad.net/ufw"
+license=('GPL3')
+depends=('iptables' 'python')
+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'
+        'etc/ufw/user6.rules')
+source=("https://launchpad.net/$pkgname/$pkgver/$pkgver/+download/$pkgname-$pkgver.tar.gz"
+        "https://launchpad.net/$pkgname/$pkgver/$pkgver/+download/$pkgname-$pkgver.tar.gz.asc"
+        service)
+sha256sums=('754b22ae5edff0273460ac9f57509c3938187e0cf4fb9692c6a02833fff33cfc'
+            'SKIP'
+            'fdface6f4690e4748fbbd5661c02e1967a8750fdb23581d35516174017a3fe39')
+validpgpkeys=('4C20C06B5D8BDE688854D28A51DBDC58CC559573')
+
+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"
+
+  python3 setup.py install --root="$pkgdir"
+
+  install -Dm644 "$srcdir/service" "$pkgdir/usr/lib/systemd/system/ufw.service"
+  chmod 644 "$pkgdir/etc/ufw/"*.rules
+}

Copied: ufw/repos/community-staging-any/service (from rev 749202, ufw/trunk/service)
===================================================================
--- community-staging-any/service	                        (rev 0)
+++ community-staging-any/service	2020-11-10 04:58:05 UTC (rev 749203)
@@ -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



More information about the arch-commits mailing list