From e2ccb51b48c3f9e66da52a2554d1ea18f71c43ba Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 10 Jan 2004 00:32:50 +0000 Subject: Make it an autoconf pacakage git-svn-id: file:///home/lennart/svn/public/ivam2/trunk@25 dbf6933d-3bce-0310-9bcc-ed052ba35b35 --- clients/Makefile.am | 30 ++++++++++++++++++++++++++++++ clients/ivam-autobox | 20 +++++++++++++++++++- clients/ivam-createvb | 21 ++++++++++++++++++++- clients/ivam-echo | 18 ++++++++++++++++++ clients/ivam-newmessage | 22 +++++++++++----------- clients/ivam-newvoicebox | 23 +++++++++++------------ clients/ivam-play | 18 ++++++++++++++++++ clients/ivam-voicebox | 18 ++++++++++++++++++ clients/ivamApi.py | 17 +++++++++++++++++ clients/ivamCore.py | 17 +++++++++++++++++ clients/ivamDefs.py | 5 ----- clients/ivamDefs.py.in | 22 ++++++++++++++++++++++ clients/ivamPipeConnector.py | 17 +++++++++++++++++ clients/ivamShbufConnector.py | 17 +++++++++++++++++ clients/ivamUtil.py | 17 +++++++++++++++++ clients/ivamVoiceBox.py | 17 +++++++++++++++++ 16 files changed, 269 insertions(+), 30 deletions(-) create mode 100644 clients/Makefile.am delete mode 100644 clients/ivamDefs.py create mode 100644 clients/ivamDefs.py.in (limited to 'clients') diff --git a/clients/Makefile.am b/clients/Makefile.am new file mode 100644 index 0000000..5e6e347 --- /dev/null +++ b/clients/Makefile.am @@ -0,0 +1,30 @@ +# $Id$ +# +# This file is part of ivam2. +# +# ivam2 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; either version 2 of the License, or +# (at your option) any later version. +# +# ivam2 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 ivam2; if not, write to the Free Software Foundation, +# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. + +bin_SCRIPTS=ivam-autobox ivam-createvb ivam-echo ivam-newmessage ivam-newvoicebox ivam-play ivam-voicebox + +STATICSCRIPTS=ivamApi.py ivamCore.py ivamDefs.py ivamPipeConnector.py ivamShbufConnector.py ivamUtil.py ivamVoiceBox.py +python_PYTHON=$(STATICSCRIPTS) ivamDefs.py + +EXTRA_DIST=$(bin_SCRIPTS) $(STATICSCRIPTS) +CLEANFILES = ivamDefs.py + +ivamDefs.py: ivamDefs.py.in Makefile + sed -e 's,@SPOOLDIR\@,$(SPOOLDIR),g' \ + -e 's,@pkgdatadir\@,$(pkgdatadir),g' \ + -e 's,@bindir\@,$(bindir),g' $< > $@ diff --git a/clients/ivam-autobox b/clients/ivam-autobox index 4b043d2..49eaf22 100755 --- a/clients/ivam-autobox +++ b/clients/ivam-autobox @@ -1,5 +1,23 @@ #!/usr/bin/python +# $Id$ +# +# This file is part of ivam2. +# +# ivam2 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; either version 2 of the License, or +# (at your option) any later version. +# +# ivam2 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 ivam2; if not, write to the Free Software Foundation, +# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. + import sys, os, getopt from ivamCore import log @@ -20,7 +38,7 @@ def parseArgs(vb, argv): recordTime = 60 pin = "-" email = "root" - notifyScript = "newvoicebox" + notifyScript = "ivam-newvoicebox" for o, a in opts: if o in ("-d", "--debug"): diff --git a/clients/ivam-createvb b/clients/ivam-createvb index 7365db6..1344b2c 100755 --- a/clients/ivam-createvb +++ b/clients/ivam-createvb @@ -1,6 +1,25 @@ #!/usr/bin/python +# $Id$ +# +# This file is part of ivam2. +# +# ivam2 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; either version 2 of the License, or +# (at your option) any later version. +# +# ivam2 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 ivam2; if not, write to the Free Software Foundation, +# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. + +import sys import ivamVoiceBox -ivamVoiceBox.setupVoiceBox("lennart") +ivamVoiceBox.setupVoiceBox(sys.argv[1]) diff --git a/clients/ivam-echo b/clients/ivam-echo index b0f3e40..fe0e379 100755 --- a/clients/ivam-echo +++ b/clients/ivam-echo @@ -1,3 +1,21 @@ #!/bin/sh +# $Id$ +# +# This file is part of ivam2. +# +# ivam2 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; either version 2 of the License, or +# (at your option) any later version. +# +# ivam2 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 ivam2; if not, write to the Free Software Foundation, +# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. + exec cat diff --git a/clients/ivam-newmessage b/clients/ivam-newmessage index b5101a5..9fb3042 100755 --- a/clients/ivam-newmessage +++ b/clients/ivam-newmessage @@ -2,20 +2,20 @@ # $Id$ # -# This file is part of ivam. -# -# asd 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; either version 2 of the License, or (at your -# option) any later version. +# This file is part of ivam2. # -# asd 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. +# ivam2 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; either version 2 of the License, or +# (at your option) any later version. +# +# ivam2 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 ivam; if not, write to the Free Software Foundation, +# along with ivam2; if not, write to the Free Software Foundation, # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. diff --git a/clients/ivam-newvoicebox b/clients/ivam-newvoicebox index 0f6ccde..e01f2a4 100755 --- a/clients/ivam-newvoicebox +++ b/clients/ivam-newvoicebox @@ -2,23 +2,22 @@ # $Id$ # -# This file is part of ivam. -# -# asd 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; either version 2 of the License, or (at your -# option) any later version. +# This file is part of ivam2. # -# asd 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. +# ivam2 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; either version 2 of the License, or +# (at your option) any later version. +# +# ivam2 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 ivam; if not, write to the Free Software Foundation, +# along with ivam2; if not, write to the Free Software Foundation, # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. - if [ ! -d "$1" ] ; then echo "New spool directory not found or not readable." > /dev/stderr exit 1 diff --git a/clients/ivam-play b/clients/ivam-play index 043ffbe..96fde4e 100755 --- a/clients/ivam-play +++ b/clients/ivam-play @@ -1,3 +1,21 @@ #!/bin/sh +# $Id$ +# +# This file is part of ivam2. +# +# ivam2 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; either version 2 of the License, or +# (at your option) any later version. +# +# ivam2 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 ivam2; if not, write to the Free Software Foundation, +# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. + exec zcat -f "$1" diff --git a/clients/ivam-voicebox b/clients/ivam-voicebox index be2c2eb..e0f398e 100755 --- a/clients/ivam-voicebox +++ b/clients/ivam-voicebox @@ -1,5 +1,23 @@ #!/usr/bin/python +# $Id$ +# +# This file is part of ivam2. +# +# ivam2 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; either version 2 of the License, or +# (at your option) any later version. +# +# ivam2 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 ivam2; if not, write to the Free Software Foundation, +# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. + import sys, os, getopt from ivamCore import log diff --git a/clients/ivamApi.py b/clients/ivamApi.py index 97534ff..6646b84 100644 --- a/clients/ivamApi.py +++ b/clients/ivamApi.py @@ -1,3 +1,20 @@ +# $Id$ +# +# This file is part of ivam2. +# +# ivam2 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; either version 2 of the License, or +# (at your option) any later version. +# +# ivam2 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 ivam2; if not, write to the Free Software Foundation, +# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. class Processor: diff --git a/clients/ivamCore.py b/clients/ivamCore.py index 972c156..48f38dc 100644 --- a/clients/ivamCore.py +++ b/clients/ivamCore.py @@ -1,3 +1,20 @@ +# $Id$ +# +# This file is part of ivam2. +# +# ivam2 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; either version 2 of the License, or +# (at your option) any later version. +# +# ivam2 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 ivam2; if not, write to the Free Software Foundation, +# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. import sys, os diff --git a/clients/ivamDefs.py b/clients/ivamDefs.py deleted file mode 100644 index c161467..0000000 --- a/clients/ivamDefs.py +++ /dev/null @@ -1,5 +0,0 @@ - -spoolDirectory = "/home/lennart/tmp/ivam-spool" -ulawDirectory = "/home/lennart/projects/ivam-reloaded/ulaw" -shareDirectory = "/home/lennart/projects/ivam-reloaded/doc" -binDirectory = "/home/lennart/projects/ivam-reloaded/clients" diff --git a/clients/ivamDefs.py.in b/clients/ivamDefs.py.in new file mode 100644 index 0000000..08edbb7 --- /dev/null +++ b/clients/ivamDefs.py.in @@ -0,0 +1,22 @@ +# $Id$ +# +# This file is part of ivam2. +# +# ivam2 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; either version 2 of the License, or +# (at your option) any later version. +# +# ivam2 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 ivam2; if not, write to the Free Software Foundation, +# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. + +spoolDirectory = "@SPOOLDIR@" +ulawDirectory = "@pkgdatadir@/ulaw" +shareDirectory = "@pkgdatadir@" +binDirectory = "@bindir@" diff --git a/clients/ivamPipeConnector.py b/clients/ivamPipeConnector.py index 91445ba..7d3cb5f 100644 --- a/clients/ivamPipeConnector.py +++ b/clients/ivamPipeConnector.py @@ -1,3 +1,20 @@ +# $Id$ +# +# This file is part of ivam2. +# +# ivam2 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; either version 2 of the License, or +# (at your option) any later version. +# +# ivam2 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 ivam2; if not, write to the Free Software Foundation, +# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. import os, sys, time, select, signal, gzip diff --git a/clients/ivamShbufConnector.py b/clients/ivamShbufConnector.py index feef521..b979be9 100644 --- a/clients/ivamShbufConnector.py +++ b/clients/ivamShbufConnector.py @@ -1,3 +1,20 @@ +# $Id$ +# +# This file is part of ivam2. +# +# ivam2 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; either version 2 of the License, or +# (at your option) any later version. +# +# ivam2 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 ivam2; if not, write to the Free Software Foundation, +# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. from ivamApi import ivamConnector diff --git a/clients/ivamUtil.py b/clients/ivamUtil.py index 053638e..1e5093e 100644 --- a/clients/ivamUtil.py +++ b/clients/ivamUtil.py @@ -1,3 +1,20 @@ +# $Id$ +# +# This file is part of ivam2. +# +# ivam2 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; either version 2 of the License, or +# (at your option) any later version. +# +# ivam2 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 ivam2; if not, write to the Free Software Foundation, +# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. import gzip diff --git a/clients/ivamVoiceBox.py b/clients/ivamVoiceBox.py index b05de03..75601b9 100644 --- a/clients/ivamVoiceBox.py +++ b/clients/ivamVoiceBox.py @@ -1,3 +1,20 @@ +# $Id$ +# +# This file is part of ivam2. +# +# ivam2 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; either version 2 of the License, or +# (at your option) any later version. +# +# ivam2 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 ivam2; if not, write to the Free Software Foundation, +# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. import getopt, sys, os, time, re import ivamApi, ivamCore, ivamDefs -- cgit