1999-12-31 02:27:05 +00:00
|
|
|
# New ports collection makefile for: sftp
|
|
|
|
# Date created: 30 December 1999
|
|
|
|
# Whom: Cy Shubert <Cy.Shubert@uumail.gov.bc.ca>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-12 05:31:29 +00:00
|
|
|
PORTNAME= sftp
|
2000-09-02 14:09:42 +00:00
|
|
|
PORTVERSION= 0.9.6
|
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
|
|
|
|
|
2000-05-01 10:34:33 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 400014
|
1999-12-31 02:27:05 +00:00
|
|
|
RUN_DEPENDS= ssh:${PORTSDIR}/security/openssh
|
2000-05-01 10:34:33 +00:00
|
|
|
.endif
|
1999-12-31 02:27:05 +00:00
|
|
|
|
|
|
|
RESTRICTED= "Calls external cryptographic routines."
|
|
|
|
|
2000-04-22 09:57:37 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2000-05-01 10:34:33 +00:00
|
|
|
CONFIGURE_ARGS= --enable-remotepath=${PREFIX}/libexec
|
1999-12-31 02:27:05 +00:00
|
|
|
|
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-10-08 00:58:54 +00:00
|
|
|
${CP} ${PKGDIR}/pkg-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
|
|
|
|
2000-05-01 10:34:33 +00:00
|
|
|
.include <bsd.port.post.mk>
|