60d1a83c2a
- Replace ${MASTER_SITE_FOO} with FOO. - Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9% of the time.) - Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and no hint of what it should be was present. - Fix some logic. - And generally, make things more simple and easy to understand. While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and SAMBA macros. Also, replace some EXTRACT_SUFX occurences with USES=tar:*. Checked by: make fetch-urlall-list With hat: portmgr Sponsored by: Absolight
68 lines
2.1 KiB
Makefile
68 lines
2.1 KiB
Makefile
# Created by: mcglk@artlogix.com
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= scponly
|
|
PORTVERSION= 4.8.20110526
|
|
PORTREVISION= 1
|
|
CATEGORIES= shells security
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-snapshots
|
|
DISTNAME= ${PORTNAME}-20110526
|
|
|
|
MAINTAINER= gjb@FreeBSD.org
|
|
COMMENT= Tiny shell that only permits scp and sftp
|
|
|
|
PORTDOCS= BUILDING-JAILS.TXT INSTALL README SECURITY
|
|
|
|
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
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
BUILD_DEPENDS= sftp:${PORTSDIR}/security/openssh-portable
|
|
DEFAULT_CHDIR_CONFIGURE_ON= --with-default-chdir=${SCPONLY_DEFAULT_CHDIR}
|
|
WILDCARDS_CONFIGURE_ENABLE= wildcards
|
|
GFTP_CONFIGURE_ENABLE= gftp-compat
|
|
CHROOT_CONFIGURE_ENABLE= chrooted-binary
|
|
CHROOT_USE= RC_SUBR=scponlyc
|
|
RSYNC_BUILD_DEPENDS= rsync:${PORTSDIR}/net/rsync
|
|
RSYNC_CONFIGURE_ENABLE= rsync-compat
|
|
SCP_CONFIGURE_ENABLE= scp-compat
|
|
SVN_CONFIGURE_ENABLE= svn-compat
|
|
SVN_BUILD_DEPENDS= svn:${PORTSDIR}/devel/subversion
|
|
SVNSERVE_BUILD_DEPENDS= svn:${PORTSDIR}/devel/subversion
|
|
SVNSERVE_CONFIGURE_ENABLE= svnserv-compat
|
|
UNISON_BUILD_DEPENDS= unison:${PORTSDIR}/net/unison
|
|
UNISON_CONFIGURE_ENABLE= unison-compat
|
|
WINSCP_CONFIGURE_ENABLE= winscp-compat
|
|
|
|
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."
|
|
@${REINPLACE_CMD} -e "s/-o 0 -g 0//g" ${WRKSRC}/Makefile.in
|
|
|
|
post-install:
|
|
@${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>
|