# Ports collection makefile for: rsync # Date created: Sat Aug 3, 1996 # Whom: David O'Brien (obrien@cs.ucdavis.edu) # # $FreeBSD$ # PORTNAME= rsync PORTVERSION= 2.6.6 CATEGORIES= net ipv6 MASTER_SITES= http://rsync.samba.org/ftp/%SUBDIR%/ \ ftp://ftp.samba.org//pub/%SUBDIR%/ \ ftp://sunsite.auc.dk/pub/unix/%SUBDIR%/ \ ftp://ftp.sunet.se/pub/unix/admin/%SUBDIR%/ \ ftp://ftp.fu-berlin.de/pub/unix/network/%SUBDIR%/ \ http://www.mirrorservice.org/sites/rsync.samba.org/ \ http://public.planetmirror.com/pub/%SUBDIR%/ MASTER_SITE_SUBDIR= rsync MAINTAINER= pav@FreeBSD.org COMMENT= A network file distribution/synchronization utility .if defined(WITH_POPT_PORT) LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt .endif USE_RC_SUBR= rsyncd.sh USE_REINPLACE= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-debug \ --with-rsyncd-conf=${PREFIX}/etc/rsyncd.conf CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} .if defined(WITH_POPT_PORT) CONFIGURE_ENV= CFLAGS="-I${LOCALBASE}/include" \ LIBS="-L${LOCALBASE}/lib" .else CONFIGURE_ARGS+= --with-included-popt .endif .if !defined(NOPORTDOCS) PORTDOCS= NEWS README csprotocol.txt tech_report.tex .endif .if !defined(WITHOUT_TIMELIMIT) EXTRA_PATCHES+= ${WRKSRC}/patches/time-limit.diff .endif .include SUB_LIST+= NAME=rsyncd .if ${OSVERSION} < 400016 WITHOUT_SSH?= yes .endif .if defined(WITHOUT_SSH) CONFIGURE_ARGS+= --with-rsh=rsh .endif .if ${OSVERSION} >= 400014 CONFIGURE_ARGS+= --enable-ipv6 .else CONFIGURE_ARGS+= --disable-ipv6 .endif MAN1= rsync.1 MAN5= rsyncd.conf.5 .if !defined(WITH_POPT_PORT) pre-everything:: @${ECHO_CMD} "rsync comes with an included version of popt." @${ECHO_CMD} "To build rsync with devel/popt instead," @${ECHO_CMD} "hit Ctrl-C now and define WITH_POPT_PORT" .endif pre-configure: @${REINPLACE_CMD} -e 's:/etc/:${PREFIX}/etc/:g' \ ${WRKSRC}/rsync.h ${WRKSRC}/rsync.1 ${WRKSRC}/rsyncd.conf.5 @${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|g' \ ${WRKSRC}/rsync.h ${WRKSRC}/zlib/zutil.h post-install: @${STRIP_CMD} ${DESTDIR}${PREFIX}/bin/rsync @${INSTALL_DATA} ${FILESDIR}/rsyncd.conf.sample ${DESTDIR}${PREFIX}/etc/ @[ -f ${DESTDIR}${PREFIX}/etc/rsyncd.conf ] || \ ${CP} ${DESTDIR}${PREFIX}/etc/rsyncd.conf.sample \ ${DESTDIR}${PREFIX}/etc/rsyncd.conf .if !defined(NOPORTDOCS) @${MKDIR} ${DESTDIR}${DOCSDIR} @${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DESTDIR}${DOCSDIR} .endif test: build @cd ${WRKSRC} && ${MAKE} check .include