[package] freeradius: remove
git-svn-id: svn://svn.openwrt.org/openwrt/packages@31163 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
f9e5e04092
commit
d234cdcc86
@ -1,405 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2006-2010 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=freeradius
|
||||
PKG_VERSION:=1.1.8
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||
PKG_SOURCE_URL:=ftp://ftp.freeradius.org/pub/radius/old/ \
|
||||
http://freeradius.portal-to-web.de/ \
|
||||
ftp://ftp.uk.freeradius.org/pub/radius/
|
||||
PKG_MD5SUM:=d367452a837bbe8d9c8731e21dc43593
|
||||
|
||||
PKG_FIXUP:=libtool
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/freeradius/Default
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
URL:=http://freeradius.org/
|
||||
endef
|
||||
|
||||
define Package/freeradius
|
||||
$(call Package/freeradius/Default)
|
||||
DEPENDS:=+libltdl +libopenssl +libpthread +libreadline
|
||||
TITLE:=A flexible RADIUS server
|
||||
MENU:=1
|
||||
endef
|
||||
|
||||
define Package/freeradius/conffiles
|
||||
/etc/freeradius/clients.conf
|
||||
/etc/freeradius/radiusd.conf
|
||||
endef
|
||||
|
||||
define Package/freeradius-democerts
|
||||
$(call Package/freeradius/Default)
|
||||
DEPENDS:=freeradius
|
||||
TITLE:=Demo certificates to test the server
|
||||
endef
|
||||
|
||||
define Package/freeradius-mod-chap
|
||||
$(call Package/freeradius/Default)
|
||||
DEPENDS:=freeradius
|
||||
TITLE:=CHAP module
|
||||
endef
|
||||
|
||||
define Package/freeradius-mod-detail
|
||||
$(call Package/freeradius/Default)
|
||||
DEPENDS:=freeradius
|
||||
TITLE:=Detailed accounting module
|
||||
endef
|
||||
|
||||
define Package/freeradius-mod-eap
|
||||
$(call Package/freeradius/Default)
|
||||
DEPENDS:=freeradius
|
||||
TITLE:=Base EAP module
|
||||
endef
|
||||
|
||||
define Package/freeradius-mod-eap/conffiles
|
||||
/etc/freeradius/eap.conf
|
||||
endef
|
||||
|
||||
define Package/freeradius-mod-eap-gtc
|
||||
$(call Package/freeradius/Default)
|
||||
DEPENDS:=freeradius-mod-eap
|
||||
TITLE:=EAP/GTC module
|
||||
endef
|
||||
|
||||
define Package/freeradius-mod-eap-md5
|
||||
$(call Package/freeradius/Default)
|
||||
DEPENDS:=freeradius-mod-eap
|
||||
TITLE:=EAP/MD5 module
|
||||
endef
|
||||
|
||||
define Package/freeradius-mod-eap-mschapv2
|
||||
$(call Package/freeradius/Default)
|
||||
DEPENDS:=freeradius-mod-eap
|
||||
TITLE:=EAP/MS-CHAPv2 module
|
||||
endef
|
||||
|
||||
define Package/freeradius-mod-eap-peap
|
||||
$(call Package/freeradius/Default)
|
||||
DEPENDS:=freeradius-mod-eap
|
||||
TITLE:=EAP/PEAP module
|
||||
endef
|
||||
|
||||
define Package/freeradius-mod-eap-tls
|
||||
$(call Package/freeradius/Default)
|
||||
DEPENDS:=freeradius-mod-eap
|
||||
TITLE:=EAP/TLS module
|
||||
endef
|
||||
|
||||
define Package/freeradius-mod-eap-ttls
|
||||
$(call Package/freeradius/Default)
|
||||
DEPENDS:=freeradius-mod-eap-tls
|
||||
TITLE:=EAP/TTLS module
|
||||
endef
|
||||
|
||||
define Package/freeradius-mod-exec
|
||||
$(call Package/freeradius/Default)
|
||||
DEPENDS:=freeradius
|
||||
TITLE:=EXEC module
|
||||
endef
|
||||
|
||||
define Package/freeradius-mod-attr-rewrite
|
||||
$(call Package/freeradius/Default)
|
||||
DEPENDS:=freeradius
|
||||
TITLE:=ATTR rewrite module
|
||||
endef
|
||||
|
||||
define Package/freeradius-mod-files
|
||||
$(call Package/freeradius/Default)
|
||||
DEPENDS:=freeradius
|
||||
TITLE:=Module using local files for authorization
|
||||
endef
|
||||
|
||||
define Package/freeradius-mod-files/conffiles
|
||||
/etc/freeradius/acct_users
|
||||
/etc/freeradius/preproxy_users
|
||||
/etc/freeradius/users
|
||||
endef
|
||||
|
||||
define Package/freeradius-mod-ldap
|
||||
$(call Package/freeradius/Default)
|
||||
DEPENDS:=freeradius +libopenldap
|
||||
TITLE:=LDAP module
|
||||
endef
|
||||
|
||||
define Package/freeradius-mod-ldap/conffiles
|
||||
/etc/freeradius/ldap.attrmap
|
||||
endef
|
||||
|
||||
define Package/freeradius-mod-mschap
|
||||
$(call Package/freeradius/Default)
|
||||
DEPENDS:=freeradius
|
||||
TITLE:=MS-CHAP and MS-CHAPv2 module
|
||||
endef
|
||||
|
||||
define Package/freeradius-mod-pap
|
||||
$(call Package/freeradius/Default)
|
||||
DEPENDS:=freeradius
|
||||
TITLE:=PAP module
|
||||
endef
|
||||
|
||||
define Package/freeradius-mod-preprocess
|
||||
$(call Package/freeradius/Default)
|
||||
DEPENDS:=freeradius
|
||||
TITLE:=Request pre-processing module
|
||||
endef
|
||||
|
||||
define Package/freeradius-mod-preprocess/conffiles
|
||||
/etc/freeradius/hints
|
||||
/etc/freeradius/huntgroups
|
||||
endef
|
||||
|
||||
define Package/freeradius-mod-realm
|
||||
$(call Package/freeradius/Default)
|
||||
DEPENDS:=freeradius
|
||||
TITLE:=Realms handling module
|
||||
endef
|
||||
|
||||
define Package/freeradius-mod-realm/conffiles
|
||||
/etc/freeradius/proxy.conf
|
||||
endef
|
||||
|
||||
define Package/freeradius-mod-sql
|
||||
$(call Package/freeradius/Default)
|
||||
DEPENDS:=freeradius
|
||||
TITLE:=Base SQL module
|
||||
endef
|
||||
|
||||
define Package/freeradius-mod-sql-mysql
|
||||
$(call Package/freeradius/Default)
|
||||
DEPENDS:=freeradius-mod-sql +libmysqlclient
|
||||
TITLE:=MySQL module
|
||||
endef
|
||||
|
||||
define Package/freeradius-mod-sql-pgsql
|
||||
$(call Package/freeradius/Default)
|
||||
DEPENDS:=freeradius-mod-sql +libpq
|
||||
TITLE:=PostgreSQL module
|
||||
endef
|
||||
|
||||
define Package/freeradius-mod-sqlcounter
|
||||
$(call Package/freeradius/Default)
|
||||
DEPENDS:=freeradius-mod-sql
|
||||
TITLE:=Generic SQL Counter module
|
||||
endef
|
||||
|
||||
define Package/freeradius-mod-radutmp
|
||||
$(call Package/freeradius/Default)
|
||||
DEPENDS:=freeradius
|
||||
TITLE:=Radius UTMP module
|
||||
endef
|
||||
|
||||
define Package/freeradius-utils
|
||||
$(call Package/freeradius/Default)
|
||||
DEPENDS:=freeradius
|
||||
TITLE:=Misc. client utilities
|
||||
endef
|
||||
|
||||
CONFIGURE_ARGS+= \
|
||||
--libdir=/usr/lib/freeradius \
|
||||
--libexecdir=/usr/lib/freeradius \
|
||||
--enable-shared \
|
||||
--disable-static \
|
||||
--disable-developer \
|
||||
--with-openssl-includes="$(STAGING_DIR)/usr/include" \
|
||||
--with-openssl-libraries="$(STAGING_DIR)/usr/lib" \
|
||||
--with-system-libtool \
|
||||
--disable-ltdl-install \
|
||||
--enable-strict-dependencies \
|
||||
--with-raddbdir=/etc/freeradius \
|
||||
--without-edir \
|
||||
--without-snmp \
|
||||
--with-experimental-modules \
|
||||
--without-rlm_checkval \
|
||||
--without-rlm_counter \
|
||||
--without-rlm_dbm \
|
||||
--with-rlm_eap \
|
||||
--without-rlm_eap_sim \
|
||||
--without-rlm_example \
|
||||
--without-rlm_ippool \
|
||||
--without-rlm_krb5 \
|
||||
--without-rlm_otp \
|
||||
--without-rlm_pam \
|
||||
--without-rlm_perl \
|
||||
--without-rlm_python \
|
||||
--without-rlm_smb \
|
||||
--with-rlm_sql \
|
||||
--with-rlm_sqlcounter \
|
||||
--without-rlm_sqlhpwippool \
|
||||
--without-rlm_sqlippool \
|
||||
--without-rlm_sql_db2 \
|
||||
--without-rlm_sql_firebird \
|
||||
--without-rlm_sql_freetds \
|
||||
--without-rlm_sql_iodbc \
|
||||
--without-rlm_sql_oracle \
|
||||
--without-rlm_sql_sybase \
|
||||
--without-rlm_sql_unixodbc \
|
||||
--without-rlm_sql_log \
|
||||
--without-rlm_unix \
|
||||
|
||||
PKG_DICTIONARIES:= \
|
||||
freeradius freeradius.internal \
|
||||
rfc2865 rfc2866 rfc2867 rfc2868 rfc2869 rfc3162 rfc3576 rfc3580 \
|
||||
rfc4372 rfc4675 rfc4679 \
|
||||
microsoft \
|
||||
wispr \
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius-mod-ldap),)
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-rlm_ldap-include-dir="$(STAGING_DIR)/usr/include" \
|
||||
--with-rlm_ldap-lib-dir="$(STAGING_DIR)/usr/lib"
|
||||
CONFIGURE_LIBS+= -lcrypto -lssl
|
||||
else
|
||||
CONFIGURE_ARGS+= --without-rlm_ldap
|
||||
endif
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius-mod-sql-mysql),)
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-mysql-include-dir="$(STAGING_DIR)/usr/include" \
|
||||
--with-mysql-lib-dir="$(STAGING_DIR)/usr/lib/mysql" \
|
||||
--without-threads
|
||||
CONFIGURE_LIBS+= -lz
|
||||
else
|
||||
CONFIGURE_ARGS+= --without-rlm_sql_mysql
|
||||
endif
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius-mod-sql-pgsql),)
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-rlm_sql_postgresql-include-dir="$(STAGING_DIR)/usr/include" \
|
||||
--with-rlm_sql_postgresql-lib-dir="$(STAGING_DIR)/usr/lib"
|
||||
else
|
||||
CONFIGURE_ARGS+= --without-rlm_sql_postgresql
|
||||
endif
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius-mod-eap-peap),)
|
||||
CONFIGURE_ARGS+= --with-rlm_eap_peap
|
||||
CONFIGURE_LIBS+= -lcrypto -lssl
|
||||
else
|
||||
CONFIGURE_ARGS+= --without-rlm_eap_peap
|
||||
endif
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius-mod-eap-tls),)
|
||||
CONFIGURE_ARGS+= --with-rlm_eap_tls
|
||||
CONFIGURE_LIBS+= -lcrypto -lssl
|
||||
else
|
||||
CONFIGURE_ARGS+= --without-rlm_eap_tls
|
||||
endif
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius-mod-eap-ttls),)
|
||||
CONFIGURE_ARGS+= --with-rlm_eap_ttls
|
||||
CONFIGURE_LIBS+= -lcrypto -lssl
|
||||
else
|
||||
CONFIGURE_ARGS+= --without-rlm_eap_ttls
|
||||
endif
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius-mod-attr-rewrite),)
|
||||
CONFIGURE_ARGS+= --with-rlm_attr-rewrite
|
||||
else
|
||||
CONFIGURE_ARGS+= --without-rlm_attr-rewrite
|
||||
endif
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius-mod-radutmp),)
|
||||
CONFIGURE_ARGS+= --with-rlm_radutmp
|
||||
else
|
||||
CONFIGURE_ARGS+= --without-rlm_radutmp
|
||||
endif
|
||||
|
||||
CONFIGURE_VARS+= \
|
||||
LDFLAGS="$$$$LDFLAGS -L$(PKG_INSTALL_DIR)/usr/lib/freeradius" \
|
||||
LIBS="$(CONFIGURE_LIBS)" \
|
||||
MYSQL_CONFIG="no" \
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
R="$(PKG_INSTALL_DIR)" \
|
||||
INSTALLSTRIP="" \
|
||||
all install
|
||||
endef
|
||||
|
||||
define Package/freeradius/install
|
||||
$(INSTALL_DIR) $(1)/etc/freeradius
|
||||
for f in clients.conf dictionary radiusd.conf; do \
|
||||
$(CP) $(PKG_INSTALL_DIR)/etc/freeradius/$$$${f} $(1)/etc/freeradius/ ; \
|
||||
done
|
||||
$(INSTALL_DIR) $(1)/usr/share/freeradius
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/share/freeradius/dictionary $(1)/usr/share/freeradius/
|
||||
$(SED) "s,^\(\$$$$INCLUDE\),#\1,g" $(1)/usr/share/freeradius/dictionary
|
||||
for f in $(PKG_DICTIONARIES); do \
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/share/freeradius/dictionary.$$$${f} $(1)/usr/share/freeradius/ ; \
|
||||
$(SED) "s,^#\(\$$$$INCLUDE dictionary\.$$$${f}\),\1,g" $(1)/usr/share/freeradius/dictionary ; \
|
||||
done
|
||||
$(INSTALL_DIR) $(1)/usr/lib/freeradius
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/freeradius/libradius{,-*}.so $(1)/usr/lib/
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/radiusd $(1)/usr/sbin/
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/radiusd.init $(1)/etc/init.d/radiusd
|
||||
endef
|
||||
|
||||
define Package/freeradius-democerts/install
|
||||
$(INSTALL_DIR) $(1)/etc/freeradius
|
||||
$(CP) $(PKG_INSTALL_DIR)/etc/freeradius/certs $(1)/etc/freeradius/
|
||||
rm -rf $(1)/etc/freeradius/certs/README
|
||||
rm -rf $(1)/etc/freeradius/certs/new*
|
||||
rm -rf $(1)/etc/freeradius/certs/demoCA/index*
|
||||
rm -rf $(1)/etc/freeradius/certs/demoCA/serial*
|
||||
endef
|
||||
|
||||
define Package/freeradius-utils/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
for f in radclient radeapclient; do \
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$$$${f} $(1)/usr/bin/ ; \
|
||||
done
|
||||
endef
|
||||
|
||||
define BuildPlugin
|
||||
define Package/$(1)/install
|
||||
[ -z "$(2)" ] || $(INSTALL_DIR) $$(1)/usr/lib
|
||||
for m in $(2); do \
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/freeradius/$$$$$$$${m}{,-*}.so $$(1)/usr/lib/ ; \
|
||||
done
|
||||
[ -z "$(3)" ] || $(INSTALL_DIR) $$(1)/etc/freeradius
|
||||
for f in $(3); do \
|
||||
$(CP) $(PKG_INSTALL_DIR)/etc/freeradius/$$$$$$$${f} $$(1)/etc/freeradius/ ; \
|
||||
done
|
||||
endef
|
||||
|
||||
$$(eval $$(call BuildPackage,$(1)))
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,freeradius))
|
||||
$(eval $(call BuildPackage,freeradius-democerts))
|
||||
$(eval $(call BuildPlugin,freeradius-mod-chap,rlm_chap,))
|
||||
$(eval $(call BuildPlugin,freeradius-mod-detail,rlm_detail,))
|
||||
$(eval $(call BuildPlugin,freeradius-mod-eap,libeap rlm_eap,eap.conf))
|
||||
$(eval $(call BuildPlugin,freeradius-mod-eap-gtc,rlm_eap_gtc,))
|
||||
$(eval $(call BuildPlugin,freeradius-mod-eap-md5,rlm_eap_md5,))
|
||||
$(eval $(call BuildPlugin,freeradius-mod-eap-mschapv2,rlm_eap_mschapv2,))
|
||||
$(eval $(call BuildPlugin,freeradius-mod-eap-peap,rlm_eap_peap,))
|
||||
$(eval $(call BuildPlugin,freeradius-mod-eap-tls,rlm_eap_tls,))
|
||||
$(eval $(call BuildPlugin,freeradius-mod-eap-ttls,rlm_eap_ttls,))
|
||||
$(eval $(call BuildPlugin,freeradius-mod-exec,rlm_exec,))
|
||||
$(eval $(call BuildPlugin,freeradius-mod-attr-rewrite,rlm_attr_rewrite))
|
||||
$(eval $(call BuildPlugin,freeradius-mod-files,rlm_files,acct_users preproxy_users users))
|
||||
$(eval $(call BuildPlugin,freeradius-mod-ldap,rlm_ldap,ldap.attrmap))
|
||||
$(eval $(call BuildPlugin,freeradius-mod-mschap,rlm_mschap,))
|
||||
$(eval $(call BuildPlugin,freeradius-mod-pap,rlm_pap,))
|
||||
$(eval $(call BuildPlugin,freeradius-mod-preprocess,rlm_preprocess,hints huntgroups))
|
||||
$(eval $(call BuildPlugin,freeradius-mod-realm,rlm_realm,proxy.conf))
|
||||
$(eval $(call BuildPlugin,freeradius-mod-sql,rlm_sql,sql.conf))
|
||||
$(eval $(call BuildPlugin,freeradius-mod-sql-mysql,rlm_sql_mysql,))
|
||||
$(eval $(call BuildPlugin,freeradius-mod-sql-pgsql,rlm_sql_postgresql,))
|
||||
$(eval $(call BuildPlugin,freeradius-mod-sqlcounter,rlm_sqlcounter,))
|
||||
$(eval $(call BuildPlugin,freeradius-mod-radutmp,rlm_radutmp,))
|
||||
$(eval $(call BuildPackage,freeradius-utils))
|
@ -1,19 +0,0 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2006 OpenWrt.org
|
||||
START=50
|
||||
|
||||
DEFAULT=/etc/default/radiusd
|
||||
LOG_D=/var/log/radius
|
||||
RUN_D=/var/run
|
||||
PID_F=$RUN_D/radiusd.pid
|
||||
|
||||
start() {
|
||||
[ -f $DEFAULT ] && . $DEFAULT
|
||||
mkdir -p $LOG_D
|
||||
mkdir -p $RUN_D
|
||||
radiusd $OPTIONS
|
||||
}
|
||||
|
||||
stop() {
|
||||
[ -f $PID_F ] && kill $(cat $PID_F)
|
||||
}
|
@ -1,633 +0,0 @@
|
||||
--- /dev/null
|
||||
+++ b/acinclude.m4
|
||||
@@ -0,0 +1,626 @@
|
||||
+# aclocal.m4
|
||||
+# This line will prevent autoreconf from running aclocal again.
|
||||
+# generated automatically by aclocal 1.9.5 -*- Autoconf -*-
|
||||
+
|
||||
+dnl See whether we need a declaration for a function.
|
||||
+dnl RADIUSD_NEED_DECLARATION(FUNCTION [, EXTRA-HEADER-FILES])
|
||||
+AC_DEFUN(RADIUSD_NEED_DECLARATION,
|
||||
+[AC_MSG_CHECKING([whether $1 must be declared])
|
||||
+AC_CACHE_VAL(radius_cv_decl_needed_$1,
|
||||
+[AC_TRY_COMPILE([
|
||||
+#include <stdio.h>
|
||||
+#include <string.h>
|
||||
+#ifdef HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
+#ifdef HAVE_CRYPT_H
|
||||
+#include <crypt.h>
|
||||
+#endif
|
||||
+#ifdef HAVE_ERRNO_H
|
||||
+#include <errno.h>
|
||||
+#endif
|
||||
+#ifdef HAVE_RESOURCE_H
|
||||
+#include <resource.h>
|
||||
+#endif
|
||||
+#ifdef HAVE_GETOPT_H
|
||||
+#include <getopt.h>
|
||||
+#endif
|
||||
+#ifdef HAVE_MALLOC_H
|
||||
+#include <malloc.h>
|
||||
+#endif
|
||||
+#ifdef HAVE_UTMP_H
|
||||
+#include <utmp.h>
|
||||
+#endif
|
||||
+#ifdef HAVE_UTMPX_H
|
||||
+#include <utmpx.h>
|
||||
+#endif
|
||||
+#ifdef HAVE_SYS_SELECT_H
|
||||
+#include <sys/select.h>
|
||||
+#endif
|
||||
+#ifdef HAVE_DLFCN_H
|
||||
+#include <dlfcn.h>
|
||||
+#endif
|
||||
+#ifdef HAVE_REGEX_H
|
||||
+#include <regex.h>
|
||||
+#endif
|
||||
+#ifdef HAVE_SYSLOG_H
|
||||
+#include <syslog.h>
|
||||
+#endif
|
||||
+#ifdef HAVE_INTTYPES_H
|
||||
+#include <inttypes.h>
|
||||
+#endif
|
||||
+#ifdef HAVE_STDINT_H
|
||||
+#include <stdint.h>
|
||||
+#endif
|
||||
+#ifdef HAVE_ARPA_INET_H
|
||||
+#include <arpa/inet.h>
|
||||
+#endif
|
||||
+$2],
|
||||
+[char *(*pfn) = (char *(*)) $1],
|
||||
+eval "radius_cv_decl_needed_$1=no", eval "radius_cv_decl_needed_$1=yes")])
|
||||
+if eval "test \"`echo '$radius_cv_decl_needed_'$1`\" = yes"; then
|
||||
+ AC_MSG_RESULT(yes)
|
||||
+ radius_tr_decl=NEED_DECLARATION_`echo $1 | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
||||
+ AC_DEFINE_UNQUOTED($radius_tr_decl)
|
||||
+else
|
||||
+ AC_MSG_RESULT(no)
|
||||
+fi
|
||||
+])dnl
|
||||
+
|
||||
+dnl Check multiple functions to see whether each needs a declaration.
|
||||
+dnl RADIUSD_NEED_DECLARATIONS(FUNCTION... [, EXTRA-HEADER-FILES])
|
||||
+AC_DEFUN(RADIUSD_NEED_DECLARATIONS,
|
||||
+[for ac_func in $1
|
||||
+do
|
||||
+RADIUSD_NEED_DECLARATION($ac_func, $2)
|
||||
+done
|
||||
+])
|
||||
+
|
||||
+dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
|
||||
+dnl The program must properly implement --version.
|
||||
+AC_DEFUN(AM_MISSING_PROG,
|
||||
+[AC_MSG_CHECKING(for working $2)
|
||||
+# Run test in a subshell; some versions of sh will print an error if
|
||||
+# an executable is not found, even if stderr is redirected.
|
||||
+# Redirect stdin to placate older versions of autoconf. Sigh.
|
||||
+if ($2 --version) < /dev/null > /dev/null 2>&1; then
|
||||
+ $1=$2
|
||||
+ AC_MSG_RESULT(found)
|
||||
+else
|
||||
+ $1="$3/missing $2"
|
||||
+ AC_MSG_RESULT(missing)
|
||||
+fi
|
||||
+AC_SUBST($1)])
|
||||
+
|
||||
+
|
||||
+dnl Checks to see if this is SUNPro we're building with
|
||||
+dnl Usage:
|
||||
+dnl AC_PROG_CC_SUNPRO
|
||||
+AC_DEFUN(AC_PROG_CC_SUNPRO,
|
||||
+[AC_CACHE_CHECK(whether we are using SUNPro C, ac_cv_prog_suncc,
|
||||
+[dnl The semicolon is to pacify NeXT's syntax-checking cpp.
|
||||
+cat > conftest.c <<EOF
|
||||
+#ifdef __SUNPRO_C
|
||||
+ yes;
|
||||
+#endif
|
||||
+EOF
|
||||
+if AC_TRY_COMMAND(${CC-cc} -E conftest.c) | egrep yes >/dev/null 2>&1; then
|
||||
+ ac_cv_prog_suncc=yes
|
||||
+else
|
||||
+ ac_cv_prog_suncc=no
|
||||
+fi])])
|
||||
+
|
||||
+dnl #
|
||||
+dnl # AC_CHECK_TYPE_INCLUDE([#includes ...], type, default-C-types)
|
||||
+dnl #
|
||||
+dnl # This function is like AC_CHECK_TYPE, but you can give this one
|
||||
+dnl # a list of include files to check.
|
||||
+dnl #
|
||||
+AC_DEFUN(AC_CHECK_TYPE_INCLUDE,
|
||||
+[
|
||||
+ AC_CACHE_CHECK(for $2, ac_cv_type_$2,
|
||||
+ [ ac_cv_type_$2=no
|
||||
+ AC_TRY_COMPILE($1,
|
||||
+ [$2 foo],
|
||||
+ ac_cv_type_$2=yes,
|
||||
+ )
|
||||
+ ]
|
||||
+ )
|
||||
+
|
||||
+ if test "$ac_cv_type_$2" != "yes"; then
|
||||
+ AC_DEFINE($2, $3)
|
||||
+ fi
|
||||
+])
|
||||
+
|
||||
+dnl #######################################################################
|
||||
+dnl #
|
||||
+dnl # Look for SNMP in a variety of places.
|
||||
+dnl #
|
||||
+AC_DEFUN(SNMP_CHECKS, [
|
||||
+ AC_SUBST(SNMP_LIBS)
|
||||
+ AC_SUBST(SNMP_INCLUDE)
|
||||
+
|
||||
+AC_MSG_CHECKING([for asn1.h,snmp.h,snmp_impl.h])
|
||||
+
|
||||
+dnl #
|
||||
+dnl # First, see if we can build it WITHOUT using any special includes and in ucd-snmp
|
||||
+dnl #
|
||||
+AC_TRY_COMPILE([
|
||||
+#ifdef HAVE_SYS_TYPES_H
|
||||
+#include <sys/types.h>
|
||||
+#endif
|
||||
+#ifdef HAVE_STDINT_H
|
||||
+#include <stdint.h>
|
||||
+#endif
|
||||
+#ifdef HAVE_STDIO_H
|
||||
+#include <stdio.h>
|
||||
+#endif
|
||||
+#ifdef HAVE_NETDB_H
|
||||
+#include <netdb.h>
|
||||
+#endif
|
||||
+#ifdef HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
+#include <ucd-snmp/ucd-snmp-config.h>
|
||||
+#include <ucd-snmp/asn1.h>
|
||||
+#include <ucd-snmp/snmp.h>
|
||||
+#include <ucd-snmp/snmp_impl.h>],
|
||||
+ [ int a = 1;],
|
||||
+ SNMP_INCLUDE="";ucdsnmp=yes,
|
||||
+ ucdsnmp=)
|
||||
+
|
||||
+dnl #
|
||||
+dnl # If not, look for it in a number of directories and in ucd-snmp.
|
||||
+dnl #
|
||||
+if test "x$ucdsnmp" = "x"; then
|
||||
+ old_CFLAGS="$CFLAGS"
|
||||
+ for try in /usr/include /usr/local/include $with_snmp_include_dir; do
|
||||
+ CFLAGS="$old_CFLAGS -I$try"
|
||||
+ AC_TRY_COMPILE([
|
||||
+#ifdef HAVE_SYS_TYPES_H
|
||||
+#include <sys/types.h>
|
||||
+#endif
|
||||
+#ifdef HAVE_STDINT_H
|
||||
+#include <stdint.h>
|
||||
+#endif
|
||||
+#ifdef HAVE_STDIO_H
|
||||
+#include <stdio.h>
|
||||
+#endif
|
||||
+#ifdef HAVE_NETDB_H
|
||||
+#include <netdb.h>
|
||||
+#endif
|
||||
+#ifdef HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
+#include <ucd-snmp/ucd-snmp-config.h>
|
||||
+#include <ucd-snmp/asn1.h>
|
||||
+#include <ucd-snmp/snmp.h>
|
||||
+#include <ucd-snmp/snmp_impl.h>],
|
||||
+ [ int a = 1;],
|
||||
+ SNMP_INCLUDE="-I$try";ucdsnmp=yes,
|
||||
+ ucdsnmp=)
|
||||
+ if test "x$ucdsnmp" != "x"; then
|
||||
+ break;
|
||||
+ fi
|
||||
+ done
|
||||
+ CFLAGS="$old_CFLAGS"
|
||||
+fi
|
||||
+
|
||||
+if test "x$ucdsnmp" = "x"; then
|
||||
+ old_CFLAGS="$CFLAGS"
|
||||
+ for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
|
||||
+ CFLAGS="$old_CFLAGS -I$try"
|
||||
+dnl #
|
||||
+dnl # First, see if we can build it WITHOUT using any special includes and without ucd-snmp
|
||||
+dnl #
|
||||
+AC_TRY_COMPILE([
|
||||
+#ifdef HAVE_SYS_TYPES_H
|
||||
+#include <sys/types.h>
|
||||
+#endif
|
||||
+#ifdef HAVE_STDINT_H
|
||||
+#include <stdint.h>
|
||||
+#endif
|
||||
+#ifdef HAVE_STDIO_H
|
||||
+#include <stdio.h>
|
||||
+#endif
|
||||
+#ifdef HAVE_NETDB_H
|
||||
+#include <netdb.h>
|
||||
+#endif
|
||||
+#ifdef HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
+#include <asn1.h>
|
||||
+#include <snmp.h>
|
||||
+#include <snmp_impl.h>],
|
||||
+ [ int a = 1;],
|
||||
+ SNMP_INCLUDE="";ucdsnmp=no,
|
||||
+ ucdsnmp=)
|
||||
+ if test "x$ucdsnmp" != "x"; then
|
||||
+ break;
|
||||
+ fi
|
||||
+ done
|
||||
+ CFLAGS="$old_CFLAGS"
|
||||
+fi
|
||||
+
|
||||
+dnl #
|
||||
+dnl # If not, look for it in a number of directories and without ucd-snmp
|
||||
+dnl #
|
||||
+if test "x$ucdsnmp" = "x"; then
|
||||
+ old_CFLAGS="$CFLAGS"
|
||||
+ for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
|
||||
+ CFLAGS="$old_CFLAGS -I$try"
|
||||
+ AC_TRY_COMPILE([
|
||||
+#ifdef HAVE_SYS_TYPES_H
|
||||
+#include <sys/types.h>
|
||||
+#endif
|
||||
+#ifdef HAVE_STDINT_H
|
||||
+#include <stdint.h>
|
||||
+#endif
|
||||
+#ifdef HAVE_STDIO_H
|
||||
+#include <stdio.h>
|
||||
+#endif
|
||||
+#ifdef HAVE_NETDB_H
|
||||
+#include <netdb.h>
|
||||
+#endif
|
||||
+#ifdef HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
+#include <asn1.h>
|
||||
+#include <snmp.h>
|
||||
+#include <snmp_impl.h>],
|
||||
+ [ int a = 1;],
|
||||
+ SNMP_INCLUDE="-I$try";ucdsnmp=no,
|
||||
+ ucdsnmp=)
|
||||
+ if test "x$ucdsnmp" != "x"; then
|
||||
+ break;
|
||||
+ fi
|
||||
+ done
|
||||
+ CFLAGS="$old_CFLAGS"
|
||||
+fi
|
||||
+
|
||||
+if test "x$ucdsnmp" = "x"; then
|
||||
+ AC_MSG_RESULT(no)
|
||||
+else
|
||||
+ if test "x$ucdsnmp" = "xyes"; then
|
||||
+ AC_MSG_RESULT((ucd-snmp)yes)
|
||||
+ AC_DEFINE(HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H)
|
||||
+ else
|
||||
+ AC_MSG_RESULT(yes)
|
||||
+ AC_DEFINE(HAVE_ASN1_SNMP_SNMPIMPL_H)
|
||||
+ fi
|
||||
+dnl #
|
||||
+dnl # Now do the same thing, looking for the SNMP library directory
|
||||
+dnl #
|
||||
+ AC_MSG_CHECKING([for snmp_build_var_op in -lsnmp])
|
||||
+
|
||||
+dnl #
|
||||
+dnl # First, see if we can build it WITHOUT using any special includes
|
||||
+dnl #
|
||||
+ old_LIBS="$LIBS"
|
||||
+ LIBS="$old_LIBS -lsnmp"
|
||||
+ AC_TRY_LINK([extern char snmp_build_var_op();],
|
||||
+ [ snmp_build_var_op()],
|
||||
+ SNMP_LIBS="-lsnmp",
|
||||
+ SNMP_LIBS=)
|
||||
+
|
||||
+ if test "x$SNMP_LIBS" = "x"; then
|
||||
+ for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
|
||||
+ LIBS="$old_LIBS -L$try -lsnmp"
|
||||
+ AC_TRY_LINK([extern char snmp_build_var_op();],
|
||||
+ [ snmp_build_var_op()],
|
||||
+ SNMP_LIBS="-L$try -lsnmp",
|
||||
+ SNMP_LIBS=)
|
||||
+ if test "x$SNMP_LIBS" != "x"; then
|
||||
+ break;
|
||||
+ fi
|
||||
+dnl #
|
||||
+dnl # That didn't work. Try adding the '-lcrypto' line.
|
||||
+dnl # Some SNMP libraries are linked against SSL...
|
||||
+dnl #
|
||||
+ LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
|
||||
+ AC_TRY_LINK([extern char snmp_build_var_op();],
|
||||
+ [ snmp_build_var_op()],
|
||||
+ SNMP_LIBS="-L$try -lsnmp -lcrypto",
|
||||
+ SNMP_LIBS=)
|
||||
+ if test "x$SNMP_LIBS" != "x"; then
|
||||
+ break;
|
||||
+ fi
|
||||
+dnl #
|
||||
+dnl # That didn't work. Try adding the '-lkstat' line.
|
||||
+dnl # Some SNMP libraries are linked against Kernel Statistics,
|
||||
+dnl # in particular, Solaris 9...
|
||||
+dnl #
|
||||
+ LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
|
||||
+ AC_TRY_LINK([extern char snmp_build_var_op();],
|
||||
+ [ snmp_build_var_op()],
|
||||
+ SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat",
|
||||
+ SNMP_LIBS=)
|
||||
+ if test "x$SNMP_LIBS" != "x"; then
|
||||
+ break;
|
||||
+ fi
|
||||
+ done
|
||||
+ fi
|
||||
+ LIBS="$old_LIBS"
|
||||
+
|
||||
+ dnl #
|
||||
+ dnl # If one or the other isn't found, disable them both..
|
||||
+ dnl # If both are found, enable them both.
|
||||
+ dnl #
|
||||
+ CFLAGS="$old_CFLAGS"
|
||||
+ if test "x$SNMP_LIBS" = "x"; then
|
||||
+ AC_MSG_RESULT(no)
|
||||
+ SNMP_INCLUDE=
|
||||
+ else
|
||||
+ AC_MSG_RESULT(yes)
|
||||
+ AC_DEFINE(WITH_SNMP)
|
||||
+ AC_DEFINE(HAVE_LIBSNMP)
|
||||
+ fi
|
||||
+fi
|
||||
+])
|
||||
+
|
||||
+
|
||||
+dnl #
|
||||
+dnl # Locate the directory in which a particular file is found.
|
||||
+dnl #
|
||||
+dnl # Usage: AC_LOCATE_DIR(MYSQLLIB_DIR, libmysqlclient.a)
|
||||
+dnl #
|
||||
+dnl # Defines the variable MYSQLLIB_DIR to be the directory(s) in
|
||||
+dnl # which the file libmysqlclient.a is to be found.
|
||||
+dnl #
|
||||
+dnl #
|
||||
+AC_DEFUN(AC_LOCATE_DIR,
|
||||
+[
|
||||
+dnl # If we have the program 'locate', then the problem of finding a
|
||||
+dnl # particular file becomes MUCH easier.
|
||||
+dnl #
|
||||
+
|
||||
+dnl #
|
||||
+dnl # No 'locate' defined, do NOT do anything.
|
||||
+dnl #
|
||||
+if test "x$LOCATE" != "x"; then
|
||||
+ dnl #
|
||||
+ dnl # Root through a series of directories, looking for the given file.
|
||||
+ dnl #
|
||||
+ DIRS=
|
||||
+ file=$2
|
||||
+
|
||||
+ for x in `${LOCATE} $file 2>/dev/null`; do
|
||||
+ dnl #
|
||||
+ dnl # When asked for 'foo', locate will also find 'foo_bar', which we
|
||||
+ dnl # don't want. We want that EXACT filename.
|
||||
+ dnl #
|
||||
+ dnl # We ALSO want to be able to look for files like 'mysql/mysql.h',
|
||||
+ dnl # and properly match them, too. So we try to strip off the last
|
||||
+ dnl # part of the filename, using the name of the file we're looking
|
||||
+ dnl # for. If we CANNOT strip it off, then the name will be unchanged.
|
||||
+ dnl #
|
||||
+ base=`echo $x | sed "s%/${file}%%"`
|
||||
+ if test "x$x" = "x$base"; then
|
||||
+ continue;
|
||||
+ fi
|
||||
+
|
||||
+ dir=`${DIRNAME} $x 2>/dev/null`
|
||||
+ dnl #
|
||||
+ dnl # Exclude a number of directories.
|
||||
+ dnl #
|
||||
+ exclude=`echo ${dir} | ${GREP} /home`
|
||||
+ if test "x$exclude" != "x"; then
|
||||
+ continue
|
||||
+ fi
|
||||
+
|
||||
+ dnl #
|
||||
+ dnl # OK, we have an exact match. Let's be sure that we only find ONE
|
||||
+ dnl # matching directory.
|
||||
+ dnl #
|
||||
+ already=`echo \$$1 ${DIRS} | ${GREP} ${dir}`
|
||||
+ if test "x$already" = "x"; then
|
||||
+ DIRS="$DIRS $dir"
|
||||
+ fi
|
||||
+ done
|
||||
+fi
|
||||
+
|
||||
+dnl #
|
||||
+dnl # And remember the directory in which we found the file.
|
||||
+dnl #
|
||||
+eval "$1=\"\$$1 $DIRS\""
|
||||
+])
|
||||
+
|
||||
+
|
||||
+dnl #######################################################################
|
||||
+dnl #
|
||||
+dnl # Look for a library in a number of places.
|
||||
+dnl #
|
||||
+dnl # AC_SMART_CHECK_LIB(library, function)
|
||||
+dnl #
|
||||
+AC_DEFUN(AC_SMART_CHECK_LIB, [
|
||||
+
|
||||
+sm_lib_safe=`echo "$1" | sed 'y%./+-%__p_%'`
|
||||
+sm_func_safe=`echo "$2" | sed 'y%./+-%__p_%'`
|
||||
+AC_MSG_CHECKING([for $2 in -l$1])
|
||||
+
|
||||
+old_LIBS="$LIBS"
|
||||
+smart_lib=
|
||||
+smart_lib_dir=
|
||||
+
|
||||
+dnl #
|
||||
+dnl # Try first any user-specified directory, otherwise we may pick up
|
||||
+dnl # the wrong version.
|
||||
+dnl #
|
||||
+if test "x$smart_try_dir" != "x"; then
|
||||
+ for try in $smart_try_dir; do
|
||||
+ LIBS="-L$try -l$1 $old_LIBS"
|
||||
+ AC_TRY_LINK([extern char $2();],
|
||||
+ [ $2()],
|
||||
+ smart_lib="-L$try -l$1")
|
||||
+ if test "x$smart_lib" != "x"; then
|
||||
+ break;
|
||||
+ fi
|
||||
+ done
|
||||
+ LIBS="$old_LIBS"
|
||||
+fi
|
||||
+
|
||||
+dnl #
|
||||
+dnl # Try using the default library path.
|
||||
+dnl #
|
||||
+if test "x$smart_lib" = "x"; then
|
||||
+ LIBS="-l$1 $old_LIBS"
|
||||
+ AC_TRY_LINK([extern char $2();],
|
||||
+ [ $2()],
|
||||
+ smart_lib="-l$1")
|
||||
+ LIBS="$old_LIBS"
|
||||
+fi
|
||||
+
|
||||
+dnl #
|
||||
+dnl # Try to guess possible locations.
|
||||
+dnl #
|
||||
+if test "x$smart_lib" = "x"; then
|
||||
+ AC_LOCATE_DIR(smart_lib_dir,[lib$1${libltdl_cv_shlibext}])
|
||||
+ AC_LOCATE_DIR(smart_lib_dir,[lib$1.a])
|
||||
+
|
||||
+ for try in $smart_lib_dir /usr/local/lib /opt/lib; do
|
||||
+ LIBS="-L$try -l$1 $old_LIBS"
|
||||
+ AC_TRY_LINK([extern char $2();],
|
||||
+ [ $2()],
|
||||
+ smart_lib="-L$try -l$1")
|
||||
+ if test "x$smart_lib" != "x"; then
|
||||
+ break;
|
||||
+ fi
|
||||
+ done
|
||||
+ LIBS="$old_LIBS"
|
||||
+fi
|
||||
+
|
||||
+dnl #
|
||||
+dnl # Found it, set the appropriate variable.
|
||||
+dnl #
|
||||
+if test "x$smart_lib" != "x"; then
|
||||
+ AC_MSG_RESULT(yes)
|
||||
+ eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
|
||||
+ LIBS="$smart_lib $old_LIBS"
|
||||
+ SMART_LIBS="$smart_lib $SMART_LIBS"
|
||||
+else
|
||||
+ AC_MSG_RESULT(no)
|
||||
+fi
|
||||
+])
|
||||
+
|
||||
+dnl #######################################################################
|
||||
+dnl #
|
||||
+dnl # Look for a header file in a number of places.
|
||||
+dnl #
|
||||
+dnl # AC_SMART_CHECK_INCLUDE(foo.h, [ #include <other.h> ])
|
||||
+dnl #
|
||||
+AC_DEFUN(AC_SMART_CHECK_INCLUDE, [
|
||||
+
|
||||
+ac_safe=`echo "$1" | sed 'y%./+-%__pm%'`
|
||||
+AC_MSG_CHECKING([for $1])
|
||||
+
|
||||
+old_CFLAGS="$CFLAGS"
|
||||
+smart_include=
|
||||
+smart_include_dir=
|
||||
+
|
||||
+dnl #
|
||||
+dnl # Try first any user-specified directory, otherwise we may pick up
|
||||
+dnl # the wrong version.
|
||||
+dnl #
|
||||
+if test "x$smart_try_dir" != "x"; then
|
||||
+ for try in $smart_try_dir; do
|
||||
+ CFLAGS="$old_CFLAGS -I$try"
|
||||
+ AC_TRY_COMPILE([$2
|
||||
+ #include <$1>],
|
||||
+ [ int a = 1;],
|
||||
+ smart_include="-I$try",
|
||||
+ smart_include=)
|
||||
+ if test "x$smart_include" != "x"; then
|
||||
+ break;
|
||||
+ fi
|
||||
+ done
|
||||
+ CFLAGS="$old_CFLAGS"
|
||||
+fi
|
||||
+
|
||||
+dnl #
|
||||
+dnl # Try using the default includes
|
||||
+dnl #
|
||||
+if test "x$smart_include" = "x"; then
|
||||
+ AC_TRY_COMPILE([$2
|
||||
+ #include <$1>],
|
||||
+ [ int a = 1;],
|
||||
+ smart_include=" ",
|
||||
+ smart_include=)
|
||||
+fi
|
||||
+
|
||||
+dnl #
|
||||
+dnl # Try to guess possible locations.
|
||||
+dnl #
|
||||
+if test "x$smart_include" = "x"; then
|
||||
+ AC_LOCATE_DIR(smart_include_dir,$1)
|
||||
+
|
||||
+ for try in $smart_include_dir /usr/local/include /opt/include; do
|
||||
+ CFLAGS="$old_CFLAGS -I$try"
|
||||
+ AC_TRY_COMPILE([$2
|
||||
+ #include <$1>],
|
||||
+ [ int a = 1;],
|
||||
+ smart_include="-I$try",
|
||||
+ smart_include=)
|
||||
+ if test "x$smart_include" != "x"; then
|
||||
+ break;
|
||||
+ fi
|
||||
+ done
|
||||
+ CFLAGS="$old_CFLAGS"
|
||||
+fi
|
||||
+
|
||||
+dnl #
|
||||
+dnl # Found it, set the appropriate variable.
|
||||
+dnl #
|
||||
+if test "x$smart_include" != "x"; then
|
||||
+ AC_MSG_RESULT(yes)
|
||||
+ eval "ac_cv_header_$ac_safe=yes"
|
||||
+ CFLAGS="$old_CFLAGS $smart_include"
|
||||
+ SMART_CFLAGS="$SMART_CFLAGS $smart_include"
|
||||
+else
|
||||
+ AC_MSG_RESULT(no)
|
||||
+fi
|
||||
+])
|
||||
+
|
||||
+dnl #######################################################################
|
||||
+dnl #
|
||||
+dnl # Look for a header file in a number of places.
|
||||
+dnl #
|
||||
+dnl # Usage: AC_CHECK_STRUCT_HAS_MEMBER([#include <foo.h>], [struct foo], member)
|
||||
+dnl # If the member is defined, then the variable
|
||||
+dnl # ac_cv_type_struct_foo_has_member is set to 'yes'
|
||||
+dnl #
|
||||
+AC_DEFUN(AC_CHECK_STRUCT_HAS_MEMBER, [
|
||||
+ AC_MSG_CHECKING([for $3 in $2])
|
||||
+
|
||||
+dnl BASED on 'offsetof':
|
||||
+dnl #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
|
||||
+dnl
|
||||
+
|
||||
+ AC_TRY_COMPILE([
|
||||
+$1
|
||||
+#ifndef offsetof
|
||||
+#define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
|
||||
+#endif
|
||||
+],
|
||||
+ [ int foo = offsetof($2, $3) ],
|
||||
+ has_element=" ",
|
||||
+ has_element=)
|
||||
+
|
||||
+ ac_safe_type=`echo "$2" | sed 'y% %_%'`
|
||||
+ if test "x$has_element" != "x"; then
|
||||
+ AC_MSG_RESULT(yes)
|
||||
+ eval "ac_cv_type_${ac_safe_type}_has_$3=yes"
|
||||
+ else
|
||||
+ AC_MSG_RESULT(no)
|
||||
+ eval "ac_cv_type_${ac_safe_type}_has_$3="
|
||||
+ fi
|
||||
+])
|
||||
+
|
||||
+dnl Autoconf 2.61 breaks the support for chained configure scripts
|
||||
+dnl in combination with config.cache
|
||||
+m4_pushdef([AC_OUTPUT],
|
||||
+[
|
||||
+ unset ac_cv_env_LIBS_set
|
||||
+ unset ac_cv_env_LIBS_value
|
||||
+ m4_popdef([AC_OUTPUT])
|
||||
+ AC_OUTPUT([$1],[$2],[$3])
|
||||
+])
|
||||
--- /dev/null
|
||||
+++ b/Makefile.am
|
||||
@@ -0,0 +1 @@
|
||||
+SUBDIRS = libltdl src raddb scripts doc
|
@ -1,300 +0,0 @@
|
||||
--- a/raddb/eap.conf
|
||||
+++ b/raddb/eap.conf
|
||||
@@ -73,8 +73,8 @@
|
||||
# User-Password, or the NT-Password attributes.
|
||||
# 'System' authentication is impossible with LEAP.
|
||||
#
|
||||
- leap {
|
||||
- }
|
||||
+# leap {
|
||||
+# }
|
||||
|
||||
# Generic Token Card.
|
||||
#
|
||||
@@ -87,7 +87,7 @@
|
||||
# the users password will go over the wire in plain-text,
|
||||
# for anyone to see.
|
||||
#
|
||||
- gtc {
|
||||
+# gtc {
|
||||
# The default challenge, which many clients
|
||||
# ignore..
|
||||
#challenge = "Password: "
|
||||
@@ -104,8 +104,8 @@
|
||||
# configured for the request, and do the
|
||||
# authentication itself.
|
||||
#
|
||||
- auth_type = PAP
|
||||
- }
|
||||
+# auth_type = PAP
|
||||
+# }
|
||||
|
||||
## EAP-TLS
|
||||
#
|
||||
@@ -336,7 +336,7 @@
|
||||
# of MS-CHAPv2 in EAP by Cisco, which FreeRADIUS does not
|
||||
# currently support.
|
||||
#
|
||||
- mschapv2 {
|
||||
- }
|
||||
+# mschapv2 {
|
||||
+# }
|
||||
}
|
||||
|
||||
--- a/raddb/radiusd.conf.in
|
||||
+++ b/raddb/radiusd.conf.in
|
||||
@@ -31,13 +31,13 @@ radacctdir = @radacctdir@
|
||||
|
||||
# Location of config and logfiles.
|
||||
confdir = ${raddbdir}
|
||||
-run_dir = ${localstatedir}/run/radiusd
|
||||
+run_dir = ${localstatedir}/run
|
||||
|
||||
#
|
||||
# The logging messages for the server are appended to the
|
||||
# tail of this file.
|
||||
#
|
||||
-log_file = ${logdir}/radius.log
|
||||
+log_file = ${logdir}/radiusd.log
|
||||
|
||||
#
|
||||
# libdir: Where to find the rlm_* modules.
|
||||
@@ -353,7 +353,7 @@ nospace_user = no
|
||||
nospace_pass = no
|
||||
|
||||
# The program to execute to do concurrency checks.
|
||||
-checkrad = ${sbindir}/checkrad
|
||||
+#checkrad = ${sbindir}/checkrad
|
||||
|
||||
# SECURITY CONFIGURATION
|
||||
#
|
||||
@@ -425,8 +425,8 @@ security {
|
||||
#
|
||||
# allowed values: {no, yes}
|
||||
#
|
||||
-proxy_requests = yes
|
||||
-$INCLUDE ${confdir}/proxy.conf
|
||||
+proxy_requests = no
|
||||
+#$INCLUDE ${confdir}/proxy.conf
|
||||
|
||||
|
||||
# CLIENTS CONFIGURATION
|
||||
@@ -454,7 +454,7 @@ $INCLUDE ${confdir}/clients.conf
|
||||
# 'snmp' attribute to 'yes'
|
||||
#
|
||||
snmp = no
|
||||
-$INCLUDE ${confdir}/snmp.conf
|
||||
+#$INCLUDE ${confdir}/snmp.conf
|
||||
|
||||
|
||||
# THREAD POOL CONFIGURATION
|
||||
@@ -665,7 +665,7 @@ modules {
|
||||
# For all EAP related authentications.
|
||||
# Now in another file, because it is very large.
|
||||
#
|
||||
-$INCLUDE ${confdir}/eap.conf
|
||||
+#$INCLUDE ${confdir}/eap.conf
|
||||
|
||||
# Microsoft CHAP authentication
|
||||
#
|
||||
@@ -1066,8 +1066,8 @@ $INCLUDE ${confdir}/eap.conf
|
||||
#
|
||||
files {
|
||||
usersfile = ${confdir}/users
|
||||
- acctusersfile = ${confdir}/acct_users
|
||||
- preproxy_usersfile = ${confdir}/preproxy_users
|
||||
+# acctusersfile = ${confdir}/acct_users
|
||||
+# preproxy_usersfile = ${confdir}/preproxy_users
|
||||
|
||||
# If you want to use the old Cistron 'users' file
|
||||
# with FreeRADIUS, you should change the next line
|
||||
@@ -1253,7 +1253,7 @@ $INCLUDE ${confdir}/eap.conf
|
||||
# For MS-SQL, use: ${confdir}/mssql.conf
|
||||
# For Oracle, use: ${confdir}/oraclesql.conf
|
||||
#
|
||||
- $INCLUDE ${confdir}/sql.conf
|
||||
+# $INCLUDE ${confdir}/sql.conf
|
||||
|
||||
|
||||
# For Cisco VoIP specific accounting with Postgresql,
|
||||
@@ -1756,7 +1756,7 @@ instantiate {
|
||||
# The entire command line (and output) must fit into 253 bytes.
|
||||
#
|
||||
# e.g. Framed-Pool = `%{exec:/bin/echo foo}`
|
||||
- exec
|
||||
+# exec
|
||||
|
||||
#
|
||||
# The expression module doesn't do authorization,
|
||||
@@ -1769,7 +1769,7 @@ instantiate {
|
||||
# listed in any other section. See 'doc/rlm_expr' for
|
||||
# more information.
|
||||
#
|
||||
- expr
|
||||
+# expr
|
||||
|
||||
#
|
||||
# We add the counter module here so that it registers
|
||||
@@ -1796,7 +1796,7 @@ authorize {
|
||||
# 'raddb/huntgroups' files.
|
||||
#
|
||||
# It also adds the %{Client-IP-Address} attribute to the request.
|
||||
- preprocess
|
||||
+# preprocess
|
||||
|
||||
#
|
||||
# If you want to have a log of authentication requests,
|
||||
@@ -1809,7 +1809,7 @@ authorize {
|
||||
#
|
||||
# The chap module will set 'Auth-Type := CHAP' if we are
|
||||
# handling a CHAP request and Auth-Type has not already been set
|
||||
- chap
|
||||
+# chap
|
||||
|
||||
#
|
||||
# If the users are logging in with an MS-CHAP-Challenge
|
||||
@@ -1837,7 +1837,7 @@ authorize {
|
||||
# Otherwise, when the first style of realm doesn't match,
|
||||
# the other styles won't be checked.
|
||||
#
|
||||
- suffix
|
||||
+# suffix
|
||||
# ntdomain
|
||||
|
||||
#
|
||||
@@ -1846,11 +1846,11 @@ authorize {
|
||||
#
|
||||
# It also sets the EAP-Type attribute in the request
|
||||
# attribute list to the EAP type from the packet.
|
||||
- eap
|
||||
+# eap
|
||||
|
||||
#
|
||||
# Read the 'users' file
|
||||
- files
|
||||
+# files
|
||||
|
||||
#
|
||||
# Look in an SQL database. The schema of the database
|
||||
@@ -1909,24 +1909,24 @@ authenticate {
|
||||
# PAP authentication, when a back-end database listed
|
||||
# in the 'authorize' section supplies a password. The
|
||||
# password can be clear-text, or encrypted.
|
||||
- Auth-Type PAP {
|
||||
- pap
|
||||
- }
|
||||
+# Auth-Type PAP {
|
||||
+# pap
|
||||
+# }
|
||||
|
||||
#
|
||||
# Most people want CHAP authentication
|
||||
# A back-end database listed in the 'authorize' section
|
||||
# MUST supply a CLEAR TEXT password. Encrypted passwords
|
||||
# won't work.
|
||||
- Auth-Type CHAP {
|
||||
- chap
|
||||
- }
|
||||
+# Auth-Type CHAP {
|
||||
+# chap
|
||||
+# }
|
||||
|
||||
#
|
||||
# MSCHAP authentication.
|
||||
- Auth-Type MS-CHAP {
|
||||
- mschap
|
||||
- }
|
||||
+# Auth-Type MS-CHAP {
|
||||
+# mschap
|
||||
+# }
|
||||
|
||||
#
|
||||
# If you have a Cisco SIP server authenticating against
|
||||
@@ -1944,7 +1944,7 @@ authenticate {
|
||||
# containing CHAP-Password attributes CANNOT be authenticated
|
||||
# against /etc/passwd! See the FAQ for details.
|
||||
#
|
||||
- unix
|
||||
+# unix
|
||||
|
||||
# Uncomment it if you want to use ldap for authentication
|
||||
#
|
||||
@@ -1957,7 +1957,7 @@ authenticate {
|
||||
|
||||
#
|
||||
# Allow EAP authentication.
|
||||
- eap
|
||||
+# eap
|
||||
}
|
||||
|
||||
|
||||
@@ -1965,12 +1965,12 @@ authenticate {
|
||||
# Pre-accounting. Decide which accounting type to use.
|
||||
#
|
||||
preacct {
|
||||
- preprocess
|
||||
+# preprocess
|
||||
|
||||
#
|
||||
# Ensure that we have a semi-unique identifier for every
|
||||
# request, and many NAS boxes are broken.
|
||||
- acct_unique
|
||||
+# acct_unique
|
||||
|
||||
#
|
||||
# Look for IPASS-style 'realm/', and if not found, look for
|
||||
@@ -1980,12 +1980,12 @@ preacct {
|
||||
# Accounting requests are generally proxied to the same
|
||||
# home server as authentication requests.
|
||||
# IPASS
|
||||
- suffix
|
||||
+# suffix
|
||||
# ntdomain
|
||||
|
||||
#
|
||||
# Read the 'acct_users' file
|
||||
- files
|
||||
+# files
|
||||
}
|
||||
|
||||
#
|
||||
@@ -1996,20 +1996,20 @@ accounting {
|
||||
# Create a 'detail'ed log of the packets.
|
||||
# Note that accounting requests which are proxied
|
||||
# are also logged in the detail file.
|
||||
- detail
|
||||
+# detail
|
||||
# daily
|
||||
|
||||
# Update the wtmp file
|
||||
#
|
||||
# If you don't use "radlast", you can delete this line.
|
||||
- unix
|
||||
+# unix
|
||||
|
||||
#
|
||||
# For Simultaneous-Use tracking.
|
||||
#
|
||||
# Due to packet losses in the network, the data here
|
||||
# may be incorrect. There is little we can do about it.
|
||||
- radutmp
|
||||
+# radutmp
|
||||
# sradutmp
|
||||
|
||||
# Return an address to the IP Pool when we see a stop record.
|
||||
@@ -2038,7 +2038,7 @@ accounting {
|
||||
# or rlm_sql module can handle this.
|
||||
# The rlm_sql module is *much* faster
|
||||
session {
|
||||
- radutmp
|
||||
+# radutmp
|
||||
|
||||
#
|
||||
# See "Simultaneous Use Checking Querie" in sql.conf
|
||||
@@ -2142,5 +2142,5 @@ post-proxy {
|
||||
# hidden inside of the EAP packet, and the end server will
|
||||
# reject the EAP request.
|
||||
#
|
||||
- eap
|
||||
+# eap
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -1,10 +0,0 @@
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -42,6 +42,7 @@ export DESTDIR := $(R)
|
||||
install:
|
||||
$(INSTALL) -d -m 755 $(R)$(sbindir)
|
||||
$(INSTALL) -d -m 755 $(R)$(bindir)
|
||||
+ $(INSTALL) -d -m 755 $(R)$(libdir)
|
||||
$(INSTALL) -d -m 755 $(R)$(raddbdir)
|
||||
$(INSTALL) -d -m 755 $(R)$(mandir)
|
||||
$(INSTALL) -d -m 755 $(R)$(RUNDIR)
|
@ -1,22 +0,0 @@
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -21579,7 +21579,7 @@ for ac_header in \
|
||||
openssl/ssl.h \
|
||||
openssl/crypto.h \
|
||||
openssl/err.h \
|
||||
- openssl/engine.h
|
||||
+
|
||||
do
|
||||
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
||||
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -644,7 +644,7 @@ if test "x$WITH_OPENSSL" = xyes; then
|
||||
openssl/ssl.h \
|
||||
openssl/crypto.h \
|
||||
openssl/err.h \
|
||||
- openssl/engine.h,
|
||||
+ ,
|
||||
[],
|
||||
OPENSSL_LIBS=
|
||||
)
|
@ -1,15 +0,0 @@
|
||||
--- a/src/modules/rules.mak
|
||||
+++ b/src/modules/rules.mak
|
||||
@@ -62,10 +62,10 @@ $(LT_OBJS): $(SERVER_HEADERS)
|
||||
#
|
||||
#######################################################################
|
||||
%.lo: %.c
|
||||
- $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(RLM_CFLAGS) -c $<
|
||||
+ $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(CPPFLAGS) $(RLM_CFLAGS) -c $<
|
||||
|
||||
%.lo: %.cpp
|
||||
- $(LIBTOOL) --mode=compile $(CXX) $(CFLAGS) $(RLM_CFLAGS) -c $<
|
||||
+ $(LIBTOOL) --mode=compile $(CXX) $(CFLAGS) $(CPPFLAGS) $(RLM_CFLAGS) -c $<
|
||||
|
||||
ifneq ($(TARGET),)
|
||||
#######################################################################
|
@ -1,11 +0,0 @@
|
||||
--- a/src/main/Makefile.in
|
||||
+++ b/src/main/Makefile.in
|
||||
@@ -61,7 +61,7 @@ $(SERVER_OBJS): $(INCLUDES)
|
||||
|
||||
radiusd: $(SERVER_OBJS) $(MODULE_OBJS) ../lib/libradius.la
|
||||
$(LIBTOOL) --mode=link $(CC) -export-dynamic -dlopen self \
|
||||
- $(LDFLAGS) -pie $(LINK_MODE) -o $@ $(SERVER_OBJS) \
|
||||
+ $(LDFLAGS) $(LINK_MODE) -o $@ $(SERVER_OBJS) \
|
||||
$(MODULE_LIBS) $(LIBS) $(SNMP_LIBS) $(PTHREADLIB) \
|
||||
$(LIBLTDL) $(OPENSSL_LIBS)
|
||||
|
Loading…
x
Reference in New Issue
Block a user