🔒 Repository is read-only – file editing is disabled.

recipes/utils/ufw/01-move-from-lib-to-usr-lib.patch main

39 linii Raw ← Powrót
123456789101112131415161718192021222324252627282930313233343536373839
commit 58275d6974b8f5df8923ffb81a56825b88e36888
Author: T.J. Townsend <blakkheim@archlinux.org>
Date:   Thu Dec 18 16:41:01 2025 -0500

    move from /lib to /usr/lib
    
    https://bugs.archlinux.org/task/28769

diff --git a/setup.py b/setup.py
index 1c0e620..4d192b0 100644
--- a/setup.py
+++ b/setup.py
@@ -54,7 +54,7 @@ class Install(_install, object):
             return
 
         real_confdir = os.path.join('/etc')
-        real_statedir = os.path.join('/lib', 'ufw')
+        real_statedir = os.path.join('/usr/lib', 'ufw')
         real_prefix = self.prefix
         if self.home != None:
             real_confdir = self.home + real_confdir
@@ -113,7 +113,7 @@ class Install(_install, object):
         if self.root != None:
             prefix = self.root + real_prefix
 
-        script = os.path.join(prefix, 'sbin', 'ufw')
+        script = os.path.join(prefix, 'bin', 'ufw')
         manpage = os.path.join(prefix, 'share', 'man', 'man8', 'ufw.8')
         manpage_f = os.path.join(prefix, 'share', 'man', 'man8', \
                                  'ufw-framework.8')
@@ -253,7 +253,7 @@ for e in ['iptables']:
     # /usr/sbin/iptables to /sbin/iptables. Debian bullseye moves iptables
     # to /usr/sbin with no symlink in /sbin except on upgrades. To accomodate
     # buildds that may still have the old iptables, search /usr/sbin first
-    for dir in ['/usr/sbin', '/sbin', '/usr/bin', '/bin', '/usr/local/sbin', \
+    for dir in ['/usr/bin', '/bin', '/usr/bin', '/bin', '/usr/local/bin', \
                 '/usr/local/bin']:
         if e == "iptables":
             if os.path.exists(os.path.join(dir, e)):