diff options
-rw-r--r-- | src/oh-gencontrol | 6 | ||||
-rw-r--r-- | src/oh-installfiles | 3 | ||||
-rw-r--r-- | src/oh-strip | 1 |
3 files changed, 10 insertions, 0 deletions
diff --git a/src/oh-gencontrol b/src/oh-gencontrol index 6761e7d..a1fa9d6 100644 --- a/src/oh-gencontrol +++ b/src/oh-gencontrol @@ -73,6 +73,7 @@ gen_control_src() control="${control_dir}/control" mkdir "${control_dir}" + chmod 644 "${control_dir}" printf 'Package: %s\n' "${srcpkg}-src" > ${control} printf 'Source: %s\n' "${srcpkg}" >> ${control} @@ -81,6 +82,8 @@ gen_control_src() # TODO: Calculate "Installed-Size". copy_required_field Maintainer ${control} copy_optional_field Homepage ${control} + + chmod 644 ${control} } gen_control_bin() @@ -96,6 +99,7 @@ gen_control_bin() control="${control_dir}/control" mkdir "${control_dir}" + chmod 644 "${control_dir}" # Binary and source package names and version. copy_required_field ${binpkg} Package ${control} @@ -122,6 +126,8 @@ gen_control_bin() copy_required_field ${binpkg} Description ${control} copy_optional_field Homepage ${control} + chmod 644 ${control} + # Maintainer scripts. for script in preinst postinst prerm postrm; do if [ -L ../${binpkg}.pkg/${script} ]; then diff --git a/src/oh-installfiles b/src/oh-installfiles index 2297e53..df4df5c 100644 --- a/src/oh-installfiles +++ b/src/oh-installfiles @@ -39,6 +39,9 @@ IFS=' while [ ${#} -gt 0 ]; do printf 'oh-installfiles: Installing files for package "%s"...\n' "${1}" + mkdir ${1}.data + chmod 644 ${1}.data + # Loop over lines in the 'install' file. while read -r pattern; do # Ensure that the full directory path of the pattern exists in the diff --git a/src/oh-strip b/src/oh-strip index afc4805..86e59b9 100644 --- a/src/oh-strip +++ b/src/oh-strip @@ -74,6 +74,7 @@ while [ ${#} -gt 0 ]; do # from the original object file to the debugging object file. objcopy --only-keep-debug "dest/${1}" "dest/usr/lib/debug/${1}" objcopy --add-gnu-debuglink="/usr/lib/debug/${1}" "dest/${1}" + chmod 644 "dest/usr/lib/debug/${1}" fi # Strip the object file of symbols. # TODO: If the file is not a library, strip it of all symbols. |