Changeset 4257


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

port dosfstools to buildroot-ng

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

Legend:

Unmodified
Added
Removed
  • packages/utils/dosfstools/Makefile

    r3112 r4257  
     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:=2.11 
    713PKG_RELEASE:=1 
     14 
     15PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
    816PKG_MD5SUM:=407d405ade410f7597d364ab5dc8c9f6 
    9  
     17PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).src.tar.gz 
    1018PKG_SOURCE_URL:=ftp://ftp.uni-erlangen.de/pub/Linux/LOCAL/dosfstools/ 
    11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).src.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,DOSFSTOOLS,dosfstools,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) 
     25define Package/dosfstools 
     26  SECTION:=utils 
     27  CATEGORY:=Utilities 
     28  TITLE:=MS-DOS FAT filesystems utilities 
     29  DESCRIPTION:=MS-DOS FAT filesystems utilities.\\\ 
     30    Utilities to create and check MS-DOS FAT filesystems. 
     31  URL:=ftp://ftp.uni-erlangen.de:/pub/Linux/LOCAL/dosfstools/ 
     32endef 
    2033 
    21 $(PKG_BUILD_DIR)/.configured: 
    22         touch $@ 
     34define Build/Configure 
     35endef 
    2336 
    24 $(PKG_BUILD_DIR)/.built: 
     37define Build/Compile 
    2538        rm -rf $(PKG_INSTALL_DIR) 
    2639        mkdir -p $(PKG_INSTALL_DIR) 
     
    3043                PREFIX="$(PKG_INSTALL_DIR)" \ 
    3144                all install 
    32         touch $@ 
     45endef 
    3346 
    34 $(IPKG_DOSFSTOOLS): 
    35         install -d -m0755 $(IDIR_DOSFSTOOLS)/sbin 
    36         $(CP) $(PKG_INSTALL_DIR)/sbin/dosfsck $(IDIR_DOSFSTOOLS)/sbin/ 
    37         $(CP) $(PKG_INSTALL_DIR)/sbin/fsck.{msdos,vfat} $(IDIR_DOSFSTOOLS)/sbin/ 
    38         $(CP) $(PKG_INSTALL_DIR)/sbin/mkdosfs $(IDIR_DOSFSTOOLS)/sbin/ 
    39         $(CP) $(PKG_INSTALL_DIR)/sbin/mkfs.{msdos,vfat} $(IDIR_DOSFSTOOLS)/sbin/ 
    40         $(RSTRIP) $(IDIR_DOSFSTOOLS) 
    41         $(IPKG_BUILD) $(IDIR_DOSFSTOOLS) $(PACKAGE_DIR) 
     47define Package/dosfstools/install 
     48        install -d -m0755 $(1)/sbin 
     49        $(CP) $(PKG_INSTALL_DIR)/sbin/dosfsck $(1)/sbin/ 
     50        $(CP) $(PKG_INSTALL_DIR)/sbin/fsck.{msdos,vfat} $(1)/sbin/ 
     51        $(CP) $(PKG_INSTALL_DIR)/sbin/mkdosfs $(1)/sbin/ 
     52        $(CP) $(PKG_INSTALL_DIR)/sbin/mkfs.{msdos,vfat} $(1)/sbin/ 
     53endef 
    4254 
     55$(eval $(call BuildPackage,dosfstools)) 
Note: See TracChangeset for help on using the changeset viewer.