1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00
freebsd-ports/devel/gitlist/Makefile
Fernando Apesteguía 29ecddac0f devel/gitlist: update to 1.0.2
Maintainer changes email address.

PR:	254377
Reported by:	freebsd-ports@andre.rikkertdekoe.nl (maintainer)
2021-04-17 14:12:19 +02:00

49 lines
1.2 KiB
Makefile

# Created by: Andre Rikkert de Koe - ARK-ICT <andre@ark-ict.nl>
PORTNAME= gitlist
DISTVERSION= 1.0.2
CATEGORIES= devel www
MASTER_SITES= https://github.com/klaussilveira/gitlist/releases/download/${DISTVERSION}/ \
https://freebsd.ark-ict.nl/ports/
MAINTAINER= freebsd-ports@misc.ark-ict.nl
COMMENT= Web based Git repository browser written in PHP
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
RUN_DEPENDS= git:devel/git
NO_BUILD= yes
USES= php:web
USE_PHP= ctype hash json simplexml
PLIST= ${WRKDIR}/plist
WRKSRC= ${WRKDIR}/${PORTNAME}
USERS?= ${WWWOWN}
GROUPS?= ${WWWGRP}
SUB_FILES= pkg-message
post-patch:
${MKDIR} ${WRKSRC}/cache
cd ${WRKSRC}; \
${REINPLACE_CMD} -e 's|/usr/bin/git|/usr/local/bin/git|g' config.ini-example; \
${FIND} . ! -type d | ${SORT} | ${SED} -e "s,^\.,%%WWWDIR%%," > ${PLIST};
${ECHO} "@dir(${WWWOWN},${WWWGRP},) %%WWWDIR%%/cache" >> ${PLIST}
do-install:
cd ${WRKSRC}; \
IFS="$$(printf '\n\t')"; \
for src in $$( ${FIND} . ); do \
dst="${STAGEDIR}${WWWDIR}$${src#.}"; \
if ${TEST} -d "$$src"; then \
${MKDIR} "$$dst"; \
else \
${INSTALL_DATA} "$$src" "$$dst"; \
fi \
done
${RM} -r "${WWWDIR}/cache/views"
.include <bsd.port.mk>