From: Florian Fainelli Date: Mon, 7 Aug 2006 09:57:40 +0000 (+0000) Subject: Port raddump to -ng X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=097c95f28c937b0d0b381a7cbd9e52431b3adce4 Port raddump to -ng SVN-Revision: 4503 --- diff --git a/net/raddump/Makefile b/net/raddump/Makefile new file mode 100755 index 0000000000..11e1bb38f3 --- /dev/null +++ b/net/raddump/Makefile @@ -0,0 +1,51 @@ +# +# Copyright (C) 2006 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:=raddump +PKG_VERSION:=0.3.1 +PKG_RELEASE:=1 +PKG_MD5SUM:=f8c29c67141ea78bb6ae8b97d5149480 +PKG_SOURCE_URL:=@SF/raddump +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_CAT:=zcat + +PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install + +include $(INCLUDE_DIR)/package.mk + +define Package/raddump + SECTION:=net + CATEGORY:=Network + DEPENDS:=+libpcap +libopenssl + TITLE:=raddump interprets captured RADIUS packets. + DESCRIPTION:=raddump interprets captured RADIUS packets to print a\\\ + timestamp, packet length, RADIUS packet type, source and\\\ + destination hosts and ports, and included attribute names and\\\ + values for each packet.\\\ + URL:=http://sourceforge.net/projects/raddump +endef + +define Build/Configure +$(call Build/Configure/Default,,ac_cv_c_bigendian=no \ + ac_cv_func_malloc_0_nonnull=yes \ + ac_cv_func_realloc_0_nonnull=yes) +endef + +define Build/Compile + $(MAKE) DESTDIR=$(PKG_INSTALL_DIR) -C $(PKG_BUILD_DIR) install +endef + +define Package/raddump/install + mkdir -p $(1) + $(CP) $(PKG_INSTALL_DIR)/* $(1)/ +endef + +$(eval $(call BuildPackage,raddump))