aboutsummaryrefslogtreecommitdiffstats
path: root/ftp
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2003-07-06 03:01:41 +0800
committermarcus <marcus@FreeBSD.org>2003-07-06 03:01:41 +0800
commit540254342d988faadc650eac3b9a52bfb381f0e5 (patch)
treebf1f3dc47a372e72df51923feb4536817bd8bba8 /ftp
parent63df8650c861e4f09aca95367a15d73d1ca0eb68 (diff)
downloadfreebsd-ports-graphics-540254342d988faadc650eac3b9a52bfb381f0e5.tar.gz
freebsd-ports-graphics-540254342d988faadc650eac3b9a52bfb381f0e5.tar.zst
freebsd-ports-graphics-540254342d988faadc650eac3b9a52bfb381f0e5.zip
Generate plist either statically or before do-install phase for
compatibility with upcoming bsd.port.mk patches. Submitted by: Sergey Matveychuk <sem@ciam.ru>
Diffstat (limited to 'ftp')
-rw-r--r--ftp/sftp/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/ftp/sftp/Makefile b/ftp/sftp/Makefile
index 23c9a08aa12..cc92dbc7cf8 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>