Add freeradius package
SVN-Revision: 918
This commit is contained in:
parent
c4bccf4a7a
commit
4c1eb55b24
29 changed files with 6764 additions and 0 deletions
|
@ -65,6 +65,7 @@ source "package/ttcp/Config.in"
|
||||||
source "package/robocfg/Config.in"
|
source "package/robocfg/Config.in"
|
||||||
source "package/siproxd/Config.in"
|
source "package/siproxd/Config.in"
|
||||||
source "package/sipsak/Config.in"
|
source "package/sipsak/Config.in"
|
||||||
|
source "package/freeradius/Config.in"
|
||||||
source "package/htpdate/Config.in"
|
source "package/htpdate/Config.in"
|
||||||
source "package/howl/Config.in"
|
source "package/howl/Config.in"
|
||||||
source "package/lighttpd/Config.in"
|
source "package/lighttpd/Config.in"
|
||||||
|
|
|
@ -86,6 +86,7 @@ package-$(BR2_PACKAGE_LIBLTDL) += libtool
|
||||||
package-$(BR2_PACKAGE_LIBOSIP2) += libosip2
|
package-$(BR2_PACKAGE_LIBOSIP2) += libosip2
|
||||||
package-$(BR2_PACKAGE_SIPROXD) += siproxd
|
package-$(BR2_PACKAGE_SIPROXD) += siproxd
|
||||||
package-$(BR2_PACKAGE_SIPSAK) += sipsak
|
package-$(BR2_PACKAGE_SIPSAK) += sipsak
|
||||||
|
package-$(BR2_PACKAGE_FREERADIUS) += freeradius
|
||||||
package-$(BR2_PACKAGE_HTPDATE) += htpdate
|
package-$(BR2_PACKAGE_HTPDATE) += htpdate
|
||||||
package-$(BR2_PACKAGE_HOWL) += howl
|
package-$(BR2_PACKAGE_HOWL) += howl
|
||||||
package-$(BR2_PACKAGE_LIGHTTPD) += lighttpd
|
package-$(BR2_PACKAGE_LIGHTTPD) += lighttpd
|
||||||
|
@ -144,6 +145,7 @@ sipsak-compile: openssl-compile
|
||||||
lighttpd-compile: openssl-compile pcre-compile
|
lighttpd-compile: openssl-compile pcre-compile
|
||||||
osiris-compile: openssl-compile
|
osiris-compile: openssl-compile
|
||||||
pmacct-compile: libpcap-compile
|
pmacct-compile: libpcap-compile
|
||||||
|
freeradius-compile: libtool-compile mysql-compile openldap-compile openssl-compile postgresql-compile
|
||||||
|
|
||||||
snort-compile: libnet-compile libpcap-compile pcre-compile
|
snort-compile: libnet-compile libpcap-compile pcre-compile
|
||||||
ifeq ($(BR2_PACKAGE_SNORT_MYSQL),y)
|
ifeq ($(BR2_PACKAGE_SNORT_MYSQL),y)
|
||||||
|
|
114
openwrt/package/freeradius/Config.in
Normal file
114
openwrt/package/freeradius/Config.in
Normal file
|
@ -0,0 +1,114 @@
|
||||||
|
config BR2_PACKAGE_FREERADIUS
|
||||||
|
prompt "freeradius - a flexible RADIUS server"
|
||||||
|
tristate
|
||||||
|
default m if CONFIG_DEVEL
|
||||||
|
help
|
||||||
|
A flexible RADIUS server
|
||||||
|
|
||||||
|
http://www.freeradius.org/
|
||||||
|
|
||||||
|
Depends: libltdl, libopenssl, libpthread
|
||||||
|
|
||||||
|
|
||||||
|
config BR2_PACKAGE_FREERADIUS_DEMOCERTS
|
||||||
|
depends BR2_PACKAGE_FREERADIUS
|
||||||
|
prompt "democerts - a set of certificates to test the server"
|
||||||
|
tristate
|
||||||
|
default m if CONFIG_DEVEL
|
||||||
|
|
||||||
|
config BR2_PACKAGE_FREERADIUS_MOD_CHAP
|
||||||
|
depends BR2_PACKAGE_FREERADIUS
|
||||||
|
prompt "mod-chap - a CHAP module"
|
||||||
|
tristate
|
||||||
|
default m if CONFIG_DEVEL
|
||||||
|
|
||||||
|
config BR2_PACKAGE_FREERADIUS_MOD_EAP
|
||||||
|
depends BR2_PACKAGE_FREERADIUS
|
||||||
|
prompt "mod-eap - an EAP module"
|
||||||
|
tristate
|
||||||
|
default m if CONFIG_DEVEL
|
||||||
|
|
||||||
|
config BR2_PACKAGE_FREERADIUS_MOD_EAP_GTC
|
||||||
|
depends BR2_PACKAGE_FREERADIUS
|
||||||
|
prompt "mod-eap-gtc - an EAP/GTC module"
|
||||||
|
tristate
|
||||||
|
default m if CONFIG_DEVEL
|
||||||
|
|
||||||
|
config BR2_PACKAGE_FREERADIUS_MOD_EAP_MD5
|
||||||
|
depends BR2_PACKAGE_FREERADIUS
|
||||||
|
prompt "mod-eap-md5 - an EAP/MD5 module"
|
||||||
|
tristate
|
||||||
|
default m if CONFIG_DEVEL
|
||||||
|
|
||||||
|
config BR2_PACKAGE_FREERADIUS_MOD_EAP_MSCHAPV2
|
||||||
|
depends BR2_PACKAGE_FREERADIUS
|
||||||
|
prompt "mod-eap-mschapv2 - an EAP/MS-CHAPv2 module"
|
||||||
|
tristate
|
||||||
|
default m if CONFIG_DEVEL
|
||||||
|
|
||||||
|
config BR2_PACKAGE_FREERADIUS_MOD_EAP_PEAP
|
||||||
|
depends BR2_PACKAGE_FREERADIUS
|
||||||
|
prompt "mod-eap-peap - an EAP/PEAP module"
|
||||||
|
tristate
|
||||||
|
default m if CONFIG_DEVEL
|
||||||
|
|
||||||
|
config BR2_PACKAGE_FREERADIUS_MOD_EAP_TLS
|
||||||
|
depends BR2_PACKAGE_FREERADIUS
|
||||||
|
prompt "mod-eap-tls - an EAP/TLS module"
|
||||||
|
tristate
|
||||||
|
default m if CONFIG_DEVEL
|
||||||
|
|
||||||
|
config BR2_PACKAGE_FREERADIUS_MOD_EAP_TTLS
|
||||||
|
depends BR2_PACKAGE_FREERADIUS
|
||||||
|
prompt "mod-eap-ttls - an EAP/TTLS module"
|
||||||
|
tristate
|
||||||
|
default m if CONFIG_DEVEL
|
||||||
|
|
||||||
|
config BR2_PACKAGE_FREERADIUS_MOD_FILES
|
||||||
|
depends BR2_PACKAGE_FREERADIUS
|
||||||
|
prompt "mod-files - a module using local files for authorization"
|
||||||
|
tristate
|
||||||
|
default m if CONFIG_DEVEL
|
||||||
|
|
||||||
|
config BR2_PACKAGE_FREERADIUS_MOD_LDAP
|
||||||
|
depends BR2_PACKAGE_FREERADIUS
|
||||||
|
prompt "mod-ldap - an LDAP module"
|
||||||
|
tristate
|
||||||
|
default m if CONFIG_DEVEL
|
||||||
|
|
||||||
|
config BR2_PACKAGE_FREERADIUS_MOD_MSCHAP
|
||||||
|
depends BR2_PACKAGE_FREERADIUS
|
||||||
|
prompt "mod-mschap - an MS-CHAP and MS-CHAPv2 module"
|
||||||
|
tristate
|
||||||
|
default m if CONFIG_DEVEL
|
||||||
|
|
||||||
|
config BR2_PACKAGE_FREERADIUS_MOD_PAP
|
||||||
|
depends BR2_PACKAGE_FREERADIUS
|
||||||
|
prompt "mod-pap - a PAP module"
|
||||||
|
tristate
|
||||||
|
default m if CONFIG_DEVEL
|
||||||
|
|
||||||
|
config BR2_PACKAGE_FREERADIUS_MOD_SQL
|
||||||
|
depends BR2_PACKAGE_FREERADIUS
|
||||||
|
prompt "mod-sql - an SQL module"
|
||||||
|
tristate
|
||||||
|
default m if CONFIG_DEVEL
|
||||||
|
|
||||||
|
config BR2_PACKAGE_FREERADIUS_MOD_SQL_MYSQL
|
||||||
|
depends BR2_PACKAGE_FREERADIUS
|
||||||
|
prompt "mod-sql-mysql - a MySQL module"
|
||||||
|
tristate
|
||||||
|
default m if CONFIG_DEVEL
|
||||||
|
|
||||||
|
config BR2_PACKAGE_FREERADIUS_MOD_SQL_PGSQL
|
||||||
|
depends BR2_PACKAGE_FREERADIUS
|
||||||
|
prompt "mod-sql-pgsql - a PostgreSQL module"
|
||||||
|
tristate
|
||||||
|
default m if CONFIG_DEVEL
|
||||||
|
|
||||||
|
config BR2_PACKAGE_FREERADIUS_UTILS
|
||||||
|
depends BR2_PACKAGE_FREERADIUS
|
||||||
|
prompt "mod-utils - misc client utilities"
|
||||||
|
tristate
|
||||||
|
default m if CONFIG_DEVEL
|
||||||
|
|
188
openwrt/package/freeradius/Makefile
Normal file
188
openwrt/package/freeradius/Makefile
Normal file
|
@ -0,0 +1,188 @@
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
PKG_NAME:=freeradius
|
||||||
|
PKG_VERSION:=1.0.2
|
||||||
|
PKG_RELEASE:=1
|
||||||
|
PKG_MD5SUM:=f5dfce4efbb03bbc47ceae08270a875e
|
||||||
|
|
||||||
|
PKG_SOURCE_URL:=ftp://ftp.freeradius.org/pub/radius/
|
||||||
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
|
PKG_CAT:=zcat
|
||||||
|
|
||||||
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||||
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
||||||
|
|
||||||
|
include $(TOPDIR)/package/rules.mk
|
||||||
|
|
||||||
|
define PKG_mod_template
|
||||||
|
|
||||||
|
$$(IPKG_$(1)):
|
||||||
|
install -d -m0755 $$(IDIR_$(1))/usr/lib/freeradius
|
||||||
|
for m in $(2); do \
|
||||||
|
cp -fpR $(PKG_INSTALL_DIR)/usr/lib/freeradius/$$$${m}{,-*}.so \
|
||||||
|
$$(IDIR_$(1))/usr/lib/freeradius/ ; \
|
||||||
|
done
|
||||||
|
install -d -m0755 $$(IDIR_$(1))/etc/freeradius
|
||||||
|
for f in $(3); do \
|
||||||
|
cp -fpR $(PKG_INSTALL_DIR)/etc/freeradius/$$$${f} \
|
||||||
|
$$(IDIR_$(1))/etc/freeradius/ ; \
|
||||||
|
done
|
||||||
|
$(RSTRIP) $$(IDIR_$(1))
|
||||||
|
$(IPKG_BUILD) $$(IDIR_$(1)) $(PACKAGE_DIR)
|
||||||
|
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call PKG_template,FREERADIUS,freeradius,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||||
|
$(eval $(call PKG_template,FREERADIUS_DEMOCERTS,freeradius-democerts,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||||
|
$(eval $(call PKG_template,FREERADIUS_MOD_CHAP,freeradius-mod-chap,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||||
|
$(eval $(call PKG_template,FREERADIUS_MOD_EAP,freeradius-mod-eap,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||||
|
$(eval $(call PKG_template,FREERADIUS_MOD_EAP_GTC,freeradius-mod-eap-gtc,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||||
|
$(eval $(call PKG_template,FREERADIUS_MOD_EAP_MD5,freeradius-mod-eap-md5,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||||
|
$(eval $(call PKG_template,FREERADIUS_MOD_EAP_MSCHAPV2,freeradius-mod-eap-mschapv2,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||||
|
$(eval $(call PKG_template,FREERADIUS_MOD_EAP_PEAP,freeradius-mod-eap-peap,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||||
|
$(eval $(call PKG_template,FREERADIUS_MOD_EAP_TLS,freeradius-mod-eap-tls,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||||
|
$(eval $(call PKG_template,FREERADIUS_MOD_EAP_TTLS,freeradius-mod-eap-ttls,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||||
|
$(eval $(call PKG_template,FREERADIUS_MOD_FILES,freeradius-mod-files,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||||
|
$(eval $(call PKG_template,FREERADIUS_MOD_LDAP,freeradius-mod-ldap,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||||
|
$(eval $(call PKG_template,FREERADIUS_MOD_MSCHAP,freeradius-mod-mschap,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||||
|
$(eval $(call PKG_template,FREERADIUS_MOD_PAP,freeradius-mod-pap,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||||
|
$(eval $(call PKG_template,FREERADIUS_MOD_SQL,freeradius-mod-sql,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||||
|
$(eval $(call PKG_template,FREERADIUS_MOD_SQL_MYSQL,freeradius-mod-sql-mysql,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||||
|
$(eval $(call PKG_template,FREERADIUS_MOD_SQL_PGSQL,freeradius-mod-sql-pgsql,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||||
|
$(eval $(call PKG_template,FREERADIUS_UTILS,freeradius-utils,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||||
|
|
||||||
|
$(eval $(call PKG_mod_template,FREERADIUS_MOD_CHAP,rlm_chap,))
|
||||||
|
$(eval $(call PKG_mod_template,FREERADIUS_MOD_EAP,libeap rlm_eap,eap.conf))
|
||||||
|
$(eval $(call PKG_mod_template,FREERADIUS_MOD_EAP_GTC,rlm_eap_gtc,))
|
||||||
|
$(eval $(call PKG_mod_template,FREERADIUS_MOD_EAP_MD5,rlm_eap_md5,))
|
||||||
|
$(eval $(call PKG_mod_template,FREERADIUS_MOD_EAP_MSCHAPV2,rlm_eap_mschapv2,))
|
||||||
|
$(eval $(call PKG_mod_template,FREERADIUS_MOD_EAP_PEAP,rlm_eap_peap,))
|
||||||
|
$(eval $(call PKG_mod_template,FREERADIUS_MOD_EAP_TLS,rlm_eap_tls,))
|
||||||
|
$(eval $(call PKG_mod_template,FREERADIUS_MOD_EAP_TTLS,rlm_eap_ttls,))
|
||||||
|
$(eval $(call PKG_mod_template,FREERADIUS_MOD_FILES,rlm_files,acct_users preproxy_users users))
|
||||||
|
$(eval $(call PKG_mod_template,FREERADIUS_MOD_LDAP,rlm_ldap,ldap.attrmap))
|
||||||
|
$(eval $(call PKG_mod_template,FREERADIUS_MOD_MSCHAP,rlm_mschap,))
|
||||||
|
$(eval $(call PKG_mod_template,FREERADIUS_MOD_PAP,rlm_pap,))
|
||||||
|
$(eval $(call PKG_mod_template,FREERADIUS_MOD_SQL,rlm_sql,sql.conf))
|
||||||
|
$(eval $(call PKG_mod_template,FREERADIUS_MOD_SQL_MYSQL,rlm_sql_mysql,))
|
||||||
|
$(eval $(call PKG_mod_template,FREERADIUS_MOD_SQL_PGSQL,rlm_sql_postgresql,))
|
||||||
|
|
||||||
|
$(PKG_BUILD_DIR)/.configured:
|
||||||
|
(cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
|
||||||
|
$(TARGET_CONFIGURE_OPTS) \
|
||||||
|
CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
|
||||||
|
CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
|
||||||
|
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(PKG_INSTALL_DIR)/usr/lib/freeradius" \
|
||||||
|
lt_sys_lib_search_path_spec="$(STAGING_DIR)/usr/lib" \
|
||||||
|
MYSQL_CONFIG="no" \
|
||||||
|
./configure \
|
||||||
|
--target=$(GNU_TARGET_NAME) \
|
||||||
|
--host=$(GNU_TARGET_NAME) \
|
||||||
|
--build=$(GNU_HOST_NAME) \
|
||||||
|
--program-prefix="" \
|
||||||
|
--program-suffix="" \
|
||||||
|
--prefix=/usr \
|
||||||
|
--exec-prefix=/usr \
|
||||||
|
--bindir=/usr/bin \
|
||||||
|
--datadir=/usr/share \
|
||||||
|
--includedir=/usr/include \
|
||||||
|
--infodir=/usr/share/info \
|
||||||
|
--libdir=/usr/lib/freeradius \
|
||||||
|
--libexecdir=/usr/lib/freeradius \
|
||||||
|
--localstatedir=/var \
|
||||||
|
--mandir=/usr/share/man \
|
||||||
|
--sbindir=/usr/sbin \
|
||||||
|
--sysconfdir=/etc \
|
||||||
|
$(DISABLE_LARGEFILE) \
|
||||||
|
$(DISABLE_NLS) \
|
||||||
|
--enable-shared \
|
||||||
|
--disable-static \
|
||||||
|
--disable-ltdl-install \
|
||||||
|
--with-ltdl-include="$(STAGING_DIR)/usr/include" \
|
||||||
|
--with-ltdl-lib="$(STAGING_DIR)/usr/lib" \
|
||||||
|
--with-openssl-includes="$(STAGING_DIR)/usr/include" \
|
||||||
|
--with-openssl-libraries="$(STAGING_DIR)/usr/lib" \
|
||||||
|
--enable-strict-dependencies \
|
||||||
|
--with-raddbdir=/etc/freeradius \
|
||||||
|
--without-edir \
|
||||||
|
--without-snmp \
|
||||||
|
--without-rlm_attr-rewrite \
|
||||||
|
--with-rlm_checkval \
|
||||||
|
--without-rlm_counter \
|
||||||
|
--without-rlm_dbm \
|
||||||
|
--with-rlm_eap \
|
||||||
|
--without-rlm_eap_sim \
|
||||||
|
--with-rlm_files \
|
||||||
|
--without-rlm_ippool \
|
||||||
|
--without-rlm_krb5 \
|
||||||
|
--with-rlm_ldap-include-dir="$(STAGING_DIR)/usr/include" \
|
||||||
|
--with-rlm_ldap-lib-dir="$(STAGING_DIR)/usr/lib" \
|
||||||
|
--without-rlm_pam \
|
||||||
|
--without-rlm_radutmp \
|
||||||
|
--without-rlm_sql_iodbc \
|
||||||
|
--with-mysql-include-dir="$(STAGING_DIR)/usr/include/mysql" \
|
||||||
|
--with-mysql-lib-dir="$(STAGING_DIR)/usr/lib/mysql" \
|
||||||
|
--without-rlm_sql_oracle \
|
||||||
|
--with-rlm_sql_postgresql-include-dir="$(STAGING_DIR)/usr/include" \
|
||||||
|
--with-rlm_sql_postgresql-lib-dir="$(STAGING_DIR)/usr/lib" \
|
||||||
|
--without-rlm_sql_unixodbc \
|
||||||
|
--without-rlm_unix \
|
||||||
|
--without-rlm_x99-token \
|
||||||
|
)
|
||||||
|
touch $(PKG_BUILD_DIR)/.configured
|
||||||
|
|
||||||
|
$(PKG_BUILD_DIR)/.built:
|
||||||
|
$(MAKE) -C $(PKG_BUILD_DIR)
|
||||||
|
mkdir -p $(PKG_INSTALL_DIR)
|
||||||
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
|
R="$(PKG_INSTALL_DIR)" \
|
||||||
|
INSTALLSTRIP="" \
|
||||||
|
install
|
||||||
|
touch $(PKG_BUILD_DIR)/.built
|
||||||
|
|
||||||
|
$(IPKG_FREERADIUS):
|
||||||
|
install -m0755 -d $(IDIR_FREERADIUS)/etc/init.d
|
||||||
|
install -m0755 ./files/radiusd.init $(IDIR_FREERADIUS)/etc/init.d/radiusd
|
||||||
|
install -m0755 -d $(IDIR_FREERADIUS)/etc/freeradius
|
||||||
|
for f in clients.conf dictionary radiusd.conf; do \
|
||||||
|
cp -fpR $(PKG_INSTALL_DIR)/etc/freeradius/$${f} \
|
||||||
|
$(IDIR_FREERADIUS)/etc/freeradius/ ; \
|
||||||
|
done
|
||||||
|
install -m0755 -d $(IDIR_FREERADIUS)/usr/share/freeradius
|
||||||
|
cp -fpR $(PKG_INSTALL_DIR)/usr/share/freeradius/dictionary \
|
||||||
|
$(IDIR_FREERADIUS)/usr/share/freeradius/
|
||||||
|
for f in cisco freeradius microsoft tunnel wispr; do \
|
||||||
|
cp -fpR $(PKG_INSTALL_DIR)/usr/share/freeradius/dictionary.$${f} \
|
||||||
|
$(IDIR_FREERADIUS)/usr/share/freeradius/ ; \
|
||||||
|
done
|
||||||
|
install -m0755 -d $(IDIR_FREERADIUS)/usr/lib/freeradius
|
||||||
|
cp -fpR $(PKG_INSTALL_DIR)/usr/lib/freeradius/libradius{,-*}.so \
|
||||||
|
$(IDIR_FREERADIUS)/usr/lib/freeradius/
|
||||||
|
install -m0755 -d $(IDIR_FREERADIUS)/usr/sbin
|
||||||
|
cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/radiusd \
|
||||||
|
$(IDIR_FREERADIUS)/usr/sbin/
|
||||||
|
$(RSTRIP) $(IDIR_FREERADIUS)
|
||||||
|
$(IPKG_BUILD) $(IDIR_FREERADIUS) $(PACKAGE_DIR)
|
||||||
|
|
||||||
|
$(IPKG_FREERADIUS_DEMOCERTS):
|
||||||
|
install -m0755 -d $(IDIR_FREERADIUS_DEMOCERTS)/etc/freeradius
|
||||||
|
cp -fpR $(PKG_INSTALL_DIR)/etc/freeradius/certs \
|
||||||
|
$(IDIR_FREERADIUS_DEMOCERTS)/etc/freeradius/
|
||||||
|
rm -rf $(IDIR_FREERADIUS_DEMOCERTS)/etc/freeradius/certs/README
|
||||||
|
rm -rf $(IDIR_FREERADIUS_DEMOCERTS)/etc/freeradius/certs/new*
|
||||||
|
rm -rf $(IDIR_FREERADIUS_DEMOCERTS)/etc/freeradius/certs/demoCA/index*
|
||||||
|
rm -rf $(IDIR_FREERADIUS_DEMOCERTS)/etc/freeradius/certs/demoCA/serial*
|
||||||
|
$(RSTRIP) $(IDIR_FREERADIUS_DEMOCERTS)
|
||||||
|
$(IPKG_BUILD) $(IDIR_FREERADIUS_DEMOCERTS) $(PACKAGE_DIR)
|
||||||
|
|
||||||
|
$(IPKG_FREERADIUS_UTILS):
|
||||||
|
install -m0755 -d $(IDIR_FREERADIUS_UTILS)/usr/bin
|
||||||
|
for f in radclient radeapclient; do \
|
||||||
|
cp -fpR $(PKG_INSTALL_DIR)/usr/bin/$${f} \
|
||||||
|
$(IDIR_FREERADIUS_UTILS)/usr/bin/ ; \
|
||||||
|
done
|
||||||
|
$(RSTRIP) $(IDIR_FREERADIUS_UTILS)
|
||||||
|
$(IPKG_BUILD) $(IDIR_FREERADIUS_UTILS) $(PACKAGE_DIR)
|
||||||
|
|
23
openwrt/package/freeradius/files/radiusd.init
Normal file
23
openwrt/package/freeradius/files/radiusd.init
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
DEFAULT=/etc/default/radiusd
|
||||||
|
LOG_D=/var/log/radius
|
||||||
|
RUN_D=/var/run
|
||||||
|
PID_F=$RUN_D/radiusd.pid
|
||||||
|
[ -f $DEFAULT ] && . $DEFAULT
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
start)
|
||||||
|
[ -d $LOG_D ] || mkdir -p $LOG_D
|
||||||
|
[ -d $RUN_D ] || mkdir -p $RUN_D
|
||||||
|
radiusd $OPTIONS
|
||||||
|
;;
|
||||||
|
stop)
|
||||||
|
[ -f $PID_F ] && kill $(cat $PID_F)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "usage: $0 (start|stop)"
|
||||||
|
exit 1
|
||||||
|
esac
|
||||||
|
|
||||||
|
exit $?
|
|
@ -0,0 +1,9 @@
|
||||||
|
Package: freeradius-democerts
|
||||||
|
Priority: optional
|
||||||
|
Section: net
|
||||||
|
Version: [TBDL]
|
||||||
|
Architecture: [TBDL]
|
||||||
|
Maintainer: Nico <nthill@free.fr>
|
||||||
|
Source: http://nthill.free.fr/openwrt/sources/freeradius/
|
||||||
|
Description: a set of certificates to test FreeRADIUS
|
||||||
|
Depends: freeradius
|
|
@ -0,0 +1,9 @@
|
||||||
|
Package: freeradius-mod-chap
|
||||||
|
Priority: optional
|
||||||
|
Section: net
|
||||||
|
Version: [TBDL]
|
||||||
|
Architecture: [TBDL]
|
||||||
|
Maintainer: Nico <nthill@free.fr>
|
||||||
|
Source: http://nthill.free.fr/openwrt/sources/freeradius/
|
||||||
|
Description: a CHAP module for FreeRADIUS
|
||||||
|
Depends: freeradius
|
|
@ -0,0 +1,9 @@
|
||||||
|
Package: freeradius-mod-eap-gtc
|
||||||
|
Priority: optional
|
||||||
|
Section: net
|
||||||
|
Version: [TBDL]
|
||||||
|
Architecture: [TBDL]
|
||||||
|
Maintainer: Nico <nthill@free.fr>
|
||||||
|
Source: http://nthill.free.fr/openwrt/sources/freeradius/
|
||||||
|
Description: an EAP/GTC module for FreeRADIUS
|
||||||
|
Depends: freeradius, freeradius-mod-eap
|
|
@ -0,0 +1,9 @@
|
||||||
|
Package: freeradius-mod-eap-md5
|
||||||
|
Priority: optional
|
||||||
|
Section: net
|
||||||
|
Version: [TBDL]
|
||||||
|
Architecture: [TBDL]
|
||||||
|
Maintainer: Nico <nthill@free.fr>
|
||||||
|
Source: http://nthill.free.fr/openwrt/sources/freeradius/
|
||||||
|
Description: an EAP/MD5 module for FreeRADIUS
|
||||||
|
Depends: freeradius, freeradius-mod-eap
|
|
@ -0,0 +1,9 @@
|
||||||
|
Package: freeradius-mod-eap-mschapv2
|
||||||
|
Priority: optional
|
||||||
|
Section: net
|
||||||
|
Version: [TBDL]
|
||||||
|
Architecture: [TBDL]
|
||||||
|
Maintainer: Nico <nthill@free.fr>
|
||||||
|
Source: http://nthill.free.fr/openwrt/sources/freeradius/
|
||||||
|
Description: an EAP/MS-CHAPv2 module for FreeRADIUS
|
||||||
|
Depends: freeradius, freeradius-mod-eap
|
|
@ -0,0 +1,9 @@
|
||||||
|
Package: freeradius-mod-eap-peap
|
||||||
|
Priority: optional
|
||||||
|
Section: net
|
||||||
|
Version: [TBDL]
|
||||||
|
Architecture: [TBDL]
|
||||||
|
Maintainer: Nico <nthill@free.fr>
|
||||||
|
Source: http://nthill.free.fr/openwrt/sources/freeradius/
|
||||||
|
Description: an EAP/PEAP module for FreeRADIUS
|
||||||
|
Depends: freeradius, freeradius-mod-eap, freeradius-mod-eap-tls
|
|
@ -0,0 +1,9 @@
|
||||||
|
Package: freeradius-mod-eap-tls
|
||||||
|
Priority: optional
|
||||||
|
Section: net
|
||||||
|
Version: [TBDL]
|
||||||
|
Architecture: [TBDL]
|
||||||
|
Maintainer: Nico <nthill@free.fr>
|
||||||
|
Source: http://nthill.free.fr/openwrt/sources/freeradius/
|
||||||
|
Description: an EAP/TLS module for FreeRADIUS
|
||||||
|
Depends: freeradius, freeradius-mod-eap
|
|
@ -0,0 +1,9 @@
|
||||||
|
Package: freeradius-mod-eap-ttls
|
||||||
|
Priority: optional
|
||||||
|
Section: net
|
||||||
|
Version: [TBDL]
|
||||||
|
Architecture: [TBDL]
|
||||||
|
Maintainer: Nico <nthill@free.fr>
|
||||||
|
Source: http://nthill.free.fr/openwrt/sources/freeradius/
|
||||||
|
Description: an EAP/TTLS module for FreeRADIUS
|
||||||
|
Depends: freeradius, freeradius-mod-eap, freeradius-mod-eap-tls
|
|
@ -0,0 +1 @@
|
||||||
|
/etc/freeradius/eap.conf
|
|
@ -0,0 +1,9 @@
|
||||||
|
Package: freeradius-mod-eap
|
||||||
|
Priority: optional
|
||||||
|
Section: net
|
||||||
|
Version: [TBDL]
|
||||||
|
Architecture: [TBDL]
|
||||||
|
Maintainer: Nico <nthill@free.fr>
|
||||||
|
Source: http://nthill.free.fr/openwrt/sources/freeradius/
|
||||||
|
Description: an EAP module for FreeRADIUS
|
||||||
|
Depends: freeradius
|
|
@ -0,0 +1,3 @@
|
||||||
|
/etc/freeradius/acct_users
|
||||||
|
/etc/freeradius/preproxy_users
|
||||||
|
/etc/freeradius/users
|
|
@ -0,0 +1,9 @@
|
||||||
|
Package: freeradius-mod-files
|
||||||
|
Priority: optional
|
||||||
|
Section: net
|
||||||
|
Version: [TBDL]
|
||||||
|
Architecture: [TBDL]
|
||||||
|
Maintainer: Nico <nthill@free.fr>
|
||||||
|
Source: http://nthill.free.fr/openwrt/sources/freeradius/
|
||||||
|
Description: a module for FreeRADIUS, using local files for authorization
|
||||||
|
Depends: freeradius
|
|
@ -0,0 +1 @@
|
||||||
|
/etc/freeradius/ldap.attrmap
|
|
@ -0,0 +1,9 @@
|
||||||
|
Package: freeradius-mod-ldap
|
||||||
|
Priority: optional
|
||||||
|
Section: net
|
||||||
|
Version: [TBDL]
|
||||||
|
Architecture: [TBDL]
|
||||||
|
Maintainer: Nico <nthill@free.fr>
|
||||||
|
Source: http://nthill.free.fr/openwrt/sources/freeradius/
|
||||||
|
Description: an LDAP module for FreeRADIUS
|
||||||
|
Depends: freeradius, libopenldap, libopenssl, libsasl2
|
|
@ -0,0 +1,9 @@
|
||||||
|
Package: freeradius-mod-mschap
|
||||||
|
Priority: optional
|
||||||
|
Section: net
|
||||||
|
Version: [TBDL]
|
||||||
|
Architecture: [TBDL]
|
||||||
|
Maintainer: Nico <nthill@free.fr>
|
||||||
|
Source: http://nthill.free.fr/openwrt/sources/freeradius/
|
||||||
|
Description: an MS-CHAP and MS-CHAPv2 module for FreeRADIUS
|
||||||
|
Depends: freeradius
|
|
@ -0,0 +1,9 @@
|
||||||
|
Package: freeradius-mod-pap
|
||||||
|
Priority: optional
|
||||||
|
Section: net
|
||||||
|
Version: [TBDL]
|
||||||
|
Architecture: [TBDL]
|
||||||
|
Maintainer: Nico <nthill@free.fr>
|
||||||
|
Source: http://nthill.free.fr/openwrt/sources/freeradius/
|
||||||
|
Description: a PAP module for FreeRADIUS
|
||||||
|
Depends: freeradius
|
|
@ -0,0 +1,9 @@
|
||||||
|
Package: freeradius-mod-sql-mysql
|
||||||
|
Priority: optional
|
||||||
|
Section: net
|
||||||
|
Version: [TBDL]
|
||||||
|
Architecture: [TBDL]
|
||||||
|
Maintainer: Nico <nthill@free.fr>
|
||||||
|
Source: http://nthill.free.fr/openwrt/sources/freeradius/
|
||||||
|
Description: a MySQL module for FreeRADIUS
|
||||||
|
Depends: freeradius, freeradius-mod-sql, libmysqlclient
|
|
@ -0,0 +1,9 @@
|
||||||
|
Package: freeradius-mod-sql-pgsql
|
||||||
|
Priority: optional
|
||||||
|
Section: net
|
||||||
|
Version: [TBDL]
|
||||||
|
Architecture: [TBDL]
|
||||||
|
Maintainer: Nico <nthill@free.fr>
|
||||||
|
Source: http://nthill.free.fr/openwrt/sources/freeradius/
|
||||||
|
Description: a PostgreSQL module for FreeRADIUS
|
||||||
|
Depends: freeradius, freeradius-mod-sql, libpq
|
|
@ -0,0 +1 @@
|
||||||
|
/etc/freeradius/sql.conf
|
|
@ -0,0 +1,9 @@
|
||||||
|
Package: freeradius-mod-sql
|
||||||
|
Priority: optional
|
||||||
|
Section: net
|
||||||
|
Version: [TBDL]
|
||||||
|
Architecture: [TBDL]
|
||||||
|
Maintainer: Nico <nthill@free.fr>
|
||||||
|
Source: http://nthill.free.fr/openwrt/sources/freeradius/
|
||||||
|
Description: an SQL module for FreeRADIUS
|
||||||
|
Depends: freeradius
|
9
openwrt/package/freeradius/ipkg/freeradius-utils.control
Normal file
9
openwrt/package/freeradius/ipkg/freeradius-utils.control
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
Package: freeradius-utils
|
||||||
|
Priority: optional
|
||||||
|
Section: net
|
||||||
|
Version: [TBDL]
|
||||||
|
Architecture: [TBDL]
|
||||||
|
Maintainer: Nico <nthill@free.fr>
|
||||||
|
Source: http://nthill.free.fr/openwrt/sources/freeradius/
|
||||||
|
Description: some client utilities for FreeRADIUS
|
||||||
|
Depends: freeradius
|
3
openwrt/package/freeradius/ipkg/freeradius.conffiles
Normal file
3
openwrt/package/freeradius/ipkg/freeradius.conffiles
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
/etc/freeradius/clients.conf
|
||||||
|
/etc/freeradius/radiusd.conf
|
||||||
|
|
9
openwrt/package/freeradius/ipkg/freeradius.control
Normal file
9
openwrt/package/freeradius/ipkg/freeradius.control
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
Package: freeradius
|
||||||
|
Priority: optional
|
||||||
|
Section: net
|
||||||
|
Version: [TBDL]
|
||||||
|
Architecture: [TBDL]
|
||||||
|
Maintainer: Nico <nthill@free.fr>
|
||||||
|
Source: http://nthill.free.fr/openwrt/sources/freeradius/
|
||||||
|
Description: a flexible RADIUS server
|
||||||
|
Depends: libltdl, libopenssl, libpthread
|
6265
openwrt/package/freeradius/patches/freeradius-1.0.2-2-nico.diff
Normal file
6265
openwrt/package/freeradius/patches/freeradius-1.0.2-2-nico.diff
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue