lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (1402B)


      1 #
      2 # Copyright (C) 2007-2011 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:=flent-tools
     11 PKG_VERSION:=1.0.1
     12 PKG_LICENSE:=GPLv3
     13 
     14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_REV).tar.gz
     15 PKG_SOURCE_PROTO:=git
     16 PKG_SOURCE_URL:=https://github.com/tohojo/flent
     17 PKG_REV:=03c72cc340def354024351b6500774b11170d5ba
     18 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
     19 PKG_SOURCE_VERSION:=$(PKG_REV)
     20 
     21 include $(INCLUDE_DIR)/package.mk
     22 
     23 define Package/flent-tools
     24   SECTION:=util
     25   CATEGORY:=Utilities
     26   TITLE:=Helper programs for the Flent test tool
     27   URL:=https://flent.org
     28   MAINTAINER:=Toke Høiland-Jørgensen <toke@toke.dk>
     29   DEPENDS+=+librt
     30 endef
     31 
     32 define Package/flent-tc_iterate/description
     33 	This builds the C helper programs for gathering data for
     34 	the Flent network testing tool. These tools are needed for
     35 	gathering data when a Bash shell is not available (and also
     36 	perform better than the shell equivalents).
     37 endef
     38 
     39 define Build/Compile
     40 	$(MAKE) -C $(PKG_BUILD_DIR)/misc \
     41 		CC="$(TARGET_CC)" \
     42 		CFLAGS="$(TARGET_CFLAGS) -std=gnu99"
     43 endef
     44 
     45 define Package/flent-tools/install
     46 	$(INSTALL_DIR) $(1)/usr/sbin
     47 	$(INSTALL_BIN) $(PKG_BUILD_DIR)/misc/tc_iterate $(1)/usr/sbin/
     48 	$(INSTALL_BIN) $(PKG_BUILD_DIR)/misc/wifistats_iterate $(1)/usr/sbin/
     49 endef
     50 
     51 $(eval $(call BuildPackage,flent-tools))