X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=libs%2Fradiusclient-ng%2FMakefile;h=3d125b9cdf0f69ff289a4437ea4f0e4a5ac80556;hb=e84b6b7fa9d4ab60ff230753703cee0c489b0157;hp=8479e861674487b05c6529d974433c270a38fef0;hpb=6e0f864fdb622ed55865744603979fe40859b24d;p=openwrt%2Fsvn-archive%2Farchive.git diff --git a/libs/radiusclient-ng/Makefile b/libs/radiusclient-ng/Makefile index 8479e86167..3d125b9cdf 100644 --- a/libs/radiusclient-ng/Makefile +++ b/libs/radiusclient-ng/Makefile @@ -1,43 +1,44 @@ -# -# Copyright (C) 2006 OpenWrt.org +# +# Copyright (C) 2006-2010 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # -# $Id$ include $(TOPDIR)/rules.mk PKG_NAME:=radiusclient-ng -PKG_VERSION:=0.5.2 +PKG_VERSION:=0.5.6 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://download.berlios.de/radiusclient-ng/ -PKG_MD5SUM:=c54eb70e964bdd22dd44b39a9b4df8ca -PKG_CAT:=zcat +PKG_MD5SUM:=6fb7d4d0aefafaee7385831ac46a8e9c -PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) -PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install +PKG_FIXUP:=autoreconf include $(INCLUDE_DIR)/package.mk define Package/radiusclient-ng/Default - DESCRIPTION:=\ - Purpose of this project is to build a portable, easy-to-use and standard \\\ - compliant library suitable for developing free and commercial software \\\ - that need support for RADIUS protocol (RFCs 2128 and 2139). URL:=http://developer.berlios.de/projects/radiusclient-ng/ endef - + +define Package/radiusclient-ng/Default/description + Purpose of this project is to build a portable, easy-to-use and + standard compliant library suitable for developing free and commercial + software that need support for RADIUS protocol (RFCs 2128 and 2139). +endef + define Package/libradiusclient-ng - $(call Package/radiusclient-ng/Default) +$(call Package/radiusclient-ng/Default) SECTION:=libs CATEGORY:=Libraries TITLE:=RADIUS client library - DESCRIPTION+=\\\ - \\\ - This package contains shared libraries, needed by other programs. +endef + +define Package/libradiusclient-ng/description +$(call Package/radiusclient-ng/Default/description) + This package contains shared libraries, needed by other programs. endef define Package/libradiusclient-ng/conffiles @@ -53,18 +54,19 @@ define Package/radiusclient-ng CATEGORY:=Network DEPENDS:=+libradiusclient-ng TITLE:=RADIUS client - DESCRIPTION+=\\\ - \\\ - This package contains a RADIUS client. endef -define Build/Configure - $(call Build/Configure/Default, \ - --enable-shared \ - --enable-static \ - ) +define Package/radiusclient-ng/description +$(call Package/radiusclient-ng/Default/description) + This package contains a RADIUS client. endef +TARGET_CFLAGS += $(FPIC) + +CONFIGURE_ARGS += \ + --enable-shared \ + --enable-static \ + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ DESTDIR="$(PKG_INSTALL_DIR)" \ @@ -72,18 +74,12 @@ define Build/Compile endef define Build/InstallDev - mkdir -p $(1)/usr/include + $(INSTALL_DIR) $(1)/usr/include $(CP) $(PKG_INSTALL_DIR)/usr/include/radiusclient-ng.h $(1)/usr/include/ - mkdir -p $(1)/usr/lib/ + $(INSTALL_DIR) $(1)/usr/lib/ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libradiusclient-ng.{a,so}* $(1)/usr/lib/ endef -define Build/UninstallDev - rm -rf \ - $(STAGING_DIR)/usr/include/radiusclient-ng.h \ - $(STAGING_DIR)/usr/lib/libradiusclient-ng.{a,so}* -endef - define Package/libradiusclient-ng/install $(INSTALL_DIR) $(1)/etc $(CP) $(PKG_INSTALL_DIR)/etc/radiusclient-ng $(1)/etc/ @@ -93,7 +89,7 @@ endef define Package/radiusclient-ng/install $(INSTALL_DIR) $(1)/usr/sbin - $(CP) $(PKG_INSTALL_DIR)/usr/sbin/rad{acct,iusclient,login,status} $(1)/usr/sbin/ + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/rad{acct,iusclient,login,status} $(1)/usr/sbin/ endef $(eval $(call BuildPackage,libradiusclient-ng))