mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
60 lines
1.3 KiB
Makefile
60 lines
1.3 KiB
Makefile
# ex:ts=8
|
|
# Ports collection makefile for: rsync
|
|
# Date created: Sat Aug 3, 1996
|
|
# Whom: David O'Brien (obrien@cs.ucdavis.edu)
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= rsync
|
|
PORTVERSION= 2.5.2
|
|
PORTREVISION= 1
|
|
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/
|
|
|
|
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
|
|
|
|
.if ${OSVERSION} >= 400014
|
|
CONFIGURE_ARGS= --disable-debug --enable-ipv6
|
|
.else
|
|
CONFIGURE_ARGS= --disable-debug --disable-ipv6
|
|
.endif
|
|
MAN1= rsync.1
|
|
MAN5= rsyncd.conf.5
|
|
|
|
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
|
|
|
|
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>
|