From nobody Mon Apr 1 07:43:50 2024 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4V7NLG2FNMz5FrPW; Mon, 1 Apr 2024 07:43:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V7NLG1f29z4m29; Mon, 1 Apr 2024 07:43:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711957430; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nfcaS2j7VpBOPLAGAvv+nK75Hd47oRU7/zjS0wv93vE=; b=nxZFUpJ97piu19tTbbCSQcNJsX2FG7jVEJkLlTEg47dUOiqklMqzqZ4tUlD4WK7MzeD/gN CJDN9zop/njmlcI73MbznQg12LjGASBhbIzp9lXGwJRxeL6KvaKPo0+Uu7B3PjDmfRdbiN CVs+Ip1KJkHM+mt/UnW1wCaXpSHaElVxafv3iU6kyeLfzqltnzMPbIKaT0d8mEIyNXvSAN ZJ0Y1jJL0LrMS+xdLT0p2iB18/KhBNWE2+mjJmSLkScAXsoe1+L8mbizZXFCmFmmJ2Wend k3mD/iAsYYkh+a4pfDHEfHMA1+ev7mvF+OAQkzn9tXuD6n/+zL0NPAWqUQFFqA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711957430; a=rsa-sha256; cv=none; b=LT3WQIMn847Je5rU6xeqjj+8yrVzTw1N29lB61OgTY7nXPeLwQi43zJN9pZJeb/3zraz/O rHT0K9NgIDBQamMe1OicUPnJshubuWJ5bMp0dOSv80LV1m/lDsyS3V6oIW9ohHJ1i6C4W+ N4P1LKsGwHD5kBqcljR0x579PLCgTtjrOtghyxU/Mkyf1foUlY3LjRZFWEPAvG9LKh9uYD qtx06MBp02i4ru1Rz8mTNzmgE3xaxw5RA0JMl31dlWyJI+UTAZXWUeSqE477ff22rkHRRp NU37f98voTmPKllRmKNRaR1KK5pwxbd0t5EVP2/fHORTCMdHI3GkFip+nI+u9w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711957430; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nfcaS2j7VpBOPLAGAvv+nK75Hd47oRU7/zjS0wv93vE=; b=poi6TW3rwS88eAXq5UPFOGne/t4tU5GY//sdiyQM+LR5Sgg0gNmx5eUq1zClyeVWRQUZcy Iv4NvXk7cpwfvKBQrra3hmGIgr2K0MtKIqCK4mCX8e3Bb6sd5HKldod1VYG5Sfj03bVmmH gYq9V2tTyKBgIZC1ttdCXQUFEf/aw4kEpjfNpwPqkkdr66OacfBPaIf9G6Z6PlMvknnJgl 6lt3iQK0cDm6U4KqNdOLnnM3VmS/pWTX8BEpJX+UItNQrfXBeejt5Tepqbl8/J6TmyqoUU OixAOsDE9mn0lbpvLwrCCPxBZnmLMWCtDTOV5+wTVk0D8oTOswQG99DEJlvEPw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4V7NLG1Dvtz1CgW; Mon, 1 Apr 2024 07:43:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 4317hojX054108; Mon, 1 Apr 2024 07:43:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 4317hoVY054105; Mon, 1 Apr 2024 07:43:50 GMT (envelope-from git) Date: Mon, 1 Apr 2024 07:43:50 GMT Message-Id: <202404010743.4317hoVY054105@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: d5988cb3cc97 - main - devel/libmacaroons: New port: Flexible authorization credentials library List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d5988cb3cc97af4e5ab05bfbbd3d83c5b98a321a Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=d5988cb3cc97af4e5ab05bfbbd3d83c5b98a321a commit d5988cb3cc97af4e5ab05bfbbd3d83c5b98a321a Author: Yuri Victorovich AuthorDate: 2024-03-31 19:50:22 +0000 Commit: Yuri Victorovich 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 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.