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