Improved helper configlets for wider compatibility.
* Add configlet tests for building the DB basic auth helper
* Improved detection of samba prefix for wbinfo_group and SMB
* Also check for SASL shared libraries in SASL helper
* Distribute the config.test files to enable auto-build properly
do_subst = sed -e 's,[@]PERL[@],$(PERL),g'
man_MANS = squid_db_auth.8
EXTRA_DIST = passwd.sql \
- squid_db_auth.in
+ squid_db_auth.in \
+ config.test
squid_db_auth.8: squid_db_auth
pod2man squid_db_auth squid_db_auth.8
--- /dev/null
+#!/bin/sh
+
+## Test: do we have perl to build the helper scripts?
+## Test: do we have pod2man to build the manual?
+perl --version >/dev/null && echo | pod2man >/dev/null
+
+exit $?
libexec_PROGRAMS = squid_ldap_auth
man_MANS = squid_ldap_auth.8
-EXTRA_DIST = squid_ldap_auth.8
squid_ldap_auth_SOURCES = squid_ldap_auth.c
+EXTRA_DIST = basic_ldap_auth.8 config.test
LDADD = \
$(top_builddir)/compat/libcompat.la \
-#
-# Makefile for the Squid Object Cache server
-#
-# $Id$
-#
-# Uncomment and customize the following to suit your needs:
-#
-
include $(top_srcdir)/src/Common.am
MSNTAUTH_CONF = $(sysconfdir)/msntauth.conf
COPYING-2.0 \
msntauth.conf.default \
msntauth-v2.0.lsm \
- README.html
+ README.html \
+ config.test
sysconf_DATA = \
msntauth.conf.default
libexec_PROGRAMS = ncsa_auth
ncsa_auth_SOURCES = ncsa_auth.c crypt_md5.c crypt_md5.h
man_MANS = ncsa_auth.8
-EXTRA_DIST = ncsa_auth.8
+EXTRA_DIST = ncsa_auth.8 config.test
LDADD = \
$(top_builddir)/compat/libcompat.la \
-L$(top_builddir)/lib -lmiscutil \
include $(top_srcdir)/src/Common.am
man_MANS = pam_auth.8
-EXTRA_DIST = pam_auth.8
+EXTRA_DIST = pam_auth.8 config.test
libexec_PROGRAMS = pam_auth
## we need our local files too (but avoid -I. at all costs)
pop3.pl
EXTRA_DIST = \
- pop3.pl
+ pop3.pl \
+ config.test
$(LIBSASL) \
$(XTRA_LIBS)
-EXTRA_DIST = squid_sasl_auth squid_sasl_auth.conf
+EXTRA_DIST = squid_sasl_auth squid_sasl_auth.conf config.test
if [ -f /usr/lib/libsasl.la -o -f /usr/lib/libsasl2.la ]; then
exit 0
fi
+ if [ -f /usr/lib/libsasl.so -o -f /usr/lib/libsasl2.so ]; then
+ exit 0
+ fi
fi
exit 1
libexec_SCRIPTS = $(SMB_AUTH_HELPER)
libexec_PROGRAMS = smb_auth
smb_auth_CFLAGS = -DSAMBAPREFIX=\"$(SAMBAPREFIX)\" -DHELPERSCRIPT=\"$(SMB_AUTH_HELPER_PATH)\"
-EXTRA_DIST = smb_auth.sh COPYING-2.0
+EXTRA_DIST = smb_auth.sh COPYING-2.0 config.test
## we need our local files too (but avoid -I. at all costs)
INCLUDES += -I$(srcdir)
#!/bin/sh
-if [ -x ${SAMBAPREFIX:-/usr/local/samba}/bin/smbclient ]; then
- exit 0
-fi
+for prefix in ${SAMBAPREFIX} /usr/local /opt /opt/samba /usr/local/samba /usr
+do
+ if [ -x ${prefix}/bin/smbclient ]; then
+ exit 0
+ fi
+done
exit 1
-L$(top_builddir)/lib -lmiscutil \
$(CRYPTLIB) \
$(XTRA_LIBS)
+
+EXTRA_DIST = config.test
-L$(top_builddir)/lib -lmiscutil \
$(CRYPTLIB) \
$(XTRA_LIBS)
+
+EXTRA_DIST = config.test
## we need our local files too (but avoid -I. at all costs)
INCLUDES += -I$(srcdir)
-EXTRA_DIST = readme.txt
+EXTRA_DIST = readme.txt config.test
EXTRA_DIST = \
smb_auth.pl \
- README.txt
+ README.txt \
+ config.test
libexec_PROGRAMS = squid_radius_auth
man_MANS = squid_radius_auth.8
-EXTRA_DIST = squid_radius_auth.8
+EXTRA_DIST = squid_radius_auth.8 config.test
squid_radius_auth_SOURCES = \
squid_rad_auth.c \
radius.h \
$(CRYPTLIB) \
$(XTRA_LIBS) \
$(SSLLIB)
+
+EXTRA_DIST = config.test
$(CRYPTLIB) \
$(XTRA_LIBS) \
$(SSLLIB)
+
+EXTRA_DIST = config.test
$(CRYPTLIB) \
$(XTRA_LIBS) \
$(SSLLIB)
+
+EXTRA_DIST = config.test
-#
-# Makefile for the ip_user external_acl helper by Rodrigo Campos
-#
-# $Id$
-#
-# Uncomment and customize the following to suit your needs:
-#
-
include $(top_srcdir)/src/Common.am
## we need our local files too (but avoid -I. at all costs)
example.conf \
example-deny_all_but.conf \
license \
- README
+ README \
+ config.test
LDADD = \
$(top_builddir)/compat/libcompat.la \
-#
-# Makefile for the Squid LDAP authentication helper
-#
-# $Id$
-#
-# Uncomment and customize the following to suit your needs:
-#
-
include $(top_srcdir)/src/Common.am
## we need our local files too (but avoid -I. at all costs)
libexec_PROGRAMS = squid_ldap_group
man_MANS = squid_ldap_group.8
-EXTRA_DIST = squid_ldap_group.8
+EXTRA_DIST = squid_ldap_group.8 config.test
squid_ldap_group_SOURCES = squid_ldap_group.c
LDADD = \
-#
-# Makefile for the Squid Object Cache server
-#
-# $Id$
-#
-# Uncomment and customize the following to suit your needs:
-#
-
-
libexec_PROGRAMS = mswin_check_ad_group
mswin_check_ad_group_SOURCES = mswin_check_ad_group.c mswin_check_ad_group.h
-lntdll \
$(XTRA_LIBS)
-EXTRA_DIST = readme.txt
+EXTRA_DIST = readme.txt config.test
-lntdll \
$(XTRA_LIBS)
-EXTRA_DIST = readme.txt
+EXTRA_DIST = readme.txt config.test
-#
-# Makefile for the Squid LDAP authentication helper
-#
-# $Id$
-#
-# Uncomment and customize the following to suit your needs:
-#
-
include $(top_srcdir)/src/Common.am
## we need our local files too (but avoid -I. at all costs)
libexec_PROGRAMS = squid_session
man_MANS = squid_session.8
-EXTRA_DIST = squid_session.8
+EXTRA_DIST = squid_session.8 config.test
squid_session_SOURCES = squid_session.c
LDADD = \
-#
-# Makefile for the Squid LDAP authentication helper
-#
-# $Id$
-#
-# Uncomment and customize the following to suit your needs:
-#
-
include $(top_srcdir)/src/Common.am
## we need our local files too (but avoid -I. at all costs)
libexec_PROGRAMS = squid_unix_group
man_MANS = squid_unix_group.8
-EXTRA_DIST = squid_unix_group.8
+EXTRA_DIST = squid_unix_group.8 config.test
squid_unix_group_SOURCES = check_group.c
LDADD = \
-#
-# Makefile for the Squid LDAP authentication helper
-#
-# $Id$
-#
-# Uncomment and customize the following to suit your needs:
-#
-
libexec_SCRIPTS = wbinfo_group.pl
#man_MANS = squid_wbinfo_group.8
#EXTRA_DIST = squid_wbinfo_group.8
-EXTRA_DIST = wbinfo_group.pl
+EXTRA_DIST = wbinfo_group.pl config.test
#!/bin/sh
-if [ -x ${SAMBAPREFIX:-/usr/local/samba}/bin/wbinfo -a -x /usr/bin/perl ]; then
- exit 0
-fi
-if [ -x /usr/bin/wbinfo -a -x /usr/bin/perl ]; then
- exit 0
-fi
+
+for sambaprefix in ${SAMBAPREFIX} /usr/local /opt /opt/samba /usr/local/samba /usr
+do
+ for perlprefix in /usr /usr/local /opt /opt/perl
+ do
+ if [ -x $sambaprefix/bin/wbinfo -a -x $perlprefix/bin/perl ]; then
+ exit 0
+ fi
+ done
+done
exit 1
LDADD = -L$(top_builddir)/lib -lsspwin32 -ladvapi32 -lmiscutil $(XTRA_LIBS)
-EXTRA_DIST = readme.txt
+EXTRA_DIST = readme.txt config.test
-#
-# Makefile for the Squid Object Cache server
-#
-# $Id$
-#
-# Uncomment and customize the following to suit your needs:
-#
-
include $(top_srcdir)/src/Common.am
libexec_PROGRAMS = fakeauth_auth
-L$(top_builddir)/lib -lmiscutil \
$(CRYPTLIB) \
$(XTRA_LIBS)
+
+EXTRA_DIST = config.test
-#
-# Makefile for the Squid Object Cache server
-#
-# $Id$
-#
-
include $(top_srcdir)/src/Common.am
libexec_PROGRAMS = mswin_ntlm_auth
-ladvapi32 \
$(XTRA_LIBS)
-EXTRA_DIST = readme.txt
+EXTRA_DIST = readme.txt config.test
EXTRA_DIST = \
no_check.pl \
- README.no_check_ntlm_auth
-
+ README.no_check_ntlm_auth \
+ config.test
-#
-# Makefile for the Squid Object Cache server
-#
-
include $(top_srcdir)/src/Common.am
SUBDIRS = smbval
smbval/libsmbvalid.a \
$(CRYPTLIB) \
$(XTRA_LIBS)
+
+EXTRA_DIST = config.test