From 50058664d0808c56e836b04c15e0ab56877dbcf2 Mon Sep 17 00:00:00 2001 From: Allan Jude Date: Thu, 13 Oct 2016 00:36:39 +0000 Subject: [PATCH] Add the varnish vmod-digest port Reviewed by: feld Approved by: mat Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D6379 --- www/varnish-libvmod-digest/Makefile | 31 +++++++++++++++++++ www/varnish-libvmod-digest/distinfo | 3 ++ .../files/patch-Makefile.am | 8 +++++ www/varnish-libvmod-digest/pkg-descr | 7 +++++ www/varnish-libvmod-digest/pkg-plist | 4 +++ 5 files changed, 53 insertions(+) create mode 100644 www/varnish-libvmod-digest/Makefile create mode 100644 www/varnish-libvmod-digest/distinfo create mode 100644 www/varnish-libvmod-digest/files/patch-Makefile.am create mode 100644 www/varnish-libvmod-digest/pkg-descr create mode 100644 www/varnish-libvmod-digest/pkg-plist diff --git a/www/varnish-libvmod-digest/Makefile b/www/varnish-libvmod-digest/Makefile new file mode 100644 index 000000000000..1abec748a537 --- /dev/null +++ b/www/varnish-libvmod-digest/Makefile @@ -0,0 +1,31 @@ +# $FreeBSD$ + +PORTNAME= libvmod-digest +DISTVERSIONPREFIX=${PORTNAME}- +DISTVERSION= 1.0.1 +CATEGORIES= www +PKGNAMEPREFIX= varnish- + +MAINTAINER= allanjude@FreeBSD.org +COMMENT= Varnish Module (vmod) for computing message digests and HMAC + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= varnish4>=4.1.0:www/varnish4 \ + rst2man:textproc/py-docutils +LIB_DEPENDS= libmhash.so:security/mhash +RUN_DEPENDS= varnish4>=4.1.0:www/varnish4 + +USES= autoreconf gmake libtool pkgconfig python:2,build +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --disable-static +CFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/varnish +CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/varnish +LDFLAGS+= -L${LOCALBASE}/lib +INSTALL_TARGET= install-strip + +USE_GITHUB= yes +GH_ACCOUNT= varnish + +.include diff --git a/www/varnish-libvmod-digest/distinfo b/www/varnish-libvmod-digest/distinfo new file mode 100644 index 000000000000..c1b5f2f6f57d --- /dev/null +++ b/www/varnish-libvmod-digest/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1463349468 +SHA256 (varnish-libvmod-digest-libvmod-digest-1.0.1_GH0.tar.gz) = 491c3e54ebca3340464a227732de7f475bc5136c0fdaab587b764dd77db376e2 +SIZE (varnish-libvmod-digest-libvmod-digest-1.0.1_GH0.tar.gz) = 18084 diff --git a/www/varnish-libvmod-digest/files/patch-Makefile.am b/www/varnish-libvmod-digest/files/patch-Makefile.am new file mode 100644 index 000000000000..2d1f9387efd5 --- /dev/null +++ b/www/varnish-libvmod-digest/files/patch-Makefile.am @@ -0,0 +1,8 @@ +--- Makefile.am.orig 2016-05-15 21:25:28 UTC ++++ Makefile.am +@@ -1,4 +1,4 @@ +-ACLOCAL_AMFLAGS = -I m4 -I ${LIBVARNISHAPI_DATAROOTDIR}/aclocal ++ACLOCAL_AMFLAGS = -I m4 + + SUBDIRS = src + diff --git a/www/varnish-libvmod-digest/pkg-descr b/www/varnish-libvmod-digest/pkg-descr new file mode 100644 index 000000000000..3f0e302689e2 --- /dev/null +++ b/www/varnish-libvmod-digest/pkg-descr @@ -0,0 +1,7 @@ +Varnish Module (vmod) for computing HMAC, message digests and working +with base64. + +All HMAC- and hash-functionality is provided by libmhash, while +base64 is implemented locally. + +WWW: https://github.com/varnish/libvmod-digest diff --git a/www/varnish-libvmod-digest/pkg-plist b/www/varnish-libvmod-digest/pkg-plist new file mode 100644 index 000000000000..c767f41ee4e4 --- /dev/null +++ b/www/varnish-libvmod-digest/pkg-plist @@ -0,0 +1,4 @@ +lib/varnish/vmods/libvmod_digest.so +man/man3/vmod_digest.3.gz +%%PORTDOCS%%%%DOCSDIR%%/LICENSE +%%PORTDOCS%%%%DOCSDIR%%/README.rst