diff --git a/www/Makefile b/www/Makefile index 0e7592321f51..e4bbe8116323 100644 --- a/www/Makefile +++ b/www/Makefile @@ -351,6 +351,7 @@ SUBDIR += libhpack SUBDIR += libhtp-suricata SUBDIR += libhubbub + SUBDIR += libjwt SUBDIR += libmicrohttpd SUBDIR += libsocialweb SUBDIR += libwww diff --git a/www/libjwt/Makefile b/www/libjwt/Makefile new file mode 100644 index 000000000000..5e92683dd0d7 --- /dev/null +++ b/www/libjwt/Makefile @@ -0,0 +1,27 @@ +# Created by: Kevin Lo +# $FreeBSD$ + +PORTNAME= libjwt +PORTVERSION= 1.3.1 +DISTVERSIONPREFIX= v +CATEGORIES= www + +MAINTAINER= kevlo@FreeBSD.org +COMMENT= JSON Web Token implementation in C + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING.LIB + +LIB_DEPENDS= libcheck.so:devel/libcheck \ + libjansson.so:devel/jansson + +USE_GITHUB= yes +GH_ACCOUNT= benmcollins + +USES= libtool pkgconfig ssl +USE_LDCONFIG= yes +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --with-openssl=${OPENSSLBASE} +INSTALL_TARGET= install-strip + +.include diff --git a/www/libjwt/distinfo b/www/libjwt/distinfo new file mode 100644 index 000000000000..ab69c298e021 --- /dev/null +++ b/www/libjwt/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1474607970 +SHA256 (benmcollins-libjwt-v1.3.1_GH0.tar.gz) = 5f43af415412b6448760946643f2666a65e4e0559a5c893316d7e98520d78b1a +SIZE (benmcollins-libjwt-v1.3.1_GH0.tar.gz) = 390071 diff --git a/www/libjwt/files/patch-libjwt_Makefile.in b/www/libjwt/files/patch-libjwt_Makefile.in new file mode 100644 index 000000000000..f67c05cba5a5 --- /dev/null +++ b/www/libjwt/files/patch-libjwt_Makefile.in @@ -0,0 +1,11 @@ +--- libjwt/Makefile.in.orig 2016-09-23 05:42:55 UTC ++++ libjwt/Makefile.in +@@ -361,7 +361,7 @@ libjwt_la_LDFLAGS = -version-info 2:0:2 + libjwt_la_CPPFLAGS = -I$(top_srcdir)/include $(OPENSSL_INCLUDES) -Wall + libjwt_la_CFLAGS = $(JANSSON_CFLAGS) $(COVERAGE_CFLAGS) + libjwt_la_LIBADD = $(OPENSSL_LIBS) $(JANSSON_LIBS) $(COVERAGE_LDFLAGS) +-pkgconfiglibdir = $(libdir)/pkgconfig ++pkgconfiglibdir = $(prefix)/libdata/pkgconfig + pkgconfiglib_DATA = libjwt.pc + all: config.h + $(MAKE) $(AM_MAKEFLAGS) all-am diff --git a/www/libjwt/pkg-descr b/www/libjwt/pkg-descr new file mode 100644 index 000000000000..e47f3d5c2406 --- /dev/null +++ b/www/libjwt/pkg-descr @@ -0,0 +1,3 @@ +The C implementation of JSON Web Tokens. + +WWW: https://github.com/benmcollins/libjwt diff --git a/www/libjwt/pkg-plist b/www/libjwt/pkg-plist new file mode 100644 index 000000000000..77b252fdd52e --- /dev/null +++ b/www/libjwt/pkg-plist @@ -0,0 +1,6 @@ +include/jwt.h +lib/libjwt.a +lib/libjwt.so +lib/libjwt.so.0 +lib/libjwt.so.0.2.0 +libdata/pkgconfig/libjwt.pc