summaryrefslogtreecommitdiffstats
path: root/security/pam_yubico/Makefile
blob: 0de844ac80b0a0592ff52275b4066cfec1e55cca (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# $FreeBSD$

PORTNAME=	pam_yubico
PORTVERSION=	2.13
PORTREVISION=	1
CATEGORIES=	security
MASTER_SITES=	GOOGLE_CODE

MAINTAINER=	matt@mjslabs.com
COMMENT=	PAM module for authenticating with a Yubico YubiKey

LICENSE=	BSD

LIB_DEPENDS=	ykclient:${PORTSDIR}/security/ykclient \
		ykpers-1:${PORTSDIR}/security/ykpers \
		yubikey:${PORTSDIR}/security/libyubikey

GNU_CONFIGURE=	yes
USE_PKGCONFIG=	build

PLIST_FILES=	include/drop_privs.h \
		include/util.h \
		lib/security/pam_yubico.la \
		lib/security/pam_yubico.so
PLIST_DIRS=	lib/security
SUB_FILES=	pkg-message
PORTDOCS=	*

PROJECTHOST=	yubico-pam

OPTIONS_DEFINE=	CR LDAP DOCS
CR_DESC=	Include Challenge/response support
OPTIONS_DEFAULT=	CR LDAP

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MCR}
CONFIGURE_ARGS+=	--with-cr
MAN1=		ykpamcfg.1
PLIST_FILES+=	bin/ykpamcfg
.else
CONFIGURE_ARGS+=	--without-cr
.endif

.if ${PORT_OPTIONS:MLDAP}
CONFIGURE_ARGS+=	--with-ldap
.else
CONFIGURE_ARGS+=	--without-ldap
.endif

regression-test: build
	@(cd ${WRKSRC}; ${MAKE} check)

post-install:
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
	@${CAT} ${PKGMESSAGE}

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