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.STABLE13
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
:=3e64468e123be1246d17486dab6bee87
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-mod-basic-auth-getpwnam
44 $(call Package
/squid
/Default
)
46 TITLE
:=getpwnam basic authentication helper
49 define Package
/squid-mod-basic-auth-ncsa
50 $(call Package
/squid
/Default
)
52 TITLE
:=NCSA basic authentication helper
55 define Package
/squid-mod-basic-auth-smb
56 $(call Package
/squid
/Default
)
58 TITLE
:=Samba basic authentication helper
61 define Package
/squid-mod-basic-auth-winbind
62 $(call Package
/squid
/Default
)
64 TITLE
:=Winbind basic authentication helper
67 define Package
/squid-mod-digest-auth-password
68 $(call Package
/squid
/Default
)
70 TITLE
:=Password digest authentication helper
73 define Package
/squid-mod-external-acl-ip-user
74 $(call Package
/squid
/Default
)
76 TITLE
:=IP user external ACL helper
79 define Package
/squid-mod-external-acl-unix-group
80 $(call Package
/squid
/Default
)
82 TITLE
:=Unix group external ACL helper
85 define Package
/squid-mod-external-acl-winbind-group
86 $(call Package
/squid
/Default
)
88 TITLE
:=Winbind group external ACL helper
91 define Package
/squid-mod-ntlm-auth-fakeauth
92 $(call Package
/squid
/Default
)
94 TITLE
:=Fakeauth NTLM authentication helper
97 define Package
/squid-mod-ntlm-auth-smb-auth
98 $(call Package
/squid
/Default
)
100 TITLE
:=Samba NTLM authentication helper
103 define Package
/squid-mod-ntlm-auth-winbind-auth
104 $(call Package
/squid
/Default
)
106 TITLE
:=Winbind NTLM authentication helper
109 define Build
/Configure
110 $(call Build
/Configure
/Default
, \
111 --datadir=/usr
/share
/squid \
112 --libexecdir
=/usr
/lib
/squid \
113 --sysconfdir
=/etc
/squid \
117 --enable-x-accelerator-vary \
121 --enable-kill-parent-hack \
125 --enable-err-languages
=English \
126 --enable-default-err-language
=English \
127 --enable-linux-netfilter \
129 --enable-external-acl-helpers
="" \
130 --enable-underscores \
131 --enable-cache-digests \
132 --enable-referer-log \
133 --enable-delay-pools \
134 --enable-useragent-log \
135 --with-openssl
=$(STAGING_DIR
)/usr \
136 --enable-auth
="basic digest ntlm" \
137 --enable-basic-auth-helpers
="getpwnam NCSA SMB winbind" \
138 --enable-ntlm-auth-helpers
="fakeauth SMB winbind" \
139 --enable-digest-auth-helpers
="password" \
140 --enable-external-acl-helpers
="ip_user unix_group winbind_group" \
142 ac_cv_sizeof_void_p
=4 \
143 ac_cv_sizeof_short
=2 \
145 ac_cv_sizeof_long
=4 \
146 ac_cv_sizeof_long_long
=8 \
147 ac_cv_sizeof___int64
=0 \
148 ac_cv_sizeof_int16_t
=2 \
149 ac_cv_sizeof_uint16_t
=2 \
150 ac_cv_sizeof_u_int16_t
=2 \
151 ac_cv_sizeof_int32_t
=4 \
152 ac_cv_sizeof_uint32_t
=4 \
153 ac_cv_sizeof_u_int32_t
=4 \
154 ac_cv_sizeof_int64_t
=8 \
155 ac_cv_sizeof_uint64_t
=8 \
156 ac_cv_sizeof_u_int64_t
=8 \
157 ac_cv_func_setresuid
=no \
158 ac_cv_func_va_copy
=no \
159 ac_cv_func___va_copy
=no \
164 # pass INCLUDES to compile host sources against our OpenSSL, not the host one
165 $(MAKE
) -C
$(PKG_BUILD_DIR
)/lib \
166 INCLUDES
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
168 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
169 DESTDIR
="$(PKG_INSTALL_DIR)" \
173 define Package
/squid
/install
174 install -d
-m0755
$(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 -d
-m0755
$(1)/usr
/share
/squid
178 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/squid
/* $(1)/usr
/share
/squid
/
179 install -d
-m0755
$(1)/usr
/sbin
180 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/squid
$(1)/usr
/sbin
/
184 define Package
/$(1)/install
185 install -d
-m0755
$$(1)/usr
/lib
/squid
186 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/squid
/$(2) $$(1)/usr
/lib
/squid
/
189 $$(eval
$$(call BuildPackage
,$(1)))
192 $(eval
$(call BuildPackage
,squid
))
193 $(eval
$(call BuildPlugin
,squid-mod-basic-auth-getpwnam
,getpwname_auth
))
194 $(eval
$(call BuildPlugin
,squid-mod-basic-auth-ncsa
,ncsa_auth
))
195 $(eval
$(call BuildPlugin
,squid-mod-basic-auth-smb
,smb_auth
))
196 $(eval
$(call BuildPlugin
,squid-mod-basic-auth-winbind
,wb_auth
))
197 $(eval
$(call BuildPlugin
,squid-mod-digest-auth-password
,digest_pw_auth
))
198 $(eval
$(call BuildPlugin
,squid-mod-external-acl-ip-user
,ip_user_check
))
199 $(eval
$(call BuildPlugin
,squid-mod-external-acl-unix-group
,squid_unix_group
))
200 $(eval
$(call BuildPlugin
,squid-mod-external-acl-winbind-group
,wb_group
))
201 $(eval
$(call BuildPlugin
,squid-mod-ntlm-auth-fakeauth
,fakeauth_auth
))
202 $(eval
$(call BuildPlugin
,squid-mod-ntlm-auth-smb-auth
,ntlm_auth
))
203 $(eval
$(call BuildPlugin
,squid-mod-ntlm-auth-winbind-auth
,wb_ntlmauth
))