Skip to content

Commit

Permalink
utils/util-linux: hardlink package added
Browse files Browse the repository at this point in the history
fixed #517
  • Loading branch information
The-BB committed Aug 6, 2020
1 parent 40f116d commit 9d6d17c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
19 changes: 18 additions & 1 deletion package/utils/util-linux/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=util-linux
PKG_VERSION:=2.35.1
PKG_RELEASE:=1
PKG_RELEASE:=2

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@KERNEL/linux/utils/$(PKG_NAME)/v2.35
Expand Down Expand Up @@ -277,6 +277,17 @@ define Package/getopt/description
by shell procedures, and to check for legal options
endef

define Package/hardlink
$(call Package/util-linux/Default)
TITLE:=consolidate duplicate files using hardlinks
DEPENDS:=+libpcre2
SUBMENU:=Filesystem
endef

define Package/hardlink/description
Consolidate duplicate files using hardlinks.
endef

define Package/hwclock
$(call Package/util-linux/Default)
TITLE:=query or set the hardware clock
Expand Down Expand Up @@ -693,6 +704,11 @@ define Package/ionice/install
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/opt/bin/ionice $(1)/opt/bin/
endef

define Package/hardlink/install
$(INSTALL_DIR) $(1)/opt/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/opt/bin/hardlink $(1)/opt/bin/
endef

define Package/hwclock/install
$(INSTALL_DIR) $(1)/opt/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/opt/sbin/hwclock $(1)/opt/sbin/
Expand Down Expand Up @@ -841,6 +857,7 @@ $(eval $(call BuildPackage,fsfreeze))
$(eval $(call BuildPackage,fstrim))
$(eval $(call BuildPackage,getopt))
$(eval $(call BuildPackage,ionice))
$(eval $(call BuildPackage,hardlink))
$(eval $(call BuildPackage,hwclock))
$(eval $(call BuildPackage,logger))
$(eval $(call BuildPackage,look))
Expand Down
8 changes: 4 additions & 4 deletions package/utils/util-linux/patches/600-entware-paths.patch
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/include/pathnames.h
+++ b/include/pathnames.h
@@ -21,17 +21,17 @@
@@ -20,17 +20,17 @@
#undef _PATH_DEFPATH

#ifdef USE_USRDIR_PATHS_ONLY
Expand All @@ -22,7 +22,7 @@
#endif

#define _PATH_HUSHLOGIN ".hushlogin"
@@ -58,11 +58,11 @@
@@ -57,11 +57,11 @@
#define _PATH_TERMCOLORS_DIR "/etc/" _PATH_TERMCOLORS_DIRNAME

/* login paths */
Expand All @@ -37,5 +37,5 @@
+#define _PATH_SHADOW_PASSWD "/opt/etc/shadow"
+#define _PATH_SHELLS "/opt/etc/shells"

#ifndef _PATH_BTMP
# define _PATH_BTMP "/var/log/btmp"
#ifndef _PATH_TMP
# define _PATH_TMP "/tmp/"

0 comments on commit 9d6d17c

Please sign in to comment.