Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Feb 1999 08:47:50 +0100 (CET)
From:      Malte Lance <malte.lance@gmx.net>
To:        freebsd-ports@FreeBSD.ORG
Subject:   Fwd: Re: patches for sms_client-2.0.7s-3 for FreeBSD-2.2.6
Message-ID:  <199902050747.IAA03432@neuron.webmore.prv>

next in thread | raw e-mail | index | archive | help
--0-1804289383-918200875=:3430
Content-Type: TEXT/plain; CHARSET=US-ASCII

Dear porters,

i've sent the patches to clean-compile sms_client-2.0.7s-3
on FreeBSD-2.2.6 to the author. His reply is attached at the end.
The changes to make it clean-compile were just make-syntax-changes.

Since i have no access to an 3.0 or 4-current FBSDbox, and
the system-make of 2.2.6 seems to be somewhat outdated,
i hope to find someone on the ports-list to check the patch
against a make on >=3.0 and maybe also improve where usefull.
I'll attach the pure patch.
sms_client can be obtained from:
        http://www.styx.demon.co.uk/
        http://smsclient.home.ml.org/

Malte.

------ Forwarded message ------
    From: "Angelo Masci" <angelo@styx.demon.co.uk>
 Subject: Re: patches for sms_client-2.0.7s-3 for FreeBSD-2.2.6
    Date: Thu, 4 Feb 1999 19:46:06 -0000
      To: <malte.lance@gmx.net>

>to make it short, i've made some patches to make sms_client
>clean-compile on FreeBSD-2.2.6
>Maybe some newer version of FreeBSD has some newer version of
>gmake and so would make this patches much smaller/shorter;
>anyway ... hopefully this patches are of any use at all.


Thanks, I'll take a loot at adding them to the
next release.

Regards
Angelo


--0-1804289383-918200875=:3430
Content-Type: TEXT/plain; CHARSET=US-ASCII
Content-Description: patch-aa

diff -urN sms_client-2.0.7s-3.orig/config/Makefile.config.freebsd sms_client-2.0.7s-3/config/Makefile.config.freebsd
--- sms_client-2.0.7s-3.orig/config/Makefile.config.freebsd	Thu Jan  1 01:00:00 1970
+++ sms_client-2.0.7s-3/config/Makefile.config.freebsd	Thu Feb  4 16:05:11 1999
@@ -0,0 +1,112 @@
+# -------------------------------------------------------------------- 
+# SMS Client, send messages to mobile phones and pagers		
+#									
+# Makefile.config							
+#									
+#  Copyright (C) 1997,1998 Angelo Masci					
+#									
+#  This library is free software; you can redistribute it and/or	
+#  modify it under the terms of the GNU Library General Public		
+#  License as published by the Free Software Foundation; either	
+#  version 2 of the License, or (at your option) any later version.	
+#									
+#  This library 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	
+#  Library General Public License for more details.			
+#									
+#  You should have received a copy of the GNU Library General Public	
+#  License along with this library; if not, write to the Free		
+#  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.	
+#									
+#  You can contact the author at this e-mail address:			
+#									
+#  angelo@styx.demon.co.uk						
+#									
+# -------------------------------------------------------------------- 
+# $Id$
+# -------------------------------------------------------------------- 
+
+# --------------------------------------------------------------------
+# FreeBSD
+# --------------------------------------------------------------------
+
+PLATFORM = -DFREEBSD
+CC       = gcc
+MAKE     = make
+CFLAGS   = -g -I. -Wall -pedantic $(PLATFORM)
+XTRALIBS = 
+
+# --------------------------------------------------------------------
+# Drivers for several protocols have been written, 
+# include them into the build simply by adding them to the
+# DRIVERS line below.
+#
+#	TAP 		        Standard SMS protocol
+#	VODAFONE 	verbose UK protocol
+#	ORANGE 		verbose UK protocol
+#	PAGEONE		verbose UK protocol
+#	ONE2ONE		verbose UK protocol
+#	VODACOM		verbose South African protocol
+#	MTN		verbose South African protocol
+#       LIBERTEL        verbose Dutch Libertel protocol
+#       TIM             verbose Italian Telecom Italia Mobile protocol
+#       PROXIMUS	        Belgium protocol
+#       VODAPAGE_BLOCK	        UK protocol
+#	KPN 		verbose Dutch protocol
+#	ANSWER 		verbose protocol
+#
+#       SNPP    - ALPHA	experimental rfc1861 client
+#       CIMD    - ALPHA	
+#       GENERIC - ALPHA	
+#       UCP     - ALPHA	
+#
+
+DRIVERS = ORANGE VODAFONE PAGEONE ONE2ONE     \
+	  TAP VODACOM MTN LIBERTEL TIM        \
+	  SNPP CIMD VODAPAGE_BLOCK PROXIMUS   \
+	  KPN ANSWER GENERIC UCP
+
+drivers = orange vodafone pageone one2one \
+	  tap vodacom mtn libertel tim \
+	  snpp cimd vodapage_block proximus \
+	  kpn answer generic ucp
+# --------------------------------------------------------------------
+
+LOGDIR = /var/log
+
+MLOCALSMSRC   = .sms_addressbook
+MGLOBALSMSRC  = $(PREFIX)/etc/sms/sms_addressbook
+MSERVICEDIR   = $(PREFIX)/etc/sms
+MLOGFILE      = $(LOGDIR)/smslog
+MSNPPDLOGFILE = $(LOGDIR)/snppdlog
+MSMSDLOGFILE  = $(LOGDIR)/smsdlog
+
+# --------------------------------------------------------------------
+# SMS_Client can be built to use the libmodem package or
+# its own internal modem routines. Currently the internal routines
+# are known to be unstable and are still considered to be in ALPHA
+# Valid Values for MODEMLIB are:
+#
+#	$(LIBMODEM) - use the libmodem-1.0.0 packages with patches
+# 	$(SMSMODEM) - use the internal modem routines
+
+LIBMODEM = 1
+SMSMODEM = 2
+
+MODEMLIB = $(SMSMODEM)
+
+# --------------------------------------------------------------------
+
+BINDIR  = /usr/local/bin
+ETCDIR  = /etc
+MANDIR  = /usr/local/man
+MANEXT  = 1
+INSTALL = /usr/bin/install
+RM      = /bin/rm -f
+CP      = /bin/cp
+TR	= /usr/bin/tr
+AR	= /usr/bin/ar
+STRIP   = /usr/bin/strip
+
+# --------------------------------------------------------------------
diff -urN sms_client-2.0.7s-3.orig/configure.sh sms_client-2.0.7s-3/configure.sh
--- sms_client-2.0.7s-3.orig/configure.sh	Sun Nov 29 01:19:03 1998
+++ sms_client-2.0.7s-3/configure.sh	Thu Feb  4 17:39:53 1999
@@ -46,6 +46,9 @@
 	Linux*)
 		EXTENSION=linux
 		;;
+	FreeBSD*)
+		EXTENSION=freebsd
+		;;
 	UnixWare*)
 		EXTENSION=unixware
 		;;
diff -urN sms_client-2.0.7s-3.orig/src/client/Makefile sms_client-2.0.7s-3/src/client/Makefile
--- sms_client-2.0.7s-3.orig/src/client/Makefile	Sun Nov 29 03:51:38 1998
+++ sms_client-2.0.7s-3/src/client/Makefile	Thu Feb  4 16:16:07 1999
@@ -27,7 +27,7 @@
 # $Id: Makefile,v 5.1 1998/02/01 07:10:39 root Exp root $
 # -------------------------------------------------------------------- 
 
-include ../../Makefile.config
+.include "../../Makefile.config"
 
 # --------------------------------------------------------------------
 
@@ -99,13 +99,13 @@
 MLIBS =
 MOBJS =
 
-ifeq ($(MODEMLIB),$(LIBMODEM))
+.if $(MODEMLIB) == $(LIBMODEM)
 	MLIBS = -lmodem
-endif
+.endif
 
-ifeq ($(MODEMLIB),$(SMSMODEM))
+.if $(MODEMLIB) == $(SMSMODEM)
         MOBJS = sms_modem.o 
-endif
+.endif
 
 # --------------------------------------------------------------------
 
diff -urN sms_client-2.0.7s-3.orig/src/client/version.h sms_client-2.0.7s-3/src/client/version.h
--- sms_client-2.0.7s-3.orig/src/client/version.h	Fri Jan 29 23:25:52 1999
+++ sms_client-2.0.7s-3/src/client/version.h	Thu Feb  4 16:16:10 1999
@@ -1 +1 @@
-#define MVERSION "2.0.7s-2"
+#define MVERSION "2.0.7s-3"
diff -urN sms_client-2.0.7s-3.orig/src/driver/Makefile sms_client-2.0.7s-3/src/driver/Makefile
--- sms_client-2.0.7s-3.orig/src/driver/Makefile	Thu Dec  3 00:05:16 1998
+++ sms_client-2.0.7s-3/src/driver/Makefile	Thu Feb  4 17:58:37 1999
@@ -27,14 +27,18 @@
 # $Id$
 # -------------------------------------------------------------------- 
 
-include ../../Makefile.config
+.include "../../Makefile.config"
 
 # --------------------------------------------------------------------
 
-INCLUDE =-I.. -I../client -I../parser
+INCLUDE=-I.. -I../client -I../parser
 
-DRV_OBJ = $(foreach driver,$(DRIVERS),$(shell echo $(driver) | $(TR) '[A-Z]' '[a-z]').o)
-DRV_DEF = $(foreach driver,$(DRIVERS),-D$(driver))
+.for driver in $(drivers)
+DRV_OBJ+=${driver}.o
+.endfor
+.for driver in $(DRIVERS)
+DRV_DEF+=-D${driver}
+.endfor
 
 HDRS = ../common.h ../logfile.h driver.h ../client/expect.h ../error.h ../client/sms_resource.h
 
@@ -49,12 +53,15 @@
 
 sms_driver.a: $(DRV_OBJ) driver.o
 	$(RM) sms_driver.a
-ifeq ($(PLATFORM), -DNEXT)
+.ifdef $(PLATFORM) == -DNEXT
 	$(AR) rc sms_driver.a driver.o $(DRV_OBJ)
 	ranlib sms_driver.a
-else
+.elif $(PLATFORM) == -DFREEBSD
+	$(AR) cq sms_driver.a `lorder driver.o ${DRV_OBJ} | tsort -q`
+	ranlib sms_driver.a
+.else
 	$(AR) -rc sms_driver.a driver.o $(DRV_OBJ)
-endif	
+.endif	
 
 
 driver.o: driver.c driver.h ../logfile.h ../../Makefile.config
diff -urN sms_client-2.0.7s-3.orig/src/parser/Makefile sms_client-2.0.7s-3/src/parser/Makefile
--- sms_client-2.0.7s-3.orig/src/parser/Makefile	Sun Nov 29 01:19:00 1998
+++ sms_client-2.0.7s-3/src/parser/Makefile	Thu Feb  4 16:23:25 1999
@@ -27,7 +27,7 @@
 # $Id$
 # -------------------------------------------------------------------- 
 
-include ../../Makefile.config
+.include "../../Makefile.config"
 
 # --------------------------------------------------------------------
 
@@ -43,7 +43,8 @@
 INCLUDE = -I..
 
 gs_parser.a: gs_list.o gs_parser.o gs_token.o gs_translate.o 
-	$(AR) -rc gs_parser.a gs_list.o gs_parser.o gs_token.o gs_translate.o
+	$(AR) cq gs_parser.a `lorder gs_list.o gs_parser.o gs_token.o gs_translate.o | tsort -q`
+	ranlib gs_parser.a
 
 gs_list.o: gs_list.c gs_token.h ../common.h
 	$(CC) -g  $(CFLAGS) $(INCLUDE) -c gs_list.c

--0-1804289383-918200875=:3430--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902050747.IAA03432>