summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-09-27 02:45:21 +0000
committerjlam <jlam@pkgsrc.org>2001-09-27 02:45:21 +0000
commit3817f7f5d905aecd0e737483a168c4a5f1ac74c1 (patch)
tree3ec0b003478d3637e666ec45ea6c915fc70bade9
parent51c463d333e33433c1516b9e508a22c881e7ac45 (diff)
downloadpkgsrc-3817f7f5d905aecd0e737483a168c4a5f1ac74c1.tar.gz
p5-ControlX10-CM17 - perl5 module for controlling the X10 CM17A controller
The FireCracker (CM17A) is a send-only X10 controller that connects to a serial port and transmits commands via RF to X10 transceivers. This module translates human-readable commands (eg. 'A2J') into the bit patterns and control signal pulses accepted by the CM17. This package was provided by Damon Brodie <damon@brodiefamily.org> in pkg/11784 with some updates to conform to current pkgsrc standards by me.
-rw-r--r--misc/p5-ControlX10-CM17/Makefile34
-rw-r--r--misc/p5-ControlX10-CM17/distinfo4
-rw-r--r--misc/p5-ControlX10-CM17/pkg/DESCR4
-rw-r--r--misc/p5-ControlX10-CM17/pkg/PLIST1
4 files changed, 43 insertions, 0 deletions
diff --git a/misc/p5-ControlX10-CM17/Makefile b/misc/p5-ControlX10-CM17/Makefile
new file mode 100644
index 00000000000..d71c4043237
--- /dev/null
+++ b/misc/p5-ControlX10-CM17/Makefile
@@ -0,0 +1,34 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/09/27 02:45:21 jlam Exp $
+
+DISTNAME= ControlX10-CM17-0.07
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= misc perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=ControlX10/}
+
+MAINTAINER= damon@brodiefamily.org
+HOMEPAGE= http://members.aol.com/Bbirthisel/x10.d/index.html
+COMMENT= perl5 module for controlling the X10 CM17A controller
+
+DEPENDS+= p5-Device-SerialPort>=0.070:../../comms/p5-Device-SerialPort
+
+USE_PERL5= YES
+PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/ControlX10/CM17/.packlist
+
+# We don't actually install the example perl script, but we patch it
+# to be useful, just the same.
+#
+post-patch:
+ cd ${WRKSRC}; for file in eg/eg_cm17.plx; do \
+ ${SED} -e "s|/usr/bin/perl|${PERL5}|g" \
+ -e "s|/dev/ttyS0|${DEFAULT_SERIAL_DEVICE}|g" \
+ $${file} > $${file}.fixed; \
+ if [ -x $${file} ]; then \
+ ${CHMOD} +x $${file}.fixed; \
+ fi; \
+ ${MV} -f $${file}.fixed $${file}; \
+ done
+
+do-configure:
+ @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/misc/p5-ControlX10-CM17/distinfo b/misc/p5-ControlX10-CM17/distinfo
new file mode 100644
index 00000000000..e3543d4680a
--- /dev/null
+++ b/misc/p5-ControlX10-CM17/distinfo
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2001/09/27 02:45:21 jlam Exp $
+
+SHA1 (ControlX10-CM17-0.07.tar.gz) = 740f4fede3650ee9252cac282a8562995490f6c5
+Size (ControlX10-CM17-0.07.tar.gz) = 8507 bytes
diff --git a/misc/p5-ControlX10-CM17/pkg/DESCR b/misc/p5-ControlX10-CM17/pkg/DESCR
new file mode 100644
index 00000000000..4d67c77c4f4
--- /dev/null
+++ b/misc/p5-ControlX10-CM17/pkg/DESCR
@@ -0,0 +1,4 @@
+The FireCracker (CM17A) is a send-only X10 controller that connects
+to a serial port and transmits commands via RF to X10 transceivers.
+This module translates human-readable commands (eg. 'A2J') into the
+bit patterns and control signal pulses accepted by the CM17.
diff --git a/misc/p5-ControlX10-CM17/pkg/PLIST b/misc/p5-ControlX10-CM17/pkg/PLIST
new file mode 100644
index 00000000000..babded8231f
--- /dev/null
+++ b/misc/p5-ControlX10-CM17/pkg/PLIST
@@ -0,0 +1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/09/27 02:45:22 jlam Exp $