pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
evisum: Add 0.8.0
Module Name: pkgsrc-wip
Committed By: Matthew Danielson <matthewd%fastmail.us@localhost>
Pushed By: matthewd
Date: Sun May 26 06:10:53 2024 -0600
Changeset: 788e9cb49d2768dc483986b9be90b23e75f2e0ad
Added Files:
evisum/DESCR
evisum/Makefile
evisum/PLIST
evisum/TODO
evisum/distinfo
evisum/patches/patch-src_bin_system_filesystems.c
evisum/patches/patch-src_bin_system_process.c
Log Message:
evisum: Add 0.8.0
evisum is a process monitor for the enlightenment desktop environment.
Needs more work to build on NetBSD.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=788e9cb49d2768dc483986b9be90b23e75f2e0ad
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
evisum/DESCR | 7 ++++
evisum/Makefile | 18 ++++++++
evisum/PLIST | 4 ++
evisum/TODO | 1 +
evisum/distinfo | 7 ++++
evisum/patches/patch-src_bin_system_filesystems.c | 27 ++++++++++++
evisum/patches/patch-src_bin_system_process.c | 50 +++++++++++++++++++++++
7 files changed, 114 insertions(+)
diffs:
diff --git a/evisum/DESCR b/evisum/DESCR
new file mode 100644
index 0000000000..b1eab22700
--- /dev/null
+++ b/evisum/DESCR
@@ -0,0 +1,7 @@
+Evisum - System Monitor.
+
+This is a process and system monitor for Linux, OpenBSD, FreeBSD and
+DragonFlyBSD. It is server-client based and includes rudimentary tools for
+process, CPU, memory, network, storage and sensor querying. The current set of
+features aims to reach a common denominator between the three popular and
+viable Unix-like operating systems at this time: Linux, FreeBSD and OpenBSD.
diff --git a/evisum/Makefile b/evisum/Makefile
new file mode 100644
index 0000000000..b8000dfa24
--- /dev/null
+++ b/evisum/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD$
+
+DISTNAME= evisum-0.6.0
+CATEGORIES= sysutils enlightenment
+MASTER_SITES= https://download.enlightenment.org/rel/apps/evisum/
+EXTRACT_SUFX= .tar.xz
+
+MAINTAINER= matthewd%fastmail.us@localhost
+HOMEPAGE= https://download.enlightenment.org/rel/apps/evisum/
+COMMENT= System Monitor for the enlightenment desktop
+LICENSE= isc
+
+USE_PKGLOCALEDIR= yes
+USE_TOOLS= pkg-config
+
+.include "../../devel/meson/build.mk"
+.include "../../wip/efl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/evisum/PLIST b/evisum/PLIST
new file mode 100644
index 0000000000..cf8b8836f1
--- /dev/null
+++ b/evisum/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD$
+@comment TODO: to fill this file with the file listing:
+@comment TODO: 1. run "/usr/pkg/bin/bmake package"
+@comment TODO: 2. run "/usr/pkg/bin/bmake print-PLIST"
diff --git a/evisum/TODO b/evisum/TODO
new file mode 100644
index 0000000000..fddc213b45
--- /dev/null
+++ b/evisum/TODO
@@ -0,0 +1 @@
+Need to write NetBSD specific code to read list of processes.
diff --git a/evisum/distinfo b/evisum/distinfo
new file mode 100644
index 0000000000..ffafdf7084
--- /dev/null
+++ b/evisum/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+BLAKE2s (evisum-0.6.0.tar.xz) = 797601f4c7998d649b6d19f980c3479e72aac84e6cb46b79eae76a8a73713758
+SHA512 (evisum-0.6.0.tar.xz) = f9a8722a5373242a1735ddee49e6fd55772d487ba84ad4a69849011c373b01d67d167fade67f96237b68fc668bb052b10d8127945eeb14fc1c773422072bc324
+Size (evisum-0.6.0.tar.xz) = 2063396 bytes
+SHA1 (patch-src_bin_system_filesystems.c) = d0d22ef3cb8506ce65d7d7a4c715530828ed55cb
+SHA1 (patch-src_bin_system_process.c) = 1db03bb46308c7a6d5f654024d55f163c8e3b524
diff --git a/evisum/patches/patch-src_bin_system_filesystems.c b/evisum/patches/patch-src_bin_system_filesystems.c
new file mode 100644
index 0000000000..9db5698a40
--- /dev/null
+++ b/evisum/patches/patch-src_bin_system_filesystems.c
@@ -0,0 +1,27 @@
+$NetBSD$
+
+stat arguments are named differently.
+
+--- src/bin/system/filesystems.c.orig 2024-05-21 11:39:11.067056732 +0000
++++ src/bin/system/filesystems.c
+@@ -73,7 +73,11 @@ file_system_info_all_get(void)
+ }
+ fclose(f);
+ # else
++#if defined(__NetBSD__)
++ struct statvfs *mounts;
++#else
+ struct statfs *mounts;
++#endif
+ int i, count;
+
+ count = getmntinfo(&mounts, MNT_WAIT);
+@@ -82,7 +86,7 @@ file_system_info_all_get(void)
+ File_System *fs = calloc(1, sizeof(File_System));
+ fs->mount = strdup(mounts[i].f_mntonname);
+ fs->path = strdup(mounts[i].f_mntfromname);
+-#if defined(__OpenBSD__)
++#if defined(__OpenBSD__) | defined(__NetBSD__)
+ #else
+ fs->type = mounts[i].f_type;
+ #endif
diff --git a/evisum/patches/patch-src_bin_system_process.c b/evisum/patches/patch-src_bin_system_process.c
new file mode 100644
index 0000000000..6c6e84b655
--- /dev/null
+++ b/evisum/patches/patch-src_bin_system_process.c
@@ -0,0 +1,50 @@
+$NetBSD$
+
+More work needed here by writing OS specific code to list processes
+
+--- src/bin/system/process.c.orig 2024-05-21 03:11:50.326493848 +0000
++++ src/bin/system/process.c
+@@ -5,15 +5,17 @@
+ #include "ui/gettext.h"
+ #define _(STR) gettext(STR)
+
+-#if defined(__MacOS__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
++#if defined(__MacOS__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__) || defined(__NetBSD__)
+ # include <sys/types.h>
+ # include <sys/sysctl.h>
++#if !defined(__NetBSD__)
+ # include <sys/user.h>
++#endif
+ # include <sys/proc.h>
+ # include <libgen.h>
+ #endif
+
+-#if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
++#if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__) || defined(__NetBSD__)
+ # include <libgen.h>
+ # include <unistd.h>
+ # include <fcntl.h>
+@@ -82,13 +84,23 @@ _states_init(void)
+ _states['Z'] = _("zombie");
+ #else
+ _states[SIDL] = _("idle");
++#if !defined(__NetBSD__)
+ _states[SRUN] = _("running");
+ _states[SSLEEP] = _("sleeping");
++#else
++ _states[LSRUN] = _("running");
++ _states[LSSLEEP] = _("sleeping");
++#endif
+ _states[SSTOP] = _("stopped");
+ #if !defined(__MacOS__)
+ #if !defined(__OpenBSD__)
++#if !defined(__NetBSD__)
+ _states[SWAIT] = _("wait");
+ _states[SLOCK] = _("lock");
++#else
++ _states[PWAIT] = _("wait");
++ _states[PLOCK] = _("lock");
++#endif
+ _states[SZOMB] = _("zombie");
+ #endif
+ #if defined(__OpenBSD__)
Home |
Main Index |
Thread Index |
Old Index