1999-12-31 02:27:05 +00:00
|
|
|
# New ports collection makefile for: sftp
|
2000-02-08 15:06:08 +00:00
|
|
|
# Version required: 0.7
|
1999-12-31 02:27:05 +00:00
|
|
|
# Date created: 30 December 1999
|
|
|
|
# Whom: Cy Shubert <Cy.Shubert@uumail.gov.bc.ca>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-02-08 15:06:08 +00:00
|
|
|
DISTNAME= sftp-0.7
|
1999-12-31 02:27:05 +00:00
|
|
|
CATEGORIES= ftp security
|
|
|
|
MASTER_SITES= ftp://ftp.xbill.org/pub/sftp/
|
|
|
|
|
|
|
|
MAINTAINER= Cy.Schubert@uumail.gov.bc.ca
|
|
|
|
|
|
|
|
RUN_DEPENDS= ssh:${PORTSDIR}/security/openssh
|
|
|
|
|
|
|
|
RESTRICTED= "Calls external cryptographic routines."
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX} \
|
|
|
|
--enable-remotepath=${PREFIX}/libexec
|
|
|
|
|
2000-01-24 06:21:47 +00:00
|
|
|
MAN1= secftp.1
|
|
|
|
|
2000-02-08 15:06:08 +00:00
|
|
|
PLIST= ${WRKDIR}/.PLIST
|
1999-12-31 02:27:05 +00:00
|
|
|
|
|
|
|
do-install:
|
2000-01-24 06:21:47 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/sftp ${PREFIX}/bin/secftp
|
|
|
|
${LN} -s ${PREFIX}/bin/secftp ${PREFIX}/bin/rsftp
|
1999-12-31 02:27:05 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/sftpserv ${PREFIX}/libexec/sftpserv
|
2000-01-24 06:21:47 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/sftp.1 ${PREFIX}/man/man1/secftp.1
|
2000-02-08 15:06:08 +00:00
|
|
|
${CP} ${PKGDIR}/PLIST.in ${PLIST}.unsorted
|
2000-01-24 06:21:47 +00:00
|
|
|
@if [ ! -f ${PREFIX}/bin/sftp ]; then \
|
|
|
|
${ECHO} "No other sftp found, linking sftp to secftp"; \
|
|
|
|
${LN} -s ${PREFIX}/bin/secftp ${PREFIX}/bin/sftp; \
|
|
|
|
${LN} -s ${PREFIX}/man/man1/secftp.1.gz ${PREFIX}/man/man1/sftp.1.gz; \
|
2000-02-08 15:06:08 +00:00
|
|
|
${ECHO} bin/sftp >> ${PLIST}.unsorted; \
|
|
|
|
${ECHO} man/man1/sftp.1.gz >> ${PLIST}.unsorted; \
|
2000-01-24 06:21:47 +00:00
|
|
|
else \
|
|
|
|
${ECHO} "Other sftp found, not linking sftp to secftp"; \
|
|
|
|
fi
|
2000-02-08 15:06:08 +00:00
|
|
|
@sort -u ${PLIST}.unsorted > ${PLIST}
|
1999-12-31 02:27:05 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|