[Midnightbsd-cvs] mports [21562] trunk/sysutils: add consolehm

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat Aug 6 16:53:41 EDT 2016


Revision: 21562
          http://svnweb.midnightbsd.org/mports/?rev=21562
Author:   laffer1
Date:     2016-08-06 16:53:40 -0400 (Sat, 06 Aug 2016)
Log Message:
-----------
add consolehm

Modified Paths:
--------------
    trunk/sysutils/Makefile

Added Paths:
-----------
    trunk/sysutils/consolehm/
    trunk/sysutils/consolehm/Makefile
    trunk/sysutils/consolehm/distinfo
    trunk/sysutils/consolehm/files/
    trunk/sysutils/consolehm/files/patch-chm.c
    trunk/sysutils/consolehm/files/patch-chm.h
    trunk/sysutils/consolehm/files/patch-configure
    trunk/sysutils/consolehm/files/patch-configure.in
    trunk/sysutils/consolehm/pkg-descr

Modified: trunk/sysutils/Makefile
===================================================================
--- trunk/sysutils/Makefile	2016-08-06 19:30:23 UTC (rev 21561)
+++ trunk/sysutils/Makefile	2016-08-06 20:53:40 UTC (rev 21562)
@@ -20,6 +20,7 @@
 SUBDIR += cdrtools
 SUBDIR += ciso-maker
 SUBDIR += consolekit
+SUBDIR += consolehm
 SUBDIR += coreutils
 SUBDIR += devcpu-data
 SUBDIR += dirdiff

Added: trunk/sysutils/consolehm/Makefile
===================================================================
--- trunk/sysutils/consolehm/Makefile	                        (rev 0)
+++ trunk/sysutils/consolehm/Makefile	2016-08-06 20:53:40 UTC (rev 21562)
@@ -0,0 +1,22 @@
+# Created by: Mike Muir <mmuir at es.co.nz>
+# $FreeBSD: head/sysutils/consolehm/Makefile 393892 2015-08-10 19:28:57Z amdmi3 $
+# $MidnightBSD$
+
+PORTNAME=	consolehm
+PORTVERSION=	1.31
+PORTREVISION=	1
+CATEGORIES=	sysutils
+MASTER_SITES=	FREEBSD_LOCAL/fenner
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	Console based hardware monitor for FreeBSD
+
+LICENSE=	bsd2
+
+USES=		uidfix
+GNU_CONFIGURE=	yes
+WRKSRC=		${WRKDIR}/consolehm/consolehm
+
+PLIST_FILES=	bin/chm man/man8/chm.8.gz
+
+.include <bsd.port.mk>


Property changes on: trunk/sysutils/consolehm/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/consolehm/distinfo
===================================================================
--- trunk/sysutils/consolehm/distinfo	                        (rev 0)
+++ trunk/sysutils/consolehm/distinfo	2016-08-06 20:53:40 UTC (rev 21562)
@@ -0,0 +1,2 @@
+SHA256 (consolehm-1.31.tar.gz) = 121bdc1f50f06e7a751bf1aee9d3d7d36415b234a524af6b6f626dcf5b9d5ef6
+SIZE (consolehm-1.31.tar.gz) = 21615


Property changes on: trunk/sysutils/consolehm/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/consolehm/files/patch-chm.c
===================================================================
--- trunk/sysutils/consolehm/files/patch-chm.c	                        (rev 0)
+++ trunk/sysutils/consolehm/files/patch-chm.c	2016-08-06 20:53:40 UTC (rev 21562)
@@ -0,0 +1,59 @@
+--- chm.c.orig	2000-12-23 07:51:45.000000000 +0100
++++ chm.c	2015-05-01 22:23:03.577465000 +0200
+@@ -25,6 +25,7 @@
+  *
+  */
+ 
++#include <osreldate.h>
+ #include "chm.h"
+ 
+ static int io_file;
+@@ -165,6 +165,7 @@
+ 			printf("Delay: %d microseconds. \n\n",delay);
+ 			break;
+ 		default:
++			break;
+ 	}
+ 	
+ 	file_handle = OpenIO();
+@@ -279,7 +280,12 @@
+ 		u_char smb_return;
+ 		struct smbcmd cmd;
+ 		cmd.slave=0x5a;
++#if (__FreeBSD_version >= 1100071)
++		cmd.rbuf = &smb_return; 
++		cmd.rcount = 1;
++#else
+ 		cmd.data.byte_ptr=&smb_return;
++#endif
+ 		if((open_smb=open("/dev/smb0",000))<0){
+ 			fprintf(stderr, "Failed to open /dev/smb0.\n");
+ 			exit (-1);
+@@ -315,7 +321,12 @@
+ 				u_char smb_return;
+ 				struct smbcmd cmd;
+ 				cmd.slave=0x5a;
++#if (__FreeBSD_version >= 1100071)
++				cmd.rbuf = &smb_return; 
++				cmd.rcount = 1;
++#else
+ 				cmd.data.byte_ptr=&smb_return;
++#endif
+                                 cmd.cmd=addr;
+                                 if(ioctl(open_smb,SMB_READB,&cmd)==-1){
+                                         perror("IOCTL");
+@@ -342,9 +353,13 @@
+ 		u_char smb_return;
+ 		struct smbcmd cmd;
+ 		cmd.slave=0x5a;
++#if (__FreeBSD_version >= 1100071)
++		cmd.wdata.byte = value;
++#else
+ 		cmd.data.byte_ptr=&smb_return;
+-		cmd.cmd=addr;
+ 		cmd.data.byte=value;
++#endif
++		cmd.cmd=addr;
+ 		if(ioctl(open_smb,SMB_WRITEB,&cmd)==-1){
+ 			perror("IOCTL");
+ 			return -1;


Property changes on: trunk/sysutils/consolehm/files/patch-chm.c
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/consolehm/files/patch-chm.h
===================================================================
--- trunk/sysutils/consolehm/files/patch-chm.h	                        (rev 0)
+++ trunk/sysutils/consolehm/files/patch-chm.h	2016-08-06 20:53:40 UTC (rev 21562)
@@ -0,0 +1,11 @@
+--- chm.h.orig	Wed May 31 19:42:57 2000
++++ chm.h	Mon Aug  1 04:41:00 2005
+@@ -19,7 +19,7 @@
+ #include <machine/cpufunc.h>
+ 
+ #ifdef HAVE_SMBUS
+-        #include <machine/smb.h>
++        #include <dev/smbus/smb.h>
+         int SMBUS = 1;
+ #else
+         int SMBUS = 0;


Property changes on: trunk/sysutils/consolehm/files/patch-chm.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/consolehm/files/patch-configure
===================================================================
--- trunk/sysutils/consolehm/files/patch-configure	                        (rev 0)
+++ trunk/sysutils/consolehm/files/patch-configure	2016-08-06 20:53:40 UTC (rev 21562)
@@ -0,0 +1,11 @@
+--- configure.orig	Fri Dec 22 22:50:52 2000
++++ configure	Mon Aug  1 04:41:04 2005
+@@ -1096,7 +1096,7 @@
+ fi
+ done
+ 
+-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


Property changes on: trunk/sysutils/consolehm/files/patch-configure
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/consolehm/files/patch-configure.in
===================================================================
--- trunk/sysutils/consolehm/files/patch-configure.in	                        (rev 0)
+++ trunk/sysutils/consolehm/files/patch-configure.in	2016-08-06 20:53:40 UTC (rev 21562)
@@ -0,0 +1,11 @@
+--- configure.in.orig	Sat Oct 16 22:26:10 1999
++++ configure.in	Mon Aug  1 04:41:12 2005
+@@ -12,7 +12,7 @@
+ dnl Checks for header files.
+ AC_HEADER_STDC
+ AC_CHECK_HEADERS(fcntl.h sys/ioctl.h sys/time.h unistd.h stdlib.h stdio.h string.h)
+-AC_CHECK_HEADERS(machine/smb.h,[AC_DEFINE(HAVE_SMBUS)])
++AC_CHECK_HEADERS(dev/smbus/smb.h,[AC_DEFINE(HAVE_SMBUS)])
+ dnl Checks for typedefs, structures, and compiler characteristics.
+ 
+ dnl Checks for library functions.


Property changes on: trunk/sysutils/consolehm/files/patch-configure.in
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/consolehm/pkg-descr
===================================================================
--- trunk/sysutils/consolehm/pkg-descr	                        (rev 0)
+++ trunk/sysutils/consolehm/pkg-descr	2016-08-06 20:53:40 UTC (rev 21562)
@@ -0,0 +1,3 @@
+ConsoleHM uses the SMBus Driver for PIIX4 provided by Takanori Watanabe to 
+gather information from hardware sensors to provide motherboard temperature, fan
+speeds and voltage readings on the console.


Property changes on: trunk/sysutils/consolehm/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list