Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Oct 2013 17:09:29 GMT
From:      Konstantin Kuzvesov <kuzvesov@list.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/183105: new port: ppiled controls leds connected to parallel port
Message-ID:  <201310191709.r9JH9Tfb043373@oldred.freebsd.org>
Resent-Message-ID: <201310191710.r9JHA19w016331@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         183105
>Category:       ports
>Synopsis:       new port: ppiled controls leds connected to parallel port
>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:   Sat Oct 19 17:10:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Konstantin Kuzvesov
>Release:        FreeBSD 9.0
>Organization:
>Environment:
>Description:
I've got a home server running FreeBSD, the server is headless and since that I need some simple way to indicate: there's a problem that needs an attention (e.g. hdd failure, hdd smart bad, network failure, and so on). A bunch of LEDs, each indicating it's own problem, connected to parallel port is a perfect solution.

Unfortunately, I couldn't find any built-in way to control the LEDs. 'Echo smth > /dev/lptX' says 'device is busy', grounding BUSY line on device side doesn't help. 'Echo smth > /dev/ppiX' says nothing, but it also does nothing. And I couldn't find a FreeBSD port, that solves my task.

So, I'm offering this port - a command line tool to switch connected to parallel port LEDs.

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# 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:
#
#	Makefile
#	distinfo
#	pkg-descr
#	work
#
echo x - Makefile
sed 's/^X//' >Makefile << 'b67911656ef5d18c4ae36cb6741b7965'
X# Created by: Konstantin Kuzvesov <kuzvesov@list.ru>
X# $FreeBSD$
X
XPORTNAME=	ppiled
XPORTVERSION=	0.1
XCATEGORIES=	misc
XMASTER_SITES=	http://bmth.ru/freebsd/ppiled/
X
XMAINTAINER=	kuzvesov@list.ru
XCOMMENT=	Control LEDs connected to parallel port
X
XBUILD_DEPENDS+=	${PREFIX}/include/argtable2.h:${PORTSDIR}/devel/argtable
XLIB_DEPENDS+=	argtable2:${PORTSDIR}/devel/argtable
X
XMAN1=		ppiled.1
XPLIST_FILES=	bin/ppiled
XDOCS=		CHANGES
X
XNO_STAGE=	yes
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKDIR}/${PORTNAME}-${PORTVERSION}/ppiled ${PREFIX}/bin/ppiled
X	${INSTALL_MAN} ${WRKDIR}/${PORTNAME}-${PORTVERSION}/ppiled.1 ${MANPREFIX}/man/man1
X
X.include <bsd.port.mk>
b67911656ef5d18c4ae36cb6741b7965
echo x - distinfo
sed 's/^X//' >distinfo << '57677d168a5ec21bdf22c9501f075a8f'
XSHA256 (ppiled-0.1.tar.gz) = 623883eab3bcfd18c104fa0253d11622e2d508ac3bbe8114bc982456718280e3
XSIZE (ppiled-0.1.tar.gz) = 2277
57677d168a5ec21bdf22c9501f075a8f
echo x - pkg-descr
sed 's/^X//' >pkg-descr << '7f9555c3c1089940396b503dd37f3979'
XControls leds connected to parallel port via PPI interface.
7f9555c3c1089940396b503dd37f3979
echo c - work
mkdir -p work > /dev/null 2>&1
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310191709.r9JH9Tfb043373>