mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
Unbreak and take maintainership.
The code is the same, only ARCH ifdefs are changed and more OID are supported into the configuration file.
This commit is contained in:
parent
d93fa79446
commit
db0ed6f661
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=148360
@ -11,15 +11,11 @@ CATEGORIES= converters security
|
||||
MASTER_SITES= http://www.cs.auckland.ac.nz/~pgut001/
|
||||
DISTFILES= dumpasn1.c dumpasn1.cfg
|
||||
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
|
||||
EXTRACT_ONLY=
|
||||
EXTRACT_ONLY= yes
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
MAINTAINER= ale@FreeBSD.org
|
||||
COMMENT= Dumps the contents of an ASN.1 encoded file, e.g. an SSL certificate
|
||||
|
||||
BROKEN= Size mismatch
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
do-extract:
|
||||
@${MKDIR} ${WRKSRC}
|
||||
@${CP} ${DISTDIR}/${DIST_SUBDIR}/dumpasn1.c ${WRKSRC}
|
||||
@ -33,4 +29,4 @@ do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/dumpasn1 ${PREFIX}/bin
|
||||
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/dumpasn1.cfg ${PREFIX}/share/dumpasn1
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,4 +1,6 @@
|
||||
MD5 (dumpasn1-20030329/dumpasn1.c) = 720c630b4f4f17d4bf85b240eceeb8da
|
||||
SIZE (dumpasn1-20030329/dumpasn1.c) = 68281
|
||||
MD5 (dumpasn1-20030329/dumpasn1.cfg) = f1c0a5c1108b7aad85afe3c5111ff906
|
||||
SIZE (dumpasn1-20030329/dumpasn1.cfg) = 168139
|
||||
MD5 (dumpasn1-20030329/dumpasn1.c) = faba9cbad80fcc97ae566f97c2c85272
|
||||
SHA256 (dumpasn1-20030329/dumpasn1.c) = c21cc6da25c76e5706e39a425435ee8f9c0e095ef1dc9c9b2d0f3405626c002a
|
||||
SIZE (dumpasn1-20030329/dumpasn1.c) = 68310
|
||||
MD5 (dumpasn1-20030329/dumpasn1.cfg) = fffe09ac2fad6161b62a69b98f51e7d1
|
||||
SHA256 (dumpasn1-20030329/dumpasn1.cfg) = 92947896e802e24d89f101aac494d4ef5a9dffbcdf0d24f144deee6c7f2b9b76
|
||||
SIZE (dumpasn1-20030329/dumpasn1.cfg) = 171069
|
||||
|
@ -1,34 +0,0 @@
|
||||
--- dumpasn1.c.orig Sat Dec 14 15:13:32 2002
|
||||
+++ dumpasn1.c Sat Dec 14 15:15:24 2002
|
||||
@@ -297,11 +297,13 @@
|
||||
beginning with a '$' uses the appropriate environment variable. In
|
||||
addition under Unix we also walk down $PATH looking for it */
|
||||
|
||||
+#ifndef CONFIG_NAME
|
||||
#ifdef __TANDEM_NSK__
|
||||
#define CONFIG_NAME "asn1cfg"
|
||||
#else
|
||||
#define CONFIG_NAME "dumpasn1.cfg"
|
||||
#endif /* __TANDEM_NSK__ */
|
||||
+#endif
|
||||
|
||||
#if defined( __TANDEM_NSK__ )
|
||||
|
||||
@@ -1215,14 +1217,14 @@
|
||||
{
|
||||
lineLength++;
|
||||
i++; /* We've read two characters for a wchar_t */
|
||||
-#if defined( __WIN32__ ) || ( defined( __UNIX__ ) && !defined( __MACH__ ) )
|
||||
+#if defined( __WIN32__ ) || ( !( defined( __FreeBSD__ ) && __FreeBSD__ < 5 ) && defined( __UNIX__ ) && !defined( __MACH__ ) )
|
||||
wprintf( L"%c", wCh );
|
||||
#else
|
||||
/* This could use some improvement */
|
||||
- #ifndef __MACH__
|
||||
+ #if !defined( __MACH__ ) && !defined( __FreeBSD__ )
|
||||
for( p = outBuf; *p != '\0'; p++ )
|
||||
*p = asciiToEbcdic( *p );
|
||||
- #endif /* OS X */
|
||||
+ #endif /* OS X || FreeBSD */
|
||||
fprintf( output, "%s", outBuf );
|
||||
#endif /* OS-specific charset handling */
|
||||
fPos += 2;
|
25
converters/dumpasn1/files/patch-dumpasn1.c
Normal file
25
converters/dumpasn1/files/patch-dumpasn1.c
Normal file
@ -0,0 +1,25 @@
|
||||
--- dumpasn1.c.orig Tue Nov 15 12:12:53 2005
|
||||
+++ dumpasn1.c Tue Nov 15 12:13:06 2005
|
||||
@@ -297,11 +297,13 @@
|
||||
beginning with a '$' uses the appropriate environment variable. In
|
||||
addition under Unix we also walk down $PATH looking for it */
|
||||
|
||||
+#ifndef CONFIG_NAME
|
||||
#ifdef __TANDEM_NSK__
|
||||
#define CONFIG_NAME "asn1cfg"
|
||||
#else
|
||||
#define CONFIG_NAME "dumpasn1.cfg"
|
||||
#endif /* __TANDEM_NSK__ */
|
||||
+#endif
|
||||
|
||||
#if defined( __TANDEM_NSK__ )
|
||||
|
||||
@@ -1215,7 +1217,7 @@
|
||||
lineLength++;
|
||||
i++; /* We've read two characters for a wchar_t */
|
||||
#if defined( __WIN32__ ) || \
|
||||
- ( defined( __UNIX__ ) && !( defined( __MACH__ ) || defined( __OpenBSD__ ) ) )
|
||||
+ ( defined( __UNIX__ ) && !( defined( __FreeBSD__ ) && __FreeBSD__ < 5 ) && !( defined( __MACH__ ) || defined( __OpenBSD__ ) ) )
|
||||
|
||||
wprintf( L"%c", wCh );
|
||||
#else
|
@ -1,3 +1,3 @@
|
||||
bin/dumpasn1
|
||||
share/dumpasn1/dumpasn1.cfg
|
||||
@dirrm share/dumpasn1
|
||||
%%DATADIR%%/dumpasn1.cfg
|
||||
@dirrm %%DATADIR%%
|
||||
|
Loading…
Reference in New Issue
Block a user