From d84be3137dd0e54abe8f934cf7d12d3e5a2f17fa Mon Sep 17 00:00:00 2001 From: Jasper Siepkes Date: Thu, 14 Mar 2019 20:16:35 +0000 Subject: [PATCH] Added cjose library. cjose is a C library implementing the Javascript Object Signing and Encryption (JOSE). --- textproc/cjose/DESCR | 1 + textproc/cjose/Makefile | 24 ++++++++++++++++++++++++ textproc/cjose/PLIST | 12 ++++++++++++ textproc/cjose/buildlink3.mk | 15 +++++++++++++++ textproc/cjose/distinfo | 6 ++++++ 5 files changed, 58 insertions(+) create mode 100644 textproc/cjose/DESCR create mode 100644 textproc/cjose/Makefile create mode 100644 textproc/cjose/PLIST create mode 100644 textproc/cjose/buildlink3.mk create mode 100644 textproc/cjose/distinfo diff --git a/textproc/cjose/DESCR b/textproc/cjose/DESCR new file mode 100644 index 000000000000..06bd1dfaed82 --- /dev/null +++ b/textproc/cjose/DESCR @@ -0,0 +1 @@ +Library implementing the Javascript Object Signing and Encryption (JOSE). diff --git a/textproc/cjose/Makefile b/textproc/cjose/Makefile new file mode 100644 index 000000000000..b656de072cfa --- /dev/null +++ b/textproc/cjose/Makefile @@ -0,0 +1,24 @@ +# $NetBSD$ + +DISTNAME= cjose-0.6.1 +GITHUB_PROJECT= cjose +PKGNAME= ${GITHUB_PROJECT}-${DISTNAME} +CATEGORIES= textproc +MASTER_SITES= ${MASTER_SITE_GITHUB:=cisco/} +DIST_SUBDIR= ${GITHUB_PROJECT} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/cisco/cjose/ +COMMENT= C implementation of the Javascript Object Signing and Encryption (JOSE) +LICENSE= mit + +WRKSRC= ${WRKDIR}/cjose-0.6.1 +GNU_CONFIGURE= yes +USE_LIBTOOL= yes +USE_TOOLS+= pkg-config + +PKGCONFIG_OVERRIDE+= cjose.pc.in + +.include "../../textproc/jansson/buildlink3.mk" +.include "../../security/openssl/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/cjose/PLIST b/textproc/cjose/PLIST new file mode 100644 index 000000000000..cc6f840054d3 --- /dev/null +++ b/textproc/cjose/PLIST @@ -0,0 +1,12 @@ +@comment $NetBSD$ +include/cjose/base64.h +include/cjose/cjose.h +include/cjose/error.h +include/cjose/header.h +include/cjose/jwe.h +include/cjose/jwk.h +include/cjose/jws.h +include/cjose/util.h +include/cjose/version.h +lib/libcjose.la +lib/pkgconfig/cjose.pc diff --git a/textproc/cjose/buildlink3.mk b/textproc/cjose/buildlink3.mk new file mode 100644 index 000000000000..3d49853d243e --- /dev/null +++ b/textproc/cjose/buildlink3.mk @@ -0,0 +1,15 @@ +# $NetBSD$ + +BUILDLINK_TREE+= cjose-cjose + +.if !defined(CJOSE_CJOSE_BUILDLINK3_MK) +CJOSE_CJOSE_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.cjose-cjose+= cjose-cjose>=0.6.1 +BUILDLINK_PKGSRCDIR.cjose-cjose?= ../../textproc/cjose + +.include "../../textproc/jansson/buildlink3.mk" +.include "../../security/openssl/buildlink3.mk" +.endif # CJOSE_CJOSE_BUILDLINK3_MK + +BUILDLINK_TREE+= -cjose-cjose diff --git a/textproc/cjose/distinfo b/textproc/cjose/distinfo new file mode 100644 index 000000000000..3cf67c9633a0 --- /dev/null +++ b/textproc/cjose/distinfo @@ -0,0 +1,6 @@ +$NetBSD$ + +SHA1 (cjose/cjose-0.6.1.tar.gz) = 0dd6efca729f1190f66855523c3920c3f7ddd482 +RMD160 (cjose/cjose-0.6.1.tar.gz) = 653323af3933dd622689815c3e11a102b23808c9 +SHA512 (cjose/cjose-0.6.1.tar.gz) = 7ae67a6d19591b3d19b888270ec0ca17df399bea117e42686fc1de39b3741ed9a8816f96d33d090687c49c3123cdc95430a781835a525a02d22561ebf5aaa653 +Size (cjose/cjose-0.6.1.tar.gz) = 1586963 bytes