From: Stefan Schantl Date: Sat, 18 Mar 2023 15:33:13 +0000 (+0100) Subject: cups: Fix file permissions in /usr/include and drop /var/run X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bab10c261dc238c10f12445c20e9079dac74b26e;p=people%2Fstevee%2Fipfire-3.x.git cups: Fix file permissions in /usr/include and drop /var/run Signed-off-by: Stefan Schantl --- diff --git a/cups/cups.nm b/cups/cups.nm index d038d41c8..113819ee2 100644 --- a/cups/cups.nm +++ b/cups/cups.nm @@ -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