commit: 0738eb68bf075199acb6566222806e99f4494ff8
parent 7ecb7fd3a06303bfa9bffa6491cabd1a02d3e497
Author: Michael Forney <mforney@mforney.org>
Date: Sun, 13 Aug 2017 19:22:42 -0700
Add dosfstools 4.1
Diffstat:
7 files changed, 39 insertions(+), 0 deletions(-)
diff --git a/.gitmodules b/.gitmodules
@@ -27,6 +27,9 @@
path = pkg/dmenu/src
url = git://git.suckless.org/dmenu
ignore = all
+[submodule "pkg/dosfstools/src"]
+ path = pkg/dosfstools/src
+ url = https://github.com/dosfstools/dosfstools
[submodule "pkg/e2fsprogs/src"]
path = pkg/e2fsprogs/src
url = https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
diff --git a/pkg/dosfstools/config.h b/pkg/dosfstools/config.h
@@ -0,0 +1,10 @@
+#include <config-posix.h>
+
+#define HAVE_MEMORY_H 1
+#define HAVE_ERR_H 1
+#define HAVE_LINUX_FD_H 1
+#define HAVE_LINUX_HDREG_H 1
+#define HAVE_LINUX_VERSION_H 1
+#define HAVE_ENDIAN_H 1
+#define HAVE_DECL_GETMNTENT 1
+#define HAVE_DECL_GETMNTINFO 0
diff --git a/pkg/dosfstools/gen.rc b/pkg/dosfstools/gen.rc
@@ -0,0 +1,21 @@
+version=4.1
+cflags\
+ -include '$dir'/config.h\
+ -I include\
+ -I '$dir' \
+ -I '$srcdir'/src/blkdev
+
+exe mkfs.fat src/^(mkfs.fat.c device_info.c blkdev/^(blkdev.c linux_version.c))
+file bin/mkfs.fat '$outdir'/mkfs.fat 755
+
+exe fsck.fat src/^(fsck.fat.c boot.c check.c common.c fat.c file.c io.c lfn.c charconv.c)
+file bin/fsck.fat '$outdir'/fsck.fat 755
+
+mans=(fsck.fat.8 mkfs.fat.8)
+for(man in $mans) {
+ build '$outdir'/$man sed '$srcdir'/manpages/$man.in ; with\
+ expr s,@PACKAGE_VERSION@,$version,
+}
+man -d '$outdir' 8 $mans
+
+fetch git
diff --git a/pkg/dosfstools/rev b/pkg/dosfstools/rev
@@ -0,0 +1 @@
+1
diff --git a/pkg/dosfstools/src b/pkg/dosfstools/src
@@ -0,0 +1 @@
+Subproject commit 820c2f90726db0468e0a684a5dc500fbde66466f
diff --git a/pkg/dosfstools/version.h b/pkg/dosfstools/version.h
@@ -0,0 +1,2 @@
+#define VERSION "4.1"
+#define VERSION_DATE "2017-01-24"
diff --git a/pkg/gen.rc b/pkg/gen.rc
@@ -9,6 +9,7 @@ subgen blind
subgen bzip2
subgen curl
subgen discount
+subgen dosfstools
subgen dmenu
subgen e2fsprogs
subgen efibootmgr