49 lines
1.1 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.82 2019/10/07 15:28:25 jca Exp $
COMMENT = mirroring/synchronization over low bandwidth links
DISTNAME = rsync-3.1.3
CATEGORIES = net
HOMEPAGE = https://rsync.samba.org/
MAINTAINER = Marc Espie <espie@openbsd.org>
2011-09-03 13:06:01 +00:00
FLAVORS = iconv
FLAVOR ?=
# GPLv3
PERMIT_PACKAGE = Yes
WANTLIB = c
2000-02-12 08:02:07 +00:00
MASTER_SITES = https://filedump.se.rit.edu/pub/distfiles/ \
https://rsync.samba.org/ftp/rsync/src/ \
http://ftp.funet.fi/pub/mirrors/samba.org/pub/rsync/src/
CONFIGURE_STYLE =gnu
CONFIGURE_ARGS =--with-included-popt \
--with-included-zlib \
--with-rsyncd-conf="${SYSCONFDIR}/rsyncd.conf" \
--with-rsh=/usr/bin/ssh \
--with-nobody-group=_rsync
.if ${FLAVOR:Miconv}
2011-09-03 13:06:01 +00:00
CONFIGURE_ENV += CPPFLAGS='-I${LOCALBASE}/include' \
LDFLAGS='-L${LOCALBASE}/lib'
LIB_DEPENDS += converters/libiconv
WANTLIB += iconv
2011-09-03 13:06:01 +00:00
.endif
DOCDIR = ${PREFIX}/share/doc/rsync
pre-configure:
2012-09-18 11:28:23 +00:00
${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>