Index: head/security/sectok/Makefile =================================================================== --- head/security/sectok/Makefile (revision 386160) +++ head/security/sectok/Makefile (revision 386161) @@ -1,37 +1,38 @@ # Created by: Bruce M. Simpson # $FreeBSD$ PORTNAME= sectok PORTVERSION= 20030825 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= http://www.citi.umich.edu/projects/smartcard/ EXTRACT_SUFX= .tgz MAINTAINER= ports@FreeBSD.org COMMENT= ISO 7816 Smartcard Utility LIB_DEPENDS= libsectok.so:${PORTSDIR}/security/libsectok USE_OPENSSL= yes USE_LDCONFIG= yes MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" CPPFLAGS+= -I${LOCALBASE}/include LIBS+= -L${LOCALBASE}/lib PLIST_FILES= bin/${PORTNAME} man/man1/${PORTNAME}.1.gz post-patch: @${REINPLACE_CMD} \ -e '/^INCLUDES=/s|$$| ${CPPFLAGS}|' \ -e '/^LIBS=/s|=|=${LDFLAGS} |' \ -e '/^LIBS=/s|$$| ${LIBS}|' \ ${WRKSRC}/Makefile do-install: (cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PORTNAME} \ ${STAGEDIR}${PREFIX}/bin) (cd ${WRKSRC} && ${INSTALL_MAN} ${PORTNAME}.1 \ ${STAGEDIR}${MANPREFIX}/man/man1) .include Index: head/security/sectok/files/patch-cyberflex.c =================================================================== --- head/security/sectok/files/patch-cyberflex.c (revision 386160) +++ head/security/sectok/files/patch-cyberflex.c (revision 386161) @@ -1,17 +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 ++#include +#else #include #endif #else