Download raw body.
rsync add zstd flavor?
I have a project that requires rsync with zstd compression and I would
like to have the option in ports without having to manually modify my
rsync port Makefile if possible. The zstd option is disabled in the
rsync port right now. This diff would add a flavor for zstd. I'm not
sure everyone would want zstd enabled globally but a flavor might work
instead? Thoughts?
Bryan
Index: net/rsync/Makefile
===================================================================
RCS file: /cvs/ports/net/rsync/Makefile,v
retrieving revision 1.103
diff -u -p -u -r1.103 Makefile
--- net/rsync/Makefile 6 May 2024 12:23:48 -0000 1.103
+++ net/rsync/Makefile 26 Jun 2024 00:27:50 -0000
@@ -5,7 +5,7 @@ CATEGORIES = net
HOMEPAGE = https://rsync.samba.org/
REVISION = 0
-FLAVORS = iconv
+FLAVORS = iconv zstd
FLAVOR ?=
# GPLv3
@@ -26,7 +26,6 @@ BUILD_DEPENDS = textproc/py-commonmark${
SEPARATE_BUILD =Yes
CONFIGURE_STYLE =gnu
CONFIGURE_ARGS =--disable-lz4 \
- --disable-zstd \
--with-included-popt \
--with-included-zlib \
--with-rrsync \
@@ -47,6 +46,12 @@ CONFIGURE_ARGS +=--enable-md5-asm
CONFIGURE_ENV +=LDFLAGS='-L${LOCALBASE}/lib'
LIB_DEPENDS += converters/libiconv
WANTLIB += iconv
+.endif
+
+.if ${FLAVOR:Mzstd}
+CONFIGURE_ENV +=LDFLAGS='-L${LOCALBASE}/lib'
+LIB_DEPENDS += archivers/zstd
+WANTLIB += zstd
.endif
DOCDIR = ${PREFIX}/share/doc/rsync
rsync add zstd flavor?