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" \
145 # pass INCLUDES to compile host sources against our OpenSSL, not the host one
146 $(MAKE
) -C
$(PKG_BUILD_DIR
)/lib \
147 INCLUDES
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
149 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
150 DESTDIR
="$(PKG_INSTALL_DIR)" \
154 define Package
/squid
/install
155 install -d
-m0755
$(1)/etc
/squid
156 $(CP
) $(PKG_INSTALL_DIR
)/etc
/squid
/mime.conf
$(1)/etc
/squid
/
157 $(CP
) $(PKG_INSTALL_DIR
)/etc
/squid
/squid.conf
$(1)/etc
/squid
/
158 install -d
-m0755
$(1)/usr
/share
/squid
159 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/squid
/* $(1)/usr
/share
/squid
/
160 install -d
-m0755
$(1)/usr
/sbin
161 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/squid
$(1)/usr
/sbin
/
165 define Package
/$(1)/install
166 install -d
-m0755
$$(1)/usr
/lib
/squid
167 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/squid
/$(2) $$(1)/usr
/lib
/squid
/
170 $$(eval
$$(call BuildPackage
,$(1)))
173 $(eval
$(call BuildPackage
,squid
))
174 $(eval
$(call BuildPlugin
,squid-mod-basic-auth-getpwnam
,getpwname_auth
))
175 $(eval
$(call BuildPlugin
,squid-mod-basic-auth-ncsa
,ncsa_auth
))
176 $(eval
$(call BuildPlugin
,squid-mod-basic-auth-smb
,smb_auth
))
177 $(eval
$(call BuildPlugin
,squid-mod-basic-auth-winbind
,wb_auth
))
178 $(eval
$(call BuildPlugin
,squid-mod-digest-auth-password
,digest_pw_auth
))
179 $(eval
$(call BuildPlugin
,squid-mod-external-acl-ip-user
,ip_user_check
))
180 $(eval
$(call BuildPlugin
,squid-mod-external-acl-unix-group
,squid_unix_group
))
181 $(eval
$(call BuildPlugin
,squid-mod-external-acl-winbind-group
,wb_group
))
182 $(eval
$(call BuildPlugin
,squid-mod-ntlm-auth-fakeauth
,fakeauth_auth
))
183 $(eval
$(call BuildPlugin
,squid-mod-ntlm-auth-smb-auth
,ntlm_auth
))
184 $(eval
$(call BuildPlugin
,squid-mod-ntlm-auth-winbind-auth
,wb_ntlmauth
))