aboutsummaryrefslogtreecommitdiffstats
path: root/security/linux-bitwarden-cli/Makefile
blob: 53fd1ad7b4d34ab28c4f898b9fc15668a6706ab2 (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
PORTNAME=	bitwarden
DISTVERSIONPREFIX=	v
DISTVERSION=	1.22.1
CATEGORIES=	security linux
MASTER_SITES=	https://github.com/bitwarden/cli/releases/download/${DISTVERSIONFULL}/
PKGNAMEPREFIX=	linux-
PKGNAMESUFFIX=	-cli
DISTNAME=	bw-linux-${DISTVERSION}

MAINTAINER=	0mp@FreeBSD.org
COMMENT=	Bitwarden CLI
WWW=		https://github.com/bitwarden/cli

LICENSE=	GPLv3

USES=		linux zip

# install(1) fails with the following messages when stripping:
# strip: elf_update() failed: Layout constraint violation
# strip: elf_update() failed: Layout constraint violation
STRIP=

NO_WRKSUBDIR=	yes
PLIST_FILES=	bin/bw

do-build:
	${BRANDELF} -t Linux ${WRKSRC}/bw

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/bw ${STAGEDIR}${PREFIX}/bin/

do-test:
	${SETENV} ${TEST_ENV} ${STAGEDIR}${PREFIX}/bin/bw help >/dev/null

.include <bsd.port.mk>