Makefile cleanups, round 6 and last
[packages.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
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/raddump
17 PKG_MD5SUM:=f8c29c67141ea78bb6ae8b97d5149480
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/raddump
22   SECTION:=net
23   CATEGORY:=Network
24   DEPENDS:=+libpcap +libopenssl
25   TITLE:=raddump interprets captured RADIUS packets.
26   URL:=http://sourceforge.net/projects/raddump
27 endef
28
29 define Package/raddump/description
30         raddump interprets captured RADIUS packets to print a 
31         timestamp, packet length, RADIUS packet type, source and 
32         destination hosts and ports, and included attribute names and 
33         values for each packet.
34 endef
35
36 # uses GNU configure
37
38 define Build/Compile    
39         $(MAKE) -C $(PKG_BUILD_DIR) \
40                 DESTDIR="$(PKG_INSTALL_DIR)" \
41                 all install
42 endef
43
44 define Package/raddump/install  
45         $(INSTALL_DIR) $(1)/usr/bin
46         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/raddump $(1)/usr/bin/
47 endef
48
49 $(eval $(call BuildPackage,raddump))