summaryrefslogtreecommitdiff
path: root/package/dosfstools/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/dosfstools/Makefile')
-rw-r--r--package/dosfstools/Makefile40
1 files changed, 22 insertions, 18 deletions
diff --git a/package/dosfstools/Makefile b/package/dosfstools/Makefile
index 8f6dee573..8238eced9 100644
--- a/package/dosfstools/Makefile
+++ b/package/dosfstools/Makefile
@@ -1,29 +1,33 @@
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.
-include ${TOPDIR}/rules.mk
+include ${ADK_TOPDIR}/rules.mk
PKG_NAME:= dosfstools
-PKG_VERSION:= 3.0.9
-PKG_RELEASE:= 2
-PKG_MD5SUM:= bd273cf8aa6341c0b52cbac72050bcf4
-PKG_DESCR:= Utilities to create and check MS-DOS FAT filesystems
-PKG_SECTION:= fs
+PKG_VERSION:= 4.2
+PKG_RELEASE:= 1
+PKG_HASH:= 64926eebf90092dca21b14259a5301b7b98e7b1943e8a201c7d726084809b527
+PKG_DESCR:= utilities to create and check fat filesystems
+PKG_SECTION:= sys/fs
PKG_URL:= http://www.daniel-baumann.ch/software/dosfstools/
-PKG_SITES:= http://www.daniel-baumann.ch/software/dosfstools/
+PKG_SITES:= https://github.com/dosfstools/dosfstools/releases/download/v4.2/
-include ${TOPDIR}/mk/package.mk
+DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
-$(eval $(call PKG_template,DOSFSTOOLS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+PKG_CFLINE_DOSFSTOOLS:= select BUSYBOX_FSCK
-CONFIG_STYLE:= manual
-XAKE_FLAGS+= PREFIX="" OPTFLAGS="-D_FILE_OFFSET_BITS=64"
+include ${ADK_TOPDIR}/mk/host.mk
+include ${ADK_TOPDIR}/mk/package.mk
-post-install:
- ${INSTALL_DIR} ${IDIR_DOSFSTOOLS}/sbin
- ${CP} ${WRKINST}/sbin/dosfsck ${IDIR_DOSFSTOOLS}/sbin/
- ${CP} ${WRKINST}/sbin/fsck.{msdos,vfat} ${IDIR_DOSFSTOOLS}/sbin/
- ${CP} ${WRKINST}/sbin/mkdosfs ${IDIR_DOSFSTOOLS}/sbin/
- ${CP} ${WRKINST}/sbin/mkfs.{msdos,vfat} ${IDIR_DOSFSTOOLS}/sbin/
+$(eval $(call HOST_template,DOSFSTOOLS,dosfstools,${PKG_VERSION}-${PKG_RELEASE}))
+$(eval $(call PKG_template,DOSFSTOOLS,dosfstools,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-include ${TOPDIR}/mk/pkg-bottom.mk
+HOST_CONFIGURE_ARGS+= --enable-compat-symlinks
+
+dosfstools-install:
+ ${INSTALL_DIR} ${IDIR_DOSFSTOOLS}/usr/sbin
+ ${INSTALL_BIN} ${WRKINST}/usr/sbin/fsck.fat ${IDIR_DOSFSTOOLS}/usr/sbin
+ ${INSTALL_BIN} ${WRKINST}/usr/sbin/mkfs.fat ${IDIR_DOSFSTOOLS}/usr/sbin
+
+include ${ADK_TOPDIR}/mk/host-bottom.mk
+include ${ADK_TOPDIR}/mk/pkg-bottom.mk