head	1.15;
access;
symbols
	RELEASE_8_3_0:1.3
	RELEASE_9_0_0:1.2;
locks; strict;
comment	@# @;


1.15
date	2013.03.19.19.21.03;	author svnexp;	state Exp;
branches;
next	1.14;

1.14
date	2013.01.22.09.55.00;	author svnexp;	state Exp;
branches;
next	1.13;

1.13
date	2012.11.17.06.01.08;	author svnexp;	state Exp;
branches;
next	1.12;

1.12
date	2012.11.05.10.34.25;	author ale;	state Exp;
branches;
next	1.11;

1.11
date	2012.10.11.14.09.26;	author ale;	state Exp;
branches;
next	1.10;

1.10
date	2012.09.19.08.14.10;	author ale;	state Exp;
branches;
next	1.9;

1.9
date	2012.08.23.14.56.42;	author ale;	state Exp;
branches;
next	1.8;

1.8
date	2012.08.03.15.54.35;	author cs;	state Exp;
branches;
next	1.7;

1.7
date	2012.06.18.07.44.37;	author ale;	state Exp;
branches;
next	1.6;

1.6
date	2012.06.01.09.25.18;	author ale;	state Exp;
branches;
next	1.5;

1.5
date	2012.04.12.14.13.34;	author ale;	state Exp;
branches;
next	1.4;

1.4
date	2012.04.03.09.56.10;	author ale;	state Exp;
branches;
next	1.3;

1.3
date	2012.01.10.11.59.22;	author ale;	state Exp;
branches;
next	1.2;

1.2
date	2011.11.25.14.25.30;	author ale;	state Exp;
branches;
next	1.1;

1.1
date	2011.11.23.14.37.15;	author ale;	state Exp;
branches;
next	;


desc
@@


1.15
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/314640
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: Alex Dupre <ale@@FreeBSD.org>
# $FreeBSD: head/security/oath-toolkit/Makefile 314640 2013-03-19 13:04:30Z eadler $

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

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

USE_GMAKE=	yes
USES=	pathfix
USE_PKGCONFIG=	build
GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes

OPTIONS_DEFINE=	PSKC
OPTIONS_DEFAULT=PSKC

PSKC_DESC=	Portable Symmetric Key Container (RFC 6030) support

MAN1=		oathtool.1
MAN3=		oath_authenticate_usersfile.3 oath_base32_decode.3 \
		oath_base32_encode.3 oath_bin2hex.3 oath_check_version.3 \
		oath_done.3 oath_hex2bin.3 oath_hotp_generate.3 \
		oath_hotp_validate.3 oath_hotp_validate_callback.3 \
		oath_init.3 oath_strerror.3 oath_strerror_name.3 \
		oath_totp_generate.3 oath_totp_validate.3 \
		oath_totp_validate2.3 oath_totp_validate2_callback.3 \
		oath_totp_validate_callback.3

DOCS=		AUTHORS ChangeLog NEWS README

PORTDOCS=	*

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MPSKC}
LIB_DEPENDS+=	xml2:${PORTSDIR}/textproc/libxml2 \
		xmlsec1:${PORTSDIR}/security/xmlsec1

CONFIGURE_ARG+=--with-xml-prefix=${LOCALBASE}

MAN1+=		pskctool.1
MAN3+=		pskc_build_xml.3 pskc_check_version.3 pskc_done.3 \
		pskc_free.3 pskc_get_cryptomodule_id.3 \
		pskc_get_device_devicebinding.3 \
		pskc_get_device_expirydate.3 pskc_get_device_issueno.3 \
		pskc_get_device_manufacturer.3 pskc_get_device_model.3 \
		pskc_get_device_serialno.3 pskc_get_device_startdate.3 \
		pskc_get_device_userid.3 pskc_get_id.3 \
		pskc_get_key_algorithm.3 \
		pskc_get_key_algparm_chall_checkdigits.3 \
		pskc_get_key_algparm_chall_encoding.3 \
		pskc_get_key_algparm_chall_max.3 \
		pskc_get_key_algparm_chall_min.3 \
		pskc_get_key_algparm_resp_checkdigits.3 \
		pskc_get_key_algparm_resp_encoding.3 \
		pskc_get_key_algparm_resp_length.3 \
		pskc_get_key_algparm_suite.3 \
		pskc_get_key_data_b64secret.3 \
		pskc_get_key_data_counter.3 \
		pskc_get_key_data_secret.3 pskc_get_key_data_time.3 \
		pskc_get_key_data_timedrift.3 \
		pskc_get_key_data_timeinterval.3 \
		pskc_get_key_friendlyname.3 pskc_get_key_id.3 \
		pskc_get_key_issuer.3 \
		pskc_get_key_policy_expirydate.3 \
		pskc_get_key_policy_keyusages.3 \
		pskc_get_key_policy_numberoftransactions.3 \
		pskc_get_key_policy_pinencoding.3 \
		pskc_get_key_policy_pinkeyid.3 \
		pskc_get_key_policy_pinmaxfailedattempts.3 \
		pskc_get_key_policy_pinmaxlength.3 \
		pskc_get_key_policy_pinminlength.3 \
		pskc_get_key_policy_pinusagemode.3 \
		pskc_get_key_policy_startdate.3 \
		pskc_get_key_profileid.3 pskc_get_key_reference.3 \
		pskc_get_key_userid.3 pskc_get_keypackage.3 \
		pskc_get_signed_p.3 \
		pskc_get_version.3 pskc_global_done.3 \
		pskc_global_init.3 pskc_global_log.3 \
		pskc_init.3 pskc_keyusage2str.3 pskc_output.3 \
		pskc_parse_from_memory.3 pskc_pinusagemode2str.3 \
		pskc_sign_x509.3 \
		pskc_str2keyusage.3 pskc_str2pinusagemode.3 \
		pskc_str2valueformat.3 pskc_strerror.3 \
		pskc_strerror_name.3 pskc_validate.3 \
		pskc_valueformat2str.3 pskc_verify_x509crt.3

PLIST_SUB+=	PSKC=""
.else
CONFIGURE_ARGS+=--disable-pskc
PLIST_SUB+=	PSKC="@@comment "
.endif

post-patch:
.if ! ${PORT_OPTIONS:MDOCS}
	@@${REINPLACE_CMD} 's|install-data-am: install-data-local|install-data-am:|' \
		${WRKSRC}/liboath/gtk-doc/Makefile.in \
		${WRKSRC}/libpskc/gtk-doc/Makefile.in
.else
	@@${REINPLACE_CMD} 's|@@HTML_DIR@@|${DOCSDIR}|' \
		${WRKSRC}/liboath/gtk-doc/Makefile.in \
		${WRKSRC}/libpskc/gtk-doc/Makefile.in
.endif

.if ${PORT_OPTIONS:MDOCS}
post-install:
.for f in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
.endfor
	${MKDIR} ${DOCSDIR}/pam_oath
	${INSTALL_DATA} ${WRKSRC}/pam_oath/README ${DOCSDIR}/pam_oath/
.endif

.include <bsd.port.mk>
@


1.14
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/310822
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d2 1
a2 1
# $FreeBSD: head/security/oath-toolkit/Makefile 310822 2013-01-22 09:48:07Z ale $
d14 1
a14 1
USE_GNOME=	gnomehack
@


1.13
log
@Switch exporter over
@
text
@d2 1
a2 1
# $FreeBSD: head/security/oath-toolkit/Makefile 306999 2012-11-05 10:34:25Z ale $
d5 1
a5 1
PORTVERSION=	2.0.1
d100 1
a100 1
.if defined(NOPORTDOCS)
d110 1
a110 1
.if !defined(NOPORTDOCS)
@


1.12
log
@SVN rev 306999 on 2012-11-05 10:34:25Z by ale

Update to 2.0.1 release.

Feature safe:	yes
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.11
log
@SVN rev 305726 on 2012-10-11 14:09:26Z by ale

Update to 2.0.0 release:
- add PSKC support

Feature safe:	yes
@
text
@d1 1
d5 1
a5 1
PORTVERSION=	2.0.0
d15 1
d41 2
a42 1
LIB_DEPENDS+=	xml2:${PORTSDIR}/textproc/libxml2
d82 1
d87 1
d91 1
a91 1
		pskc_valueformat2str.3
@


1.10
log
@SVN rev 304491 on 2012-09-19 08:14:10Z by ale

Update to 0.12.6 release.
@
text
@d4 1
a4 1
PORTVERSION=	1.12.6
a11 3
LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/COPYING

d15 6
d23 8
d36 58
d97 2
a98 1
		${WRKSRC}/liboath/gtk-doc/Makefile.in
d101 2
a102 1
		${WRKSRC}/liboath/gtk-doc/Makefile.in
@


1.9
log
@SVN rev 303017 on 2012-08-23 14:56:42Z by ale

Update to 1.12.5 release.
@
text
@a0 4
# New ports collection makefile for:	oath-toolkit
# Date created:			23 Nov 2011
# Whom:				Alex Dupre <ale@@FreeBSD.org>
#
a1 1
#
d4 1
a4 1
PORTVERSION=	1.12.5
@


1.8
log
@SVN rev 301960 on 2012-08-03 15:54:35Z by cs

Fix typos and make small modifications in COMMENT (according to Porter's
Handbook)

Approved by:	portmgr@@ (implicit)
@
text
@d9 1
a9 1
PORTVERSION=	1.12.4
@


1.7
log
@Update to 1.12.4 release.
@
text
@d15 1
a15 1
COMMENT=	Library, tools and PAM module for OATH authentication
@


1.6
log
@Update to 1.12.3 release.
@
text
@d9 1
a9 1
PORTVERSION=	1.12.3
@


1.5
log
@Update to 0.12.2 release.
@
text
@d9 1
a9 1
PORTVERSION=	1.12.2
@


1.4
log
@Update to 1.12.1 release.

Feature safe:	yes
@
text
@d9 1
a9 1
PORTVERSION=	1.12.1
@


1.3
log
@Update to 1.10.5 release.
@
text
@d9 1
a9 1
PORTVERSION=	1.10.5
@


1.2
log
@Update to 1.10.4 release.

Feature safe:	yes
@
text
@d9 1
a9 1
PORTVERSION=	1.10.4
d20 1
@


1.1
log
@The OATH Toolkit contains a shared library, command line tool
and a PAM module that makes it possible to build one-time
password authentication systems. Supported technologies include
the event-based HOTP algorithm and the time-based TOTP algorithm.
OATH is the Open AuTHentication organization which specify
the algorithms.

The components included in the package is:

- liboath:  A shared and static C library for OATH handling.
- oathtool: A command line tool for generating and validating OTPs.
- pam_oath: A PAM module for pluggable login authentication for OATH.

Feature safe:	yes
@
text
@d9 1
a9 1
PORTVERSION=	1.10.0
@

