freebsd-ports/www/sarg/Makefile
Yen-Ming Lee 01786236c5 - Update to 2.0.3
Differences from 2.0.2 version:
  - squidguard parse logs method changed.
  - wrong results in -v option.
  - fixed: error when using -u (include user)

PR:		77052
Submitted by:	Renato Botelho <renato at galle.com.br>
Reviewed by:	Maxim Tuliuk <mt at primats.org.ua>
2005-02-08 17:27:36 +00:00

38 lines
898 B
Makefile

# New ports collection makefile for: sarg
# Date created: 23.02.2003
# Whom: mt@primats.org.ua
#
# $FreeBSD$
#
PORTNAME= sarg
PORTVERSION= 2.0.3
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= mt@primats.org.ua
COMMENT= Squid log analyzer and HTML report generator
.if !defined(WITHOUT_GD)
LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd
.endif
GNU_CONFIGURE= yes
CONFIGURE_ARGS= CC=gcc --enable-bindir="${PREFIX}/bin" --enable-sysconfdir="${PREFIX}/etc/${PORTNAME}" --enable-htmldir=${PREFIX}/www/${PORTNAME}
.if !defined(WITHOUT_GD)
CFLAGS+= -I ${LOCALBASE}/include -L ${LOCALBASE}/lib
.endif
MAN1= sarg.1
post-extract:
@${CHMOD} +x ${WRKSRC}/sarg-php/locale
post-configure:
.if !defined(WITHOUT_GD)
@${SED} -i .orig 's|^\(LDFLAGS.*\)|\1 -I ${LOCALBASE}/include -L ${LOCALBASE}/lib|g' ${WRKSRC}/Makefile
.endif
.include <bsd.port.mk>