2 # Copyright (C) 2006-2012 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.gz
15 PKG_SOURCE_URL
:=http
://fossies.org
/linux
/misc
16 PKG_MD5SUM
:=4c1f1e72b82371704f93ebdd3c7b6259
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)/lib
/functions
/fsck
77 $(INSTALL_DATA
) .
/files
/dosfsck.sh
$(1)/lib
/functions
/fsck
/
78 $(INSTALL_DIR
) $(1)/usr
/sbin
79 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dosfsck
$(1)/usr
/sbin
/
80 (cd
$(1)/usr
/sbin
; ln
-sf dosfsck fsck.msdos
; ln
-sf dosfsck fsck.vfat
)
83 define Package
/dosfslabel
/install
84 $(INSTALL_DIR
) $(1)/usr
/sbin
85 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dosfslabel
$(1)/usr
/sbin
/
88 define Package
/mkdosfs
/install
89 $(INSTALL_DIR
) $(1)/usr
/sbin
90 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/mkdosfs
$(1)/usr
/sbin
/
91 (cd
$(1)/usr
/sbin
; ln
-sf mkdosfs mkfs.msdos
; ln
-sf mkdosfs mkfs.vfat
)
94 $(eval
$(call BuildPackage
,dosfsck
))
95 $(eval
$(call BuildPackage
,dosfslabel
))
96 $(eval
$(call BuildPackage
,mkdosfs
))