aboutsummaryrefslogtreecommitdiffstats
path: root/security/keychain/Makefile
blob: 4354d79751dbf8df377f3722fa5ecd9b638a9c00 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Created by: Johann Visagie <wjv@FreeBSD.org>
# $FreeBSD$

PORTNAME=   keychain
PORTVERSION=    2.7.1
CATEGORIES= security
MASTER_SITES=   http://www.funtoo.org/archive/keychain/ \
        GENTOO/distfiles

MAINTAINER= garga@FreeBSD.org
COMMENT=    User-friendly front-end to ssh-agent(1)

LICENSE=    GPLv2

USES=       gmake perl5
USE_PERL5=  build
OPTIONS_DEFINE= DOCS
FETCH_ARGS?=    -Fpr
USE_BZIP2=  yes

MAN1=       keychain.1

PLIST_FILES=    bin/${PORTNAME}

PORTDOCS=   ChangeLog README.rst

NO_STAGE=   yes
.include <bsd.port.pre.mk>

.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}/${PORTNAME} ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1

.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif

.include <bsd.port.post.mk>