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.

40 lines
793 B

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=autopart
  3. PKG_VERSION:=0.1
  4. PKG_RELEASE:=$(AUTORELEASE)
  5. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  6. PKG_LICENSE:=GPL-2.0-or-later
  7. include $(INCLUDE_DIR)/package.mk
  8. define Package/autopart
  9. SECTION:=utils
  10. CATEGORY:=Utilities
  11. SUBMENU:=Disc
  12. TITLE:=Automatically initialize LVM partition
  13. DEPENDS:=+lvm2 +partx-utils +sfdisk
  14. PKGARCH=all
  15. endef
  16. define Package/autopart/description
  17. Automatically allocate the GPT partition for LVM and initialize it
  18. on first boot.
  19. endef
  20. define Build/Prepare
  21. endef
  22. define Build/Configure
  23. endef
  24. define Build/Compile
  25. endef
  26. define Package/autopart/install
  27. $(INSTALL_DIR) $(1)/etc/uci-defaults
  28. $(INSTALL_BIN) ./files/autopart $(1)/etc/uci-defaults/30-autopart
  29. endef
  30. $(eval $(call BuildPackage,autopart))