aboutsummaryrefslogtreecommitdiffstats
path: root/www/squid-devel
diff options
context:
space:
mode:
authorLuca Pizzamiglio <pizzamig@FreeBSD.org>2018-04-13 17:18:58 +0800
committerLuca Pizzamiglio <pizzamig@FreeBSD.org>2018-04-13 17:18:58 +0800
commita54217c3eed552c577e36db9c1c226a70d0ffb35 (patch)
treedcf0e31fcab15b8e65624a39e6525798de71fa5c /www/squid-devel
parent088ae2a802ee2712c273ed5efa706b628414000d (diff)
downloadfreebsd-ports-gnome-a54217c3eed552c577e36db9c1c226a70d0ffb35.tar.gz
freebsd-ports-gnome-a54217c3eed552c577e36db9c1c226a70d0ffb35.tar.zst
freebsd-ports-gnome-a54217c3eed552c577e36db9c1c226a70d0ffb35.zip
www/squid-devel: revert previous commit
The previous commit was intended for another PR got confused working in parallel on more PRs.
Diffstat (limited to 'www/squid-devel')
-rw-r--r--www/squid-devel/Makefile22
-rw-r--r--www/squid-devel/distinfo6
-rw-r--r--www/squid-devel/files/patch-src_ipc_Kid.cc16
-rw-r--r--www/squid-devel/pkg-plist6
4 files changed, 30 insertions, 20 deletions
diff --git a/www/squid-devel/Makefile b/www/squid-devel/Makefile
index 4091e49b253a..38ae789968b8 100644
--- a/www/squid-devel/Makefile
+++ b/www/squid-devel/Makefile
@@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= squid
-PORTVERSION= 4.0.24
+PORTVERSION= 4.0.23
CATEGORIES= www ipv6
MASTER_SITES= http://www.squid-cache.org/Versions/v4/ \
http://www2.us.squid-cache.org/Versions/v4/ \
@@ -29,11 +29,13 @@ BROKEN_powerpc64= fails to link: ext_time_quota_acl.cc: undefined reference to s
CONFLICTS= squid*-3.*
-USES= compiler:c++11-lib cpe perl5 shebangfix tar:xz
+USES= compiler:c++11-lib cpe perl5 shebangfix tar:xz bdb
CPE_VENDOR= squid-cache
SHEBANG_FILES= scripts/*.pl contrib/*.pl tools/*.pl
GNU_CONFIGURE= yes
USE_RC_SUBR= squid
+CPPFLAGS+= -I${BDB_INCLUDE_DIR}
+LDFLAGS+= -L${BDB_LIB_DIR}
USERS= squid
GROUPS= squid
@@ -48,7 +50,7 @@ OPTIONS_GROUP= AUTH
OPTIONS_RADIO= FW
OPTIONS_GROUP_AUTH=AUTH_LDAP AUTH_NIS AUTH_SASL AUTH_SMB AUTH_SQL
OPTIONS_RADIO_FW=TP_IPF TP_IPFW TP_PF
-OPTIONS_DEFINE= ARP_ACL BDB CACHE_DIGESTS DEBUG DELAY_POOLS DOCS ECAP ESI EXAMPLES \
+OPTIONS_DEFINE= ARP_ACL CACHE_DIGESTS DEBUG DELAY_POOLS DOCS ECAP ESI EXAMPLES \
FOLLOW_XFF FS_AUFS FS_DISKD FS_ROCK HTCP ICAP ICMP IDENT IPV6 \
KQUEUE LARGEFILE LAX_HTTP NETTLE PCRE SNMP SSL SSL_CRTD \
STACKTRACES VIA_DB WCCP WCCPV2
@@ -75,7 +77,6 @@ AUTH_SMB_USES= samba:run
AUTH_SMB_VARS= BASIC_AUTH+=SMB EXTERNAL_ACL+=wbinfo_group
AUTH_SQL_RUN_DEPENDS= p5-DBI>=1.08:databases/p5-DBI
AUTH_SQL_VARS= EXTERNAL_ACL+=SQL_session
-BDB_USES= bdb
CACHE_DIGESTS_CONFIGURE_ENABLE= cache-digests
DELAY_POOLS_CONFIGURE_ENABLE= delay-pools
ECAP_CFLAGS= -I${LOCALBASE}/include
@@ -151,6 +152,9 @@ GSSAPI_MIT_USES= gssapi:mit
GSSAPI_MIT_CONFIGURE_ON= --with-mit-krb5=${GSSAPIBASEDIR} ${GSSAPI_CONFIGURE_ARGS}
GSSAPI_MIT_PLIST_SUB= AUTH_KERB=""
+# TODO:
+# add an option for external_acl/session (requires some kind of external
+# Berkeley DB support, unsure which one)
ARP_ACL_DESC= ARP/MAC/EUI based authentification
AUTH_DESC= Authentication helpers
AUTH_LDAP_DESC= Install LDAP authentication helpers
@@ -158,7 +162,6 @@ AUTH_NIS_DESC= Install NIS/YP authentication helpers
AUTH_SASL_DESC= Install SASL authentication helpers
AUTH_SMB_DESC= Install SMB auth. helpers (req. Samba)
AUTH_SQL_DESC= Install SQL based auth
-BDB_DESC= Berkeley DB support required for session and time quota external helpers
CACHE_DIGESTS_DESC= Use cache digests
DEBUG_DESC= Build with extended debugging support
DELAY_POOLS_DESC= Delay pools (bandwidth limiting)
@@ -235,7 +238,7 @@ CONFIGURE_ARGS= --with-default-user=squid \
# Authentication methods and modules:
BASIC_AUTH+= DB SMB_LM NCSA PAM POP3 RADIUS fake getpwnam
-EXTERNAL_ACL+= file_userip unix_group
+EXTERNAL_ACL+= file_userip time_quota unix_group
# POLA: allow the old global make.conf(5) (pre src.conf(5)) defines, too:
.if ${PORT_OPTIONS:MAUTH_NIS} && !defined(NO_NIS) && !defined(WITHOUT_NIS)
@@ -254,13 +257,6 @@ EXTERNAL_ACL+= kerberos_ldap_group
NEGOTIATE_AUTH= kerberos wrapper
.endif
-# The session and time_quota external helpers require Berkeley DB support:
-.if ${PORT_OPTIONS:MBDB}
-CPPFLAGS+= -I${BDB_INCLUDE_DIR}
-LDFLAGS+= -L${BDB_LIB_DIR}
-EXTERNAL_ACL+= time_quota session
-.endif
-
# Storage schemes:
STORAGE_SCHEMES+= ufs
DISKIO_MODULES+= AIO Blocking IpcIo Mmapped
diff --git a/www/squid-devel/distinfo b/www/squid-devel/distinfo
index 9dc6025deb6c..47c8508eb80c 100644
--- a/www/squid-devel/distinfo
+++ b/www/squid-devel/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1522445865
-SHA256 (squid4.0/squid-4.0.24.tar.xz) = 091da0d763307dcc0f5c784ab07ea0c5a093f6dfac60f17ff26e2a6d50f76a07
-SIZE (squid4.0/squid-4.0.24.tar.xz) = 2420076
+TIMESTAMP = 1517146538
+SHA256 (squid4.0/squid-4.0.23.tar.xz) = 18b71a601f60f49ca0cfc7d1d212dc935112d61008ab8a689fceab3ef4070f29
+SIZE (squid4.0/squid-4.0.23.tar.xz) = 2415132
diff --git a/www/squid-devel/files/patch-src_ipc_Kid.cc b/www/squid-devel/files/patch-src_ipc_Kid.cc
new file mode 100644
index 000000000000..130327e428a7
--- /dev/null
+++ b/www/squid-devel/files/patch-src_ipc_Kid.cc
@@ -0,0 +1,16 @@
+# https://bugs.squid-cache.org/show_bug.cgi?id=4822
+# https://patch-diff.githubusercontent.com/raw/squid-cache/squid/pull/158.patch
+
+--- src/ipc/Kid.cc.orig 2018-02-22 18:34:42 UTC
++++ src/ipc/Kid.cc
+@@ -90,7 +90,9 @@ Kid::reportStopped() const
+ if (hopeless() && Config.hopelessKidRevivalDelay) {
+ syslog(LOG_NOTICE, "Squid Parent: %s process %d will not be restarted for %ld "
+ "seconds due to repeated, frequent failures",
+- theName.termedBuf(), pid, Config.hopelessKidRevivalDelay);
++ theName.termedBuf(),
++ pid,
++ static_cast<long int>(Config.hopelessKidRevivalDelay));
+ }
+ }
+
diff --git a/www/squid-devel/pkg-plist b/www/squid-devel/pkg-plist
index 9fd2468e4f8a..95cb663e5b5a 100644
--- a/www/squid-devel/pkg-plist
+++ b/www/squid-devel/pkg-plist
@@ -2174,9 +2174,8 @@ libexec/squid/digest_file_auth
libexec/squid/ext_file_userip_acl
%%AUTH_KERB%%%%AUTH_LDAP%%%%AUTH_SASL%%libexec/squid/ext_kerberos_ldap_group_acl
%%AUTH_LDAP%%libexec/squid/ext_ldap_group_acl
-%%BDB%%libexec/squid/ext_session_acl
%%AUTH_SQL%%libexec/squid/ext_sql_session_acl
-%%BDB%%libexec/squid/ext_time_quota_acl
+libexec/squid/ext_time_quota_acl
libexec/squid/ext_unix_group_acl
%%AUTH_SMB%%libexec/squid/ext_wbinfo_group_acl
libexec/squid/helper-mux
@@ -2212,9 +2211,8 @@ man/man8/cachemgr.cgi.8.gz
man/man8/digest_file_auth.8.gz
man/man8/ext_file_userip_acl.8.gz
%%AUTH_LDAP%%man/man8/ext_ldap_group_acl.8.gz
-%%BDB%%man/man8/ext_session_acl.8.gz
%%AUTH_SQL%%man/man8/ext_sql_session_acl.8.gz
-%%BDB%%man/man8/ext_time_quota_acl.8.gz
+man/man8/ext_time_quota_acl.8.gz
man/man8/ext_unix_group_acl.8.gz
%%AUTH_SMB%%man/man8/ext_wbinfo_group_acl.8.gz
%%AUTH_KERB%%man/man8/negotiate_kerberos_auth.8.gz