Date: Sun, 26 Mar 2006 16:59:30 -0800 (PST) From: David Bushong <david@bushong.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/94988: New port: audio/dtmfdial Message-ID: <200603270059.k2R0xUuq075844@firebat.davedawn.net> Resent-Message-ID: <200603270100.k2R10UdJ023168@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 94988 >Category: ports >Synopsis: New port: audio/dtmfdial >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Mar 27 01:00:30 GMT 2006 >Closed-Date: >Last-Modified: >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: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603270059.k2R0xUuq075844>