Attached is a patch to add a new configure option
--enable-quarantined, so that distributors who do not
want to distribute developer-oriented programs and
non functional ones can easily do so. They may still
have to adapt their own packaging scripts (for added
symbolic links, etc.)

The proposed list includes ntfsck, ntfsmftalloc and
ntfsdump_logfile. I might also add ntfsmove to the
list.

--- ntfsprogs/Makefile.am.ref	2014-02-15 15:07:52.000000000 +0100
+++ ntfsprogs/Makefile.am	2014-05-15 09:48:07.000000000 +0200
@@ -17,8 +17,9 @@
 bin_PROGRAMS		= ntfsfix ntfsinfo ntfscluster ntfsls ntfscat ntfscmp
 sbin_PROGRAMS		= mkntfs ntfslabel ntfsundelete ntfsresize ntfsclone \
 			  ntfscp
-EXTRA_PROGRAM_NAMES	= ntfsdump_logfile ntfswipe ntfstruncate ntfsmove \
-			  ntfsmftalloc ntfsck
+EXTRA_PROGRAM_NAMES	= ntfswipe ntfstruncate ntfsmove
+
+QUARANTINED_PROGRAM_NAMES = ntfsdump_logfile ntfsmftalloc ntfsck
 
 man_MANS		= mkntfs.8 ntfsfix.8 ntfslabel.8 ntfsinfo.8 \
 			  ntfsundelete.8 ntfsresize.8 ntfsprogs.8 ntfsls.8 \
@@ -36,6 +37,9 @@
 
 if ENABLE_EXTRAS
 bin_PROGRAMS		+= $(EXTRA_PROGRAM_NAMES)
+if ENABLE_QUARANTINED
+bin_PROGRAMS		+= $(QUARANTINED_PROGRAM_NAMES)
+endif
 else
 EXTRA_PROGRAMS		= $(EXTRA_PROGRAM_NAMES)
 endif
--- configure.ac.ref	2014-02-15 15:07:52.000000000 +0100
+++ configure.ac	2014-05-15 09:51:05.000000000 +0200
@@ -158,6 +158,14 @@
 )
 
 AC_ARG_ENABLE(
+	[quarantined],
+	[AS_HELP_STRING([--enable-quarantined],[enable quarantined ntfsprogs utilities
+		       (default=no)])],
+	,
+	[enable_quarantined="no"]
+)
+
+AC_ARG_ENABLE(
 	[nfconv],
 	[AS_HELP_STRING([--disable-nfconv],[disable the 'nfconv' patch, which adds support for Unicode normalization form conversion when built on Mac OS X @<:@default=enabled for Mac OS X@:>@])],
 	[enable_nfconv="no"],
@@ -607,6 +615,7 @@
 AM_CONDITIONAL([ENABLE_NTFS_3G], [test "${enable_ntfs_3g}" = "yes"])
 AM_CONDITIONAL([ENABLE_NTFSPROGS], [test "${enable_ntfsprogs}" = "yes"])
 AM_CONDITIONAL([ENABLE_EXTRAS], [test "${enable_extras}" = "yes"])
+AM_CONDITIONAL([ENABLE_QUARANTINED], [test "${enable_quarantined}" = "yes"])
 
 # workaround for <autoconf-2.60
 if test -z "${docdir}"; then

Reply via email to