Date: Sun, 03 May 2026 13:02:06 +0000 From: Guido Falsi <madpilot@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: b09b2548c262 - main - net/unison253: Add port preserving new legacy version Message-ID: <69f7474e.3c733.2892c741@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by madpilot: URL: https://cgit.FreeBSD.org/ports/commit/?id=b09b2548c2624945b11e328dc87dc5bc500f8da0 commit b09b2548c2624945b11e328dc87dc5bc500f8da0 Author: Guido Falsi <madpilot@FreeBSD.org> AuthorDate: 2026-05-03 12:57:55 +0000 Commit: Guido Falsi <madpilot@FreeBSD.org> CommitDate: 2026-05-03 12:57:55 +0000 net/unison253: Add port preserving new legacy version Preserve version 2.53 as versioned legacy port. This is the last version including compatibility support for older version's wire protocol and archive files. Setting a long term expiration date, since this is anyway legacy and unsupported by dvelopers. --- net/Makefile | 1 + net/unison253/Makefile | 94 +++++++++++++++++++++++++++++++++++ net/unison253/distinfo | 3 ++ net/unison253/files/unison.desktop.in | 12 +++++ net/unison253/pkg-descr | 9 ++++ net/unison253/pkg-message | 13 +++++ net/unison253/pkg-plist | 9 ++++ 7 files changed, 141 insertions(+) diff --git a/net/Makefile b/net/Makefile index 5ffa844a5e64..d39ba1c3f327 100644 --- a/net/Makefile +++ b/net/Makefile @@ -1660,6 +1660,7 @@ SUBDIR += unison SUBDIR += unison248 SUBDIR += unison251 + SUBDIR += unison253 SUBDIR += unix2tcp SUBDIR += urelay SUBDIR += uriparser diff --git a/net/unison253/Makefile b/net/unison253/Makefile new file mode 100644 index 000000000000..45495a904293 --- /dev/null +++ b/net/unison253/Makefile @@ -0,0 +1,94 @@ +PORTNAME= unison +PORTVERSION= 2.53.8 +DISTVERSIONPREFIX= v +CATEGORIES= net + +MAINTAINER= madpilot@FreeBSD.org +COMMENT= User-level file synchronization tool +WWW= https://www.cis.upenn.edu/~bcpierce/unison/ + +LICENSE= GPLv3+ +LICENSE_FILE= ${WRKSRC}/src/COPYING + +FLAVORS= x11 nox11 +FLAVOR?= ${FLAVORS:[1]} + +VERSIONSUFFIX= 253 + +DEPRECATED= Legacy release unsupported by upstream +EXPIRATION_DATE= 2027-06-30 + +nox11_PKGNAMESUFFIX= -nox11 +nox11_CONFLICTS_INSTALL= unison + +x11_BUILD_DEPENDS= icotool:graphics/icoutils \ + ocaml-lablgtk3>0:x11-toolkits/ocaml-lablgtk3 +x11_LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ + libfreetype.so:print/freetype2 \ + libharfbuzz.so:print/harfbuzz +x11_CONFLICTS_INSTALL= unison-nox11 + +USES= localbase ocaml:build pkgconfig +USE_GITHUB= yes +GH_ACCOUNT= bcpierce00 + +MAKE_ENV= CLIBS="${LIBS:S/^-/-ccopt -/}" \ + COFLAGS="${CFLAGS:C/ *(-[^ ]*) */ -ccopt \"\1 \"/gW}" +PLIST_SUB= PORTVERSION=${PORTVERSION} +ALL_TARGET= manpage + +OPTIONS_DEFINE= DOCS FSMONITOR +OPTIONS_DEFAULT= FSMONITOR +OPTIONS_SUB= YES + +FSMONITOR_DESC= Compile and install fsmonitor plugin + +DOCS_USES= tex +DOCS_USE= TEX=dvipsk:build,latex:build + +FSMONITOR_LIB_DEPENDS= libinotify.so:devel/libinotify + +.if ${FLAVOR} == nox11 +ALL_TARGET+= tui +PLIST_SUB+= X11="@comment " +.else +ALL_TARGET+= tui gui +SUB_FILES= ${PORTNAME}.desktop +USE_GNOME= atk cairo gdkpixbuf glib20 gtk30 pango +USES+= gettext-runtime gnome +PLIST_SUB+= X11="" +.endif + +DOCS= NEWS.md README.md + +.include <bsd.port.options.mk> + +.if ${ARCH} == powerpc +USE_BINUTILS= yes +.endif + +.if ${PORT_OPTIONS:MFSMONITOR} +ALL_TARGET+= fsmonitor +.endif + +post-build: + cd ${WRKSRC}/src && HOME=${WRKSRC}/src ./unison -selftest -ui text -batch +.if ${FLAVOR} == x11 + cd ${WRKSRC}/src/win32rc && ${LOCALBASE}/bin/icotool -x U.ico +.endif + +post-build-DOCS-on: + ${SETENV} ${MAKE_ENV} ${MAKE_CMD} -C ${WRKSRC}/doc unison-manual.pdf + +post-install: +.if ${FLAVOR} != nox11 + ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR} + ${INSTALL_DATA} ${WRKSRC}/src/win32rc/U_4_48x48x32.png ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png +.endif + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC}/doc && ${INSTALL_DATA} unison-manual.pdf ${STAGEDIR}${DOCSDIR} + +.include <bsd.port.mk> diff --git a/net/unison253/distinfo b/net/unison253/distinfo new file mode 100644 index 000000000000..0624804c8197 --- /dev/null +++ b/net/unison253/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1762328383 +SHA256 (bcpierce00-unison-v2.53.8_GH0.tar.gz) = d0d30ea63e09fc8edf10bd8cbab238fffc8ed510d27741d06b5caa816abd58b6 +SIZE (bcpierce00-unison-v2.53.8_GH0.tar.gz) = 1448430 diff --git a/net/unison253/files/unison.desktop.in b/net/unison253/files/unison.desktop.in new file mode 100644 index 000000000000..fcecb1edd9c0 --- /dev/null +++ b/net/unison253/files/unison.desktop.in @@ -0,0 +1,12 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Unison +GenericName=File-synchronization tool +Type=Application +Terminal=false +StartupNotify=true +Categories=GTK;Utility; +Exec=unison-gui +Icon=unison.png +Comment=Synchronize files (directories) over different disks (hosts) +Comment[ru]=Синхронизация файлов (каталогов) на нескольких дисках (компьютерах) diff --git a/net/unison253/pkg-descr b/net/unison253/pkg-descr new file mode 100644 index 000000000000..c96194d13db8 --- /dev/null +++ b/net/unison253/pkg-descr @@ -0,0 +1,9 @@ +Unison is a file-synchronization tool for Unix and Windows. It allows two +replicas of a collection of files and directories to be stored on different +hosts (or different disks on the same host), modified separately, and then +brought up to date by propagating the changes in each replica to the other. + +Unison shares a number of features with tools such as configuration +management packages (CVS, PRCS, etc.) distributed filesystems (Coda, etc.) +uni-directional mirroring utilities (rsync, etc.) and other synchronizers +(Intellisync, Reconcile, etc). diff --git a/net/unison253/pkg-message b/net/unison253/pkg-message new file mode 100644 index 000000000000..6135e10de4de --- /dev/null +++ b/net/unison253/pkg-message @@ -0,0 +1,13 @@ +[ +{ type: upgrade + minimum_version: "2.53.7" + message: <<EOM +STarting with version 2.53.8 the "unison" binary is the text only version. +The GUI version is installed as unison-gui and no "unison-text" binary is +installed anymore. + +Please make sure to update any local scripts and configurations that were +using the old naming scheme. +EOM +} +] diff --git a/net/unison253/pkg-plist b/net/unison253/pkg-plist new file mode 100644 index 000000000000..8f498db4a7de --- /dev/null +++ b/net/unison253/pkg-plist @@ -0,0 +1,9 @@ +bin/unison +%%FSMONITOR%%bin/unison-fsmonitor +%%X11%%share/applications/unison.desktop +%%X11%%bin/unison-gui +%%X11%%share/pixmaps/unison.png +share/man/man1/unison.1.gz +%%PORTDOCS%%%%DOCSDIR%%/NEWS.md +%%PORTDOCS%%%%DOCSDIR%%/README.md +%%PORTDOCS%%%%DOCSDIR%%/unison-manual.pdfhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69f7474e.3c733.2892c741>
