aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2016-09-23 14:08:42 +0800
committerkevlo <kevlo@FreeBSD.org>2016-09-23 14:08:42 +0800
commit6ba2ac8cc4964c653f5897e65b2e67814568b71d (patch)
treea9ea8ffabd4270f28607646f83a2c7d9b2c1b6d9 /www
parentcb9728e215b3aa0557a76625032331d576b995f8 (diff)
downloadfreebsd-ports-gnome-6ba2ac8cc4964c653f5897e65b2e67814568b71d.tar.gz
freebsd-ports-gnome-6ba2ac8cc4964c653f5897e65b2e67814568b71d.tar.zst
freebsd-ports-gnome-6ba2ac8cc4964c653f5897e65b2e67814568b71d.zip
Import libjwt 1.3.1
Libjwt is a C implementation of JSON Web Tokens.
Diffstat (limited to 'www')
-rw-r--r--www/Makefile1
-rw-r--r--www/libjwt/Makefile27
-rw-r--r--www/libjwt/distinfo3
-rw-r--r--www/libjwt/files/patch-libjwt_Makefile.in11
-rw-r--r--www/libjwt/pkg-descr3
-rw-r--r--www/libjwt/pkg-plist6
6 files changed, 51 insertions, 0 deletions
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 <kevlo@FreeBSD.org>
+# $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 <bsd.port.mk>
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