BSD Ports

converters/dos2unix 7.5.3 MidnightBSD

DOS/Mac to Unix and vice versa text file format converter

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
bsd2
Categories
converters

Description

This is an update of Benjamin Lin's implementations of dos2unix and unix2dos. Benjamin Lin's implementations of dos2unix and unix2dos were distributed via SunSITE.unc.edu (later MetaLab.unc.edu, now ibiblio) and became part of several Linux distributions such as RedHat, Suse, Gentoo, and others. This update includes all RedHat patches and fixes several other problems. Internationalization has been added and ports to DOS, Windows, Cygwin and OS/2 Warp have been made.

Features * Native language support. * Automatically skips binary and non-regular files. * In-place, paired, or stdio mode conversion. * Keep original file dates option. * 7-bit and iso conversion modes like SunOS dos2unix. * Conversion of Unicode UTF-16 files. * Handles Unicode Byte Order Mark (BOM). * Display file information. * Secure.

In the other systems

The newest version among them is 7.5.7, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
MidnightBSDconverters/dos2unix7.5.3 behind since 2026-08-31no data-[email protected]-
FreeBSDconverters/dos2unix7.5.7 newestnone known-[email protected]2026-08-31
OpenBSDconverters/dos2unix7.5.7 newestno data-The OpenBSD ports mailing-list <[email protected]>2026-08-31
NetBSDconverters/dos2unix7.5.6 behind since 2026-08-31none known-[email protected]2026-09-22
DragonFlyconverters/dos2unix7.5.2 behind since 2026-08-31none known-[email protected]-
HardenedBSDconverters/dos2unix7.5.7 newestno data-[email protected]-
GhostBSDconverters/dos2unix7.5.7 newestno data-[email protected]-

Compare across BSDs

Install

Binary package:

mport install dos2unix

From mports:

cd /usr/mports/converters/dos2unix && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	dos2unix>0:converters/dos2unix

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Required by 1

Configuration

Options name: converters_dos2unix

OptionDefaultDescription
DOCSoff
MANPAGESon
NLSoff
USES
gmake
Service scripts
none
Conflicts with
unix2dos

Files

Manual pages 4
  • dos2unix(1)
  • mac2unix(1)
  • unix2dos(1)
  • unix2mac(1)
pkg-plist 112
  • bin/dos2unix
  • bin/mac2unix
  • bin/unix2dos
  • bin/unix2mac
  • share/doc/dos2unix/BUGS.txt
  • share/doc/dos2unix/ChangeLog.txt
  • share/doc/dos2unix/COPYING.txt
  • share/doc/dos2unix/de/dos2unix.htm
  • share/doc/dos2unix/de/dos2unix.txt
  • share/doc/dos2unix/dos2unix.htm
  • share/doc/dos2unix/dos2unix.txt
  • share/doc/dos2unix/es/dos2unix.htm
  • share/doc/dos2unix/es/dos2unix.txt
  • share/doc/dos2unix/fr/dos2unix.htm
  • share/doc/dos2unix/fr/dos2unix.txt
  • share/doc/dos2unix/INSTALL.txt
  • share/doc/dos2unix/ko/dos2unix.htm
  • share/doc/dos2unix/ko/dos2unix.txt
  • share/doc/dos2unix/NEWS.txt
  • share/doc/dos2unix/nl/dos2unix.htm
  • share/doc/dos2unix/nl/dos2unix.txt
  • share/doc/dos2unix/pl/dos2unix.htm
  • share/doc/dos2unix/pl/dos2unix.txt
  • share/doc/dos2unix/pt_BR/dos2unix.htm
  • share/doc/dos2unix/pt_BR/dos2unix.txt
  • share/doc/dos2unix/README.txt
  • share/doc/dos2unix/ro/dos2unix.htm
  • share/doc/dos2unix/ro/dos2unix.txt
  • share/doc/dos2unix/sr/dos2unix.htm
  • share/doc/dos2unix/sr/dos2unix.txt
  • share/doc/dos2unix/sv/dos2unix.htm
  • share/doc/dos2unix/sv/dos2unix.txt
  • share/doc/dos2unix/TODO.txt
  • share/doc/dos2unix/uk/dos2unix.htm
  • share/doc/dos2unix/uk/dos2unix.txt
  • share/doc/dos2unix/zh_CN/dos2unix.htm
  • share/doc/dos2unix/zh_CN/dos2unix.txt
  • share/locale/ca/LC_MESSAGES/dos2unix.mo
  • share/locale/da/LC_MESSAGES/dos2unix.mo
  • share/locale/de/LC_MESSAGES/dos2unix.mo
  • share/locale/eo/LC_MESSAGES/dos2unix.mo
  • share/locale/es/LC_MESSAGES/dos2unix.mo
  • share/locale/fr/LC_MESSAGES/dos2unix.mo
  • share/locale/fur/LC_MESSAGES/dos2unix.mo
  • share/locale/hu/LC_MESSAGES/dos2unix.mo
  • share/locale/ja/LC_MESSAGES/dos2unix.mo
  • share/locale/ka/LC_MESSAGES/dos2unix.mo
  • share/locale/ko/LC_MESSAGES/dos2unix.mo
  • share/locale/nb/LC_MESSAGES/dos2unix.mo
  • share/locale/nl/LC_MESSAGES/dos2unix.mo
  • share/locale/pl/LC_MESSAGES/dos2unix.mo
  • share/locale/pt_BR/LC_MESSAGES/dos2unix.mo
  • share/locale/ro/LC_MESSAGES/dos2unix.mo
  • share/locale/ru/LC_MESSAGES/dos2unix.mo
  • share/locale/sr/LC_MESSAGES/dos2unix.mo
  • share/locale/sv/LC_MESSAGES/dos2unix.mo
  • share/locale/uk/LC_MESSAGES/dos2unix.mo
  • share/locale/vi/LC_MESSAGES/dos2unix.mo
  • share/locale/zh_CN/LC_MESSAGES/dos2unix.mo
  • share/locale/zh_TW/LC_MESSAGES/dos2unix.mo
  • share/man/de/man1/dos2unix.1.gz
  • share/man/de/man1/mac2unix.1.gz
  • share/man/de/man1/unix2dos.1.gz
  • share/man/de/man1/unix2mac.1.gz
  • share/man/es/man1/dos2unix.1.gz
  • share/man/es/man1/mac2unix.1.gz
  • share/man/es/man1/unix2dos.1.gz
  • share/man/es/man1/unix2mac.1.gz
  • share/man/fr/man1/dos2unix.1.gz
  • share/man/fr/man1/mac2unix.1.gz
  • share/man/fr/man1/unix2dos.1.gz
  • share/man/fr/man1/unix2mac.1.gz
  • share/man/ko/man1/dos2unix.1.gz
  • share/man/ko/man1/mac2unix.1.gz
  • share/man/ko/man1/unix2dos.1.gz
  • share/man/ko/man1/unix2mac.1.gz
  • share/man/man1/dos2unix.1.gz
  • share/man/man1/mac2unix.1.gz
  • share/man/man1/unix2dos.1.gz
  • share/man/man1/unix2mac.1.gz
  • share/man/nl/man1/dos2unix.1.gz
  • share/man/nl/man1/mac2unix.1.gz
  • share/man/nl/man1/unix2dos.1.gz
  • share/man/nl/man1/unix2mac.1.gz
  • share/man/pl/man1/dos2unix.1.gz
  • share/man/pl/man1/mac2unix.1.gz
  • share/man/pl/man1/unix2dos.1.gz
  • share/man/pl/man1/unix2mac.1.gz
  • share/man/pt_BR/man1/dos2unix.1.gz
  • share/man/pt_BR/man1/mac2unix.1.gz
  • share/man/pt_BR/man1/unix2dos.1.gz
  • share/man/pt_BR/man1/unix2mac.1.gz
  • share/man/ro/man1/dos2unix.1.gz
  • share/man/ro/man1/mac2unix.1.gz
  • share/man/ro/man1/unix2dos.1.gz
  • share/man/ro/man1/unix2mac.1.gz
  • share/man/sr/man1/dos2unix.1.gz
  • share/man/sr/man1/mac2unix.1.gz
  • share/man/sr/man1/unix2dos.1.gz
  • share/man/sr/man1/unix2mac.1.gz

The first 100 are listed.

distinfo 1
FileSizeSHA256
dos2unix-7.5.3.tar.gz95587928a4b0d9f9179da4e44c567b9c01f818b070a20827115fffd96f760dcfa0f3b2
Master sites 2
  • SF
  • https://waterlan.home.xs4all.nl/dos2unix/