head	1.15;
access;
symbols
	RELEASE_8_3_0:1.11
	RELEASE_9_0_0:1.11
	RELEASE_7_4_0:1.11
	RELEASE_8_2_0:1.11
	RELEASE_6_EOL:1.11
	RELEASE_8_1_0:1.11
	RELEASE_7_3_0:1.10
	RELEASE_8_0_0:1.9
	RELEASE_7_2_0:1.7
	RELEASE_7_1_0:1.7
	RELEASE_6_4_0:1.7
	RELEASE_5_EOL:1.7
	RELEASE_7_0_0:1.7
	RELEASE_6_3_0:1.7
	PRE_XORG_7:1.6
	RELEASE_4_EOL:1.5
	RELEASE_6_2_0:1.3
	RELEASE_6_1_0:1.2
	RELEASE_5_5_0:1.2;
locks; strict;
comment	@# @;


1.15
date	2013.03.08.13.00.12;	author svnexp;	state Exp;
branches;
next	1.14;

1.14
date	2013.02.19.14.35.38;	author svnexp;	state Exp;
branches;
next	1.13;

1.13
date	2012.11.17.06.02.38;	author svnexp;	state Exp;
branches;
next	1.12;

1.12
date	2012.06.29.16.25.01;	author az;	state Exp;
branches;
next	1.11;

1.11
date	2010.03.28.06.44.52;	author dinoex;	state Exp;
branches;
next	1.10;

1.10
date	2010.02.05.11.44.58;	author dinoex;	state Exp;
branches;
next	1.9;

1.9
date	2009.07.08.10.51.39;	author avl;	state Exp;
branches;
next	1.8;

1.8
date	2009.05.28.20.44.15;	author avl;	state Exp;
branches;
next	1.7;

1.7
date	2007.05.19.20.25.08;	author flz;	state Exp;
branches;
next	1.6;

1.6
date	2007.04.05.19.49.58;	author jmelo;	state Exp;
branches;
next	1.5;

1.5
date	2007.01.15.01.18.55;	author clsung;	state Exp;
branches;
next	1.4;

1.4
date	2006.11.24.23.02.36;	author miwi;	state Exp;
branches;
next	1.3;

1.3
date	2006.07.28.03.04.35;	author clsung;	state Exp;
branches;
next	1.2;

1.2
date	2006.01.04.05.46.20;	author edwin;	state Exp;
branches;
next	1.1;

1.1
date	2005.12.30.06.24.17;	author pav;	state Exp;
branches;
next	;


desc
@@


1.15
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/313599
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: Alexander Logvinov <info@@logvinov.com>
# $FreeBSD: head/www/lightsquid/Makefile 313599 2013-03-07 16:53:45Z miwi $

PORTNAME=	lightsquid
PORTVERSION=	1.8
PORTREVISION=	2
CATEGORIES=	www
MASTER_SITES=	SF
EXTRACT_SUFX=	.tgz

MAINTAINER=	fluffy@@FreeBSD.org
COMMENT=	A light and fast web based squid proxy traffic analyser

OPTIONS_DEFINE=		GD DOCS
OPTIONS_DEFAULT=	GD

NO_BUILD=	yes
USE_PERL5_RUN=	yes

.include <bsd.port.options.mk>

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
SUB_FILES=	pkg-message
.if ${PORT_OPTIONS:MDOCS}
SUB_LIST+=	NOTEWORK="Read ${DOCSDIR}/readme.txt."
.else
SUB_LIST+=	NOTEWORK=""
.endif

.if ${PORT_OPTIONS:MGD}
RUN_DEPENDS+=	p5-GD>=0:${PORTSDIR}/graphics/p5-GD
.endif

post-patch:
	@@${REINPLACE_CMD} -e 's|/var/www/html/${PORTNAME}/lang|${DATADIR}/lang| ; \
		s|/var/www/html/${PORTNAME}\"|${ETCDIR}\"| ; \
		s|/var/www/html/${PORTNAME}/ip2name|${PREFIX}/libexec/${PORTNAME}| ; \
		s|/var/log/squid|${LOCALBASE}/squid/logs| ; \
		s|/var/www/html/${PORTNAME}|${WWWDIR}|' \
		${WRKSRC}/lightsquid.cfg
	@@${FIND} -E ${WRKSRC} -maxdepth 1 -regex '.*\.(cgi|pl)' | \
		${XARGS} ${REINPLACE_CMD} \
		 -e 's|${PORTNAME}.cfg|${ETCDIR}/${PORTNAME}.cfg|g'
	@@${MV} ${WRKSRC}/group.cfg.src ${WRKSRC}/group.cfg

do-install:
	${MKDIR} ${DATADIR}/lang
	cd ${WRKSRC}/lang && \
	${FIND} . -type f -regex '.*\.lng' -exec \
		${INSTALL_DATA} "{}" "${DATADIR}/lang/{}" \;
	${MKDIR} ${PREFIX}/libexec/${PORTNAME}
	cd ${WRKSRC}/ip2name && \
	${FIND} . -type f -exec \
		${INSTALL_DATA} "{}" "${PREFIX}/libexec/${PORTNAME}/{}" \;
	${MKDIR} ${ETCDIR}
.for i in ${CONFIGS}
	${INSTALL_DATA} ${WRKSRC}/${i} ${ETCDIR}/${i}.dist
.if !exists(${ETCDIR}/${i})
	${INSTALL_DATA} ${WRKSRC}/${i} ${ETCDIR}
.endif
.endfor
	${MKDIR} ${WWWDIR}/report
	${MKDIR} ${WWWDIR}/tpl
	cd ${WRKSRC}/tpl && \
	${FIND} . -type d ! -empty -exec \
		${MKDIR} "${WWWDIR}/tpl/{}" \; && \
	${FIND} . -type f -exec \
		${INSTALL_DATA} "{}" "${WWWDIR}/tpl/{}" \;
	cd ${WRKSRC} && \
	${FIND} -E . -maxdepth 1 -regex '.*\.(cgi|pl)' -exec \
		${INSTALL_SCRIPT} "{}" "${WWWDIR}/{}" \; && \
		${INSTALL_DATA} .htaccess ${WWWDIR}/
	@@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
.if ${PORT_OPTIONS:MDOCS}
	@@${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DOCSDIR}
.endfor
.endif

post-install:
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
@


1.14
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/312560
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d1 2
a2 6
# New ports collection makefile for:	lightsquid
# Date created:				24 Nov 2005
# Whom:					Alexander Logvinov <info@@logvinov.com>
#
# $FreeBSD: head/www/lightsquid/Makefile 312560 2013-02-19 13:12:37Z fluffy $
#
d14 2
a15 1
OPTIONS=	GDSUPPORT	"Graphics report support"	on
d20 2
d27 1
a27 1
.if !defined(NOPORTDOCS)
d33 1
a33 3
.include <bsd.port.pre.mk>

.if !defined(WITHOUT_GDSUPPORT)
d77 1
a77 1
.if !defined(NOPORTDOCS)
d87 1
a87 1
.include <bsd.port.post.mk>
@


1.13
log
@Switch exporter over
@
text
@d5 1
a5 1
# $FreeBSD: head/www/lightsquid/Makefile 300897 2012-07-14 14:29:18Z beat $
d15 1
a15 1
MAINTAINER=	avl@@FreeBSD.org
@


1.12
log
@- Remove SITE_PERL from *_DEPENDS

Approved by: portmgr@@ (bapt@@)
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.11
log
@- update to 1.4.1
Reviewed by:	exp8 run on pointyhat
Supported by:	miwi
@
text
@d37 1
a37 1
RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/GD.pm:${PORTSDIR}/graphics/p5-GD
@


1.10
log
@- update to jpeg-8
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.9
log
@- Update to 1.8

Approved by:	tabthorpe (mentor)
@
text
@d10 1
@


1.8
log
@Change MAINTAINER on my ports to my FreeBSD email address

Approved by:	tabthorpe (mentor)
@
text
@d9 1
a9 2
PORTVERSION=	1.7.1
PORTREVISION=	1
d40 5
a44 4
	@@${REINPLACE_CMD} -e 's|/var/www/html/${PORTNAME}/lang|${DATADIR}/lang|' \
		-e 's|/var/www/html/${PORTNAME}\"|${PREFIX}/etc/${PORTNAME}\"|' \
		-e 's|/var/www/html/${PORTNAME}/ip2name|${PREFIX}/libexec/${PORTNAME}|' \
		-e 's|/var/www/html/${PORTNAME}|${WWWDIR}|' \
d48 1
a48 1
		 -e 's|${PORTNAME}.cfg|${PREFIX}/etc/${PORTNAME}/${PORTNAME}.cfg|g'
d60 1
a60 1
	${MKDIR} ${PREFIX}/etc/${PORTNAME}
d62 3
a64 3
	${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/etc/${PORTNAME}/${i}.dist
.if !exists(${PREFIX}/etc/${PORTNAME}/${i})
	${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/etc/${PORTNAME}/
@


1.7
log
@- Welcome X.org 7.2 \o/.
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}.
- Bump PORTREVISION for ports intalling files in ${X11BASE}.
@
text
@d15 1
a15 1
MAINTAINER=	ports@@logvinov.com
@


1.6
log
@- Respect WWWDIR.

PR:		ports/110782
Submitted by:	Alexander Logvinov <ports@@logvinov.com> (maintainer)
@
text
@d10 1
@


1.5
log
@- Update to 1.7.1
- Try to distribute config, data files
Note: config files are located in ${PREFIX}/etc/lightsquid now

PR:		ports/107810
Submitted by:	maintainer (Alexander Logvinov)
@
text
@d43 1
a43 1
		-e 's|/var/www/html/${PORTNAME}|${PREFIX}/www/${PORTNAME}|' \
d66 2
a67 2
	${MKDIR} ${PREFIX}/www/${PORTNAME}/report
	${MKDIR} ${PREFIX}/www/${PORTNAME}/tpl
d70 1
a70 1
		${MKDIR} "${PREFIX}/www/${PORTNAME}/tpl/{}" \; && \
d72 1
a72 1
		${INSTALL_DATA} "{}" "${PREFIX}/www/${PORTNAME}/tpl/{}" \;
d75 3
a77 3
		${INSTALL_SCRIPT} "{}" "${PREFIX}/www/${PORTNAME}/{}" \; && \
		${INSTALL_DATA} .htaccess ${PREFIX}/www/${PORTNAME}/
	@@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/www/${PORTNAME}
@


1.4
log
@- Update to 1.7

PR:		ports/105803
Submitted by:	user@@blg.akavia.ru (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	1.7
d11 1
a11 2
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}
d20 1
a20 1
USE_PERL5=	yes
a21 6
WRKSRC=		${WRKDIR}/${PORTNAME}
DSTDIR=		${PREFIX}/www/${PORTNAME}
.if !defined(NOPORTDOCS)
SUB_LIST=	DOCSDIR=${DOCSDIR}
SUB_FILES=	pkg-message
.endif
d26 6
d39 9
a47 2
do-patch:
	@@${REINPLACE_CMD} "s|/var/www/html/${PORTNAME}|${DSTDIR}|" ${WRKSRC}/lightsquid.cfg
a48 3
.for i in ${CONFIGS}
	@@${MV} ${WRKSRC}/${i} ${WRKSRC}/${i}.dist
.endfor
d51 9
a59 3
	@@${MKDIR} ${DSTDIR}
	${CP} -R ${WRKSRC}/ ${DSTDIR}
	@@${RM} -r ${DSTDIR}/doc
d61 4
a64 1
	@@${CP} -n ${DSTDIR}/${i}.dist ${DSTDIR}/${i}
d66 12
a77 3
	@@${CHMOD} +x ${DSTDIR}/*.cgi
	@@${CHMOD} +x ${DSTDIR}/*.pl
	@@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${DSTDIR}
a85 1
.if !defined(NOPORTDOCS)
a86 1
.endif
@


1.3
log
@- email address of maintainer changed

PR:		ports/100945
Submitted by:	maintainer (Alexander Logvinov)
@
text
@d9 1
a9 2
PORTVERSION=	1.6
PORTREVISION=	1
a12 1
DISTNAME=	${PORTNAME}-${PORTVERSION}-beta
d18 1
a18 3
.if !defined(WITHOUT_GD)
RUN_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/GD.pm:${PORTSDIR}/graphics/p5-GD
.endif
d23 4
a26 2
DSTDIR?=	${PREFIX}/www/${PORTNAME}
SUB_LIST=	DSTDIR=${DSTDIR}
d28 11
d41 5
a45 3
	@@${MV} ${WRKSRC}/lightsquid.cfg ${WRKSRC}/lightsquid.cfg.dist
	@@${MV} ${WRKSRC}/group.cfg ${WRKSRC}/group.cfg.dist
	@@${MV} ${WRKSRC}/realname.cfg ${WRKSRC}/realname.cfg.dist
d49 5
a53 4
	@@${CP} -R ${WRKSRC}/ ${DSTDIR}
	@@${CP} -n ${DSTDIR}/lightsquid.cfg.dist ${DSTDIR}/lightsquid.cfg
	@@${CP} -n ${DSTDIR}/group.cfg.dist ${DSTDIR}/group.cfg
	@@${CP} -n ${WRKSRC}/realname.cfg.dist ${DSTDIR}/realname.cfg
d57 6
d65 1
d67 1
d69 1
a69 1
.include <bsd.port.mk>
@


1.2
log
@Update port: www/lightsquid Fix the pkg-message info. Bump the PORTREVISION.

PR:		ports/91265
Submitted by:	Alexander Logvinov <user@@blg.akavia.ru>
@
text
@d17 1
a17 1
MAINTAINER=	lightsquid@@logvinov.com
@


1.1
log
@Light Squid  - light squid report parser and visualizer

    fast and simple install
    fast log parser generate small per user data file
    perl based cgi script for dynamic generated report pages
    html template for design
    no database required
    no additional perl module
    varios reports
    user group support
    graphics report
    multilanguage interface

PR:		ports/91077
Submitted by:	Alexander Logvinov <user@@blg.akavia.ru>
@
text
@d10 1
d27 2
a30 2
DSTDIR?=	${PREFIX}/www/${PORTNAME}

@

