head	1.7;
access;
symbols
	pkgsrc-2026Q1:1.7.0.132
	pkgsrc-2026Q1-base:1.7
	pkgsrc-2025Q4:1.7.0.130
	pkgsrc-2025Q4-base:1.7
	pkgsrc-2025Q3:1.7.0.128
	pkgsrc-2025Q3-base:1.7
	pkgsrc-2025Q2:1.7.0.126
	pkgsrc-2025Q2-base:1.7
	pkgsrc-2025Q1:1.7.0.124
	pkgsrc-2025Q1-base:1.7
	pkgsrc-2024Q4:1.7.0.122
	pkgsrc-2024Q4-base:1.7
	pkgsrc-2024Q3:1.7.0.120
	pkgsrc-2024Q3-base:1.7
	pkgsrc-2024Q2:1.7.0.118
	pkgsrc-2024Q2-base:1.7
	pkgsrc-2024Q1:1.7.0.116
	pkgsrc-2024Q1-base:1.7
	pkgsrc-2023Q4:1.7.0.114
	pkgsrc-2023Q4-base:1.7
	pkgsrc-2023Q3:1.7.0.112
	pkgsrc-2023Q3-base:1.7
	pkgsrc-2023Q2:1.7.0.110
	pkgsrc-2023Q2-base:1.7
	pkgsrc-2023Q1:1.7.0.108
	pkgsrc-2023Q1-base:1.7
	pkgsrc-2022Q4:1.7.0.106
	pkgsrc-2022Q4-base:1.7
	pkgsrc-2022Q3:1.7.0.104
	pkgsrc-2022Q3-base:1.7
	pkgsrc-2022Q2:1.7.0.102
	pkgsrc-2022Q2-base:1.7
	pkgsrc-2022Q1:1.7.0.100
	pkgsrc-2022Q1-base:1.7
	pkgsrc-2021Q4:1.7.0.98
	pkgsrc-2021Q4-base:1.7
	pkgsrc-2021Q3:1.7.0.96
	pkgsrc-2021Q3-base:1.7
	pkgsrc-2021Q2:1.7.0.94
	pkgsrc-2021Q2-base:1.7
	pkgsrc-2021Q1:1.7.0.92
	pkgsrc-2021Q1-base:1.7
	pkgsrc-2020Q4:1.7.0.90
	pkgsrc-2020Q4-base:1.7
	pkgsrc-2020Q3:1.7.0.88
	pkgsrc-2020Q3-base:1.7
	pkgsrc-2020Q2:1.7.0.84
	pkgsrc-2020Q2-base:1.7
	pkgsrc-2020Q1:1.7.0.64
	pkgsrc-2020Q1-base:1.7
	pkgsrc-2019Q4:1.7.0.86
	pkgsrc-2019Q4-base:1.7
	pkgsrc-2019Q3:1.7.0.82
	pkgsrc-2019Q3-base:1.7
	pkgsrc-2019Q2:1.7.0.80
	pkgsrc-2019Q2-base:1.7
	pkgsrc-2019Q1:1.7.0.78
	pkgsrc-2019Q1-base:1.7
	pkgsrc-2018Q4:1.7.0.76
	pkgsrc-2018Q4-base:1.7
	pkgsrc-2018Q3:1.7.0.74
	pkgsrc-2018Q3-base:1.7
	pkgsrc-2018Q2:1.7.0.72
	pkgsrc-2018Q2-base:1.7
	pkgsrc-2018Q1:1.7.0.70
	pkgsrc-2018Q1-base:1.7
	pkgsrc-2017Q4:1.7.0.68
	pkgsrc-2017Q4-base:1.7
	pkgsrc-2017Q3:1.7.0.66
	pkgsrc-2017Q3-base:1.7
	pkgsrc-2017Q2:1.7.0.62
	pkgsrc-2017Q2-base:1.7
	pkgsrc-2017Q1:1.7.0.60
	pkgsrc-2017Q1-base:1.7
	pkgsrc-2016Q4:1.7.0.58
	pkgsrc-2016Q4-base:1.7
	pkgsrc-2016Q3:1.7.0.56
	pkgsrc-2016Q3-base:1.7
	pkgsrc-2016Q2:1.7.0.54
	pkgsrc-2016Q2-base:1.7
	pkgsrc-2016Q1:1.7.0.52
	pkgsrc-2016Q1-base:1.7
	pkgsrc-2015Q4:1.7.0.50
	pkgsrc-2015Q4-base:1.7
	pkgsrc-2015Q3:1.7.0.48
	pkgsrc-2015Q3-base:1.7
	pkgsrc-2015Q2:1.7.0.46
	pkgsrc-2015Q2-base:1.7
	pkgsrc-2015Q1:1.7.0.44
	pkgsrc-2015Q1-base:1.7
	pkgsrc-2014Q4:1.7.0.42
	pkgsrc-2014Q4-base:1.7
	pkgsrc-2014Q3:1.7.0.40
	pkgsrc-2014Q3-base:1.7
	pkgsrc-2014Q2:1.7.0.38
	pkgsrc-2014Q2-base:1.7
	pkgsrc-2014Q1:1.7.0.36
	pkgsrc-2014Q1-base:1.7
	pkgsrc-2013Q4:1.7.0.34
	pkgsrc-2013Q4-base:1.7
	pkgsrc-2013Q3:1.7.0.32
	pkgsrc-2013Q3-base:1.7
	pkgsrc-2013Q2:1.7.0.30
	pkgsrc-2013Q2-base:1.7
	pkgsrc-2013Q1:1.7.0.28
	pkgsrc-2013Q1-base:1.7
	pkgsrc-2012Q4:1.7.0.26
	pkgsrc-2012Q4-base:1.7
	pkgsrc-2012Q3:1.7.0.24
	pkgsrc-2012Q3-base:1.7
	pkgsrc-2012Q2:1.7.0.22
	pkgsrc-2012Q2-base:1.7
	pkgsrc-2012Q1:1.7.0.20
	pkgsrc-2012Q1-base:1.7
	pkgsrc-2011Q4:1.7.0.18
	pkgsrc-2011Q4-base:1.7
	pkgsrc-2011Q3:1.7.0.16
	pkgsrc-2011Q3-base:1.7
	pkgsrc-2011Q2:1.7.0.14
	pkgsrc-2011Q2-base:1.7
	pkgsrc-2011Q1:1.7.0.12
	pkgsrc-2011Q1-base:1.7
	pkgsrc-2010Q4:1.7.0.10
	pkgsrc-2010Q4-base:1.7
	pkgsrc-2010Q3:1.7.0.8
	pkgsrc-2010Q3-base:1.7
	pkgsrc-2010Q2:1.7.0.6
	pkgsrc-2010Q2-base:1.7
	pkgsrc-2010Q1:1.7.0.4
	pkgsrc-2010Q1-base:1.7
	pkgsrc-2009Q4:1.7.0.2
	pkgsrc-2009Q4-base:1.7
	pkgsrc-2009Q3:1.6.0.52
	pkgsrc-2009Q3-base:1.6
	pkgsrc-2009Q2:1.6.0.50
	pkgsrc-2009Q2-base:1.6
	pkgsrc-2009Q1:1.6.0.48
	pkgsrc-2009Q1-base:1.6
	pkgsrc-2008Q4:1.6.0.46
	pkgsrc-2008Q4-base:1.6
	pkgsrc-2008Q3:1.6.0.44
	pkgsrc-2008Q3-base:1.6
	cube-native-xorg:1.6.0.42
	cube-native-xorg-base:1.6
	pkgsrc-2008Q2:1.6.0.40
	pkgsrc-2008Q2-base:1.6
	cwrapper:1.6.0.38
	pkgsrc-2008Q1:1.6.0.36
	pkgsrc-2008Q1-base:1.6
	pkgsrc-2007Q4:1.6.0.34
	pkgsrc-2007Q4-base:1.6
	pkgsrc-2007Q3:1.6.0.32
	pkgsrc-2007Q3-base:1.6
	pkgsrc-2007Q2:1.6.0.30
	pkgsrc-2007Q2-base:1.6
	pkgsrc-2007Q1:1.6.0.28
	pkgsrc-2007Q1-base:1.6
	pkgsrc-2006Q4:1.6.0.26
	pkgsrc-2006Q4-base:1.6
	pkgsrc-2006Q3:1.6.0.24
	pkgsrc-2006Q3-base:1.6
	pkgsrc-2006Q2:1.6.0.22
	pkgsrc-2006Q2-base:1.6
	pkgsrc-2006Q1:1.6.0.20
	pkgsrc-2006Q1-base:1.6
	pkgsrc-2005Q4:1.6.0.18
	pkgsrc-2005Q4-base:1.6
	pkgsrc-2005Q3:1.6.0.16
	pkgsrc-2005Q3-base:1.6
	pkgsrc-2005Q2:1.6.0.14
	pkgsrc-2005Q2-base:1.6
	pkgsrc-2005Q1:1.6.0.12
	pkgsrc-2005Q1-base:1.6
	pkgsrc-2004Q4:1.6.0.10
	pkgsrc-2004Q4-base:1.6
	pkgsrc-2004Q3:1.6.0.8
	pkgsrc-2004Q3-base:1.6
	pkgsrc-2004Q2:1.6.0.6
	pkgsrc-2004Q2-base:1.6
	pkgsrc-2004Q1:1.6.0.4
	pkgsrc-2004Q1-base:1.6
	pkgsrc-2003Q4:1.6.0.2
	pkgsrc-2003Q4-base:1.6
	netbsd-1-6-1:1.5.0.2
	netbsd-1-6-1-base:1.5
	netbsd-1-6:1.5.0.4
	netbsd-1-6-RELEASE-base:1.5
	pkgviews:1.2.0.2
	pkgviews-base:1.2
	buildlink2:1.1.1.1.0.2
	buildlink2-base:1.1.1.1
	netbsd-1-5-PATCH003:1.1.1.1
	netbsd-1-5-PATCH001:1.1.1.1
	netbsd-1-5-RELEASE:1.1.1.1
	netbsd-1-4-PATCH003:1.1.1.1
	pkgsrc-base:1.1.1.1
	TNF:1.1.1;
locks; strict;
comment	@# @;


1.7
date	2009.12.11.00.11.11;	author abs;	state Exp;
branches;
next	1.6;

1.6
date	2003.11.11.10.17.39;	author wiz;	state Exp;
branches;
next	1.5;

1.5
date	2002.08.08.13.11.32;	author wiz;	state Exp;
branches;
next	1.4;

1.4
date	2002.08.08.13.11.06;	author wiz;	state dead;
branches;
next	1.3;

1.3
date	2002.08.08.13.10.11;	author wiz;	state Exp;
branches;
next	1.2;

1.2
date	2002.07.02.14.03.51;	author wiz;	state Exp;
branches;
next	1.1;

1.1
date	2000.07.15.06.50.36;	author rh;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2000.07.15.06.50.36;	author rh;	state Exp;
branches;
next	;


desc
@@


1.7
log
@PKG_DESTDIR_SUPPORT=destdir
@
text
@$NetBSD: patch-aa,v 1.6 2003/11/11 10:17:39 wiz Exp $

--- stop.c.orig	2003-03-30 20:05:53.000000000 +0000
+++ stop.c
@@@@ -35,17 +35,21 @@@@ int argc;
 char *argv[];
 {
     unsigned long pid;
+#ifdef __linux__
     FILE * pidfile;
     char buf[80];
     char procname[80];
+#endif
     extern unsigned long lockpid();
     extern char *make_lock_name();
     extern void quit();
 
     pid = lockpid(make_lock_name(monfile));
+#ifdef __linux__
     procname[0] = 0;
     buf[0] = 0;
     pidfile = (FILE *) NULL;
+#endif
 
     if( pid == 0 )
     {
@


1.6
log
@Update to 1.35, since 1.33 is not available any longer.
Changes:
Version 1.34
    The array bound checking for the x10sched.conf file was missing.

    Certain noise on the line would cause repetitive bytes to fill the buffer.
    relay.c code was tightened to look for this.  The spool file is truncated
    after 1 million bytes.

    The jumpbuf in xread.c was getting corrupted, causing the second
    trigger to hang.    That's fixed.

    Relay.c checks every 10 minutes for the need to change to daylight
    savings time.  It changes the clock if needed.

    Added the ability to run two CM11's.  Each needs it's own config file.
    The tty device is used to differentiate the spool files.

    Add the keywords "option" and "alias" to the config file to help ensure
    that it is parsed properly.

Version 1.34beta6
    corrected x10.h "endif" with trailing coment

    Added patch from "Tony Machon" <heyu@@digitaldynamics.us> that allows
    use of config file aliases in the x10sched file.

    Changed device to 0x0 when doing , alloff or lighston or lightsoff per
    patch provided by rrauenza<%>shroop.net.

    Thanks to Michael Skora <mike@@alienbrain.net>, there is a way to send
    just the address or just the function.

Version 1.34beta7
    Added a siginterrupt(2) call so the alarm(2) calls will correctly
    abort the read(2) calls.  Added local.h as a place to put local config
    defines (such as USESIGINT).  Configure creates this as neededd.

    Did more cleanup so that there won't be hangs when sending cm11
    directives that have a checksum of 0x5a.

    Added "relay" mode so the relay can be studied in the fore-ground, ala
    'strace ./heyu -v relay'.  Still need to add verbose entries to take
    advantage of the -v option.

    Added code to check the "write lock" file when evaluating that
    damned 0x5a that can be generated out of the blue as well as
    being used as a checksum.

Version 1.34beta7.4
    Corrected the munlock function.  It was being used inconsistently,
    sometimes needing a full lock string, other times not.  The tty
    device was deleted in one case.

Version 1.34beta7.5
    Still having problems with resends involving 0x5a

    Updated FAQ

    Added openbsd option to Configure.

Version 1.34beta7.6
    Cleaned up x10.c compile warnings.

Version 1.34beta7.7
    Finally realized that the best wording was
    	heyu turn c1 up 10
    	heyu turn c1 down 5

Version 1.35
    Final Version.
    Added external program trigger based on suggestion and
        sample code from chuck@@liderbug.com
    Added heyuhelper script to be called when trigger is detected.
    Updated documentation
    Added HELPER to x10.h file.
@
text
@d1 1
a1 1
$NetBSD$
d3 1
a3 1
--- stop.c.orig	Sun Mar 30 22:05:53 2003
@


1.5
log
@Re-add.
@
text
@d3 1
a3 1
--- stop.c.orig	Thu Dec  7 06:42:20 2000
d5 1
a5 1
@@@@ -33,9 +33,11 @@@@
d15 1
d18 9
@


1.4
log
@Temp-remove.
@
text
@d1 1
a1 1
patch-aa,v 1.3 2002/08/08 13:10:11 wiz Exp
@


1.3
log
@Restore RCS Id.
@
text
@d1 1
a1 1
$NetBSD$
@


1.2
log
@Update to 1.33, as requested in pkg/16254.
Changes:
    Added make file options for SCO and NetBSD.  The Makefile has been
    reconfigured a touch to make it clearer what needs to be done for each
    OS.

    Turn was accepting invalid option as in heyu turn allaskljas.  It now
    complains and exits.

    Found bug in scanning the macros. (thanks to David Pointer)

    Dan Eble reported a bug (or feature) that allows chaining macros
    with delays.  I've fixed the bug but not enabled the feature.

    Makesched utility created.  This utility pre-preocesses a file in the
    x10sched format and sends a revised version to standard output with the
    strings "dawn" and "dusk" expanded to appropriate values.

    Cleaned up some error messages to give feedback when the locks fail.

    A coding error was causing the dates in the schedule loader to be off
    in some cases.  Thanks to Charles Sullivan for finding and reporting
    the bug and it's fix

    The use of just the -v option caused a sigfault.  The errant code
    was corrected in x10.c main().
@
text
@@


1.1
log
@Initial revision
@
text
@d3 13
a15 13
--- Makefile.orig	Thu Jul  6 23:34:32 2000
+++ Makefile	Thu Jul  6 23:35:19 2000
@@@@ -1,10 +1,7 @@@@
 # Makefile for CM11, a program to control an X10 CM11A computer interface.
-# Makefile $Revision: 1.12 $
-BIN = /usr/local/bin
-MAN = /usr/local/man/man1
-MAN5 = /usr/local/man/man5
-GROUP = sys
-OWNER = bin
+BIN = ${PREFIX}/bin
+MAN = ${PREFIX}/man/man1
+MAN5 = ${PREFIX}/man/man5
a16 39
 
 #	set DFLAGS equal to:
@@@@ -22,10 +19,10 @@@@
 ##  For LINUX, use the following
 #DFLAGS = -DSYSV -DPOSIX -DHAS_ITIMER -DLINUX 
 CC = gcc
-CFLAGS = -g -O $(DFLAGS) -Wall
-DFLAGS = -DSYSV -DPOSIX -DHAS_ITIMER -DLINUX -DHASSELECT
+#CFLAGS = -g -O $(DFLAGS) -Wall
+#DFLAGS = -DSYSV -DPOSIX -DHAS_ITIMER -DLINUX -DHASSELECT
 #LIBS = -lm -lc_s		# uncomment if using shared libraries
-LIBS = -lm -lc			# uncoment if not using shared libraries
+#LIBS = -lm -lc			# uncoment if not using shared libraries
 
 ##  For solaris, use the following defines in addition to what's above
 # CC = gcc
@@@@ -41,6 +38,12 @@@@
 # LIBS = -lm -lc
 # DFLAGS= -DHASSELECT
 
+## if you're using NetBSD:
+CC = gcc
+CFLAGS = -g -O $(DFLAGS) -Wall
+LIBS = -lm -lc
+DFLAGS= -DHASSELECT -DPOSIX -DNETBSD -DLOCKDIR=\"/var/spool/lock\"
+
 ## for Alpha, OSF1 v4.0 , Use this
 # GROUP = uucp
 # CC = gcc
@@@@ -96,9 +99,7 @@@@
 
 $(BIN)/heyu:	heyu
 	cp heyu $(BIN)
-	chgrp $(GROUP) $(BIN)/heyu
 	chmod 755 $(BIN)/heyu
-	chown $(OWNER) $(BIN)/heyu
 
 $(MAN)/heyu.1: heyu.1
 	cp heyu.1 $(MAN)
@


1.1.1.1
log
@Initial import of x10_heyu-1.29, a home automation software for the X10
CM11A power line transmitter.  Provided in PR 10576 by Damon Brodie.
@
text
@@
