From dbushong@bushong.net  Mon Mar 27 00:59:31 2006
Return-Path: <dbushong@bushong.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id AA7B316A400
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 27 Mar 2006 00:59:31 +0000 (UTC)
	(envelope-from dbushong@bushong.net)
Received: from bushong.net (bushong.net [216.36.66.245])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 3E8B843D45
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 27 Mar 2006 00:59:31 +0000 (GMT)
	(envelope-from dbushong@bushong.net)
Received: from firebat.davedawn.net (dbushong@localhost [127.0.0.1])
	by bushong.net (8.13.4/8.13.4) with ESMTP id k2R0xU1I075845
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 26 Mar 2006 16:59:30 -0800 (PST)
	(envelope-from dbushong@firebat.davedawn.net)
Received: (from dbushong@localhost)
	by firebat.davedawn.net (8.13.4/8.13.4/Submit) id k2R0xUuq075844;
	Sun, 26 Mar 2006 16:59:30 -0800 (PST)
	(envelope-from dbushong)
Message-Id: <200603270059.k2R0xUuq075844@firebat.davedawn.net>
Date: Sun, 26 Mar 2006 16:59:30 -0800 (PST)
From: David Bushong <david@bushong.net>
Reply-To: David Bushong <david@bushong.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: New port: audio/dtmfdial
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         94988
>Category:       ports
>Synopsis:       New port: audio/dtmfdial
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jylefort
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 27 01:00:30 GMT 2006
>Closed-Date:    Fri Mar 31 02:54:57 GMT 2006
>Last-Modified:  Fri Mar 31 02:54:57 GMT 2006
>Originator:     David Bushong
>Release:        FreeBSD 5.5-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD firebat.bushong.net 5.5-PRERELEASE FreeBSD 5.5-PRERELEASE #0: Wed Mar 8 00:10:26 PST 2006 dbushong@firebat.bushong.net:/export/obj/export/src/sys/FIREBAT i386


	
>Description:
Generate dtmf (touch tone) signals and send them to the sound card or store as 
a raw sound file.

>How-To-Repeat:
	
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	dtmfdial
#	dtmfdial/Makefile
#	dtmfdial/distinfo
#	dtmfdial/files
#	dtmfdial/files/patch-aa
#	dtmfdial/pkg-descr
#	dtmfdial/pkg-plist
#
echo c - dtmfdial
mkdir -p dtmfdial > /dev/null 2>&1
echo x - dtmfdial/Makefile
sed 's/^X//' >dtmfdial/Makefile << 'END-of-dtmfdial/Makefile'
X# New ports collection makefile for:   dtmfdial
X# Date created:        26 March 2006
X# Whom:                David Bushong <david@bushong.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	dtmfdial
XPORTVERSION=	0.2
XCATEGORIES=	audio comms
XMASTER_SITES=	${MASTER_SITE_SUNSITE}
XMASTER_SITE_SUBDIR=	apps/sound/misc
XDISTNAME=	dtmf-dial-${PORTVERSION}
X
XMAINTAINER=	ports@FreeBSD.org
XCOMMENT=	Generates DMTF dial tones from the command-line
X
XWRKSRC=		${WRKDIR}/dial
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/dtmfdial ${PREFIX}/bin
X
X.include <bsd.port.mk>
END-of-dtmfdial/Makefile
echo x - dtmfdial/distinfo
sed 's/^X//' >dtmfdial/distinfo << 'END-of-dtmfdial/distinfo'
XMD5 (dtmf-dial-0.2.tar.gz) = 7e67715b6a114f612f71477b7144aa7f
XSHA256 (dtmf-dial-0.2.tar.gz) = 4714878832bfeaa387d57eb5cb52c9c2816c460023198c98cb714f8ef2414c27
XSIZE (dtmf-dial-0.2.tar.gz) = 4136
END-of-dtmfdial/distinfo
echo c - dtmfdial/files
mkdir -p dtmfdial/files > /dev/null 2>&1
echo x - dtmfdial/files/patch-aa
sed 's/^X//' >dtmfdial/files/patch-aa << 'END-of-dtmfdial/files/patch-aa'
X--- Makefile.orig
X+++ Makefile
X@@ -1,12 +1,12 @@
X CFLAGS=-O
X 
X-all: dial
X+all: dtmfdial
X 
X-dial: dial.o
X-	$(CC) $(CFLAGS) dial.o -o dial -lm
X+dtmfdial: dial.o
X+	$(CC) $(CFLAGS) dial.o -o dtmfdial -lm
X 
X dial.o: dial.c
X 	$(CC) $(CFLAGS) -c dial.c
X 
X clean:
X-	$(RM) dial.o dial
X+	$(RM) dial.o dtmfdial
X--- dial.c.orig
X+++ dial.c
X@@ -7,10 +7,10 @@
X #include <math.h>
X #include <stdio.h>
X #include <fcntl.h>
X-#include <malloc.h>
X+#include <stdlib.h>
X #include <sys/types.h>
X #include <sys/stat.h>
X-#include <linux/soundcard.h>
X+#include <sys/soundcard.h>
X 
X #define DEBUG(x)
X 
X@@ -130,7 +130,7 @@
X 	++*index;
X }
X 
X-void
X+int
X main(int argc, char **argv)
X {
X 	char *cp;
END-of-dtmfdial/files/patch-aa
echo x - dtmfdial/pkg-descr
sed 's/^X//' >dtmfdial/pkg-descr << 'END-of-dtmfdial/pkg-descr'
XGenerate dtmf (touch tone) signals and send them to the sound card or store as 
Xa raw sound file.
END-of-dtmfdial/pkg-descr
echo x - dtmfdial/pkg-plist
sed 's/^X//' >dtmfdial/pkg-plist << 'END-of-dtmfdial/pkg-plist'
Xbin/dtmfdial
END-of-dtmfdial/pkg-plist
exit

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->jylefort 
Responsible-Changed-By: jylefort 
Responsible-Changed-When: Fri Mar 31 01:44:20 UTC 2006 
Responsible-Changed-Why:  
Take. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=94988 
State-Changed-From-To: open->closed 
State-Changed-By: jylefort 
State-Changed-When: Fri Mar 31 02:54:48 UTC 2006 
State-Changed-Why:  
Committed with modifications, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=94988 
>Unformatted:
