openbsd-ports/www/sarg/Makefile
rpe a24ad3c486 update sarg to 2.3.5
Changes since 2.3.3:

Version 2.3.5
- Fix an issue when creating the redirector report. Sarg was not
  creating the unsorted file as expected. That regression was
  introduced in sarg 2.3.4.

Version 2.3.4
- Fix an error occuring when serveral user's ID contain at least
  two consecutive non alphanumeric characters. In that case, the
  mangled file name is not unique. Thanks to Fabiola and Pecha for
  reporting this bug.
- Remove a warning about the redirector file that can't be deleted
  when it is not created.

ok ajacoutot@
2013-01-21 08:30:01 +00:00

73 lines
1.9 KiB
Makefile

# $OpenBSD: Makefile,v 1.15 2013/01/21 08:30:01 rpe Exp $
COMMENT= Squid Analysis Report Generator
DISTNAME= sarg-2.3.5
CATEGORIES= www
HOMEPAGE= http://sarg.sourceforge.net/
MAINTAINER= Robert Peichaer <rpe@openbsd.org>
# GPLv2+
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c gd m pcre
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sarg/}
USE_GROFF= Yes
MODULES= devel/gettext
LIB_DEPENDS= devel/pcre \
graphics/gd
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --sysconfdir=${SYSCONFDIR}/sarg \
--enable-sargphp=/var/www/htdocs/sarg-php \
--enable-fontdir=${SYSCONFDIR}/sarg/fonts \
--enable-imagedir=${SYSCONFDIR}/sarg/images
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib -liconv -lintl"
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/cfgaux
FLAVORS= ldap
FLAVOR?=
.if ${FLAVOR:L:Mldap}
CONFIGURE_ARGS+= --with-ldap
LIB_DEPENDS+= databases/openldap
WANTLIB+= ldap
.else
CONFIGURE_ARGS+= --without-ldap
.endif
NO_REGRESS= Yes
EXAMPLESDIR= ${PREFIX}/share/examples/sarg
pre-configure:
@chmod u=rwx,go=rx ${WRKSRC}/configure
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/sarg ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/sarg.1 ${PREFIX}/man/man1/sarg.1
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
${INSTALL_DATA_DIR} ${EXAMPLESDIR}/images
${INSTALL_DATA_DIR} ${EXAMPLESDIR}/fonts
${INSTALL_DATA_DIR} ${EXAMPLESDIR}/sarg-php
${INSTALL_DATA} ${WRKSRC}/css.tpl ${EXAMPLESDIR}/
${INSTALL_DATA} ${WRKSRC}/exclude_codes ${EXAMPLESDIR}/
${INSTALL_DATA} ${WRKSRC}/images/* ${EXAMPLESDIR}/images/
${INSTALL_DATA} ${WRKSRC}/sarg.conf ${EXAMPLESDIR}/
${INSTALL_DATA} ${WRKSRC}/fonts/*.ttf ${EXAMPLESDIR}/fonts/
${INSTALL_DATA} ${WRKSRC}/sarg-php/*php ${EXAMPLESDIR}/sarg-php/
cp -R ${WRKSRC}/sarg-php/locale ${EXAMPLESDIR}/sarg-php/
.include <bsd.port.mk>