Reinstalling the port failed because some of its files were installed with permissions that prevented overwriting the existing files with cp.
@@ -19,5 +19,6 @@ build() {
install() {
target_dir="${SERENITY_INSTALL_ROOT}${resource_path}"
run_nocd mkdir -p ${target_dir}
+ run_nocd chmod 644 ${workdir}/*
run_nocd cp ${workdir}/* ${target_dir}
}