cleanup
[openwrt/svn-archive/archive.git] / net / raddump / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=raddump
12 PKG_VERSION:=0.3.1
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=f8c29c67141ea78bb6ae8b97d5149480
15 PKG_SOURCE_URL:=@SF/raddump
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
18 PKG_CAT:=zcat
19
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/raddump
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=+libpcap +libopenssl
28 TITLE:=raddump interprets captured RADIUS packets.
29 DESCRIPTION:=raddump interprets captured RADIUS packets to print a\\\
30 timestamp, packet length, RADIUS packet type, source and\\\
31 destination hosts and ports, and included attribute names and\\\
32 values for each packet.\\\
33 URL:=http://sourceforge.net/projects/raddump
34 endef
35
36 define Build/Configure
37 $(call Build/Configure/Default)
38 endef
39
40 define Build/Compile
41 $(MAKE) DESTDIR=$(PKG_INSTALL_DIR) -C $(PKG_BUILD_DIR) install
42 endef
43
44 define Package/raddump/install
45 mkdir -p $(1)
46 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
47 endef
48
49 $(eval $(call BuildPackage,raddump))