Browse Source

squid: version bump and dependency fixes

Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
lilik-openwrt-22.03
Daniel Gimpelevich 10 years ago
parent
commit
b127de865b
4 changed files with 22 additions and 12 deletions
  1. +10
    -9
      net/squid/Makefile
  2. +1
    -1
      net/squid/files/squid.conf
  3. +3
    -0
      net/squid/files/squid.config
  4. +8
    -2
      net/squid/files/squid.init

+ 10
- 9
net/squid/Makefile View File

@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=squid PKG_NAME:=squid
PKG_VERSION:=3.5.5
PKG_VERSION:=3.5.6
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_LICENSE:=GPL-2.0 PKG_LICENSE:=GPL-2.0
@ -16,7 +16,7 @@ PKG_MAINTAINER:=Luka Perkov <luka@openwrt.org>
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=http://www.squid-cache.org/Versions/v3/3.5/ PKG_SOURCE_URL:=http://www.squid-cache.org/Versions/v3/3.5/
PKG_MD5SUM:=9a323a97753143ddd935aed58a0193ae
PKG_MD5SUM:=93e18bd257857e35bb634ddb8a348563
PKG_BUILD_PARALLEL:=1 PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1 PKG_INSTALL:=1
@ -33,7 +33,7 @@ endef
define Package/squid define Package/squid
$(call Package/squid/Default) $(call Package/squid/Default)
MENU:=1 MENU:=1
DEPENDS:=+libopenssl +libpthread +librt +libltdl +libstdcpp +libgnutls
DEPENDS:=+libopenssl +libpthread +librt +libltdl +libstdcpp
TITLE:=full-featured Web proxy cache TITLE:=full-featured Web proxy cache
endef endef
@ -62,12 +62,8 @@ CONFIGURE_ARGS += \
--enable-kill-parent-hack \ --enable-kill-parent-hack \
--disable-snmp \ --disable-snmp \
--enable-ssl \ --enable-ssl \
--enable-ssl-crtd \
--enable-cache-digests \ --enable-cache-digests \
--enable-auth \
--enable-auth-basic \
--enable-auth-ntlm \
--enable-auth-negotiate \
--enable-auth-digest \
--enable-linux-netfilter \ --enable-linux-netfilter \
--disable-unlinkd \ --disable-unlinkd \
--enable-x-accelerator-vary \ --enable-x-accelerator-vary \
@ -77,6 +73,7 @@ CONFIGURE_ARGS += \
--with-pthreads \ --with-pthreads \
--without-expat \ --without-expat \
--without-libxml2 \ --without-libxml2 \
--without-gnutls \
--without-nettle \ --without-nettle \
--with-openssl=$(STAGING_DIR)/usr \ --with-openssl=$(STAGING_DIR)/usr \
--enable-epoll \ --enable-epoll \
@ -93,7 +90,8 @@ CONFIGURE_ARGS += \
CONFIGURE_VARS += \ CONFIGURE_VARS += \
ac_cv_header_linux_netfilter_ipv4_h=yes \ ac_cv_header_linux_netfilter_ipv4_h=yes \
ac_cv_epoll_works=yes
ac_cv_epoll_works=yes \
squid_cv_gnu_atomics=no
define Build/Compile define Build/Compile
+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/lib all +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/lib all
@ -106,6 +104,9 @@ define Package/squid/install
$(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/squid $(1)/usr/sbin/ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/squid $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/usr/lib/squid
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/squid/ssl_crtd $(1)/usr/lib/squid
$(INSTALL_DIR) $(1)/etc/config $(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./files/squid.config $(1)/etc/config/squid $(INSTALL_CONF) ./files/squid.config $(1)/etc/config/squid


+ 1
- 1
net/squid/files/squid.conf View File

@ -38,7 +38,7 @@ refresh_pattern . 0 20% 4320
access_log none access_log none
cache_log /dev/null cache_log /dev/null
cache_store_log /dev/null
cache_store_log stdio:/dev/null
logfile_rotate 0 logfile_rotate 0
logfile_daemon /dev/null logfile_daemon /dev/null

+ 3
- 0
net/squid/files/squid.config View File

@ -3,3 +3,6 @@ config squid 'squid'
option http_port '3128' option http_port '3128'
option coredump_dir '/tmp/squid' option coredump_dir '/tmp/squid'
option visible_hostname 'OpenWrt' option visible_hostname 'OpenWrt'
#option http_port_options 'intercept'
#option ssldb '/tmp/squid/ssldb'
#option ssldb_options '-M 4MB'

+ 8
- 2
net/squid/files/squid.init View File

@ -12,13 +12,16 @@ validate_squid_section() {
uci_validate_section squid squid "${1}" \ uci_validate_section squid squid "${1}" \
'config_file:string' \ 'config_file:string' \
'http_port:port:3128' \ 'http_port:port:3128' \
'http_port_options:string' \
'ssldb:string' \
'ssldb_options:string' \
'coredump_dir:string' \ 'coredump_dir:string' \
'visible_hostname:string:OpenWrt' \ 'visible_hostname:string:OpenWrt' \
'pinger_enable:string:off' 'pinger_enable:string:off'
} }
start_service() { start_service() {
local config_file http_port coredump_dir visible_hostname pinger_enable
local config_file http_port http_port_options ssldb ssldb_options coredump_dir visible_hostname pinger_enable
validate_squid_section squid || { validate_squid_section squid || {
echo "validation failed" echo "validation failed"
@ -28,12 +31,15 @@ start_service() {
config_dir=$(dirname $CONFIGFILE) config_dir=$(dirname $CONFIGFILE)
[ -d $config_dir ] || mkdir -p $config_dir && chown nobody:nogroup $config_dir [ -d $config_dir ] || mkdir -p $config_dir && chown nobody:nogroup $config_dir
[ -d $coredump_dir ] || mkdir -p $coredump_dir && chown nobody:nogroup $coredump_dir [ -d $coredump_dir ] || mkdir -p $coredump_dir && chown nobody:nogroup $coredump_dir
[ "$ssldb" ] && ( [ -f "$ssldb"/size ] || /usr/lib/squid/ssl_crtd -c -s $ssldb && chown -R nobody:nogroup $ssldb )
cat $config_file > $CONFIGFILE cat $config_file > $CONFIGFILE
echo http_port $http_port >> $CONFIGFILE
echo http_port $http_port $http_port_options >> $CONFIGFILE
echo coredump_dir $coredump_dir >> $CONFIGFILE echo coredump_dir $coredump_dir >> $CONFIGFILE
echo visible_hostname $visible_hostname >> $CONFIGFILE echo visible_hostname $visible_hostname >> $CONFIGFILE
echo pinger_enable $pinger_enable >> $CONFIGFILE echo pinger_enable $pinger_enable >> $CONFIGFILE
[ "$ssldb" ] && echo sslcrtd_program /usr/lib/squid/ssl_crtd -s $ssldb $ssldb_options >> $CONFIGFILE
$PROG -s -f $CONFIGFILE -N -z 2>/dev/null
procd_open_instance procd_open_instance
procd_set_param command $PROG -s -f $CONFIGFILE -N procd_set_param command $PROG -s -f $CONFIGFILE -N


Loading…
Cancel
Save