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