freebsd-ports/shells/scponly/Makefile

73 lines
2.1 KiB
Makefile
Raw Normal View History

# Created by: mcglk@artlogix.com
# $FreeBSD$
PORTNAME= scponly
PORTVERSION= 4.8.20110526
PORTREVISION= 2
CATEGORIES= shells security
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-snapshots
DISTNAME= ${PORTNAME}-20110526
MAINTAINER= garga@FreeBSD.org
2014-03-06 18:56:19 +01:00
COMMENT= Tiny shell that only permits scp and sftp
LICENSE= BSD2CLAUSE
PORTDOCS= BUILDING-JAILS.TXT INSTALL README SECURITY
2014-06-20 02:09:20 +02:00
USES= tar:tgz
GNU_CONFIGURE= yes
OPTIONS_DEFINE= WILDCARDS GFTP CHROOT RSYNC SCP SVN SVNSERVE UNISON WINSCP \
DEFAULT_CHDIR DOCS
OPTIONS_DEFAULT= WILDCARDS
DEFAULT_CHDIR_DESC= Chdir(2) by default
WILDCARDS_DESC= Wildcards processing
GFTP_DESC= gftp support
RSYNC_DESC= rsync support
CHROOT_DESC= chroot(8) functionality
SCP_DESC= vanilla scp support
SVNSERVE_DESC= Suversion support for svn+ssh://
UNISON_DESC= Unisson support
WINSCP_DESC= WinSCP support
2014-03-06 18:56:19 +01:00
OPTIONS_SUB= yes
.if !exists(/usr/bin/sftp)
BUILD_DEPENDS= ${LOCALBASE}/bin/sftp:security/openssh-portable
.endif
2014-03-06 18:56:19 +01:00
DEFAULT_CHDIR_CONFIGURE_ON= --with-default-chdir=${SCPONLY_DEFAULT_CHDIR}
2014-03-15 15:50:08 +01:00
WILDCARDS_CONFIGURE_ENABLE= wildcards
GFTP_CONFIGURE_ENABLE= gftp-compat
CHROOT_CONFIGURE_ENABLE= chrooted-binary
2014-03-06 18:56:19 +01:00
CHROOT_USE= RC_SUBR=scponlyc
RSYNC_BUILD_DEPENDS= rsync:net/rsync
2014-03-15 15:50:08 +01:00
RSYNC_CONFIGURE_ENABLE= rsync-compat
SCP_CONFIGURE_ENABLE= scp-compat
SVN_CONFIGURE_ENABLE= svn-compat
SVN_BUILD_DEPENDS= svn:devel/subversion
SVNSERVE_BUILD_DEPENDS= svn:devel/subversion
2014-03-15 15:50:08 +01:00
SVNSERVE_CONFIGURE_ENABLE= svnserv-compat
UNISON_BUILD_DEPENDS= unison:net/unison
2014-03-15 15:50:08 +01:00
UNISON_CONFIGURE_ENABLE= unison-compat
WINSCP_CONFIGURE_ENABLE= winscp-compat
2014-03-06 18:56:19 +01:00
RUN_DEPENDS:= ${BUILD_DEPENDS}
post-patch:
@${ECHO_MSG} "In addition to knobs available from the OPTIONS dialog,"
@${ECHO_MSG} "you may set SCPONLY_DEFAULT_CHDIR to make users 'cd' to"
@${ECHO_MSG} "this directory after authentication."
2014-03-06 18:56:19 +01:00
@${REINPLACE_CMD} -e "s/-o 0 -g 0//g" ${WRKSRC}/Makefile.in
post-install:
2014-03-06 18:56:19 +01:00
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/setup_chroot.sh ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/config.h ${STAGEDIR}${EXAMPLESDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/$i ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>