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
This commit is contained in:
@@ -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/synchronization utility
|
||||
|
||||
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>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
bin/rsync
|
||||
sbin/rrsync
|
||||
man/man1/rsync.1.gz
|
||||
man/man5/rsyncd.conf.5.gz
|
||||
@sample %%ETCDIR%%/rsyncd.conf.sample
|
||||
|
||||
Reference in New Issue
Block a user