aboutsummaryrefslogtreecommitdiff
path: root/security/stoken/Makefile
blob: b0b9d585d0e9dda1980665d91d70eb106449222a (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
# Created by: Alex Samorukov <samm@freebsd.org>

PORTNAME=	stoken
DISTVERSION=	0.92
CATEGORIES=	security
MASTER_SITES=	SF/stoken

MAINTAINER=	samm@FreeBSD.org
COMMENT=	Software Token for UNIX compatible with RSA SecurID

LICENSE=	LGPL21
LICENSE_FILE=	${WRKSRC}/COPYING.LIB

LIB_DEPENDS=	libtomcrypt.so:security/libtomcrypt # can alternatively use nettle, potentially port option can be created

USES=		gnome libtool localbase pkgconfig
GNU_CONFIGURE=	yes
USE_GNOME=	libxml2
USE_LDCONFIG=	yes
INSTALL_TARGET=	install-strip

OPTIONS_DEFINE=	DOCS X11
OPTIONS_SUB=	yes

X11_CONFIGURE_WITH=	gtk
X11_DESC=	Build GUI token interface
X11_USE=	GNOME=gtk30,cairo,gdkpixbuf2

post-patch:
	@${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|g ; s|^dist_doc_DATA|#dist_doc_DATA|' ${WRKSRC}/Makefile.in
	@${REINPLACE_CMD} -e 's|LTC_LTC_PKCS_1_V1_5|LTC_PKCS_1_V1_5|g' \
	    ${WRKSRC}/src/stc-tomcrypt.c

.include <bsd.port.mk>