2 # Copyright (C) 2006-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://www.daniel-baumann.ch/software/dosfstools
16 PKG_MD5SUM:=8d2211d5bd813164e20740e7c852aa06
18 include $(INCLUDE_DIR)/package.mk
20 define Package/dosfstools/Default
23 URL:=http://www.daniel-baumann.ch/software/dosfstools/
27 define Package/dosfsck
28 $(call Package/dosfstools/Default)
32 define Package/dosfslabel
33 $(call Package/dosfstools/Default)
37 define Package/mkdosfs
38 $(call Package/dosfstools/Default)
42 define Package/dosfsck/description
43 Utilities to create and check MS-DOS FAT filesystems.
44 (fsck.vfat and fsck.msdos for checking integrity of FAT volumes)
47 define Package/dosfslabel/description
48 Utilities to create and check MS-DOS FAT filesystems.
49 (dosfslabel for reading and writing labels of FAT volumes)
52 define Package/mkdosfs/description
53 Utilities to create and check MS-DOS FAT filesystems.
54 (mkfs.vfat and mkfs.msdos for creating FAT volumes)
57 define Build/Configure
61 $(MAKE) -C $(PKG_BUILD_DIR) \
62 $(TARGET_CONFIGURE_OPTS) \
63 OPTFLAGS="$(TARGET_CFLAGS) -D_FILE_OFFSET_BITS=64" \
67 $(MAKE) -C $(PKG_BUILD_DIR) \
68 $(TARGET_CONFIGURE_OPTS) \
69 OPTFLAGS="$(TARGET_CFLAGS) -D_FILE_OFFSET_BITS=64" \
70 PREFIX="$(PKG_INSTALL_DIR)/usr" \
71 SBINDIR="$(PKG_INSTALL_DIR)/usr/sbin" \
75 define Package/dosfsck/install
76 $(INSTALL_DIR) $(1)/usr/sbin
77 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dosfsck $(1)/usr/sbin/
78 (cd $(1)/usr/sbin; ln -sf dosfsck fsck.msdos; ln -sf dosfsck fsck.vfat)
81 define Package/dosfslabel/install
82 $(INSTALL_DIR) $(1)/usr/sbin
83 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dosfslabel $(1)/usr/sbin/
86 define Package/mkdosfs/install
87 $(INSTALL_DIR) $(1)/usr/sbin
88 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mkdosfs $(1)/usr/sbin/
89 (cd $(1)/usr/sbin; ln -sf mkdosfs mkfs.msdos; ln -sf mkdosfs mkfs.vfat)
92 $(eval $(call BuildPackage,dosfsck))
93 $(eval $(call BuildPackage,dosfslabel))
94 $(eval $(call BuildPackage,mkdosfs))