lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (2599B)


      1 #
      2 # Copyright (C) 2016 Daniel Engberg <daniel.engberg.lists@pyret.net>
      3 #
      4 #
      5 # This is free software, licensed under the GNU General Public License v2.
      6 # See /LICENSE for more information.
      7 #
      8 
      9 include $(TOPDIR)/rules.mk
     10 
     11 PKG_NAME:=gptfdisk
     12 PKG_VERSION:=1.0.1
     13 PKG_RELEASE:=1
     14 
     15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
     16 PKG_SOURCE_URL:=@SF/gptfdisk
     17 PKG_MD5SUM:=d7f3d306b083123bcc6f5941efade586
     18 
     19 include $(INCLUDE_DIR)/package.mk
     20 
     21 define Package/gptfdisk/default
     22   SECTION:=utils
     23   CATEGORY:=Utilities
     24   SUBMENU:=Disc
     25   URL:=http://www.rodsbooks.com/gdisk
     26   MAINTAINER:=Daniel Engberg <daniel.engberg.lists@pyret.net>
     27 endef
     28 
     29 define Package/gdisk
     30   $(call Package/gptfdisk/default)
     31   TITLE:=GPT partition table manipulation utility
     32   DEPENDS:=+libstdcpp +libuuid +libpopt
     33 endef
     34 
     35 define Package/gdisk/description
     36  GPT partition table manipulation utility with an interface
     37  similar to fdisk. It can read and convert MBR partitions in GPT
     38  but is otherwise unable to generate or modify MBR partitions.
     39 endef
     40 
     41 define Package/sgdisk
     42   $(call Package/gptfdisk/default)
     43   TITLE:=script-friendly GPT partition table manipulation utility
     44   DEPENDS:=+libstdcpp +libuuid +libpopt
     45 endef
     46 
     47 define Package/sgdisk/description
     48  Script-friendly GPT partition table manipulation utility.
     49  It can read and convert MBR partitions in GPT but is otherwise
     50  unable to generate or modify MBR partitions.
     51  To the contrary of gdisk, its interface is geared towards scripts,
     52  so it takes command line arguments instead of being interactive.
     53  It will NOT ask confirmation before carrying out the operations.
     54  It has a slightly smaller footprint than gdisk tool.
     55 endef
     56 
     57 define Package/cgdisk
     58  $(call Package/gptfdisk/default)
     59  TITLE:=ncurses-based GPT partition table manipulation utility
     60  DEPENDS:=+libstdcpp +libuuid +libncurses +libpopt
     61 endef
     62 
     63 define Package/cgdisk/description
     64 ncurses-based partition table manipulation utility with GPT support.
     65 Similar to sfdisk, but works with GPT partitions. Shares the same limitations
     66 of the gdisk partition utility. While it can read and convert MBR partitions
     67 in GPT, it cannot modify MBR partitions on its own.
     68 endef
     69 
     70 define Package/gdisk/install
     71 	$(INSTALL_DIR) $(1)/usr/sbin
     72 	$(INSTALL_BIN) $(PKG_BUILD_DIR)/gdisk $(1)/usr/sbin
     73 endef
     74 
     75 define Package/sgdisk/install
     76 	$(INSTALL_DIR) $(1)/usr/sbin
     77 	$(INSTALL_BIN) $(PKG_BUILD_DIR)/sgdisk $(1)/usr/sbin
     78 endef
     79 
     80 define Package/cgdisk/install
     81 	$(INSTALL_DIR) $(1)/usr/sbin
     82 	$(INSTALL_BIN) $(PKG_BUILD_DIR)/cgdisk $(1)/usr/sbin
     83 endef
     84 
     85 $(eval $(call BuildPackage,gdisk))
     86 $(eval $(call BuildPackage,sgdisk))
     87 $(eval $(call BuildPackage,cgdisk))