mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-15 23:50:44 +00:00
a21ac3268a
Stop registering ssh dependency on systems posterior to 4.0-RELEASE. PR: ports/18320 Submitted by: R,Ai(Bmi Guyomarch <rguyom@321.net>
48 lines
1.3 KiB
Makefile
48 lines
1.3 KiB
Makefile
# New ports collection makefile for: sftp
|
|
# Date created: 30 December 1999
|
|
# Whom: Cy Shubert <Cy.Shubert@uumail.gov.bc.ca>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= sftp
|
|
PORTVERSION= 0.9.4
|
|
CATEGORIES= ftp security
|
|
MASTER_SITES= ftp://ftp.xbill.org/pub/sftp/
|
|
|
|
MAINTAINER= Cy.Schubert@uumail.gov.bc.ca
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} < 400014
|
|
RUN_DEPENDS= ssh:${PORTSDIR}/security/openssh
|
|
.endif
|
|
|
|
RESTRICTED= "Calls external cryptographic routines."
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --enable-remotepath=${PREFIX}/libexec
|
|
|
|
MAN1= secftp.1
|
|
|
|
PLIST= ${WRKDIR}/.PLIST
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/sftp ${PREFIX}/bin/secftp
|
|
${LN} -s ${PREFIX}/bin/secftp ${PREFIX}/bin/rsftp
|
|
${INSTALL_PROGRAM} ${WRKSRC}/sftpserv ${PREFIX}/libexec/sftpserv
|
|
${INSTALL_MAN} ${WRKSRC}/sftp.1 ${PREFIX}/man/man1/secftp.1
|
|
${CP} ${PKGDIR}/PLIST.in ${PLIST}.unsorted
|
|
@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; \
|
|
${ECHO} bin/sftp >> ${PLIST}.unsorted; \
|
|
${ECHO} man/man1/sftp.1.gz >> ${PLIST}.unsorted; \
|
|
else \
|
|
${ECHO} "Other sftp found, not linking sftp to secftp"; \
|
|
fi
|
|
@sort -u ${PLIST}.unsorted > ${PLIST}
|
|
|
|
.include <bsd.port.post.mk>
|