1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

New port: security/sectok

PR:		ports/39778
This commit is contained in:
Bruce M Simpson 2003-09-29 00:06:37 +00:00
parent 9c94da82a8
commit 9e6dd4e54a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=89731
7 changed files with 96 additions and 0 deletions

View File

@ -333,6 +333,7 @@
SUBDIR += scanssh
SUBDIR += seahorse
SUBDIR += secpanel
SUBDIR += sectok
SUBDIR += sfs
SUBDIR += sha
SUBDIR += sig2dot

27
security/sectok/Makefile Normal file
View File

@ -0,0 +1,27 @@
# New ports collection makefile for: sectok
# Date created: 28 September 2003
# Whom: Bruce M. Simpson <bms@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= sectok
PORTVERSION= 20030825
CATEGORIES= security
MASTER_SITES= http://www.citi.umich.edu/projects/smartcard/
DISTNAME= sectok-${PORTVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER= bms@FreeBSD.org
COMMENT= ISO 7816 Smartcard Utility
LIB_DEPENDS= libsectok.3:${PORTSDIR}/security/libsectok
USE_OPENSSL= yes
INSTALLS_SHLIB= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
MAN1= sectok.1
.include <bsd.port.mk>

1
security/sectok/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (sectok-20030825.tgz) = f9e25112036e6fe1a3ac24626bc12535

View File

@ -0,0 +1,41 @@
--- Makefile.orig Thu Jan 3 21:16:01 2002
+++ Makefile Mon Sep 29 01:00:21 2003
@@ -1,13 +1,19 @@
# Standard installation:
-INCLUDES=
-LIBS= -lsectok -lcrypto
+#INCLUDES=
+#LIBS= -lsectok -lcrypto
+
+# FreeBSD
+#PREFIX?= ${PREFIX}
+#LOCALBASE?= ${LOCALBASE}
+INCLUDES= -I$(LOCALBASE)/include
+LIBS= -L$(LOCALBASE)/lib -lsectok -lcrypto
# For building locally (libsectok not installed)
#INCLUDES= -I../libsectok
#LIBS= ../libsectok/libsectok.a -lcrypto
# If crypto is included with openssl you might need this
-#INCLUDES= -I/usr/include/openssl
+INCLUDES+= -I${OPENSSLINC}
# You shouldn't have to change anything below this line
@@ -17,7 +23,6 @@
CC= gcc
CFLAGS= -g -Wall
INSTALL= install
-PREFIX= /usr/local
RELEASE= sectok-`date "+%Y%m%d"`
all : $(TARGETS)
@@ -30,6 +35,7 @@
install :
$(INSTALL) $(TARGETS) $(PREFIX)/bin
+ $(INSTALL) sectok.1 $(PREFIX)/man/man1
release :
rm -rf $(RELEASE)

View File

@ -0,0 +1,17 @@
--- cyberflex.c.orig Thu Jun 19 23:37:35 2003
+++ cyberflex.c Mon Sep 29 00:58:56 2003
@@ -48,7 +48,13 @@
#define SHA1Init SHA1_Init
#define SHA1Update SHA1_Update
#define SHA1Final SHA1_Final
-#else /* __linux */
+#elif defined(__FreeBSD__)
+#define SHA1_CTX SHA_CTX
+#define SHA1Init SHA1_Init
+#define SHA1Update SHA1_Update
+#define SHA1Final SHA1_Final
+#include <sha.h>
+#else
#include <sha1.h>
#endif
#else

View File

@ -0,0 +1,8 @@
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.
WWW: http://www.citi.umich.edu/projects/smartcard/sectok.html
Bruce
bms@FreeBSD.org

View File

@ -0,0 +1 @@
bin/sectok