Skip to content

Commit

Permalink
util-linux: add eject support
Browse files Browse the repository at this point in the history
Signed-off-by: Rosy Song <rosysong@rosinson.com>
  • Loading branch information
rosysong authored and hauke committed Sep 28, 2018
1 parent b47a9cd commit fcfb9e4
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion package/utils/util-linux/Makefile
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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/
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit fcfb9e4

Please sign in to comment.