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.
This commit is contained in:
@@ -1660,6 +1660,7 @@
|
||||
SUBDIR += unison
|
||||
SUBDIR += unison248
|
||||
SUBDIR += unison251
|
||||
SUBDIR += unison253
|
||||
SUBDIR += unix2tcp
|
||||
SUBDIR += urelay
|
||||
SUBDIR += uriparser
|
||||
|
||||
@@ -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>
|
||||
@@ -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
|
||||
@@ -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]=Синхронизация файлов (каталогов) на нескольких дисках (компьютерах)
|
||||
@@ -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).
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
@@ -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.pdf
|
||||
Reference in New Issue
Block a user