Date: Mon, 24 Jun 2002 15:06:09 +0100 (BST) From: Bruce M Simpson <bms@bigboy.spc.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/39778: New port: security/sectok Message-ID: <20020624140609.D4D7E336A@bigboy.spc.org>
next in thread | raw e-mail | index | archive | help
>Number: 39778 >Category: ports >Synopsis: New port: security/sectok >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Jun 24 07:00:03 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Bruce M Simpson >Release: FreeBSD 4.5-STABLE i386 >Organization: SPC >Environment: System: FreeBSD bigboy.spc.org 4.5-STABLE FreeBSD 4.5-STABLE #3: Sun Feb 3 21:06:15 GMT 2002 root@bigboy.spc.org:/usr/src/sys/compile/BIGBOY_SMP i386 >Description: This is the sectok tool from citi.umich.edu. Originally targeted for OpenBSD. This is a quick port of the basic application; it relies upon the libsectok library for ISO 7816 Smart Card device communication. >How-To-Repeat: >Fix: --- sectok.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # sectok # sectok/files # sectok/files/patch-cyberflex.c # sectok/files/patch-Makefile # sectok/Makefile # sectok/distinfo # sectok/pkg-plist # sectok/pkg-comment # sectok/pkg-descr # echo c - sectok mkdir -p sectok > /dev/null 2>&1 echo c - sectok/files mkdir -p sectok/files > /dev/null 2>&1 echo x - sectok/files/patch-cyberflex.c sed 's/^X//' >sectok/files/patch-cyberflex.c << 'END-of-sectok/files/patch-cyberflex.c' X--- cyberflex.c.orig Mon Jun 24 14:58:58 2002 X+++ cyberflex.c Mon Jun 24 15:02:40 2002 X@@ -45,7 +45,13 @@ X #define SHA1Init SHA1_Init X #define SHA1Update SHA1_Update X #define SHA1Final SHA1_Final X-#else /* __linux */ X+#elif defined(__FreeBSD__) X+#define SHA1_CTX SHA_CTX X+#define SHA1Init SHA1_Init X+#define SHA1Update SHA1_Update X+#define SHA1Final SHA1_Final X+#include <sha.h> X+#else X #include <sha1.h> X #endif X #else END-of-sectok/files/patch-cyberflex.c echo x - sectok/files/patch-Makefile sed 's/^X//' >sectok/files/patch-Makefile << 'END-of-sectok/files/patch-Makefile' X--- Makefile.orig Mon Jun 24 14:57:24 2002 X+++ Makefile Mon Jun 24 15:04:09 2002 X@@ -1,13 +1,17 @@ X # Standard installation: X-INCLUDES= X-LIBS= -lsectok -lcrypto X+#INCLUDES= X+#LIBS= -lsectok -lcrypto X+ X+# XXX: for some reason I need to specify /usr/local/include explicitly. -bms X+INCLUDES= -I/usr/local/include X+LIBS= -L/usr/local/lib -lsectok -lcrypto X X # For building locally (libsectok not installed) X #INCLUDES= -I../libsectok X #LIBS= ../libsectok/libsectok.a -lcrypto X X # If crypto is included with openssl you might need this X-#INCLUDES= -I/usr/include/openssl X+INCLUDES+= -I/usr/include/openssl X X # You shouldn't have to change anything below this line X X@@ -17,7 +21,7 @@ X CC= gcc X CFLAGS= -g -Wall X INSTALL= install X-PREFIX= /usr/local X+PREFIX?= /usr/local X RELEASE= sectok-`date "+%Y%m%d"` X X all : $(TARGETS) END-of-sectok/files/patch-Makefile echo x - sectok/Makefile sed 's/^X//' >sectok/Makefile << 'END-of-sectok/Makefile' X# New ports collection makefile for: sectok X# Date created: 24 June 2002 X# Whom: Bruce M Simpson X# X# $FreeBSD$ X# X XPORTNAME= sectok XPORTVERSION= 20020524 XCATEGORIES= security XMASTER_SITES= http://www.citi.umich.edu/projects/smartcard/ XDISTNAME= sectok X XLIB_DEPENDS= libsectok.3:${PORTSDIR}/security/libsectok X XMAINTAINER= bms@spc.org X XINSTALLS_SHLIB= yes XWRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} X X.include <bsd.port.mk> END-of-sectok/Makefile echo x - sectok/distinfo sed 's/^X//' >sectok/distinfo << 'END-of-sectok/distinfo' XMD5 (sectok.tar.gz) = b3ffa2dba86603f6806b7cb06a248940 END-of-sectok/distinfo echo x - sectok/pkg-plist sed 's/^X//' >sectok/pkg-plist << 'END-of-sectok/pkg-plist' Xbin/sectok END-of-sectok/pkg-plist echo x - sectok/pkg-comment sed 's/^X//' >sectok/pkg-comment << 'END-of-sectok/pkg-comment' XISO 7816 Smartcard Utility END-of-sectok/pkg-comment echo x - sectok/pkg-descr sed 's/^X//' >sectok/pkg-descr << 'END-of-sectok/pkg-descr' XThis is the sectok tool from citi.umich.edu. Originally targeted Xfor OpenBSD. This is a quick port of the basic application; it relies Xupon the libsectok library for ISO 7816 Smart Card device communication. X XWWW: http://www.citi.umich.edu/projects/smartcard/sectok.html X X - Bruce M Simpson <bms@spc.org> END-of-sectok/pkg-descr exit --- sectok.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020624140609.D4D7E336A>