From nobody Wed Jun 28 17:43:22 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QrppL5Lkzz4k9Cn; Wed, 28 Jun 2023 17:43:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QrppL4xC6z3x6l; Wed, 28 Jun 2023 17:43:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687974202; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8jsY0qAWwu9saHLW61MmB5kxyaqkSA23b2GSftdQpwE=; b=TFbRkIzhPkjxpIKpv0jGhtbKUxU3Qbj9+hnpfkLSiLVu6fcblTfPP5WXr9bnFTGQp/UKK8 2BZdaSFoqRueiQGB5zJSfNgm5z0Rh4BYiAYx7VUr2Z1nzR/kzdJNpOoiz604G3iLlrcd6Q jpvFtaqMhg2eNKPYqMc/VUYyigduq5R6ANDim1w9qscWuBukzmazSseZOGceXF9hqF/SsX HoNTn1UitepPnXZK5rdEr/8gGaeGpUwlbBTCwC4tS7fkXoQGMAUPIj/DAZZEOfP+9TpX0K mJcKmFUhQi5YZxwfn61nnK84iKBL1pC8UoEytC4IPJpyY3wZ+bfVlHymLUD3mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687974202; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8jsY0qAWwu9saHLW61MmB5kxyaqkSA23b2GSftdQpwE=; b=Q/sohK/yX1D8k98Yf8XjMUb8sVAp1BYQArIp1mCsym/gP1y22O5WYWYn7w1yOYNUOAhEeg rU9rFVjjmxIFzx6cp7AIIkuHsru7Lcn0D642DF2mMsTJwmUKyXSEw0TlqvQwvMYgQpJn5o HVM3noUSiv8NOGLtG78n2dIRoFwRju6imRUv3oqTCpEs13/09k4yniJnHK9ITMzuawJew8 uH9hrZM1zfj5pQc9kWgb1iTi46ub0msWqhPDSCQYXhsmKfjrWi4dImk5d3Gmq6P1rjPZ0p yJdKoZLRuWWSRT76pkXzSaW73tt4QX3F2IihG9pzCdivbncIOv82Iz/bfgxulQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687974202; a=rsa-sha256; cv=none; b=RHTFsf3uqrOQhVbMrN4uWadcvJ49FqqoMw2TzXxH5lM/hGF/DsR/QsYfJgWh+ffcnjgG0w R8ZaQN8L9VWIiMa8j78zbO21fCsKOo9UIloaP3pM7k5dISsTZpQIbzClVSeLpEjVXhCSTN KvPqgH6OTPzVAOko/RWRTf2wo3Z02fui1NQxn8Fhw2vm0GPLiizPUOeK2R3/zYadBSqTtl OqEitgXjmiIaVbX3109rSOw1Cb3fvpa2/zRToVhgyj4E9B2jrbMzwOD2owqKYgAyQwj1k5 JNNIl4HKrWUS49IxLxdBaQCdrPKYFAO/jlXIl6gfsHU2u9lU1Naon3LPeZ/J9w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QrppL41G9zjsB; Wed, 28 Jun 2023 17:43:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 35SHhMdM057858; Wed, 28 Jun 2023 17:43:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35SHhMEP057857; Wed, 28 Jun 2023 17:43:22 GMT (envelope-from git) Date: Wed, 28 Jun 2023 17:43:22 GMT Message-Id: <202306281743.35SHhMEP057857@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dimitry Andric Subject: git: 0a41062b5b5a - main - converters/dos2unix: Add new port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0a41062b5b5a90548e1a8b529448dd8a389c6203 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=0a41062b5b5a90548e1a8b529448dd8a389c6203 commit 0a41062b5b5a90548e1a8b529448dd8a389c6203 Author: Dimitry Andric AuthorDate: 2023-06-28 17:34:53 +0000 Commit: Dimitry Andric CommitDate: 2023-06-28 17:39:39 +0000 converters/dos2unix: Add new port This is a port for Erwin Waterlander's dos2unix, which is shipped in most Linux distributions, and has many more features than the similar converters/dosunix and converters/unix2dos ports. It is also much more maintained, as those other ports have not had significant updates in years. The port has DOCS and NLS options, to toggle the building and/or installing of documentation, multi-lingual messages and man pages. Note that this port's "dos2unix" and "unix2dos" binaries conflict with those of the converters/unix2dos port, but I see no good reason to have both installed at the same time. PR: 271998 Reviewed by: eduardo MFH: 2023Q2 --- converters/Makefile | 1 + converters/dos2unix/Makefile | 31 ++++++++++++ converters/dos2unix/distinfo | 3 ++ converters/dos2unix/pkg-descr | 18 +++++++ converters/dos2unix/pkg-plist | 112 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 165 insertions(+) diff --git a/converters/Makefile b/converters/Makefile index 6f13c8261a34..3782f6bcdac8 100644 --- a/converters/Makefile +++ b/converters/Makefile @@ -20,6 +20,7 @@ SUBDIR += cmios9 SUBDIR += cocot SUBDIR += convmv + SUBDIR += dos2unix SUBDIR += dosunix SUBDIR += drg2sbg SUBDIR += dumpasn1 diff --git a/converters/dos2unix/Makefile b/converters/dos2unix/Makefile new file mode 100644 index 000000000000..239eb3674a6b --- /dev/null +++ b/converters/dos2unix/Makefile @@ -0,0 +1,31 @@ +PORTNAME= dos2unix +DISTVERSION= 7.5.0 +CATEGORIES= converters +MASTER_SITES= SF \ + https://waterlan.home.xs4all.nl/dos2unix/ + +MAINTAINER= dim@FreeBSD.org +COMMENT= DOS/Mac to Unix and vice versa text file format converter +WWW= https://waterlan.home.xs4all.nl/dos2unix.html + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/COPYING.txt + +USES= gmake + +MAKE_ARGS= docsubdir="${PORTNAME}" \ + prefix="${PREFIX}" + +CONFLICTS_INSTALL= unix2dos + +OPTIONS_DEFINE= DOCS NLS +OPTIONS_SUB= yes + +NLS_USES= gettext +NLS_MAKE_ARGS_OFF= ENABLE_NLS= + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/dos2unix + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/unix2dos + +.include diff --git a/converters/dos2unix/distinfo b/converters/dos2unix/distinfo new file mode 100644 index 000000000000..5bebdae68149 --- /dev/null +++ b/converters/dos2unix/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1686736752 +SHA256 (dos2unix-7.5.0.tar.gz) = 7a3b01d01e214d62c2b3e04c3a92e0ddc728a385566e4c0356efa66fd6eb95af +SIZE (dos2unix-7.5.0.tar.gz) = 957576 diff --git a/converters/dos2unix/pkg-descr b/converters/dos2unix/pkg-descr new file mode 100644 index 000000000000..d1a39dd58a58 --- /dev/null +++ b/converters/dos2unix/pkg-descr @@ -0,0 +1,18 @@ +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. diff --git a/converters/dos2unix/pkg-plist b/converters/dos2unix/pkg-plist new file mode 100644 index 000000000000..2de8626fd161 --- /dev/null +++ b/converters/dos2unix/pkg-plist @@ -0,0 +1,112 @@ +bin/dos2unix +bin/mac2unix +bin/unix2dos +bin/unix2mac +%%DOCS%%%%DOCSDIR%%/BUGS.txt +%%DOCS%%%%DOCSDIR%%/ChangeLog.txt +%%DOCS%%%%DOCSDIR%%/COPYING.txt +%%DOCS%%%%NLS%%%%DOCSDIR%%/de/dos2unix.htm +%%DOCS%%%%NLS%%%%DOCSDIR%%/de/dos2unix.txt +%%DOCS%%%%DOCSDIR%%/dos2unix.htm +%%DOCS%%%%DOCSDIR%%/dos2unix.txt +%%DOCS%%%%NLS%%%%DOCSDIR%%/es/dos2unix.htm +%%DOCS%%%%NLS%%%%DOCSDIR%%/es/dos2unix.txt +%%DOCS%%%%NLS%%%%DOCSDIR%%/fr/dos2unix.htm +%%DOCS%%%%NLS%%%%DOCSDIR%%/fr/dos2unix.txt +%%DOCS%%%%DOCSDIR%%/INSTALL.txt +%%DOCS%%%%NLS%%%%DOCSDIR%%/ko/dos2unix.htm +%%DOCS%%%%NLS%%%%DOCSDIR%%/ko/dos2unix.txt +%%DOCS%%%%DOCSDIR%%/NEWS.txt +%%DOCS%%%%NLS%%%%DOCSDIR%%/nl/dos2unix.htm +%%DOCS%%%%NLS%%%%DOCSDIR%%/nl/dos2unix.txt +%%DOCS%%%%NLS%%%%DOCSDIR%%/pl/dos2unix.htm +%%DOCS%%%%NLS%%%%DOCSDIR%%/pl/dos2unix.txt +%%DOCS%%%%NLS%%%%DOCSDIR%%/pt_BR/dos2unix.htm +%%DOCS%%%%NLS%%%%DOCSDIR%%/pt_BR/dos2unix.txt +%%DOCS%%%%DOCSDIR%%/README.txt +%%DOCS%%%%NLS%%%%DOCSDIR%%/ro/dos2unix.htm +%%DOCS%%%%NLS%%%%DOCSDIR%%/ro/dos2unix.txt +%%DOCS%%%%NLS%%%%DOCSDIR%%/sr/dos2unix.htm +%%DOCS%%%%NLS%%%%DOCSDIR%%/sr/dos2unix.txt +%%DOCS%%%%NLS%%%%DOCSDIR%%/sv/dos2unix.htm +%%DOCS%%%%NLS%%%%DOCSDIR%%/sv/dos2unix.txt +%%DOCS%%%%DOCSDIR%%/TODO.txt +%%DOCS%%%%NLS%%%%DOCSDIR%%/uk/dos2unix.htm +%%DOCS%%%%NLS%%%%DOCSDIR%%/uk/dos2unix.txt +%%DOCS%%%%NLS%%%%DOCSDIR%%/zh_CN/dos2unix.htm +%%DOCS%%%%NLS%%%%DOCSDIR%%/zh_CN/dos2unix.txt +%%NLS%%share/locale/ca/LC_MESSAGES/dos2unix.mo +%%NLS%%share/locale/da/LC_MESSAGES/dos2unix.mo +%%NLS%%share/locale/de/LC_MESSAGES/dos2unix.mo +%%NLS%%share/locale/eo/LC_MESSAGES/dos2unix.mo +%%NLS%%share/locale/es/LC_MESSAGES/dos2unix.mo +%%NLS%%share/locale/fr/LC_MESSAGES/dos2unix.mo +%%NLS%%share/locale/fur/LC_MESSAGES/dos2unix.mo +%%NLS%%share/locale/hu/LC_MESSAGES/dos2unix.mo +%%NLS%%share/locale/ja/LC_MESSAGES/dos2unix.mo +%%NLS%%share/locale/ka/LC_MESSAGES/dos2unix.mo +%%NLS%%share/locale/ko/LC_MESSAGES/dos2unix.mo +%%NLS%%share/locale/nb/LC_MESSAGES/dos2unix.mo +%%NLS%%share/locale/nl/LC_MESSAGES/dos2unix.mo +%%NLS%%share/locale/pl/LC_MESSAGES/dos2unix.mo +%%NLS%%share/locale/pt_BR/LC_MESSAGES/dos2unix.mo +%%NLS%%share/locale/ro/LC_MESSAGES/dos2unix.mo +%%NLS%%share/locale/ru/LC_MESSAGES/dos2unix.mo +%%NLS%%share/locale/sr/LC_MESSAGES/dos2unix.mo +%%NLS%%share/locale/sv/LC_MESSAGES/dos2unix.mo +%%NLS%%share/locale/uk/LC_MESSAGES/dos2unix.mo +%%NLS%%share/locale/vi/LC_MESSAGES/dos2unix.mo +%%NLS%%share/locale/zh_CN/LC_MESSAGES/dos2unix.mo +%%NLS%%share/locale/zh_TW/LC_MESSAGES/dos2unix.mo +%%DOCS%%%%NLS%%share/man/de/man1/dos2unix.1.gz +%%DOCS%%%%NLS%%share/man/de/man1/mac2unix.1.gz +%%DOCS%%%%NLS%%share/man/de/man1/unix2dos.1.gz +%%DOCS%%%%NLS%%share/man/de/man1/unix2mac.1.gz +%%DOCS%%%%NLS%%share/man/es/man1/dos2unix.1.gz +%%DOCS%%%%NLS%%share/man/es/man1/mac2unix.1.gz +%%DOCS%%%%NLS%%share/man/es/man1/unix2dos.1.gz +%%DOCS%%%%NLS%%share/man/es/man1/unix2mac.1.gz +%%DOCS%%%%NLS%%share/man/fr/man1/dos2unix.1.gz +%%DOCS%%%%NLS%%share/man/fr/man1/mac2unix.1.gz +%%DOCS%%%%NLS%%share/man/fr/man1/unix2dos.1.gz +%%DOCS%%%%NLS%%share/man/fr/man1/unix2mac.1.gz +%%DOCS%%%%NLS%%share/man/ko/man1/dos2unix.1.gz +%%DOCS%%%%NLS%%share/man/ko/man1/mac2unix.1.gz +%%DOCS%%%%NLS%%share/man/ko/man1/unix2dos.1.gz +%%DOCS%%%%NLS%%share/man/ko/man1/unix2mac.1.gz +%%DOCS%%share/man/man1/dos2unix.1.gz +%%DOCS%%share/man/man1/mac2unix.1.gz +%%DOCS%%share/man/man1/unix2dos.1.gz +%%DOCS%%share/man/man1/unix2mac.1.gz +%%DOCS%%%%NLS%%share/man/nl/man1/dos2unix.1.gz +%%DOCS%%%%NLS%%share/man/nl/man1/mac2unix.1.gz +%%DOCS%%%%NLS%%share/man/nl/man1/unix2dos.1.gz +%%DOCS%%%%NLS%%share/man/nl/man1/unix2mac.1.gz +%%DOCS%%%%NLS%%share/man/pl/man1/dos2unix.1.gz +%%DOCS%%%%NLS%%share/man/pl/man1/mac2unix.1.gz +%%DOCS%%%%NLS%%share/man/pl/man1/unix2dos.1.gz +%%DOCS%%%%NLS%%share/man/pl/man1/unix2mac.1.gz +%%DOCS%%%%NLS%%share/man/pt_BR/man1/dos2unix.1.gz +%%DOCS%%%%NLS%%share/man/pt_BR/man1/mac2unix.1.gz +%%DOCS%%%%NLS%%share/man/pt_BR/man1/unix2dos.1.gz +%%DOCS%%%%NLS%%share/man/pt_BR/man1/unix2mac.1.gz +%%DOCS%%%%NLS%%share/man/ro/man1/dos2unix.1.gz +%%DOCS%%%%NLS%%share/man/ro/man1/mac2unix.1.gz +%%DOCS%%%%NLS%%share/man/ro/man1/unix2dos.1.gz +%%DOCS%%%%NLS%%share/man/ro/man1/unix2mac.1.gz +%%DOCS%%%%NLS%%share/man/sr/man1/dos2unix.1.gz +%%DOCS%%%%NLS%%share/man/sr/man1/mac2unix.1.gz +%%DOCS%%%%NLS%%share/man/sr/man1/unix2dos.1.gz +%%DOCS%%%%NLS%%share/man/sr/man1/unix2mac.1.gz +%%DOCS%%%%NLS%%share/man/sv/man1/dos2unix.1.gz +%%DOCS%%%%NLS%%share/man/sv/man1/mac2unix.1.gz +%%DOCS%%%%NLS%%share/man/sv/man1/unix2dos.1.gz +%%DOCS%%%%NLS%%share/man/sv/man1/unix2mac.1.gz +%%DOCS%%%%NLS%%share/man/uk/man1/dos2unix.1.gz +%%DOCS%%%%NLS%%share/man/uk/man1/mac2unix.1.gz +%%DOCS%%%%NLS%%share/man/uk/man1/unix2dos.1.gz +%%DOCS%%%%NLS%%share/man/uk/man1/unix2mac.1.gz +%%DOCS%%%%NLS%%share/man/zh_CN/man1/dos2unix.1.gz +%%DOCS%%%%NLS%%share/man/zh_CN/man1/mac2unix.1.gz +%%DOCS%%%%NLS%%share/man/zh_CN/man1/unix2dos.1.gz +%%DOCS%%%%NLS%%share/man/zh_CN/man1/unix2mac.1.gz