summaryrefslogtreecommitdiffstats
path: root/security/oath-toolkit/Makefile
blob: b8963af9cbcb5cc4acb058f07e3e9e51ed4a24e4 (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
# Created by: Alex Dupre <ale@FreeBSD.org>
# $FreeBSD$

PORTNAME=	oath-toolkit
PORTVERSION=	2.4.0
CATEGORIES=	security
MASTER_SITES=	${MASTER_SITE_SAVANNAH}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	ale@FreeBSD.org
COMMENT=	Library, tools, and PAM module for OATH authentication

USES=		gmake pathfix pkgconfig
GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes

OPTIONS_DEFINE=	PSKC DOCS
OPTIONS_DEFAULT=PSKC
OPTIONS_SUB=	yes

PSKC_DESC=	Portable Symmetric Key Container (RFC 6030) support

PSKC_CONFIGURE_ENABLE=	pskc
PSKC_CONFIGURE_ON=	--with-xml-prefix=${LOCALBASE}
PSKC_LIB_DEPENDS=	libxml2.so:${PORTSDIR}/textproc/libxml2 \
			libxmlsec1.so:${PORTSDIR}/security/xmlsec1

DOCS=		AUTHORS ChangeLog NEWS README

PORTDOCS=	*

post-patch:
	@${REINPLACE_CMD} 's|@HTML_DIR@|${DOCSDIR}|' \
		${WRKSRC}/liboath/gtk-doc/Makefile.in \
		${WRKSRC}/libpskc/gtk-doc/Makefile.in

post-install:
.for f in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}/${DOCSDIR}/
.endfor
	${MKDIR} ${STAGEDIR}/${DOCSDIR}/pam_oath
	${INSTALL_DATA} ${WRKSRC}/pam_oath/README \
		${STAGEDIR}/${DOCSDIR}/pam_oath/

.include <bsd.port.mk>
OpenPOWER on IntegriCloud