23d0a8852c
Changes since last packaged version (2.3.0): 2.3.2 - fixed segfault due to checking the length of variables that I forgot to remove from build_arg_vector() since the chroot root exploit fix in 2.3.0 2.3.1 - fixed stupid bug that caused rssh not to allow rsync and rdist
52 lines
1.5 KiB
Makefile
52 lines
1.5 KiB
Makefile
# $NetBSD: Makefile,v 1.9 2006/01/14 00:52:33 seb Exp $
|
|
#
|
|
|
|
DISTNAME= rssh-2.3.2
|
|
CATEGORIES= shells security
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=rssh/}
|
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
|
HOMEPAGE= http://rssh.sourceforge.net/
|
|
COMMENT= Restricted shell allowing only scp and/or sftp
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
|
|
|
.if !exists(/usr/include/wordexp.h)
|
|
PKG_SKIP_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 ${EGDIR}/rssh.conf
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|