head	1.9;
access;
symbols
	RELEASE_8_3_0:1.6
	RELEASE_9_0_0:1.6
	RELEASE_7_4_0:1.5
	RELEASE_8_2_0:1.5
	RELEASE_6_EOL:1.3;
locks; strict;
comment	@# @;


1.9
date	2013.03.02.13.44.46;	author svnexp;	state Exp;
branches;
next	1.8;

1.8
date	2012.11.17.06.01.09;	author svnexp;	state Exp;
branches;
next	1.7;

1.7
date	2012.08.15.19.26.13;	author tabthorpe;	state Exp;
branches;
next	1.6;

1.6
date	2011.09.23.22.25.14;	author amdmi3;	state Exp;
branches;
next	1.5;

1.5
date	2010.12.19.03.43.55;	author nork;	state Exp;
branches;
next	1.4;

1.4
date	2010.12.04.07.33.29;	author ade;	state Exp;
branches;
next	1.3;

1.3
date	2010.11.23.17.43.55;	author nork;	state Exp;
branches;
next	1.2;

1.2
date	2010.11.23.13.42.11;	author nork;	state Exp;
branches;
next	1.1;

1.1
date	2010.11.07.12.07.17;	author nork;	state Exp;
branches;
next	;


desc
@@


1.9
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/313182
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# New ports collection makefile for:	opencryptoki
# Date created:				2010-07-16
# Whom:					Ralf Meister
#
# $FreeBSD: head/security/opencryptoki/Makefile 313182 2013-03-02 03:55:25Z eadler $
#

PORTNAME=	opencryptoki
PORTVERSION=	2.3.2
PORTREVISION=	3
CATEGORIES=	security
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}

MAINTAINER=	ports@@FreeBSD.org
COMMENT=	An open PKCS\#11 implementation library

LIB_DEPENDS=	tspi.2:${PORTSDIR}/security/trousers

USE_BZIP2=	YES
USE_GMAKE=	YES
USE_LDCONFIG=	YES
USE_AUTOTOOLS=	autoconf libtool automake
HAS_CONFIGURE=	YES
MAKE_JOBS_SAFE=	YES

USE_RC_SUBR=	pkcsslotd
SUB_FILES=	pkg-message
SUB_LIST=	USERS=${USERS} GROUPS=${GROUPS}

MAN1=		pkcs11_startup.1 pkcsconf.1
MAN5=		pk_config_data.5
MAN7=		opencryptoki.7
MAN8=		pkcsslotd.8

USERS=		_pkcs11
GROUPS=		_pkcs11

LICENSE=	CPL
LICENSE_NAME=	Common Public License
LICENSE_FILE=	${WRKSRC}/LICENSE
LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

CONFIGURE_ARGS=	--enable-swtok --enable-tpmtok \
		--disable-crtok --disable-aeptok \
		--disable-ccatok --disable-bcomtok \
		--disable-pkcscca_migrate \
		--libdir=${PREFIX}/lib \
		--sbindir=${PREFIX}/sbin \
		--localstatedir=${PREFIX}/var \
		--with-pkcs11user=${USERS} \
		--with-pkcs11group=${GROUPS}
LDFLAGS+=	-L${LOCALBASE}/lib

.include <bsd.port.pre.mk>

CFLAGS+=	-I${LOCALBASE}/include

run-autotools:	run-autotools-autoreconf

run-autotools-autoreconf:
	@@cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${AUTORECONF} -i

post-install:
	@@cd ${PREFIX}/lib && ${LN} -s opencryptoki/libopencryptoki* .
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>
@


1.8
log
@Switch exporter over
@
text
@d5 1
a5 1
# $FreeBSD: head/security/opencryptoki/Makefile 302594 2012-08-15 19:26:13Z tabthorpe $
d41 1
a41 1
LICENSE_PERMS=	${_LICENSE_PERMS_DEFAULT}
@


1.7
log
@SVN rev 302594 on 2012-08-15 19:26:13Z by tabthorpe

- Reassign nork@@ ports to the heap
- Thank you for your years of service, we hope to see you back

Approved by:	portmgr
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.6
log
@- Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
@
text
@d14 1
a14 1
MAINTAINER=	nork@@FreeBSD.org
@


1.5
log
@o Add a important hack to tpmtoken_init(1).
o Bump PORTREVISION, accordingly.
@
text
@d52 1
a52 1
CONFIGURE_ENV=	LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
@


1.4
log
@Sync to new bsd.autotools.mk
@
text
@d10 1
a10 1
PORTREVISION=	2
@


1.3
log
@Remove a extra directory and file, and bump PORTREVISION.

Pointed out by:		QAT
@
text
@d22 1
a22 1
USE_AUTOTOOLS=	autoconf:268 libtool:22 automake:111
@


1.2
log
@o Don't run-autotools-*, twice.
o Don't install extra init.d script. [1]
o Bump PORTREVISION, accordingly.

Pointed out by:		ume [1]
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.1
log
@Add opencryptoki 2.3.2, is an open PKCS#11 implementation library.

Obtained from:	http://bsssd.sourceforge.net/
@
text
@d10 1
d58 4
a61 5
pre-configure:
	@@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${ACLOCAL}
	@@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${LIBTOOLIZE} --force -c
	@@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${AUTOMAKE} --add-missing -c
	@@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${AUTOCONF}
@

