naddy d159f8d1ad Make use of "find -exec {} +" (which is POSIX) and "find -delete"
(which is not) throughout the ports Makefiles.

* Replace find|xargs with find -exec {} +
* Replace -exec {} \; with -exec {} + if applicable.
* Use the -delete operator to remove files and empty directories.
* Combine and tweak some find(1) invocations while here.

ok kn@ rsadowski@ espie@
2020-03-20 16:44:21 +00:00

54 lines
1.7 KiB
Makefile

# $OpenBSD: Makefile,v 1.35 2020/03/20 16:44:28 naddy Exp $
COMMENT= access counter, clock and date for WWW pages
V= 2.5
DISTNAME= wwwcount$V
PKGNAME= wwwcount-$V
REVISION= 0
CATEGORIES= www
MASTER_SITES= http://muquit.com/muquit/software/Count/src/wwwcount$V/ \
http://wwwcount.yeehaw.net/src/wwwcount$V/ \
http://www.asamnet.de/mirror/Count/src/wwwcount$V/ \
http://wwwcount.webcc.net/src/wwwcount$V/
# For digit images look at:
# http://www.digitmania.holowww.com/
HOMEPAGE= http://www.muquit.com/muquit/software/Count/Count.html
# BSD-like
PERMIT_PACKAGE= Yes
WANTLIB= c
CONFIGURE_STYLE=gnu
WWWDIR= ${VARBASE}/www
pre-configure:
@sed -e "s,@PREFIX@,${PREFIX},g" -e "s,@WWWDIR@,${WWWDIR},g" \
${FILESDIR}/config.h.in > ${WRKSRC}/src/config.h
NO_TEST= Yes
do-install:
.for d in A B C D E bang cd cdd cdr
${INSTALL_DATA_DIR} ${PREFIX}/lib/wwwcount/digits/${d}
${INSTALL_DATA} ${WRKSRC}/data/digits/${d}/*.gif \
${PREFIX}/lib/wwwcount/digits/${d}
.endfor
${INSTALL_DATA} -s ${WRKSRC}/src/Count.cgi ${PREFIX}/lib/wwwcount
${INSTALL_DATA} ${FILESDIR}/count.cfg.sample ${PREFIX}/lib/wwwcount
${INSTALL_DATA} ${WRKSRC}/data/rgb.txt ${PREFIX}/lib/wwwcount
${INSTALL_PROGRAM} ${WRKSRC}/utils/mkstrip/mkstrip ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/utils/mkstrip/mkstrip.1 ${PREFIX}/man/man1
${INSTALL_PROGRAM} ${WRKSRC}/utils/extdgts/extdgts ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/wwwcount
@cd ${WRKSRC}/docs; cp -RP * ${PREFIX}/share/doc/wwwcount
@chown -R ${SHAREOWN}:${SHAREGRP} \
${PREFIX}/share/doc/wwwcount
@find ${PREFIX}/share/doc/wwwcount \
-type f -exec chmod ${SHAREMODE} {} + -o \
-type d -exec chmod ${BINMODE} {} +
.include <bsd.port.mk>