diff options
author | Emanuel Haupt <ehaupt@FreeBSD.org> | 2022-02-25 12:58:23 +0000 |
---|---|---|
committer | Emanuel Haupt <ehaupt@FreeBSD.org> | 2022-02-25 12:59:03 +0000 |
commit | 188ad7b55f943c840431d8ef36c1add145eda3c2 (patch) | |
tree | 637573693852b09594c67cf22e52504e9adce7eb /sysutils | |
parent | d27551c5c3469b712266edeef5fe45d43c86f7b6 (diff) | |
download | ports-188ad7b55f943c840431d8ef36c1add145eda3c2.tar.gz ports-188ad7b55f943c840431d8ef36c1add145eda3c2.zip |
sysutils/libtree: Add new port
Ldd as a tree with an option to bundle dependencies into a single
folder.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/libtree/Makefile | 21 | ||||
-rw-r--r-- | sysutils/libtree/distinfo | 3 | ||||
-rw-r--r-- | sysutils/libtree/files/patch-libtree.c | 11 | ||||
-rw-r--r-- | sysutils/libtree/pkg-descr | 4 |
5 files changed, 40 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index cb31ebceba35..55103645bbbb 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -626,6 +626,7 @@ SUBDIR += libretto-config SUBDIR += libsunacl SUBDIR += libsysstat + SUBDIR += libtree SUBDIR += libudisks SUBDIR += liburcu SUBDIR += lineak-defaultplugin diff --git a/sysutils/libtree/Makefile b/sysutils/libtree/Makefile new file mode 100644 index 000000000000..c9a4c8f33de4 --- /dev/null +++ b/sysutils/libtree/Makefile @@ -0,0 +1,21 @@ +# Created by: Emanuel Haupt <ehaupt@FreeBSD.org> + +PORTNAME= libtree +PORTVERSION= 3.0.3 +DISTVERSIONPREFIX= v +CATEGORIES= sysutils + +MAINTAINER= ehaupt@FreeBSD.org +COMMENT= Show library info in a tree form + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= gmake +USE_GITHUB= yes +GH_ACCOUNT= haampie + +PLIST_FILES= bin/libtree \ + share/man/man1/libtree.1.gz + +.include <bsd.port.mk> diff --git a/sysutils/libtree/distinfo b/sysutils/libtree/distinfo new file mode 100644 index 000000000000..46b01cef1f6f --- /dev/null +++ b/sysutils/libtree/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1645792807 +SHA256 (haampie-libtree-v3.0.3_GH0.tar.gz) = 7e4589b617775cb3a2b4b8fe03f80b81e43ef16046d680f1517ce52d7be9893f +SIZE (haampie-libtree-v3.0.3_GH0.tar.gz) = 79369 diff --git a/sysutils/libtree/files/patch-libtree.c b/sysutils/libtree/files/patch-libtree.c new file mode 100644 index 000000000000..f34c23cf23d7 --- /dev/null +++ b/sysutils/libtree/files/patch-libtree.c @@ -0,0 +1,11 @@ +--- libtree.c.orig 2022-02-22 22:39:24 UTC ++++ libtree.c +@@ -1514,7 +1514,7 @@ static void parse_ld_library_path(struct libtree_state + static void set_default_paths(struct libtree_state_t *s) { + s->default_paths_offset = s->string_table.n; + // TODO: how to retrieve this list properly at runtime? +- string_table_store(&s->string_table, "/lib:/lib64:/usr/lib:/usr/lib64"); ++ string_table_store(&s->string_table, "/lib:/usr/lib:/usr/lib/compat:/usr/local/lib"); + } + + static void libtree_state_init(struct libtree_state_t *s) { diff --git a/sysutils/libtree/pkg-descr b/sysutils/libtree/pkg-descr new file mode 100644 index 000000000000..79a8ff044c62 --- /dev/null +++ b/sysutils/libtree/pkg-descr @@ -0,0 +1,4 @@ +Ldd as a tree with an option to bundle dependencies into a single +folder. + +WWW: https://github.com/haampie/libtree |