APKBUILD examples:Permissions: Difference between revisions

From Alpine Linux
m (Reverted edits by RuthHughes (talk) to last revision by Fab)
(use cat template)
 
Line 1: Line 1:
If the source files have strange permissions you can easily fix this in your APKBUILD.
If the source files have strange permissions you can easily fix this in your APKBUILD.


<pre>
{{cat|APKBUILD|<nowiki>...
# Fix subdir perms
# Fix subdir perms
find "$subpkgdir"/usr/share/doc/$pkgname/ -type d \
find "$subpkgdir"/usr/share/doc/$pkgname/ -type d \
Line 7: Line 7:
find "$subpkgdir"/usr/share/$pkgname/ -type d \
find "$subpkgdir"/usr/share/$pkgname/ -type d \
-exec chmod 755 '{}' \; || return 1
-exec chmod 755 '{}' \; || return 1
</pre>
...</nowiki>}}


[[Category:Development]]
[[Category:Development]]

Latest revision as of 22:26, 16 September 2023

If the source files have strange permissions you can easily fix this in your APKBUILD.

Contents of APKBUILD

... # Fix subdir perms find "$subpkgdir"/usr/share/doc/$pkgname/ -type d \ -exec chmod 755 '{}' \; || return 1 find "$subpkgdir"/usr/share/$pkgname/ -type d \ -exec chmod 755 '{}' \; || return 1 ...