1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00

- Update to 2.12.0.3 [1]

- Use USE_PKGCONFIG
- Devel tarball is available at sourceforge, so use it and remove instructions
  for manual download

PR:		ports/175526 [1]
Submitted by:	Marcello Coutinho <marcellocoutinho@gmail.com> [1]
This commit is contained in:
Renato Botelho 2013-01-28 11:13:38 +00:00
parent 1cc04ea31d
commit da51663cfb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=311114
4 changed files with 30 additions and 10 deletions

View File

@ -2,9 +2,9 @@
# $FreeBSD$
PORTNAME= dansguardian
PORTVERSION= 2.12.0.2
PORTVERSION= 2.12.0.3
CATEGORIES= www
MASTER_SITES= # empty, see below
MASTER_SITES= SF/dansguardian
MAINTAINER= garga@FreeBSD.org
COMMENT= A fast, feature-rich web content filter for Squid proxy servers
@ -13,7 +13,7 @@ RUN_DEPENDS= ${LOCALBASE}/sbin/squid:${PORTSDIR}/www/squid
LIB_DEPENDS+= pcre:${PORTSDIR}/devel/pcre
USE_RC_SUBR= dansguardian
USE_GNOME= pkgconfig
USE_PKGCONFIG= yes
USE_BZIP2= yes
CONFLICTS= dansguardian-2.10.*
@ -114,11 +114,6 @@ PLIST_SUB+= EMAILCONF="@comment "
CONFIGURE_ARGS+= --with-dgdebug
.endif
# User needs to manually download the distfile
.if !(exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})) && !defined(PACKAGE_BUILDING)
IGNORE= commercial source download is restricted. Please visit and read ${DG_URL} and download ${DISTNAME}${EXTRACT_SUFX} into ${DISTDIR} before running make
.endif
post-patch:
.if empty(PORT_OPTIONS:MDOCS)
@${REINPLACE_CMD} -e '/install-data-am/ s|install-dist_docDATA||' \

View File

@ -1,2 +1,2 @@
SHA256 (dansguardian-2.12.0.2.tar.bz2) = 8f89077bf68e6d864c506193efc1d7a98e660650adb4edcb68b54c46f07f2fa0
SIZE (dansguardian-2.12.0.2.tar.bz2) = 577994
SHA256 (dansguardian-2.12.0.3.tar.bz2) = c74e9a32b97f9a9a056fced3da23fe48fca2bc6aa9af670afe9a53dc819414f5
SIZE (dansguardian-2.12.0.3.tar.bz2) = 577701

View File

@ -0,0 +1,14 @@
--- ./src/ConnectionHandler.cpp.orig 2012-09-29 17:06:45.000000000 -0300
+++ ./src/ConnectionHandler.cpp 2013-01-16 03:04:07.000000000 -0200
@@ -1488,8 +1488,11 @@
//if we cant write the certificate its not the end of the world but it is slow
if (!writecert){
+#ifdef DGDEBUG
std::cout << dbgPeerPort << " -Couldn't save certificate to on disk cache" << std::endl;
+#endif
syslog(LOG_ERR,"Couldn't save certificate to on disk cache");
+
}
#ifdef DGDEBUG

View File

@ -0,0 +1,11 @@
--- ./src/OptionContainer.cpp.orig 2013-01-25 02:31:02.000000000 +0000
+++ ./src/OptionContainer.cpp 2013-01-25 02:31:25.000000000 +0000
@@ -612,7 +612,7 @@
}
// if the more than one port is being used, validate the combination of auth plugins
- if (authplugins.size() > 1) {
+ if (authplugins.size() > 1 and filter_ports.size() > 1) {
std::deque<Plugin*>::iterator it = authplugins.begin();
String firstPlugin;
bool sslused = false;