Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

11
misc/ppower/DESCR Normal file
View File

@@ -0,0 +1,11 @@
Ppower, short for 'Penguin Power', is a piece of UNIX software for controlling
x10 home automation equipment connected to the computer via a cm11a interface.
It can be used to turn things on and off and lights dim and bright. In
addition to controlling the x10 devices, it can receive commands sent to the
x10 devices from other sources such as an x10 remote transceiver and execute
commands on your system in response.
The virtue of ppower is that it is designed to run as a daemon at all times,
keeping track of the status of the X10 system, taking action on events,
queueing requests, and providing information on the events it is receiving to
any interested clients.

10
misc/ppower/MESSAGE Normal file
View File

@@ -0,0 +1,10 @@
===========================================================================
$NetBSD: MESSAGE,v 1.2 2006/10/25 12:44:26 dsainty Exp $
You will need to update ${PKG_SYSCONFDIR}/ppower.conf to match
your X10 environment.
See the file ${PREFIX}/share/examples/ppower/ppower.conf for an example
configuration.
===========================================================================

28
misc/ppower/Makefile Normal file
View File

@@ -0,0 +1,28 @@
# $NetBSD: Makefile,v 1.10 2012/10/08 09:57:35 asau Exp $
#
DISTNAME= ppower-0.1.5
PKGREVISION= 1
CATEGORIES= misc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ppower/}
MAINTAINER= dsainty@NetBSD.org
HOMEPAGE= http://ppower.sourceforge.net/
COMMENT= X10 controller software for the CM11A interface
#LICENSE= GPL
GNU_CONFIGURE= YES
USE_TOOLS+= lex
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
EGDIR= ${PREFIX}/share/examples/ppower
CONF_FILES+= ${EGDIR}/ppower.conf ${PKG_SYSCONFDIR}/ppower.conf
INSTALLATION_DIRS= share/examples/ppower
post-install:
${INSTALL_DATA} \
${WRKSRC}/etc/ppower.conf ${DESTDIR}${PREFIX}/share/examples/ppower
.include "../../mk/bsd.pkg.mk"

6
misc/ppower/PLIST Normal file
View File

@@ -0,0 +1,6 @@
@comment $NetBSD: PLIST,v 1.2 2009/06/14 18:07:28 joerg Exp $
bin/ppower
man/man1/ppower.1
man/man1/ppowerd.1
sbin/ppowerd
share/examples/ppower/ppower.conf

7
misc/ppower/distinfo Normal file
View File

@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.2 2010/09/29 10:42:48 dsainty Exp $
SHA1 (ppower-0.1.5.tar.gz) = fe697b5517f93984a2ae994000787f2b7404b216
RMD160 (ppower-0.1.5.tar.gz) = 93b235c9bdbf1764388e6e3808ea885dbb9f291a
Size (ppower-0.1.5.tar.gz) = 127819 bytes
SHA1 (patch-aa) = 6f0d464058e19bd8df8c3ab6672371d53cb46432
SHA1 (patch-ab) = 2607fc7d2949d96f1aca7b6d38a25e594424881a

View File

@@ -0,0 +1,19 @@
$NetBSD: patch-aa,v 1.1.1.1 2005/02/26 13:09:11 dsainty Exp $
NetBSD doesn't have the OFILL termios flag.
--- src/x10.c.orig 2000-02-06 14:37:08.000000000 +1300
+++ src/x10.c 2005-02-26 21:13:47.000000000 +1300
@@ -84,7 +84,11 @@
/* Accept raw data. */
termios.c_lflag &= ~(ICANON | ECHO | ISIG);
- termios.c_oflag &= ~(OPOST | ONLCR | OCRNL | ONLRET | OFILL);
+ termios.c_oflag &= ~(OPOST | ONLCR | OCRNL | ONLRET
+#ifdef OFILL
+ | OFILL
+#endif
+ );
termios.c_iflag &= ~(ICRNL | IXON | IXOFF | IMAXBEL);
/* Return after 1 character available */

View File

@@ -0,0 +1,16 @@
$NetBSD: patch-ab,v 1.1 2010/09/29 10:42:49 dsainty Exp $
Force flush to be pipe-friendly (from ppower -m).
--- src/status.c.orig 2010-09-29 22:57:25.000000000 +1300
+++ src/status.c 2010-09-29 22:58:42.000000000 +1300
@@ -143,6 +143,9 @@
/* End the line. */
printf("\n");
+
+ /* Force flush to be pipe-friendly. */
+ fflush(stdout);
return;
}