From nobody Sun Sep 17 08:46:52 2023 X-Original-To: dev-commits-ports-main@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 4RpM3x0Vznz4t4p2; Sun, 17 Sep 2023 08:46:53 +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 4RpM3w6hr2z4G0R; Sun, 17 Sep 2023 08:46:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694940412; 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=ZUXOzopoT4Jjdtj8iJfeouQ7q/S5AE8R9MNWy2rp2cQ=; b=IbjMeQvojgk0qppantreimxSQLUV7RkdHIY3aE9PyX3qhiUHahzRUOT0Y5GH3FqXtBnYpN nP8IL156/iRey/jd70dQOuLBT5WMS/k0KrshbNaZ2f9hGwUkrsrGNiN6MJpJpq6xv337wX KjXi3jFJIhKrKNXF0XK8pv4N90c7FtaVIa7T1dKRrrqbjRY9wdpoDKRsi/5/L/JRSEDLdQ 0KrQmYzZWfh3GTbBEHK39DVJUzWTb+Sq7xEKt8vJvjH9xV3GLxjBfwxfVGSae/jICXQTcp ojGrp2Mxw+6/FcDoRiyLpxpTS00OK9NzrIvqohpKKNNF+60b4EAvnwzbSUxV1w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694940412; a=rsa-sha256; cv=none; b=Xcy8vR7WmcQzsj5CpLoJ/42wYC18+6PLRafMPwmEfzIfACZM//YPmU2EXIy5ecnTwLyNSa 3mS0CWyq6M7pVA/OxQV7ChpLwvpYmp38pfxqT5VlLKdp0sfWpu1GLlXIEaEbmVnHlsbcQR ODoJ9RX+yQimTpqp1DMyp7PzhtdAkVaHI4278eSxpJzqFm5mXXhNadO/C83AmXcOZ86+SA q5FVEitjqsqzMi1fDEy4cY6Ozlvbe4NTLKZ+CDEZD4BdbVt0Ed2McPdaxc59xEPuQ1/eVg za1tjI4iFa9Skavd5J2vX+sZs0uTOgfqd2hz9j8UT8Sgt1jvK2WvswjKSM3cKQ== 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=1694940412; 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=ZUXOzopoT4Jjdtj8iJfeouQ7q/S5AE8R9MNWy2rp2cQ=; b=CjG3JEYkOJs0i3vtPI7M5ZdPEI0if51eaICHNE6rwNveh0NkbVXePwjhq/FxsCS2mPnUDq qufSsX8VjJybmFDyvc4DoG0bFGndcbAYhLOXW/emYHERKj/scdfmVwRVM/gcylAPMfkRXI PmmNaatYg4wGd0Epj4xXmxGyqA876mYVnoD/84ZoY+Cxf1ysHiFDOoyNHdIWzg2/ZXwu8O u3+z3E/8IGPavymIdFBv02RPStl0Yodc/GRelwaevD0x2PolFctVS9FcWo6Cjyhjc/i9lW ohYD6808UJplEageYCmyBk1RP42bOF93MG188ZaXauhDrN97VFekOaMJFPe1cA== 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 4RpM3w5NmLzhqZ; Sun, 17 Sep 2023 08:46:52 +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 38H8kqTk041277; Sun, 17 Sep 2023 08:46:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38H8kqgr041274; Sun, 17 Sep 2023 08:46:52 GMT (envelope-from git) Date: Sun, 17 Sep 2023 08:46:52 GMT Message-Id: <202309170846.38H8kqgr041274@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: 7f73d07ff13f - main - devel/capslock: New port: Capability analysis CLI for Go packages List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@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: 7f73d07ff13f271d0e80bdc9fbf09de92414d721 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=7f73d07ff13f271d0e80bdc9fbf09de92414d721 commit 7f73d07ff13f271d0e80bdc9fbf09de92414d721 Author: Yuri Victorovich AuthorDate: 2023-09-17 08:46:19 +0000 Commit: Yuri Victorovich CommitDate: 2023-09-17 08:46:19 +0000 devel/capslock: New port: Capability analysis CLI for Go packages --- devel/Makefile | 1 + devel/capslock/Makefile | 27 +++++++++++++++++++++++++++ devel/capslock/distinfo | 5 +++++ devel/capslock/pkg-descr | 4 ++++ 4 files changed, 37 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 3e229e197e45..12866a42429e 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -332,6 +332,7 @@ SUBDIR += caliper SUBDIR += capnproto SUBDIR += capnproto080 + SUBDIR += capslock SUBDIR += capstone SUBDIR += capstone3 SUBDIR += capstone4 diff --git a/devel/capslock/Makefile b/devel/capslock/Makefile new file mode 100644 index 000000000000..fdbde22b24ed --- /dev/null +++ b/devel/capslock/Makefile @@ -0,0 +1,27 @@ +PORTNAME= capslock +DISTVERSIONPREFIX= v +DISTVERSION= 0.1.1 +CATEGORIES= devel net + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Capability analysis CLI for Go packages +WWW= https://github.com/google/capslock + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= go:modules + +GO_MODULE= github.com/google/capslock +GO_TARGET= ./cmd/capslock + +PLIST_FILES= bin/capslock + +post-patch: + @${REINPLACE_CMD} -e 's|"go"|"go${GO_SUFFIX}"|g' \ + ${WRKSRC}/vendor/golang.org/x/tools/go/gcexportdata/gcexportdata.go \ + ${WRKSRC}/vendor/golang.org/x/tools/internal/gcimporter/gcimporter.go \ + ${WRKSRC}/vendor/golang.org/x/tools/internal/gocommand/invoke.go \ + ${WRKSRC}/vendor/golang.org/x/tools/internal/goroot/importcfg.go + +.include diff --git a/devel/capslock/distinfo b/devel/capslock/distinfo new file mode 100644 index 000000000000..3332e7ecb0e9 --- /dev/null +++ b/devel/capslock/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1694939669 +SHA256 (go/devel_capslock/capslock-v0.1.1/v0.1.1.mod) = fdc6dd88889e2f4d33c522a8eae43bf07814243503ebe36247da4b414c2cd886 +SIZE (go/devel_capslock/capslock-v0.1.1/v0.1.1.mod) = 242 +SHA256 (go/devel_capslock/capslock-v0.1.1/v0.1.1.zip) = e919d6cd12ca9847dfc90226d8d6a2cc704c98c4179eccd55c81b1926b0c0f9f +SIZE (go/devel_capslock/capslock-v0.1.1/v0.1.1.zip) = 127088 diff --git a/devel/capslock/pkg-descr b/devel/capslock/pkg-descr new file mode 100644 index 000000000000..cf288450e23d --- /dev/null +++ b/devel/capslock/pkg-descr @@ -0,0 +1,4 @@ +Capslock is a capability analysis CLI for Go packages that informs users of +which privileged operations a given package can access. This works by +classifying the capabilities of Go packages by following transitive calls to +privileged standard library operations.