c9af3099d3933ad27605c9d9f04b885ed8011777
[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   DESCRIPTION:=\
31         A realtime network interface monitor with the following features: \\\
32         - realtime traffic statistics divided into incoming and outgoing ;\\\
33         - optional combined view ;\\\
34         - can monitor any kind of network interface ;\\\
35         - shows detailed statistics about the interface ;\\\
36         - it's themeable.
37   URL:=http://www.wormulon.net/projects/slurm
38 endef
39
40 define Build/Configure  
41         (cd $(PKG_BUILD_DIR); touch \
42                 configure.in \
43                 aclocal.m4 \
44                 Makefile.in \
45                 config.h.in \
46                 configure \
47         );
48         $(call Build/Configure/Default, \
49                 , \
50                 LIBS="-lncurses" \
51                 ac_cv_lib_ncurses_use_default_colors=yes \
52         )
53 endef
54
55 define Build/Compile    
56         $(MAKE) -C $(PKG_BUILD_DIR) \
57                 DESTDIR="$(PKG_INSTALL_DIR)" \
58                 all install
59 endef
60
61 define Package/slurm/install    
62         install -d -m0755 $(1)/usr/bin
63         $(CP) $(PKG_INSTALL_DIR)/usr/bin/slurm $(1)/usr/bin/
64 endef
65
66 $(eval $(call BuildPackage,slurm))