50 lines
1.1 KiB
Makefile
50 lines
1.1 KiB
Makefile
COMMENT = mirroring/synchronization over low bandwidth links
|
|
|
|
DISTNAME = rsync-3.2.3
|
|
REVISION = 1
|
|
CATEGORIES = net
|
|
HOMEPAGE = https://rsync.samba.org/
|
|
|
|
FLAVORS = iconv
|
|
FLAVOR ?=
|
|
|
|
# GPLv3
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB = c crypto
|
|
|
|
MASTER_SITES = https://rsync.samba.org/ftp/rsync/src/ \
|
|
https://ftp.funet.fi/pub/mirrors/samba.org/pub/rsync/src/
|
|
|
|
SEPARATE_BUILD =Yes
|
|
CONFIGURE_STYLE =gnu
|
|
CONFIGURE_ARGS =--disable-lz4 \
|
|
--disable-xxhash \
|
|
--disable-zstd \
|
|
--with-included-popt \
|
|
--with-included-zlib \
|
|
--with-rsyncd-conf="${SYSCONFDIR}/rsyncd.conf" \
|
|
--with-rsh=/usr/bin/ssh \
|
|
--with-nobody-group=_rsync
|
|
|
|
.if ${FLAVOR:Miconv}
|
|
CONFIGURE_ENV +=CPPFLAGS='-I${LOCALBASE}/include' \
|
|
LDFLAGS='-L${LOCALBASE}/lib'
|
|
LIB_DEPENDS += converters/libiconv
|
|
WANTLIB += iconv
|
|
.endif
|
|
|
|
DOCDIR = ${PREFIX}/share/doc/rsync
|
|
DEBUG_PACKAGES = ${BUILD_PACKAGES}
|
|
|
|
pre-configure:
|
|
${SUBST_CMD} ${WRKSRC}/rsyncd.conf.5 \
|
|
${WRKSRC}/support/rrsync
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${DOCDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/tech_report.tex ${DOCDIR}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/support/rrsync ${PREFIX}/bin
|
|
|
|
.include <bsd.port.mk>
|