From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Sep 7 22:30:22 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D822516A4DF for ; Thu, 7 Sep 2006 22:30:22 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A02143D53 for ; Thu, 7 Sep 2006 22:30:22 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k87MUMZv079371 for ; Thu, 7 Sep 2006 22:30:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k87MUMSY079370; Thu, 7 Sep 2006 22:30:22 GMT (envelope-from gnats) Resent-Date: Thu, 7 Sep 2006 22:30:22 GMT Resent-Message-Id: <200609072230.k87MUMSY079370@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Diane Bruce Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B501A16A5E9 for ; Thu, 7 Sep 2006 22:25:18 +0000 (UTC) (envelope-from db@db.net) Received: from diana.db.net (heceta.db.net [142.46.199.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E01643D45 for ; Thu, 7 Sep 2006 22:25:17 +0000 (GMT) (envelope-from db@db.net) Received: from db by diana.db.net with local (Exim 4.60 (FreeBSD)) (envelope-from ) id 1GLSJA-0007dO-W2 for FreeBSD-gnats-submit@freebsd.org; Thu, 07 Sep 2006 18:25:16 -0400 Message-Id: Date: Thu, 07 Sep 2006 18:25:16 -0400 From: Diane Bruce Sender: Diane Bruce To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/103002: [MAINTAINER] comms/linrad: update to 2.17 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Sep 2006 22:30:22 -0000 >Number: 103002 >Category: ports >Synopsis: [MAINTAINER] comms/linrad: update to 2.17 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Thu Sep 07 22:30:21 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Diane Bruce >Release: FreeBSD 4.11-RELEASE-p9 i386 >Organization: none >Environment: System: FreeBSD heceta.db.net 4.11-RELEASE-p9 FreeBSD 4.11-RELEASE-p9 #4: Tue May 17 16:07:52 EDT 2005 >Description: - Update to 2.17 Added file(s): - files/linrad - pkg-message Removed file(s): - files/patch-lmain.c - files/patch-settx.c Generated with FreeBSD Port Tools 0.63 >How-To-Repeat: >Fix: --- linrad-2.17.patch begins here --- diff -ruN --exclude=CVS /usr/ports/comms/linrad/Makefile /usr/home/db/linrad/Makefile --- /usr/ports/comms/linrad/Makefile Fri Jul 7 17:45:44 2006 +++ /usr/home/db/linrad/Makefile Thu Sep 7 18:21:38 2006 @@ -2,14 +2,16 @@ # Date created: 7 July 2004 # Whom: db # -# $FreeBSD: ports/comms/linrad/Makefile,v 1.6 2006/07/01 16:45:02 shaun Exp $ +# $FreeBSD: ports/comms/linrad/Makefile,v 1.1 2004/07/14 16:09:39 pav Exp $ # PORTNAME= linrad -PORTVERSION= 2.14 -CATEGORIES= comms hamradio -MASTER_SITES= http://www.nitehawk.com/sm5bsz/linuxdsp/archive/ -DISTNAME= lir02-14 +PORTVERSION= 2.17 +CATEGORIES= comms +MASTER_SITES= http://www.nitehawk.com/sm5bsz/linuxdsp/archive/\ + http://g7rau.demon.co.uk/sm5bsz/linuxdsp/archive/\ + http://nitehawk.com/sm5bsz/linuxdsp/archive/ +DISTNAME= lir02-17 EXTRACT_SUFX= .tbz DIST_SUBDIR= ${PORTNAME} @@ -18,11 +20,12 @@ BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm -WRKSRC= ${WRKDIR}/${PORTNAME}-02.14 +WRKSRC= ${WRKDIR}/${PORTNAME}-02.17 USE_AUTOTOOLS= autoconf:253 HAS_CONFIGURE= yes USE_BZIP2= yes +ALL_TARGET= xlinrad USE_X_PREFIX= yes ONLY_FOR_ARCHS= i386 @@ -36,7 +39,9 @@ ${MKDIR} ${DATADIR} ${INSTALL_DATA} ${WRKSRC}/errors.lir ${DATADIR}/errors.lir ${INSTALL_DATA} ${WRKSRC}/help.lir ${DATADIR}/help.lir -# ${INSTALL_PROGRAM} -m04555 ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME} + ${INSTALL_SCRIPT} -m04555 ${FILESDIR}/linrad ${PREFIX}/bin/linrad +# Some day we may want the svga version as well. +# ${INSTALL_PROGRAM} -m04555 ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}.svga ${INSTALL_PROGRAM} -m04555 ${WRKSRC}/x${PORTNAME} ${PREFIX}/bin/x${PORTNAME} .if !defined(NOPORTDOCS) @@ -57,5 +62,6 @@ @${ECHO} "linrad docs installed in ${DOCSDIR}" @${ECHO} "" .endif + @${CAT} ${PKGMESSAGE} .include diff -ruN --exclude=CVS /usr/ports/comms/linrad/distinfo /usr/home/db/linrad/distinfo --- /usr/ports/comms/linrad/distinfo Fri Jul 7 17:45:44 2006 +++ /usr/home/db/linrad/distinfo Tue Sep 5 20:35:49 2006 @@ -1,3 +1,3 @@ -MD5 (linrad/lir02-14.tbz) = a4e451b891459023bb9272d5fe0f590b -SHA256 (linrad/lir02-14.tbz) = 4a95bf060c900899969e83d0e164ec5e9932ffe34cf2c2485bbea6179fb8e899 -SIZE (linrad/lir02-14.tbz) = 423720 +MD5 (linrad/lir02-17.tbz) = 8c87228f11be0baf48a54ec51992d93e +SHA256 (linrad/lir02-17.tbz) = c48a3d31a56e147c9c86acfe787bfae96b4c9c81325f64d3ed65844332dad40b +SIZE (linrad/lir02-17.tbz) = 429631 diff -ruN --exclude=CVS /usr/ports/comms/linrad/files/linrad /usr/home/db/linrad/files/linrad --- /usr/ports/comms/linrad/files/linrad Wed Dec 31 19:00:00 1969 +++ /usr/home/db/linrad/files/linrad Tue Sep 5 22:18:25 2006 @@ -0,0 +1,6 @@ +#!/bin/sh +if [ ! -e ~/.linrad ] ; then + mkdir ~/.linrad +fi +cd ~/.linrad +xlinrad diff -ruN --exclude=CVS /usr/ports/comms/linrad/files/patch-Makefile.in /usr/home/db/linrad/files/patch-Makefile.in --- /usr/ports/comms/linrad/files/patch-Makefile.in Fri Jul 7 17:45:44 2006 +++ /usr/home/db/linrad/files/patch-Makefile.in Tue Sep 5 22:18:25 2006 @@ -1,5 +1,5 @@ ---- Makefile.in.orig Sat May 27 07:48:22 2006 -+++ Makefile.in Mon Jun 19 21:40:59 2006 +--- Makefile.in.orig Fri Jul 14 17:35:38 2006 ++++ Makefile.in Fri Jul 28 13:12:35 2006 @@ -4,17 +4,14 @@ # Name the output files *.ol instead of *.o # so we definitely know it is for Linux. @@ -20,58 +20,3 @@ CFW = -g -O -DOSNUM=2 -W -Wimplicit -Wreturn-type -Wformat \ -Wunused -Wcomment -Wchar-subscripts -Wshadow -Wuninitialized \ -Wparentheses -Wstrict-prototypes -Werror -ffast-math \ -@@ -360,7 +357,8 @@ - - - # ---------------------- Linux console specific things ------------------ --linrad: Makefile lmain.ol ui.ol uivar.ol fft1var.ol lsetad.ol hware.ol rxin.ol \ -+all: xlinrad -+linrad: lmain.ol ui.ol uivar.ol fft1var.ol lsetad.ol hware.ol rxin.ol \ - wide_graph.ol getiq.ol fft0.ol fft1.ol adtest.ol screenvar.ol sigvar.ol \ - baseb_graph.ol afc_graph.ol hires_graph.ol fftasm.ol palette.ol gifsave.ol \ - calibrate.ol calsub.ol calsub2.ol llsqvar.ol caliq.ol hwaredriver.ol \ -@@ -374,7 +372,7 @@ - menu.ol screen.ol sdrvar.ol lsys.ol sdr14.ol keyboard_var.ol linvar.ol \ - fonts.ol screensub.ol membeg.ol lxsys.ol memend.ol - -- gcc -olinrad -lvgagl -lvga -lpthread -lm \ -+ ${CC} -olinrad -I%%LOCALBASE%%/include -L%%LOCALBASE%%/lib -I%%X11BASE%%/include -L%%X11BASE%%/lib -lvgagl -lvga -lpthread -lm \ - -Wl,-Map,linrad.lmap,-warn-common,--cref \ - membeg.ol lmain.ol linvar.ol ui.ol lsetad.ol fft1.ol buf.ol \ - mouse.ol wide_graph.ol getiq.ol fft0.ol adtest.ol hires_graph.ol \ -@@ -403,7 +401,7 @@ - $(LCC) lmain.c $(CFL) lmain.ol - - # ---------------------- Linux X11 specific things ------------------ --xlinrad: Makefile xmain.ol ui.ol uivar.ol fft1var.ol lsetad.ol hware.ol rxin.ol \ -+xlinrad: xmain.ol ui.ol uivar.ol fft1var.ol lsetad.ol hware.ol rxin.ol \ - wide_graph.ol getiq.ol fft0.ol fft1.ol adtest.ol screenvar.ol sigvar.ol \ - baseb_graph.ol afc_graph.ol hires_graph.ol fftasm.ol palette.ol gifsave.ol \ - calibrate.ol calsub.ol calsub2.ol llsqvar.ol caliq.ol hwaredriver.ol \ -@@ -420,7 +418,7 @@ - - - -- gcc -oxlinrad -L/usr/X11R6/lib -lX11 -lpthread -lm \ -+ ${CC} -oxlinrad -L%%X11BASE%%/lib -lX11 -lpthread -lm \ - -Wl,-Map,linrad.xmap,-warn-common,--cref \ - membeg.ol xmain.ol xvar.ol ui.ol lsetad.ol fft1.ol buf.ol \ - mouse.ol wide_graph.ol getiq.ol fft0.ol adtest.ol hires_graph.ol \ -@@ -636,13 +634,13 @@ - - # ------------------ Tools for Linux ----------------------- - vgatest: vgatest.ol -- gcc -ovgatest -lvgagl -lvga -lm -Wl -s vgatest.ol -+ ${CC} -ovgatest -I%%LOCALBASE%%/include -L%%LOCALBASE%%/lib -lvgagl -lvga -lm -Wl -s vgatest.ol - vgatest.ol: vgatest.c -- gcc vgatest.c -c -o vgatest.ol -+ ${CC} vgatest.c -I%%LOCALBASE%%/include -c -o vgatest.ol - mousetest: mousetest.ol -- gcc -omousetest -lvgagl -lvga -lm -Wl -s mousetest.ol -+ ${CC} -omousetest -L%%LOCALBASE%%/lib -lvgagl -lvga -lm -Wl -s mousetest.ol - mousetest.ol: mousetest.c -- gcc mousetest.c -c -o mousetest.ol -+ ${CC} mousetest.c -I%%LOCALBASE%%/include -L%%LOCALBASE%%/lib -c -o mousetest.ol - thrdef.h: rusage.h - rm -f x.x - cp thrdef.h x.x diff -ruN --exclude=CVS /usr/ports/comms/linrad/files/patch-help.c /usr/home/db/linrad/files/patch-help.c --- /usr/ports/comms/linrad/files/patch-help.c Sat Jul 1 12:45:02 2006 +++ /usr/home/db/linrad/files/patch-help.c Tue Sep 5 22:18:25 2006 @@ -1,6 +1,6 @@ ---- help.c.orig Sat May 27 07:48:22 2006 -+++ help.c Tue Jun 20 20:37:14 2006 -@@ -344,7 +344,7 @@ +--- help.c.orig Fri Jul 28 13:12:59 2006 ++++ help.c Sat Jul 29 00:50:34 2006 +@@ -337,7 +337,7 @@ printf("\n%s",s); DEB"\n%s",s); } @@ -9,7 +9,7 @@ line=3; if(screen_mode) { -@@ -359,7 +359,7 @@ +@@ -352,7 +352,7 @@ { int line; if(msg_no < 0)return; diff -ruN --exclude=CVS /usr/ports/comms/linrad/files/patch-lmain.c /usr/home/db/linrad/files/patch-lmain.c --- /usr/ports/comms/linrad/files/patch-lmain.c Sat Jul 1 12:45:02 2006 +++ /usr/home/db/linrad/files/patch-lmain.c Wed Dec 31 19:00:00 1969 @@ -1,38 +0,0 @@ ---- lmain.c.orig Sat May 27 07:48:22 2006 -+++ lmain.c Sat Jun 17 23:49:10 2006 -@@ -11,7 +11,6 @@ - #define MAX_MOUSE_CURSIZE 50 - - --#include - #include - #include - #include -@@ -97,6 +96,7 @@ - simd1=0; - mmx_present=i&1; - if(mmx_present != 0)simd_present=i/2; else simd_present=0; -+#if 0 - if(i!=0) - { - file = fopen("/proc/cpuinfo", "r"); -@@ -142,9 +142,11 @@ - file=NULL; - } - } -+#endif - file = fopen(userint_filename, "rb"); - if (file == NULL) - { -+#if 0 - if(xxprint != 0) - { - i=0; -@@ -170,6 +172,7 @@ - printf("\nwith appropriate patches.\n\n"); - } - } -+#endif - printf("\nSetup file %s missing.",userint_filename); - full_setup:; - for(i=0; iMAX_DEVNAMES) -+if(n>MAX_DEVNAMES) - { - lirerr(9236); - return; - } --m=num/10; --if(m > 0) -- { -- devname[k]=m+'0'; -- k++; + FILE *sdifile; +-int ch_cnt; ++char *p; + char ch_read[80]; + char work_line [80]; +-int work_line_pos ; + int sdi_screen_line_counter; + char sdi_intro_msg [26]= "SOUND DRIVER INFORMATION:" ; + char sdi_error_msg [46]= "No OSS or ALSA sound-driver information found"; +@@ -111,55 +110,42 @@ + // if OSS not active, try ALSA + if (sdifile==NULL) + { +- strcpy (sndstat_filename,"/proc/asound/oss/sndstat"); +- sdifile=fopen (sndstat_filename,"r"); ++ strcpy (sndstat_filename,"/proc/asound/oss/sndstat"); ++ sdifile=fopen (sndstat_filename,"r"); + } +-if (sdifile==NULL) ++if (sdifile!=NULL) + { +- settextcolor(LIGHT_RED); +- lir_text ( 80, sdi_screen_line_counter++, sdi_error_msg); +- fprintf (sndlog,"\n%s",sdi_error_msg ); +- goto display_sdi_x; - } --devname[k]=num-m*10+'0'; --if(devname[k]<'0')devname[k]=0; --k++; --devname[k]=0; --// put /dev/dsp at the end of the list --if ((n+2)==MAX_DEVNAMES){ -- k=DEVNAMPOS; -- devname[k]=0; -- k++; -- devname[k]=0; -- } -+ sprintf(dev_name, "/dev/dspW%d", n); +-fprintf (sndlog,"\n(output of 'cat %s' command): \n\n",sndstat_filename ); +-memset (work_line, '\0',sizeof(work_line)); +-work_line_pos =0; +-settextcolor(LIGHT_GREEN); +-ch_cnt=fread(ch_read,1,1,sdifile); +-while (ch_cnt== 1) +- { +-// check if work_line is ready for output processing +- if ((ch_read[0] =='\n') || (work_line_pos == 78)) +- { +-// display work_line only if it is not blank +-// and there are enough lines available on the screen +-// and there are at least 40 characters available on a line +- if ((work_line_pos >1) && +- ( sdi_screen_line_counter < screen_last_line) && +- ((screen_last_col - 40)>= 80)) +- { +- if (ch_read[0] !='\n') work_line[work_line_pos]=ch_read[0]; +- sdi_screen_line_counter++; +- lir_text (80, sdi_screen_line_counter, work_line); +- } +-// write to soundboard_init.log +- if (ch_read[0] =='\n') work_line[work_line_pos]=ch_read[0]; +- if (ch_read[0] !='\n') +- { +-// this is a truncated line. Add newline character +- work_line[work_line_pos]=ch_read[0]; +- work_line[work_line_pos+1]='\n'; +- } +- fprintf (sndlog,"%s",work_line); +- memset (work_line, '\0',sizeof(work_line)); +- work_line_pos=-1; +- } +- work_line[work_line_pos]=ch_read[0]; +- work_line_pos++; +- ch_cnt=fread(ch_read,1,1,sdifile); ++ fprintf (sndlog,"\n(output of 'cat %s' command): \n\n",sndstat_filename ); ++ settextcolor(LIGHT_GREEN); ++ while(fgets(work_line, sizeof(work_line)-1, sdifile) != NULL) ++ { ++ // check if work_line is ready for output processing ++ if((p = strchr(work_line, '\n')) != NULL) ++ *p = '\0'; ++ if (ch_read[0] != '\0') ++ { ++ // display work_line only if it is not blank ++ // and there are enough lines available on the screen ++ // and there are at least 40 characters available on a line ++ if (sdi_screen_line_counter < screen_last_line && ++ (screen_last_col - 40)>= 80) ++ { ++ sdi_screen_line_counter++; ++ lir_text (80, sdi_screen_line_counter, work_line); ++ } ++ // write to soundboard_init.log ++ fprintf (sndlog,"%s\n",work_line); ++ } ++ } ++ fclose(sdifile); ++ } ++else ++ { ++ settextcolor(LIGHT_RED); ++ lir_text ( 80, sdi_screen_line_counter++, sdi_error_msg); ++ fprintf (sndlog,"\n%s",sdi_error_msg ); + } + fclose(sdifile); +-display_sdi_x:; + fprintf(sndlog,sndlog_sep); + fflush(sndlog); } - // ------------------------------------------------------------- - // The original code was: -@@ -557,7 +538,7 @@ +@@ -525,6 +511,11 @@ if(i&AFMT_S16_LE)ui.max_output_bytes=2; ui.max_output_speed=ABOVE_MAX_SPEED; ui.min_output_speed=1; --if(ioctl(audio_out, SNDCTL_DSP_SPEED, &ui.max_output_speed) == -1) -+if(ioctl(audio_out, SNDCTL_DSP_SPEED, &ui.min_output_speed) == -1) ++// ++// To allow a separate #ifdef __FreeBSD__ ++// - Diane Bruce VA3DB, Sept 6, 2006 ++// ++#ifdef __linux__ + if(ioctl(audio_out, SNDCTL_DSP_SPEED, &ui.max_output_speed) == -1) { lirerr(1072); - return; -@@ -666,7 +647,7 @@ +@@ -535,6 +526,7 @@ + lirerr(1073); return; } - make_devname(ui.ad_device_no&255); --audio_in=open( devname ,ui.ad_device_mode , 0); -+audio_in=open( dev_name ,ui.ad_device_mode , 0); - if(audio_in == -1) - { - lirerr(1007); -@@ -676,7 +657,7 @@ - { - i=ui.ad_device_no/255-1; - make_devname(i); -- audio_in2=open( devname ,ui.ad_device_mode , 0); -+ audio_in2=open( dev_name ,ui.ad_device_mode , 0); - if(audio_in2 == -1) - { - lirerr(1174); -@@ -869,7 +850,7 @@ - return; - } - make_devname(ui.ad_device_no&255); -- audio_out=open( devname ,O_WRONLY , 0); -+ audio_out=open( dev_name ,O_WRONLY , 0); - if(audio_out == -1) - { - lirerr(1086); -@@ -909,7 +890,7 @@ - else - { - make_devname(ui.da_device_no); -- audio_out=open( devname ,O_WRONLY , 0); -+ audio_out=open( dev_name ,O_WRONLY , 0); - if(audio_out == -1) - { - if(disksave_flag==2) -@@ -1048,9 +1029,9 @@ - for(device_no=0; device_no",devname); -+ sprintf(s,"Open %s as RDONLY or RDWR? (O/W) =>",dev_name); - lir_text(10,10,s); - await_processed_keyboard(); - if(kill_all_flag) goto setad_errexit; -@@ -2010,9 +1992,9 @@ - } - sndlog_sync(); - clear_screen(); --sprintf(s,"For analog input: %s opened in %s mode",devname,devmode_txt[mode]); -+sprintf(s,"For analog input: %s opened in %s mode",dev_name,devmode_txt[mode]); - lir_text(0,0,s); --audio_in=open( devname, ui.ad_device_mode, 0); -+audio_in=open( dev_name, ui.ad_device_mode, 0); - if(audio_in == -1) - { - lirerr(1038); -@@ -2108,13 +2090,16 @@ - lir_text(0,7,"to reconfigure the hardware. (Under OSS, run ossmix)"); - max=dev_max_rd_speed[ui.ad_device_no&255]; - min=dev_min_rd_speed[ui.ad_device_no&255]; -+#if 0 - if(max == ABOVE_MAX_SPEED || max < 1000) - { - max = ABOVE_MAX_SPEED; - speed_warning = 1; - } + goto setad_errexit; + minok:; +#endif - sprintf(s,"Select sampling speed(%d to %d)", min,max); - lir_text(0,10,s); -+#if 0 - if(speed_warning != 0) - { - settextcolor(12); -@@ -2123,6 +2108,7 @@ - lir_text(0,13,"Incorrect (not supported) values may cause system to hang"); - settextcolor(7); - } ++// ++// This code finds min max speed of sound card for FreeBSD ++// It probably works for other BSDs as well ++// Diane Bruce, db@db.net VA3DB ++// Sept 7, 2006 ++// ++#ifdef __FreeBSD__ ++{ ++ snd_capabilities capab; ++ int status; ++ bzero((void *)&capab, sizeof(capab)); ++ status = ioctl(audio_out, AIOGCAP, &capab); ++ if (status < 0) ++ goto setad_errexit; ++ rdwr_min_speed = capab.rate_min; ++ rdwr_max_speed = capab.rate_max; ++ SNDLOG"\nMin output speed %d", rdwr_min_speed); ++ SNDLOG"\nMax output speed %d", rdwr_max_speed); ++} +#endif - column=0; - while(s[column] != 0)column++; - ui.input_speed=lir_get_integer(column+2, 10, 8, min,max); -@@ -2131,6 +2117,7 @@ - rdwr_max_speed=ui.input_speed; - SNDLOG"\n%d Hz selected by user",ui.input_speed); - clear_lines(5,10); -+ui.input_speed; - if(ioctl(audio_in, SNDCTL_DSP_SPEED, &ui.input_speed)==-1) - { - lirerr(1041); -@@ -2249,7 +2236,7 @@ - goto setad_errexit; - } - settextcolor(12); --sprintf(s,"Trying to read %s",devname); -+sprintf(s,"Trying to read %s",dev_name); - lir_text(10,10,s); - lir_text(0,12,"If you see this message for more than 2 seconds READ failed"); - lir_text(0,13,"Then try another device"); -@@ -2313,7 +2300,7 @@ - } - SNDLOG"\nRead test OK"); - clear_lines(10,13); --sprintf(s,"Now trying to open a second device while %s is open",devname); -+sprintf(s,"Now trying to open a second device while %s is open",dev_name); - lir_text(0,6,s); - lir_text(0,7,"This may cause your system to hang. Try ctrlC to exit (or reboot)"); - lir_text(0,8,"Try another input device or install another sound system."); -@@ -2326,7 +2313,7 @@ - if(read_test_ad(testbuff)!=0)goto clr_wrdev; - make_devname(i); - cn=0; -- sprintf(s,"%02d:%12s",i,devname); -+ sprintf(s,"%02d:%12s",i,dev_name); - lir_text(0,line,s); - column=0; - while(s[column] != 0)column++; -@@ -2338,7 +2325,7 @@ - if( (ui.input_mode&DWORD_INPUT) != 0 || ui.ad_channels > 2) - { - sprintf(&s[column], -- " RDWR useless (too many bits or channels) %d: %s",i,devname); -+ " RDWR useless (too many bits or channels) %d: %s",i,dev_name); - dev_flag[i]=0; - } - else -@@ -2356,7 +2343,7 @@ - dev_flag[i]&=0xffff-4; - if( (dev_flag[i]&2) != 0 ) - { -- audio_out=open( devname, O_WRONLY|O_NONBLOCK, 0); -+ audio_out=open( dev_name, O_WRONLY|O_NONBLOCK, 0); - if(read_test_ad(testbuff)!=0)goto clr_wrdev; - if(audio_out != -1) - { -@@ -2364,7 +2351,7 @@ - j=0; - ioctl(audio_out, SNDCTL_DSP_COOKEDMODE, &j); - #endif -- SNDLOG"\n%s opened as WRONLY",devname); -+ SNDLOG"\n%s opened as WRONLY",dev_name); - sndlog_sync(); - if(ioctl(audio_in, SNDCTL_DSP_GETISPACE, &ad_info) == -1) - { -@@ -2562,20 +2549,20 @@ - for(i=0; i @@ -10,7 +10,7 @@ #include #include #include -@@ -14,6 +16,7 @@ +@@ -16,6 +18,7 @@ #include "lindef.h" #include "hwaredef.h" @@ -18,7 +18,7 @@ char *locktext[6]={"*W A R N I N G* Read z_MLOCK.txt for info.", "*** mlockall can cause system crashes!! ***", -@@ -40,11 +43,9 @@ +@@ -66,11 +69,9 @@ // Get permission to write to the parallel port if(ui.parport < 0x400-4) { @@ -33,7 +33,7 @@ } if(i != 0) { -@@ -189,11 +190,9 @@ +@@ -214,11 +215,9 @@ int i; if(ui.parport < 0x400-4) { @@ -48,7 +48,7 @@ } if(i!=0)lirerr(764921); i=1000; -@@ -206,11 +205,9 @@ +@@ -231,11 +230,9 @@ int i; if(ui.parport < 0x400-4) { diff -ruN --exclude=CVS /usr/ports/comms/linrad/files/patch-settx.c /usr/home/db/linrad/files/patch-settx.c --- /usr/ports/comms/linrad/files/patch-settx.c Sat Jul 1 12:45:02 2006 +++ /usr/home/db/linrad/files/patch-settx.c Wed Dec 31 19:00:00 1969 @@ -1,93 +0,0 @@ ---- settx.c.orig Wed Jun 7 15:31:03 2006 -+++ settx.c Wed Jun 7 15:32:01 2006 -@@ -21,7 +21,7 @@ - #define LEVEL_METER_X 65 - - extern void make_devname(int device_no); --extern char devname[]; -+extern char dev_name[]; - extern char *devmode_txt[3]; - - #if SND_DEV == 1 -@@ -73,7 +73,7 @@ - int i,j; - float t1; - make_devname(tx.ad_device_no); --tx_audio_in=open( devname, O_RDONLY, 0); -+tx_audio_in=open( dev_name, O_RDONLY, 0); - if(tx_audio_in == -1)lirerr(991111); - i=AFMT_S16_LE; - #ifdef AFMT_S32_LE -@@ -107,7 +107,7 @@ - int i,j; - float t1; - make_devname(tx.da_device_no); --tx_audio_out=open( devname, O_WRONLY|O_NONBLOCK, 0); -+tx_audio_out=open( dev_name, O_WRONLY|O_NONBLOCK, 0); - if(tx_audio_out == -1)lirerr(231111); - i=AFMT_S16_LE; - #ifdef AFMT_S32_LE -@@ -300,11 +300,11 @@ - make_devname(device_no); - { - sprintf(s,"Trying to open %s %s. Device defective if system hangs here.", -- devname, devmode_txt[1]); -+ dev_name, devmode_txt[1]); - settextcolor(12); - lir_text(0,line+1,s); - settextcolor(7); -- tx_audio_out=open( devname, O_WRONLY|O_NONBLOCK, 0); -+ tx_audio_out=open( dev_name, O_WRONLY|O_NONBLOCK, 0); - if(tx_audio_out != -1) - { - line++; -@@ -374,7 +374,7 @@ - } - dev_min_speed[device_no]=rdwr_speed; - settextcolor(7); -- sprintf(s," %02d %s ",device_no,devname); -+ sprintf(s," %02d %s ",device_no,dev_name); - lir_text(0,line,s); - sprintf(s,"%s ",devmode_txt[1]); - if(rdwr_channels==3) -@@ -516,7 +516,7 @@ - } - clear_screen(); - make_devname(tx.da_device_no); --sprintf(s,"Tx output: %s, %d channel(s), %d bits, %d Hz",devname, -+sprintf(s,"Tx output: %s, %d channel(s), %d bits, %d Hz",dev_name, - tx.output_channels,tx.output_bytes<<3,tx.output_speed); - settextcolor(14); - lir_text(15,0,s); -@@ -578,11 +578,11 @@ - make_devname(device_no); - { - sprintf(s,"Trying to open %s %s. Device defective if system hangs here.", -- devname, devmode_txt[0]); -+ dev_name, devmode_txt[0]); - settextcolor(12); - lir_text(0,line+1,s); - settextcolor(7); -- tx_audio_in=open( devname, O_RDONLY|O_NONBLOCK, 0); -+ tx_audio_in=open( dev_name, O_RDONLY|O_NONBLOCK, 0); - if(tx_audio_in != -1) - { - line++; -@@ -652,7 +652,7 @@ - } - dev_min_speed[device_no]=rdwr_speed; - settextcolor(7); -- sprintf(s," %02d %s ",device_no,devname); -+ sprintf(s," %02d %s ",device_no,dev_name); - lir_text(0,line,s); - sprintf(s,"%s ",devmode_txt[0]); - if(rdwr_channels==3) -@@ -774,7 +774,7 @@ - clear_screen(); - make_devname(tx.ad_device_no); - --sprintf(s,"Microphone input: %s, %d channel(s), %d bits, %d Hz",devname, -+sprintf(s,"Microphone input: %s, %d channel(s), %d bits, %d Hz",dev_name, - tx.input_channels,tx.input_bytes<<3,tx.input_speed); - settextcolor(14); - lir_text(15,0,s); diff -ruN --exclude=CVS /usr/ports/comms/linrad/files/patch-uidef.h /usr/home/db/linrad/files/patch-uidef.h --- /usr/ports/comms/linrad/files/patch-uidef.h Fri Jul 7 17:45:45 2006 +++ /usr/home/db/linrad/files/patch-uidef.h Tue Sep 5 22:18:25 2006 @@ -1,5 +1,5 @@ ---- uidef.h.orig Mon Jun 19 20:18:17 2006 -+++ uidef.h Mon Jun 19 20:18:24 2006 +--- uidef.h.orig Sat Jul 29 16:29:21 2006 ++++ uidef.h Sat Jul 29 16:29:34 2006 @@ -5,7 +5,7 @@ diff -ruN --exclude=CVS /usr/ports/comms/linrad/files/patch-xmain.c /usr/home/db/linrad/files/patch-xmain.c --- /usr/ports/comms/linrad/files/patch-xmain.c Sat Jul 1 12:45:02 2006 +++ /usr/home/db/linrad/files/patch-xmain.c Tue Sep 5 22:18:25 2006 @@ -1,6 +1,6 @@ ---- xmain.c.orig Mon Jun 19 22:40:14 2006 -+++ xmain.c Mon Jun 19 23:33:03 2006 -@@ -38,7 +38,7 @@ +--- xmain.c.orig Fri Jul 14 17:35:38 2006 ++++ xmain.c Fri Jul 28 12:45:20 2006 +@@ -39,7 +39,7 @@ float total; }PIXINFO; @@ -9,7 +9,7 @@ int main(int argc, char **argv) { -@@ -58,6 +58,8 @@ +@@ -59,6 +59,8 @@ XTextProperty window_title_property; unsigned short int *ipalette; XColor xco; diff -ruN --exclude=CVS /usr/ports/comms/linrad/pkg-message /usr/home/db/linrad/pkg-message --- /usr/ports/comms/linrad/pkg-message Wed Dec 31 19:00:00 1969 +++ /usr/home/db/linrad/pkg-message Thu Sep 7 18:12:05 2006 @@ -0,0 +1,8 @@ +linrad is now installed. +linrad is now a shell script which "wraps" xlinrad. +When used for the first time, the linrad wrapper will create a ~/.linrad +directory which will be your working directory. + +Now, go chase some DX. + +- 73 Diane VA3DB diff -ruN --exclude=CVS /usr/ports/comms/linrad/pkg-plist /usr/home/db/linrad/pkg-plist --- /usr/ports/comms/linrad/pkg-plist Fri Jul 7 17:45:45 2006 +++ /usr/home/db/linrad/pkg-plist Thu Sep 7 18:10:04 2006 @@ -1,3 +1,4 @@ +bin/linrad bin/xlinrad %%DATADIR%%/errors.lir %%DATADIR%%/help.lir --- linrad-2.17.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: