git: d5988cb3cc97 - main - devel/libmacaroons: New port: Flexible authorization credentials library
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 01 Apr 2024 07:43:50 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=d5988cb3cc97af4e5ab05bfbbd3d83c5b98a321a commit d5988cb3cc97af4e5ab05bfbbd3d83c5b98a321a Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2024-03-31 19:50:22 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2024-04-01 07:40:43 +0000 devel/libmacaroons: New port: Flexible authorization credentials library --- security/Makefile | 1 + security/libmacaroons/Makefile | 30 ++++++++++++++++++++++++++ security/libmacaroons/distinfo | 3 +++ security/libmacaroons/files/patch-configure.ac | 14 ++++++++++++ security/libmacaroons/pkg-descr | 4 ++++ 5 files changed, 52 insertions(+) diff --git a/security/Makefile b/security/Makefile index c7274d44d9c7..016d29472fc8 100644 --- a/security/Makefile +++ b/security/Makefile @@ -299,6 +299,7 @@ SUBDIR += libkleo SUBDIR += libkpass SUBDIR += libksba + SUBDIR += libmacaroons SUBDIR += libmcrypt SUBDIR += libnitrokey SUBDIR += libntlm diff --git a/security/libmacaroons/Makefile b/security/libmacaroons/Makefile new file mode 100644 index 000000000000..854731faa713 --- /dev/null +++ b/security/libmacaroons/Makefile @@ -0,0 +1,30 @@ +PORTNAME= libmacaroons +DISTVERSION= 0.3.0-20210219 +CATEGORIES= security devel + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Flexible authorization credentials library +WWW= https://github.com/rescrv/libmacaroons + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= autoreconf gmake libtool python:build +USE_LDCONFIG= yes + +USE_GITHUB= yes +GH_ACCOUNT= rescrv +GH_TAGNAME= ca0211d + +GNU_CONFIGURE= yes + +INSTALL_TARGET= install-strip + +PLIST_FILES= include/macaroons.h \ + lib/libmacaroons.a \ + lib/libmacaroons.so \ + lib/libmacaroons.so.0 \ + lib/libmacaroons.so.0.0.1 \ + libdata/pkgconfig/libmacaroons.pc + +.include <bsd.port.mk> diff --git a/security/libmacaroons/distinfo b/security/libmacaroons/distinfo new file mode 100644 index 000000000000..291ce30c233c --- /dev/null +++ b/security/libmacaroons/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1711913616 +SHA256 (rescrv-libmacaroons-0.3.0-20210219-ca0211d_GH0.tar.gz) = 8c0a3b0ad353d6b1bd6bef3309a4691c4a502701aff7d5160bf543727bbc99a5 +SIZE (rescrv-libmacaroons-0.3.0-20210219-ca0211d_GH0.tar.gz) = 79752 diff --git a/security/libmacaroons/files/patch-configure.ac b/security/libmacaroons/files/patch-configure.ac new file mode 100644 index 000000000000..d7eb91bcb62b --- /dev/null +++ b/security/libmacaroons/files/patch-configure.ac @@ -0,0 +1,14 @@ +- configure failure workaround patch +- source: from https://github.com/rescrv/libmacaroons/issues/62#issuecomment-994251296 + +--- configure.ac.orig 2024-03-31 19:39:38 UTC ++++ configure.ac +@@ -29,7 +29,7 @@ AC_MSG_CHECKING([pkg-config m4 macros]) + + dnl Testing presence of pkg-config + AC_MSG_CHECKING([pkg-config m4 macros]) +-if test m4_ifdef([PKG_CHECK_MODULES], [yes], [no]) == yes; then ++if test m4_ifdef([PKG_CHECK_MODULES], [yes], [no]) == no; then + AC_MSG_RESULT([yes]); + else + AC_MSG_RESULT([no]); diff --git a/security/libmacaroons/pkg-descr b/security/libmacaroons/pkg-descr new file mode 100644 index 000000000000..f8ad10b16536 --- /dev/null +++ b/security/libmacaroons/pkg-descr @@ -0,0 +1,4 @@ +The libmacaroons library provides an implementation of macaroons, which are +flexible authorization tokens that work great in distributed systems. +Like cookies, macaroons are bearer tokens that enable applications to ascertain +whether their holders' actions are authorized.