head 1.10; access; symbols pkgsrc-2013Q2:1.10.0.38 pkgsrc-2013Q2-base:1.10 pkgsrc-2012Q4:1.10.0.36 pkgsrc-2012Q4-base:1.10 pkgsrc-2011Q4:1.10.0.34 pkgsrc-2011Q4-base:1.10 pkgsrc-2011Q2:1.10.0.32 pkgsrc-2011Q2-base:1.10 pkgsrc-2009Q4:1.10.0.30 pkgsrc-2009Q4-base:1.10 pkgsrc-2008Q4:1.10.0.28 pkgsrc-2008Q4-base:1.10 pkgsrc-2008Q3:1.10.0.26 pkgsrc-2008Q3-base:1.10 cube-native-xorg:1.10.0.24 cube-native-xorg-base:1.10 pkgsrc-2008Q2:1.10.0.22 pkgsrc-2008Q2-base:1.10 pkgsrc-2008Q1:1.10.0.20 pkgsrc-2008Q1-base:1.10 pkgsrc-2007Q4:1.10.0.18 pkgsrc-2007Q4-base:1.10 pkgsrc-2007Q3:1.10.0.16 pkgsrc-2007Q3-base:1.10 pkgsrc-2007Q2:1.10.0.14 pkgsrc-2007Q2-base:1.10 pkgsrc-2007Q1:1.10.0.12 pkgsrc-2007Q1-base:1.10 pkgsrc-2006Q4:1.10.0.10 pkgsrc-2006Q4-base:1.10 pkgsrc-2006Q3:1.10.0.8 pkgsrc-2006Q3-base:1.10 pkgsrc-2006Q2:1.10.0.6 pkgsrc-2006Q2-base:1.10 pkgsrc-2006Q1:1.10.0.4 pkgsrc-2006Q1-base:1.10 pkgsrc-2005Q4:1.10.0.2 pkgsrc-2005Q4-base:1.10 pkgsrc-2005Q3:1.9.0.2 pkgsrc-2005Q3-base:1.9 pkgsrc-2005Q2:1.8.0.8 pkgsrc-2005Q2-base:1.8 pkgsrc-2005Q1:1.8.0.6 pkgsrc-2005Q1-base:1.8 pkgsrc-2004Q4:1.8.0.4 pkgsrc-2004Q4-base:1.8 pkgsrc-2004Q3:1.8.0.2 pkgsrc-2004Q3-base:1.8 pkgsrc-2004Q2:1.7.0.6 pkgsrc-2004Q2-base:1.7 pkgsrc-2004Q1:1.7.0.4 pkgsrc-2004Q1-base:1.7 pkgsrc-2003Q4:1.7.0.2 pkgsrc-2003Q4-base:1.7 buildlink2-base:1.5; locks; strict; comment @# @; 1.10 date 2005.09.30.10.28.01; author wiz; state dead; branches; next 1.9; 1.9 date 2005.07.14.19.15.56; author wiz; state Exp; branches; next 1.8; 1.8 date 2004.06.21.04.06.16; author wiz; state dead; branches; next 1.7; 1.7 date 2003.07.18.13.12.21; author wiz; state Exp; branches; next 1.6; 1.6 date 2003.04.18.16.18.33; author wiz; state Exp; branches; next 1.5; 1.5 date 2002.03.28.07.53.51; author kleink; state dead; branches; next 1.4; 1.4 date 2002.03.27.22.44.29; author kleink; state Exp; branches; next 1.3; 1.3 date 2002.03.10.08.09.58; author kleink; state dead; branches; next 1.2; 1.2 date 2002.01.17.19.35.41; author kleink; state Exp; branches; next 1.1; 1.1 date 2002.01.16.10.15.48; author kleink; state Exp; branches; next ; desc @@ 1.10 log @Update to 0.8.1: 0.8.1 fixes some compilation and installation issues with *BSD (thanks to Mohacsi Janos) fixes binary memory info output automatically chooses the proper charset when sending short messages make some more long options available as short options mention all options in the help output and sort it alphabetically mingw compile environment support (Windows) Addition to 0.8.0 changelog: reset now switches phone from transparent to RCCP mode (fixes debian bug #224965) included german PO file update from debian BTS (fixes debian bug #313918) @ text @$NetBSD: patch-ab,v 1.9 2005/07/14 19:15:56 wiz Exp $ --- docs/Makefile.in.orig 2005-06-24 13:27:09.000000000 +0200 +++ docs/Makefile.in @@@@ -66,12 +66,12 @@@@ distclean: .PHONY: install-$(PACKAGE_NAME).en.$(MANCAT) install-$(PACKAGE_NAME).en.$(MANCAT): $(PACKAGE_NAME).en.$(MANCAT) $(INSTALL) -d $(mandir)/man$(MANCAT); \ - $(INSTALL) --mode=644 $(PACKAGE_NAME).en.$(MANCAT) $(mandir)/man$(MANCAT)/$(MAN); \ + $(INSTALL) -m 644 $(PACKAGE_NAME).en.$(MANCAT) $(mandir)/man$(MANCAT)/$(MAN); \ .PHONY: install-$(PACKAGE_NAME).%.$(MANCAT) install-$(PACKAGE_NAME).%.$(MANCAT): $(PACKAGE_NAME).%.$(MANCAT) $(INSTALL) -d $(mandir)/$*/man$(MANCAT); \ - $(INSTALL) --mode=644 $(PACKAGE_NAME).$*.$(MANCAT) $(mandir)/$*/man$(MANCAT)/$(MAN); \ + $(INSTALL) -m 644 $(PACKAGE_NAME).$*.$(MANCAT) $(mandir)/$*/man$(MANCAT)/$(MAN); \ .PHONY: install install: $(patsubst %,install-$(PACKAGE_NAME).%.$(MANCAT),$(MAN_LANGS)) @ 1.9 log @Update to 0.8.0: 0.8.0 SMS code now support multipart message encoding on sending use Docbook XML for man pages (with HTML output) pin file (~/.scmxx/pin) support new option: --lock new option: --enable new option: --disable new option: --hangup --dial now waits until the phone connected to the remote side fixes for all gcc4 warnings fixes for starting connection with reset now being inline if requested fixes for file upload (not obex!) to S55 (now marked as supported) add binary slot number filter (fixes debian bug #145570) for *45 and S55 @ text @d1 1 a1 1 $NetBSD$ @ 1.8 log @Update to 0.7.1. Changes: version 0.7.1 - work-around for *BSD on SMS time decoding - fixes some sms decoding bugs - fixes crash on sending sms directly from a slot version 0.7.0 Syntax changed! many internal changes: - no need for system's wchar_t support anymore (wchar_t was previously used but that was wrong) - iconvtest() is gone - completely rewritten command line parsing, now supporting getopt_long _and_ popt (configure decides which one to use) - configure checks for getopt and popt - configure check for declaration of iconv properly support Solaris (see popt above, compiler warning fixes) make iconv code work with non-GNU implementations (e.g. Solaris) new parameter --start-delay (see manpage) new parameter --binary (-N) new parameter --mem new parameter --slot -B, -M, -C and -F (and the long options for them) are now obsolete, use -N instead with --mem instead parameter to -P is now obsolete, use --mem instead parameter to -S is now obsolete, use --slot instead "SM" is now default phonebook memory (if none was specified) SMS outputs none-printable characters as '?' instead of hexcode the memory list output was changed in --info (may break programs that depend on it) add parameter --mem-info as trigger to --info to display more information about available memories make --mem recognize "?" to show same information as in --mem-info but only for the specified memory type (faster) rewritten phonebook file read-in with more syntax checking before actually sending the first entry rewrote SMS decoding functions simply do not change sms status on getting instead of complaining update english manpage russian manpage included, again updated README and INSTALL version 0.6.4.1 Features: added SMS time zone conversion Fixes: fix crash on getting phonebook entries with empty text field work-around for buggy strptime() in cygwin (for SMS dates) added test to better usage of iconv (less dependent on nl_langinfo()) deal with a S55 strangeness (still does NOT mean that S55 is fully supported), thanks to Ole Langbehn --ignore-serial-bits is now default, added parameter --keep-serial-bits (to get previous behaviour) updated manpage @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.7 2003/07/18 13:12:21 wiz Exp $ d3 17 a19 41 --- src/smspdu.c.orig 2003-06-02 16:48:59.000000000 +0200 +++ src/smspdu.c @@@@ -91,7 +91,7 @@@@ void create_smssubmit_pdu(char *pdu, cha //leave PID and vp_relative as is //process user data length and user data - wide_str=convert_to_internal(nl_langinfo(CODESET),smstext,strlen(smstext)); + wide_str=convert_to_internal("char",smstext,strlen(smstext)); if (mysmsopts.unicode) { dcs &= 0xf3; //clear all affected bits dcs |= 0x08; //set unicode charset @@@@ -227,7 +227,7 @@@@ void decode_smsdeliver_pdu(unsigned char sprintf(&oa.number[strlen(oa.number)],"%c%c",pdu[i],pdu[i+1]); } wide_str=sms_data_7bit_decode(oa.number,(oa.length*4)/7); - t=convert_from_internal(nl_langinfo(CODESET),wide_str,2); + t=convert_from_internal("char",wide_str,2); mem_realloc(wide_str,0); strcpy(oa.number,t); mem_realloc(t,0); @@@@ -316,9 +316,9 @@@@ void decode_smsdeliver_pdu(unsigned char //all encodings of uncompressed 7bit wide_str=sms_data_7bit_decode(pdu+where,udl); if ((pdutype>>6)&1){ - t=convert_from_internal(nl_langinfo(CODESET),&wide_str[1+((udh_length*8)+(udh_length*8)%7)/7],2); + t=convert_from_internal("char",&wide_str[1+((udh_length*8)+(udh_length*8)%7)/7],2); } else { - t=convert_from_internal(nl_langinfo(CODESET),wide_str,2); + t=convert_from_internal("char",wide_str,2); } mem_realloc(wide_str,0); strcpy(ud,t); @@@@ -333,7 +333,7 @@@@ void decode_smsdeliver_pdu(unsigned char } else { wide_str=convert_from_ucs2(pdu+where); } - t=convert_from_internal(nl_langinfo(CODESET),wide_str,2); + t=convert_from_internal("char",wide_str,2); mem_realloc(wide_str,0); strcpy(ud,t); mem_realloc(t,0); @ 1.7 log @Update to 0.6.3.8: "RING" catched fixed sms type identification enable unicode sms sending (patch by Andy Shevchenko) update man page change flash sms coding to work with unicode setting in parallel fix content length output for unicode sms added russian man page translation (sent in by Andy Shevchenko) small change in unicode.c to stop gcc3.3 complain trying to avoid some error messages about syntax @ text @d1 1 a1 1 $NetBSD$ @ 1.6 log @Update to 0.6.3.7, and include some iconv fixes from Dave Huang in PR 20017. Changes in 0.6.3.7: fixed the GPRS info segfault issue some command errors are not really a reason to about - fixed that fixed gcc-3.2 warnings fixed Makefiles to actually use chosen compiler rewrote/reordered main() @ text @d3 1 a3 1 --- src/smspdu.c.orig Sun Mar 9 13:24:24 2003 d5 1 a5 1 @@@@ -88,7 +88,7 @@@@ void create_smssubmit_pdu(char *pdu, cha d11 4 a14 4 ud=sms_data_7bit_encode(wide_str,&udl); mem_realloc(wide_str,0); @@@@ -212,7 +212,7 @@@@ void decode_smsdeliver_pdu(unsigned char d23 1 a23 1 @@@@ -301,9 +301,9 @@@@ void decode_smsdeliver_pdu(unsigned char d35 1 a35 1 @@@@ -318,7 +318,7 @@@@ void decode_smsdeliver_pdu(unsigned char @ 1.5 log @Update scmxx to 0.5.16.1; changes since last revision include: 0.5.16.1 (2002-03-28) changed some variable name to be C89 compliant (see stdin(3)) direct messages to stderr instead of stdout so only data goes to stdout print a slot number message line when receiving bmp,mid,vcs,vcf (especially with "all") @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.4 2002/03/27 22:44:29 kleink Exp $ d3 41 a43 12 --- scmxx.c.orig Wed Mar 27 22:34:03 2002 +++ scmxx.c Wed Mar 27 23:40:15 2002 @@@@ -345,8 +345,7 @@@@ va_list arg_list; va_start(arg_list,output); if (verbose_level<=SET_VERBOSE) { - vfprintf(stdout,output,arg_list); + vfprintf(stderr,output,arg_list); } va_end(arg_list); - fflush(stdout); } @ 1.4 log @Update scmxx to 0.5.16; changes since last revision include: 0.5.16 (2002-03-27) new parameter --reset which resets the phone if it does not respond after a user-aborted file transfer lots of code cleanups changed the read_mytty method to be more cleaner and work with raw mode added read_mytty_limited to read to a boundry instead of a lines end change sending code (sms and files) to makes use of raw mode, so data is really only sent, when no error occurs added is_number method to be more specific than atoi added "all" to file deleting and getting added pipe ability to file getting method do not try to decode unsupported PDU types rearranged this file (now with release dates from this version on) added C45 to the list of supported phones @ text @d1 1 a1 1 $NetBSD$ @ 1.3 log @Update to scmxx-0.5.14; changes include: 0.5.9 changed from strcmp to strcasecmp for "cme error: invalid index" check in pbook code Merged the variable baudrate patches from Klaus Klein and Klaus Singvogel to make it work better with the ME45 Merged Makefile patch from Klaus Klein to make it compile better on NetBSD Simplyfied serial setup a bit (use already present system functions) Changes Package description (.deb and .rpm) and added SL45 and S45 to supported phones in scmxx.c Moved --pipe in --help output 0.5.10 fix sms '@@' bug in sending (thanks to Nuno Miguel Fernandes Sucena Almeida ) 0.5.11 complete GSM charset compliance (more input characters than the S35i provides!) change sms input definition: greek character must be masked with a prepended '\' which enables all greek characters instead of only the non-coliding ones renamed device.h to config.h change config.h to defines and declare variables in common.h and init them in scmxx.c:main by calling the set methods added docs/specialchars.txt and docs/greekchars.txt 0.5.12 new parameter pair --greek and --nogreek (dependent on compile settings) see docs greekchars.txt for details clean-up of the functions in gsmcodes.c 0.5.13 fix phonebook text field length check for the new casted characters we now use autoconf and autoheader to create the build files config.h and Makefile (thanks to Michael Banck ) specfile updated (thanks to Kri¨tof Petr ) 0.5.14 fix crash when build with optimizations fix include of present CFLAGS env decode some known sms user data header fields and display this information show 8bit and 16bit sms messages as hexstring (instead of nothing) @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.2 2002/01/17 19:35:41 kleink Exp $ d3 12 a14 48 --- scmxx.c.orig Fri Jan 4 21:43:54 2002 +++ scmxx.c Thu Jan 17 20:06:43 2002 @@@@ -35,7 +35,7 @@@@ char *SMSSLOT_p=SMSSLOT; char *PIN_p=PIN; char *myPIPE_p=myPIPE; - int RUN_INFO=0,RUN_SETTIME=0,RUN_SETSMSC; + int RUN_INFO=0,RUN_SETTIME=0,RUN_SETSMSC=0; struct option myoptions[]= { {"remove",0,0,'r'},{"send",0,0,'s'},{"get",0,0,'g'}, {"bitmap",2,0,'B'},{"midi",2,0,'M'},{"vcal",2,0,'C'},{"vcf",2,0,'F'}, @@@@ -43,7 +43,7 @@@@ {"sms",2,0,'S'},{"sms-text",1,0,'t'},{"sms-nr",1,0,'n'},{"direct",0,0,0}, {"device",1,0,'d'},{"file",1,0,'f'},{"pipe",1,0,'p'},{"pin",1,0,0}, {"info",0,0,'i'},{"set-time",0,0,0},{"set-smsc",0,0,0},{"help",0,0,'h'}, - {"verbose",0,0,'v'},{"quiet",0,0,'q'}, + {"verbose",0,0,'v'},{"quiet",0,0,'q'},{"speed",1,0,0}, {0,0,0,0} }; @@@@ -61,6 +61,10 @@@@ if (getenv("SCMXX_TTY")!=NULL){ set_ttyport(getenv("SCMXX_TTY")); } + //using env. var. SCMXX_TTYSPEED + if (getenv("SCMXX_TTYSPEED")!=NULL){ + set_ttyspeed(getenv("SCMXX_TTYSPEED")); + } while((arg=getopt_long(argc,argv,"rsgB::M::C::F::P:S::t:n:d:f:p:ivqh",myoptions,&option_index)) != -1){ switch (arg){ @@@@ -134,6 +138,8 @@@@ if ((ACTION_TYPE==2 || ACTION_TYPE==3) && FILE_TYPE==5){ACTION_TYPE += 10;} }else if(!strcmp(myoptions[option_index].name,"pin")){ if(optarg && strlen(optarg)\t -d\tspecify another than the compiled in device\n"); + printf("--speed \t\t\tspecify the device's speed\n"); printf("--file \t\t -f\tspecify a file to use (instead of stdin/stdout)\n"); printf("--pipe \t -p\tspecify a pipe to use additionally to --file\n"); printf("--pin \t\t\tuse this pin if one is needed\n"); @ 1.2 log @Update to 0.5.8nb2: add an option to specify the tty speed; patches are submitted back to the author. @ text @d1 1 a1 1 $NetBSD$ @ 1.1 log @Bump to 0.5.8nb1: initialize a previously uninitialized auto variable. @ text @d4 1 a4 1 +++ scmxx.c Wed Jan 16 11:11:25 2002 d14 37 @