--- misterhouse-2.96.orig/bin/alpha_page +++ misterhouse-2.96/bin/alpha_page @@ -1,4 +1,4 @@ -!/usr/bin/perl +#!/usr/bin/perl # -*- Perl -*- #--------------------------------------------------------------------- --- misterhouse-2.96.orig/bin/authors +++ misterhouse-2.96/bin/authors @@ -19,6 +19,13 @@ GUIs Management Network Info ); +my $raw; +if ($ARGV[0] eq '-r') +{ + $raw = 1; + shift @ARGV; +} + undef $/; my $f = <>; my %a; @@ -35,8 +42,10 @@ $a{"$first $last"}++; } -my $time_date = localtime; -print < @@ -50,21 +59,35 @@ Last updated $time_date.
eof + print "\n"; +} my $cnt = 0; -$a{'Bruce Winter'} = '-999'; -print "\n"; +$a{'Bruce Winter'} = '999'; for my $a (sort {$a{$b} <=> $a{$a} or $a cmp $b} keys %a) { # print "\t$a was mentioned $a{$a} times\n"; # print "\n"; - print "\n" unless $cnt % 4; - print "\n"; + if ($raw) + { + print "$a, "; + } + else + { + print "\n" unless $cnt % 4; + print "\n"; + } $cnt++; } -print "\n" if $cnt % 3; -print <\n" if $cnt % 3; + print <

Found $cnt authors

eof - +} +else +{ + print "\n"; +} --- misterhouse-2.96.orig/bin/display_callers +++ misterhouse-2.96/bin/display_callers @@ -1,5 +1,3 @@ -#!d:/perl/bin/perl.exe -# -*- Perl -*- #!/usr/bin/perl #--------------------------------------------------------------------------- # File: --- misterhouse-2.96.orig/bin/mh +++ misterhouse-2.96/bin/mh @@ -139,7 +139,7 @@ if $Info{Perl_compiled}; # Pick local mh modules first, over any site install ones - unshift (@INC, './../lib', './../lib/site', '.'); + unshift (@INC, '/usr/share/perl5/misterhouse', '/usr/share/perl5/misterhouse/site', '/usr/lib/perl5/misterhouse', '.'); # my $pwd=cwd(); print "pwd=$pwd inc=@INC\n"; # push (@INC, './../lib', './../lib/site', '.'); # push (@INC, './../lib'); --- misterhouse-2.96.orig/bin/play +++ misterhouse-2.96/bin/play @@ -1,4 +1,4 @@ - +#!/bin/sh # This if for use on unix for playing sound files echo "Playing sound file $1" --- misterhouse-2.96.orig/bin/print_socket_fork.pl +++ misterhouse-2.96/bin/print_socket_fork.pl @@ -1,4 +1,4 @@ - +#!/usr/bin/perl -w # This code is called by mh/lib/http_server.pl to do a simulated fork # on socket write on windows systems. # Yucky stuff, but better than no fork at all. --- misterhouse-2.96.orig/bin/print_socket_fork_memmap.pl +++ misterhouse-2.96/bin/print_socket_fork_memmap.pl @@ -1,4 +1,4 @@ - +#!/usr/bin/perl -w # This code is called by mh/lib/http_server.pl to do a simulated fork # on socket write on windows systems. # Yucky stuff, but better than no fork at all. --- misterhouse-2.96.orig/bin/set_password +++ misterhouse-2.96/bin/set_password @@ -85,7 +85,7 @@ my (%config_parms, %passwords); sub setup { eval "use lib '$Pgm_Path/../lib', '$Pgm_Path/../lib/site'"; # So perl2exe works - require 'handy_utilities.pl'; # For read_mh_opts funcion + require 'misterhouse/handy_utilities.pl'; # For read_mh_opts funcion &main::read_mh_opts(\%config_parms, $Pgm_Path); $parms{pw_file} = $config_parms{pw_file} unless $parms{pw_file}; --- misterhouse-2.96.orig/bin/test_x10 +++ misterhouse-2.96/bin/test_x10 @@ -1,4 +1,4 @@ -#!/bin/perl -w +#!/usr/bin/perl -w # Use this as a stand-alone (outside of mh) way to # test a CM11 and/or CM17 X10 device --- misterhouse-2.96.orig/lib/handy_utilities.pl +++ misterhouse-2.96/lib/handy_utilities.pl @@ -12,6 +12,8 @@ # #--------------------------------------------------------------------------- +use lib ('/usr/share/perl5/misterhouse/site'); + #print "Creating handy utility functions ..."; # Pre-declare these so we don't fail on non-windows platforms --- misterhouse-2.96.orig/lib/site/Digest/Perl/MD5.pm +++ misterhouse-2.96/lib/site/Digest/Perl/MD5.pm @@ -1,4 +1,4 @@ -#!/usr/local/bin/perl -w +#!/usr/bin/perl -w #$Id: MD5.pm,v 1.3 2004/02/01 19:24:35 winter Exp $ package Digest::Perl::MD5; --- misterhouse-2.96.orig/lib/site/HTML/FormatText.pm +++ misterhouse-2.96/lib/site/HTML/FormatText.pm @@ -57,7 +57,7 @@ # Make sure we override any local Formatter with our modified one # - the default one does not look into tables #equire HTML::Formatter; -require "../lib/site/HTML/Formatter.pm"; +require "site/HTML/Formatter.pm"; @ISA = qw(HTML::Formatter); --- misterhouse-2.96.orig/lib/site/LWP/Debug.pm +++ misterhouse-2.96/lib/site/LWP/Debug.pm @@ -1,4 +1,4 @@ -#!/usr/local/bin/perl -w +#!/usr/bin/perl -w # # $Id: Debug.pm,v 1.3 2003/01/12 20:39:26 winter Exp $ # --- misterhouse-2.96.orig/web/bin/dbmedit.cgi +++ misterhouse-2.96/web/bin/dbmedit.cgi @@ -1,4 +1,4 @@ -#!/usr/local/bin/perl +#!/usr/bin/perl # # DBMEdit 1.0 # --- misterhouse-2.96.orig/web/bin/test_cgi.pl +++ misterhouse-2.96/web/bin/test_cgi.pl @@ -1,4 +1,4 @@ -#!/local/bin/perl +#!/usr/bin/perl print "Content-Type: text/html\n\n"; print "

Hello World from mh test_cgi.pl

"; --- misterhouse-2.96.orig/web/bin/test_cgi_error.pl +++ misterhouse-2.96/web/bin/test_cgi_error.pl @@ -1,4 +1,4 @@ -#!/local/bin/perl +#!/usr/bin/perl # Test for returning errors --- misterhouse-2.96.orig/web/bin/weather_graph_zoom.pl +++ misterhouse-2.96/web/bin/weather_graph_zoom.pl @@ -1,4 +1,4 @@ -#!/local/bin/perl +#!/usr/bin/perl ##################################################################### # NOM : weather_graph_zoom.pl # DESCRIPTION : --- misterhouse-2.96.orig/web/organizer/calendar.pl +++ misterhouse-2.96/web/organizer/calendar.pl @@ -1,4 +1,4 @@ -#!/usr/local/bin/perl -w +#!/usr/bin/perl -w # ---------------------------------------------------------------------------- # vsDB.pl DataFile Editor # Copyright (c) 2001 Jason M. Hinkle. All rights reserved. This script is --- misterhouse-2.96.orig/web/organizer/contacts.pl +++ misterhouse-2.96/web/organizer/contacts.pl @@ -1,4 +1,4 @@ -#!/usr/local/bin/perl -w +#!/usr/bin/perl -w # ---------------------------------------------------------------------------- # contacts.pl # Copyright (c) 2001 Jason M. Hinkle. All rights reserved. This script is --- misterhouse-2.96.orig/web/organizer/inbox.pl +++ misterhouse-2.96/web/organizer/inbox.pl @@ -1,4 +1,4 @@ -#!/usr/local/bin/perl +#!/usr/bin/perl # ---------------------------------------------------------------------------- # contacts.pl # Copyright (c) 2001 Jason M. Hinkle. All rights reserved. This script is --- misterhouse-2.96.orig/web/organizer/setup.pl +++ misterhouse-2.96/web/organizer/setup.pl @@ -1,4 +1,4 @@ -#!/usr/local/bin/perl -w +#!/usr/bin/perl -w # ---------------------------------------------------------------------------- # vsDB.pl DataFile Editor # Copyright (c) 2001 Jason M. Hinkle. All rights reserved. This script is --- misterhouse-2.96.orig/web/organizer/tasks.pl +++ misterhouse-2.96/web/organizer/tasks.pl @@ -1,4 +1,4 @@ -#!/usr/local/bin/perl -w +#!/usr/bin/perl -w # ---------------------------------------------------------------------------- # tasks.pl # Copyright (c) 2001 Jason M. Hinkle. All rights reserved. This script is --- misterhouse-2.96.orig/debian/README.Debian +++ misterhouse-2.96/debian/README.Debian @@ -0,0 +1,35 @@ +misterhouse for Debian +---------------------- + +The default MisterHouse distribution contains are large tree of files. In +order to comply with the FHS, these directories have been relocated as +follows: + +bin - /usr/lib/perl5/misterhouse +code - /usr/share/doc/misterhouse/examples +code/common - /usr/share/misterhouse/code +data - /var/lib/misterhouse +data/logs - /var/log/misterhouse +docs - /usr/share/doc/misterhouse/docs +libs - /usr/share/perl5/misterhouse +sounds - /usr/share/misterhouse/sounds +web - /usr/share/misterhouse/web + +Local code, photo, and sound files are located in: +/usr/local/share/misterhouse + +The script '/usr/bin/misterhouse' will launch misterhouse as one would expect. + +Known Bugs: + + * MH's libraries contain a lot of redundant Perl code that has been + packaged elsewhere. Some of this libs have been modified specially + for MH, so it is not trivial to sift them all out. This is a work in + progress. + + * Not every aspect of MH has been tested, as the package maintainer does not + use them. Therefore, it is likely that some services are misconfigured. + Please submit bug reports for any issues that are found with the default + configuration. + + -- Russ W. Knize , Mon, 11 Oct 2004 21:04:43 -0500 --- misterhouse-2.96.orig/debian/changelog +++ misterhouse-2.96/debian/changelog @@ -0,0 +1,41 @@ +misterhouse (2.96-1) unstable; urgency=low + + * New upstream release + * Fixed some Perl lib dependencies (thanks to Lou ?) + + -- Russ W. Knize Thu, 2 Dec 2004 09:30:29 -0600 + +misterhouse (2.95-4) unstable; urgency=low + + * Fix the conffile I broke in previous version + * Make certain other files from data confiles as well + + -- Russ W. Knize Wed, 27 Oct 2004 09:50:37 -0500 + +misterhouse (2.95-3) unstable; urgency=low + + * Move non-user binaries to /usr/lib/perl5/misterhouse + * Make default configuration happy with changes needed for FHS compliance + * Fix bugs in executable so that it can find its libraries at startup + * Sorted out code and config examples + + -- Russ W. Knize Tue, 26 Oct 2004 16:52:46 -0500 + +misterhouse (2.95-2) unstable; urgency=low + + * Fixed packaging errors + + -- Russ W. Knize Fri, 22 Oct 2004 11:43:41 -0500 + +misterhouse (2.95-1) unstable; urgency=low + + * New upstream release + + -- Russ W. Knize Sat, 16 Oct 2004 11:23:37 -0500 + +misterhouse (2.94-1) unstable; urgency=low + + * Initial Release. + + -- Russ W. Knize Mon, 11 Oct 2004 21:04:43 -0500 + --- misterhouse-2.96.orig/debian/compat +++ misterhouse-2.96/debian/compat @@ -0,0 +1 @@ +4 --- misterhouse-2.96.orig/debian/watch +++ misterhouse-2.96/debian/watch @@ -0,0 +1,6 @@ +# Example watch control file for uscan +# Rename this file to "watch" and then you can run the "uscan" command +# to check for upstream updates and more. +# Site Directory Pattern Version Script +version=2 +http://umn.dl.sourceforge.net /sourceforge/misterhouse misterhouse-(.*)\.tar\.gz debian uupdate --- misterhouse-2.96.orig/debian/postinst +++ misterhouse-2.96/debian/postinst @@ -0,0 +1,63 @@ +#! /bin/sh +# postinst script for misterhouse +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# + +MH_SITE=/usr/local/share/misterhouse +MH_CONFIG=/etc/misterhouse.ini + +case "$1" in + configure) + # Create local site dirs + [ ! -e $MH_SITE ] && mkdir $MH_SITE 2>/dev/null && chown root:staff $MH_SITE && chmod 2775 $MH_SITE + [ ! -e $MH_SITE/code ] && mkdir $MH_SITE/code 2>/dev/null && chown root:staff $MH_SITE/code && chmod 2775 $MH_SITE/code + [ ! -e $MH_SITE/photos ] && mkdir $MH_SITE/photos 2>/dev/null && chown root:staff $MH_SITE/photos && chmod 2775 $MH_SITE/photos + [ ! -e $MH_SITE/sounds ] && mkdir $MH_SITE/sounds 2>/dev/null && chown root:staff $MH_SITE/sounds && chmod 2775 $MH_SITE/sounds + + # Deal with the configuration + #if [ ! -e $MH_CONFIG ] ; then + # Maybe later + #fi + + if [ ! -e "/var/lib/misterhouse/code_select.txt.backup1" ] ; then + echo "It appears that you have never configured Misterhouse through the Common Code" + echo "Activation page via the web interface. You will need to set an admin password" + echo "and log into the web interface (or edit /var/lib/misterhouse/code_select.txt" + echo "directly)." + fi + + # The web interface password tool is Tk-based, which is a problem for dpkg + [ ! -e /var/lib/misterhouse/.password ] && echo "You may wish to set a password using the mhpasswd tool." + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- misterhouse-2.96.orig/debian/dirs +++ misterhouse-2.96/debian/dirs @@ -0,0 +1,11 @@ +usr/bin +usr/lib/perl5/misterhouse +usr/share/misterhouse/code +usr/share/misterhouse/sounds +usr/share/misterhouse/web +usr/share/misterhouse/web/cache +usr/share/perl5/misterhouse +usr/share/man/man1 +var/lib/misterhouse +var/log/misterhouse/rrd +etc/misterhouse --- misterhouse-2.96.orig/debian/misterhouse.default +++ misterhouse-2.96/debian/misterhouse.default @@ -0,0 +1,10 @@ +# Defaults for misterhouse initscript +# sourced by /etc/init.d/misterhouse +# installed at /etc/default/misterhouse by the maintainer scripts + +# +# This is a POSIX shell fragment +# + +# Additional options that are passed to the Daemon. +DAEMON_OPTS="-log_file /var/log/misterhouse/mh.log" --- misterhouse-2.96.orig/debian/misterhouse.sgml +++ misterhouse-2.96/debian/misterhouse.sgml @@ -0,0 +1,135 @@ + manpage.1'. You may view + the manual page with: `docbook-to-man manpage.sgml | nroff -man | + less'. A typical entry in a Makefile or Makefile.am is: + +manpage.1: manpage.sgml + docbook-to-man $< > $@ + + + The docbook-to-man binary is found in the docbook-to-man package. + Please remember that if you create the nroff version in one of the + debian/rules file targets (such as build), you will need to include + docbook-to-man in your Build-Depends control field. + + --> + + + Russ"> + Knize"> + + October 11, 2004"> + + 1"> + rknize@yahoo.com"> + + MISTERHOUSE"> + + + Debian"> + GNU"> + GPL"> +]> + + + +
+ &dhemail; +
+ + &dhfirstname; + &dhsurname; + + + 2004 + &dhusername; + + &dhdate; +
+ + &dhucpackage; + + &dhsection; + + + mh + &dhpackage; + + a home automation program written in Perl + + + + &dhpackage; + + options + + files + + + + DESCRIPTION + + This manual page documents briefly the + &dhpackage; command. + + This manual page was written for the &debian; distribution + because the original program does not have a manual page. + Instead, it has documentation in HTML format in the + /usr/share/doc/misterhouse/docs directory. + + &dhpackage; is a perl program for time, event, + web, and voice based home control functions. Configuration is controled + in the /etc/misterhouse.ini file. See /usr/share/doc/misterhouse/docs/mh.html + for more info. + + + + OPTIONS + + The options may be any of the parameters listed in the /etc/misterhouse.ini file. The files that follow are Perl modules that will be loaded by &dhpackage; at runtime. + + + + SEE ALSO + + Please see the documentation in the /usr/share/doc/misterhouse/docs + directory and on the official MisterHouse website: http://misterhouse.sourceforge.net/. + + + AUTHOR + + This manual page was written by &dhusername; &dhemail; for + the &debian; system (but may be used by others). Permission is + granted to copy, distribute and/or modify this document under + the terms of the &gnu; General Public License, Version 2 any + later version published by the Free Software Foundation. + + + On Debian systems, the complete text of the GNU General Public + License can be found in /usr/share/common-licenses/GPL. + + + +
+ + + + --- misterhouse-2.96.orig/debian/mhpasswd.sh +++ misterhouse-2.96/debian/mhpasswd.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e + +if [ -z "$1" ] ; then + echo "usage: mhpasswd [options]" + echo "man mhpasswd for more info" + exit 1 +fi + +export mh_parms=/etc/misterhouse/mh.ini + +exec /usr/lib/perl5/misterhouse/set_password $* --- misterhouse-2.96.orig/debian/misterhouse.sh +++ misterhouse-2.96/debian/misterhouse.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +set -e + +export mh_parms=/etc/misterhouse/mh.ini + +exec /usr/lib/perl5/misterhouse/mh $* --- misterhouse-2.96.orig/debian/linkify.sh +++ misterhouse-2.96/debian/linkify.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +set -e + +base="$1" +shift +source="$1" +shift +target="$1" +shift + +for file in $base/$source/* ; do + if [ -f $file ] ; then + name=`basename $file` + echo $name + mv $file $base/$target + ln -fs $target/$name $base/$source + fi +done + --- misterhouse-2.96.orig/debian/prerm +++ misterhouse-2.96/debian/prerm @@ -0,0 +1,41 @@ +#! /bin/sh +# prerm script for misterhouse +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|deconfigure) + rmdir $MH_SITE/sounds 2>/dev/null || true + rmdir $MH_SITE/cpde 2>/dev/null || true + rmdir $MH_SITE 2>/dev/null || true + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- misterhouse-2.96.orig/debian/misterhouse.init +++ misterhouse-2.96/debian/misterhouse.init @@ -0,0 +1,58 @@ +#! /bin/sh +# +# misterhouse - control the misterhouse daemon +# +# Written by Miquel van Smoorenburg . +# Modified for Debian +# by Ian Murdock . +# +# Version: @(#)skeleton 1.9 26-Feb-2001 miquels@cistron.nl +# + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/lib/perl5/misterhouse/mh +NAME=misterhouse +DESC=misterhouse +PIDFILE=/var/lib/misterhouse/mh.pid + +test -x $DAEMON || exit 0 + +# Include misterhouse defaults if available +if [ -f /etc/default/misterhouse ] ; then + . /etc/default/misterhouse +fi + +set -e + +export mh_parms=/etc/misterhouse/mh.ini + +case "$1" in + start) + echo -n "Starting $DESC: " + start-stop-daemon --start --quiet --background --exec $DAEMON -- $DAEMON_OPTS + echo "$NAME." + ;; + stop) + echo -n "Stopping $DESC: " + start-stop-daemon --stop --quiet --pidfile $PIDFILE + echo "$NAME." + ;; + reload) + echo "Reloading $DESC configuration files." + kill -HUP `cat $PIDFILE` + ;; + restart|force-reload) + echo -n "Restarting $DESC: " + $0 stop + sleep 2 + $0 start + echo "$NAME." + ;; + *) + N=/etc/init.d/$NAME + echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 --- misterhouse-2.96.orig/debian/copyright +++ misterhouse-2.96/debian/copyright @@ -0,0 +1,28 @@ +This package was debianized by Russ W. Knize on +Mon, 11 Oct 2004 21:04:43 -0500. + +It was downloaded from http://misterhouse.sourceforge.net/download.html + +Copyright: Copyright (C) 1998-2004 Bruce Winter + +Upstream Authors: Bruce Winter, David Norwood, Bill Sobel, Craig Schaeffer, Steve Switzer, Kirk Bauer, Clive Freedman, David Lounsberry, Pete Flaherty, Ron Klinkien, Tim Doyle, Chris Barrett, Chris Witte, Sean Walker, Jason Sharpe, Kent Noonan, Harald Koch, Bob Hughes, Larry Roudebush, Jason Sharpee, Timothy Spaulding, Brian Klier, Brian Rudy, Danal Estes, Tom Vanderpool, Wally Kissel, Brian Paulsen, Jeff Pagel, Kieran Ames, Richard Phillips, Andrew Drummond, Axel Brown, Brad Reed, Doug Nakakihara, Fenghua Zong, Gaetan Lord, Joseph Gaston, Nick Maddock, Robert Rozman, Roger Bille, Scott Johnston, Scott Reston, Bill Birthisel, Bill Young, Ingo Dean, Kevin Wambsganz, Paul Estes, Robert Hughes, Tom Kotowski, Brent DeShazer, Denis Cheong, Dominique Benoliel, Gregg Liming, Jim Duda, Joe Blecher, Richard Koch, Robert Mann, Walter Leemput, Alan Womack, Amauri Viguera, Brent Gross, Brian Paulson, Brian Ujvary, Damon Hopkins, David Satterfield, Douglas Parrish, Evan Graham, James Derrick, Jon Boehm, Marie Martin, Mark Miller, Neil Wrightson, Paul Chamberlain, Ross Towbin, Steven Lee, Bazyle Butcher, Ernie Oporto, Evan Grahaet, Joel Moore, Kees Cook, Kevin Olalde, Lincoln Foreman, Mickey Argo, Ron Wright, Sam Levine, Scott Johnson, Stoll Thomas, Stuart Grimshaw, Thomas Stoll, William Steiner, Alex Hsia, Andy Oldfield, Autrijus Tang, Benny Miller, Brian McKissick, Claes Johansson, Clay Jackson, Dan Wilga, Dave Hall, Douglas Nakakihara, Dree Mistrut, Edward Brookhouse, Floyd Moore, George Clark, Greg Satz, James Armstrong, James Traynor, Jay Archer, Jeff Burricelli, Jeff Crum, Jeff Ferris, Jeffrey Ferris, Joe Doss, Joel Davidson, John Dillenburg, John Edmonds, John McCaskey, Kevin Olande, Kip Gebhardt, Lennart Lopin, Mark Dahmke, Mark Lamourine, Mark Mabry, Neil Cherry, Nic Brink, Norm Dressler, Peter Woodall, Ray Dzek, Riad Wahby, Richard Morgan, Rob Williams, Robert Mecklenburg, Robin Edwards, Ryan Scott, Shane Harrison, Tony Drumm, Alan Simmonds, Amaury Jacquot, Anders Baardsgaard, Andrew McLaren, Another Bill, Ant Skelton, Arch Wireless, Audrey Acid, Bill Bass, Bradford Reed, Brian Rigsby, Brian Warner, Chin Lee, Christopher Kodadek, Christopher Witte, Cleber Schereder, Cliff Carr, Clint Dimick, Cullen Simpson, Dan Ratzlaff, Dan Uribe, Dave Crawford, Dave Lounsberry, David DellaNave, David Kindred, David McLellan, Dean Junk, Dennis Hennen, Don Wilde, Donald Hoffman, Donald Mason, Doug Mackie, Draytek Vigor, Erik Bosrup, Frank Varnavas, Fred Frey, Fred Richards, Fredrik Olsson, Gary Sanders, Geoff Harrison, Greg Limming, Hampton Bay, Henry Laxen, Hollis Morrow, Holly Sommer, Jaco Botha, James Martin, Jason Brunen, Jason Comander, Jeff Siddall, Jeffrey Bertoia, Joel Berry, Joey Smith, John Moore, John Snow, Jon Upham, Jukka Br, Justin Matlock, Ken Schumack, Kyle Kirkland, Lee McLaren, Lee Varga, Lutron Grafik, Marc Mosthav, Mark Day, Mark Holm, Martin Dolphin, Max Kelly, Max Lock, Michael Hughes, Michael Ryan, Mike Bruno, Mike M, Mike Pearce, Monte Freeman, Moved Bruce, Nicholas Brink, Package Manager, Paul Wilkinson, Paul Wong, Piet Delaney, Push Audrey, Raul Rodriguez, Richard Smith, Rob Walker, Ron Wrights, Roy Thompson, Ryan Pomaski, Samuel Bagfors, Sanjay Seth, Scott Kennedy, Scott Tisdale, Srdan Lasic, Stephen Merrony, Steve Flick, Steve Haehnichen, Thomas Bleau, Thomas Caligiuri, Thomas Vogl, Tom Christian, Tom Dunk, Tom Valdes, Tom Witmer, Video Disk, Walter Poxon, William Harford, Yangmin Shen + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 dated June, 1991. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + 02111-1307, USA. + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + --- misterhouse-2.96.orig/debian/control +++ misterhouse-2.96/debian/control @@ -0,0 +1,16 @@ +Source: misterhouse +Section: utils +Priority: optional +Maintainer: Russ W. Knize +Build-Depends-Indep: debhelper (>= 4.0.0), perl (>= 5.8) +Standards-Version: 3.6.1 + +Package: misterhouse +Architecture: all +Depends: ${perl:Depends}, ${shlibs:Depends}, ${misc:Depends}, perl-tk (>= 800.024-1), libterm-readkey-perl (>= 2.21-1), libdbi-perl (>= 1.35-1), libhtml-parser-perl (>= 3.35-1) +Recommends: librrds-perl (>= 1.0.35-1), libgd-perl (>= 1.38-1), tk8.4 (>= 8.4.5-1), libtime-hires-perl (>= 1.20-4), libgd-perl (>= 1.38-5), libdbd-mysql-perl (>= 1.2216-2), libmime-base64-perl (>= 2.12-4) +Description: a home automation program written in Perl + MisterHouse is an open source home automation program. It's fun, it's free, + and it's entirely geeky. Written in Perl, it fires events based on time, web, + socket, voice, and serial data. Perl subroutines and objects are used to + give a powerful programming interface. --- misterhouse-2.96.orig/debian/rules +++ misterhouse-2.96/debian/rules @@ -0,0 +1,137 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + docbook-to-man $(CURDIR)/debian/misterhouse.sgml > $(CURDIR)/misterhouse.1 + docbook-to-man $(CURDIR)/debian/mhpasswd.sgml > $(CURDIR)/mhpasswd.1 + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + rm -f $(CURDIR)/*.1 + rm -rf $(CURDIR)/examples + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Separate the exmaple code from the common code for dh_installexmaples, which is + # broken when dealing with directories IMHO. + mkdir -p $(CURDIR)/examples/code + mkdir -p $(CURDIR)/examples/config + cp -r $(CURDIR)/code/* $(CURDIR)/examples/code + rm -r $(CURDIR)/examples/code/common + + # MisterHouse has a ton of files all over the place. Try to sort through the madness. + cp -r $(CURDIR)/bin/* $(CURDIR)/debian/misterhouse/usr/lib/perl5/misterhouse + cp -r $(CURDIR)/code/common/* $(CURDIR)/debian/misterhouse/usr/share/misterhouse/code + cp -r $(CURDIR)/sounds/* $(CURDIR)/debian/misterhouse/usr/share/misterhouse/sounds + cp -r $(CURDIR)/web/* $(CURDIR)/debian/misterhouse/usr/share/misterhouse/web + cp -r $(CURDIR)/lib/* $(CURDIR)/debian/misterhouse/usr/share/perl5/misterhouse + cp -r $(CURDIR)/data/* $(CURDIR)/debian/misterhouse/var/lib/misterhouse + + # Move the log dir out of data + rm -r $(CURDIR)/debian/misterhouse/var/lib/misterhouse/logs + + # MH has some bugs in the logging code + ln -fs /var/log/misterhouse $(CURDIR)/debian/misterhouse/var/lib/misterhouse/logs + + # Some stuff in data needs to be conffiles, so move them to etc and symlink, + # since MH assumes they are data. + rm $(CURDIR)/debian/misterhouse/var/lib/misterhouse/photo_index.txt + sh $(CURDIR)/debian/linkify.sh $(CURDIR)/debian/misterhouse /var/lib/misterhouse /etc/misterhouse + + # Force correct permissions on scripts + find $(CURDIR)/debian/misterhouse \( -name "*.cgi" -o \ + -name "*.pl" -o \ + -name "*.plx" -o \ + -name "*.tcl" -o \ + -name "alpha_page" -o \ + -name "dailystrips-update" -o \ + -name "play" \) \ + -type f \ + -exec perl $(CURDIR)/debian/fix-executables.pl \{\} \; + + # Move the rest of the exmaples out of /usr/lib/perl5/misterhouse in way that + # makes dh_installexamples not do something stupid. + find $(CURDIR)/debian/misterhouse/usr/lib/perl5/misterhouse -not -perm +111 \ + \( -name "*.pl" -or \ + -name "*.C" \) \ + -type f \ + -exec mv \{\} $(CURDIR)/examples/code \; + find $(CURDIR)/debian/misterhouse/usr/lib/perl5/misterhouse -not -perm +111 \ + -name "*example*.ini" \ + -type f \ + -exec mv \{\} $(CURDIR)/examples/config \; + + # Now the Debian bits + cp $(CURDIR)/debian/mhpasswd.sh $(CURDIR)/debian/misterhouse/usr/bin/mhpasswd + cp $(CURDIR)/debian/misterhouse.sh $(CURDIR)/debian/misterhouse/usr/bin/misterhouse + cp $(CURDIR)/debian/mh.ini $(CURDIR)/debian/misterhouse/etc/misterhouse + cp $(CURDIR)/*.1 $(CURDIR)/debian/misterhouse/usr/share/man/man1 + + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf + dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime + dh_installinit -- defaults 98 02 +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_perl +# dh_python +# dh_makeshlibs + dh_installdeb +# dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep +.PHONY: build clean binary-indep binary install configure --- misterhouse-2.96.orig/debian/docs +++ misterhouse-2.96/debian/docs @@ -0,0 +1 @@ +docs --- misterhouse-2.96.orig/debian/misterhouse.examples +++ misterhouse-2.96/debian/misterhouse.examples @@ -0,0 +1,2 @@ +examples/code +examples/config --- misterhouse-2.96.orig/debian/misterhouse.logrotate +++ misterhouse-2.96/debian/misterhouse.logrotate @@ -0,0 +1,8 @@ +/var/log/misterhouse/*.log { + weekly + rotate 7 + missingok + notifempty + compress + copytruncate +} --- misterhouse-2.96.orig/debian/fix-executables.pl +++ misterhouse-2.96/debian/fix-executables.pl @@ -0,0 +1,15 @@ +#!/usr/bin/perl +# +# The files marked as executeable upstream are random. Here we force scripts +# with a shebang to be executable and the others not. + +my $script = $ARGV[0]; +my $shebang = <>; + +if ($shebang =~ /^#!/) +{ + print "/bin/chmod 755 $script\n"; + exit system("/bin/chmod 755 $script") / 256; +} +print "/bin/chmod 644 $script\n"; +exit system("/bin/chmod 644 $script") / 256; --- misterhouse-2.96.orig/debian/mhpasswd.sgml +++ misterhouse-2.96/debian/mhpasswd.sgml @@ -0,0 +1,155 @@ + manpage.1'. You may view + the manual page with: `docbook-to-man manpage.sgml | nroff -man | + less'. A typical entry in a Makefile or Makefile.am is: + +manpage.1: manpage.sgml + docbook-to-man $< > $@ + + + The docbook-to-man binary is found in the docbook-to-man package. + Please remember that if you create the nroff version in one of the + debian/rules file targets (such as build), you will need to include + docbook-to-man in your Build-Depends control field. + + --> + + + Russ"> + Knize"> + + October 22, 2004"> + + 1"> + rknize@yahoo.com"> + + MHPASSWD"> + + + Debian"> + GNU"> + GPL"> +]> + + + +
+ &dhemail; +
+ + &dhfirstname; + &dhsurname; + + + 2004 + &dhusername; + + &dhdate; +
+ + &dhucpackage; + + &dhsection; + + + &dhpackage; + change user passwords for misterhouse + + + + &dhpackage; + + options + + + + DESCRIPTION + + This manual page documents briefly the + &dhpackage; command. + + This manual page was written for the &debian; distribution + because the original program does not have a manual page. + Instead, it has documentation in HTML format in the + /usr/share/doc/misterhouse/docs directory. + + &dhpackage; is a wrapper script for the set_password tool for misterhouse. If the is not specified, the tool starts a Tk interface. + + + + OPTIONS + + + + + Display a help message. + + + + + + Just check the password, rather than set it. + + + + passwd + + Set the password to passwd. It is not recommended to set passwords via command line arguments + + + + name + + Name of the user whose password to set (defaults to "family"). + + + + file + + File to store encrypted password (defaults to /var/lib/misterhouse/.password. + + + + + + SEE ALSO + misterhouse(1) + + + AUTHOR + + This manual page was written by &dhusername; &dhemail; for + the &debian; system (but may be used by others). Permission is + granted to copy, distribute and/or modify this document under + the terms of the &gnu; General Public License, Version 2 any + later version published by the Free Software Foundation. + + + On Debian systems, the complete text of the GNU General Public + License can be found in /usr/share/common-licenses/GPL. + + + +
+ + + + --- misterhouse-2.96.orig/debian/mh.ini +++ misterhouse-2.96/debian/mh.ini @@ -0,0 +1,142 @@ +# Misterhouse configuration file for Debian +# +# This is just a basic exmaple to get you up and running. Misterhouse is +# extremely configurable. This file simply overrides some of the default +# parameters in the /usr/lib/perl5/misterhouse/mh.ini file. +# + +# +# Put your site-specific files in these directories. +# +# The example code that ships with Misterhouse can be found in +# /usr/share/doc/misterhouse/code +# +code_dir = /usr/local/share/misterhouse/code +sound_dir = /usr/local/share/misterhouse/sounds + +# +# Locale information. See the Misterhouse documentation. +# +latitude = 42.110 +longitude = -88.034 +date_format = mmddyyyy +city = Palatine +state = IL +zip_code = 60074 +local_area_code = 847 +tv_provider_name = Comcast - Rolling Meadows +organizer_email = + +# +# Logging settings. RRD requires RRDs.pm +# +#rrd_dir = /var/log/misterhouse/rrd +no_log = save_state +x10_errata = 5 + +# +# X10 hardware configuration +# +cm11_port = /dev/x10 +W800_module = X10_W800 +W800_port = /dev/w800 +x10_relay_hc = [efg] + +# +# Comma-separated list of regular expression address patterns that are +# considered local. Partial IP addresses may be used to specify subnets. +# Patterns should start with a carret '^' and periods '.' should be +# escaped with a backslash '\'. +# +local_addresses = ^127\.0\.0\.1 + +# +# Debian-specific paths. Don't touch unless you know what you are doing! +# +code_dir_common = /usr/share/misterhouse/code +data_dir = /var/lib/misterhouse +lib_dir = /usr/share/perl5/misterhouse +organizer_dir = /var/lib/misterhouse/organizer +sound_dir_common = /usr/share/misterhouse/sounds +state_file = /var/lib/misterhouse/states.list +xcmd_file=/tmp/house_cmd.txt + +# Security +disabled_commands = /var/lib/misterhouse/disabled_commands +password_file = /var/lib/misterhouse/.password +password_allow_file = /var/lib/misterhouse/password_allow + +# Telephony +area_code_file = /var/lib/misterhouse/phone/phone.area_codes.list +caller_id_file = /var/lib/misterhouse/phone/phone.caller_id.list +caller_id_reject_file = /var/lib/misterhouse/phone/phone.caller_id_reject.list +caller_id_format = last first + +# Sound +mp3_program = /usr/bin/xmms +mp3_dir = /export/media/music +slimserver_server = localhost:9000 +slimserver_player = squeezebox +sound_program = + +# Voice +voice_names = male=>male1, mike=>male1, sam=>male2, elder_male=>male3, mary=>female +pronouncable_list_file = /var/lib/misterhouse/pronouncable_words.list +speak_apps_default = +speak_apps = + +# +# Web server configuration +# +http_address = +http_port = 8080 +http_server = orion +proxy = + +html_refresh_rate = 60 +html_status_refresh = 60 + +# +# Email configuration +# +net_mail_account_1_server = pop.incoming.net +net_mail_account_1_server_port = 110 +net_mail_account_1_server_send = smtp.outgoing.net +net_mail_account_1_server_send_port = 25 +net_mail_account_1_user = +net_mail_account_1_password = +net_mail_account_1_address = someone@somewhere.net +net_mail_account_1_password_encrypt = PLAIN +net_mail_account_1_server_ping = off + +# +# Where the web server can find various files +# +html_dir = /usr/share/misterhouse/web +html_alias_code = /usr/share/misterhouse/code +html_alias_comics = /usr/share/misterhouse/web/comics +html_alias_docs = /usr/share/doc/misterhouse/docs +html_alias_graphics = /usr/share/misterhouse/web/graphics +html_alias_lib = /usr/share/perl5/misterhouse +html_alias_photos = /usr/local/share/misterhouse/photos +html_alias_rrd = /var/log/misterhouse/rrd + +button_template = /usr/share/misterhouse/web/graphics/blank_textbutton.png +icons_dir = /usr/share/misterhouse/web/graphics/icons +photo_index = /var/lib/misterhouse/photo_index.txt + +# +# Disable the Tk and GD GUI +# +tk = 0 +gd = 0 + +# +# Modules from which to receive debugging information +# +debug = + +# +# Any of the other parameters in /usr/share/misterhouse/bin/mh.ini can be +# overridden here. +#
$a$a{$a}
$a$a{$a}
$a$a{$a}