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
:=Marko Ratkaj
<marko.ratkaj@sartura.hr
>
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
18 PKG_SOURCE_URL
:=http
://www3.us.squid-cache.org
/Versions
/v3
/3.5/ \
19 http
://www2.pl.squid-cache.org
/Versions
/v3
/3.5/ \
20 http
://www.squid-cache.org
/Versions
/v3
/3.5/
21 PKG_HASH
:=5ddb4367f2dc635921f9ca7a59d8b87edb0412fa203d1543393ac3c7f9fef0ec
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/squid
/Default
31 SUBMENU
:=Web Servers
/Proxies
32 URL
:=http
://www.squid-cache.org
/
37 $(call Package
/squid
/Default
)
38 DEPENDS
:=+libopenssl
+libpthread
+librt
+libltdl
+libstdcpp
39 TITLE
:=full-featured Web proxy cache
42 define Package
/squid
/description
43 Squid is a caching proxy for the Web supporting HTTP
, HTTPS
, FTP
, and more.
44 It reduces bandwidth and improves response times by caching and reusing
45 frequently-requested web pages.
48 define Package
/squid-mod-cachemgr
49 $(call Package
/squid
/Default
)
51 TITLE
:=Web based proxy manager and reporting tool
56 --datadir=/usr
/share
/squid \
57 --libexecdir
=/usr
/lib
/squid \
58 --sysconfdir
=/etc
/squid \
62 --enable-delay-pools \
63 --enable-icap-client \
64 --enable-kill-parent-hack \
68 --enable-cache-digests \
69 --enable-linux-netfilter \
71 --enable-x-accelerator-vary \
72 --disable-translation \
73 --disable-auto-locale \
80 --with-openssl
=$(STAGING_DIR
)/usr \
83 --disable-external-acl-helpers \
84 --disable-auth-negotiate \
86 --disable-auth-digest \
87 --disable-auth-basic \
88 --disable-arch-native \
89 --with-krb5-config
=no \
92 --without-netfilter-conntrack
95 ac_cv_header_linux_netfilter_ipv4_h
=yes \
96 ac_cv_epoll_works
=yes \
97 squid_cv_gnu_atomics
=no
100 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
)/lib
all
101 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
102 DESTDIR
="$(PKG_INSTALL_DIR)" \
106 define Package
/squid
/install
107 $(INSTALL_DIR
) $(1)/usr
/sbin
108 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/squid
$(1)/usr
/sbin
/
110 $(INSTALL_DIR
) $(1)/usr
/lib
/squid
111 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/lib
/squid
/ssl_crtd
$(1)/usr
/lib
/squid
113 $(INSTALL_DIR
) $(1)/etc
/config
114 $(INSTALL_CONF
) .
/files
/squid.config
$(1)/etc
/config
/squid
116 $(INSTALL_DIR
) $(1)/etc
/squid
117 $(INSTALL_CONF
) $(PKG_INSTALL_DIR
)/etc
/squid
/mime.conf
$(1)/etc
/squid
/
118 $(INSTALL_CONF
) .
/files
/squid.conf
$(1)/etc
/squid
/
120 $(INSTALL_DIR
) $(1)/etc
/init.d
/
121 $(INSTALL_BIN
) .
/files
/squid.init
$(1)/etc
/init.d
/squid
123 $(INSTALL_DIR
) $(1)/usr
/share
/squid
/icons
/
124 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/squid
/icons
/* $(1)/usr
/share
/squid
/icons
/
126 $(INSTALL_DIR
) $(1)/usr
/share
/squid
/errors
/templates
/
127 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/squid
/errors
/templates
/* $(1)/usr
/share
/squid
/errors
/templates
/
130 define Package
/squid-mod-cachemgr
/install
131 $(INSTALL_DIR
) $(1)/www
/cgi-bin
/
132 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/squid
/cachemgr.cgi
$(1)/www
/cgi-bin
/
135 $(eval
$(call BuildPackage
,squid
))
136 $(eval
$(call BuildPackage
,squid-mod-cachemgr
))