[openwrt/openwrt] util-linux: enable colrm util as package
LEDE Commits
lede-commits at lists.infradead.org
Fri Aug 11 09:19:37 PDT 2023
hauke pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/e99745659539e28102abd7421d418ec2dd7e3bc2
commit e99745659539e28102abd7421d418ec2dd7e3bc2
Author: Oskari Rauta <oskari.rauta at gmail.com>
AuthorDate: Tue Jul 11 21:06:30 2023 +0300
util-linux: enable colrm util as package
colrm is already built, package just isn't generated.
colrm can be used to remove columns from file/stdin.
Use cases vary, personally I needed it because I build openwrt
natively - and wolfssl configure script wants either colrm, or cut
but busybox's cut isn't accepted.
Built: x86_64, latest git
Tested: x86_64, latest git
Signed-off-by: Oskari Rauta <oskari.rauta at gmail.com>
(cherry picked from commit e21b4c9636d5dc07b303aa568cbf31b76f244397)
---
package/utils/util-linux/Makefile | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/package/utils/util-linux/Makefile b/package/utils/util-linux/Makefile
index 704d4f11ec..90724eb3f6 100644
--- a/package/utils/util-linux/Makefile
+++ b/package/utils/util-linux/Makefile
@@ -174,6 +174,17 @@ define Package/cfdisk/description
cfdisk is a curses-based program for partitioning any hard disk drive
endef
+define Package/colrm
+$(call Package/util-linux/Default)
+ TITLE:=colrm removes selected columns from a file
+ DEPENDS:=
+endef
+
+define Package/colrm/description
+ colrm removes selected columns from a file. Input is taken from
+ standard input. Output is sent to standard output.
+endef
+
define Package/dmesg
$(call Package/util-linux/Default)
TITLE:=print or control the kernel ring buffer
@@ -699,6 +710,11 @@ define Package/cfdisk/install
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/cfdisk $(1)/usr/sbin/
endef
+define Package/colrm/install
+ $(INSTALL_DIR) $(1)/usr/bin
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/colrm $(1)/usr/bin/
+endef
+
define Package/dmesg/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dmesg $(1)/usr/bin/
@@ -898,6 +914,7 @@ $(eval $(call BuildPackage,blkid))
$(eval $(call BuildPackage,blockdev))
$(eval $(call BuildPackage,cal))
$(eval $(call BuildPackage,cfdisk))
+$(eval $(call BuildPackage,colrm))
$(eval $(call BuildPackage,dmesg))
$(eval $(call BuildPackage,eject))
$(eval $(call BuildPackage,fdisk))
More information about the lede-commits
mailing list