summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/ppower/DESCR11
-rw-r--r--misc/ppower/MESSAGE10
-rw-r--r--misc/ppower/Makefile26
-rw-r--r--misc/ppower/PLIST7
-rw-r--r--misc/ppower/distinfo6
-rw-r--r--misc/ppower/patches/patch-aa19
6 files changed, 79 insertions, 0 deletions
diff --git a/misc/ppower/DESCR b/misc/ppower/DESCR
new file mode 100644
index 00000000000..549e4fa9a52
--- /dev/null
+++ b/misc/ppower/DESCR
@@ -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.
diff --git a/misc/ppower/MESSAGE b/misc/ppower/MESSAGE
new file mode 100644
index 00000000000..4104d6bc6d8
--- /dev/null
+++ b/misc/ppower/MESSAGE
@@ -0,0 +1,10 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2005/02/26 13:09:11 dsainty Exp $
+
+You will need to create a ${PKG_SYSCONFDIR}/ppower.conf file that matches
+your environment.
+
+See the file ${PREFIX}/share/examples/ppower/ppower.conf for an example
+configuration.
+
+===========================================================================
diff --git a/misc/ppower/Makefile b/misc/ppower/Makefile
new file mode 100644
index 00000000000..d28d8c623b1
--- /dev/null
+++ b/misc/ppower/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/02/26 13:09:11 dsainty Exp $
+#
+
+DISTNAME= ppower-0.1.5
+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_BUILDLINK3= YES
+#USE_GNU_TOOLS+= make
+#USE_PKGLOCALEDIR= YES
+
+CONFIGURE_ARGS+= --sysconfdir="${PKG_SYSCONFDIR}"
+
+post-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ppower
+ ${INSTALL_DATA} \
+ ${WRKSRC}/etc/ppower.conf ${PREFIX}/share/examples/ppower
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/misc/ppower/PLIST b/misc/ppower/PLIST
new file mode 100644
index 00000000000..2ee2c29ba70
--- /dev/null
+++ b/misc/ppower/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/02/26 13:09:11 dsainty Exp $
+bin/ppower
+man/man1/ppower.1
+man/man1/ppowerd.1
+sbin/ppowerd
+share/examples/ppower/ppower.conf
+@dirrm share/examples/ppower
diff --git a/misc/ppower/distinfo b/misc/ppower/distinfo
new file mode 100644
index 00000000000..2c61afb938e
--- /dev/null
+++ b/misc/ppower/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/02/26 13:09:11 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
diff --git a/misc/ppower/patches/patch-aa b/misc/ppower/patches/patch-aa
new file mode 100644
index 00000000000..c43f50d6cbd
--- /dev/null
+++ b/misc/ppower/patches/patch-aa
@@ -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 */