ports/66218: Update port: sysutils/xmbmon
NAKAMURA Kazushi
kaz at kobe1995.jp
Mon May 3 19:00:48 UTC 2004
>Number: 66218
>Category: ports
>Synopsis: Update port: sysutils/xmbmon
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Mon May 03 12:00:38 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator: NAKAMURA Kazushi
>Release: FreeBSD 5.1-RELEASE i386
>Organization:
<>
>Environment:
System: FreeBSD bravo.kobe1995.jp 5.1-RELEASE FreeBSD 5.1-RELEASE #0: Thu Jun 5 02:55:42 GMT 2003 root at wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC i386
>Description:
The "xmbmon" - M/B monitor is updated from 2.03 to 2.04.
So the port for xmbmon also updating.
>How-To-Repeat:
>Fix:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# xmbmon
# xmbmon/files
# xmbmon/files/patch-aa
# xmbmon/pkg-plist
# xmbmon/pkg-descr
# xmbmon/Makefile
# xmbmon/distinfo
#
echo c - xmbmon
mkdir -p xmbmon > /dev/null 2>&1
echo c - xmbmon/files
mkdir -p xmbmon/files > /dev/null 2>&1
echo x - xmbmon/files/patch-aa
sed 's/^X//' >xmbmon/files/patch-aa << 'END-of-xmbmon/files/patch-aa'
X--- Makefile.in.orig Sun May 2 05:20:14 2004
X+++ Makefile.in Tue May 4 03:13:39 2004
X@@ -18,9 +18,9 @@
X
X DEFS=-DHAVE_CONFIG_H -Wall @HOSTDEF@
X
X-LIBDIR=/usr/X11R6/lib
X+LIBDIR=$(X11BASE)/lib
X INCDIR=.
X-XINCDIR=/usr/X11R6/include
X+XINCDIR=$(X11BASE)/include
X XLIB=-lXaw -lXmu
X EXTENSIONLIB=-lXext
X INCLUDES=-I$(INCDIR)
X@@ -29,9 +29,9 @@
X LIBS=-L$(LIBDIR) -lXaw $(XLIB) -lXt $(EXTENSIONLIB) -lX11 -lm
X
X #CC=/compat/linux/usr/bin/gcc
X-CC=@CC@
X-CFLAGS=-O3 $(INCLUDES) $(DEFS)
X-CFLAGSX=-O3 $(XINCLUDES) $(DEFS)
X+CC?=@CC@
X+CFLAGS+= $(INCLUDES) $(DEFS)
X+CFLAGSX= $(XINCLUDES) $(DEFS)
X LDFLAGS=-s
X
X LINT=lint
X@@ -40,19 +40,25 @@
X RM=rm -f
X INSTALL=install
X
X-INST_DIR=/usr/local/bin
X-INST_MANDIR=/usr/local/man/man1
X-INST_XDIR=/usr/X11R6/bin
X-INST_MANXDIR=/usr/X11R6/man/man1
X-INST_XRDIR=/usr/X11R6/lib/X11/app-defaults
X+INST_DIR=$(PREFIX)/bin
X+INST_MANDIR=$(PREFIX)/man/man1
X+INST_XDIR=$(X11BASE)/bin
X+INST_MANXDIR=$(X11BASE)/man/man1
X+INST_XRDIR=$(X11BASE)/lib/X11/app-defaults
X
X .c.o:
X $(CC) -c $(CFLAGS) $*.c
X
X MANPAGE = mbmon.1 xmbmon.1x
X-PROGRAM = mbmon xmbmon
X-
X+PROGRAM = mbmon
X TESTPROG = testpci testsmb testhwm testfan
X+DOCS= ReadMe ReadMe.jp ReadMe.tech
X+.if !defined(WITHOUT_X11)
X+DOCS+= xmbmon.resources
X+PROGRAM+= xmbmon
X+.endif
X+
X+all: $(PROGRAM) $(TESTPROG)
X
X MB_OBJ = getMB-via.o getMB-smb.o getMB-isa.o
X SMB_OBJ = smbuses.o smbus_piix4.o smbus_amd.o smbus_ali.o smbus_amd8.o
X@@ -136,11 +142,17 @@
X $(RM) Makefile config.cache config.log config.h config.status
X
X install: $(PROGRAM)
X- $(INSTALL) -o root -g wheel -m 4555 -c -p mbmon $(INST_DIR)
X- $(INSTALL) -o root -g wheel -m 4555 -c -p xmbmon $(INST_XDIR)
X+ @for i in $(PROGRAM); do \
X+ $(INSTALL) -o root -g wheel -m 4555 -c -p $$i $(INST_DIR); \
X+ done
X
X install-man: $(MANPAGE)
X $(INSTALL) -o root -g wheel -m 444 -c -p mbmon.1 $(INST_MANDIR)
X+
X+install-doc:
X+ @for f in $(DOCS); do \
X+ $(INSTALL_DATA) $$f $(DOCSDIR)/; \
X+ done
X $(INSTALL) -o root -g wheel -m 444 -c -p xmbmon.1x $(INST_MANXDIR)
X
X lint:
END-of-xmbmon/files/patch-aa
echo x - xmbmon/pkg-plist
sed 's/^X//' >xmbmon/pkg-plist << 'END-of-xmbmon/pkg-plist'
Xbin/mbmon
X%%X11_ONLY%%bin/xmbmon
X%%PORTDOCS%%%%DOCSDIR%%/ReadMe
X%%PORTDOCS%%%%DOCSDIR%%/ReadMe.jp
X%%PORTDOCS%%%%DOCSDIR%%/ReadMe.tech
X%%X11_ONLY%%%%PORTDOCS%%%%DOCSDIR%%/xmbmon.resources
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-xmbmon/pkg-plist
echo x - xmbmon/pkg-descr
sed 's/^X//' >xmbmon/pkg-descr << 'END-of-xmbmon/pkg-descr'
XThis is an X/tty motherboard monitor which supports LM78/79, WINBond
X83781D/83782D/83783S, ASUS 991227F, and VIA VT82C686A/B PC-health
Xchips via 3 methods: ISA-I/O, SMBus, VIA-direct.
X
XRun "mbmon -h" or "xmbmon -help" to see the usage.
X
X***CAUTION***
X
XThese programs access to the SMBus or the ISA-IO port directly under
Xthe superuser privilege, so it may cause a system crash. Please test
X"mbmon -d" or "xmbmon -debug" first.
X
XWWW: http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/download.html
X--
Xkaz at kobe1995.net (NAKAMURA Kazushi)
END-of-xmbmon/pkg-descr
echo x - xmbmon/Makefile
sed 's/^X//' >xmbmon/Makefile << 'END-of-xmbmon/Makefile'
X# Ports collection makefile for: xmbmon
X# Date created: 2001/08/30
X# Whom: kaz at kobe1995.net (NAKAMURA Kauzushi)
X#
X# $FreeBSD: ports/sysutils/xmbmon/Makefile,v 1.10 2004/02/25 09:55:24 kris Exp $
X#
X
XPORTNAME= xmbmon
XPORTVERSION= 204
XCATEGORIES= sysutils
XMASTER_SITES= http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/
X.if defined(WITHOUT_X11)
XPKGNAMESUFFIX= -nox11
X.endif
XDISTNAME= ${PORTNAME}${PORTVERSION}
X
XMAINTAINER= kaz at kobe1995.net
XCOMMENT= X/tty motherboard monitor for LM78/79, W8378x, AS99127F, VT82C686 and ADM9240
X
XGNU_CONFIGURE= yes
X.if defined(WITHOUT_X11)
XPLIST_SUB= X11_ONLY="@comment "
X.else
XUSE_XLIB= yes
XPLIST_SUB= X11_ONLY=""
X.endif
X
XMAKE_ARGS+= DOCSDIR='${DOCSDIR}' INSTALL_DATA='${INSTALL_DATA}'
X
X.include <bsd.port.pre.mk>
X
X.if ${ARCH} != "i386" && ${ARCH} != "amd64"
XBROKEN= "Does not compile on !i386 and !amd64"
X.endif
X
Xpre-everything::
X @${ECHO_CMD} ""
X @${ECHO_CMD} "Definable build options"
X @${ECHO_CMD} "-----------------------"
X @${ECHO_CMD} "WITHOUT_X11 - Self explanatory"
X @${ECHO_CMD} ""
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X @${MKDIR} ${DOCSDIR}
X (cd ${WRKSRC}; ${MAKE} ${MAKE_ARGS} install-doc)
X.endif
X
X.include <bsd.port.post.mk>
END-of-xmbmon/Makefile
echo x - xmbmon/distinfo
sed 's/^X//' >xmbmon/distinfo << 'END-of-xmbmon/distinfo'
XMD5 (xmbmon204.tar.gz) = 68516bf34c7a624b23122ba575b579cb
XSIZE (xmbmon204.tar.gz) = 117994
END-of-xmbmon/distinfo
exit
--
<mailto:kaz at kobe1995.net> NAKAMURA Kazushi at KOBE
<http://kobe1995.net/~kaz/index-e.html>
- Break the hate chain. No more kill!
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list