2009-01-04 00:06:33 +00:00
|
|
|
#
|
2010-01-16 07:04:55 +00:00
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2006-07-24 13:01:16 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=dosfstools
|
2010-12-18 20:11:35 +00:00
|
|
|
PKG_VERSION:=3.0.10
|
2009-09-27 12:43:15 +00:00
|
|
|
PKG_RELEASE:=1
|
2006-07-24 13:01:16 +00:00
|
|
|
|
2009-09-27 12:43:15 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2010-12-18 20:11:35 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.daniel-baumann.ch/software/dosfstools
|
|
|
|
PKG_MD5SUM:=be73c6077cc5f784f0bb4d3901c88792
|
2006-07-24 13:01:16 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2009-09-27 12:43:15 +00:00
|
|
|
define Package/dosfstools/Default
|
2006-07-24 13:01:16 +00:00
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2009-09-27 12:43:15 +00:00
|
|
|
URL:=http://www.daniel-baumann.ch/software/dosfstools/
|
2009-07-05 13:57:59 +00:00
|
|
|
SUBMENU:=Filesystem
|
2006-07-24 13:01:16 +00:00
|
|
|
endef
|
|
|
|
|
2009-09-27 12:43:15 +00:00
|
|
|
define Package/dosfsck
|
|
|
|
$(call Package/dosfstools/Default)
|
|
|
|
TITLE:=dosfsck
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/dosfslabel
|
|
|
|
$(call Package/dosfstools/Default)
|
|
|
|
TITLE:=dosfslabel
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/mkdosfs
|
|
|
|
$(call Package/dosfstools/Default)
|
|
|
|
TITLE:=mkdosfs
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/dosfsck/description
|
|
|
|
Utilities to create and check MS-DOS FAT filesystems.
|
|
|
|
(fsck.vfat and fsck.msdos for checking integrity of FAT volumes)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/dosfslabel/description
|
2007-10-14 04:32:56 +00:00
|
|
|
Utilities to create and check MS-DOS FAT filesystems.
|
2009-09-27 12:43:15 +00:00
|
|
|
(dosfslabel for reading and writing labels of FAT volumes)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/mkdosfs/description
|
|
|
|
Utilities to create and check MS-DOS FAT filesystems.
|
|
|
|
(mkfs.vfat and mkfs.msdos for creating FAT volumes)
|
2007-10-14 04:32:56 +00:00
|
|
|
endef
|
|
|
|
|
2006-07-24 13:01:16 +00:00
|
|
|
define Build/Configure
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
OPTFLAGS="$(TARGET_CFLAGS) -D_FILE_OFFSET_BITS=64" \
|
2006-10-30 13:51:50 +00:00
|
|
|
PREFIX="/usr" \
|
|
|
|
SBINDIR="/usr/sbin" \
|
|
|
|
all
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
OPTFLAGS="$(TARGET_CFLAGS) -D_FILE_OFFSET_BITS=64" \
|
|
|
|
PREFIX="$(PKG_INSTALL_DIR)/usr" \
|
|
|
|
SBINDIR="$(PKG_INSTALL_DIR)/usr/sbin" \
|
2009-09-27 12:43:15 +00:00
|
|
|
install-bin
|
2006-07-24 13:01:16 +00:00
|
|
|
endef
|
|
|
|
|
2009-09-27 12:43:15 +00:00
|
|
|
define Package/dosfsck/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dosfsck $(1)/usr/sbin/
|
2009-01-07 18:29:05 +00:00
|
|
|
(cd $(1)/usr/sbin; ln -sf dosfsck fsck.msdos; ln -sf dosfsck fsck.vfat)
|
2009-09-27 12:43:15 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/dosfslabel/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dosfslabel $(1)/usr/sbin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/mkdosfs/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mkdosfs $(1)/usr/sbin/
|
2009-03-29 20:31:36 +00:00
|
|
|
(cd $(1)/usr/sbin; ln -sf mkdosfs mkfs.msdos; ln -sf mkdosfs mkfs.vfat)
|
2006-07-24 13:01:16 +00:00
|
|
|
endef
|
|
|
|
|
2009-09-27 12:43:15 +00:00
|
|
|
$(eval $(call BuildPackage,dosfsck))
|
|
|
|
$(eval $(call BuildPackage,dosfslabel))
|
|
|
|
$(eval $(call BuildPackage,mkdosfs))
|