summaryrefslogtreecommitdiff
path: root/package/squid/Makefile
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/squid/Makefile
Initial import
Diffstat (limited to 'package/squid/Makefile')
-rw-r--r--package/squid/Makefile173
1 files changed, 173 insertions, 0 deletions
diff --git a/package/squid/Makefile b/package/squid/Makefile
new file mode 100644
index 000000000..fb1ac63af
--- /dev/null
+++ b/package/squid/Makefile
@@ -0,0 +1,173 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= squid
+PKG_VERSION:= 2.5.STABLE13
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 3e64468e123be1246d17486dab6bee87
+MASTER_SITES:= http://www.squid-cache.org/Versions/v2/2.5/
+DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
+
+AUTH_MODULES:=basic digest ntlm
+ifneq (${ADK_PACKAGE_SQUID_MOD_BASIC_AUTH_GETPWNAM},)
+BASIC_AUTH_HELPERS+= getpwnam
+endif
+ifneq (${ADK_PACKAGE_SQUID_MOD_BASIC_AUTH_NCSA},)
+BASIC_AUTH_HELPERS+= NCSA
+endif
+ifneq (${ADK_PACKAGE_SQUID_MOD_BASIC_AUTH_SMB},)
+BASIC_AUTH_HELPERS+= SMB
+endif
+ifneq (${ADK_PACKAGE_SQUID_MOD_BASIC_AUTH_WINBIND},)
+BASIC_AUTH_HELPERS+= winbind
+endif
+
+ifneq (${ADK_PACKAGE_SQUID_MOD_DIGEST_AUTH_PASSWORD},)
+DIGEST_AUTH_HELPERS:= password
+endif
+
+ifneq (${ADK_PACKAGE_SQUID_MOD_EXTERNAL_ACL_IP_USER},)
+EXTERNAL_ACL_HELPERS+= ip_user
+endif
+ifneq (${ADK_PACKAGE_SQUID_MOD_EXTERNAL_ACL_UNIX_GROUP},)
+EXTERNAL_ACL_HELPERS+= unix_group
+endif
+ifneq (${ADK_PACKAGE_SQUID_MOD_EXTERNAL_ACL_WINBIND_GROUP},)
+EXTERNAL_ACL_HELPERS+= winbind_group
+endif
+
+ifneq (${ADK_PACKAGE_SQUID_MOD_NTLM_AUTH_FAKEAUTH},)
+NTLM_AUTH_HELPERS+= fakeauth
+endif
+ifneq (${ADK_PACKAGE_SQUID_MOD_NTLM_AUTH_SMB_AUTH},)
+NTLM_AUTH_HELPERS+= SMB
+endif
+ifneq (${ADK_PACKAGE_SQUID_MOD_NTLM_AUTH_WINBIND_AUTH},)
+NTLM_AUTH_HELPERS+= winbind
+endif
+
+include ${TOPDIR}/mk/package.mk
+
+define PKG_mod_template
+if [ -e ${WRKINST}/usr/lib/squid/${2} ]; then \
+ ${INSTALL_DIR} ${IDIR_${1}}/usr/lib/squid/ ; \
+ ${INSTALL_BIN} ${WRKINST}/usr/lib/squid/${2} ${IDIR_${1}}/usr/lib/squid/ ; \
+fi
+endef
+
+#$${IPKG_${1}}:
+# install -d -m0755 $${IDIR_${1}}/usr/lib/squid
+# if [ -e ${WRKINST}/usr/lib/squid/${2} ]; then \
+# ${CP} ${WRKINST}/usr/lib/squid/${2} $${IDIR_${1}}/usr/lib/squid/ ; \
+# fi
+# ${RSTRIP} $${IDIR_${1}}
+# ${IPKG_BUILD} $${IDIR_${1}} ${PACKAGE_DIR}
+#
+#endef
+
+
+$(eval $(call PKG_template,SQUID,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+$(eval $(call PKG_template,SQUID_MOD_BASIC_AUTH_GETPWNAM,${PKG_NAME}-mod-basic-auth-getpwnam,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+$(eval $(call PKG_template,SQUID_MOD_BASIC_AUTH_NCSA,${PKG_NAME}-mod-basic-auth-ncsa,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+$(eval $(call PKG_template,SQUID_MOD_BASIC_AUTH_SMB,${PKG_NAME}-mod-basic-auth-smb,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+$(eval $(call PKG_template,SQUID_MOD_BASIC_AUTH_WINBIND,${PKG_NAME}-mod-basic-auth-winbind,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+$(eval $(call PKG_template,SQUID_MOD_DIGEST_AUTH_PASSWORD,${PKG_NAME}-mod-digest-auth-password,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+$(eval $(call PKG_template,SQUID_MOD_EXTERNAL_ACL_IP_USER,${PKG_NAME}-mod-external-acl-ip-user,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+$(eval $(call PKG_template,SQUID_MOD_EXTERNAL_ACL_UNIX_GROUP,${PKG_NAME}-mod-external-acl-unix-group,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+$(eval $(call PKG_template,SQUID_MOD_EXTERNAL_ACL_WINBIND_GROUP,${PKG_NAME}-mod-external-acl-winbind-group,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+$(eval $(call PKG_template,SQUID_MOD_NTLM_AUTH_FAKEAUTH,${PKG_NAME}-mod-ntlm-auth-fakeauth,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+$(eval $(call PKG_template,SQUID_MOD_NTLM_AUTH_SMB_AUTH,${PKG_NAME}-mod-ntlm-auth-smb-auth,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+$(eval $(call PKG_template,SQUID_MOD_NTLM_AUTH_WINBIND_AUTH,${PKG_NAME}-mod-ntlm-auth-winbind-auth,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+#${eval ${call PKG_mod_template,SQUID_MOD_BASIC_AUTH_GETPWNAM,getpwname_auth}}
+#${eval ${call PKG_mod_template,SQUID_MOD_BASIC_AUTH_LDAP,ldap}}
+#${eval ${call PKG_mod_template,SQUID_MOD_BASIC_AUTH_NCSA,ncsa_auth}}
+#${eval ${call PKG_mod_template,SQUID_MOD_BASIC_AUTH_SMB,smb_auth}}
+#${eval ${call PKG_mod_template,SQUID_MOD_BASIC_AUTH_WINBIND,wb_auth}}
+#${eval ${call PKG_mod_template,SQUID_MOD_DIGEST_AUTH_PASSWORD,digest_pw_auth}}
+#${eval ${call PKG_mod_template,SQUID_MOD_EXTERNAL_ACL_IP_USER,ip_user_check}}
+#${eval ${call PKG_mod_template,SQUID_MOD_EXTERNAL_ACL_LDAP_GROUP,ldap_auth}}
+#${eval ${call PKG_mod_template,SQUID_MOD_EXTERNAL_ACL_UNIX_GROUP,squid_unix_group}}
+#${eval ${call PKG_mod_template,SQUID_MOD_EXTERNAL_ACL_WINBIND_GROUP,wb_group}}
+#${eval ${call PKG_mod_template,SQUID_MOD_NTLM_AUTH_FAKEAUTH,fakeauth_auth}}
+#${eval ${call PKG_mod_template,SQUID_MOD_NTLM_AUTH_SMB_AUTH,ntlm_auth}}
+#${eval ${call PKG_mod_template,SQUID_MOD_NTLM_AUTH_WINBIND_AUTH,wb_ntlmauth}}
+
+CONFIGURE_STYLE:= gnu
+CONFIGURE_ENV+= ac_cv_sizeof_void_p=4 \
+ ac_cv_sizeof_short=2 \
+ ac_cv_sizeof_int=4 \
+ ac_cv_sizeof_long=4 \
+ ac_cv_sizeof_long_long=8 \
+ ac_cv_sizeof___int64=0 \
+ ac_cv_sizeof_int16_t=2 \
+ ac_cv_sizeof_uint16_t=2 \
+ ac_cv_sizeof_u_int16_t=2 \
+ ac_cv_sizeof_int32_t=4 \
+ ac_cv_sizeof_uint32_t=4 \
+ ac_cv_sizeof_u_int32_t=4 \
+ ac_cv_sizeof_int64_t=8 \
+ ac_cv_sizeof_uint64_t=8 \
+ ac_cv_sizeof_u_int64_t=8 \
+ ac_cv_func_setresuid=no \
+ ac_cv_func_va_copy=no \
+ ac_cv_func___va_copy=no
+CONFIGURE_ARGS+= --datadir=/usr/share/squid \
+ --libexecdir=/usr/lib/squid \
+ --sysconfdir=/etc/squid \
+ --enable-static \
+ --with-gnu-ld \
+ --enable-x-accelerator-vary \
+ --with-pthreads \
+ --with-dl \
+ --enable-icmp \
+ --enable-kill-parent-hack \
+ --enable-arp-acl \
+ --enable-ssl \
+ --enable-htcp \
+ --enable-err-languages=English \
+ --enable-default-err-language=English \
+ --enable-linux-netfilter \
+ --enable-icmp \
+ --enable-external-acl-helpers="" \
+ --enable-underscores \
+ --enable-cache-digests \
+ --enable-referer-log \
+ --enable-delay-pools \
+ --enable-useragent-log \
+ --with-openssl=${STAGING_DIR}/usr \
+ --enable-auth="${AUTH_MODULES}" \
+ --enable-basic-auth-helpers="${BASIC_AUTH_HELPERS}" \
+ --enable-ntlm-auth-helpers="${NTLM_AUTH_HELPERS}" \
+ --enable-digest-auth-helpers="${DIGEST_AUTH_HELPERS}" \
+ --enable-external-acl-helpers="${EXTERNAL_ACL_HELPERS}"
+BUILD_STYLE:= auto
+INSTALL_STYLE:= auto
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_SQUID}/etc/squid
+ ${INSTALL_DATA} ${WRKINST}/etc/squid/mime.conf \
+ ${WRKINST}/etc/squid/squid.conf ${IDIR_SQUID}/etc/squid/
+ ${INSTALL_DIR} ${IDIR_SQUID}/usr/share/squid
+ ${CP} ${WRKINST}/usr/share/squid/* ${IDIR_SQUID}/usr/share/squid/
+ ${INSTALL_DIR} ${IDIR_SQUID}/usr/sbin
+ ${INSTALL_BIN} ${WRKINST}/usr/sbin/squid ${IDIR_SQUID}/usr/sbin/
+ $(call PKG_mod_template,SQUID_MOD_BASIC_AUTH_GETPWNAM,getpwname_auth)
+ $(call PKG_mod_template,SQUID_MOD_BASIC_AUTH_LDAP,ldap)
+ $(call PKG_mod_template,SQUID_MOD_BASIC_AUTH_NCSA,ncsa_auth)
+ $(call PKG_mod_template,SQUID_MOD_BASIC_AUTH_SMB,smb_auth)
+ $(call PKG_mod_template,SQUID_MOD_BASIC_AUTH_WINBIND,wb_auth)
+ $(call PKG_mod_template,SQUID_MOD_DIGEST_AUTH_PASSWORD,digest_pw_auth)
+ $(call PKG_mod_template,SQUID_MOD_EXTERNAL_ACL_IP_USER,ip_user_check)
+ $(call PKG_mod_template,SQUID_MOD_EXTERNAL_ACL_LDAP_GROUP,ldap_auth)
+ $(call PKG_mod_template,SQUID_MOD_EXTERNAL_ACL_UNIX_GROUP,squid_unix_group)
+ $(call PKG_mod_template,SQUID_MOD_EXTERNAL_ACL_WINBIND_GROUP,wb_group)
+ $(call PKG_mod_template,SQUID_MOD_NTLM_AUTH_FAKEAUTH,fakeauth_auth)
+ $(call PKG_mod_template,SQUID_MOD_NTLM_AUTH_SMB_AUTH,ntlm_auth)
+ $(call PKG_mod_template,SQUID_MOD_NTLM_AUTH_WINBIND_AUTH,wb_ntlmauth)
+
+include ${TOPDIR}/mk/pkg-bottom.mk