aboutsummaryrefslogtreecommitdiff
path: root/security/keychain/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'security/keychain/Makefile')
-rw-r--r--security/keychain/Makefile29
1 files changed, 14 insertions, 15 deletions
diff --git a/security/keychain/Makefile b/security/keychain/Makefile
index 437c25f03d07..f608402ee29c 100644
--- a/security/keychain/Makefile
+++ b/security/keychain/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= keychain
-PORTVERSION= 2.5.4.1
+PORTVERSION= 2.5.5
CATEGORIES= security
MASTER_SITES= http://dev.gentoo.org/~agriffis/keychain/
@@ -16,27 +16,26 @@ COMMENT= A user-friendly front-end to ssh-agent(1)
USE_BZIP2= yes
NO_BUILD= yes
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} < 400016
-RUN_DEPENDS+= ssh-agent:${PORTSDIR}/security/openssh
-.endif
-
MAN1= keychain.1
PLIST_FILES= bin/keychain
+
.if !defined(NOPORTDOCS)
PORTDOCS= ChangeLog README
.endif
+.if !exists(${LOCALBASE}/bin/ssh-agent) && !exists(/usr/bin/ssh-agent)
+RUN_DEPENDS+= ssh-agent:${PORTSDIR}/security/openssh-portable
+.endif
+
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/keychain ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/keychain.1 ${PREFIX}/man/man1
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
-.for file in ${PORTDOCS}
- ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
-.endfor
-.endif
-
-.include <bsd.port.post.mk>
+. if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+. for f in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
+. endfor
+. endif
+
+.include <bsd.port.mk>