summaryrefslogtreecommitdiff
path: root/security/kpcli/Makefile
blob: ad7e2198563ef60cd9b384892bd34fca2f625bb2 (plain)
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
44
45
46
47
48
49

PORTNAME=	kpcli
PORTVERSION=	3.1
PORTREVISION=	1
CATEGORIES=	security
MASTER_SITES=	SF/kpcli/
EXTRACT_SUFX=	.pl

MAINTAINER=	alexander.4mail@gmail.com
COMMENT=	Command line interface to KeePassX and KeePass database files

LICENSE=	ART10 GPLv1+
LICENSE_COMB=	dual

BUILD_DEPENDS=	${RUN_DEPENDS}
RUN_DEPENDS=	p5-Crypt-Rijndael>=1.08:security/p5-Crypt-Rijndael \
		p5-Term-ReadKey>=2.30:devel/p5-Term-ReadKey \
		p5-Sort-Naturally>=1.02:textproc/p5-Sort-Naturally \
		p5-File-KeePass>=2.03:security/p5-File-KeePass \
		p5-Term-ShellUI>=0.9:shells/p5-Term-ShellUI \
		p5-Term-ReadLine-Gnu>=1.19:devel/p5-Term-ReadLine-Gnu \
		p5-Data-Password>=0:security/p5-Data-Password \
		p5-Clone>=0.31:devel/p5-Clone \
		p5-Capture-Tiny>=0:devel/p5-Capture-Tiny \
		p5-Clipboard>=0:x11/p5-Clipboard \
		p5-Math-Random-ISAAC>=1.0.1:math/p5-Math-Random-ISAAC

USES=		perl5 shebangfix
SHEBANG_FILES=	kpcli
PLIST_FILES=	bin/kpcli man/man1/${PORTNAME}.1.gz
NO_ARCH=	yes

OPTIONS_DEFINE=		PWSAFE3
PWSAFE3_DESC=		Password Safe V3 file importing
PWSAFE3_BUILD_DEPENDS+=	p5-Crypt-PWSafe3>=1.21:security/p5-Crypt-PWSafe3
PWSAFE3_RUN_DEPENDS+=	p5-Crypt-PWSafe3>=1.21:security/p5-Crypt-PWSafe3

do-extract:
	@${MKDIR} ${WRKSRC}
	${CP} ${DISTDIR}/${PORTNAME}-${PORTVERSION}.pl ${WRKSRC}/${PORTNAME}

do-build:
	${LOCALBASE}/bin/pod2man ${WRKSRC}/${PORTNAME} ${WRKSRC}/${PORTNAME}.1

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1

.include <bsd.port.mk>