summaryrefslogtreecommitdiffhomepage
path: root/subr/pkg_install.subr
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de>2018-05-09 17:03:08 +0000
committerLucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de>2018-05-09 17:03:08 +0000
commitb598a7221fbcc49672d267c298d817f222173f46 (patch)
tree4c0a48185239531cd1f063aec44a9e44bb48a5cb /subr/pkg_install.subr
parentafe442a4ad11e0af6f15b4d8d3d2a994997a8e2a (diff)
downloadmidipix_build-b598a7221fbcc49672d267c298d817f222173f46.tar.bz2
midipix_build-b598a7221fbcc49672d267c298d817f222173f46.tar.xz
pkg_install.subr: set permission bits 0{644,755} on files and 0755 on directories in ${PKG_DESTDIR}, resp.
Diffstat (limited to 'subr/pkg_install.subr')
-rw-r--r--subr/pkg_install.subr6
1 files changed, 3 insertions, 3 deletions
diff --git a/subr/pkg_install.subr b/subr/pkg_install.subr
index fda38e5a..cfe38604 100644
--- a/subr/pkg_install.subr
+++ b/subr/pkg_install.subr
@@ -5,13 +5,13 @@
pkg_install() {
ex_rtl_fileop mkdir "${PKG_PREFIX}";
find "${PKG_DESTDIR}" \
- -type d -exec chmod 0700 {} \;;
+ -type d -exec chmod 0755 {} \;;
find "${PKG_DESTDIR}" \
\( -perm -0400 \) -and \
\( -not -perm /0100 \) \
- -type f -exec chmod 0600 {} \;;
+ -type f -exec chmod 0644 {} \;;
find "${PKG_DESTDIR}" \
- -perm /0100 -type f -exec chmod 0700 {} \;;
+ -perm /0100 -type f -exec chmod 0755 {} \;;
tar -C "${PKG_DESTDIR}" -cpf - . |\
tar -C "${PKG_PREFIX}" --overwrite -xpf -;
if [ "${ARG_PACKAGE:-0}" -eq 1 ]; then