2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).src.tar.gz
16 PKG_SOURCE_URL:=ftp://ftp.uni-erlangen.de/pub/Linux/LOCAL/dosfstools/
17 PKG_MD5SUM:=407d405ade410f7597d364ab5dc8c9f6
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23 include $(INCLUDE_DIR)/package.mk
25 define Package/dosfstools
28 TITLE:=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/
34 define Build/Configure
38 $(MAKE) -C $(PKG_BUILD_DIR) \
39 $(TARGET_CONFIGURE_OPTS) \
40 OPTFLAGS="$(TARGET_CFLAGS) -D_FILE_OFFSET_BITS=64" \
44 $(MAKE) -C $(PKG_BUILD_DIR) \
45 $(TARGET_CONFIGURE_OPTS) \
46 OPTFLAGS="$(TARGET_CFLAGS) -D_FILE_OFFSET_BITS=64" \
47 PREFIX="$(PKG_INSTALL_DIR)/usr" \
48 SBINDIR="$(PKG_INSTALL_DIR)/usr/sbin" \
52 define Package/dosfstools/install
53 $(INSTALL_DIR) $(1)/usr/sbin
54 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/dosfsck $(1)/usr/sbin/
55 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/fsck.{msdos,vfat} $(1)/usr/sbin/
56 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/mkdosfs $(1)/usr/sbin/
57 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/mkfs.{msdos,vfat} $(1)/usr/sbin/
60 $(eval $(call BuildPackage,dosfstools))