aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/pwsafe/Makefile
blob: e779b9fc4bed3d9689f32a416872d026766852b7 (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
44
PORTNAME=	pwsafe
DISTVERSION=	0.2.2beta-196
PORTREVISION=	1
DISTVERSIONSUFFIX=	-g4bf61c5
CATEGORIES=	sysutils

MAINTAINER=	m.ne@gmx.net
COMMENT=	Command-line encrypted password database manager
WWW=		https://github.com/nsd20463/pwsafe/

LICENSE=	GPLv2+

FLAVORS=		x11 nox11
FLAVOR?=		${FLAVORS:[1]}
nox11_PKGNAMESUFFIX=	-nox11

USES=		autoreconf gmake ncurses readline ssl
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	ac_cv_header_curses_h=yes
USE_GITHUB=	yes
GH_ACCOUNT=	nsd20463
GH_TAGNAME=	4bf61c5

PLIST_FILES=	bin/pwsafe \
		share/man/man1/pwsafe.1.gz

OPTIONS_DEFINE=	SETUID
SETUID_DESC=	Install setuid pwsafe binary

.if ${FLAVOR} == "x11"
USES+=			xorg
USE_XORG=		ice sm x11 xmu
.elif ${FLAVOR} == "nox11"
CONFIGURE_ARGS+=	--without-x
.endif

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/pwsafe ${STAGEDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/pwsafe.1 ${STAGEDIR}${PREFIX}/share/man/man1

post-install-SETUID-on:
	${CHMOD} u+s ${STAGEDIR}${PREFIX}/bin/pwsafe

.include <bsd.port.mk>