2 # Copyright (C) 2006-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
15 PKG_MAINTAINER
:=Luka Perkov
<luka@openwrt.org
>
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
18 PKG_SOURCE_URL
:=http
://www.squid-cache.org
/Versions
/v3
/3.5/
19 PKG_MD5SUM
:=0330ec9f69e333c2a81fa4502ba96a22
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/squid
/Default
29 SUBMENU
:=Web Servers
/Proxies
30 URL
:=http
://www.squid-cache.org
/
34 $(call Package
/squid
/Default
)
36 DEPENDS
:=+libopenssl
+libpthread
+librt
+libltdl
+libstdcpp
+libgnutls
37 TITLE
:=full-featured Web proxy cache
40 define Package
/squid
/description
41 Squid is a caching proxy for the Web supporting HTTP
, HTTPS
, FTP
, and more.
42 It reduces bandwidth and improves response times by caching and reusing
43 frequently-requested web pages.
46 define Package
/squid-mod-cachemgr
47 $(call Package
/squid
/Default
)
49 TITLE
:=Web based proxy manager and reporting tool
54 --datadir=/usr
/share
/squid \
55 --libexecdir
=/usr
/lib
/squid \
56 --sysconfdir
=/etc
/squid \
60 --enable-delay-pools \
61 --enable-icap-client \
62 --enable-kill-parent-hack \
65 --enable-cache-digests \
69 --enable-auth-negotiate \
70 --enable-auth-digest \
71 --enable-linux-netfilter \
73 --enable-x-accelerator-vary \
74 --disable-translation \
75 --disable-auto-locale \
81 --with-openssl
=$(STAGING_DIR
)/usr \
84 --disable-external-acl-helpers \
85 --disable-auth-negotiate \
87 --disable-auth-digest \
88 --disable-auth-basic \
89 --disable-arch-native \
90 --with-krb5-config
=no \
92 --without-netfilter-conntrack \
95 ac_cv_header_linux_netfilter_ipv4_h
=yes \
96 ac_cv_epoll_works
=yes \
99 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
)/lib
all
100 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
101 DESTDIR
="$(PKG_INSTALL_DIR)" \
105 define Package
/squid
/install
106 $(INSTALL_DIR
) $(1)/usr
/sbin
107 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/squid
$(1)/usr
/sbin
/
109 $(INSTALL_DIR
) $(1)/etc
/config
110 $(INSTALL_CONF
) .
/files
/squid.config
$(1)/etc
/config
/squid
112 $(INSTALL_DIR
) $(1)/etc
/squid
113 $(INSTALL_CONF
) $(PKG_INSTALL_DIR
)/etc
/squid
/mime.conf
$(1)/etc
/squid
/
114 $(INSTALL_CONF
) .
/files
/squid.conf
$(1)/etc
/squid
/
116 $(INSTALL_DIR
) $(1)/etc
/init.d
/
117 $(INSTALL_BIN
) .
/files
/squid.init
$(1)/etc
/init.d
/squid
119 $(INSTALL_DIR
) $(1)/usr
/share
/squid
/icons
/
120 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/squid
/icons
/* $(1)/usr
/share
/squid
/icons
/
122 $(INSTALL_DIR
) $(1)/usr
/share
/squid
/errors
/templates
/
123 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/squid
/errors
/templates
/* $(1)/usr
/share
/squid
/errors
/templates
/
126 define Package
/squid-mod-cachemgr
/install
127 $(INSTALL_DIR
) $(1)/www
/cgi-bin
/
128 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/squid
/cachemgr.cgi
$(1)/www
/cgi-bin
/
131 $(eval
$(call BuildPackage
,squid
))
132 $(eval
$(call BuildPackage
,squid-mod-cachemgr
))