~cypheon/pkgsrc-wip

pkgsrc-wip/pam-pkcs11/Makefile -rw-r--r-- 1.7 KiB
5f1bf4f5 — Johann Rudloff Subst PLIST paths for platform specific files for other architectures 6 months ago
                                                                                
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
# $NetBSD: Makefile,v 1.13 2014/06/01 12:49:37 thomasklausner Exp $

DISTNAME=		pam_pkcs11-0.6.8
PKGNAME=		pam-pkcs11-0.6.8
CATEGORIES=		security
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=opensc/}pam_pkcs11/
#http://sourceforge.net/projects/opensc/files/pam_pkcs11/

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		https://github.com/OpenSC/pam_pkcs11/wiki
COMMENT=		PKCS \#11 authentication method for PAM
LICENSE=		gnu-lgpl-v2.1

# At times in the past, pam_pkcs11 has been https

USE_LANGUAGES=		c99
USE_PKGLOCALEDIR=	yes
USE_LIBTOOL=		yes
GNU_CONFIGURE=		yes
USE_TOOLS+=		pkg-config

EGDIR=			${PREFIX}/share/examples/pam-pkcs11
PKG_SYSCONFSUBDIR=	pam-pkcs11
CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+=	--docdir=${EGDIR}

.include "../../mk/bsd.prefs.mk"

.include "options.mk"
PLIST_SRC+=		PLIST.common

# See TODO.
USE_TOOLS+=		bash:run
REPLACE_INTERPRETER+=	bash
REPLACE.bash.old=	.*/bin/bash
REPLACE.bash.new=	${PREFIX}/bin/bash
REPLACE_FILES.bash=	tools/pkcs11_make_hash_link

CONF_FILES+=	${EGDIR}/card_eventmgr.conf.example ${PKG_SYSCONFDIR}/card_eventmgr.conf.example
CONF_FILES+=	${EGDIR}/digest_mapping.example ${PKG_SYSCONFDIR}/digest_mapping.example
CONF_FILES+=	${EGDIR}/mail_mapping.example ${PKG_SYSCONFDIR}/mail_mapping.example
CONF_FILES+=	${EGDIR}/pam.d_login.example ${PKG_SYSCONFDIR}/pam.d_login.example
CONF_FILES+=	${EGDIR}/pam_pkcs11.conf.example ${PKG_SYSCONFDIR}/pam_pkcs11.conf.example
CONF_FILES+=	${EGDIR}/pkcs11_eventmgr.conf.example ${PKG_SYSCONFDIR}/pkcs11_eventmgr.conf.example
CONF_FILES+=	${EGDIR}/subject_mapping.example ${PKG_SYSCONFDIR}/subject_mapping.example

.include "../../mk/pam.buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"