svn commit: r441452 - head/net/rsync

Dan Langille dvl at FreeBSD.org
Mon May 22 12:10:43 UTC 2017


Author: dvl
Date: Mon May 22 12:10:42 2017
New Revision: 441452
URL: https://svnweb.freebsd.org/changeset/ports/441452

Log:
  Include rrsync with net/rsync
  This script can be used to restrict rsync to subdirectory declared in ~/.ssh/authorized_key
  bump PORTREVISION
  
  Approved by:	ehaupt (maintainer)
  Differential Revision:	https://reviews.freebsd.org/D10851

Modified:
  head/net/rsync/Makefile
  head/net/rsync/pkg-plist

Modified: head/net/rsync/Makefile
==============================================================================
--- head/net/rsync/Makefile	Mon May 22 12:06:51 2017	(r441451)
+++ head/net/rsync/Makefile	Mon May 22 12:10:42 2017	(r441452)
@@ -4,7 +4,7 @@
 PORTNAME=	rsync
 PORTVERSION=	3.1.2
 CATEGORIES=	net ipv6
-PORTREVISION=	6
+PORTREVISION=	7
 MASTER_SITES=	http://rsync.samba.org/ftp/rsync/ \
 		ftp://ftp.samba.org/pub/rsync/ \
 		ftp://ftp.sunet.se/pub/unix/admin/rsync/  \
@@ -18,7 +18,8 @@ COMMENT=	Network file distribution/synch
 
 LICENSE=	GPLv3
 
-USES=		cpe
+USES=		cpe shebangfix
+SHEBANG_FILES=	support/rrsync
 
 CPE_VENDOR=	samba
 CPE_PRODUCT=	rsync
@@ -101,11 +102,13 @@ post-patch:
 	@${REINPLACE_CMD} -e 's|perl.*|${DO_NADA}|' ${WRKSRC}/Makefile.in
 	@${REINPLACE_CMD} -e 's:/etc/:${ETCDIR}/:g'  \
 		${WRKSRC}/rsync.h ${WRKSRC}/rsync.1 ${WRKSRC}/rsyncd.conf.5
+	@${REINPLACE_CMD} -e 's|/usr/bin/rsync|${PREFIX}/bin/rsync|g' ${WRKSRC}/support/rrsync
 
 post-install:
 	@${MKDIR} ${STAGEDIR}${ETCDIR}
 	${INSTALL_DATA} ${FILESDIR}/rsyncd.conf.sample ${STAGEDIR}${ETCDIR}/
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_SCRIPT} ${WRKSRC}/support/rrsync ${STAGEDIR}${PREFIX}/sbin
 
 .include <bsd.port.post.mk>

Modified: head/net/rsync/pkg-plist
==============================================================================
--- head/net/rsync/pkg-plist	Mon May 22 12:06:51 2017	(r441451)
+++ head/net/rsync/pkg-plist	Mon May 22 12:10:42 2017	(r441452)
@@ -1,4 +1,5 @@
 bin/rsync
+sbin/rrsync
 man/man1/rsync.1.gz
 man/man5/rsyncd.conf.5.gz
 @sample %%ETCDIR%%/rsyncd.conf.sample


More information about the svn-ports-all mailing list