You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.4 KiB

  1. # SPDX-License-Identifier: GPL-2.0-only
  2. include $(TOPDIR)/rules.mk
  3. PKG_NAME:=parted
  4. PKG_VERSION:=3.4
  5. PKG_RELEASE:=$(AUTORELEASE)
  6. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  7. PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/parted/
  8. PKG_HASH:=e1298022472da5589b7f2be1d5ee3c1b66ec3d96dfbad03dc642afd009da5342
  9. PKG_BUILD_PARALLEL:=1
  10. PKG_INSTALL:=1
  11. PKG_MAINTAINER:=Oskari Rauta <oskari.rauta@gmail.com>
  12. include $(INCLUDE_DIR)/package.mk
  13. define Package/parted
  14. SECTION:=utils
  15. CATEGORY:=Utilities
  16. TITLE:=GNU Parted
  17. SUBMENU:=Disc
  18. DEPENDS:=+libblkid +libuuid +PARTED_READLINE:libreadline +CONFIG_PARTED_READLINE:libncurses +PARTED_LVM2:libdevmapper
  19. endef
  20. define Package/parted/description
  21. GNU Parted manipulates partition tables. This is useful for
  22. creating space for new operating systems, reorganizing
  23. disk usage, copying data on hard disks and disk imaging.
  24. endef
  25. define Package/parted/config
  26. source "$(SOURCE)/Config.in"
  27. endef
  28. ifneq ($(CONFIG_PARTED_READLINE),y)
  29. CONFIGURE_ARGS += --without-readline
  30. endif
  31. ifneq ($(CONFIG_PARTED_LVM2),y)
  32. CONFIGURE_ARGS += --disable-device-mapper
  33. endif
  34. define Package/parted/install
  35. $(INSTALL_DIR) $(1)/usr/lib $(1)/sbin
  36. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so** $(1)/usr/lib/
  37. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/parted $(1)/sbin/
  38. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/partprobe $(1)/sbin/
  39. endef
  40. $(eval $(call BuildPackage,parted))