The YubiKey Personalization package contains a library and command line tool used to personalize (i.e., set a AES key) YubiKeys. It is also a prerequisite for the pam_yubico module. WWW: http://yubico.com Fix: Please note that the patch-tests-test__args__to__config.c patch has been submitted to the maintainters of this project on GitHub so hopefully this patch can be removed from the ports tree in a future update.
Responsible Changed From-To: freebsd-ports-bugs->jgh I'll take it.
State Changed From-To: open->closed New port added, with minor changes. Thanks!
Author: jgh Date: Mon Jan 28 07:30:11 2013 New Revision: 311099 URL: http://svnweb.freebsd.org/changeset/ports/311099 Log: - add new port: security/ykpers The YubiKey Personalization package contains a library and command line tool used to personalize (i.e., set a AES key) YubiKeys. WWW: https://code.google.com/p/yubikey-personalization/ PR: 175619 Submitted by: matt@mjslabs.com Added: head/security/ykpers/ head/security/ykpers/Makefile (contents, props changed) head/security/ykpers/distinfo (contents, props changed) head/security/ykpers/files/ head/security/ykpers/files/patch-tests-test__args__to__config.c (contents, props changed) head/security/ykpers/pkg-descr (contents, props changed) Modified: head/security/Makefile Modified: head/security/Makefile ============================================================================== --- head/security/Makefile Mon Jan 28 06:31:02 2013 (r311098) +++ head/security/Makefile Mon Jan 28 07:30:11 2013 (r311099) @@ -986,6 +986,7 @@ SUBDIR += yassl SUBDIR += yersinia SUBDIR += ykclient + SUBDIR += ykpers SUBDIR += zebedee SUBDIR += zenmap SUBDIR += zombiezapper Added: head/security/ykpers/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/ykpers/Makefile Mon Jan 28 07:30:11 2013 (r311099) @@ -0,0 +1,57 @@ +# $FreeBSD$ + +PORTNAME= ykpers +PORTVERSION= 1.11.3 +CATEGORIES= security +MASTER_SITES= GOOGLE_CODE + +MAINTAINER= matt@mjslabs.com +COMMENT= Library and tool for personalization of Yubico's YubiKey + +LICENSE= BSD + +LIB_DEPENDS= yubikey:${PORTSDIR}/security/libyubikey + +GNU_CONFIGURE= yes +USE_LDCONFIG= yes +USE_PKGCONFIG= build + +MAN1= ykchalresp.1 \ + ykinfo.1 \ + ykpersonalize.1 +PLIST_FILES= bin/ykchalresp \ + bin/ykinfo \ + bin/ykpersonalize \ + include/ykpers-1/ykcore.h \ + include/ykpers-1/ykdef.h \ + include/ykpers-1/ykpbkdf2.h \ + include/ykpers-1/ykpers.h \ + include/ykpers-1/ykpers-version.h \ + include/ykpers-1/ykstatus.h \ + lib/libykpers-1.a \ + lib/libykpers-1.la \ + lib/libykpers-1.so \ + lib/libykpers-1.so.12 \ + libdata/pkgconfig/ykpers-1.pc +PLIST_DIRS= include/ykpers-1 + +PROJECTHOST= yubikey-personalization + +MAKE_JOBS_UNSAFE=yes + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} >= 800069 +LDFLAGS+= -L/usr/lib +.else +LIB_DEPENDS+= usb:${PORTSDIR}/devel/libusb +.endif + +post-patch: + @${REINPLACE_CMD} -e 's|^pkgconfigdir = .*|pkgconfigdir = /usr/local/libdata/pkgconfig|g' \ + ${WRKSRC}/Makefile.in + +regression-test: build + @(cd ${WRKSRC}; ${MAKE} check) + +.include <bsd.port.post.mk> Added: head/security/ykpers/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/ykpers/distinfo Mon Jan 28 07:30:11 2013 (r311099) @@ -0,0 +1,2 @@ +SHA256 (ykpers-1.11.3.tar.gz) = 9c89fa2ffe68612d10e7d4b733372706360abddbc3e7442958023f4f6110dac6 +SIZE (ykpers-1.11.3.tar.gz) = 463589 Added: head/security/ykpers/files/patch-tests-test__args__to__config.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/ykpers/files/patch-tests-test__args__to__config.c Mon Jan 28 07:30:11 2013 (r311099) @@ -0,0 +1,32 @@ +--- tests/test_args_to_config.c.orig 2013-01-26 18:31:02.000000000 -0800 ++++ tests/test_args_to_config.c 2013-01-26 18:40:07.000000000 -0800 +@@ -123,7 +123,13 @@ + int rc; + + ykp_errno = 0; +- optind = 0; /* getopt reinit */ ++ ++/* Handle both GNU and BSD getopt reinit */ ++#ifdef __GLIBC__ ++ optind = 0; ++#else ++ optind = optreset = 1; ++#endif + + /* copy version number from st into cfg */ + assert(ykp_configure_for(cfg, 1, st) == 1); +@@ -308,7 +314,13 @@ + int argc = 7; + + ykp_errno = 0; +- optind = 0; /* getopt reinit */ ++ ++/* Handle both GNU and BSD getopt reinit */ ++#ifdef __GLIBC__ ++ optind = 0; ++#else ++ optind = optreset = 1; ++#endif + + /* copy version number from st into cfg */ + ykp_configure_version(cfg, st); Added: head/security/ykpers/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/ykpers/pkg-descr Mon Jan 28 07:30:11 2013 (r311099) @@ -0,0 +1,4 @@ +The YubiKey Personalization package contains a library and command line tool +used to personalize (i.e., set a AES key) YubiKeys. + +WWW: https://code.google.com/p/yubikey-personalization/ _______________________________________________ svn-ports-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-ports-all To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"