midipix / build / midipix_build

Forked from build/midipix_build 4 years ago
Clone

79f0aa subr/pkg_install.subr: force directory and non-executable/executable file permissions bits {0700,0600,0700}, resp.

Authored and Committed by Lucio Andrés Illanes Albornoz (arab, vxp) 7 years ago
    subr/pkg_install.subr: force directory and non-executable/executable file permissions bits {0700,0600,0700}, resp.
    
        
file modified
+8 -0
subr/pkg_install.subr CHANGED
@@ -4,6 +4,14 @@
4
4
5
5
pkg_install() {
6
6
ex_rtl_fileop mkdir "${PKG_PREFIX}";
7
+ find "${PKG_DESTDIR}" \
8
+ -type d -exec chmod 0700 {} \;;
9
+ find "${PKG_DESTDIR}" \
10
+ \( -perm -0400 \) -and \
11
+ \( -not -perm /0100 \) \
12
+ -type f -exec chmod 0600 {} \;;
13
+ find "${PKG_DESTDIR}" \
14
+ -perm /0100 -type f -exec chmod 0700 {} \;;
7
15
tar -C "${PKG_DESTDIR}" -cpf - . |\
8
16
tar -C "${PKG_PREFIX}" --overwrite -xpf -;
9
17
if [ "${ARG_PACKAGE:-0}" -eq 1 ]; then