* Combine and tweak some find(1) invocations.

* Use the -delete operator to remove files.
This commit is contained in:
naddy 2020-03-22 18:13:35 +00:00
parent 1c7a7cd5a8
commit f88a93d598
9 changed files with 31 additions and 27 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.12 2019/07/12 20:44:37 sthen Exp $
# $OpenBSD: Makefile,v 1.13 2020/03/22 18:13:35 naddy Exp $
BROKEN = build fails fairly often, "EAccessViolation: Access violation"
@ -58,12 +58,13 @@ WRKDIST = ${WRKDIR}/lazarus
post-install:
chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/lazarus
find ${PREFIX}/share/lazarus -type d -exec chmod ${DIRMODE} {} +
find ${PREFIX}/share/lazarus -type f -exec chmod ${SHAREMODE} {} +
find ${PREFIX}/share/lazarus \
-type d -exec chmod ${DIRMODE} {} + -o \
-type f -exec chmod ${SHAREMODE} {} +
cd ${PREFIX}/share/lazarus && \
chown ${BINOWN}:${BINGRP} lazarus startlazarus lazbuild && \
chmod ${BINMODE} lazarus startlazarus lazbuild
find ${PREFIX} -name '*.orig' -exec rm -f {} +
find ${PREFIX} -name '*.orig' -delete
cd ${PREFIX}/share/lazarus/components/chmhelp/lhelp/lhelp.app/Contents/MacOS \
&& ln -sf ../../../../lhelp .

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.22 2019/07/12 20:46:23 sthen Exp $
# $OpenBSD: Makefile,v 1.23 2020/03/22 18:13:35 naddy Exp $
ONLY_FOR_ARCHS= i386 amd64
@ -50,8 +50,8 @@ NO_TEST= Yes
INSTALL_TARGET= system-install
post-extract:
find ${WRKDIR} \( -name .gitattributes -or \
-name .github -or -name .gitignore -or -name \
.gitmodules \) -exec rm -r {} +
find ${WRKDIR} \( -name .gitattributes -o \
-name .github -o -name .gitignore -o -name \
.gitmodules \) -prune -exec rm -r {} +
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.148 2020/02/20 14:37:56 sthen Exp $
# $OpenBSD: Makefile,v 1.149 2020/03/22 18:13:36 naddy Exp $
COMMENT= imap4 webmail client
@ -53,10 +53,11 @@ do-install:
chown -R ${SHAREOWN}:${SHAREGRP} ${INSTDIR}; \
chgrp -R wheel ${INSTDIR}/bin; \
chmod -R o-rwx ${INSTDIR}/bin; \
find ${INSTDIR} \( -name \*.orig -or -name \*.beforesubst -or \
-name \*.src \) -delete
find ${INSTDIR} \( -name \*.png -or -name \*.js -or \
-name \*.css \) -exec chmod -x {} +
find ${INSTDIR} \
\( -name \*.orig -o -name \*.beforesubst -o -name \*.src \) \
-delete -o \
\( -name \*.png -o -name \*.js -o -name \*.css \) \
-exec chmod -x {} +
rm ${INSTDIR}/composer.json
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.35 2019/07/12 20:47:56 sthen Exp $
# $OpenBSD: Makefile,v 1.36 2020/03/22 18:13:36 naddy Exp $
COMMENT= download flash video files from various sites
@ -46,6 +46,6 @@ pre-configure:
doc/get_flash_videos.pod get_flash_videos
post-install:
cd ${WRKINST}; find . -name '*.orig' -exec rm {} +
find ${WRKINST} -name '*.orig' -delete
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.5 2020/02/03 20:40:39 sthen Exp $
# $OpenBSD: Makefile,v 1.6 2020/03/22 18:13:36 naddy Exp $
COMMENT= VNC client using HTML5 (Web Sockets, Canvas)
@ -27,7 +27,7 @@ do-install:
cd ${WRKSRC} && pax -rw * ${PREFIX}/noVNC
chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/noVNC
chmod a=rX,u+w ${PREFIX}/noVNC
find ${PREFIX}/noVNC -name '*.orig' -exec rm {} +
find ${PREFIX}/noVNC -name '*.orig' -delete
ln -s ${TRUEPREFIX}/noVNC/utils/launch.sh \
${WRKINST}${LOCALBASE}/bin/noVNC

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.19 2019/12/09 14:32:07 fcambus Exp $
# $OpenBSD: Makefile,v 1.20 2020/03/22 18:13:36 naddy Exp $
COMMENT= free real-time logfile analyzer
@ -44,7 +44,8 @@ do-install:
${INSTALL_DATA_DIR} ${INSTDIR}/data
cp -R ${WRKSRC}/* ${INSTDIR}/
chown -R ${SHAREOWN}:${SHAREGRP} ${INSTDIR}
find ${INSTDIR} -name '*.pl' -type f -exec chmod u=rwx,go=rx {} +
find ${INSTDIR} ! -name '*.pl' -type f -exec chmod u=rw,go=r {} +
find ${INSTDIR} -type f \
\( -name '*.pl' -exec chmod u=rwx,go=rx {} + -o \
-exec chmod u=rw,go=r {} + \)
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.17 2019/09/26 21:59:31 sthen Exp $
# $OpenBSD: Makefile,v 1.18 2020/03/22 18:13:36 naddy Exp $
COMMENT = command line access to most of Drupal
@ -31,7 +31,8 @@ do-install:
rm ${PREFIX}/libexec/drush/drush.bat
rm -r ${PREFIX}/libexec/drush/tests
${SUBST_CMD} -m 555 -c ${FILESDIR}/drush ${PREFIX}/bin/drush
find ${PREFIX}/libexec/drush -name '*.orig' -exec rm {} +
find ${PREFIX}/libexec/drush -name '.git' -type d -exec rm -rf {} +
find ${PREFIX}/libexec/drush \
-name '*.orig' -exec rm {} + -o \
-name '.git' -type d -prune -exec rm -rf {} +
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.12 2019/07/12 20:50:51 sthen Exp $
# $OpenBSD: Makefile,v 1.13 2020/03/22 18:13:36 naddy Exp $
COMMENT= catalyst plugin for prototype
@ -20,6 +20,6 @@ CONFIGURE_STYLE= modinst
# we shan't be needing MacOS resource forks in these parts!
post-extract:
@find ${WRKSRC} -name '._*' -exec rm {} +
@find ${WRKSRC} -name '._*' -delete
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.12 2020/02/07 22:16:20 bket Exp $
# $OpenBSD: Makefile,v 1.13 2020/03/22 18:13:36 naddy Exp $
COMMENT = KDE 4 bindings for Python
DISTNAME = pykde4-${MODKDE4_VERSION}
@ -46,6 +46,6 @@ LIB_DEPENDS = databases/soprano>=${MIN_SOPRANO_VERSION}
CONFIGURE_ARGS = -DWITH_PolkitQt:Bool=FALSE
post-install:
find ${PREFIX} -name '*.orig' -exec rm {} +
find ${PREFIX} -name '*.orig' -delete
.include <bsd.port.mk>