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
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/radiusclient-ng
/Default
27 Purpose of this project is to build a portable
, easy-to-use and standard
\\\
28 compliant library suitable for developing free and commercial software
\\\
29 that need support for RADIUS protocol
(RFCs
2128 and
2139).
30 URL
:=http
://developer.berlios.de
/projects
/radiusclient-ng
/
33 define Package
/libradiusclient-ng
34 $(call Package
/radiusclient-ng
/Default
)
37 TITLE
:=RADIUS client library
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 This package contains a RADIUS client.
61 define Build
/Configure
62 $(call Build
/Configure
/Default
, \
69 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
70 DESTDIR
="$(PKG_INSTALL_DIR)" \
74 define Build
/InstallDev
75 mkdir
-p
$(STAGING_DIR
)/usr
/include
76 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/radiusclient-ng.h
$(STAGING_DIR
)/usr
/include/
77 mkdir
-p
$(STAGING_DIR
)/usr
/lib
/
78 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libradiusclient-ng.
{a
,so
}* $(STAGING_DIR
)/usr
/lib
/
81 define Build
/UninstallDev
83 $(STAGING_DIR
)/usr
/include/radiusclient-ng.h \
84 $(STAGING_DIR
)/usr
/lib
/libradiusclient-ng.
{a
,so
}*
87 define Package
/libradiusclient-ng
/install
88 $(INSTALL_DIR
) $(1)/etc
89 $(CP
) $(PKG_INSTALL_DIR
)/etc
/radiusclient-ng
$(1)/etc
/
90 $(INSTALL_DIR
) $(1)/usr
/lib
91 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libradiusclient-ng.so.
* $(1)/usr
/lib
/
94 define Package
/radiusclient-ng
/install
95 $(INSTALL_DIR
) $(1)/usr
/sbin
96 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rad
{acct
,iusclient
,login
,status
} $(1)/usr
/sbin
/
99 $(eval
$(call BuildPackage
,libradiusclient-ng
))
100 $(eval
$(call BuildPackage
,radiusclient-ng
))