blob: 7a66d8ac03cf62d62b78c005c1b064a4ea943fdc (
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
|
PORTNAME= kc
PORTVERSION= 2.5.1
CATEGORIES= security
MAINTAINER= leva@ecentrum.hu
COMMENT= Console based password storing application
WWW= https://github.com/levaidaniel/kc
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libxml2.so:textproc/libxml2
CONFLICTS= kc24
OPTIONS_DEFINE= PCRE SCRYPT
OPTIONS_DEFAULT= PCRE SCRYPT LIBEDIT
OPTIONS_RADIO= CLI
OPTIONS_RADIO_CLI= LIBEDIT READLINE
SCRYPT_DESC= Scrypt KDF support (needs libscrypt)
PCRE_LIB_DEPENDS= libpcre.so:devel/pcre
PCRE_MAKE_ENV+= HAVE_PCRE=yes
SCRYPT_LIB_DEPENDS= libscrypt.so:security/libscrypt
SCRYPT_MAKE_ENV+= HAVE_LIBSCRYPT=1
LIBEDIT_USES= libedit
LIBEDIT_MAKE_ENV+= EDITLINE=y
READLINE_USES= readline
READLINE_MAKE_ENV+= READLINE=y
USES+= pkgconfig ncurses ssl uidfix
USE_GITHUB= yes
GH_ACCOUNT= levaidaniel
PLIST_FILES= bin/kc man/man1/kc.1.gz share/doc/kc/Changelog.md
MAKE_ENV+= BUNDLED_BCRYPT=y
post-patch:
@${REINPLACE_CMD} -e 's|-lncursesw|${NCURSESLIBS}|' ${WRKSRC}/Makefile
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/Changelog.md ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|