mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
security/zxid: Upgrade version 1.05 => 1.18
PR: 192481 Submitted by: Ports Fury
This commit is contained in:
parent
410e1a4e01
commit
8aa2dc292a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=364331
@ -2,57 +2,64 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= zxid
|
||||
PORTVERSION= 1.05
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 1.18
|
||||
CATEGORIES= security www
|
||||
MASTER_SITES= http://zxid.org/
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Open Source IdM for the Masses - SAML SSO
|
||||
|
||||
LICENSE= APACHE20
|
||||
|
||||
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
|
||||
|
||||
USES= gmake tar:tgz
|
||||
USE_OPENSSL= yes
|
||||
USE_CSTD= gnu89
|
||||
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" \
|
||||
LD="${CC}" LDFLAGS="${LDFLAGS}" \
|
||||
PREFIX="${PREFIX}" OPENSSL_ROOT="${OPENSSLBASE}" \
|
||||
POSTLIBS="${LDFLAGS}" TARGET="${OPSYS:tl}"
|
||||
ALL_TARGET= default smime libzxid.so.0.0
|
||||
USE_LDCONFIG= yes
|
||||
MAKE_JOBS_UNSAFE= yes
|
||||
|
||||
CFLAGS+= -D_LSEEK_DECLARED -fPIC
|
||||
MAKE_ARGS= CC="${CC}" CURL_ROOT="${LOCALBASE}" LD="${CC}" \
|
||||
PREFIX="${PREFIX}" OPENSSL_ROOT="${OPENSSLBASE}"
|
||||
USES= gmake tar:tgz
|
||||
USE_CSTD= gnu89
|
||||
USE_LDCONFIG= yes
|
||||
USE_OPENSSL= yes
|
||||
CFLAGS+= -I${LOCALBASE}/include -D_LSEEK_DECLARED -fPIC
|
||||
LDFLAGS+= -L${LOCALBASE}/lib
|
||||
|
||||
ZXID_BINS= smime zxcall zxcot zxdecode zxencdectest zxid zxidhlo \
|
||||
zxidhlowsf zxidhrxmlwsc zxidhrxmlwsp zxididp zxidsimple \
|
||||
zxidwsctool zxlogview zxpasswd
|
||||
|
||||
NO_STAGE= yes
|
||||
BROKEN_powerpc= Does not build on ${ARCH}
|
||||
BROKEN_sparc64= Does not build on ${ARCH}
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
ZXID_BINS= smime zxcall zxcot zxdecode zxencdectest zxidhlo \
|
||||
zxidhlowsf zxidhrxmlwsc zxidhrxmlwsp zxididp zxidsimple \
|
||||
zxidwsctool zxlogview zxpasswd
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e '/which gcc/d' \
|
||||
-e 's/ --export-all-symbols/ /g' \
|
||||
${WRKSRC}/Makefile
|
||||
@${REINPLACE_CMD} -e \
|
||||
'/^LIBS/s|-lpthread|-pthread| ; \
|
||||
/^SHARED/s|--export-all-symbols|| ; \
|
||||
/which gcc/d' ${WRKSRC}/Makefile
|
||||
@${REINPLACE_CMD} -e \
|
||||
's|<malloc.h>|<stdlib.h>|' ${WRKSRC}/zxidconf.c
|
||||
|
||||
post-install:
|
||||
${MKDIR} ${PREFIX}/include/zxid/
|
||||
cd ${WRKSRC}/ && ${INSTALL_PROGRAM} ${ZXID_BINS} ${PREFIX}/bin/
|
||||
${INSTALL_LIB} ${WRKSRC}/libzxid.a ${PREFIX}/lib/
|
||||
${INSTALL_LIB} ${WRKSRC}/libzxid.so.0.0 ${PREFIX}/lib/libzxid.so.0
|
||||
${LN} -sf libzxid.so.0 ${PREFIX}/lib/libzxid.so
|
||||
cd ${WRKSRC}/ && ${INSTALL_DATA} *.h c/*.h ${PREFIX}/include/zxid/
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
${MKDIR} ${DOCSDIR}/
|
||||
cd ${WRKSRC}/ && ${INSTALL_DATA} *.pd ${DOCSDIR}/
|
||||
.endif
|
||||
do-install:
|
||||
(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${ZXID_BINS} \
|
||||
${STAGEDIR}${PREFIX}/bin)
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/include/zx
|
||||
${LN} -sf ../zxid/zx.h ${STAGEDIR}${PREFIX}/include/zx/zx.h
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/include/zxid
|
||||
(cd ${WRKSRC} && ${INSTALL_DATA} *.h c/*.h \
|
||||
${STAGEDIR}${PREFIX}/include/zxid)
|
||||
(cd ${WRKSRC} && ${INSTALL_DATA} libzxid.a \
|
||||
${STAGEDIR}${PREFIX}/lib)
|
||||
(cd ${WRKSRC} && ${INSTALL_LIB} libzxid.so.0.0 \
|
||||
${STAGEDIR}${PREFIX}/lib)
|
||||
${LN} -sf libzxid.so.0.0 ${STAGEDIR}${PREFIX}/lib/libzxid.so
|
||||
${LN} -sf libzxid.so.0.0 ${STAGEDIR}${PREFIX}/lib/libzxid.so.0
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
(cd ${WRKSRC} && ${INSTALL_DATA} *.pd \
|
||||
${STAGEDIR}${DOCSDIR})
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
|
||||
BROKEN= Does not install
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (zxid-1.05.tgz) = 779de5245b026abfe73d4e7b9306c033c2dd600fc48c9d5eb0251f4c9914e190
|
||||
SIZE (zxid-1.05.tgz) = 1800009
|
||||
SHA256 (zxid-1.18.tgz) = 80cd65e0fd45d61cbf4f0a0e46c11f8dc7752979676d00ce89719ce3497ec393
|
||||
SIZE (zxid-1.18.tgz) = 2075055
|
||||
|
@ -1,73 +0,0 @@
|
||||
--- Makefile.orig 2011-07-25 03:56:45.000000000 +0800
|
||||
+++ Makefile 2011-12-29 17:35:47.379562021 +0800
|
||||
@@ -36,7 +36,7 @@
|
||||
|
||||
default: seehelp precheck zxid zxidhlo zxididp zxidhlowsf zxidsimple zxidwsctool zxlogview zxidhrxmlwsc zxidhrxmlwsp zxdecode zxcot zxpasswd zxcall zxencdectest
|
||||
|
||||
-all: default precheck_apache samlmod phpzxid javazxid apachezxid smime zxidwspcgi
|
||||
+all: default smime
|
||||
|
||||
### This is the authorative spot to set version number. Document in Changes file.
|
||||
### c/zxidvers.h is generated from these, see `make updatevers'
|
||||
@@ -44,7 +44,7 @@
|
||||
ZXIDREL=1.02
|
||||
|
||||
### Where package is installed (use `make PREFIX=/your/path' to change)
|
||||
-PREFIX=/var/zxid/$(ZXIDREL)
|
||||
+PREFIX?=/var/zxid/$(ZXIDREL)
|
||||
|
||||
### Where runtime configuration and temporary data is kept.
|
||||
### If you change the following, be sure to edit zxidconf.h as
|
||||
@@ -72,8 +72,8 @@
|
||||
###
|
||||
|
||||
TOP=$(shell pwd)
|
||||
-CURL_ROOT=/usr/local
|
||||
-OPENSSL_ROOT=/usr/local/ssl
|
||||
+CURL_ROOT?=/usr/local
|
||||
+OPENSSL_ROOT?=/usr/local/ssl
|
||||
PHP_CONFIG=php-config
|
||||
CSHARP_CONFIG=true
|
||||
PY_CONFIG=true
|
||||
@@ -90,14 +90,14 @@
|
||||
SWIG=swig
|
||||
AR=ar -crs
|
||||
ARX=ar -x
|
||||
-CC=gcc
|
||||
-LD=gcc
|
||||
+CC?=gcc
|
||||
+LD?=gcc
|
||||
GCOV=gcov
|
||||
LCOV=lcov
|
||||
GENHTML=genhtml
|
||||
-SHARED_FLAGS=-shared --export-all-symbols -Wl,-whole-archive -Wl,--allow-multiple-definition
|
||||
-SHARED_CLOSE=-Wl,-no-whole-archive
|
||||
-CFLAGS=-g -fpic -fmessage-length=0 -Wno-unused-label -Wno-unknown-pragmas -fno-strict-aliasing
|
||||
+SHARED_FLAGS?=-shared --export-all-symbols -Wl,-whole-archive -Wl,--allow-multiple-definition
|
||||
+SHARED_CLOSE?=-Wl,-no-whole-archive
|
||||
+CFLAGS?=-g -fpic -fmessage-length=0 -Wno-unused-label -Wno-unknown-pragmas -fno-strict-aliasing
|
||||
#CFLAGS += -Os # gcc-3.4.6 miscompiles with -Os on ix86
|
||||
CFLAGS += -Wall -Wno-parentheses -DMAYBE_UNUSED='__attribute__ ((unused))'
|
||||
#LDFLAGS += -Wl,--gc-sections
|
||||
@@ -1318,7 +1318,7 @@
|
||||
endif
|
||||
|
||||
libzxid.so.0.0: $(LIBZXID_A)
|
||||
- $(LD) $(OUTOPT)libzxid.so.0.0 $(SHARED_FLAGS) $^ $(SHARED_CLOSE) -lcurl -lssl -lcrypt
|
||||
+ $(LD) $(OUTOPT)libzxid.so.0.0 $(SHARED_FLAGS) $^ $(SHARED_CLOSE) $(LIBS) -lcurl -lssl -lcrypt
|
||||
|
||||
zxid.dll zxidimp.lib: $(LIBZXID_A)
|
||||
$(LD) $(OUTOPT)zxid.dll $(SHARED_FLAGS) -Wl,--output-def,zxid.def,--out-implib,zxidimp.lib $^ $(SHARED_CLOSE) $(WIN_LIBS) -mdll
|
||||
@@ -1604,12 +1604,6 @@
|
||||
|
||||
install: zxid $(LIBZXID_A) libzxid.so.0.0 dir
|
||||
@$(ECHO) "===== Installing in $(PREFIX) (to change do make install PREFIX=/your/path)"
|
||||
- -mkdir -p $(PREFIX) $(PREFIX)/bin $(PREFIX)/lib $(PREFIX)/include/zxid $(PREFIX)/doc
|
||||
- $(CP) zxmkdirs.sh zxcall zxpasswd zxcot zxlogview zxdecode zxencdectest zxcleanlogs.sh zximport-htpasswd.pl zximport-ldif.pl xml-pretty.pl diffy.pl smime send.pl xacml2ldif.pl mockpdp.pl env.cgi zxid-java.sh zxidatsel.pl zxidnewuser.pl zxidcot.pl zxiddash.pl zxidexplo.pl zxidhlo zxidhlo.pl zxidhlo.php zxidhlo.sh zxidhlo-java.sh zxidhlocgi.php zxidhlowsf zxidhrxmlwsc zxidhrxmlwsp zxididp zxidsimple zxidwsctool zxidwspcgi zxtest.pl zxsizeof $(PREFIX)/bin
|
||||
- $(CP) $(LIBZXID_A) libzxid.so* $(PREFIX)/lib
|
||||
- $(CP) libzxid.so.0.0 $(PREFIX)/lib
|
||||
- $(CP) *.h c/*.h $(PREFIX)/include/zxid
|
||||
- $(CP) *.pd *.dia $(PREFIX)/doc
|
||||
@$(ECHO) "You will need to copy zxidhlo binary where your web server can find it and"
|
||||
@$(ECHO) "make sure your web server is configured to recognize zxidhlo as a CGI script."
|
||||
@$(ECHO)
|
13
security/zxid/files/patch-pkcs12.c
Normal file
13
security/zxid/files/patch-pkcs12.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- pkcs12.c.orig
|
||||
+++ pkcs12.c
|
||||
@@ -95,6 +95,10 @@
|
||||
#define SMIME_INTERNALS /* we want also our internal helper functions */
|
||||
#include "smimeutil.h"
|
||||
|
||||
+#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER < 0x10000000L
|
||||
+#define _STACK STACK
|
||||
+#endif
|
||||
+
|
||||
/* ================= P K C S 1 2 C O N V E R S I O N S ================ */
|
||||
/* Convert pem formatted certificate and private key into PKCS12
|
||||
* object suitable for importing to browsers.
|
10
security/zxid/files/patch-platform.h
Normal file
10
security/zxid/files/patch-platform.h
Normal file
@ -0,0 +1,10 @@
|
||||
--- platform.h.orig 2013-11-27 10:56:48.000000000 +0900
|
||||
+++ platform.h 2014-07-28 07:51:37.000000000 +0900
|
||||
@@ -130,6 +130,7 @@
|
||||
* NOT MINGW nor WIN32CL (i.e. its Unix) */
|
||||
|
||||
#include <dirent.h>
|
||||
+#include <sys/types.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
@ -1,12 +0,0 @@
|
||||
--- smime.c.orig 2011-07-01 22:26:07.000000000 +0800
|
||||
+++ smime.c 2011-07-13 10:41:01.570539385 +0800
|
||||
@@ -94,9 +94,6 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
-#ifndef macintosh
|
||||
-# include <malloc.h>
|
||||
-#endif
|
||||
|
||||
#define DETACHED_SIG_TYPE_FILE "application/x-detached-file-signature-file"
|
||||
|
@ -8,4 +8,4 @@ Scripting languages are supported using SWIG, including Perl, PHP and
|
||||
Java. The "full stack" nature of ZXID means it's self contained and
|
||||
has minimal external library dependencies (see downloads).
|
||||
|
||||
WWW: http://zxid.org/
|
||||
WWW: http://zxid.org/
|
||||
|
@ -3,7 +3,6 @@ bin/zxcall
|
||||
bin/zxcot
|
||||
bin/zxdecode
|
||||
bin/zxencdectest
|
||||
bin/zxid
|
||||
bin/zxidhlo
|
||||
bin/zxidhlowsf
|
||||
bin/zxidhrxmlwsc
|
||||
@ -13,15 +12,22 @@ bin/zxidsimple
|
||||
bin/zxidwsctool
|
||||
bin/zxlogview
|
||||
bin/zxpasswd
|
||||
include/zx/zx.h
|
||||
include/zxid/akbox.h
|
||||
include/zxid/aktab.h
|
||||
include/zxid/errmac.h
|
||||
include/zxid/hiios.h
|
||||
include/zxid/hiproto.h
|
||||
include/zxid/logprint.h
|
||||
include/zxid/macglue.h
|
||||
include/zxid/platform.h
|
||||
include/zxid/port.h
|
||||
include/zxid/saml2.h
|
||||
include/zxid/smimeutil.h
|
||||
include/zxid/tas3.h
|
||||
include/zxid/wsf.h
|
||||
include/zxid/yubikey.h
|
||||
include/zxid/zx.h
|
||||
include/zxid/zx-a-data.h
|
||||
include/zxid/zx-ac-data.h
|
||||
include/zxid/zx-as-data.h
|
||||
@ -86,7 +92,6 @@ include/zxid/zx-xenc-data.h
|
||||
include/zxid/zx-xml-data.h
|
||||
include/zxid/zx-xs-data.h
|
||||
include/zxid/zx-xsi-data.h
|
||||
include/zxid/zx.h
|
||||
include/zxid/zx_ext_pt.h
|
||||
include/zxid/zxid.h
|
||||
include/zxid/zxidconf.h
|
||||
@ -98,6 +103,7 @@ include/zxid/zxwsc.h
|
||||
lib/libzxid.a
|
||||
lib/libzxid.so
|
||||
lib/libzxid.so.0
|
||||
lib/libzxid.so.0.0
|
||||
%%PORTDOCS%%%%DOCSDIR%%/apache.pd
|
||||
%%PORTDOCS%%%%DOCSDIR%%/doc-end.pd
|
||||
%%PORTDOCS%%%%DOCSDIR%%/doc-inc.pd
|
||||
@ -125,3 +131,4 @@ lib/libzxid.so.0
|
||||
%%PORTDOCS%%%%DOCSDIR%%/zxid-wsf.pd
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
@dirrm include/zxid
|
||||
@dirrm include/zx
|
||||
|
Loading…
Reference in New Issue
Block a user