1#
2# Copyright (C) 2007 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=parted
11PKG_VERSION:=3.0
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
16
17include $(INCLUDE_DIR)/package.mk
18
19define Package/parted
20  SECTION:=utils
21  CATEGORY:=Utilities
22  TITLE:=parted Partition editor
23  URL:=http://www.gnu.org/software/parted/index.shtml
24endef
25
26define Package/parted/description
27	parted Partition editor
28	http://www.gnu.org/software/parted/index.shtml
29endef
30
31define Build/Configure
32    $(call Build/Configure/Default, --without-readline)
33endef
34
35define Package/parted/install	
36	$(INSTALL_DIR) $(1)/usr/sbin
37	$(INSTALL_DIR) $(1)/usr/lib
38	$(CP) $(PKG_BUILD_DIR)/libparted/.libs/libparted.so* $(1)/usr/lib/
39	$(INSTALL_BIN) $(PKG_BUILD_DIR)/parted/.libs/parted $(1)/usr/sbin/parted	
40	$(INSTALL_BIN) $(PKG_BUILD_DIR)/partprobe/.libs/partprobe $(1)/usr/sbin/partprobe
41endef
42
43$(eval $(call BuildPackage,parted))
44