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