summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-01-10 00:32:50 +0000
committerLennart Poettering <lennart@poettering.net>2004-01-10 00:32:50 +0000
commite2ccb51b48c3f9e66da52a2554d1ea18f71c43ba (patch)
treedbc5284025e5e1388a1d510417d4e3e8c6a3756b /src
parent2104b80446dfd4bbc26d0d75691de4b4603a30f5 (diff)
Make it an autoconf pacakage
git-svn-id: file:///home/lennart/svn/public/ivam2/trunk@25 dbf6933d-3bce-0310-9bcc-ed052ba35b35
Diffstat (limited to 'src')
-rw-r--r--src/Makefile740
-rw-r--r--src/Makefile.am40
-rw-r--r--src/buffio.c24
-rw-r--r--src/buffio.h20
-rw-r--r--src/dle.c24
-rw-r--r--src/dle.h20
-rw-r--r--src/dtmffifo.c30
-rw-r--r--src/dtmffifo.h20
-rw-r--r--src/exec.c26
-rw-r--r--src/exec.h20
-rw-r--r--src/ivamd.ggo8
-rw-r--r--src/lock.c33
-rw-r--r--src/lock.h20
-rw-r--r--src/main.c52
-rw-r--r--src/main.h20
-rw-r--r--src/modem.c24
-rw-r--r--src/modem.h20
-rw-r--r--src/modemman.c24
-rw-r--r--src/modemman.h20
-rw-r--r--src/msntab.c24
-rw-r--r--src/msntab.h20
-rw-r--r--src/timevalarith.c24
-rw-r--r--src/timevalarith.h20
-rw-r--r--src/util.c24
-rw-r--r--src/util.h20
25 files changed, 1296 insertions, 21 deletions
diff --git a/src/Makefile b/src/Makefile
index 8dcb48e..5e2f44d 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,14 +1,736 @@
-CC=gcc
-CFLAGS=`pkg-config --cflags libdaemon liboop` -Wall -O0 -pipe -g
-LIBS=`pkg-config --libs libdaemon liboop` -Wall -O0 -pipe -g
+# Makefile.in generated by automake 1.7.9 from Makefile.am.
+# src/Makefile. Generated from Makefile.in by configure.
-ivamd: modem.o main.o modemman.o buffio.o exec.o dle.o lock.o util.o msntab.o timevalarith.o dtmffifo.o cmdline.o
- $(CC) $(LIBS) -o $@ $^
+# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
+# Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
-cmdline.c cmdline.h: ivamd.ggo
- gengetopt < $<
-clean:
- rm -f *.o ivamd
+# $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.
+
+srcdir = .
+top_srcdir = ..
+
+pkgdatadir = $(datadir)/ivam2
+pkglibdir = $(libdir)/ivam2
+pkgincludedir = $(includedir)/ivam2
+top_builddir = ..
+
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+INSTALL = /usr/bin/install -c
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+am__append_1 = cmdline.c cmdline.h
+am__append_2 = cmdline.c cmdline.h
+ACLOCAL = ${SHELL} /home/lennart/projects/ivam2/missing --run aclocal-1.7
+ALLOCA =
+AMDEP_FALSE = #
+AMDEP_TRUE =
+AMTAR = ${SHELL} /home/lennart/projects/ivam2/missing --run tar
+AUTOCONF = ${SHELL} /home/lennart/projects/ivam2/missing --run autoconf
+AUTOHEADER = ${SHELL} /home/lennart/projects/ivam2/missing --run autoheader
+AUTOMAKE = ${SHELL} /home/lennart/projects/ivam2/missing --run automake-1.7
+AWK = gawk
+CC = gcc
+CCDEPMODE = depmode=gcc3
+CFLAGS = -g -O2 -pipe -Wall
+CPP = gcc -E
+CPPFLAGS =
+CYGPATH_W = echo
+DEFS = -DHAVE_CONFIG_H
+DEPDIR = .deps
+ECHO_C =
+ECHO_N = -n
+ECHO_T =
+EGREP = grep -E
+EXEEXT =
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s
+LDFLAGS =
+LIBDAEMON_CFLAGS = -D_REENTRANT -I/usr/local/stow/libdaemon-0.4/include/libdaemon
+LIBDAEMON_LIBS = -L/usr/local/stow/libdaemon-0.4/lib -ldaemon
+LIBOBJS =
+LIBOOP_CFLAGS = -D_REENTRANT -I/home/lennart/usr/stow/liboop-dev/include
+LIBOOP_LIBS = -L/home/lennart/usr/stow/liboop-dev/lib -lpthread -loop
+LIBS =
+LN_S = ln -s
+LOCKDIR = /var/lock
+LTLIBOBJS =
+MAKEINFO = ${SHELL} /home/lennart/projects/ivam2/missing --run makeinfo
+OBJEXT = o
+PACKAGE = ivam2
+PACKAGE_BUGREPORT = mzvinzgjb (at) 0pointer (dot) de
+PACKAGE_NAME = ivam2
+PACKAGE_STRING = ivam2 0.1
+PACKAGE_TARNAME = ivam2
+PACKAGE_URL = http://0pointer.de/lennart/projects/ivam2/
+PACKAGE_VERSION = 0.1
+PATH_SEPARATOR = :
+PKG_CONFIG = /usr/bin/pkg-config
+PYTHON = /usr/bin/python
+PYTHON_EXEC_PREFIX = ${exec_prefix}
+PYTHON_PLATFORM = linux2
+PYTHON_PREFIX = ${prefix}
+PYTHON_VERSION = 2.3
+SET_MAKE =
+SHELL = /bin/sh
+SPOOLDIR = /var/spool/ivam2
+STRIP =
+SYSINITDIR = /etc/init.d
+USE_GENGETOPT_FALSE = #
+USE_GENGETOPT_TRUE =
+USE_LYNX_FALSE = #
+USE_LYNX_TRUE =
+USE_XMLTOMAN_FALSE = #
+USE_XMLTOMAN_TRUE =
+VERSION = 0.1
+ac_ct_CC = gcc
+ac_ct_STRIP =
+am__fastdepCC_FALSE = #
+am__fastdepCC_TRUE =
+am__include = include
+am__leading_dot = .
+am__quote =
+bindir = ${exec_prefix}/bin
+build_alias =
+datadir = ${prefix}/share
+exec_prefix = ${prefix}
+have_gengetopt = yes
+have_lynx = yes
+have_xmltoman = yes
+host_alias =
+includedir = ${prefix}/include
+infodir = ${prefix}/info
+install_sh = /home/lennart/projects/ivam2/install-sh
+libdir = ${exec_prefix}/lib
+libexecdir = ${exec_prefix}/libexec
+localstatedir = ${prefix}/var
+mandir = ${prefix}/man
+oldincludedir = /usr/include
+pkgpyexecdir = ${pyexecdir}/ivam2
+pkgpythondir = ${pythondir}/ivam2
+prefix = /usr/local/stow/ivam2-0.1
+program_transform_name = s,x,x,
+pyexecdir = ${exec_prefix}/lib/python2.3/site-packages
+pythondir = ${prefix}/lib/python2.3/site-packages
+sbindir = ${exec_prefix}/sbin
+sharedstatedir = ${prefix}/com
+sysconfdir = /etc
+target_alias =
+
+sbin_PROGRAMS = ivamd
+
+ivamd_SOURCES = buffio.c dle.c exec.c main.c modemman.c timevalarith.c cmdline.c dtmffifo.c lock.c modem.c msntab.c util.c \
+ buffio.h dle.h exec.h main.h modemman.h timevalarith.h cmdline.h dtmffifo.h lock.h modem.h msntab.h util.h
+
+
+ivamd_LDADD = $(LIBOOP_LIBS) $(LIBDAEMON_LIBS)
+ivamd_CFLAGS = $(LIBOOP_CFLAGS) $(LIBDAEMON_CFLAGS) $(AM_CFLAGS) -DPKGSYSCONFDIR="\"${sysconfdir}/ivam2\"" -DLOCKDIR="\"$(LOCKDIR)\"" -DBINDIR="\"$(bindir)\""
+
+EXTRA_DIST = ivamd.ggo
+MAINTAINERCLEANFILES =
+BUILT_SOURCES = $(am__append_2)
+CLEANFILES = $(am__append_1)
+subdir = src
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+sbin_PROGRAMS = ivamd$(EXEEXT)
+PROGRAMS = $(sbin_PROGRAMS)
+
+am_ivamd_OBJECTS = ivamd-buffio.$(OBJEXT) ivamd-dle.$(OBJEXT) \
+ ivamd-exec.$(OBJEXT) ivamd-main.$(OBJEXT) \
+ ivamd-modemman.$(OBJEXT) ivamd-timevalarith.$(OBJEXT) \
+ ivamd-cmdline.$(OBJEXT) ivamd-dtmffifo.$(OBJEXT) \
+ ivamd-lock.$(OBJEXT) ivamd-modem.$(OBJEXT) \
+ ivamd-msntab.$(OBJEXT) ivamd-util.$(OBJEXT)
+ivamd_OBJECTS = $(am_ivamd_OBJECTS)
+ivamd_DEPENDENCIES =
+ivamd_LDFLAGS =
+
+DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
+depcomp = $(SHELL) $(top_srcdir)/depcomp
+am__depfiles_maybe = depfiles
+DEP_FILES = ./$(DEPDIR)/ivamd-buffio.Po \
+ ./$(DEPDIR)/ivamd-cmdline.Po \
+ ./$(DEPDIR)/ivamd-dle.Po \
+ ./$(DEPDIR)/ivamd-dtmffifo.Po \
+ ./$(DEPDIR)/ivamd-exec.Po ./$(DEPDIR)/ivamd-lock.Po \
+ ./$(DEPDIR)/ivamd-main.Po \
+ ./$(DEPDIR)/ivamd-modem.Po \
+ ./$(DEPDIR)/ivamd-modemman.Po \
+ ./$(DEPDIR)/ivamd-msntab.Po \
+ ./$(DEPDIR)/ivamd-timevalarith.Po \
+ ./$(DEPDIR)/ivamd-util.Po
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
+DIST_SOURCES = $(ivamd_SOURCES)
+DIST_COMMON = $(srcdir)/Makefile.in Makefile.am
+SOURCES = $(ivamd_SOURCES)
+
+all: $(BUILT_SOURCES)
+ $(MAKE) $(AM_MAKEFLAGS) all-am
+
+.SUFFIXES:
+.SUFFIXES: .c .o .obj
+$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --foreign src/Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
+sbinPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
+install-sbinPROGRAMS: $(sbin_PROGRAMS)
+ @$(NORMAL_INSTALL)
+ $(mkinstalldirs) $(DESTDIR)$(sbindir)
+ @list='$(sbin_PROGRAMS)'; for p in $$list; do \
+ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
+ if test -f $$p \
+ ; then \
+ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
+ echo " $(INSTALL_PROGRAM_ENV) $(sbinPROGRAMS_INSTALL) $$p $(DESTDIR)$(sbindir)/$$f"; \
+ $(INSTALL_PROGRAM_ENV) $(sbinPROGRAMS_INSTALL) $$p $(DESTDIR)$(sbindir)/$$f || exit 1; \
+ else :; fi; \
+ done
+
+uninstall-sbinPROGRAMS:
+ @$(NORMAL_UNINSTALL)
+ @list='$(sbin_PROGRAMS)'; for p in $$list; do \
+ f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
+ echo " rm -f $(DESTDIR)$(sbindir)/$$f"; \
+ rm -f $(DESTDIR)$(sbindir)/$$f; \
+ done
+
+clean-sbinPROGRAMS:
+ -test -z "$(sbin_PROGRAMS)" || rm -f $(sbin_PROGRAMS)
+ivamd$(EXEEXT): $(ivamd_OBJECTS) $(ivamd_DEPENDENCIES)
+ @rm -f ivamd$(EXEEXT)
+ $(LINK) $(ivamd_LDFLAGS) $(ivamd_OBJECTS) $(ivamd_LDADD) $(LIBS)
+
+mostlyclean-compile:
+ -rm -f *.$(OBJEXT) core *.core
+
+distclean-compile:
+ -rm -f *.tab.c
+
+include ./$(DEPDIR)/ivamd-buffio.Po
+include ./$(DEPDIR)/ivamd-cmdline.Po
+include ./$(DEPDIR)/ivamd-dle.Po
+include ./$(DEPDIR)/ivamd-dtmffifo.Po
+include ./$(DEPDIR)/ivamd-exec.Po
+include ./$(DEPDIR)/ivamd-lock.Po
+include ./$(DEPDIR)/ivamd-main.Po
+include ./$(DEPDIR)/ivamd-modem.Po
+include ./$(DEPDIR)/ivamd-modemman.Po
+include ./$(DEPDIR)/ivamd-msntab.Po
+include ./$(DEPDIR)/ivamd-timevalarith.Po
+include ./$(DEPDIR)/ivamd-util.Po
+
+.c.o:
+ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
+ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
+ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
+ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
+ fi
+# source='$<' object='$@' libtool=no \
+# depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' \
+# $(CCDEPMODE) $(depcomp) \
+# $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<
+
+.c.obj:
+ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
+ -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \
+ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
+ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
+ fi
+# source='$<' object='$@' libtool=no \
+# depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' \
+# $(CCDEPMODE) $(depcomp) \
+# $(COMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`
+
+ivamd-buffio.o: buffio.c
+ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -MT ivamd-buffio.o -MD -MP -MF "$(DEPDIR)/ivamd-buffio.Tpo" \
+ -c -o ivamd-buffio.o `test -f 'buffio.c' || echo '$(srcdir)/'`buffio.c; \
+ then mv -f "$(DEPDIR)/ivamd-buffio.Tpo" "$(DEPDIR)/ivamd-buffio.Po"; \
+ else rm -f "$(DEPDIR)/ivamd-buffio.Tpo"; exit 1; \
+ fi
+# source='buffio.c' object='ivamd-buffio.o' libtool=no \
+# depfile='$(DEPDIR)/ivamd-buffio.Po' tmpdepfile='$(DEPDIR)/ivamd-buffio.TPo' \
+# $(CCDEPMODE) $(depcomp) \
+# $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -c -o ivamd-buffio.o `test -f 'buffio.c' || echo '$(srcdir)/'`buffio.c
+
+ivamd-buffio.obj: buffio.c
+ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -MT ivamd-buffio.obj -MD -MP -MF "$(DEPDIR)/ivamd-buffio.Tpo" \
+ -c -o ivamd-buffio.obj `if test -f 'buffio.c'; then $(CYGPATH_W) 'buffio.c'; else $(CYGPATH_W) '$(srcdir)/buffio.c'; fi`; \
+ then mv -f "$(DEPDIR)/ivamd-buffio.Tpo" "$(DEPDIR)/ivamd-buffio.Po"; \
+ else rm -f "$(DEPDIR)/ivamd-buffio.Tpo"; exit 1; \
+ fi
+# source='buffio.c' object='ivamd-buffio.obj' libtool=no \
+# depfile='$(DEPDIR)/ivamd-buffio.Po' tmpdepfile='$(DEPDIR)/ivamd-buffio.TPo' \
+# $(CCDEPMODE) $(depcomp) \
+# $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -c -o ivamd-buffio.obj `if test -f 'buffio.c'; then $(CYGPATH_W) 'buffio.c'; else $(CYGPATH_W) '$(srcdir)/buffio.c'; fi`
+
+ivamd-dle.o: dle.c
+ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -MT ivamd-dle.o -MD -MP -MF "$(DEPDIR)/ivamd-dle.Tpo" \
+ -c -o ivamd-dle.o `test -f 'dle.c' || echo '$(srcdir)/'`dle.c; \
+ then mv -f "$(DEPDIR)/ivamd-dle.Tpo" "$(DEPDIR)/ivamd-dle.Po"; \
+ else rm -f "$(DEPDIR)/ivamd-dle.Tpo"; exit 1; \
+ fi
+# source='dle.c' object='ivamd-dle.o' libtool=no \
+# depfile='$(DEPDIR)/ivamd-dle.Po' tmpdepfile='$(DEPDIR)/ivamd-dle.TPo' \
+# $(CCDEPMODE) $(depcomp) \
+# $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -c -o ivamd-dle.o `test -f 'dle.c' || echo '$(srcdir)/'`dle.c
+
+ivamd-dle.obj: dle.c
+ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -MT ivamd-dle.obj -MD -MP -MF "$(DEPDIR)/ivamd-dle.Tpo" \
+ -c -o ivamd-dle.obj `if test -f 'dle.c'; then $(CYGPATH_W) 'dle.c'; else $(CYGPATH_W) '$(srcdir)/dle.c'; fi`; \
+ then mv -f "$(DEPDIR)/ivamd-dle.Tpo" "$(DEPDIR)/ivamd-dle.Po"; \
+ else rm -f "$(DEPDIR)/ivamd-dle.Tpo"; exit 1; \
+ fi
+# source='dle.c' object='ivamd-dle.obj' libtool=no \
+# depfile='$(DEPDIR)/ivamd-dle.Po' tmpdepfile='$(DEPDIR)/ivamd-dle.TPo' \
+# $(CCDEPMODE) $(depcomp) \
+# $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -c -o ivamd-dle.obj `if test -f 'dle.c'; then $(CYGPATH_W) 'dle.c'; else $(CYGPATH_W) '$(srcdir)/dle.c'; fi`
+
+ivamd-exec.o: exec.c
+ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -MT ivamd-exec.o -MD -MP -MF "$(DEPDIR)/ivamd-exec.Tpo" \
+ -c -o ivamd-exec.o `test -f 'exec.c' || echo '$(srcdir)/'`exec.c; \
+ then mv -f "$(DEPDIR)/ivamd-exec.Tpo" "$(DEPDIR)/ivamd-exec.Po"; \
+ else rm -f "$(DEPDIR)/ivamd-exec.Tpo"; exit 1; \
+ fi
+# source='exec.c' object='ivamd-exec.o' libtool=no \
+# depfile='$(DEPDIR)/ivamd-exec.Po' tmpdepfile='$(DEPDIR)/ivamd-exec.TPo' \
+# $(CCDEPMODE) $(depcomp) \
+# $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -c -o ivamd-exec.o `test -f 'exec.c' || echo '$(srcdir)/'`exec.c
+
+ivamd-exec.obj: exec.c
+ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -MT ivamd-exec.obj -MD -MP -MF "$(DEPDIR)/ivamd-exec.Tpo" \
+ -c -o ivamd-exec.obj `if test -f 'exec.c'; then $(CYGPATH_W) 'exec.c'; else $(CYGPATH_W) '$(srcdir)/exec.c'; fi`; \
+ then mv -f "$(DEPDIR)/ivamd-exec.Tpo" "$(DEPDIR)/ivamd-exec.Po"; \
+ else rm -f "$(DEPDIR)/ivamd-exec.Tpo"; exit 1; \
+ fi
+# source='exec.c' object='ivamd-exec.obj' libtool=no \
+# depfile='$(DEPDIR)/ivamd-exec.Po' tmpdepfile='$(DEPDIR)/ivamd-exec.TPo' \
+# $(CCDEPMODE) $(depcomp) \
+# $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -c -o ivamd-exec.obj `if test -f 'exec.c'; then $(CYGPATH_W) 'exec.c'; else $(CYGPATH_W) '$(srcdir)/exec.c'; fi`
+
+ivamd-main.o: main.c
+ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -MT ivamd-main.o -MD -MP -MF "$(DEPDIR)/ivamd-main.Tpo" \
+ -c -o ivamd-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c; \
+ then mv -f "$(DEPDIR)/ivamd-main.Tpo" "$(DEPDIR)/ivamd-main.Po"; \
+ else rm -f "$(DEPDIR)/ivamd-main.Tpo"; exit 1; \
+ fi
+# source='main.c' object='ivamd-main.o' libtool=no \
+# depfile='$(DEPDIR)/ivamd-main.Po' tmpdepfile='$(DEPDIR)/ivamd-main.TPo' \
+# $(CCDEPMODE) $(depcomp) \
+# $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -c -o ivamd-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c
+
+ivamd-main.obj: main.c
+ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -MT ivamd-main.obj -MD -MP -MF "$(DEPDIR)/ivamd-main.Tpo" \
+ -c -o ivamd-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`; \
+ then mv -f "$(DEPDIR)/ivamd-main.Tpo" "$(DEPDIR)/ivamd-main.Po"; \
+ else rm -f "$(DEPDIR)/ivamd-main.Tpo"; exit 1; \
+ fi
+# source='main.c' object='ivamd-main.obj' libtool=no \
+# depfile='$(DEPDIR)/ivamd-main.Po' tmpdepfile='$(DEPDIR)/ivamd-main.TPo' \
+# $(CCDEPMODE) $(depcomp) \
+# $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -c -o ivamd-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`
+
+ivamd-modemman.o: modemman.c
+ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -MT ivamd-modemman.o -MD -MP -MF "$(DEPDIR)/ivamd-modemman.Tpo" \
+ -c -o ivamd-modemman.o `test -f 'modemman.c' || echo '$(srcdir)/'`modemman.c; \
+ then mv -f "$(DEPDIR)/ivamd-modemman.Tpo" "$(DEPDIR)/ivamd-modemman.Po"; \
+ else rm -f "$(DEPDIR)/ivamd-modemman.Tpo"; exit 1; \
+ fi
+# source='modemman.c' object='ivamd-modemman.o' libtool=no \
+# depfile='$(DEPDIR)/ivamd-modemman.Po' tmpdepfile='$(DEPDIR)/ivamd-modemman.TPo' \
+# $(CCDEPMODE) $(depcomp) \
+# $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -c -o ivamd-modemman.o `test -f 'modemman.c' || echo '$(srcdir)/'`modemman.c
+
+ivamd-modemman.obj: modemman.c
+ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -MT ivamd-modemman.obj -MD -MP -MF "$(DEPDIR)/ivamd-modemman.Tpo" \
+ -c -o ivamd-modemman.obj `if test -f 'modemman.c'; then $(CYGPATH_W) 'modemman.c'; else $(CYGPATH_W) '$(srcdir)/modemman.c'; fi`; \
+ then mv -f "$(DEPDIR)/ivamd-modemman.Tpo" "$(DEPDIR)/ivamd-modemman.Po"; \
+ else rm -f "$(DEPDIR)/ivamd-modemman.Tpo"; exit 1; \
+ fi
+# source='modemman.c' object='ivamd-modemman.obj' libtool=no \
+# depfile='$(DEPDIR)/ivamd-modemman.Po' tmpdepfile='$(DEPDIR)/ivamd-modemman.TPo' \
+# $(CCDEPMODE) $(depcomp) \
+# $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -c -o ivamd-modemman.obj `if test -f 'modemman.c'; then $(CYGPATH_W) 'modemman.c'; else $(CYGPATH_W) '$(srcdir)/modemman.c'; fi`
+
+ivamd-timevalarith.o: timevalarith.c
+ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -MT ivamd-timevalarith.o -MD -MP -MF "$(DEPDIR)/ivamd-timevalarith.Tpo" \
+ -c -o ivamd-timevalarith.o `test -f 'timevalarith.c' || echo '$(srcdir)/'`timevalarith.c; \
+ then mv -f "$(DEPDIR)/ivamd-timevalarith.Tpo" "$(DEPDIR)/ivamd-timevalarith.Po"; \
+ else rm -f "$(DEPDIR)/ivamd-timevalarith.Tpo"; exit 1; \
+ fi
+# source='timevalarith.c' object='ivamd-timevalarith.o' libtool=no \
+# depfile='$(DEPDIR)/ivamd-timevalarith.Po' tmpdepfile='$(DEPDIR)/ivamd-timevalarith.TPo' \
+# $(CCDEPMODE) $(depcomp) \
+# $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -c -o ivamd-timevalarith.o `test -f 'timevalarith.c' || echo '$(srcdir)/'`timevalarith.c
+
+ivamd-timevalarith.obj: timevalarith.c
+ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -MT ivamd-timevalarith.obj -MD -MP -MF "$(DEPDIR)/ivamd-timevalarith.Tpo" \
+ -c -o ivamd-timevalarith.obj `if test -f 'timevalarith.c'; then $(CYGPATH_W) 'timevalarith.c'; else $(CYGPATH_W) '$(srcdir)/timevalarith.c'; fi`; \
+ then mv -f "$(DEPDIR)/ivamd-timevalarith.Tpo" "$(DEPDIR)/ivamd-timevalarith.Po"; \
+ else rm -f "$(DEPDIR)/ivamd-timevalarith.Tpo"; exit 1; \
+ fi
+# source='timevalarith.c' object='ivamd-timevalarith.obj' libtool=no \
+# depfile='$(DEPDIR)/ivamd-timevalarith.Po' tmpdepfile='$(DEPDIR)/ivamd-timevalarith.TPo' \
+# $(CCDEPMODE) $(depcomp) \
+# $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -c -o ivamd-timevalarith.obj `if test -f 'timevalarith.c'; then $(CYGPATH_W) 'timevalarith.c'; else $(CYGPATH_W) '$(srcdir)/timevalarith.c'; fi`
+
+ivamd-cmdline.o: cmdline.c
+ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -MT ivamd-cmdline.o -MD -MP -MF "$(DEPDIR)/ivamd-cmdline.Tpo" \
+ -c -o ivamd-cmdline.o `test -f 'cmdline.c' || echo '$(srcdir)/'`cmdline.c; \
+ then mv -f "$(DEPDIR)/ivamd-cmdline.Tpo" "$(DEPDIR)/ivamd-cmdline.Po"; \
+ else rm -f "$(DEPDIR)/ivamd-cmdline.Tpo"; exit 1; \
+ fi
+# source='cmdline.c' object='ivamd-cmdline.o' libtool=no \
+# depfile='$(DEPDIR)/ivamd-cmdline.Po' tmpdepfile='$(DEPDIR)/ivamd-cmdline.TPo' \
+# $(CCDEPMODE) $(depcomp) \
+# $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -c -o ivamd-cmdline.o `test -f 'cmdline.c' || echo '$(srcdir)/'`cmdline.c
+
+ivamd-cmdline.obj: cmdline.c
+ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -MT ivamd-cmdline.obj -MD -MP -MF "$(DEPDIR)/ivamd-cmdline.Tpo" \
+ -c -o ivamd-cmdline.obj `if test -f 'cmdline.c'; then $(CYGPATH_W) 'cmdline.c'; else $(CYGPATH_W) '$(srcdir)/cmdline.c'; fi`; \
+ then mv -f "$(DEPDIR)/ivamd-cmdline.Tpo" "$(DEPDIR)/ivamd-cmdline.Po"; \
+ else rm -f "$(DEPDIR)/ivamd-cmdline.Tpo"; exit 1; \
+ fi
+# source='cmdline.c' object='ivamd-cmdline.obj' libtool=no \
+# depfile='$(DEPDIR)/ivamd-cmdline.Po' tmpdepfile='$(DEPDIR)/ivamd-cmdline.TPo' \
+# $(CCDEPMODE) $(depcomp) \
+# $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -c -o ivamd-cmdline.obj `if test -f 'cmdline.c'; then $(CYGPATH_W) 'cmdline.c'; else $(CYGPATH_W) '$(srcdir)/cmdline.c'; fi`
+
+ivamd-dtmffifo.o: dtmffifo.c
+ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -MT ivamd-dtmffifo.o -MD -MP -MF "$(DEPDIR)/ivamd-dtmffifo.Tpo" \
+ -c -o ivamd-dtmffifo.o `test -f 'dtmffifo.c' || echo '$(srcdir)/'`dtmffifo.c; \
+ then mv -f "$(DEPDIR)/ivamd-dtmffifo.Tpo" "$(DEPDIR)/ivamd-dtmffifo.Po"; \
+ else rm -f "$(DEPDIR)/ivamd-dtmffifo.Tpo"; exit 1; \
+ fi
+# source='dtmffifo.c' object='ivamd-dtmffifo.o' libtool=no \
+# depfile='$(DEPDIR)/ivamd-dtmffifo.Po' tmpdepfile='$(DEPDIR)/ivamd-dtmffifo.TPo' \
+# $(CCDEPMODE) $(depcomp) \
+# $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -c -o ivamd-dtmffifo.o `test -f 'dtmffifo.c' || echo '$(srcdir)/'`dtmffifo.c
+
+ivamd-dtmffifo.obj: dtmffifo.c
+ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -MT ivamd-dtmffifo.obj -MD -MP -MF "$(DEPDIR)/ivamd-dtmffifo.Tpo" \
+ -c -o ivamd-dtmffifo.obj `if test -f 'dtmffifo.c'; then $(CYGPATH_W) 'dtmffifo.c'; else $(CYGPATH_W) '$(srcdir)/dtmffifo.c'; fi`; \
+ then mv -f "$(DEPDIR)/ivamd-dtmffifo.Tpo" "$(DEPDIR)/ivamd-dtmffifo.Po"; \
+ else rm -f "$(DEPDIR)/ivamd-dtmffifo.Tpo"; exit 1; \
+ fi
+# source='dtmffifo.c' object='ivamd-dtmffifo.obj' libtool=no \
+# depfile='$(DEPDIR)/ivamd-dtmffifo.Po' tmpdepfile='$(DEPDIR)/ivamd-dtmffifo.TPo' \
+# $(CCDEPMODE) $(depcomp) \
+# $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -c -o ivamd-dtmffifo.obj `if test -f 'dtmffifo.c'; then $(CYGPATH_W) 'dtmffifo.c'; else $(CYGPATH_W) '$(srcdir)/dtmffifo.c'; fi`
+
+ivamd-lock.o: lock.c
+ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -MT ivamd-lock.o -MD -MP -MF "$(DEPDIR)/ivamd-lock.Tpo" \
+ -c -o ivamd-lock.o `test -f 'lock.c' || echo '$(srcdir)/'`lock.c; \
+ then mv -f "$(DEPDIR)/ivamd-lock.Tpo" "$(DEPDIR)/ivamd-lock.Po"; \
+ else rm -f "$(DEPDIR)/ivamd-lock.Tpo"; exit 1; \
+ fi
+# source='lock.c' object='ivamd-lock.o' libtool=no \
+# depfile='$(DEPDIR)/ivamd-lock.Po' tmpdepfile='$(DEPDIR)/ivamd-lock.TPo' \
+# $(CCDEPMODE) $(depcomp) \
+# $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -c -o ivamd-lock.o `test -f 'lock.c' || echo '$(srcdir)/'`lock.c
+
+ivamd-lock.obj: lock.c
+ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -MT ivamd-lock.obj -MD -MP -MF "$(DEPDIR)/ivamd-lock.Tpo" \
+ -c -o ivamd-lock.obj `if test -f 'lock.c'; then $(CYGPATH_W) 'lock.c'; else $(CYGPATH_W) '$(srcdir)/lock.c'; fi`; \
+ then mv -f "$(DEPDIR)/ivamd-lock.Tpo" "$(DEPDIR)/ivamd-lock.Po"; \
+ else rm -f "$(DEPDIR)/ivamd-lock.Tpo"; exit 1; \
+ fi
+# source='lock.c' object='ivamd-lock.obj' libtool=no \
+# depfile='$(DEPDIR)/ivamd-lock.Po' tmpdepfile='$(DEPDIR)/ivamd-lock.TPo' \
+# $(CCDEPMODE) $(depcomp) \
+# $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -c -o ivamd-lock.obj `if test -f 'lock.c'; then $(CYGPATH_W) 'lock.c'; else $(CYGPATH_W) '$(srcdir)/lock.c'; fi`
+
+ivamd-modem.o: modem.c
+ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -MT ivamd-modem.o -MD -MP -MF "$(DEPDIR)/ivamd-modem.Tpo" \
+ -c -o ivamd-modem.o `test -f 'modem.c' || echo '$(srcdir)/'`modem.c; \
+ then mv -f "$(DEPDIR)/ivamd-modem.Tpo" "$(DEPDIR)/ivamd-modem.Po"; \
+ else rm -f "$(DEPDIR)/ivamd-modem.Tpo"; exit 1; \
+ fi
+# source='modem.c' object='ivamd-modem.o' libtool=no \
+# depfile='$(DEPDIR)/ivamd-modem.Po' tmpdepfile='$(DEPDIR)/ivamd-modem.TPo' \
+# $(CCDEPMODE) $(depcomp) \
+# $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -c -o ivamd-modem.o `test -f 'modem.c' || echo '$(srcdir)/'`modem.c
+
+ivamd-modem.obj: modem.c
+ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -MT ivamd-modem.obj -MD -MP -MF "$(DEPDIR)/ivamd-modem.Tpo" \
+ -c -o ivamd-modem.obj `if test -f 'modem.c'; then $(CYGPATH_W) 'modem.c'; else $(CYGPATH_W) '$(srcdir)/modem.c'; fi`; \
+ then mv -f "$(DEPDIR)/ivamd-modem.Tpo" "$(DEPDIR)/ivamd-modem.Po"; \
+ else rm -f "$(DEPDIR)/ivamd-modem.Tpo"; exit 1; \
+ fi
+# source='modem.c' object='ivamd-modem.obj' libtool=no \
+# depfile='$(DEPDIR)/ivamd-modem.Po' tmpdepfile='$(DEPDIR)/ivamd-modem.TPo' \
+# $(CCDEPMODE) $(depcomp) \
+# $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -c -o ivamd-modem.obj `if test -f 'modem.c'; then $(CYGPATH_W) 'modem.c'; else $(CYGPATH_W) '$(srcdir)/modem.c'; fi`
+
+ivamd-msntab.o: msntab.c
+ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -MT ivamd-msntab.o -MD -MP -MF "$(DEPDIR)/ivamd-msntab.Tpo" \
+ -c -o ivamd-msntab.o `test -f 'msntab.c' || echo '$(srcdir)/'`msntab.c; \
+ then mv -f "$(DEPDIR)/ivamd-msntab.Tpo" "$(DEPDIR)/ivamd-msntab.Po"; \
+ else rm -f "$(DEPDIR)/ivamd-msntab.Tpo"; exit 1; \
+ fi
+# source='msntab.c' object='ivamd-msntab.o' libtool=no \
+# depfile='$(DEPDIR)/ivamd-msntab.Po' tmpdepfile='$(DEPDIR)/ivamd-msntab.TPo' \
+# $(CCDEPMODE) $(depcomp) \
+# $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -c -o ivamd-msntab.o `test -f 'msntab.c' || echo '$(srcdir)/'`msntab.c
+
+ivamd-msntab.obj: msntab.c
+ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -MT ivamd-msntab.obj -MD -MP -MF "$(DEPDIR)/ivamd-msntab.Tpo" \
+ -c -o ivamd-msntab.obj `if test -f 'msntab.c'; then $(CYGPATH_W) 'msntab.c'; else $(CYGPATH_W) '$(srcdir)/msntab.c'; fi`; \
+ then mv -f "$(DEPDIR)/ivamd-msntab.Tpo" "$(DEPDIR)/ivamd-msntab.Po"; \
+ else rm -f "$(DEPDIR)/ivamd-msntab.Tpo"; exit 1; \
+ fi
+# source='msntab.c' object='ivamd-msntab.obj' libtool=no \
+# depfile='$(DEPDIR)/ivamd-msntab.Po' tmpdepfile='$(DEPDIR)/ivamd-msntab.TPo' \
+# $(CCDEPMODE) $(depcomp) \
+# $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -c -o ivamd-msntab.obj `if test -f 'msntab.c'; then $(CYGPATH_W) 'msntab.c'; else $(CYGPATH_W) '$(srcdir)/msntab.c'; fi`
+
+ivamd-util.o: util.c
+ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -MT ivamd-util.o -MD -MP -MF "$(DEPDIR)/ivamd-util.Tpo" \
+ -c -o ivamd-util.o `test -f 'util.c' || echo '$(srcdir)/'`util.c; \
+ then mv -f "$(DEPDIR)/ivamd-util.Tpo" "$(DEPDIR)/ivamd-util.Po"; \
+ else rm -f "$(DEPDIR)/ivamd-util.Tpo"; exit 1; \
+ fi
+# source='util.c' object='ivamd-util.o' libtool=no \
+# depfile='$(DEPDIR)/ivamd-util.Po' tmpdepfile='$(DEPDIR)/ivamd-util.TPo' \
+# $(CCDEPMODE) $(depcomp) \
+# $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -c -o ivamd-util.o `test -f 'util.c' || echo '$(srcdir)/'`util.c
+
+ivamd-util.obj: util.c
+ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -MT ivamd-util.obj -MD -MP -MF "$(DEPDIR)/ivamd-util.Tpo" \
+ -c -o ivamd-util.obj `if test -f 'util.c'; then $(CYGPATH_W) 'util.c'; else $(CYGPATH_W) '$(srcdir)/util.c'; fi`; \
+ then mv -f "$(DEPDIR)/ivamd-util.Tpo" "$(DEPDIR)/ivamd-util.Po"; \
+ else rm -f "$(DEPDIR)/ivamd-util.Tpo"; exit 1; \
+ fi
+# source='util.c' object='ivamd-util.obj' libtool=no \
+# depfile='$(DEPDIR)/ivamd-util.Po' tmpdepfile='$(DEPDIR)/ivamd-util.TPo' \
+# $(CCDEPMODE) $(depcomp) \
+# $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ivamd_CFLAGS) $(CFLAGS) -c -o ivamd-util.obj `if test -f 'util.c'; then $(CYGPATH_W) 'util.c'; else $(CYGPATH_W) '$(srcdir)/util.c'; fi`
+uninstall-info-am:
+
+ETAGS = etags
+ETAGSFLAGS =
+
+CTAGS = ctags
+CTAGSFLAGS =
+
+tags: TAGS
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) ' { files[$$0] = 1; } \
+ END { for (i in files) print i; }'`; \
+ mkid -fID $$unique
+
+TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ here=`pwd`; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) ' { files[$$0] = 1; } \
+ END { for (i in files) print i; }'`; \
+ test -z "$(ETAGS_ARGS)$$tags$$unique" \
+ || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$tags $$unique
+
+ctags: CTAGS
+CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ here=`pwd`; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) ' { files[$$0] = 1; } \
+ END { for (i in files) print i; }'`; \
+ test -z "$(CTAGS_ARGS)$$tags$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$tags $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && cd $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+
+top_distdir = ..
+distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
+ list='$(DISTFILES)'; for file in $$list; do \
+ case $$file in \
+ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
+ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
+ esac; \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test "$$dir" != "$$file" && test "$$dir" != "."; then \
+ dir="/$$dir"; \
+ $(mkinstalldirs) "$(distdir)$$dir"; \
+ else \
+ dir=''; \
+ fi; \
+ if test -d $$d/$$file; then \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ fi; \
+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ else \
+ test -f $(distdir)/$$file \
+ || cp -p $$d/$$file $(distdir)/$$file \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: $(BUILT_SOURCES)
+ $(MAKE) $(AM_MAKEFLAGS) check-am
+all-am: Makefile $(PROGRAMS)
+
+installdirs:
+ $(mkinstalldirs) $(DESTDIR)$(sbindir)
+install: $(BUILT_SOURCES)
+ $(MAKE) $(AM_MAKEFLAGS) install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+ -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
+
+distclean-generic:
+ -rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+ -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
+ -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
+clean: clean-am
+
+clean-am: clean-generic clean-sbinPROGRAMS mostlyclean-am
+
+distclean: distclean-am
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+ distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-exec-am: install-sbinPROGRAMS
+
+install-info: install-info-am
+
+install-man:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-info-am uninstall-sbinPROGRAMS
+
+.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
+ clean-sbinPROGRAMS ctags distclean distclean-compile \
+ distclean-generic distclean-tags distdir dvi dvi-am info \
+ info-am install install-am install-data install-data-am \
+ install-exec install-exec-am install-info install-info-am \
+ install-man install-sbinPROGRAMS install-strip installcheck \
+ installcheck-am installdirs maintainer-clean \
+ maintainer-clean-generic mostlyclean mostlyclean-compile \
+ mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \
+ uninstall-am uninstall-info-am uninstall-sbinPROGRAMS
+
+
+cmdline.c cmdline.h: ivamd.ggo Makefile
+ gengetopt < $<
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/Makefile.am b/src/Makefile.am
new file mode 100644
index 0000000..9b5b729
--- /dev/null
+++ b/src/Makefile.am
@@ -0,0 +1,40 @@
+# $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.
+
+sbin_PROGRAMS = ivamd
+
+ivamd_SOURCES = buffio.c dle.c exec.c main.c modemman.c timevalarith.c cmdline.c dtmffifo.c lock.c modem.c msntab.c util.c \
+ buffio.h dle.h exec.h main.h modemman.h timevalarith.h cmdline.h dtmffifo.h lock.h modem.h msntab.h util.h
+
+ivamd_LDADD = $(LIBOOP_LIBS) $(LIBDAEMON_LIBS)
+ivamd_CFLAGS = $(LIBOOP_CFLAGS) $(LIBDAEMON_CFLAGS) $(AM_CFLAGS) -DPKGSYSCONFDIR="\"${sysconfdir}/@PACKAGE@\"" -DLOCKDIR="\"$(LOCKDIR)\"" -DBINDIR="\"$(bindir)\""
+
+EXTRA_DIST = ivamd.ggo
+MAINTAINERCLEANFILES =
+BUILT_SOURCES =
+CLEANFILES =
+
+if USE_GENGETOPT
+
+CLEANFILES += cmdline.c cmdline.h
+BUILT_SOURCES += cmdline.c cmdline.h
+
+cmdline.c cmdline.h: ivamd.ggo Makefile
+ gengetopt < $<
+
+endif
diff --git a/src/buffio.c b/src/buffio.c
index 4771b1c..d8cafaa 100644
--- a/src/buffio.c
+++ b/src/buffio.c
@@ -1,3 +1,27 @@
+/* $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
+***/
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <assert.h>
#include <stdlib.h>
#include <string.h>
diff --git a/src/buffio.h b/src/buffio.h
index fff2514..10f0924 100644
--- a/src/buffio.h
+++ b/src/buffio.h
@@ -1,6 +1,26 @@
#ifndef foobuffiohfoo
#define foobuffiohfoo
+/* $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
+***/
+
#include <inttypes.h>
#include <sys/types.h>
diff --git a/src/dle.c b/src/dle.c
index 1cf9fa7..3e291e4 100644
--- a/src/dle.c
+++ b/src/dle.c
@@ -1,3 +1,27 @@
+/* $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
+***/
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <assert.h>
#include "dle.h"
diff --git a/src/dle.h b/src/dle.h
index 31d511b..5f2ca19 100644
--- a/src/dle.h
+++ b/src/dle.h
@@ -1,6 +1,26 @@
#ifndef foodlehfoo
#define foodlehfoo
+/* $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
+***/
+
#include <sys/types.h>
#include <inttypes.h>
diff --git a/src/dtmffifo.c b/src/dtmffifo.c
index f959158..c584232 100644
--- a/src/dtmffifo.c
+++ b/src/dtmffifo.c
@@ -1,3 +1,27 @@
+/* $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
+***/
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <unistd.h>
#include <libdaemon/dlog.h>
#include <limits.h>
@@ -14,6 +38,7 @@
struct dtmf_fifo* dtmf_fifo_new(void) {
struct dtmf_fifo *d = NULL;
char p[PATH_MAX];
+ mode_t u;
d = malloc(sizeof(struct dtmf_fifo));
assert(d);
@@ -23,7 +48,9 @@ struct dtmf_fifo* dtmf_fifo_new(void) {
d->dir = strdup("/tmp/ivamd.XXXXXX");
assert(d->dir);
+ u = umask(0077);
if (!mkdtemp(d->dir)) {
+ umask(u);
daemon_log(LOG_ERR, "Failed to create temporary directory '%s': %s", d->dir, strerror(errno));
goto fail;
}
@@ -33,9 +60,12 @@ struct dtmf_fifo* dtmf_fifo_new(void) {
assert(d->fname);
if (mkfifo(d->fname, 0700) != 0) {
+ umask(u);
daemon_log(LOG_ERR, "Failed to create FIFO '%s': %s", d->fname, strerror(errno));
goto fail;
}
+
+ umask(u);
if ((d->fd = open(d->fname, O_RDWR|O_NDELAY)) < 0) {
daemon_log(LOG_ERR, "Failed to open FIFO '%s': %s", d->fname, strerror(errno));
diff --git a/src/dtmffifo.h b/src/dtmffifo.h
index 39e39c9..421b96d 100644
--- a/src/dtmffifo.h
+++ b/src/dtmffifo.h
@@ -1,6 +1,26 @@
#ifndef foodtmffifohfoo
#define foodtmffifohfoo
+/* $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
+***/
+
struct dtmf_fifo {
int fd;
char *dir, *fname;
diff --git a/src/exec.c b/src/exec.c
index 5691c75..a674725 100644
--- a/src/exec.c
+++ b/src/exec.c
@@ -1,3 +1,27 @@
+/* $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
+***/
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <assert.h>
#include <stdlib.h>
#include <signal.h>
@@ -317,6 +341,8 @@ pid_t child_process_create(const char *file, char *const argv[], int *ifd, int *
close(stderr_fds[1]);
}
+ umask(0077);
+
execvp(file, argv);
daemon_log(LOG_ERR, "exec('%s', ...) failed: %s", file, strerror(errno));
exit(1);
diff --git a/src/exec.h b/src/exec.h
index 2c929da..6b10988 100644
--- a/src/exec.h
+++ b/src/exec.h
@@ -1,6 +1,26 @@
#ifndef fooexechfoo
#define fooexechfoo
+/* $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
+***/
+
#include <sys/types.h>
typedef void (*process_exit_cb_t) (pid_t pid, int status, void *user);
diff --git a/src/ivamd.ggo b/src/ivamd.ggo
index ca280a4..b975c51 100644
--- a/src/ivamd.ggo
+++ b/src/ivamd.ggo
@@ -17,14 +17,14 @@
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
purpose "ISDN Voice Box Answering Machine"
-package "ivam"
-version "0.1"
option "kill" k "Kill a running daemon" flag off
option "no-daemon" n "Do not daemonize" flag off
option "no-syslog" s "Do not log to syslog" flag off
option "check" c "Check if the daemon is currently running" flag off
option "channels" C "Specify how many channels to allocate, defaults to 2" int default="2" no
-option "msntab" T "Specify non standard msntab file" string no
-option "listen" L "Specify a glob pattern matchin the MSNs to listen on" string no
+option "msntab" - "Specify non standard msntab file" string no
+option "listen" L "Specify a glob pattern matching the MSNs to listen on" string no
option "no-drop-root" - "Do not drop root priviliges" flag off
+option "reload" - "Tell a running instance to reload the MSN table" flag off
+option "info" - "Tell a running ivamd to dump its MSN table to syslog" flag off
diff --git a/src/lock.c b/src/lock.c
index efce0bb..f629ee0 100644
--- a/src/lock.c
+++ b/src/lock.c
@@ -1,3 +1,27 @@
+/* $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
+***/
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <unistd.h>
#include <sys/stat.h>
#include <stdio.h>
@@ -16,12 +40,9 @@
#include "util.h"
#include "main.h"
-/* Where do lockfiles reside? */
-#define LOCK_PATH "/var/lock"
-
static const char *lockfile(const char *dev) {
static char lockfile[PATH_MAX];
- snprintf(lockfile, sizeof(lockfile), "%s/LCK..%s", LOCK_PATH, basename((char*) dev));
+ snprintf(lockfile, sizeof(lockfile), "%s/LCK..%s", LOCKDIR, basename((char*) dev));
return lockfile;
}
@@ -38,8 +59,8 @@ int device_lock(const char *dev) {
char buf[100];
char uidbuf[32];
- if (stat(LOCK_PATH, &st) != 0 || !S_ISDIR(st.st_mode)) {
- daemon_log(LOG_ERR, "Failed to lock device, directory "LOCK_PATH" not existent.");
+ if (stat(LOCKDIR, &st) != 0 || !S_ISDIR(st.st_mode)) {
+ daemon_log(LOG_ERR, "Failed to lock device, directory "LOCKDIR" not existent.");
return -1;
}
diff --git a/src/lock.h b/src/lock.h
index cd201a0..0401e13 100644
--- a/src/lock.h
+++ b/src/lock.h
@@ -1,6 +1,26 @@
#ifndef foolockhfoo
#define foolockhfoo
+/* $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
+***/
+
int device_lock(const char *dev);
int device_unlock(const char *dev);
diff --git a/src/main.c b/src/main.c
index 53f8e80..bc96fb5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,3 +1,27 @@
+/* $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
+***/
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <signal.h>
#include <assert.h>
#include <string.h>
@@ -5,6 +29,7 @@
#include <grp.h>
#include <pwd.h>
#include <sys/types.h>
+#include <stdlib.h>
#include <libdaemon/dlog.h>
#include <libdaemon/dfork.h>
@@ -23,7 +48,7 @@ const char *appname = NULL;
uid_t target_uid = 0;
gid_t target_gid = 0;
-#define DEFAULT_MSNTABLE "../conf/msntab"
+#define DEFAULT_MSNTABLE PKGSYSCONFDIR"/msntab"
#define IVAM_USER "ivam"
#define IVAM_GROUP "ivam"
@@ -51,6 +76,8 @@ static void *oop_dump_cb(oop_source *source, int sig, void *user) {
static int change_uid_gid(void) {
+ struct passwd *pw;
+
if (args.no_drop_root_flag)
return 0;
@@ -69,6 +96,16 @@ static int change_uid_gid(void) {
return -1;
}
+ if ((pw = getpwuid(target_uid))) {
+ setenv("USER", pw->pw_name, 1);
+ setenv("LOGNAME", pw->pw_name, 1);
+ setenv("HOME", pw->pw_dir, 1);
+ } else {
+ unsetenv("USER");
+ unsetenv("LOGNAME");
+ unsetenv("HOME");
+ }
+
daemon_log(LOG_INFO, "Successfully dropped root privileges.");
return 0;
@@ -110,6 +147,8 @@ int main_loop(void) {
if (get_target_uid_gid() < 0)
goto finish;
+
+ setenv("PATH", BINDIR":/usr/sbin:/usr/bin:/sbin:/bin/:/usr/local/sbin:/usr/local/bin", 1);
if (!(sys = oop_sys_new())) {
daemon_log(LOG_ERR, "Failed to create system source.");
@@ -193,11 +232,20 @@ int main(int argc, char*argv[]) {
int ret;
if ((ret = daemon_pid_file_kill_wait(SIGINT, 5)) < 0)
- daemon_log(LOG_WARNING, "Failed to kill daemon.");
+ daemon_log(LOG_WARNING, "Failed to kill daemon: %s", strerror(errno));
return ret < 0 ? 1 : 0;
}
+ if (args.reload_flag || args.info_flag) {
+ int ret;
+
+ if ((ret = daemon_pid_file_kill(args.reload_flag ? SIGHUP : SIGUSR1)) < 0)
+ daemon_log(LOG_WARNING, "Failed to kill daemon: %s", strerror(errno));
+
+ return ret < 0 ? 1 : 0;
+ }
+
if (args.check_flag) {
if ((pid = daemon_pid_file_is_running()) >= 0)
daemon_log(LOG_INFO, "Daemon running on PID %u.", pid);
diff --git a/src/main.h b/src/main.h
index 6ceb7f2..64718b1 100644
--- a/src/main.h
+++ b/src/main.h
@@ -1,6 +1,26 @@
#ifndef foomainhfoo
#define foomainhfoo
+/* $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
+***/
+
#include <oop.h>
#include "cmdline.h"
diff --git a/src/modem.c b/src/modem.c
index 3035969..260e07f 100644
--- a/src/modem.c
+++ b/src/modem.c
@@ -1,3 +1,27 @@
+/* $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
+***/
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stddef.h>
#include <termios.h>
#include <assert.h>
diff --git a/src/modem.h b/src/modem.h
index 08e20b8..5b216ca 100644
--- a/src/modem.h
+++ b/src/modem.h
@@ -1,6 +1,26 @@
#ifndef foomodemhfoo
#define foomodemhfoo
+/* $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
+***/
+
#include "buffio.h"
#include "msntab.h"
diff --git a/src/modemman.c b/src/modemman.c
index ba3c3e2..ab0dd6e 100644
--- a/src/modemman.c
+++ b/src/modemman.c
@@ -1,3 +1,27 @@
+/* $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
+***/
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stddef.h>
#include <assert.h>
#include <limits.h>
diff --git a/src/modemman.h b/src/modemman.h
index 9e108b3..5f85fed 100644
--- a/src/modemman.h
+++ b/src/modemman.h
@@ -1,6 +1,26 @@
#ifndef foomodemmanhfoo
#define foomodemmanhfoo
+/* $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
+***/
+
#include "modem.h"
int modem_manager_init(int channels);
diff --git a/src/msntab.c b/src/msntab.c
index cf84ec8..6bdd17c 100644
--- a/src/msntab.c
+++ b/src/msntab.c
@@ -1,3 +1,27 @@
+/* $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
+***/
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stddef.h>
#include <assert.h>
#include <stdlib.h>
diff --git a/src/msntab.h b/src/msntab.h
index dc1bf1c..2a09f2a 100644
--- a/src/msntab.h
+++ b/src/msntab.h
@@ -1,6 +1,26 @@
#ifndef foomsntabhfoo
#define foomsntabhfoo
+/* $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
+***/
+
enum call_action { CALL_ACTION_IGNORE, CALL_ACTION_ACCEPT, CALL_ACTION_HANGUP };
struct tabentry {
diff --git a/src/timevalarith.c b/src/timevalarith.c
index 1091192..626ae75 100644
--- a/src/timevalarith.c
+++ b/src/timevalarith.c
@@ -1,3 +1,27 @@
+/* $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
+***/
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "timevalarith.h"
struct timeval timeval_max(struct timeval a, struct timeval b) {
diff --git a/src/timevalarith.h b/src/timevalarith.h
index c0c015b..8ff0ada 100644
--- a/src/timevalarith.h
+++ b/src/timevalarith.h
@@ -1,6 +1,26 @@
#ifndef footimevalarithhfoo
#define footimevalarithhfoo
+/* $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
+***/
+
#include <sys/types.h>
#include <inttypes.h>
diff --git a/src/util.c b/src/util.c
index 3ba6506..64ae827 100644
--- a/src/util.c
+++ b/src/util.c
@@ -1,3 +1,27 @@
+/* $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
+***/
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <string.h>
#include <unistd.h>
diff --git a/src/util.h b/src/util.h
index 262d26c..2249c6d 100644
--- a/src/util.h
+++ b/src/util.h
@@ -1,6 +1,26 @@
#ifndef fooutilhfoo
#define fooutilhfoo
+/* $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
+***/
+
#include <sys/types.h>
char *basename(char *path);