2006-07-26 00:17:32 +00:00
|
|
|
#
|
2009-10-06 19:47:33 +00:00
|
|
|
# Copyright (C) 2006-2009 OpenWrt.org
|
2006-07-26 00:17:32 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=freeradius
|
2009-10-06 19:47:33 +00:00
|
|
|
PKG_VERSION:=1.1.8
|
2006-07-26 00:17:32 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2007-07-30 19:18:45 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=ftp://ftp.freeradius.org/pub/radius/old/ \
|
2006-07-26 00:17:32 +00:00
|
|
|
http://freeradius.portal-to-web.de/ \
|
|
|
|
ftp://ftp.uk.freeradius.org/pub/radius/
|
2009-10-06 19:47:33 +00:00
|
|
|
PKG_MD5SUM:=d367452a837bbe8d9c8731e21dc43593
|
2006-07-26 00:17:32 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2006-10-30 09:52:35 +00:00
|
|
|
define Package/freeradius/Default
|
2006-07-26 00:17:32 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2009-06-13 17:01:55 +00:00
|
|
|
URL:=http://freeradius.org/
|
2006-10-30 09:52:35 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/freeradius
|
|
|
|
$(call Package/freeradius/Default)
|
2007-07-25 14:38:32 +00:00
|
|
|
DEPENDS:=+libltdl +libopenssl +libpthread +libreadline
|
2006-07-26 00:17:32 +00:00
|
|
|
TITLE:=A flexible RADIUS server
|
2006-08-02 18:54:56 +00:00
|
|
|
MENU:=1
|
2006-07-26 00:17:32 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/freeradius/conffiles
|
|
|
|
/etc/freeradius/clients.conf
|
|
|
|
/etc/freeradius/radiusd.conf
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/freeradius-democerts
|
2006-10-30 09:52:35 +00:00
|
|
|
$(call Package/freeradius/Default)
|
2006-07-26 00:17:32 +00:00
|
|
|
DEPENDS:=freeradius
|
|
|
|
TITLE:=Demo certificates to test the server
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/freeradius-mod-chap
|
2006-10-30 09:52:35 +00:00
|
|
|
$(call Package/freeradius/Default)
|
2006-07-26 00:17:32 +00:00
|
|
|
DEPENDS:=freeradius
|
|
|
|
TITLE:=CHAP module
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/freeradius-mod-detail
|
2006-10-30 09:52:35 +00:00
|
|
|
$(call Package/freeradius/Default)
|
2006-07-26 00:17:32 +00:00
|
|
|
DEPENDS:=freeradius
|
|
|
|
TITLE:=Detailed accounting module
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/freeradius-mod-eap
|
2006-10-30 09:52:35 +00:00
|
|
|
$(call Package/freeradius/Default)
|
2006-07-26 00:17:32 +00:00
|
|
|
DEPENDS:=freeradius
|
|
|
|
TITLE:=Base EAP module
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/freeradius-mod-eap/conffiles
|
|
|
|
/etc/freeradius/eap.conf
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/freeradius-mod-eap-gtc
|
2006-10-30 09:52:35 +00:00
|
|
|
$(call Package/freeradius/Default)
|
2006-07-26 00:17:32 +00:00
|
|
|
DEPENDS:=freeradius-mod-eap
|
|
|
|
TITLE:=EAP/GTC module
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/freeradius-mod-eap-md5
|
2006-10-30 09:52:35 +00:00
|
|
|
$(call Package/freeradius/Default)
|
2006-07-26 00:17:32 +00:00
|
|
|
DEPENDS:=freeradius-mod-eap
|
|
|
|
TITLE:=EAP/MD5 module
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/freeradius-mod-eap-mschapv2
|
2006-10-30 09:52:35 +00:00
|
|
|
$(call Package/freeradius/Default)
|
2006-07-26 00:17:32 +00:00
|
|
|
DEPENDS:=freeradius-mod-eap
|
|
|
|
TITLE:=EAP/MS-CHAPv2 module
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/freeradius-mod-eap-peap
|
2006-10-30 09:52:35 +00:00
|
|
|
$(call Package/freeradius/Default)
|
2006-07-26 00:17:32 +00:00
|
|
|
DEPENDS:=freeradius-mod-eap
|
|
|
|
TITLE:=EAP/PEAP module
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/freeradius-mod-eap-tls
|
2006-10-30 09:52:35 +00:00
|
|
|
$(call Package/freeradius/Default)
|
2006-07-26 00:17:32 +00:00
|
|
|
DEPENDS:=freeradius-mod-eap
|
|
|
|
TITLE:=EAP/TLS module
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/freeradius-mod-eap-ttls
|
2006-10-30 09:52:35 +00:00
|
|
|
$(call Package/freeradius/Default)
|
2006-07-26 00:17:32 +00:00
|
|
|
DEPENDS:=freeradius-mod-eap-tls
|
|
|
|
TITLE:=EAP/TTLS module
|
|
|
|
endef
|
|
|
|
|
2007-09-08 17:48:46 +00:00
|
|
|
define Package/freeradius-mod-exec
|
|
|
|
$(call Package/freeradius/Default)
|
|
|
|
DEPENDS:=freeradius
|
|
|
|
TITLE:=EXEC module
|
|
|
|
endef
|
|
|
|
|
2007-09-09 19:54:14 +00:00
|
|
|
define Package/freeradius-mod-attr-rewrite
|
|
|
|
$(call Package/freeradius/Default)
|
|
|
|
DEPENDS:=freeradius
|
|
|
|
TITLE:=ATTR rewrite module
|
|
|
|
endef
|
|
|
|
|
2006-07-26 00:17:32 +00:00
|
|
|
define Package/freeradius-mod-files
|
2006-10-30 09:52:35 +00:00
|
|
|
$(call Package/freeradius/Default)
|
2006-07-26 00:17:32 +00:00
|
|
|
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
|
2006-10-30 09:52:35 +00:00
|
|
|
$(call Package/freeradius/Default)
|
2006-07-26 00:17:32 +00:00
|
|
|
DEPENDS:=freeradius +libopenldap
|
|
|
|
TITLE:=LDAP module
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/freeradius-mod-ldap/conffiles
|
|
|
|
/etc/freeradius/ldap.attrmap
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/freeradius-mod-mschap
|
2006-10-30 09:52:35 +00:00
|
|
|
$(call Package/freeradius/Default)
|
2006-07-26 00:17:32 +00:00
|
|
|
DEPENDS:=freeradius
|
|
|
|
TITLE:=MS-CHAP and MS-CHAPv2 module
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/freeradius-mod-pap
|
2006-10-30 09:52:35 +00:00
|
|
|
$(call Package/freeradius/Default)
|
2006-07-26 00:17:32 +00:00
|
|
|
DEPENDS:=freeradius
|
|
|
|
TITLE:=PAP module
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/freeradius-mod-preprocess
|
2006-10-30 09:52:35 +00:00
|
|
|
$(call Package/freeradius/Default)
|
2006-07-26 00:17:32 +00:00
|
|
|
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
|
2006-10-30 09:52:35 +00:00
|
|
|
$(call Package/freeradius/Default)
|
2006-07-26 00:17:32 +00:00
|
|
|
DEPENDS:=freeradius
|
|
|
|
TITLE:=Realms handling module
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/freeradius-mod-realm/conffiles
|
|
|
|
/etc/freeradius/proxy.conf
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/freeradius-mod-sql
|
2006-10-30 09:52:35 +00:00
|
|
|
$(call Package/freeradius/Default)
|
2006-07-26 00:17:32 +00:00
|
|
|
DEPENDS:=freeradius
|
|
|
|
TITLE:=Base SQL module
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/freeradius-mod-sql-mysql
|
2006-10-30 09:52:35 +00:00
|
|
|
$(call Package/freeradius/Default)
|
2006-07-26 00:17:32 +00:00
|
|
|
DEPENDS:=freeradius-mod-sql +libmysqlclient
|
|
|
|
TITLE:=MySQL module
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/freeradius-mod-sql-pgsql
|
2006-10-30 09:52:35 +00:00
|
|
|
$(call Package/freeradius/Default)
|
2006-07-26 00:17:32 +00:00
|
|
|
DEPENDS:=freeradius-mod-sql +libpq
|
|
|
|
TITLE:=PostgreSQL module
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/freeradius-mod-sqlcounter
|
2006-10-30 09:52:35 +00:00
|
|
|
$(call Package/freeradius/Default)
|
2006-07-26 00:17:32 +00:00
|
|
|
DEPENDS:=freeradius-mod-sql
|
|
|
|
TITLE:=Generic SQL Counter module
|
|
|
|
endef
|
|
|
|
|
2007-09-11 16:29:18 +00:00
|
|
|
define Package/freeradius-mod-radutmp
|
|
|
|
$(call Package/freeradius/Default)
|
2008-08-21 01:03:30 +00:00
|
|
|
DEPENDS:=freeradius
|
2007-09-11 16:29:18 +00:00
|
|
|
TITLE:=Radius UTMP module
|
|
|
|
endef
|
|
|
|
|
2006-07-26 00:17:32 +00:00
|
|
|
define Package/freeradius-utils
|
2006-10-30 09:52:35 +00:00
|
|
|
$(call Package/freeradius/Default)
|
2006-07-26 00:17:32 +00:00
|
|
|
DEPENDS:=freeradius
|
|
|
|
TITLE:=Misc. client utilities
|
|
|
|
endef
|
|
|
|
|
2008-08-21 01:03:30 +00:00
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--libdir=/usr/lib/freeradius \
|
|
|
|
--libexecdir=/usr/lib/freeradius \
|
2006-07-27 12:43:58 +00:00
|
|
|
--enable-shared \
|
|
|
|
--disable-static \
|
2007-04-18 01:06:04 +00:00
|
|
|
--disable-developer \
|
2006-07-27 12:43:58 +00:00
|
|
|
--with-openssl-includes="$(STAGING_DIR)/usr/include" \
|
|
|
|
--with-openssl-libraries="$(STAGING_DIR)/usr/lib" \
|
2009-10-06 19:47:33 +00:00
|
|
|
--with-system-libtool \
|
|
|
|
--disable-ltdl-install \
|
2006-07-27 12:43:58 +00:00
|
|
|
--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 \
|
2007-04-18 01:06:04 +00:00
|
|
|
--without-rlm_sqlhpwippool \
|
2006-10-30 09:52:35 +00:00
|
|
|
--without-rlm_sqlippool \
|
2006-07-27 12:43:58 +00:00
|
|
|
--without-rlm_sql_db2 \
|
2007-04-18 01:06:04 +00:00
|
|
|
--without-rlm_sql_firebird \
|
2006-07-27 12:43:58 +00:00
|
|
|
--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 \
|
|
|
|
|
2006-10-30 09:52:35 +00:00
|
|
|
PKG_DICTIONARIES:= \
|
|
|
|
freeradius freeradius.internal \
|
|
|
|
rfc2865 rfc2866 rfc2867 rfc2868 rfc2869 rfc3162 rfc3576 rfc3580 \
|
2007-04-18 01:06:04 +00:00
|
|
|
rfc4372 rfc4675 rfc4679 \
|
2006-10-30 09:52:35 +00:00
|
|
|
microsoft \
|
|
|
|
wispr \
|
|
|
|
|
2007-03-28 17:05:00 +00:00
|
|
|
ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius-mod-ldap),)
|
2008-08-21 01:03:30 +00:00
|
|
|
CONFIGURE_ARGS+= \
|
2006-07-27 12:43:58 +00:00
|
|
|
--with-rlm_ldap-include-dir="$(STAGING_DIR)/usr/include" \
|
|
|
|
--with-rlm_ldap-lib-dir="$(STAGING_DIR)/usr/lib"
|
2008-08-21 01:03:30 +00:00
|
|
|
CONFIGURE_LIBS+= -lcrypto -lssl
|
2006-10-30 09:52:35 +00:00
|
|
|
else
|
2008-08-21 01:03:30 +00:00
|
|
|
CONFIGURE_ARGS+= --without-rlm_ldap
|
2006-10-30 09:52:35 +00:00
|
|
|
endif
|
|
|
|
|
2007-03-28 17:05:00 +00:00
|
|
|
ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius-mod-sql-mysql),)
|
2008-08-21 01:03:30 +00:00
|
|
|
CONFIGURE_ARGS+= \
|
2006-07-27 12:43:58 +00:00
|
|
|
--with-mysql-include-dir="$(STAGING_DIR)/usr/include" \
|
|
|
|
--with-mysql-lib-dir="$(STAGING_DIR)/usr/lib/mysql" \
|
|
|
|
--without-threads
|
2008-08-21 01:03:30 +00:00
|
|
|
CONFIGURE_LIBS+= -lz
|
2006-07-27 12:43:58 +00:00
|
|
|
else
|
2008-08-21 01:03:30 +00:00
|
|
|
CONFIGURE_ARGS+= --without-rlm_sql_mysql
|
2006-10-30 09:52:35 +00:00
|
|
|
endif
|
|
|
|
|
2007-03-28 17:05:00 +00:00
|
|
|
ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius-mod-sql-pgsql),)
|
2008-08-21 01:03:30 +00:00
|
|
|
CONFIGURE_ARGS+= \
|
2006-07-27 12:43:58 +00:00
|
|
|
--with-rlm_sql_postgresql-include-dir="$(STAGING_DIR)/usr/include" \
|
|
|
|
--with-rlm_sql_postgresql-lib-dir="$(STAGING_DIR)/usr/lib"
|
2006-10-30 09:52:35 +00:00
|
|
|
else
|
2008-08-21 01:03:30 +00:00
|
|
|
CONFIGURE_ARGS+= --without-rlm_sql_postgresql
|
2006-07-27 12:43:58 +00:00
|
|
|
endif
|
|
|
|
|
2007-03-28 17:05:00 +00:00
|
|
|
ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius-mod-eap-peap),)
|
2008-08-21 01:03:30 +00:00
|
|
|
CONFIGURE_ARGS+= --with-rlm_eap_peap
|
|
|
|
CONFIGURE_LIBS+= -lcrypto -lssl
|
2007-03-04 23:55:41 +00:00
|
|
|
else
|
2008-08-21 01:03:30 +00:00
|
|
|
CONFIGURE_ARGS+= --without-rlm_eap_peap
|
2007-02-27 10:09:36 +00:00
|
|
|
endif
|
|
|
|
|
2007-03-28 17:05:00 +00:00
|
|
|
ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius-mod-eap-tls),)
|
2008-08-21 01:03:30 +00:00
|
|
|
CONFIGURE_ARGS+= --with-rlm_eap_tls
|
|
|
|
CONFIGURE_LIBS+= -lcrypto -lssl
|
2007-03-04 23:55:41 +00:00
|
|
|
else
|
2008-08-21 01:03:30 +00:00
|
|
|
CONFIGURE_ARGS+= --without-rlm_eap_tls
|
2007-02-27 10:09:36 +00:00
|
|
|
endif
|
|
|
|
|
2007-03-28 17:05:00 +00:00
|
|
|
ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius-mod-eap-ttls),)
|
2008-08-21 01:03:30 +00:00
|
|
|
CONFIGURE_ARGS+= --with-rlm_eap_ttls
|
|
|
|
CONFIGURE_LIBS+= -lcrypto -lssl
|
2007-03-04 23:55:41 +00:00
|
|
|
else
|
2008-08-21 01:03:30 +00:00
|
|
|
CONFIGURE_ARGS+= --without-rlm_eap_ttls
|
2007-02-27 10:09:36 +00:00
|
|
|
endif
|
|
|
|
|
2007-09-09 19:54:14 +00:00
|
|
|
ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius-mod-attr-rewrite),)
|
2008-08-21 01:03:30 +00:00
|
|
|
CONFIGURE_ARGS+= --with-rlm_attr-rewrite
|
2007-09-09 19:54:14 +00:00
|
|
|
else
|
2008-08-21 01:03:30 +00:00
|
|
|
CONFIGURE_ARGS+= --without-rlm_attr-rewrite
|
2007-09-09 19:54:14 +00:00
|
|
|
endif
|
|
|
|
|
2007-09-11 16:29:18 +00:00
|
|
|
ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius-mod-radutmp),)
|
2008-08-21 01:03:30 +00:00
|
|
|
CONFIGURE_ARGS+= --with-rlm_radutmp
|
2007-09-11 16:29:18 +00:00
|
|
|
else
|
2008-08-21 01:03:30 +00:00
|
|
|
CONFIGURE_ARGS+= --without-rlm_radutmp
|
2007-09-11 16:29:18 +00:00
|
|
|
endif
|
|
|
|
|
2008-08-21 01:03:30 +00:00
|
|
|
CONFIGURE_VARS+= \
|
|
|
|
LDFLAGS="$$$$LDFLAGS -L$(PKG_INSTALL_DIR)/usr/lib/freeradius" \
|
|
|
|
LIBS="$(CONFIGURE_LIBS)" \
|
|
|
|
MYSQL_CONFIG="no" \
|
2006-07-26 00:17:32 +00:00
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
R="$(PKG_INSTALL_DIR)" \
|
|
|
|
INSTALLSTRIP="" \
|
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/freeradius/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/freeradius
|
2006-07-26 00:17:32 +00:00
|
|
|
for f in clients.conf dictionary radiusd.conf; do \
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/etc/freeradius/$$$${f} $(1)/etc/freeradius/ ; \
|
|
|
|
done
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/share/freeradius
|
2006-07-26 00:17:32 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/freeradius/dictionary $(1)/usr/share/freeradius/
|
2007-04-18 01:06:04 +00:00
|
|
|
$(SED) "s,^\(\$$$$INCLUDE\),#\1,g" $(1)/usr/share/freeradius/dictionary
|
2006-10-30 09:52:35 +00:00
|
|
|
for f in $(PKG_DICTIONARIES); do \
|
2006-07-26 00:17:32 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/freeradius/dictionary.$$$${f} $(1)/usr/share/freeradius/ ; \
|
2007-04-18 01:06:04 +00:00
|
|
|
$(SED) "s,^#\(\$$$$INCLUDE dictionary\.$$$${f}\),\1,g" $(1)/usr/share/freeradius/dictionary ; \
|
2006-07-26 00:17:32 +00:00
|
|
|
done
|
2007-07-30 15:35:39 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/freeradius
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/freeradius/libradius{,-*}.so $(1)/usr/lib/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/radiusd $(1)/usr/sbin/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/radiusd.init $(1)/etc/init.d/radiusd
|
2006-07-26 00:17:32 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/freeradius-democerts/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/freeradius
|
2006-07-26 00:17:32 +00:00
|
|
|
$(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
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2006-10-30 09:52:35 +00:00
|
|
|
for f in radclient radeapclient; do \
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$$$${f} $(1)/usr/bin/ ; \
|
2006-07-26 00:17:32 +00:00
|
|
|
done
|
|
|
|
endef
|
|
|
|
|
|
|
|
define BuildPlugin
|
|
|
|
define Package/$(1)/install
|
2007-07-30 15:35:39 +00:00
|
|
|
[ -z "$(2)" ] || $(INSTALL_DIR) $$(1)/usr/lib
|
2006-07-26 00:17:32 +00:00
|
|
|
for m in $(2); do \
|
2007-07-30 15:35:39 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/freeradius/$$$$$$$${m}{,-*}.so $$(1)/usr/lib/ ; \
|
2006-07-26 00:17:32 +00:00
|
|
|
done
|
2006-11-23 00:29:07 +00:00
|
|
|
[ -z "$(3)" ] || $(INSTALL_DIR) $$(1)/etc/freeradius
|
2006-07-26 00:17:32 +00:00
|
|
|
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,))
|
2007-09-08 17:48:46 +00:00
|
|
|
$(eval $(call BuildPlugin,freeradius-mod-exec,rlm_exec,))
|
2007-09-09 19:54:14 +00:00
|
|
|
$(eval $(call BuildPlugin,freeradius-mod-attr-rewrite,rlm_attr_rewrite))
|
2006-07-26 00:17:32 +00:00
|
|
|
$(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,))
|
2007-09-11 16:29:18 +00:00
|
|
|
$(eval $(call BuildPlugin,freeradius-mod-radutmp,rlm_radutmp,))
|
2006-07-26 00:17:32 +00:00
|
|
|
$(eval $(call BuildPackage,freeradius-utils))
|