head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	2026.08.15.06.57.50;	author wiz;	state Exp;
branches;
next	1.1;
commitid	lLjYTShpAfW2AHRG;

1.1
date	2026.08.14.19.51.09;	author kim;	state Exp;
branches;
next	;
commitid	MfXcyZQ0eHbnTDRG;


desc
@@


1.2
log
@rsync, rrsync: put some shared values into Makefile.common
@
text
@# $NetBSD: Makefile,v 1.1 2026/08/14 19:51:09 kim Exp $

.include "../../net/rsync/Makefile.common"

PKGNAME=		${DISTNAME:S/rsync/rrsync/}
EXTRACT_ELEMENTS=	${DISTNAME}/support/rrsync ${DISTNAME}/rrsync.1

COMMENT=		Restrict rsync users to a subdirectory via ssh logins

DEPENDS+=		rsync>=3.5.0:../../net/rsync
DEPENDS+=		${PYPKGPREFIX}-braceexpand>=0.1.7:../../textproc/py-braceexpand

USE_LANGUAGES=		# none

#NO_CONFIGURE=		yes
NO_BUILD=		yes

REPLACE_PYTHON=		support/rrsync

SUBST_CLASSES+=		paths
SUBST_MESSAGE.paths=	Fixing hardcoded paths.
SUBST_STAGE.paths=	pre-configure
SUBST_FILES.paths=	support/rrsync
SUBST_SED.paths=	-e "s|'/usr/bin/rsync'|'${PREFIX}/bin/rsync'|"

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/support/rrsync \
		${DESTDIR}${PREFIX}/bin/rrsync
	${INSTALL_MAN} ${WRKSRC}/rrsync.1 \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/rrsync.1

.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"
@


1.1
log
@Add net/rrsync
@
text
@d1 3
a3 1
# $NetBSD$
a4 1
DISTNAME=		rsync-3.5.0
a5 3
CATEGORIES=		net
MASTER_SITES=		https://rsync.samba.org/ftp/rsync/
MASTER_SITES+=		https://rsync.samba.org/ftp/rsync/old-versions/
a7 2
MAINTAINER=		pkgsrc-users@@NetBSD.org
HOMEPAGE=		https://rsync.samba.org/
a8 1
LICENSE=		gnu-gpl-v3
@

