summaryrefslogtreecommitdiff
path: root/ftp/sftp
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2003-07-05 19:01:41 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2003-07-05 19:01:41 +0000
commitb213c0c4e1c19f74ccdf31aca98dbcddcc2b5d14 (patch)
tree0755fd2cd27254b4bd8ea7982fedbcc1090b9341 /ftp/sftp
parentAdd the first part of "Concurrent Programming in Erlang", a book (diff)
Generate plist either statically or before do-install phase for
compatibility with upcoming bsd.port.mk patches. Submitted by: Sergey Matveychuk <sem@ciam.ru>
Notes
Notes: svn path=/head/; revision=84245
Diffstat (limited to 'ftp/sftp')
-rw-r--r--ftp/sftp/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/ftp/sftp/Makefile b/ftp/sftp/Makefile
index 23c9a08aa125..cc92dbc7cf82 100644
--- a/ftp/sftp/Makefile
+++ b/ftp/sftp/Makefile
@@ -26,21 +26,25 @@ MAN1= secftp.1
PLIST= ${WRKDIR}/.PLIST
+pre-install:
+ @${CP} ${PKGDIR}/pkg-plist.in ${PLIST}.unsorted
+ @if [ ! -f ${PREFIX}/bin/sftp ]; then \
+ ${ECHO_CMD} bin/sftp >> ${PLIST}.unsorted; \
+ ${ECHO_CMD} man/man1/sftp.1.gz >> ${PLIST}.unsorted; \
+ fi
+ @sort -u ${PLIST}.unsorted > ${PLIST}
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/sftp ${PREFIX}/bin/secftp
${LN} -s ${PREFIX}/bin/secftp ${PREFIX}/bin/rsftp
${INSTALL_PROGRAM} ${WRKSRC}/sftpserv ${PREFIX}/bin/sftpserv
${INSTALL_MAN} ${WRKSRC}/sftp.1 ${PREFIX}/man/man1/secftp.1
- ${CP} ${PKGDIR}/pkg-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_CMD} bin/sftp >> ${PLIST}.unsorted; \
- ${ECHO_CMD} 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>