2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
14 PKG_MD5SUM
:=e68d09202b835c644f7f6b7f070f29a2
16 PKG_SOURCE_URL
:=http
://www.wormulon.net
/files
/code
/slurm
/
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
22 include $(INCLUDE_DIR
)/package.mk
27 TITLE
:=A realtime network interface monitor
28 DESCRIPTION
:=A realtime network interface monitor with the following features
:\\\
29 * realtime traffic statistics divided into incoming and outgoing
\\\
30 * optional combined view
\\\
31 * can monitor any kind of network interface
\\\
32 * shows detailed statistics about the interface.
\\\
34 URL:=http://www.wormulon.net/projects/slurm
37 define Build/Configure
38 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
44 $(TARGET_CONFIGURE_OPTS) \
45 CFLAGS="$(TARGET_CFLAGS)" \
46 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
47 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
49 ac_cv_func_malloc_0_nonnull=yes \
50 ac_cv_lib_ncurses_use_default_colors=yes \
52 --target=$(GNU_TARGET_NAME) \
53 --host=$(GNU_TARGET_NAME) \
54 --build=$(GNU_HOST_NAME) \
60 --datadir=/usr/share \
61 --includedir=/usr/include \
62 --infodir=/usr/share/info \
64 --libexecdir=/usr/lib \
65 --localstatedir=/var \
66 --mandir=/usr/share/man \
69 $(DISABLE_LARGEFILE) \
75 rm -rf $(PKG_INSTALL_DIR)
76 mkdir -p $(PKG_INSTALL_DIR)
77 $(MAKE) -C $(PKG_BUILD_DIR) \
78 DESTDIR="$(PKG_INSTALL_DIR)" \
82 define Package/slurm/install
83 install -d -m0755 $(1)/usr/bin
84 $(CP) $(PKG_INSTALL_DIR)/usr/bin/slurm $(1)/usr/bin/
87 $(eval $(call BuildPackage,slurm))