DESCRIPTION:= is obselete
[packages.git] / net / slurm / 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:=slurm
12 PKG_VERSION:=0.3.3
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.wormulon.net/files/code/slurm/
17 PKG_MD5SUM:=e68d09202b835c644f7f6b7f070f29a2
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/slurm
26   SECTION:=net
27   CATEGORY:=Network
28   DEPENDS:=+libncurses
29   TITLE:=A realtime network interface monitor
30   URL:=http://www.wormulon.net/projects/slurm
31 endef
32
33 define Package/slurm/description
34         A realtime network interface monitor with the following features: 
35         - realtime traffic statistics divided into incoming and outgoing ;
36         - optional combined view ;
37         - can monitor any kind of network interface ;
38         - shows detailed statistics about the interface ;
39         - it's themeable.
40 endef
41
42 define Build/Configure  
43         (cd $(PKG_BUILD_DIR); touch \
44                 configure.in \
45                 aclocal.m4 \
46                 Makefile.in \
47                 config.h.in \
48                 configure \
49         );
50         $(call Build/Configure/Default, \
51                 , \
52                 LIBS="-lncurses" \
53                 ac_cv_lib_ncurses_use_default_colors=yes \
54         )
55 endef
56
57 define Build/Compile    
58         $(MAKE) -C $(PKG_BUILD_DIR) \
59                 DESTDIR="$(PKG_INSTALL_DIR)" \
60                 all install
61 endef
62
63 define Package/slurm/install    
64         $(INSTALL_DIR) $(1)/usr/bin
65         $(CP) $(PKG_INSTALL_DIR)/usr/bin/slurm $(1)/usr/bin/
66 endef
67
68 $(eval $(call BuildPackage,slurm))