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
14 PKG_MD5SUM
:=3e64468e123be1246d17486dab6bee87
16 PKG_SOURCE_URL
:=http
://www.squid-cache.org
/Versions
/v2
/2.5/
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
18 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
22 include $(INCLUDE_DIR
)/package.mk
28 TITLE
:=full-featured Web proxy cache
29 DESCRIPTION
:=Squid is a high-performance proxy caching server for web clients
,\\\
30 supporting FTP
, gopher
, and HTTP data objects. Unlike traditional
\\\
31 caching software
, Squid handles
all requests in a single
,\\\
32 non-blocking
, I
/O-driven process.
\\\
33 URL
:=http
://www.squid-cache.org
37 define Package
/squid-mod-basic-auth-getpwnam
41 TITLE
:=getpwnam basic authentication helper
44 define Package
/squid-mod-basic-auth-ncsa
48 TITLE
:=NCSA basic authentication helper
51 define Package
/squid-mod-basic-auth-smb
55 TITLE
:=Samba basic authentication helper
58 define Package
/squid-mod-basic-auth-winbind
62 TITLE
:=Winbind basic authentication helper
65 define Package
/squid-mod-digest-auth-password
69 TITLE
:=Password digest authentication helper
72 define Package
/squid-mod-external-acl-ip-user
76 TITLE
:=IP user external ACL helper
79 define Package
/squid-mod-external-acl-unix-group
83 TITLE
:=Unix group external ACL helper
86 define Package
/squid-mod-external-acl-winbind-group
90 TITLE
:=Winbind group external ACL helper
93 define Package
/squid-mod-ntlm-auth-fakeauth
97 TITLE
:=Fakeauth NTLM authentication helper
100 define Package
/squid-mod-ntlm-auth-smb-auth
104 TITLE
:=Samba NTLM authentication helper
107 define Package
/squid-mod-ntlm-auth-winbind-auth
111 TITLE
:=Winbind NTLM authentication helper
114 define Build
/Configure
115 (cd
$(PKG_BUILD_DIR
); rm -rf config.cache
; \
116 $(TARGET_CONFIGURE_OPTS
) \
117 CFLAGS
="$(TARGET_CFLAGS)" \
118 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
119 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
120 ac_cv_sizeof_void_p
=4 \
121 ac_cv_sizeof_short
=2 \
123 ac_cv_sizeof_long
=4 \
124 ac_cv_sizeof_long_long
=8 \
125 ac_cv_sizeof___int64
=0 \
126 ac_cv_sizeof_int16_t
=2 \
127 ac_cv_sizeof_uint16_t
=2 \
128 ac_cv_sizeof_u_int16_t
=2 \
129 ac_cv_sizeof_int32_t
=4 \
130 ac_cv_sizeof_uint32_t
=4 \
131 ac_cv_sizeof_u_int32_t
=4 \
132 ac_cv_sizeof_int64_t
=8 \
133 ac_cv_sizeof_uint64_t
=8 \
134 ac_cv_sizeof_u_int64_t
=8 \
135 ac_cv_func_setresuid
=no \
136 ac_cv_func_va_copy
=no \
137 ac_cv_func___va_copy
=no \
139 --target
=$(GNU_TARGET_NAME
) \
140 --host
=$(GNU_TARGET_NAME
) \
141 --build
=$(GNU_HOST_NAME
) \
142 --program-prefix
="" \
143 --program-suffix
="" \
147 --datadir=/usr
/share
/squid \
148 --includedir=/usr
/include \
149 --infodir=/usr
/share
/info \
151 --libexecdir
=/usr
/lib
/squid \
152 --localstatedir
=/var \
153 --mandir=/usr
/share
/man \
154 --sbindir
=/usr
/sbin \
155 --sysconfdir
=/etc
/squid \
156 $(DISABLE_LARGEFILE
) \
160 --enable-x-accelerator-vary \
164 --enable-kill-parent-hack \
168 --enable-err-languages
=English \
169 --enable-default-err-language
=English \
170 --enable-linux-netfilter \
172 --enable-external-acl-helpers
="" \
173 --enable-underscores \
174 --enable-cache-digests \
175 --enable-referer-log \
176 --enable-delay-pools \
177 --enable-useragent-log \
178 --with-openssl
=$(STAGING_DIR
)/usr \
179 --enable-auth
="basic digest ntlm" \
180 --enable-basic-auth-helpers
="getpwnam NCSA SMB winbind" \
181 --enable-ntlm-auth-helpers
="fakeauth SMB winbind" \
182 --enable-digest-auth-helpers
="password" \
183 --enable-external-acl-helpers
="ip_user unix_group winbind_group" \
188 rm -rf
$(PKG_INSTALL_DIR
)
189 mkdir
-p
$(PKG_INSTALL_DIR
)
190 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
191 DESTDIR
=$(PKG_INSTALL_DIR
) \
195 define Package
/squid
/install
196 install -d
-m0755
$(1)/etc
/squid
197 $(CP
) $(PKG_INSTALL_DIR
)/etc
/squid
/mime.conf
$(1)/etc
/squid
/
198 $(CP
) $(PKG_INSTALL_DIR
)/etc
/squid
/squid.conf
$(1)/etc
/squid
/
199 install -d
-m0755
$(1)/usr
/share
/squid
200 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/squid
/* $(1)/usr
/share
/squid
/
201 install -d
-m0755
$(1)/usr
/sbin
202 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/squid
$(1)/usr
/sbin
/
206 define Package
/$(1)/install
207 install -d
-m0755
$$(1)/usr
/lib
/squid
208 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/squid
/$(2) $$(1)/usr
/lib
/squid
/
211 $$(eval
$$(call BuildPackage
,$(1)))
214 $(eval
$(call BuildPackage
,squid
))
215 $(eval
$(call BuildPlugin
,squid-mod-basic-auth-getpwnam
,getpwname_auth
))
216 $(eval
$(call BuildPlugin
,squid-mod-basic-auth-ncsa
,ncsa_auth
))
217 $(eval
$(call BuildPlugin
,squid-mod-basic-auth-smb
,smb_auth
))
218 $(eval
$(call BuildPlugin
,squid-mod-basic-auth-winbind
,wb_auth
))
219 $(eval
$(call BuildPlugin
,squid-mod-digest-auth-password
,digest_pw_auth
))
220 $(eval
$(call BuildPlugin
,squid-mod-external-acl-ip-user
,ip_user_check
))
221 $(eval
$(call BuildPlugin
,squid-mod-external-acl-unix-group
,squid_unix_group
))
222 $(eval
$(call BuildPlugin
,squid-mod-external-acl-winbind-group
,wb_group
))
223 $(eval
$(call BuildPlugin
,squid-mod-ntlm-auth-fakeauth
,fakeauth_auth
))
224 $(eval
$(call BuildPlugin
,squid-mod-ntlm-auth-smb-auth
,ntlm_auth
))
225 $(eval
$(call BuildPlugin
,squid-mod-ntlm-auth-winbind-auth
,wb_ntlmauth
))