SOURCES: comgt-Makefile.am (NEW), comgt-scriptdir.patch (NEW), comgt-config...

twittner twittner at pld-linux.org
Sat Aug 30 23:31:32 CEST 2008


Author: twittner                     Date: Sat Aug 30 21:31:32 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- added 

---- Files affected:
SOURCES:
   comgt-Makefile.am (NONE -> 1.1)  (NEW), comgt-scriptdir.patch (NONE -> 1.1)  (NEW), comgt-configure.ac (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/comgt-Makefile.am
diff -u /dev/null SOURCES/comgt-Makefile.am:1.1
--- /dev/null	Sat Aug 30 23:31:33 2008
+++ SOURCES/comgt-Makefile.am	Sat Aug 30 23:31:26 2008
@@ -0,0 +1,6 @@
+AM_CPPFLAGS = -DSCRIPTDIR=\"${pkgdatadir}/\"
+
+bin_PROGRAMS = comgt
+comgt_SOURCES = comgt.c
+man_MANS = comgt.1 sigmon.1
+pkgdata_DATA = scripts/*

================================================================
Index: SOURCES/comgt-scriptdir.patch
diff -u /dev/null SOURCES/comgt-scriptdir.patch:1.1
--- /dev/null	Sat Aug 30 23:31:33 2008
+++ SOURCES/comgt-scriptdir.patch	Sat Aug 30 23:31:26 2008
@@ -0,0 +1,32 @@
+--- o.comgt.0.32/comgt.c	2006-10-20 16:49:46.000000000 +0200
++++ n.comgt.0.32/comgt.c	2008-08-30 22:20:16.000000000 +0200
+@@ -54,6 +54,9 @@
+ #define BOOL unsigned char
+ #define NVARS 286       /* a-z, a0-z9 == 26*11 */
+ 
++#ifndef SCRIPTDIR
++#define SCRIPTDIR "/usr/local/share/comgt/"
++#endif
+ 
+ extern char *optarg;
+ extern int optind, opterr;
+@@ -1642,7 +1645,7 @@
+       //scriptfile[0] = '\0';
+     }
+     if((fp=fopen(scriptfile,"r"))==NULL) {
+-		strcpy(scriptfilepath,"/etc/comgt/");
++		strcpy(scriptfilepath,SCRIPTDIR);
+ 		strcat(scriptfilepath,scriptfile);
+ 		if((fp=fopen(scriptfilepath,"r"))==NULL) {
+       		sprintf(msg,"Could not open scriptfile \"%s\".\n",scriptfile);
+--- o.comgt.0.32/comgt.1	2006-10-20 16:49:46.000000000 +0200
++++ n.comgt.0.32/comgt.1	2008-08-30 23:21:13.000000000 +0200
+@@ -115,7 +115,7 @@
+ and will work for serially connected modems, built-in modems, PCMCIA modems
+ as well as the GlobeTrotter GPRS and the Vodafone 3G/GPRS datacards.
+ .
+-There is a search priority order for scripts - 1)internal, 2)working directory, 3)/etc/comgt
++There is a search priority order for scripts - 1)internal, 2)working directory, 3)/usr/share/comgt
+ .PP
+ .SS Built-in scripts
+ 

================================================================
Index: SOURCES/comgt-configure.ac
diff -u /dev/null SOURCES/comgt-configure.ac:1.1
--- /dev/null	Sat Aug 30 23:31:34 2008
+++ SOURCES/comgt-configure.ac	Sat Aug 30 23:31:27 2008
@@ -0,0 +1,27 @@
+#                                               -*- Autoconf -*-
+# Process this file with autoconf to produce a configure script.
+
+AC_PREREQ(2.62)
+AC_INIT([comgt], [0.32])
+AM_INIT_AUTOMAKE
+AC_CONFIG_SRCDIR([comgt.h])
+AC_CONFIG_HEADERS([config.h])
+
+# Checks for programs.
+AC_PROG_CC
+
+# Checks for libraries.
+
+# Checks for header files.
+AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/ioctl.h sys/time.h termio.h unistd.h])
+
+# Checks for typedefs, structures, and compiler characteristics.
+
+# Checks for library functions.
+AC_FUNC_FORK
+AC_FUNC_MALLOC
+AC_FUNC_REALLOC
+AC_CHECK_FUNCS([getcwd gettimeofday putenv select setenv])
+
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
================================================================


More information about the pld-cvs-commit mailing list