libradcli: added package to replace freeradius-client
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
parent
1b426f5bcf
commit
cb36792aa2
3 changed files with 85 additions and 55 deletions
|
@ -1,55 +0,0 @@
|
|||
#
|
||||
# Copyright (C) 2011 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-client
|
||||
PKG_VERSION:=1.1.7
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=freeradius-client-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=ftp://ftp.freeradius.org/pub/freeradius/
|
||||
PKG_MD5SUM:=43b4d21715b613dc4fe8ef128467fe78
|
||||
|
||||
PKG_INSTALL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/freeradius-client
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
TITLE:=A library for radius clients
|
||||
URL:=http://freeradius.org/freeradius-client/
|
||||
MAINTAINER:=Nikos Mavrogiannopoulos <nmav@gnutls.org>
|
||||
endef
|
||||
|
||||
define Package/freeradius-client/decription
|
||||
FreeRADIUS Client is a framework and library for writing RADIUS
|
||||
Clients. The library lets you develop a RADIUS-aware application
|
||||
in less than 50 lines of C code. It is highly portable and runs on
|
||||
Linux, many BSD variants and Solaris.
|
||||
endef
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/include
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/include/freeradius-client.h \
|
||||
$(1)/usr/include/
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/libfreeradius-client.{a,so*} \
|
||||
$(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Package/freeradius-client/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/libfreeradius-client.so.* \
|
||||
$(1)/usr/lib/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,freeradius-client))
|
10
libs/libradcli/Config.in
Normal file
10
libs/libradcli/Config.in
Normal file
|
@ -0,0 +1,10 @@
|
|||
# radcli avanced configuration
|
||||
|
||||
menu "Configuration"
|
||||
depends on PACKAGE_libradcli
|
||||
|
||||
config RADCLI_TLS
|
||||
bool "enable TLS support"
|
||||
default y
|
||||
|
||||
endmenu
|
75
libs/libradcli/Makefile
Normal file
75
libs/libradcli/Makefile
Normal file
|
@ -0,0 +1,75 @@
|
|||
#
|
||||
# Copyright (C) 2015 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:=libradcli
|
||||
PKG_VERSION:=1.2.1
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=radcli-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://github.com/radcli/radcli/releases/download/radcli_1_2_1/
|
||||
PKG_MD5SUM:=48f917ed3822ed2d91a5e90309a80812
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/radcli-$(PKG_VERSION)
|
||||
|
||||
PKG_INSTALL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/libradcli
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
TITLE:=A library for radius clients
|
||||
URL:=http://radcli.github.io/radcli/
|
||||
MAINTAINER:=Nikos Mavrogiannopoulos <nmav@gnutls.org>
|
||||
DEPENDS:= +RADCLI_TLS:libgnutls +libnettle
|
||||
endef
|
||||
|
||||
define Package/libradcli/decription
|
||||
The radcli library is a library for writing RADIUS Clients. The library's
|
||||
approach is to allow writing RADIUS-aware application in less than 50 lines
|
||||
of C code. It was based originally on freeradius-client and is source
|
||||
compatible with it.
|
||||
endef
|
||||
|
||||
CONFIGURE_ARGS+= \
|
||||
--enable-legacy-compat
|
||||
|
||||
ifneq ($(CONFIG_RADCLI_TLS),y)
|
||||
CONFIGURE_ARGS += --without-tls
|
||||
endif
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/include/radcli
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/include/radcli/radcli.h \
|
||||
$(PKG_INSTALL_DIR)/usr/include/radcli/version.h \
|
||||
$(1)/usr/include/radcli
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/include/freeradius-client.h \
|
||||
$(1)/usr/include/
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/libradcli.so* \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/libfreeradius-client.so \
|
||||
$(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Package/libradcli/conffiles
|
||||
/etc/radcli/radiusclient.conf
|
||||
endef
|
||||
|
||||
define Package/libradcli/install
|
||||
$(INSTALL_DIR) $(1)/etc/radcli
|
||||
$(INSTALL_CONF) $(PKG_BUILD_DIR)/etc/radiusclient.conf $(1)/etc/radcli/
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/libradcli.so.* \
|
||||
$(1)/usr/lib/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,libradcli))
|
Loading…
Reference in a new issue