From f96ca69cdb8a40ef2fcba21cb0350ed71d18a035 Mon Sep 17 00:00:00 2001 From: Lars Herschke Date: Mon, 19 Feb 2024 10:23:32 +0100 Subject: [PATCH] switch to pkgng and remove reference to csup --- sysutils/sysinfo/files/patch-modules_packages | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 sysutils/sysinfo/files/patch-modules_packages diff --git a/sysutils/sysinfo/files/patch-modules_packages b/sysutils/sysinfo/files/patch-modules_packages new file mode 100644 index 000000000..da5255d3d --- /dev/null +++ b/sysutils/sysinfo/files/patch-modules_packages @@ -0,0 +1,30 @@ +--- modules/packages.orig 2009-05-21 17:13:53 UTC ++++ modules/packages +@@ -7,21 +7,21 @@ sect "Packages information"; + + sect "Packages information"; + +-NUMP=`pkg_info | wc -l | awk '{print $1}'` +-OUTD=`pkg_version -Iv | grep -c "needs updating"` ++NUMP=`pkg info | wc -l | awk '{print $1}'` ++OUTD=`pkg version -v | grep -c "needs updating"` + + echo -e "There are $NUMP packages installed in the system and $OUTD of them needs updating." + echo -e "${C_BOLD_S}Note that this number may be inaccurate, as your ports tree may be outdated too.${C_BOLD_E}\n" + + if is_verbose 1; then +- pkg_info ++ pkg info + echo + else +- info "Run pkg_info(1) to see a full list of installed packages." ++ info "Run pkg info to see a full list of installed packages." + fi + +-info "Use pkg_version(1) to inspect what packages are outdated." +-info "Use the portsnap(8) or csup(1) tool to update your ports tree." ++info "Use pkg version to inspect what packages are outdated." ++info "Use the portsnap(8) tool to update your ports tree." + + echo + -- 2.42.0