diff options
author | Rosy Song <rosysong@rosinson.com> | 2018-09-24 10:48:12 +0800 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2018-09-28 23:13:22 +0200 |
commit | fcfb9e4ded51dbba4be33562b73c94f5fd8f1fdc (patch) | |
tree | bd7d88546896f094ca8925c3ceab96b2b99d8f45 /package/utils | |
parent | b47a9cd4ba699342f7a74bf104dd65f4ca59e7ed (diff) | |
download | upstream-fcfb9e4ded51dbba4be33562b73c94f5fd8f1fdc.tar.gz upstream-fcfb9e4ded51dbba4be33562b73c94f5fd8f1fdc.tar.bz2 upstream-fcfb9e4ded51dbba4be33562b73c94f5fd8f1fdc.zip |
util-linux: add eject support
Signed-off-by: Rosy Song <rosysong@rosinson.com>
Diffstat (limited to 'package/utils')
-rw-r--r-- | package/utils/util-linux/Makefile | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/package/utils/util-linux/Makefile b/package/utils/util-linux/Makefile index 4cb9e14a24..4c0260a998 100644 --- a/package/utils/util-linux/Makefile +++ b/package/utils/util-linux/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=util-linux PKG_VERSION:=2.32.1 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=@KERNEL/linux/utils/$(PKG_NAME)/v2.32 @@ -182,6 +182,18 @@ define Package/dmesg/description dmesg is used to examine or control the kernel ring buffer endef +define Package/eject +$(call Package/util-linux/Default) + TITLE:=eject removable media + DEPENDS:= +libblkid +libmount +libuuid + SUBMENU=Disc +endef + +define Package/eject/description + eject allows removable media (typically a CD-ROM, floppy disk, tape, or JAZ + or ZIP disk) to be ejected under software control. +endef + define Package/fdisk $(call Package/util-linux/Default) TITLE:=manipulate disk partition table @@ -595,6 +607,11 @@ define Package/dmesg/install $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dmesg $(1)/usr/bin/ endef +define Package/eject/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/eject $(1)/usr/bin/ +endef + define Package/fdisk/install $(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fdisk $(1)/usr/sbin/ @@ -753,6 +770,7 @@ $(eval $(call BuildPackage,blockdev)) $(eval $(call BuildPackage,cal)) $(eval $(call BuildPackage,cfdisk)) $(eval $(call BuildPackage,dmesg)) +$(eval $(call BuildPackage,eject)) $(eval $(call BuildPackage,fdisk)) $(eval $(call BuildPackage,findfs)) $(eval $(call BuildPackage,flock)) |