ports/74316: New port: sysutils/env4801 environmental monitor for Soekris Net4801 computer

Patrick M. Hausen hausen at punkt.de
Wed Nov 24 10:20:21 UTC 2004


>Number:         74316
>Category:       ports
>Synopsis:       New port: sysutils/env4801 environmental monitor for Soekris Net4801 computer
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 24 10:20:15 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Patrick M. Hausen <hausen at punkt.de>
>Release:        FreeBSD 5.3-RELEASE-p1 i386
>Organization:
punkt.de GmbH
>Environment:
>Description:
	Port for PHK's env4801 utility
>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:
#
#	env4801
#	env4801/distinfo
#	env4801/Makefile
#	env4801/pkg-descr
#	env4801/files
#	env4801/files/env4801.sh
#	env4801/pkg-message
#
echo c - env4801
mkdir -p env4801 > /dev/null 2>&1
echo x - env4801/distinfo
sed 's/^X//' >env4801/distinfo << 'END-of-env4801/distinfo'
XMD5 (env4801/Makefile) = 84e12097921baf6e9b3e9f938be6a29c
XSIZE (env4801/Makefile) = 379
XMD5 (env4801/env4801.c) = 4578ff38083aac95e71a127899294c88
XSIZE (env4801/env4801.c) = 1995
END-of-env4801/distinfo
echo x - env4801/Makefile
sed 's/^X//' >env4801/Makefile << 'END-of-env4801/Makefile'
X# Ports collection makefile for:  env4801
X# Date created:			  Tue, Nov 24th, 2004
X# Whom:				  Patrick M. Hausen (pmh at hausen.com)
X#
X# $FreeBSD$
X#
X
XPORTNAME=		env4801
XPORTVERSION=		0.2
XCATEGORIES=		sysutils
XMASTER_SITES=		http://phk.freebsd.dk/soekris/env4801/
XDISTFILES=		Makefile env4801.c
XDIST_SUBDIR=		env4801
X
XMAINTAINER=		pmh at hausen.com
XCOMMENT=		Output the voltages and temperatures of a Soekris Net4801 computer
X
XNO_WRKSUBDIR=		yes
XEXTRACT_CMD=		${CP}
XEXTRACT_BEFORE_ARGS=
XEXTRACT_AFTER_ARGS=	${WRKSRC}
XRC_SCRIPTS_SUB=		PREFIX=${PREFIX}
X
XPLIST_FILES=		sbin/env4801 etc/rc.d/env4801.sh
X
Xpost-extract:
X	@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
X		${FILESDIR}/env4801.sh > ${WRKSRC}/env4801.sh
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/env4801 ${PREFIX}/sbin
X	${INSTALL_SCRIPT} ${WRKSRC}/env4801.sh ${PREFIX}/etc/rc.d
X
Xpost-install:
X	@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-env4801/Makefile
echo x - env4801/pkg-descr
sed 's/^X//' >env4801/pkg-descr << 'END-of-env4801/pkg-descr'
XSoekris Net4801 Environmental Monitor
X
XThis is a small program to output the voltages and temperatures
Xfrom the PC87366 chip in the Net4801 computer from Soekris.com.
X
XFirst run the program with a "-i" to initialize the hardware:
X
X	# env4801 -i
X
XThen, as often as you feel like, read out the measured values:
X
X	# env4801
X
XAuthor:		Poul-Henning Kamp (phk at freebsd.org)
XWWW:		http://phk.freebsd.dk/soekris/env4801/
X		http://www.soekris.com/
END-of-env4801/pkg-descr
echo c - env4801/files
mkdir -p env4801/files > /dev/null 2>&1
echo x - env4801/files/env4801.sh
sed 's/^X//' >env4801/files/env4801.sh << 'END-of-env4801/files/env4801.sh'
X#!/bin/sh
X#
X
Xcase "$1" in
Xstart|restart)
X    %%PREFIX%%/sbin/env4801 -i
X    ;;
Xstop)
X    ;;
Xesac
END-of-env4801/files/env4801.sh
echo x - env4801/pkg-message
sed 's/^X//' >env4801/pkg-message << 'END-of-env4801/pkg-message'
X
X================================================================
XThis port installed %%PREFIX%%/etc/rc.d/env4801.sh to initialize
Xthe hardware at boot time. The env4801 utility will only run on
Xa Soekris Engineering Net4801 device. See pkg-descr for more
Xinformation as currently there is no manpage.
X
XMake sure you have /dev/io enabled by putting io_load="YES" in
X/boot/loader.conf or device io in your kernel config file.
X================================================================
X
END-of-env4801/pkg-message
exit
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list