2016-11-23 18:13:00 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2016 Nikil Mehta <nikil.mehta@gmail.com>
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=moreutils
|
2021-06-02 02:02:51 +00:00
|
|
|
PKG_VERSION:=0.65
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 16:32:27 +00:00
|
|
|
PKG_RELEASE:=1
|
2016-11-23 18:13:00 +00:00
|
|
|
|
2019-02-02 19:19:50 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2018-09-02 22:19:02 +00:00
|
|
|
PKG_SOURCE_URL:=https://git.kitenet.net/index.cgi/moreutils.git/snapshot
|
2021-06-02 02:02:51 +00:00
|
|
|
PKG_HASH:=60c9f6b55204e64cfcd12fd66e75cf7a061b6761f3d5b7797f2452cb17598881
|
2016-11-23 18:13:00 +00:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Nikil Mehta <nikil.mehta@gmail.com>
|
2020-09-02 22:25:02 +00:00
|
|
|
PKG_LICENSE:=GPL-2.0-or-later
|
2016-11-23 18:13:00 +00:00
|
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
2020-09-02 22:25:02 +00:00
|
|
|
PKG_BUILD_PARALLEL:=0
|
2016-11-23 18:13:00 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/moreutils
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=additional Unix utilities
|
|
|
|
URL:=https://joeyh.name/code/moreutils/
|
|
|
|
DEPENDS:=+perl +perlbase-file +perlbase-getopt +perlbase-io +perlbase-ipc +perlbase-posix
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/moreutils/description
|
|
|
|
This is a growing collection of the Unix tools that nobody thought
|
|
|
|
to write long ago, when Unix was young.
|
|
|
|
.
|
|
|
|
So far, it includes the following utilities:
|
|
|
|
- chronic: runs a command quietly unless it fails
|
|
|
|
- combine: combine the lines in two files using boolean operations
|
|
|
|
- errno: look up errno names and descriptions
|
|
|
|
- ifdata: get network interface info without parsing ifconfig output
|
|
|
|
- ifne: run a program if the standard input is not empty
|
|
|
|
- isutf8: check if a file or standard input is utf-8
|
|
|
|
- lckdo: execute a program with a lock held
|
|
|
|
- mispipe: pipe two commands, returning the exit status of the first
|
|
|
|
- parallel: run multiple jobs at once
|
|
|
|
- pee: tee standard input to pipes
|
|
|
|
- sponge: soak up standard input and write to a file
|
|
|
|
- ts: timestamp standard input
|
|
|
|
- vidir: edit a directory in your text editor
|
|
|
|
- vipe: insert a text editor into a pipe
|
|
|
|
- zrun: automatically uncompress arguments to command
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/moreutils/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,moreutils))
|