2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
12 PKG_VERSION
:=2.5.STABLE14
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
16 PKG_SOURCE_URL
:=http
://www.squid-cache.org
/Versions
/v2
/2.5/
17 PKG_MD5SUM
:=f413e0b887a5f9b2a75350243ed5564c
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/squid
/Default
28 URL
:=http
://www.squid-cache.org
/
32 $(call Package
/squid
/Default
)
34 DEPENDS
:=+libopenssl
+libpthread
35 TITLE
:=full-featured Web proxy cache
37 Squid is a high-performance proxy caching server for web clients
, \\\
38 supporting FTP
, gopher
, and HTTP data objects. Unlike traditional
\\\
39 caching software
, Squid handles
all requests in a single
, \\\
40 non-blocking
, I
/O-driven process.
43 define Package
/squid
/conffiles
48 define Package
/squid-mod-cachemgr
49 $(call Package
/squid
/Default
)
51 TITLE
:=Web based proxy manager and reporting tool
54 define Package
/squid-mod-basic-auth-getpwnam
55 $(call Package
/squid
/Default
)
57 TITLE
:=getpwnam basic authentication helper
60 define Package
/squid-mod-basic-auth-ncsa
61 $(call Package
/squid
/Default
)
63 TITLE
:=NCSA basic authentication helper
66 define Package
/squid-mod-basic-auth-smb
67 $(call Package
/squid
/Default
)
69 TITLE
:=Samba basic authentication helper
72 define Package
/squid-mod-basic-auth-winbind
73 $(call Package
/squid
/Default
)
75 TITLE
:=Winbind basic authentication helper
78 define Package
/squid-mod-digest-auth-password
79 $(call Package
/squid
/Default
)
81 TITLE
:=Password digest authentication helper
84 define Package
/squid-mod-external-acl-ip-user
85 $(call Package
/squid
/Default
)
87 TITLE
:=IP user external ACL helper
90 define Package
/squid-mod-external-acl-unix-group
91 $(call Package
/squid
/Default
)
93 TITLE
:=Unix group external ACL helper
96 define Package
/squid-mod-external-acl-winbind-group
97 $(call Package
/squid
/Default
)
99 TITLE
:=Winbind group external ACL helper
102 define Package
/squid-mod-ntlm-auth-fakeauth
103 $(call Package
/squid
/Default
)
105 TITLE
:=Fakeauth NTLM authentication helper
108 define Package
/squid-mod-ntlm-auth-smb-auth
109 $(call Package
/squid
/Default
)
111 TITLE
:=Samba NTLM authentication helper
114 define Package
/squid-mod-ntlm-auth-winbind-auth
115 $(call Package
/squid
/Default
)
117 TITLE
:=Winbind NTLM authentication helper
120 define Build
/Configure
121 $(call Build
/Configure
/Default
, \
122 --datadir=/usr
/share
/squid \
123 --libexecdir
=/usr
/lib
/squid \
124 --sysconfdir
=/etc
/squid \
127 --enable-x-accelerator-vary \
131 --enable-kill-parent-hack \
135 --enable-err-languages
=English \
136 --enable-default-err-language
=English \
137 --enable-linux-netfilter \
139 --enable-external-acl-helpers
="" \
140 --enable-underscores \
141 --enable-cache-digests \
142 --enable-referer-log \
143 --enable-delay-pools \
144 --enable-useragent-log \
145 --with-openssl
=$(STAGING_DIR
)/usr \
146 --enable-auth
="basic digest ntlm" \
147 --enable-basic-auth-helpers
="getpwnam NCSA SMB winbind" \
148 --enable-ntlm-auth-helpers
="fakeauth SMB winbind" \
149 --enable-digest-auth-helpers
="password" \
150 --enable-external-acl-helpers
="ip_user unix_group winbind_group" \
155 # pass INCLUDES to compile host sources against our OpenSSL, not the host one
156 $(MAKE
) -C
$(PKG_BUILD_DIR
)/lib \
157 INCLUDES
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
159 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
160 DESTDIR
="$(PKG_INSTALL_DIR)" \
165 define Package
/$(1)/install
166 $(INSTALL_DIR
) $$(1)/usr
/lib
/squid
167 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/squid
/$(2) $$(1)/usr
/lib
/squid
/
170 $$(eval
$$(call BuildPackage
,$(1)))
173 define Package
/squid
/install
174 $(INSTALL_DIR
) $(1)/etc
/squid
175 $(CP
) $(PKG_INSTALL_DIR
)/etc
/squid
/mime.conf
$(1)/etc
/squid
/
176 $(CP
) $(PKG_INSTALL_DIR
)/etc
/squid
/squid.conf
$(1)/etc
/squid
/
177 $(INSTALL_DIR
) $(1)/usr
/share
/squid
178 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/squid
/* $(1)/usr
/share
/squid
/
179 $(INSTALL_DIR
) $(1)/usr
/sbin
180 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/squid
$(1)/usr
/sbin
/
181 $(INSTALL_DIR
) $(1)/usr
/lib
/squid
182 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/squid
/{unlinkd
,pinger
} $(1)/usr
/lib
/squid
/
185 define Package
/squid-mod-cachemgr
/install
186 $(INSTALL_DIR
) $(1)/www
/cgi-bin
/
187 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/squid
/cachemgr.cgi
$(1)/www
/cgi-bin
/
190 $(eval
$(call BuildPackage
,squid
))
191 $(eval
$(call BuildPackage
,squid-mod-cachemgr
))
192 $(eval
$(call BuildPlugin
,squid-mod-basic-auth-getpwnam
,getpwname_auth
))
193 $(eval
$(call BuildPlugin
,squid-mod-basic-auth-ncsa
,ncsa_auth
))
194 $(eval
$(call BuildPlugin
,squid-mod-basic-auth-smb
,smb_auth
))
195 $(eval
$(call BuildPlugin
,squid-mod-basic-auth-winbind
,wb_auth
))
196 $(eval
$(call BuildPlugin
,squid-mod-digest-auth-password
,digest_pw_auth
))
197 $(eval
$(call BuildPlugin
,squid-mod-external-acl-ip-user
,ip_user_check
))
198 $(eval
$(call BuildPlugin
,squid-mod-external-acl-unix-group
,squid_unix_group
))
199 $(eval
$(call BuildPlugin
,squid-mod-external-acl-winbind-group
,wb_group
))
200 $(eval
$(call BuildPlugin
,squid-mod-ntlm-auth-fakeauth
,fakeauth_auth
))
201 $(eval
$(call BuildPlugin
,squid-mod-ntlm-auth-smb-auth
,ntlm_auth
))
202 $(eval
$(call BuildPlugin
,squid-mod-ntlm-auth-winbind-auth
,wb_ntlmauth
))