]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
libdb: Fix binary and header file permissions
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 18 Mar 2023 19:29:58 +0000 (20:29 +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>
libdb/libdb.nm

index ed20767cde881553000245938724773468f62d19..08d60a401a5ff55aa42b11174e6153ca92ab1268 100644 (file)
@@ -8,7 +8,7 @@ version_major = 6
 version_minor = 1
 version_patch = 26
 version    = %{version_major}.%{version_minor}.%{version_patch}
-release    = 3
+release    = 4
 thisapp    = db-%{version}
 
 soversion  = %{version_major}.%{version_minor}
@@ -85,6 +85,14 @@ build
                for i in db.h db_cxx.h db_185.h; do
                        ln -svf %{name}/${i} %{BUILDROOT}/%{includedir}
                done
+
+               # Fix binary permissions.
+               find %{BUILDROOT}%{bindir} -type f -executable \
+                        -exec chmod 755 {} \;
+
+               # Fix header permissions.
+               find %{BUILDROOT}%{includedir} -type f -iname "*.h" \
+                       -exec chmod 644 {} \;
        end
 end