2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
11 PKG_NAME:=radiusclient-ng
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://download.berlios.de/radiusclient-ng/
17 PKG_MD5SUM:=c54eb70e964bdd22dd44b39a9b4df8ca
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22 include $(INCLUDE_DIR)/package.mk
24 define Package/radiusclient-ng/Default
25 URL:=http://developer.berlios.de/projects/radiusclient-ng/
28 define Package/libradiusclient-ng
29 $(call Package/radiusclient-ng/Default)
32 TITLE:=RADIUS client library
35 define Package/libradiusclient-ng/description
37 Purpose of this project is to build a portable, easy-to-use and standard
38 compliant library suitable for developing free and commercial software
39 that need support for RADIUS protocol (RFCs 2128 and 2139).
40 This package contains shared libraries, needed by other programs.
43 define Package/libradiusclient-ng/conffiles
44 /etc/radiusclient-ng/issue
45 /etc/radiusclient-ng/port-id-map
46 /etc/radiusclient-ng/radiusclient.conf
47 /etc/radiusclient-ng/servers
50 define Package/radiusclient-ng
51 $(call Package/radiusclient-ng/Default)
54 DEPENDS:=+libradiusclient-ng
58 define Package/radiusclient-ng/description
60 Purpose of this project is to build a portable, easy-to-use and standard
61 compliant library suitable for developing free and commercial software
62 that need support for RADIUS protocol (RFCs 2128 and 2139).
63 This package contains a RADIUS client.
66 define Build/Configure
67 $(call Build/Configure/Default, \
74 $(MAKE) -C $(PKG_BUILD_DIR) \
75 DESTDIR="$(PKG_INSTALL_DIR)" \
79 define Build/InstallDev
80 mkdir -p $(1)/usr/include
81 $(CP) $(PKG_INSTALL_DIR)/usr/include/radiusclient-ng.h $(1)/usr/include/
82 mkdir -p $(1)/usr/lib/
83 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libradiusclient-ng.{a,so}* $(1)/usr/lib/
86 define Package/libradiusclient-ng/install
87 $(INSTALL_DIR) $(1)/etc
88 $(CP) $(PKG_INSTALL_DIR)/etc/radiusclient-ng $(1)/etc/
89 $(INSTALL_DIR) $(1)/usr/lib
90 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libradiusclient-ng.so.* $(1)/usr/lib/
93 define Package/radiusclient-ng/install
94 $(INSTALL_DIR) $(1)/usr/sbin
95 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/rad{acct,iusclient,login,status} $(1)/usr/sbin/
98 $(eval $(call BuildPackage,libradiusclient-ng))
99 $(eval $(call BuildPackage,radiusclient-ng))