1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00
freebsd-ports/www/lightsquid/Makefile
Martin Wilke 8f05419b58 - Update to 1.7
PR:		ports/105803
Submitted by:	user@blg.akavia.ru (maintainer)
2006-11-24 23:02:36 +00:00

70 lines
1.6 KiB
Makefile

# New ports collection makefile for: lightsquid
# Date created: 24 Nov 2005
# Whom: Alexander Logvinov <info@logvinov.com>
#
# $FreeBSD$
#
PORTNAME= lightsquid
PORTVERSION= 1.7
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
EXTRACT_SUFX= .tgz
MAINTAINER= ports@logvinov.com
COMMENT= A light and fast web based squid proxy traffic analyser
OPTIONS= GDSUPPORT "Graphics report support" on
NO_BUILD= yes
USE_PERL5= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
DSTDIR= ${PREFIX}/www/${PORTNAME}
.if !defined(NOPORTDOCS)
SUB_LIST= DOCSDIR=${DOCSDIR}
SUB_FILES= pkg-message
.endif
CONFIGS= lightsquid.cfg realname.cfg skipuser.cfg group.cfg
REINPLACE_ARGS= -i ""
PORTDOCS= gnugpl.txt install.txt readme.txt thanks.txt graph.txt logformat.txt \
templates.txt version.txt
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_GDSUPPORT)
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/GD.pm:${PORTSDIR}/graphics/p5-GD
.endif
do-patch:
@${REINPLACE_CMD} "s|/var/www/html/${PORTNAME}|${DSTDIR}|" ${WRKSRC}/lightsquid.cfg
@${MV} ${WRKSRC}/group.cfg.src ${WRKSRC}/group.cfg
.for i in ${CONFIGS}
@${MV} ${WRKSRC}/${i} ${WRKSRC}/${i}.dist
.endfor
do-install:
@${MKDIR} ${DSTDIR}
${CP} -R ${WRKSRC}/ ${DSTDIR}
@${RM} -r ${DSTDIR}/doc
.for i in ${CONFIGS}
@${CP} -n ${DSTDIR}/${i}.dist ${DSTDIR}/${i}
.endfor
@${CHMOD} +x ${DSTDIR}/*.cgi
@${CHMOD} +x ${DSTDIR}/*.pl
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${DSTDIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DOCSDIR}
.endfor
.endif
post-install:
.if !defined(NOPORTDOCS)
@${CAT} ${PKGMESSAGE}
.endif
.include <bsd.port.post.mk>