Changeset 4258


Ignore:
Timestamp:
2006-07-24T15:04:12+02:00 (12 years ago)
Author:
nico
Message:

port e2fsprogs to buildroot-ng

Location:
packages/utils/e2fsprogs
Files:
2 deleted
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • packages/utils/e2fsprogs/Makefile

    r3112 r4258  
     1#  
     2# Copyright (C) 2006 OpenWrt.org 
     3# 
     4# This is free software, licensed under the GNU General Public License v2. 
     5# See /LICENSE for more information. 
     6# 
    17# $Id$ 
    28 
     
    612PKG_VERSION:=1.38 
    713PKG_RELEASE:=1 
     14 
     15PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
     16PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     17PKG_SOURCE_URL:=@SF/e2fsprogs 
    818PKG_MD5SUM:=d774d4412bfb80d12cf3a4fdfd59de5a 
    9  
    10 PKG_SOURCE_URL:=@SF/e2fsprogs 
    11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
    1219PKG_CAT:=zcat 
    1320 
    14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
    1521PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install 
    1622 
    17 include $(TOPDIR)/package/rules.mk 
     23include $(INCLUDE_DIR)/package.mk 
    1824 
    19 $(eval $(call PKG_template,E2FSPROGS,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) 
     25define Package/e2fsprogs 
     26  SECTION:=utils 
     27  CATEGORY:=Utilities 
     28  TITLE:=Ext2/3 filesystem utilities 
     29  DESCRIPTION:=Ext2/3 filesystem utilities.\\\ 
     30    This package contains essential ext2 filesystem utilities which consists of \\\ 
     31    e2fsck, mke2fs, debugfs, dumpe2fs, tune2fs, and most of the other core ext2 \\\ 
     32    filesystem utilities. 
     33  URL:=http://e2fsprogs.sourceforge.net/ 
     34endef 
    2035 
    21 $(PKG_BUILD_DIR)/.configured: 
     36define Build/Configure 
    2237        (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \ 
    2338                $(TARGET_CONFIGURE_OPTS) \ 
     
    5267                        --enable-dynamic-e2fsck \ 
    5368        ); 
    54         touch $@ 
     69endef 
    5570 
    56 $(PKG_BUILD_DIR)/.built: 
     71define Build/Compile 
    5772        rm -rf $(PKG_INSTALL_DIR) 
    5873        mkdir -p $(PKG_INSTALL_DIR) 
     
    6580                DESTDIR="$(PKG_INSTALL_DIR)" \ 
    6681                all install 
    67         touch $@ 
    68         touch $@ 
     82endef 
    6983 
    70 $(IPKG_E2FSPROGS): 
    71         mkdir -p $(IDIR_E2FSPROGS)/sbin 
    72         $(CP) $(PKG_INSTALL_DIR)/sbin/e2fsck $(IDIR_E2FSPROGS)/sbin/ 
    73         $(CP) $(PKG_INSTALL_DIR)/sbin/mke2fs $(IDIR_E2FSPROGS)/sbin/ 
    74         $(CP) $(PKG_INSTALL_DIR)/sbin/mkfs.ext{2,3} $(IDIR_E2FSPROGS)/sbin/ 
    75         $(CP) $(PKG_INSTALL_DIR)/sbin/tune2fs $(IDIR_E2FSPROGS)/sbin/ 
    76         mkdir -p $(IDIR_E2FSPROGS)/usr/lib 
    77         $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{blkid,com_err,e2p,ext2fs,uuid}.so.* $(IDIR_E2FSPROGS)/usr/lib/ 
    78         $(RSTRIP) $(IDIR_E2FSPROGS) 
    79         $(IPKG_BUILD) $(IDIR_E2FSPROGS) $(PACKAGE_DIR) 
     84define Package/e2fsprogs/install 
     85        install -d -m0755 $(1)/sbin 
     86        $(CP) $(PKG_INSTALL_DIR)/sbin/e2fsck $(1)/sbin/ 
     87        $(CP) $(PKG_INSTALL_DIR)/sbin/mke2fs $(1)/sbin/ 
     88        $(CP) $(PKG_INSTALL_DIR)/sbin/mkfs.ext{2,3} $(1)/sbin/ 
     89        $(CP) $(PKG_INSTALL_DIR)/sbin/tune2fs $(1)/sbin/ 
     90        install -d -m0755 $(1)/usr/lib 
     91        $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{blkid,com_err,e2p,ext2fs,uuid}.so.* $(1)/usr/lib/ 
     92endef 
     93 
     94$(eval $(call BuildPackage,e2fsprogs)) 
Note: See TracChangeset for help on using the changeset viewer.