aboutsummaryrefslogtreecommitdiffstats
path: root/converters/dumpasn1
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-05-07 11:32:54 +0800
committerkris <kris@FreeBSD.org>2000-05-07 11:32:54 +0800
commit55aea7dc42219ae92076596c0f5bd7ca63d008c5 (patch)
tree0246ff1c610d49cfa9f0d2e98aac01f1e65ff3e8 /converters/dumpasn1
parent7a91eb3239c190a8df6273dede05bd101fcff125 (diff)
downloadfreebsd-ports-gnome-55aea7dc42219ae92076596c0f5bd7ca63d008c5.tar.gz
freebsd-ports-gnome-55aea7dc42219ae92076596c0f5bd7ca63d008c5.tar.zst
freebsd-ports-gnome-55aea7dc42219ae92076596c0f5bd7ca63d008c5.zip
dumpasn1 is a utility to dump the contents of ASN.1-encoded files,
such as SSL certificates, in human-readable format. It includes a full list of security-related OIDs, and can be easily extended by the user.
Diffstat (limited to 'converters/dumpasn1')
-rw-r--r--converters/dumpasn1/Makefile29
-rw-r--r--converters/dumpasn1/distinfo2
-rw-r--r--converters/dumpasn1/files/patch-aa17
-rw-r--r--converters/dumpasn1/pkg-comment1
-rw-r--r--converters/dumpasn1/pkg-descr7
-rw-r--r--converters/dumpasn1/pkg-plist2
6 files changed, 58 insertions, 0 deletions
diff --git a/converters/dumpasn1/Makefile b/converters/dumpasn1/Makefile
new file mode 100644
index 000000000000..222eae63cb15
--- /dev/null
+++ b/converters/dumpasn1/Makefile
@@ -0,0 +1,29 @@
+# New ports collection makefile for: dumpasn1
+# Date created: 6 May 2000
+# Whom: kris@FreeBSD.org
+#
+# $FreeBSD$
+#
+
+PORTNAME= dumpasn1
+PORTVERSION= 19990914
+CATEGORIES= converters security
+MASTER_SITES= http://www.cs.auckland.ac.nz/~pgut001/
+DISTFILES= dumpasn1.c dumpasn1.cfg
+EXTRACT_ONLY=
+
+MAINTAINER= kris@FreeBSD.org
+
+do-extract:
+ @${MKDIR} ${WRKSRC}
+ @${CP} ${DISTDIR}/dumpasn1.c ${WRKSRC}
+
+do-build:
+ cd ${WRKSRC} && \
+ ${CC} ${CFLAGS} -DCONFIG_NAME=\"${PREFIX}/share/dumpasn1/dumpasn1.cfg\" -o dumpasn1 dumpasn1.c
+
+do-install:
+ ${MKDIR} ${PREFIX}/share/dumpasn1
+ ${INSTALL_PROGRAM} ${WRKSRC}/dumpasn1 ${PREFIX}/bin
+ ${INSTALL_DATA} ${DISTDIR}/dumpasn1.cfg ${PREFIX}/share/dumpasn1
+.include <bsd.port.mk>
diff --git a/converters/dumpasn1/distinfo b/converters/dumpasn1/distinfo
new file mode 100644
index 000000000000..29814dd7f3b3
--- /dev/null
+++ b/converters/dumpasn1/distinfo
@@ -0,0 +1,2 @@
+MD5 (dumpasn1.c) = c148dbfd182c92b94d13829f8fee383c
+MD5 (dumpasn1.cfg) = c6b06f8fad85ca518ba352f0680d492d
diff --git a/converters/dumpasn1/files/patch-aa b/converters/dumpasn1/files/patch-aa
new file mode 100644
index 000000000000..bc6057ccc624
--- /dev/null
+++ b/converters/dumpasn1/files/patch-aa
@@ -0,0 +1,17 @@
+--- dumpasn1.c.orig Sat May 6 20:23:20 2000
++++ dumpasn1.c Sat May 6 20:23:51 2000
+@@ -194,7 +194,9 @@
+ path, since this doesn't set up argv[0] to the full path). Anything
+ beginning with a '$' uses the appropriate environment variable */
+
++#ifndef CONFIG_NAME
+ #define CONFIG_NAME "dumpasn1.cfg"
++#endif
+
+ static const char *configPaths[] = {
+ /* Unix absolute paths */
+@@ -1817,4 +1819,3 @@
+
+ return( ( noErrors ) ? noErrors : EXIT_SUCCESS );
+ }
+-
diff --git a/converters/dumpasn1/pkg-comment b/converters/dumpasn1/pkg-comment
new file mode 100644
index 000000000000..42abd0c492bf
--- /dev/null
+++ b/converters/dumpasn1/pkg-comment
@@ -0,0 +1 @@
+Dumps the contents of an ASN.1 encoded file, e.g. an SSL certificate
diff --git a/converters/dumpasn1/pkg-descr b/converters/dumpasn1/pkg-descr
new file mode 100644
index 000000000000..e4885eed2ec8
--- /dev/null
+++ b/converters/dumpasn1/pkg-descr
@@ -0,0 +1,7 @@
+dumpasn1 is an ASN.1 parser which dumps the contents of an ASN.1-encoded
+file, as well as interpreting the OIDs contained in the file into
+human-readable format. Dumpasn1 is intended for examining the contents
+of PKI certificates and comes with a full list of security-related OIDs,
+but can be easily extended to parse other OIDs as well.
+
+WWW: http://www.cs.auckland.ac.nz/~pgut001/
diff --git a/converters/dumpasn1/pkg-plist b/converters/dumpasn1/pkg-plist
new file mode 100644
index 000000000000..8f5d758ef1f3
--- /dev/null
+++ b/converters/dumpasn1/pkg-plist
@@ -0,0 +1,2 @@
+bin/dumpasn1
+share/dumpasn1/dumpasn1.cfg