pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/php-orangehrm php-orangehrm: Fix permissions and ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7e17ff885c14
branches:  trunk
changeset: 388684:7e17ff885c14
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Fri Nov 25 09:15:59 2022 +0000

description:
php-orangehrm: Fix permissions and use find "+".

Fixes build, but also by using "+" instead of "{} \;", saves around 25,000
unnecessary execs and significantly reduces build and system time.

diffstat:

 misc/php-orangehrm/Makefile |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r caab56d74460 -r 7e17ff885c14 misc/php-orangehrm/Makefile
--- a/misc/php-orangehrm/Makefile       Fri Nov 25 08:35:26 2022 +0000
+++ b/misc/php-orangehrm/Makefile       Fri Nov 25 09:15:59 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2022/05/22 13:39:56 taca Exp $
+# $NetBSD: Makefile,v 1.13 2022/11/25 09:15:59 jperkin Exp $
 #
 
 DISTNAME=      orangehrm-4.10.1
@@ -37,11 +37,12 @@
 CHECK_INTERPRETER_SKIP+=       share/orangehrm/upgrader/symfony
 
 pre-install:
-       ${FIND} ${WRKSRC} -name "*.orig*" -exec ${RM} -f {} \;
+       ${FIND} ${WRKSRC} -name "*.orig*" -exec ${RM} -f {} +
 
 do-install:
        ${RM} -f symfony/lib/vendor/google/apiclient-services/generator/run_tests.sh.orig
-       ${FIND} ${WRKSRC} -type f -exec ${CHMOD} og-w {} \;
+       ${CHMOD} -R og-w ${WRKSRC}
+       ${FIND} ${WRKSRC} -type f -exec ${CHMOD} -x {} +
        cd ${WRKSRC} && pax -rw -pmp * \
                ${DESTDIR}${PREFIX}/${OHRDIR}
 



Home | Main Index | Thread Index | Old Index