2 # Copyright (C) 2006-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=radiusclient-ng
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://download.berlios.de
/radiusclient-ng
/
16 PKG_MD5SUM
:=6fb7d4d0aefafaee7385831ac46a8e9c
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/radiusclient-ng
/Default
23 URL
:=http
://developer.berlios.de
/projects
/radiusclient-ng
/
26 define Package
/radiusclient-ng
/Default
/description
27 Purpose of this project is to build a portable
, easy-to-use and
28 standard compliant library suitable for developing free and commercial
29 software that need support for RADIUS protocol
(RFCs
2128 and
2139).
32 define Package
/libradiusclient-ng
33 $(call Package
/radiusclient-ng
/Default
)
36 TITLE
:=RADIUS client library
39 define Package
/libradiusclient-ng
/description
40 $(call Package
/radiusclient-ng
/Default
/description
)
41 This package contains shared libraries
, needed by other programs.
44 define Package
/libradiusclient-ng
/conffiles
45 /etc
/radiusclient-ng
/issue
46 /etc
/radiusclient-ng
/port-id-map
47 /etc
/radiusclient-ng
/radiusclient.conf
48 /etc
/radiusclient-ng
/servers
51 define Package
/radiusclient-ng
52 $(call Package
/radiusclient-ng
/Default
)
55 DEPENDS
:=+libradiusclient-ng
59 define Package
/radiusclient-ng
/description
60 $(call Package
/radiusclient-ng
/Default
/description
)
61 This package contains a RADIUS client.
64 TARGET_CFLAGS
+= $(FPIC
)
71 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
72 DESTDIR
="$(PKG_INSTALL_DIR)" \
76 define Build
/InstallDev
77 $(INSTALL_DIR
) $(1)/usr
/include
78 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/radiusclient-ng.h
$(1)/usr
/include/
79 $(INSTALL_DIR
) $(1)/usr
/lib
/
80 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libradiusclient-ng.
{a
,so
}* $(1)/usr
/lib
/
83 define Package
/libradiusclient-ng
/install
84 $(INSTALL_DIR
) $(1)/etc
85 $(CP
) $(PKG_INSTALL_DIR
)/etc
/radiusclient-ng
$(1)/etc
/
86 $(INSTALL_DIR
) $(1)/usr
/lib
87 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libradiusclient-ng.so.
* $(1)/usr
/lib
/
90 define Package
/radiusclient-ng
/install
91 $(INSTALL_DIR
) $(1)/usr
/sbin
92 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rad
{acct
,iusclient
,login
,status
} $(1)/usr
/sbin
/
95 $(eval
$(call BuildPackage
,libradiusclient-ng
))
96 $(eval
$(call BuildPackage
,radiusclient-ng
))