]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
cups: Fix file permissions in /usr/include and drop /var/run
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 18 Mar 2023 15:33:13 +0000 (16:33 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 21 Mar 2023 18:25:39 +0000 (18:25 +0000)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
cups/cups.nm

index d038d41c8b4e709a9e2d9d29f341209c174576f1..113819ee2b0920e0066071108af0b121bcaa5cd1 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = cups
 version    = 2.3.6
-release    = 2
+release    = 3
 
 groups     = Applications/Printing
 url        = https://cups.org/software.php
@@ -56,12 +56,20 @@ build
                --enable-webif \
                --with-xinetd=no
 
-       install
-               make install BUILDROOT=%{BUILDROOT}
+       make_install_targets += \
+               BUILDROOT=%{BUILDROOT}
 
+       install_cmds
                # Install default config file.
                mkdir -pv %{BUILDROOT}/etc/cups
                cp -vf %{DIR_APP}/conf/cupsd.conf %{BUILDROOT}/etc/cups/
+
+               # Fix file permissions in /usr/include
+               find %{BUILDROOT}%{includedir} -type f -iname "*.h" \
+                       -exec chmod 644 {} \;
+
+               # Drop /var/run
+               rm -rvf %{BUILDROOT}%{localstatedir}/run
        end
 end