summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2020-11-21 13:01:22 +0000
committernia <nia@pkgsrc.org>2020-11-21 13:01:22 +0000
commitb0705268b6093b65458876651d42a172e069e4f3 (patch)
tree6fa104114ba888eea3b87c15a1f899bce9af1c22
parent5e6afc0c4d18a677eea5202e3a00a091d9372f2f (diff)
downloadpkgsrc-b0705268b6093b65458876651d42a172e069e4f3.tar.gz
Remove torsmo, older version of sysutils/conky that seems to no longer work
-rw-r--r--sysutils/Makefile3
-rw-r--r--sysutils/torsmo/DESCR20
-rw-r--r--sysutils/torsmo/Makefile52
-rw-r--r--sysutils/torsmo/PLIST6
-rw-r--r--sysutils/torsmo/distinfo11
-rw-r--r--sysutils/torsmo/patches/patch-aa43
-rw-r--r--sysutils/torsmo/patches/patch-ab166
-rw-r--r--sysutils/torsmo/patches/patch-ac19
-rw-r--r--sysutils/torsmo/patches/patch-ad88
-rw-r--r--sysutils/torsmo/patches/patch-ae69
10 files changed, 1 insertions, 476 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 78f538db8ed..6bf7e2d3a65 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.917 2020/11/19 20:00:46 schmonz Exp $
+# $NetBSD: Makefile,v 1.918 2020/11/21 13:01:22 nia Exp $
#
COMMENT= System utilities
@@ -652,7 +652,6 @@ SUBDIR+= tkdesk
SUBDIR+= tload
SUBDIR+= tob
SUBDIR+= top
-SUBDIR+= torsmo
SUBDIR+= toshutils
SUBDIR+= tpb
SUBDIR+= tphdisk
diff --git a/sysutils/torsmo/DESCR b/sysutils/torsmo/DESCR
deleted file mode 100644
index f5eaa9dbb76..00000000000
--- a/sysutils/torsmo/DESCR
+++ /dev/null
@@ -1,20 +0,0 @@
-Torsmo is a system monitor that sits in the corner of your desktop. It's
-very simple, customizable and it renders only text on the desktop (and
-percentagebars if you want it to ;) and the only lib it uses is Xlib.
-Torsmo can show various information about your system and its peripherals,
-including:
-
-* Kernel version
-* Uptime
-* System time
-* Network interface information
-* Memory and swap usage
-* Hostname
-* Machine, i686 for example
-* System name, Linux for example
-* Temperatures from i2c-sensors
-* Temperature from ACPI
-* Battery capacity from ACPI/APM
-* Number of processes running or sleeping
-* Local mails (unread and all)
-* Filesystem stats
diff --git a/sysutils/torsmo/Makefile b/sysutils/torsmo/Makefile
deleted file mode 100644
index 1a29766381b..00000000000
--- a/sysutils/torsmo/Makefile
+++ /dev/null
@@ -1,52 +0,0 @@
-# $NetBSD: Makefile,v 1.17 2020/08/17 20:20:09 leot Exp $
-
-DISTNAME= torsmo-0.18
-PKGREVISION= 4
-CATEGORIES= sysutils
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=torsmo/}
-
-MAINTAINER= pkgsrc-users@NetBSD.org
-HOMEPAGE= http://torsmo.sourceforge.net/
-COMMENT= Tyopoytaorvelo System Monitor
-
-BROKEN_ON_PLATFORM= Darwin-*-*
-
-USE_TOOLS+= pkg-config
-GNU_CONFIGURE= yes
-CONFIGURE_ARGS+= --enable-xft
-CONFIGURE_ENV+= XFTCONFIG=pkg-config
-
-EGDIR= ${PREFIX}/share/examples/torsmo
-DOCDIR= ${PREFIX}/share/doc/torsmo
-
-INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/examples/torsmo
-INSTALLATION_DIRS+= share/doc/torsmo
-
-CHECK_PORTABILITY_SKIP+= configure.in
-
-.include "../../mk/bsd.prefs.mk"
-
-.if ${X11_TYPE} == "modular"
-CONFIGURE_ARGS+= --x-includes=${PREFIX}/include
-CONFIGURE_ARGS+= --x-libraries=${PREFIX}/lib
-.endif
-
-.if (${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly" || ${OPSYS} == "FreeBSD" \
- || ${OPSYS} == "OpenBSD" || ${OPSYS} == "Linux")
-SPECIAL_PERMS+= bin/torsmo ${REAL_ROOT_USER} kmem 2555
-.endif
-
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/torsmo ${DESTDIR}${PREFIX}/bin/
- ${INSTALL_MAN} ${WRKSRC}/torsmo.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/
- ${INSTALL_DATA} ${WRKSRC}/torsmorc.sample ${DESTDIR}${EGDIR}/
- ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${DOCDIR}/
- ${INSTALL_DATA} ${WRKSRC}/readme.html ${DESTDIR}${DOCDIR}/
-
-BUILDLINK_DEPMETHOD.libXt?= build
-
-.include "../../x11/libX11/buildlink3.mk"
-.include "../../x11/libXext/buildlink3.mk"
-.include "../../x11/libXt/buildlink3.mk"
-.include "../../x11/libXft/buildlink3.mk"
-.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/torsmo/PLIST b/sysutils/torsmo/PLIST
deleted file mode 100644
index 2278a5a28bc..00000000000
--- a/sysutils/torsmo/PLIST
+++ /dev/null
@@ -1,6 +0,0 @@
-@comment $NetBSD: PLIST,v 1.2 2009/06/14 18:16:15 joerg Exp $
-bin/torsmo
-man/man1/torsmo.1
-share/doc/torsmo/README
-share/doc/torsmo/readme.html
-share/examples/torsmo/torsmorc.sample
diff --git a/sysutils/torsmo/distinfo b/sysutils/torsmo/distinfo
deleted file mode 100644
index 4440574caec..00000000000
--- a/sysutils/torsmo/distinfo
+++ /dev/null
@@ -1,11 +0,0 @@
-$NetBSD: distinfo,v 1.8 2019/10/27 19:31:40 maya Exp $
-
-SHA1 (torsmo-0.18.tar.gz) = 01e6737b3971daa3a7c9cb6dd1961f61bc39bdae
-RMD160 (torsmo-0.18.tar.gz) = f1d8b3c4679155596569f9116970e7ba8a01eb6e
-SHA512 (torsmo-0.18.tar.gz) = 822a7a01bb685c6dbad5520d3c6bab4b2854647054de068952852dbf907f356d27718050ca1b0bc0c83b09112b4ae52c884aa75c6b1753a168f3072d0a91e854
-Size (torsmo-0.18.tar.gz) = 84020 bytes
-SHA1 (patch-aa) = 8c515d3b0925aeaaea928ad8abd89ab5ccbfceab
-SHA1 (patch-ab) = 858d0f4d4a694e667465ed6519f034c07f13e535
-SHA1 (patch-ac) = 5b342d09ff0fcc3982aa855e2cc660823ed53e11
-SHA1 (patch-ad) = 977da3272ee309b41d0dc30ea6b2d7f1a5e2a3c7
-SHA1 (patch-ae) = 5888d6cf538a9d95006ab1d2cdd01eabfafa10ed
diff --git a/sysutils/torsmo/patches/patch-aa b/sysutils/torsmo/patches/patch-aa
deleted file mode 100644
index b12fc280766..00000000000
--- a/sysutils/torsmo/patches/patch-aa
+++ /dev/null
@@ -1,43 +0,0 @@
-$NetBSD: patch-aa,v 1.2 2007/12/02 12:55:11 wiz Exp $
-
---- fs.c.orig 2004-08-25 18:24:24.000000000 +0200
-+++ fs.c
-@@ -19,6 +19,11 @@
- #include <sys/mount.h>
- #endif
-
-+#if defined (__NetBSD__) && (__NetBSD_Version__ >= 299000900)
-+#include <sys/statvfs.h>
-+#define STATVFS 1
-+#endif
-+
- /* TODO: benchmark which is faster, fstatvfs() or pre-opened fd and
- * statvfs() (fstatvfs() would handle mounts I think...) */
-
-@@ -27,16 +32,25 @@ struct fs_stat *fs_stats = fs_stats_;
-
- void update_fs_stats() {
- unsigned int i;
-+#ifndef STATVFS
- struct statfs s;
-+#else
-+ struct statvfs s;
-+#endif
- for (i=0; i<16; i++) {
- if (fs_stats[i].fd <= 0)
- break;
-
-+#ifndef STATVFS
- fstatfs(fs_stats[i].fd, &s);
--
- fs_stats[i].size = (long long) s.f_blocks * s.f_bsize;
- /* bfree (root) or bavail (non-roots) ? */
- fs_stats[i].avail = (long long) s.f_bavail * s.f_bsize;
-+#else
-+ fstatvfs(fs_stats[i].fd, &s);
-+ fs_stats[i].size = (int64_t) s.f_blocks * 1024;
-+ fs_stats[i].avail = (int64_t) s.f_bavail * 1024;
-+#endif
- }
- }
-
diff --git a/sysutils/torsmo/patches/patch-ab b/sysutils/torsmo/patches/patch-ab
deleted file mode 100644
index ac68b118fdb..00000000000
--- a/sysutils/torsmo/patches/patch-ab
+++ /dev/null
@@ -1,166 +0,0 @@
-$NetBSD: patch-ab,v 1.2 2017/06/23 19:02:07 kamil Exp $
-
---- netbsd.c.orig 2004-08-25 17:55:57.000000000 +0000
-+++ netbsd.c
-@@ -9,6 +9,7 @@
- #include <err.h>
- #include <limits.h>
- #include <paths.h>
-+#include <ctype.h>
-
- #include <kvm.h>
- #include <nlist.h>
-@@ -18,7 +19,6 @@
- #include <sys/sysctl.h>
- #include <sys/types.h>
- #include <sys/time.h>
--#include <sys/user.h>
- #include <sys/socket.h>
- #include <sys/swap.h>
- #include <sys/sched.h>
-@@ -221,6 +221,33 @@ void update_net_stats()
- }
- }
-
-+static char *freq = NULL;
-+char * get_freq()
-+{
-+ size_t val_len;
-+ u_int32_t val;
-+
-+ if (freq == NULL) {
-+ freq = malloc(10);
-+ if (freq == NULL) {
-+ return NULL;
-+ } else {
-+ freq[0] = '\0';
-+ }
-+ }
-+
-+ /* Laptops with enhanced speed step. */
-+ if (sysctlbyname("machdep.est.frequency.current",
-+ NULL, &val_len, NULL, 0) == 0) {
-+ sysctlbyname("machdep.est.frequency.current", &val, &val_len, NULL, 0);
-+ sprintf(freq, "%d", val);
-+ } else {
-+ /* XXX: Parse out the clockspeed from machdep.cpu_brand */
-+ }
-+
-+ return freq;
-+}
-+
- void update_total_processes()
- {
- /* It's easier to use kvm here than sysctl */
-@@ -302,6 +329,7 @@ void update_cpu_usage()
- }
-
- double get_i2c_info(int fd, int div) {
-+ (void) fd; (void) div;
- return -1;
- }
-
-@@ -315,27 +343,98 @@ void update_load_average() {
- }
-
- double get_acpi_temperature(int fd) {
-+ (void) fd;
- return -1;
- }
-
--void get_battery_stuff(char *buf, unsigned int n, const char *bat) {
--}
--
- int open_i2c_sensor(const char *dev, const char *type, int n, int *div)
- {
-+ (void) dev; (void) type; (void) n; (void) div;
- return -1;
- }
-
- int open_acpi_temperature(const char *name) {
-+ (void) name;
- return -1;
- }
-
-+static char acpi_ac_str[64] = "N/A";
- char * get_acpi_ac_adapter(void)
- {
-- return "N/A";
-+ /* get_battery_stuff() actually populates this for us. */
-+ return acpi_ac_str;
-+}
-+
-+static char last_battery_str[64];
-+static double last_battery_time;
-+
-+void get_battery_stuff(char *buf, unsigned int n, const char *bat) {
-+ FILE *f;
-+ char *foo;
-+ char b[4096];
-+ char b_name[32];
-+ int bat_num;
-+ int found_acpibat = 0;
-+ int found_acpiacad = 0;
-+ float bat_charge = 0.0;
-+
-+ /* Don't update battery too often. */
-+ if (current_update_time - last_battery_time < 29.5) {
-+ snprintf(buf, n, "%s", last_battery_str);
-+ return;
-+ }
-+ last_battery_time = current_update_time;
-+
-+ sscanf(bat, "BAT%d", &bat_num);
-+ sprintf(b_name, "acpibat%d", bat_num);
-+
-+ /*
-+ * Using the envsys API is like pulling teeth without anesthetic.
-+ * so just popen envstat and parse the output instead.
-+ */
-+ f = popen("/usr/sbin/envstat -r", "r");
-+ if (f != NULL) {
-+ while(!feof(f)) {
-+ fgets(b, 4096, f);
-+
-+ /* AC adapter state. */
-+ if (strstr(b, "acpiacad0")) {
-+ if (strstr(b, "disconnected")) {
-+ sprintf(acpi_ac_str, "disconnected");
-+ } else {
-+ sprintf(acpi_ac_str, "connected");
-+ }
-+ found_acpiacad = 1;
-+ }
-+
-+ if (bat && strstr(b, b_name)) {
-+ if (strstr(b, "charge:")) {
-+ foo = strstr(b, "%)");
-+ while (*foo != ' ' && *foo != '(') {
-+ foo--;
-+ }
-+ foo = foo + 1;
-+ sscanf(foo, "%f", &bat_charge);
-+ found_acpibat = 1;
-+ }
-+ }
-+ }
-+ pclose(f);
-+ }
-+
-+ if (found_acpibat) {
-+ snprintf(last_battery_str, 64, "%.2f%%", bat_charge);
-+ snprintf(buf, n, "%s", last_battery_str);
-+ } else {
-+ /* XXX: If that failed, try to use APM. */
-+ }
-+
-+ if (!found_acpiacad) {
-+ sprintf(acpi_ac_str, "N/A");
-+ }
-+
- }
-
- char* get_acpi_fan() {
- return "N/A";
- }
--
diff --git a/sysutils/torsmo/patches/patch-ac b/sysutils/torsmo/patches/patch-ac
deleted file mode 100644
index 10659768142..00000000000
--- a/sysutils/torsmo/patches/patch-ac
+++ /dev/null
@@ -1,19 +0,0 @@
-$NetBSD: patch-ac,v 1.1.1.1 2006/03/29 21:42:55 ghen Exp $
-
---- torsmo.c.orig 2004-12-21 23:14:46.000000000 +0100
-+++ torsmo.c
-@@ -888,12 +888,14 @@ static void generate_text() {
- OBJ(freq) {
- snprintf(p, n, "%s", get_freq());
- }
-+#if defined(__linux__)
- OBJ(adt746xcpu) {
- snprintf(p, n, "%s", get_adt746x_cpu());
- }
- OBJ(adt746xfan) {
- snprintf(p, n, "%s", get_adt746x_fan());
- }
-+#endif
- OBJ(acpifan) {
- snprintf(p, n, "%s", get_acpi_fan());
- }
diff --git a/sysutils/torsmo/patches/patch-ad b/sysutils/torsmo/patches/patch-ad
deleted file mode 100644
index 3c07c358788..00000000000
--- a/sysutils/torsmo/patches/patch-ad
+++ /dev/null
@@ -1,88 +0,0 @@
-$NetBSD: patch-ad,v 1.3 2019/10/27 19:31:40 maya Exp $
-
-Add dragonflybsd.
-fix shell portability issues (= vs. ==)
-switch xft-config to pkg-config.
-
---- configure.orig 2004-12-21 21:57:05.000000000 +0000
-+++ configure
-@@ -795,11 +795,15 @@ fi
-
- uname=`uname`
-
-+if test "$uname" = "DragonFly"; then
-+ LIBS="$LIBS -lkinfo"
-+fi
-+
- case $uname in
- Linux*)
- WANT_SYSINFO=yes
- ;;
-- FreeBSD*)
-+ FreeBSD*|DragonFly*)
- WANT_KVM=yes
- ;;
- NetBSD*)
-@@ -839,7 +843,7 @@ else
- fi
-
-
--if test x$uname = xFreeBSD; then
-+if test x$uname = xFreeBSD || test x$uname = xDragonFly; then
- BUILD_FREEBSD_TRUE=
- BUILD_FREEBSD_FALSE='#'
- else
-@@ -924,14 +928,14 @@ fi
-
-
-
--if test x$want_seti == xyes; then
-+if test x$want_seti = xyes; then
- BUILD_SETI_TRUE=
- BUILD_SETI_FALSE='#'
- else
- BUILD_SETI_TRUE='#'
- BUILD_SETI_FALSE=
- fi
--if test x$want_seti == xyes; then
-+if test x$want_seti = xyes; then
- cat >> confdefs.h <<\EOF
- #define SETI 1
- EOF
-@@ -949,14 +953,14 @@ fi
-
-
-
--if test x$want_nvctrl == xyes; then
-+if test x$want_nvctrl = xyes; then
- BUILD_NVCTRL_TRUE=
- BUILD_NVCTRL_FALSE='#'
- else
- BUILD_NVCTRL_TRUE='#'
- BUILD_NVCTRL_FALSE=
- fi
--if test x$want_nvctrl == xyes; then
-+if test x$want_nvctrl = xyes; then
- cat >> confdefs.h <<\EOF
- #define NVCTRL 1
- EOF
-@@ -1643,17 +1647,13 @@ else
- echo "$ac_t""no" 1>&6
- fi
-
-- if test x$XFTCONFIG != x; then
-
- cat >> confdefs.h <<\EOF
- #define XFT 1
- EOF
-
-- CFLAGS="$CFLAGS `$XFTCONFIG --cflags`"
-- XFT_LIBS=`$XFTCONFIG --libs`
-- else
-- want_xft=no
-- fi
-+ CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xft`"
-+ XFT_LIBS=`$PKG_CONFIG --libs xft`
- fi
-
-
diff --git a/sysutils/torsmo/patches/patch-ae b/sysutils/torsmo/patches/patch-ae
deleted file mode 100644
index 43804d17229..00000000000
--- a/sysutils/torsmo/patches/patch-ae
+++ /dev/null
@@ -1,69 +0,0 @@
-$NetBSD: patch-ae,v 1.2 2010/10/31 23:38:32 wiz Exp $
-
---- freebsd.c.orig 2004-08-25 18:24:24 +0200
-+++ freebsd.c 2010-10-31 18:52:50 +0100
-@@ -13,7 +13,11 @@
- #include <sys/types.h>
- #include <sys/time.h>
- #include <sys/vmmeter.h>
-+#ifdef __DragonFly__
-+#include <kinfo.h>
-+#else
- #include <sys/dkstat.h>
-+#endif
- #include <unistd.h>
- #include <sys/user.h>
- #include <sys/socket.h>
-@@ -229,11 +233,15 @@ void update_running_processes() {
- if (kd != NULL) {
- p = kvm_getprocs(kd, KERN_PROC_ALL, 0, &n_processes);
- for (i = 0; i<n_processes; i++) {
-+#ifdef __DragonFly__
-+ if (p[i].kp_stat == LSRUN)
-+#else
- #if __FreeBSD__ < 5
- if (p[i].kp_proc.p_stat == SRUN)
- #else
- if (p[i].ki_stat == SRUN)
- #endif
-+#endif /* __DragonFly__ */
- cnt++;
- }
- } else
-@@ -251,6 +259,19 @@ long cpu_used, oldtotal, oldused;
-
- void update_cpu_usage() {
- long used, total;
-+#ifdef __DragonFly__
-+ struct kinfo_cputime cp_time;
-+
-+ if (kinfo_get_sched_cputime(&cp_time)) {
-+ fprintf(stderr, "kinfo_get_sched_cputime failed");
-+ return;
-+ }
-+ fresh.load[0] = cp_time.cp_user;
-+ fresh.load[1] = cp_time.cp_nice;
-+ fresh.load[2] = cp_time.cp_sys;
-+ fresh.load[3] = cp_time.cp_idle;
-+ fresh.load[4] = cp_time.cp_idle;
-+#else
- long cp_time[CPUSTATES];
- size_t len = sizeof(cp_time);
-
-@@ -263,6 +284,7 @@ void update_cpu_usage() {
- fresh.load[2] = cp_time[CP_SYS];
- fresh.load[3] = cp_time[CP_IDLE];
- fresh.load[4] = cp_time[CP_IDLE];
-+#endif
-
- used = fresh.load[0] + fresh.load[1] + fresh.load[2];
- total = fresh.load[0] + fresh.load[1] + fresh.load[2] + fresh.load[3];
-@@ -345,3 +367,8 @@ char* get_acpi_ac_adapter(void)
- char* get_acpi_fan() {
- return "";
- }
-+
-+char * get_freq()
-+{
-+ return "";
-+}