freebsd-ports/net/rsync/Makefile

65 lines
1.5 KiB
Makefile
Raw Normal View History

# ex:ts=8
2000-02-12 22:25:05 -05:00
# Ports collection makefile for: rsync
# Date created: Sat Aug 3, 1996
# Whom: David O'Brien (obrien@cs.ucdavis.edu)
#
1999-08-30 10:24:37 -04:00
# $FreeBSD$
#
PORTNAME= rsync
2000-09-08 16:15:03 -04:00
PORTVERSION= 2.4.6
PORTREVISION= 3
CATEGORIES= net ipv6
MASTER_SITES= ftp://samba.anu.edu.au/pub/rsync/ \
ftp://sunsite.auc.dk/pub/unix/rsync/ \
ftp://ftp.sunet.se/pub/unix/admin/rsync/ \
ftp://ftp.fu-berlin.de/pub/unix/network/rsync/
2000-07-19 11:36:18 -04:00
PATCH_SITES= ftp://ftp.kame.net/pub/kame/misc/ \
ftp://ftp.pasta.cs.uit.no/pub/IPv6/misc/
2000-09-13 16:02:10 -04:00
PATCHFILES= rsync-246-v6-20000907.diff.gz
2000-07-19 11:36:18 -04:00
PATCH_DIST_STRIP= -p1
2000-02-12 22:25:05 -05:00
MAINTAINER= obrien@FreeBSD.org
GNU_CONFIGURE= yes
.include <bsd.port.pre.mk>
.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 02:01:22 -05:00
.if ${OSVERSION} >= 400014
CONFIGURE_ARGS= --enable-ipv6
2000-02-17 02:01:22 -05:00
.else
CONFIGURE_ARGS= --disable-ipv6
2000-02-17 02:01:22 -05:00
.endif
MAN1= rsync.1
MAN5= rsyncd.conf.5
1998-12-18 04:06:29 -05:00
pre-configure:
@${PERL} -pi.orig -e 's:/etc/:${PREFIX}/etc/:g' \
${WRKSRC}/rsync.h ${WRKSRC}/rsync.1 ${WRKSRC}/rsyncd.conf.5
.if defined(WITH_SSH)
@${PERL} -pi.orig-rsh -e 's/"rsh"/"ssh"/g' ${WRKSRC}/rsync.h
.endif
1998-12-18 04:06:29 -05:00
post-install:
@strip ${PREFIX}/bin/rsync
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/rsync
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/rsync
${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/share/doc/rsync
${INSTALL_DATA} ${WRKSRC}/tech_report.tex ${PREFIX}/share/doc/rsync
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>