NetBSD Problem Report #44036

From makoto@mx.ki.nu  Thu Nov  4 06:09:22 2010
Return-Path: <makoto@mx.ki.nu>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id C6D3D63BA54
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  4 Nov 2010 06:09:21 +0000 (UTC)
Message-Id: <201011040609.oA469KjX003160@mail.ki.nu>
Date: Thu, 4 Nov 2010 15:09:20 +0900 (JST)
From: makoto@ki.nu
Reply-To: makoto@ki.nu
To: gnats-bugs@gnats.NetBSD.org
Subject: [PATCH] ham/cwtext 0.95 -> 0.96
X-Send-Pr-Version: 3.95

>Number:         44036
>Category:       pkg
>Synopsis:       [PATCH] ham/cwtext 0.95 -> 0.96
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    mef
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 04 06:10:00 +0000 2010
>Closed-Date:    Tue Dec 07 14:13:51 +0000 2010
>Last-Modified:  Tue Dec 07 14:13:51 +0000 2010
>Originator:     Makoto Fujiwara
>Release:        NetBSD 5.0_STABLE
>Organization:
KINU Corporation
>Environment:


System: NetBSD modena 5.0_STABLE NetBSD 5.0_STABLE (XEN3_DOM0) #0: Wed Apr 7 02:17:52 UTC 2010 builds@b8.netbsd.org:/home/builds/ab/netbsd-5/amd64/201004070000Z-obj/home/builds/ab/netbsd-5/src/sys/arch/amd64/compile/XEN3_DOM0 amd64
Architecture: x86_64
Machine: amd64
>Description:
(1)
Version 0.96
Added envelope support: no more keyclick!
Prosign support: use *sk* for example.
Default bitrate is now 44100. To get the old 8000 bitrate use -lowrez.

(2) README -> MESSAGE
The original has no document at all, README has important info:
So let MESSAGE have the info included in README.

>How-To-Repeat:
	cd pkgsrc/ham/cwtext; make package
>Fix:
Index: ham/cwtext/MESSAGE
===================================================================
RCS file: ham/cwtext/MESSAGE
diff -N ham/cwtext/MESSAGE
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ ham/cwtext/MESSAGE	4 Nov 2010 04:05:55 -0000
@@ -0,0 +1,38 @@
+===========================================================================
+$NetBSD$
+
+Uses of CWTEXT:
+
+cat message | cwtext | mail root@localhost -s "test message in morse code"
+        Convert local file 'message' to 'dotscii' and mail to root.
+
+finger @finger.kernel.org | cwpcm > /dev/dsp
+        Get the latest Linux kernel version numbers, convert to
+        morse and send to the sound card.
+
+cat COPYING | cwpcm -ss -f 800 -lowrez | \
+ sox -r 8000 -bu -t raw - copying.wav lowp 1800
+        Convert the text file COPYING to morse code in 'copying.wav'
+        audio file. The CW signal is at 800 Hz. Sox converts the audio
+        to a .wav file and applies low pass filter to eliminate key click.
+
+echo vvv | cwpcm -w 20 -F 24 -lowrez | dsp-lowpass
+        Test signal at 20 wpm, characters at 24 wpm. dsp-lowpass is a
+        script that uses sox to filter key click and send the output
+        to /dev/dsp.
+
+cwpcm interface:
+-f FFFF to set the output frequency (40 to 3200 Hz)
+-w NN   to set the rate (WPM)
+-F NN   to set the character (Farnsworth) rate
+-v NN   to set the volume (0-100%)
+-lowrez output at 8000 samples/second (default is 44100)
+-d      debug: shows settings for speed, frequency and volume
+
+(classic interface - works for now but deprecated)
+-ss for slow code rate (5 wpm, characters at farnsworth 15 wpm)
+-sm for medium code rate (12 wpm, characters at 18 wpm)
+-sf for fast code rate (18 wpm)
+-sx for extra fast code rate (20 wpm)
+-f:FFFF to set the output frequency
+===========================================================================
Index: ham/cwtext/Makefile
===================================================================
RCS file: /e/cvsync/cvsync/pkgsrc/ham/cwtext/Makefile,v
retrieving revision 1.18
diff -u -r1.18 Makefile
--- ham/cwtext/Makefile	10 Feb 2010 19:17:40 -0000	1.18
+++ ham/cwtext/Makefile	4 Nov 2010 03:51:09 -0000
@@ -1,7 +1,7 @@
 # $NetBSD: Makefile,v 1.18 2010/02/10 19:17:40 joerg Exp $

-DISTNAME=	cwtext-0.95
-PKGREVISION=	3
+DISTNAME=	cwtext-0.96
+#PKGREVISION=
 CATEGORIES=	ham
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=cwtext/}

Index: ham/cwtext/distinfo
===================================================================
RCS file: /e/cvsync/cvsync/pkgsrc/ham/cwtext/distinfo,v
retrieving revision 1.4
diff -u -r1.4 distinfo
--- ham/cwtext/distinfo	14 Jan 2006 12:39:06 -0000	1.4
+++ ham/cwtext/distinfo	4 Nov 2010 03:47:42 -0000
@@ -1,5 +1,5 @@
 $NetBSD: distinfo,v 1.4 2006/01/14 12:39:06 wulf Exp $

-SHA1 (cwtext-0.95.tar.gz) = 9adb97a3c605337d48b9de45818f71e809526547
-RMD160 (cwtext-0.95.tar.gz) = 6427ad50c037d24a39f1c6c7f9e222ccb7c2325b
-Size (cwtext-0.95.tar.gz) = 15206 bytes
+SHA1 (cwtext-0.96.tar.gz) = 5e6d7d57b5329de80fce84eb65d47c0b776f2d4f
+RMD160 (cwtext-0.96.tar.gz) = 1d47de9a6441846484e993708b9c0fdd9042e8ba
+Size (cwtext-0.96.tar.gz) = 16596 bytes

>Release-Note:

>Audit-Trail:
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/44036: [PATCH] ham/cwtext 0.95 -> 0.96
Date: Thu, 04 Nov 2010 15:24:41 +0900

 On Thu, 04 Nov 2010 15:10:01 +0900, <makoto@ki.nu> wrote:

 > (2) README -> MESSAGE
 > The original has no document at all, README has important info:
 > So let MESSAGE have the info included in README.

 I feel README file for usual usage should be installed in ${PREFIX}/share/doc/${PKGBASE} instead.
 MESSAGE will be appeared only at installation time (messages for startup/configuration/upgrade).

 -- 
 OBATA Akio / obache@NetBSD.org

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/44036: [PATCH] ham/cwtext 0.95 -> 0.96
Date: Thu, 4 Nov 2010 08:31:12 +0000

 (not sent to gnats -- use gnats-bugs, not gnats-admin, for gnats traffic)

    ------

 From: Makoto Fujiwara <makoto@ki.nu>
 To: OBATA Akio <obache@NetBSD.org>
 Cc: pkg-manager@NetBSD.org, gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org,
 	makoto@ki.nu
 Subject: Re: pkg/44036: [PATCH] ham/cwtext 0.95 -> 0.96
 Date: Thu, 04 Nov 2010 15:54:06 +0900

 Obache San, thanks for the valuable comment, I have update the patch.
  This patch is also found at following location
 http://www.ki.nu/~makoto/pkgsrc/ham/cwtext-0.95
 Thanks
 ---
 Makoto Fujiwara

 Index: ham/cwtext/MESSAGE
 ===================================================================
 RCS file: ham/cwtext/MESSAGE
 diff -N ham/cwtext/MESSAGE
 --- /dev/null	1 Jan 1970 00:00:00 -0000
 +++ ham/cwtext/MESSAGE	4 Nov 2010 06:48:48 -0000
 @@ -0,0 +1,5 @@
 +===========================================================================
 +$NetBSD$
 +
 +See ${PREFIX}/share/doc/${PKGBASE}/README for licence and usage.
 +===========================================================================
 Index: ham/cwtext/Makefile
 ===================================================================
 RCS file: /e/cvsync/cvsync/pkgsrc/ham/cwtext/Makefile,v
 retrieving revision 1.18
 diff -u -r1.18 Makefile
 --- ham/cwtext/Makefile	10 Feb 2010 19:17:40 -0000	1.18
 +++ ham/cwtext/Makefile	4 Nov 2010 06:46:28 -0000
 @@ -1,7 +1,7 @@
  # $NetBSD: Makefile,v 1.18 2010/02/10 19:17:40 joerg Exp $

 -DISTNAME=	cwtext-0.95
 -PKGREVISION=	3
 +DISTNAME=	cwtext-0.96
 +#PKGREVISION=	3
  CATEGORIES=	ham
  MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=cwtext/}

 @@ -16,6 +16,7 @@
  BUILD_TARGET=	ALL

  INSTALLATION_DIRS=	bin
 +INSTALLATION_DIRS+=	share/doc/${PKGBASE}

  post-patch:
  	${SED} 	-e "s,^PREFIX,#PREFIX,g"	\
 @@ -28,6 +29,7 @@
  	${INSTALL_PROGRAM} ${WRKSRC}/cwpcm ${DESTDIR}${PREFIX}/bin
  	${INSTALL_PROGRAM} ${WRKSRC}/cwtext ${DESTDIR}${PREFIX}/bin
  	${INSTALL_PROGRAM} ${WRKSRC}/cwmm ${DESTDIR}${PREFIX}/bin
 +	${INSTALL_DATA}    ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}

  .include "../../lang/python/application.mk"
  .include "../../mk/bsd.pkg.mk"
 Index: ham/cwtext/PLIST
 ===================================================================
 RCS file: /e/cvsync/cvsync/pkgsrc/ham/cwtext/PLIST,v
 retrieving revision 1.2
 diff -u -r1.2 PLIST
 --- ham/cwtext/PLIST	14 Aug 2005 07:42:12 -0000	1.2
 +++ ham/cwtext/PLIST	4 Nov 2010 06:40:55 -0000
 @@ -2,3 +2,4 @@
  bin/cwmm
  bin/cwpcm
  bin/cwtext
 +share/doc/cwtext/README
 Index: ham/cwtext/distinfo
 ===================================================================
 RCS file: /e/cvsync/cvsync/pkgsrc/ham/cwtext/distinfo,v
 retrieving revision 1.4
 diff -u -r1.4 distinfo
 --- ham/cwtext/distinfo	14 Jan 2006 12:39:06 -0000	1.4
 +++ ham/cwtext/distinfo	4 Nov 2010 03:47:42 -0000
 @@ -1,5 +1,5 @@
  $NetBSD: distinfo,v 1.4 2006/01/14 12:39:06 wulf Exp $

 -SHA1 (cwtext-0.95.tar.gz) = 9adb97a3c605337d48b9de45818f71e809526547
 -RMD160 (cwtext-0.95.tar.gz) = 6427ad50c037d24a39f1c6c7f9e222ccb7c2325b
 -Size (cwtext-0.95.tar.gz) = 15206 bytes
 +SHA1 (cwtext-0.96.tar.gz) = 5e6d7d57b5329de80fce84eb65d47c0b776f2d4f
 +RMD160 (cwtext-0.96.tar.gz) = 1d47de9a6441846484e993708b9c0fdd9042e8ba
 +Size (cwtext-0.96.tar.gz) = 16596 bytes

From: Makoto Fujiwara <makoto@ki.nu>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/44036: [PATCH] ham/cwtext 0.95 -> 0.96
Date: Tue, 07 Dec 2010 20:52:46 +0900

 Hi, Shall I commit the patch proposed ?

 pkglint says OK
 newer version is not released (after my patch)
 package confirmed on NetBSD/5.0_STABLE amd64 and i386

 Thanks,
 ---
 mef@NetBSD.org
 Makoto Fujiwara, 
 Chiba, Japan, Narita Airport and Disneyland prefecture.

Responsible-Changed-From-To: pkg-manager->mef
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Tue, 07 Dec 2010 12:07:07 +0000
Responsible-Changed-Why:
PKGREVISION should be removed instead of commented out.
Then, go ahead!


From: "Makoto Fujiwara" <mef@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/44036 CVS commit: pkgsrc/ham/cwtext
Date: Tue, 7 Dec 2010 13:14:57 +0000

 Module Name:	pkgsrc
 Committed By:	mef
 Date:		Tue Dec  7 13:14:57 UTC 2010

 Modified Files:
 	pkgsrc/ham/cwtext: Makefile PLIST distinfo
 Added Files:
 	pkgsrc/ham/cwtext: MESSAGE

 Log Message:
 PR pkg/44036
 Bump cwtext version 0.95nb3 to 0.96

 Version 0.96
 Added envelope support: no more keyclick!
 Prosign support: use *sk* for example.
 Default bitrate is now 44100. To get the old 8000 bitrate use -lowrez.


 To generate a diff of this commit:
 cvs rdiff -u -r0 -r1.1 pkgsrc/ham/cwtext/MESSAGE
 cvs rdiff -u -r1.18 -r1.19 pkgsrc/ham/cwtext/Makefile
 cvs rdiff -u -r1.2 -r1.3 pkgsrc/ham/cwtext/PLIST
 cvs rdiff -u -r1.4 -r1.5 pkgsrc/ham/cwtext/distinfo

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: mef@NetBSD.org
State-Changed-When: Tue, 07 Dec 2010 14:13:51 +0000
State-Changed-Why:
ham/cwtext updated to 0.96.


>Unformatted:
 Update ham/cwtext 0.95 -> 0.96

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.