aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Mingrone <jrm@FreeBSD.org>2022-01-22 03:41:17 +0000
committerJoseph Mingrone <jrm@FreeBSD.org>2022-01-22 20:18:09 +0000
commit1c634c300b1b97d5a9ba0840b0b676ae459353c7 (patch)
treefa602ff014de1ad602e344416311102249145431
parent1ea5aa93b9b197b1b3f98186ebd38a55c6252bee (diff)
downloadports-1c634c300b1b97d5a9ba0840b0b676ae459353c7.tar.gz
ports-1c634c300b1b97d5a9ba0840b0b676ae459353c7.zip
ports-mgmt/pkg-graph: New port to visualize package dependencies
Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D34003
-rw-r--r--ports-mgmt/Makefile1
-rw-r--r--ports-mgmt/pkg-graph/Makefile27
-rw-r--r--ports-mgmt/pkg-graph/distinfo21
-rw-r--r--ports-mgmt/pkg-graph/pkg-descr7
4 files changed, 56 insertions, 0 deletions
diff --git a/ports-mgmt/Makefile b/ports-mgmt/Makefile
index fed51cb0637b..e912bfcd1039 100644
--- a/ports-mgmt/Makefile
+++ b/ports-mgmt/Makefile
@@ -25,6 +25,7 @@
SUBDIR += pchecker
SUBDIR += pkg
SUBDIR += pkg-devel
+ SUBDIR += pkg-graph
SUBDIR += pkg-provides
SUBDIR += pkg-rmleaf
SUBDIR += pkg_cleanup
diff --git a/ports-mgmt/pkg-graph/Makefile b/ports-mgmt/pkg-graph/Makefile
new file mode 100644
index 000000000000..36fcefa5545f
--- /dev/null
+++ b/ports-mgmt/pkg-graph/Makefile
@@ -0,0 +1,27 @@
+PORTNAME= pkg-graph
+DISTVERSION= g20180614
+CATEGORIES= ports-mgmt
+
+MAINTAINER= gnn@FreeBSD.org
+COMMENT= Graphviz generator for pkg
+
+LICENSE= BSD2CLAUSE
+
+USES= cargo
+USE_GITHUB= yes
+GH_ACCOUNT= neosmart
+GH_TAGNAME= 3b16898
+
+CARGO_CRATES= dtoa-0.4.2 \
+ itoa-0.4.1 \
+ proc-macro2-0.4.6 \
+ quote-0.6.3 \
+ serde-1.0.66 \
+ serde_derive-1.0.66 \
+ serde_json-1.0.20 \
+ syn-0.14.2 \
+ unicode-xid-0.1.0
+
+PLIST_FILES= bin/pkg-graph
+
+.include <bsd.port.mk>
diff --git a/ports-mgmt/pkg-graph/distinfo b/ports-mgmt/pkg-graph/distinfo
new file mode 100644
index 000000000000..b568ca729a3f
--- /dev/null
+++ b/ports-mgmt/pkg-graph/distinfo
@@ -0,0 +1,21 @@
+TIMESTAMP = 1642822353
+SHA256 (rust/crates/dtoa-0.4.2.crate) = 09c3753c3db574d215cba4ea76018483895d7bff25a31b49ba45db21c48e50ab
+SIZE (rust/crates/dtoa-0.4.2.crate) = 14227
+SHA256 (rust/crates/itoa-0.4.1.crate) = c069bbec61e1ca5a596166e55dfe4773ff745c3d16b700013bcaff9a6df2c682
+SIZE (rust/crates/itoa-0.4.1.crate) = 10563
+SHA256 (rust/crates/proc-macro2-0.4.6.crate) = effdb53b25cdad54f8f48843d67398f7ef2e14f12c1b4cb4effc549a6462a4d6
+SIZE (rust/crates/proc-macro2-0.4.6.crate) = 27767
+SHA256 (rust/crates/quote-0.6.3.crate) = e44651a0dc4cdd99f71c83b561e221f714912d11af1a4dff0631f923d53af035
+SIZE (rust/crates/quote-0.6.3.crate) = 14154
+SHA256 (rust/crates/serde-1.0.66.crate) = e9a2d9a9ac5120e0f768801ca2b58ad6eec929dc9d1d616c162f208869c2ce95
+SIZE (rust/crates/serde-1.0.66.crate) = 71947
+SHA256 (rust/crates/serde_derive-1.0.66.crate) = 0a90213fa7e0f5eac3f7afe2d5ff6b088af515052cc7303bd68c7e3b91a3fb79
+SIZE (rust/crates/serde_derive-1.0.66.crate) = 45894
+SHA256 (rust/crates/serde_json-1.0.20.crate) = fc97cccc2959f39984524026d760c08ef0dd5f0f5948c8d31797dbfae458c875
+SIZE (rust/crates/serde_json-1.0.20.crate) = 64905
+SHA256 (rust/crates/syn-0.14.2.crate) = c67da57e61ebc7b7b6fff56bb34440ca3a83db037320b0507af4c10368deda7d
+SIZE (rust/crates/syn-0.14.2.crate) = 133756
+SHA256 (rust/crates/unicode-xid-0.1.0.crate) = fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc
+SIZE (rust/crates/unicode-xid-0.1.0.crate) = 16000
+SHA256 (neosmart-pkg-graph-g20180614-3b16898_GH0.tar.gz) = 1fa3f5247a5e8a2598a1d31528a788bd80e70c54064e924a2652f46e7f99f756
+SIZE (neosmart-pkg-graph-g20180614-3b16898_GH0.tar.gz) = 4988
diff --git a/ports-mgmt/pkg-graph/pkg-descr b/ports-mgmt/pkg-graph/pkg-descr
new file mode 100644
index 000000000000..a2d4f3f7ccd5
--- /dev/null
+++ b/ports-mgmt/pkg-graph/pkg-descr
@@ -0,0 +1,7 @@
+pkg-graph is a command-line utility to generate a dependency graph in
+DOT syntax (for use with graphviz and others) to represent the
+dependency tree of installed packages. It can be used to visually
+analyze the package dependency chain and understand why certain packages
+are pulled in.
+
+WWW: https://github.com/neosmart/pkg-graph