1
0

Makefile 2.5 KB

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