Sorry for the long delay.
Real life got in the way of getting this done.

On Sun, 2012-03-18 at 22:36 +0100, Jo-Philipp Wich wrote:
<snip>
I have removed the part of the patch that configures the kernel.


> > +PKG_BUILD_DIR:=$(BUILD_DIR)/parted-$(PKG_VERSION)
> 
> This defaults to "$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)" so it should
> be safe to remove.
Removed

> > +PKG_CAT:=zcat
> 
> The decompression method is derived from the PKG_SOURCE extension so it
> can be dropped as well.
Dropped.


> > +   DEFAULT:=n
> 
> That would cause the package to be never built for releases and
> snapshots, probably not what you want. I suggest to remove the kernel
> config overrides and this default-off as well.

Removed and removed.

> > +define Package/parted/config
> > +   source "$(SOURCE)/Config.in"
> > +endef
> > +
> > +define Build/Configure
> > +   $(call Build/Configure/Default, \
> > +                --enable-static \
> > +        )
> > +endef
> 
> You can drop the entire section and add

>   CONFIGURE_ARGS += --enable-static
> instead.

Removed and replaced.


> ~ Jow

Thanks for your feedback.

New patch attached.

Index: package/parted/Makefile
===================================================================
--- package/parted/Makefile	(revision 0)
+++ package/parted/Makefile	(revision 0)
@@ -0,0 +1,51 @@
+#
+# Copyright (C) 2012 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:=2.4
+PKG_RELEASE:=1
+
+PKG_SOURCE:=parted-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=@GNU/parted
+PKG_MD5SUM:=76a6457ea88447d79d50ca331069b19c
+CONFIGURE_ARGS:=--enable-static
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/parted
+	SECTION:=utils
+	CATEGORY:=Utilities
+	SUBMENU:=disc
+	DEFAULT:=y
+	TITLE:=GNU Parted manipulates partition tables
+	URL:=http://www.gnu.org/software/parted/
+	DEPENDS:= +libuuid +libreadline +libncurses +libdevmapper
+endef
+
+define Package/parted/description
+	GNU Parted manipulates partition tables. This is useful for creating 
+	space for new operating systems, reorganizing disk usage, copying data 
+	on hard disks and disk imaging. The package contains a library, 
+	libparted, as well as well as a command-line frontend, parted, 
+	which can also be used in scripts.
+endef
+
+define Package/parted/config
+	source "$(SOURCE)/Config.in"
+endef
+
+define Package/parted/install
+	$(INSTALL_DIR) $(1)/usr/lib
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/libparted/.libs/libparted.so.0 $(1)/usr/lib
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/libparted/.libs/libparted.so.0 $(1)/usr/lib
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/libparted/.libs/libparted.so.0.0.2 $(1)/usr/lib
+	$(INSTALL_DIR) $(1)/usr/sbin
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/parted/.libs/parted $(1)/usr/sbin/
+endef
+
+$(eval $(call BuildPackage,parted))
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to