2001-02-07 15:51:16 +01:00
|
|
|
# ex:ts=8
|
2000-02-13 04:25:05 +01:00
|
|
|
# Ports collection makefile for: rsync
|
|
|
|
# Date created: Sat Aug 3, 1996
|
|
|
|
# Whom: David O'Brien (obrien@cs.ucdavis.edu)
|
1996-08-16 09:23:01 +02:00
|
|
|
#
|
1999-08-30 16:24:37 +02:00
|
|
|
# $FreeBSD$
|
1996-08-16 09:23:01 +02:00
|
|
|
#
|
|
|
|
|
2000-04-09 20:14:07 +02:00
|
|
|
PORTNAME= rsync
|
2002-04-02 14:27:29 +02:00
|
|
|
PORTVERSION= 2.5.5
|
2002-04-20 22:19:47 +02:00
|
|
|
PORTREVISION= 1
|
2001-01-16 18:33:20 +01:00
|
|
|
CATEGORIES= net ipv6
|
1996-10-22 19:07:22 +02:00
|
|
|
MASTER_SITES= ftp://samba.anu.edu.au/pub/rsync/ \
|
1998-01-03 11:14:32 +01:00
|
|
|
ftp://sunsite.auc.dk/pub/unix/rsync/ \
|
1998-04-21 07:02:58 +02:00
|
|
|
ftp://ftp.sunet.se/pub/unix/admin/rsync/ \
|
1998-01-03 11:14:32 +01:00
|
|
|
ftp://ftp.fu-berlin.de/pub/unix/network/rsync/
|
1996-08-16 09:23:01 +02:00
|
|
|
|
2002-08-21 16:46:07 +02:00
|
|
|
MAINTAINER= obraun@FreeBSD.org
|
1996-08-16 09:23:01 +02:00
|
|
|
|
2002-08-31 08:20:26 +02:00
|
|
|
.if defined(WITH_POPT_PORT)
|
2002-04-26 20:40:14 +02:00
|
|
|
LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt
|
2002-08-31 08:20:26 +02:00
|
|
|
.endif
|
2002-04-26 20:40:14 +02:00
|
|
|
|
2002-06-19 10:18:10 +02:00
|
|
|
USE_REINPLACE= yes
|
1996-08-16 09:23:01 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2002-08-31 08:20:26 +02:00
|
|
|
.if defined(WITH_POPT_PORT)
|
2002-04-26 20:40:14 +02:00
|
|
|
CONFIGURE_ENV= CFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LIBS="-L${LOCALBASE}/lib"
|
2002-08-31 08:20:26 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS= --with-included-popt
|
|
|
|
.endif
|
2000-01-26 10:22:00 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2001-03-08 12:40:26 +01:00
|
|
|
.if ${OSVERSION} >= 400016
|
|
|
|
USE_SSH?= yes
|
|
|
|
.else
|
|
|
|
USE_SSH?= no
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${USE_SSH:U} == YES
|
|
|
|
EXTRA_PATCHES= ${FILESDIR}/ssh-patch-*
|
|
|
|
.endif
|
|
|
|
|
2000-02-17 08:01:22 +01:00
|
|
|
.if ${OSVERSION} >= 400014
|
2002-08-31 08:20:26 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-debug --enable-ipv6
|
2000-02-17 08:01:22 +01:00
|
|
|
.else
|
2002-08-31 08:20:26 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-debug --disable-ipv6
|
2000-02-17 08:01:22 +01:00
|
|
|
.endif
|
1996-11-18 12:44:27 +01:00
|
|
|
MAN1= rsync.1
|
1998-07-06 11:51:27 +02:00
|
|
|
MAN5= rsyncd.conf.5
|
1997-09-28 06:49:43 +02:00
|
|
|
|
2002-08-31 08:20:26 +02:00
|
|
|
.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
|
|
|
|
|
1998-12-18 10:06:29 +01:00
|
|
|
pre-configure:
|
2002-06-14 09:21:10 +02:00
|
|
|
@${REINPLACE_CMD} -e 's:/etc/:${PREFIX}/etc/:g' \
|
2001-01-07 18:49:52 +01:00
|
|
|
${WRKSRC}/rsync.h ${WRKSRC}/rsync.1 ${WRKSRC}/rsyncd.conf.5
|
2002-06-14 09:21:10 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|g' \
|
2002-04-03 23:52:38 +02:00
|
|
|
${WRKSRC}/rsync.h ${WRKSRC}/zlib/zutil.h
|
2000-04-17 02:19:02 +02:00
|
|
|
.if defined(WITH_SSH)
|
2002-06-14 09:21:10 +02:00
|
|
|
@${REINPLACE_CMD} -e 's/"rsh"/"ssh"/g' ${WRKSRC}/rsync.h
|
2000-02-17 06:43:24 +01:00
|
|
|
.endif
|
1998-12-18 10:06:29 +01:00
|
|
|
|
1996-08-16 09:23:01 +02:00
|
|
|
post-install:
|
1996-12-01 02:23:27 +01:00
|
|
|
@strip ${PREFIX}/bin/rsync
|
1996-08-16 09:23:01 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
1996-12-01 02:23:27 +01:00
|
|
|
@${MKDIR} ${PREFIX}/share/doc/rsync
|
1998-07-06 11:51:27 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/rsync
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/share/doc/rsync
|
1998-01-03 11:14:32 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/tech_report.tex ${PREFIX}/share/doc/rsync
|
1996-08-16 09:23:01 +02:00
|
|
|
.endif
|
2001-03-08 12:40:26 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
1996-08-16 09:23:01 +02:00
|
|
|
|
2000-01-26 10:22:00 +01:00
|
|
|
.include <bsd.port.post.mk>
|