[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / shells / rssh

File: [cvs.NetBSD.org] / pkgsrc / shells / rssh / Makefile (download)

Revision 1.14, Tue Sep 11 23:25:09 2012 UTC (11 years, 7 months ago) by asau
Branch: MAIN
CVS Tags: pkgsrc-2012Q3-base, pkgsrc-2012Q3
Changes since 1.13: +1 -3 lines

"user-destdir" is default these days

# $NetBSD: Makefile,v 1.14 2012/09/11 23:25:09 asau Exp $

DISTNAME=	rssh-2.3.3
CATEGORIES=	shells security
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=rssh/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.pizzashack.org/rssh/
COMMENT=	Restricted shell allowing only scp and/or sftp

GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR}

.if !exists(/usr/include/wordexp.h)
PKG_FAIL_REASON+=	"${PKGNAME} requires wordexp(3)"
.endif

EGDIR=			${PREFIX}/share/examples/rssh
INSTALLATION_DIRS=	share/examples/rssh
CONF_FILES=		${EGDIR}/rssh.conf ${PKG_SYSCONFDIR}/rssh.conf
PKG_SHELL?=		bin/rssh

SPECIAL_PERMS+=	${PREFIX}/libexec/rssh_chroot_helper ${SETUID_ROOT_PERMS}

BUILD_DEFS+=		RSSH_SCP_PATH
BUILD_DEFS+=		RSSH_SFTP_SERVER_PATH
BUILD_DEFS+=		RSSH_CVS_PATH
BUILD_DEFS+=		RSSH_RDIST_PATH
BUILD_DEFS+=		RSSH_RSYNC_PATH

.if defined(RSSH_SCP_PATH) && !empty(RSSH_SCP_PATH)
CONFIGURE_ARGS+=	--with-scp=${RSSH_SCP_PATH:Q}
.endif
.if defined(RSSH_SFTP_SERVER_PATH) && !empty(RSSH_SFTP_SERVER_PATH)
CONFIGURE_ARGS+=	--with-sftp-server=${RSSH_SFTP_SERVER_PATH:Q}
.endif
.if defined(RSSH_CVS_PATH) && !empty(RSSH_CVS_PATH)
CONFIGURE_ARGS+=	--with-cvs=${RSSH_CVS_PATH:Q}
.endif
.if defined(RSSH_RDIST_PATH) && !empty(RSSH_RDIST_PATH)
CONFIGURE_ARGS+=	--with-rdist=${RSSH_RDIST_PATH:Q}
.endif
.if defined(RSSH_RSYNC_PATH) && !empty(RSSH_RSYNC_PATH)
CONFIGURE_ARGS+=	--with-rsync=${RSSH_RSYNC_PATH:Q}
.endif

post-install:
	${INSTALL_DATA} ${WRKSRC}/rssh.conf ${DESTDIR}${EGDIR}/rssh.conf

.include "../../mk/bsd.pkg.mk"