Ticket #5998: 100-sfdisk.patch

File 100-sfdisk.patch, 1.9 KB (added by Cédric RICARD <cedric.ricard@…>, 8 years ago)
  • kamikaze/package/util-linux-ng/Makefile

     
    99 
    1010PKG_NAME:=util-linux-ng 
    1111PKG_VERSION:=2.13.0.1 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
    1515PKG_SOURCE_URL:=@KERNEL/linux/utils/$(PKG_NAME)/v2.13 
     
    4747 This package contains a utility for managing disk partition tables. 
    4848endef 
    4949 
     50define Package/sfdisk 
     51$(call Package/util-linux/Default) 
     52  TITLE:=Partition table manipulation utility (Command-line) 
     53  SUBMENU=disc 
     54endef 
     55 
     56define Package/sfdisk/description 
     57 This package contains a utility for managing disk partition tables using command-line only. 
     58endef 
     59 
    5060define Package/losetup 
    5161$(call Package/util-linux/Default) 
    5262  TITLE:=Loopback devices setup and control utility 
     
    90100define Build/Compile 
    91101        $(MAKE) -C $(PKG_BUILD_DIR)/disk-utils mkswap 
    92102        $(MAKE) -C $(PKG_BUILD_DIR)/mount swapon losetup umount mount 
    93         $(MAKE) -C $(PKG_BUILD_DIR)/fdisk fdisk cfdisk 
    94         $(MAKE) -C $(PKG_BUILD_DIR)/hwclock hwclock 
     103        $(MAKE) -C $(PKG_BUILD_DIR)/fdisk fdisk cfdisk sfdisk 
     104        $(MAKE) -C $(PKG_BUILD_DIR)/hwclock hwclock  
    95105endef 
    96106 
    97107define Package/fdisk/install 
     
    104114        $(INSTALL_BIN) $(PKG_BUILD_DIR)/fdisk/cfdisk $(1)/usr/sbin/ 
    105115endef 
    106116 
     117define Package/sfdisk/install 
     118        $(INSTALL_DIR) $(1)/usr/sbin 
     119        $(INSTALL_BIN) $(PKG_BUILD_DIR)/fdisk/sfdisk $(1)/usr/sbin/ 
     120endef 
     121 
    107122define Package/losetup/install 
    108123        $(INSTALL_DIR) $(1)/usr/sbin 
    109124        $(INSTALL_BIN) $(PKG_BUILD_DIR)/mount/losetup $(1)/usr/sbin/ 
     
    128143 
    129144$(eval $(call BuildPackage,fdisk)) 
    130145$(eval $(call BuildPackage,cfdisk)) 
     146$(eval $(call BuildPackage,sfdisk)) 
    131147$(eval $(call BuildPackage,losetup)) 
    132148$(eval $(call BuildPackage,mount-utils)) 
    133149$(eval $(call BuildPackage,swap-utils))