mirror of
https://github.com/openwrt/packages.git
synced 2026-10-14 01:17:27 +04:00
Update to the latest upstream stable release and add a functional test.sh that pipes a small text stream and a 256 KiB binary stream through pv, checking both arrive unchanged. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
51 lines
1.4 KiB
Makefile
51 lines
1.4 KiB
Makefile
#
|
|
# Copyright (C) 2008 David Cooper
|
|
# Copyright (C) 2008-2014 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=pv
|
|
PKG_VERSION:=1.11.0
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://www.ivarch.com/programs/sources
|
|
PKG_HASH:=fc02c9fc2b82b20a92cc8d98f844be63f22abd98751a8e4abc875e1d803662eb
|
|
PKG_LICENSE:=GPL-3.0-or-later
|
|
PKG_LICENSE_FILES:=docs/COPYING
|
|
PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/pv
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE:=Shell pipeline element to meter data passing through
|
|
URL:=https://www.ivarch.com/programs/pv.shtml
|
|
DEPENDS:=+libncursesw
|
|
endef
|
|
|
|
define Package/pv/description
|
|
Pipe Viewer is a terminal-based tool for monitoring the progress of data
|
|
through a pipeline. It can be inserted into any normal pipeline between
|
|
two processes to give a visual indication of how quickly data is passing
|
|
through, how long it has taken, how near to completion it is, and an
|
|
estimate of how long it will be until completion.
|
|
endef
|
|
|
|
CONFIGURE_ARGS += --with-ncurses
|
|
|
|
define Package/pv/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pv $(1)/usr/bin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,pv))
|
|
|