diff options
Diffstat (limited to 'sysutils/wmhm')
| -rw-r--r-- | sysutils/wmhm/Makefile | 44 | ||||
| -rw-r--r-- | sysutils/wmhm/distinfo | 2 | ||||
| -rw-r--r-- | sysutils/wmhm/files/patch-aa | 11 | ||||
| -rw-r--r-- | sysutils/wmhm/files/patch-ab | 11 | ||||
| -rw-r--r-- | sysutils/wmhm/files/patch-ac | 21 | ||||
| -rw-r--r-- | sysutils/wmhm/files/patch-ad | 11 | ||||
| -rw-r--r-- | sysutils/wmhm/files/patch-warned | 126 | ||||
| -rw-r--r-- | sysutils/wmhm/pkg-descr | 6 |
8 files changed, 0 insertions, 232 deletions
diff --git a/sysutils/wmhm/Makefile b/sysutils/wmhm/Makefile deleted file mode 100644 index 514b20543979..000000000000 --- a/sysutils/wmhm/Makefile +++ /dev/null @@ -1,44 +0,0 @@ -# New ports collection makefile for: wmhm -# Date created: 21 September 1999 -# Whom: Mike Muir <mmuir@es.co.nz> -# -# $FreeBSD$ -# - -PORTNAME= wmhm -PORTVERSION= 1.46 -PORTREVISION= 3 -CATEGORIES= sysutils windowmaker -MASTER_SITES= ${MASTER_SITE_LOCAL} -MASTER_SITE_SUBDIR= fenner - -MAINTAINER= ports@FreeBSD.org -COMMENT= WindowMaker dockable hardware monitor for FreeBSD - -DEPRECATED= Upstream disapear and distfile is no more available -EXPIRATION_DATE= 2011-05-01 - -WRKSRC= ${WRKDIR}/wmhm/wmhm - -GNU_CONFIGURE= yes -MAN8= wmhm.8 -MANCOMPRESSED= yes -PLIST_FILES= bin/wmhm -USE_XORG= xpm -ONLY_FOR_ARCHS= i386 amd64 -ONLY_FOR_ARCHS_REASON= "requires speaker(4)" -ALL_TARGET= -j`${SYSCTL} -n hw.ncpu` - -CONFIGURE_ARGS+=--with-xpm-includes=${LOCALBASE}/include \ - --with-xpm-library=${LOCALBASE}/lib - -.include <bsd.port.pre.mk> - -.if (${OSVERSION} < 601000) && (${ARCH} == "amd64") -IGNORE= 5.x does not support speaker(4) -.endif - -post-install: - ${STRIP_CMD} ${PREFIX}/bin/wmhm - -.include <bsd.port.post.mk> diff --git a/sysutils/wmhm/distinfo b/sysutils/wmhm/distinfo deleted file mode 100644 index cd71e03ed60d..000000000000 --- a/sysutils/wmhm/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (wmhm-1.46.tar.gz) = 4652dfdad6e9b97040d1196c230972a76b9c5516be416b9f7e82a9e8a3d19ef8 -SIZE (wmhm-1.46.tar.gz) = 38695 diff --git a/sysutils/wmhm/files/patch-aa b/sysutils/wmhm/files/patch-aa deleted file mode 100644 index aef5bfc1f3c4..000000000000 --- a/sysutils/wmhm/files/patch-aa +++ /dev/null @@ -1,11 +0,0 @@ ---- configure.orig Sun Jul 22 03:00:38 2001 -+++ configure Mon Aug 1 14:51:09 2005 -@@ -1023,7 +1023,7 @@ - - fi - --for ac_hdr in machine/smb.h -+for ac_hdr in dev/smbus/smb.h - do - ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` - echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 diff --git a/sysutils/wmhm/files/patch-ab b/sysutils/wmhm/files/patch-ab deleted file mode 100644 index b56a7697cff7..000000000000 --- a/sysutils/wmhm/files/patch-ab +++ /dev/null @@ -1,11 +0,0 @@ ---- configure.in.orig Sun Jul 22 03:55:06 2001 -+++ configure.in Mon Aug 1 14:51:13 2005 -@@ -10,7 +10,7 @@ - AC_PROG_INSTALL - - AC_HEADER_STDC --AC_CHECK_HEADERS(machine/smb.h,[AC_DEFINE(HAVE_SMBUS)]) -+AC_CHECK_HEADERS(dev/smbus/smb.h,[AC_DEFINE(HAVE_SMBUS)]) - - AC_PATH_X - VT_FIND_LIBXPM diff --git a/sysutils/wmhm/files/patch-ac b/sysutils/wmhm/files/patch-ac deleted file mode 100644 index c7f2b816ee52..000000000000 --- a/sysutils/wmhm/files/patch-ac +++ /dev/null @@ -1,21 +0,0 @@ ---- operations.c.orig Sun Jul 22 07:00:55 2001 -+++ operations.c Sat Mar 24 14:29:26 2007 -@@ -39,12 +39,16 @@ - #include <unistd.h> - #include <math.h> - #include <machine/cpufunc.h> -+#include <osreldate.h> -+#if __FreeBSD_version >= 601000 -+#include <dev/speaker/speaker.h> -+#else - #include <machine/speaker.h> -+#endif - - #ifdef HAVE_SMBUS --#include <machine/smb.h> -+#include <dev/smbus/smb.h> - #endif --#include "machine/speaker.h" - - #include "operations.h" - diff --git a/sysutils/wmhm/files/patch-ad b/sysutils/wmhm/files/patch-ad deleted file mode 100644 index 861ae136b604..000000000000 --- a/sysutils/wmhm/files/patch-ad +++ /dev/null @@ -1,11 +0,0 @@ ---- wmhm.c.orig Sun Jul 22 06:04:31 2001 -+++ wmhm.c Mon Aug 1 14:51:21 2005 -@@ -50,7 +50,7 @@ - #include <machine/cpufunc.h> - - #ifdef HAVE_SMBUS --#include <machine/smb.h> -+#include <dev/smbus/smb.h> - int SMBUS = 1; - #else - int SMBUS = 0; diff --git a/sysutils/wmhm/files/patch-warned b/sysutils/wmhm/files/patch-warned deleted file mode 100644 index 0f6d89f562ec..000000000000 --- a/sysutils/wmhm/files/patch-warned +++ /dev/null @@ -1,126 +0,0 @@ ---- operations.h 2001-07-22 01:01:02.000000000 -0400 -+++ operations.h 2008-01-06 12:08:15.000000000 -0500 -@@ -7,3 +7,3 @@ - int ReadByte(u_char *return_value, int addr); - int WriteByte(int addr, int value); --int PlaySpeaker(char *tune_array); -+int PlaySpeaker(const char *tune_array); ---- operations.c 2001-07-22 01:00:55.000000000 -0400 -+++ operations.c 2008-01-06 12:07:11.000000000 -0500 -@@ -35,6 +35,8 @@ - #include "config.h" - -+#include <errno.h> - #include <fcntl.h> - #include <stdio.h> -+#include <sysexits.h> - #include <unistd.h> - #include <math.h> -@@ -60,12 +62,14 @@ - - int --PlaySpeaker(char *tune_array) -+PlaySpeaker(const char *tune_array) - { - int i; - int open_spkr; -+ static int warned; - if ((open_spkr=open("/dev/speaker", O_WRONLY)) < 0) { -- fprintf(stderr, "Failed to open /dev/speaker for writing.\n" -- "No Permission?\n" -- ); -+ if (errno != warned) { -+ warn("Failed to open /dev/speaker for writing"); -+ warned = errno; -+ } - return(1); - } -@@ -83,6 +87,10 @@ - - if (ioctl(open_spkr, SPKRTUNE, tone_array) == -1) { -- perror("ioctl"); -- exit(-1); -+ if (errno != warned) { -+ warn("Could not play a tune on spkr"); -+ warned = errno; -+ } -+ close(open_spkr); -+ return(2); - } - -@@ -102,10 +110,6 @@ - cmd.data.byte_ptr=&smb_return; - if ((open_smb=open("/dev/smb0", 000)) < 0) { -- fprintf(stderr, "Failed to open /dev/smb0.\nPossible reasons:\n" -- "- Your kernel does not support SMBUS.\n" -- "- You are not running wmhm suid root.\n" -- "- WMHM is already running.\n" -- ); -- exit(1); -+ err(errno == EACCES ? EX_NOPERM : EX_UNAVAILABLE, -+ "Failed to open /dev/smb0."); - } - cmd.cmd=0x47; -@@ -116,21 +120,13 @@ - return(0); - } -- else { -+ else -+#endif -+ { - if ((io_file=open("/dev/io", 000)) < 0) { -- fprintf(stderr, "Failed to open /dev/io.\n" -- "Possible reasons:\n" -- "- You are not running wmhm suid root.\n" -- "- WMHM is already running\n"); -- exit (-1); -- } -+ err(errno == EACCES ? EX_NOPERM : EX_UNAVAILABLE, -+ "Failed to open /dev/io."); -+ } - return(0); - } --#else -- if((io_file=open("/dev/io",000))<0) { -- fprintf(stderr, "Failed to open /dev/io.\n"); -- exit (1); -- } -- return(0); --#endif - } - -@@ -151,14 +147,11 @@ - return(0); - } -- else { -+ else -+#endif -+ { - outb(WBIO1,addr); - *return_value = inb(WBIO2); - return(0); - } --#else -- outb(WBIO1,addr); -- *return_value = inb(WBIO2); -- return(0); --#endif - } - -@@ -178,13 +171,10 @@ - } - } -- else { -+ else -+#endif -+ { - outb(WBIO1,addr); - outb(WBIO2,value); - } --#else -- outb(WBIO1,addr); -- outb(WBIO2,value); --#endif - return(0); - } -- diff --git a/sysutils/wmhm/pkg-descr b/sysutils/wmhm/pkg-descr deleted file mode 100644 index eef2ea8f82c7..000000000000 --- a/sysutils/wmhm/pkg-descr +++ /dev/null @@ -1,6 +0,0 @@ -wmhm uses /dev/io or the SMBus Driver for PIIX4 provided by Takanori Watanabe -to gather information from hardware sensors and provide motherboard temperature, -cpu temperature(s), fan speeds, voltages and a voltmeter in a nice looking -WindowMaker dock app. - -WWW: http://www.muir-corp.com/system/wmhm/ |
