1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
freebsd-ports/www/repos-style/Makefile
2014-03-10 18:01:09 +00:00

44 lines
977 B
Makefile

# Created by: Alexander Kriventsov
# $FreeBSD$
PORTNAME= repos-style
PORTVERSION= 2.0
PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= ftp://ftp.renatasystems.org/pub/FreeBSD/ports/distfiles/ \
http://mirror.amdmi3.ru/distfiles/
MAINTAINER= avk@vl.ru
COMMENT= Stylesheet for the Subversion index web page
RUN_DEPENDS= subversion>=0:${PORTSDIR}/devel/subversion
USES= zip
NO_BUILD= YES
USE_PHP= xml
WANT_PHP_WEB= yes
WRKSRC= ${WRKDIR}/repos-web
SUB_LIST+= PORTNAME=${PORTNAME}
SUB_FILES+= pkg-message
NO_STAGE= yes
pre-install:
# Prevent installation of .orig files by deleting them.
@${FIND} ${WRKSRC} -name '*.orig' -delete
${MV} ${WRKSRC}/open/log/index.php ${WRKSRC}/open/log/index.dist.php
do-install:
@${MKDIR} ${WWWDIR}
@(cd ${WRKSRC} && ${PAX} -r -w . ${WWWDIR})
if [ ! -f ${WWWDIR}/open/log/index.php ]; then \
${CP} -p ${WWWDIR}/open/log/index.dist.php ${WWWDIR}/open/log/index.php; \
fi
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>