diff --git a/filesystems/mtools/Makefile b/filesystems/mtools/Makefile index 33b2c796964c..0acfa890d644 100644 --- a/filesystems/mtools/Makefile +++ b/filesystems/mtools/Makefile @@ -1,58 +1,55 @@ PORTNAME= mtools -PORTVERSION= 4.0.43 -PORTREVISION= 1 +PORTVERSION= 4.0.47 CATEGORIES= filesystems emulators MASTER_SITES= GNU MAINTAINER= skreuzer@FreeBSD.org COMMENT= Tools for manipulating MS-DOS disks and images WWW= https://www.gnu.org/software/mtools/intro.html LICENSE= GPLv3 CONFLICTS_INSTALL= multimarkdown USES= gmake makeinfo tar:lz GNU_CONFIGURE= yes CONFIGURE_ENV= ac_cv_header_malloc_h=no CONFIGURE_ARGS= --enable-xdf -GNU_CONFIGURE_MANPREFIX=${PREFIX}/share SUB_FILES= pkg-message INFO= mtools OPTIONS_DEFINE= ICONV X11 OPTIONS_DEFAULT=ICONV X11 .include .if ${PORT_OPTIONS:MICONV} USES+= iconv CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB} LIB_DEPENDS+= libiconv.so:converters/libiconv .else CONFIGURE_ENV+= ac_cv_header_iconv_h=no .endif .if ${PORT_OPTIONS:MX11} USES+= xorg USE_XORG= x11 sm ice xau PLIST_SUB+= X11="" .else CONFIGURE_ARGS+= --without-x PLIST_SUB+= X11="@comment " MAKE_ENV+= WITHOUT_X11=yes .endif post-patch: @${REINPLACE_CMD} -e '/LOCAL_CONF_FILE/s,/etc/default,${LOCALBASE}/etc,' \ ${WRKSRC}/mtoolsPaths.h - @${REINPLACE_CMD} -e 's|^\(SAMPLE FILE\)$$|#\1|' \ - ${WRKSRC}/mtools.conf + @${REINPLACE_CMD} -e '/^SAMPLE FILE/s,^,#,' ${WRKSRC}/mtools.conf post-install: ${INSTALL_DATA} ${WRKSRC}/mtools.conf ${STAGEDIR}${PREFIX}/etc/mtools.conf.sample .include diff --git a/filesystems/mtools/distinfo b/filesystems/mtools/distinfo index fdded9f52cc2..f56ccce6871e 100644 --- a/filesystems/mtools/distinfo +++ b/filesystems/mtools/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1679438048 -SHA256 (mtools-4.0.43.tar.lz) = 997ffe4125a19de1fd433ed63f128f7d54bc1a5915f3cdb36da6491ef917f217 -SIZE (mtools-4.0.43.tar.lz) = 383347 +TIMESTAMP = 1737275818 +SHA256 (mtools-4.0.47.tar.lz) = 2709cd2f42d65500829b056cb0630edd515d7060b4865bad31277f0da9f9e9d5 +SIZE (mtools-4.0.47.tar.lz) = 391656 diff --git a/filesystems/mtools/files/patch-Makefile.in b/filesystems/mtools/files/patch-Makefile.in index 1c9d84b0e764..56b372653f16 100644 --- a/filesystems/mtools/files/patch-Makefile.in +++ b/filesystems/mtools/files/patch-Makefile.in @@ -1,40 +1,40 @@ ---- Makefile.in.orig 2022-10-09 09:55:19 UTC +--- Makefile.in.orig 2024-11-30 22:13:06 UTC +++ Makefile.in @@ -72,11 +72,14 @@ INSTALL_INFO = @INSTALL_INFO@ .SUFFIXES: .o .c .SUFFIXES: .o .c -MAN1 = floppyd.1 floppyd_installtest.1 mattrib.1 mbadblocks.1 mcat.1 \ +MAN1 = mattrib.1 mbadblocks.1 mcat.1 \ - mcd.1 mcopy.1 mdel.1 mdeltree.1 mdir.1 mdu.1 mformat.1 \ + mcd.1 mcopy.1 mdel.1 mdeltree.1 mdir.1 mdoctorfat.1 mdu.1 mformat.1 \ minfo.1 mkmanifest.1 mlabel.1 mmd.1 mmount.1 mmove.1 mpartition.1 \ mrd.1 mren.1 mshortname.1 mshowfat.1 mtoolstest.1 mtools.1 mtype.1 \ mzip.1 +ifndef WITHOUT_X11 +MAN1 += floppyd.1 floppyd_installtest.1 +endif MAN1EXT = 1 MAN1DIR = $(DESTDIR)$(mandir)/man${MAN1EXT} @@ -119,7 +122,7 @@ privileges.c remap.c scsi_io.c scsi.c signal.c stream. swap.c unix2dos.s unixdir.c tty.c vfat.c mkmanifest.c \ @FLOPPYD_IO_SRC@ @XDF_IO_SRC@ -SCRIPTS = mcheck mxtar uz tgz mcomp amuFormat.sh +SCRIPTS = mcheck mxtar mcomp amuFormat.sh - LINKS=mattrib mcat mcd mcopy mdel mdeltree mdir mdu \ + LINKS=mattrib mcat mcd mcopy mdel mdeltree mdir mdoctorfat mdu \ mformat minfo mlabel mmd mmount mmove mpartition mrd mren mtype \ @@ -264,11 +267,9 @@ install-links: $(DESTDIR)$(bindir)/mtools install-scripts: $(DESTDIR)$(bindir)/mtools @$(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir) @for j in $(SCRIPTS) ; do \ - $(INSTALL_PROGRAM) $(srcdir)/scripts/$$j $(DESTDIR)$(bindir)/$$j ; \ + $(BSD_INSTALL_SCRIPT) $(srcdir)/scripts/$$j $(DESTDIR)$(bindir)/$$j ; \ echo $(DESTDIR)$(bindir)/$$j ; \ done - rm -f $(DESTDIR)$(bindir)/lz - cd $(DESTDIR)$(bindir) && $(LN_S) uz lz install-man: @$(top_srcdir)/mkinstalldirs $(MAN1DIR) diff --git a/filesystems/mtools/files/patch-configure b/filesystems/mtools/files/patch-configure deleted file mode 100644 index f7dc9e442ebd..000000000000 --- a/filesystems/mtools/files/patch-configure +++ /dev/null @@ -1,63 +0,0 @@ ---- configure.orig 2020-11-28 11:54:35 UTC -+++ configure -@@ -5696,10 +5696,10 @@ host_os3=`echo $host_os2 | sed 's/^\([^0-9]*\)[0-9]*$/ - host_cpu1=`echo $host_cpu | sed 's/\./_/g'` - host_vendor1=`echo $host_vendor | sed 's/\./_/g'` - HOST_ID="-DCPU_$host_cpu1 -DVENDOR_$host_vendor1 -DOS_$host_os1" --if [ $host_os1 != $host_os2 ] ; then -+if [ "$host_os1" != "$host_os2" ] ; then - HOST_ID="$HOST_ID -DOS_$host_os2" - fi --if [ $host_os1 != $host_os3 ] && [ $host_os2 != $host_os3 ] ; then -+if [ "$host_os1" != "$host_os3" ] && [ "$host_os2" != "$host_os3" ] ; then - HOST_ID="$HOST_ID -DOS_$host_os3" - fi - -@@ -5725,39 +5725,39 @@ if [ "X$GCC" = "Xyes" ] ; then - esac - CFLAGS="$CFLAGS $Wall" - else -- if [ $host_os3 = hpux ] ; then -+ if [ "$host_os3" = hpux ] ; then - CPPFLAGS="$CPPFLAGS -Ae" - fi - -- if [ $host_os3 = xenix ] ; then -+ if [ "$host_os3" = xenix ] ; then - CFLAGS="$CFLAGS -M2e" - fi - fi - --if [ $host_os3 = hpux ] ; then -+if [ "$host_os3" = hpux ] ; then - LDFLAGS="$LDFLAGS -z" - fi - --if [ $host_os3 = xenix ] ; then -+if [ "$host_os3" = xenix ] ; then - LDFLAGS="$LDFLAGS -M2e -i -f 5000" - fi - --if [ $host_os2 = sysv4 ] ; then -+if [ "$host_os2" = sysv4 ] ; then - SHLIB="-lc -L/usr/ucblib -lucb" - else - SHLIB="" - fi - --if [ $host_os3 = isc ] ; then -+if [ "$host_os3" = isc ] ; then - CFLAGS="$CFLAGS -D_SYSV3" - SHLIB="-lc_s" - fi - --if [ $host_os3 = solaris -a x$newVold = xxyes ] ; then -+if [ "$host_os3" = solaris -a x$newVold = xxyes ] ; then - SHLIB="$SHLIB -s -lvolmgt" - fi - --if [ $host_os3 = nextstep ] ; then -+if [ "$host_os3" = nextstep ] ; then - CFLAGS="$CFLAGS -DBSD" - SHLIB="" - fi diff --git a/filesystems/mtools/pkg-plist b/filesystems/mtools/pkg-plist index 8fe66ac5cb9c..4fe5245fbb24 100644 --- a/filesystems/mtools/pkg-plist +++ b/filesystems/mtools/pkg-plist @@ -1,60 +1,62 @@ bin/amuFormat.sh %%X11%%bin/floppyd %%X11%%bin/floppyd_installtest bin/mattrib bin/mbadblocks bin/mcat bin/mcd bin/mcheck bin/mcomp bin/mcopy bin/mdel bin/mdeltree bin/mdir +bin/mdoctorfat bin/mdu bin/mformat bin/minfo bin/mkmanifest bin/mlabel bin/mmd bin/mmount bin/mmove bin/mpartition bin/mrd bin/mren +bin/mshortname bin/mshowfat bin/mtools bin/mtoolstest bin/mtype bin/mxtar bin/mzip -bin/mshortname +@sample etc/mtools.conf.sample %%X11%%share/man/man1/floppyd.1.gz %%X11%%share/man/man1/floppyd_installtest.1.gz share/man/man1/mattrib.1.gz share/man/man1/mbadblocks.1.gz share/man/man1/mcat.1.gz share/man/man1/mcd.1.gz share/man/man1/mcopy.1.gz share/man/man1/mdel.1.gz share/man/man1/mdeltree.1.gz share/man/man1/mdir.1.gz +share/man/man1/mdoctorfat.1.gz share/man/man1/mdu.1.gz share/man/man1/mformat.1.gz share/man/man1/minfo.1.gz share/man/man1/mkmanifest.1.gz share/man/man1/mlabel.1.gz share/man/man1/mmd.1.gz share/man/man1/mmount.1.gz share/man/man1/mmove.1.gz share/man/man1/mpartition.1.gz share/man/man1/mrd.1.gz share/man/man1/mren.1.gz +share/man/man1/mshortname.1.gz share/man/man1/mshowfat.1.gz share/man/man1/mtools.1.gz share/man/man1/mtoolstest.1.gz share/man/man1/mtype.1.gz share/man/man1/mzip.1.gz -share/man/man1/mshortname.1.gz share/man/man5/mtools.5.gz -@sample etc/mtools.conf.sample