pkgsrc/www/squidGuard/Makefile
taca 24cff6fb54 Update squidGuard to 1.3 with patch-20071117.
pkgsrc changes:

- Honor squidGuard's name.
- Use PKGINSTALL frame work.
- More integration to squid; common configuration and logging directories.
  Now depends on squid package.
- Switch to use db4; it might be selectable by option.
- Install some examples of configuration.

Todo:
- LDAP support option.
- Installing documents.
- DESTDIR support.


Release 1.3
2007-09-19	Included configurable logging. New configure option --nolog
		suppress all runtime logmessages. Start and stop is still logged.
		Default behaviour is now to log the non debug messages except
		when the runtime option -d is supplied to squidGuard. May need
		some more finetuning in later versions. (bug 11)
		Made some slight changes to the outdated FAQ file.
2007-09-13	Modified auth code to work with and without ldap (choosing
		subroutine rfc1738_unescape or sgFindUser in sg.y.in)
2007-08-20	Corrected include statement in sg.h.in.
2007-07-16	Added patch by Marc Clayton to include a progressbar to the
	 	build of the database files (bug 6).
2007-07-01	Added patch by Eric Harrison to enable full sed compliance
		to rewrite statements (bug 7).
2007-06-02	Corrected missing evaluation of configure parameters for
		logdir, dbhome and config file (bug 11).
2007-05-25	Added patch from satish to block urls entries that include
		hostnames (bug 4).
2007-05-20	Fixed broken regex evaluation (bug 12)
		Fixed a compile problem on some systems (bug 10).
2007-05-10	Corrected an issue with the fix for the double
		slash vulnerability (incorrectly found double
		slashes) (bug 1).


Release 1.2.1
2007-04-10      Fixed multiple slash bypass vulnerabilty.
2007-03-17	Fixed some bugs in squidGuard-simple.cgi and added a
		German version of it.
2007-03-16	Fixed encoding bypass vulnerabilty.
2007-03-16	Updated y.tab.c.bison and y.tab.h.bison to the recent
		version.
2007-02-02	Fixed bug in user authentication.
2007-01-20	Fixed some typos which broke compilation on Sun Solaris
		when using the Sun CC compiler.
2007-01-12	Corrected unproper evaluated if-clause, which broke the
		BerkeleyDB 2 compatibility.
		Fixed minor typo in samples/Makefile.in.
2006-12-29	Replaced the sleepycat links from the configure program with
		the oracle links.
		Corrected typo in Makefile.in.
2006-12-16	Removed a stupid bug from the Makefile in the docs directory.
2006-12-10	Removed references to squidguard.org in Makefile.in in the
		Doc directory (squidguard.org is down).
		Added ISSUES.txt file about known problem with the current
		code (any information that is missing and should go in there
		is gladly welcomed).
2006-06-17	Release now supports LDAP queries for authentication:
		Added Chris Frey's ldap patches and fixes (03, 05, 06,
		07 and 10; Patches from:
		http://www.netdirect.ca/software/category.php?cat=SquidGuard).
		The LDAP feature can be included during the configure run
		by setting --with-ldap. Per default ldap support will not
		be compiled in.
		Added a fix provided by Francesco Ranieri to solve an issue
		with the (un)escaping of the authentication "domain%5cusername".

Patch Release 1.2.0p3

2005-12-09	Modfied configure Skript to allow to specify the name of
		the useraccount the squid cache is using.
		Modified Makefile.in that during the installation the
		necessary squidGuard directories are created if they are
		not existing. Additionally a default configuration file
		will be copied to the default location for squidGuard unless
		an old one is found there.

Patch Release 1.2.0p2

2005-10-13	Added Adam Gorski's bugfix to correct a a null pointer access
	 	bug in logging.
		Added Chris Freys bugfix a bug where it won't search the url
		db if the domain db is empty.
		Added Chris Frey's buffer overflow checks (except for commenting
		out the part from line 446 to 470 in sgDb.c).
		(Patches from:
		http://www.netdirect.ca/software/category.php?cat=SquidGuard)

Patch Release 1.2.0p1

2005-10-11      Added support for Berkeley DB 4.x
2007-12-20 03:36:59 +00:00

65 lines
2 KiB
Makefile

# $NetBSD: Makefile,v 1.14 2007/12/20 03:37:00 taca Exp $
#
DISTNAME= squidGuard-1.3
CATEGORIES= www
MASTER_SITES= http://www.squidguard.org/Downloads/ \
http://www.squidguard.org/Downloads/Patches/1.3/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
squidGuard-1.3-patch-20071117${EXTRACT_SUFX}
MAINTAINER= zuntum@NetBSD.org
HOMEPAGE= http://www.squidguard.org/
COMMENT= Ultrafast and free filter, redirector and access controller for Squid
BDB_ACCEPTED= db4
GNU_CONFIGURE= YES
USE_TOOLS+= lex yacc perl
DEPENDS+= squid>=1.0:../../www/squid
#DOCDIR= ${PREFIX}/share/doc/squidGuard
EXAMPLESDIR= ${PREFIX}/share/examples/squidGuard
DBDIR= ${VARBASE}/squidGuard
EXAMPLES= squidGuard-simple.cgi squidGuard-simple-de.cgi squidGuard.cgi
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+= --with-db-inc=${BUILDLINK_PREFIX.db4}/include/db4
CONFIGURE_ARGS+= --with-db-lib=${BUILDLINK_PREFIX.db4}/lib/db4
CONFIGURE_ARGS+= --with-sg-config=${PKG_SYSCONFDIR:Q}/squidGuard.conf
CONFIGURE_ARGS+= --with-sg-logdir=${LOGDIR}
CONFIGURE_ARGS+= --with-sg-dbhome=${DBDIR}
CONFIGURE_ARGS+= --squiduser=${SQUID_USER}
CONF_FILES_PERMS+= ${EXAMPLESDIR}/squidGuard-simple.cgi \
${CGIBINDIR}/squidGuard.cgi ${BINOWN} ${BINGRP} 0755
CONF_FILES_PERMS+= ${EXAMPLESDIR}/squidGuard.conf \
${PKG_SYSCONFDIR}/squidGuard.conf \
${BINOWN} ${SQUID_GROUP} 0640
MAKE_DIRS+= ${CGIBINDIR}
OWN_DIRS+= ${DBDIR}
OWN_DIRS_PERMS+= ${DBDIR} ${SQUID_USER} ${SQUID_GROUP} 0750
BUILD_DEFS+= VARBASE
INSTALLATION_DIRS+= bin ${DOCDIR} ${EXAMPLESDIR}
.include "../../mk/bsd.prefs.mk"
.include "../../www/squid/Makefile.common"
CGIBINDIR?= ${PREFIX}/libexec/cgi-bin/
PKG_SYSCONFSUBDIR?= squidguard
post-extract:
${MV} ${WRKDIR}/squidGuard-1.3-patch-20071117/sgDb.c ${WRKSRC}/src
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/squidGuard ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/samples/sample.conf \
${EXAMPLESDIR}/squidGuard.conf
.for f in ${EXAMPLES}
${INSTALL_DATA} ${WRKSRC}/samples/${f} ${EXAMPLESDIR}
.endfor
.include "../../mk/bdb.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"