By default OpenWRT's /var is a symlink to /tmp.
[openwrt/svn-archive/archive.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
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/slurm
22 SECTION:=net
23 CATEGORY:=Network
24 DEPENDS:=+libncurses
25 TITLE:=A realtime network interface monitor
26 URL:=http://www.wormulon.net/projects/slurm
27 endef
28
29 define Package/slurm/description
30 A realtime network interface monitor with the following features:
31 - realtime traffic statistics divided into incoming and outgoing ;
32 - optional combined view ;
33 - can monitor any kind of network interface ;
34 - shows detailed statistics about the interface ;
35 - it's themeable.
36 endef
37
38 define Build/Configure
39 (cd $(PKG_BUILD_DIR); touch \
40 configure.in \
41 aclocal.m4 \
42 Makefile.in \
43 config.h.in \
44 configure \
45 );
46 $(call Build/Configure/Default, \
47 , \
48 LIBS="-lncurses" \
49 ac_cv_lib_ncurses_use_default_colors=yes \
50 )
51 endef
52
53 define Build/Compile
54 $(MAKE) -C $(PKG_BUILD_DIR) \
55 DESTDIR="$(PKG_INSTALL_DIR)" \
56 all install
57 endef
58
59 define Package/slurm/install
60 $(INSTALL_DIR) $(1)/usr/bin
61 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/slurm $(1)/usr/bin/
62 endef
63
64 $(eval $(call BuildPackage,slurm))