Add "parted" partition editor to packages. It supports the GUID partition table
which is NOT supported by fdisk e.g.
Signed-off-by: Phileas Fogg <[email protected]>
---
--- /dev/null 2012-01-31 17:14:32.754366764 +0100
+++ b/feeds/packages/utils/parted/Makefile 2012-01-31 19:19:25.363563504
+0100
@@ -0,0 +1,45 @@
+#
+# Copyright (C) 2007 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=parted
+PKG_VERSION:=3.0
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/parted
+ SECTION:=utils
+ CATEGORY:=Utilities
+ SUBMENU:=disc
+ TITLE:=parted Partition editor
+ DEPENDS=+libreadline +libncurses
+ URL:=http://www.gnu.org/software/parted/index.shtml
+endef
+
+define Package/parted/description
+ parted Partition editor
+ http://www.gnu.org/software/parted/index.shtml
+endef
+
+define Build/Configure
+ $(call Build/Configure/Default, --with-readline --disable-device-mapper)
+endef
+
+define Package/parted/install
+ $(INSTALL_DIR) $(1)/usr/sbin
+ $(INSTALL_DIR) $(1)/usr/lib
+ $(CP) $(PKG_BUILD_DIR)/libparted/.libs/libparted.so* $(1)/usr/lib/
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/parted/.libs/parted $(1)/usr/sbin/parted
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/partprobe/.libs/partprobe
$(1)/usr/sbin/partprobe
+endef
+
+$(eval $(call BuildPackage,parted))
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel