diff options
author | sobomax <sobomax@FreeBSD.org> | 2008-02-07 12:31:08 +0800 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2008-02-07 12:31:08 +0800 |
commit | 2ad3172d67ebc6c152a741ae7d8fa7a2a938ac5e (patch) | |
tree | 37bdaa305d08f1c9eff34dd8b38b5ed73f9e5eae /misc | |
parent | d0cde8ba7cdb3c7edd55a839e7514d3654deebe6 (diff) | |
download | freebsd-ports-gnome-2ad3172d67ebc6c152a741ae7d8fa7a2a938ac5e.tar.gz freebsd-ports-gnome-2ad3172d67ebc6c152a741ae7d8fa7a2a938ac5e.tar.zst freebsd-ports-gnome-2ad3172d67ebc6c152a741ae7d8fa7a2a938ac5e.zip |
Fix wrong device name in fxotune.c: /dev/zap/N ->
/dev/zap/channelN. Bump PORTREVISION.
Submitted by: Patrick Gibson <patrick@patrickg.com>
Diffstat (limited to 'misc')
-rw-r--r-- | misc/zaptel/Makefile | 2 | ||||
-rw-r--r-- | misc/zaptel/files/patch-tools::fxotune.c | 20 |
2 files changed, 21 insertions, 1 deletions
diff --git a/misc/zaptel/Makefile b/misc/zaptel/Makefile index f7740814896a..e808cde87b9c 100644 --- a/misc/zaptel/Makefile +++ b/misc/zaptel/Makefile @@ -7,7 +7,7 @@ PORTNAME= zaptel PORTVERSION= 1.4.6 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= misc kld MASTER_SITES= http://www.pbxpress.com/~gonzo/ DISTNAME= ${PORTNAME}-bsd-${PORTVERSION} diff --git a/misc/zaptel/files/patch-tools::fxotune.c b/misc/zaptel/files/patch-tools::fxotune.c new file mode 100644 index 000000000000..68de19e824d7 --- /dev/null +++ b/misc/zaptel/files/patch-tools::fxotune.c @@ -0,0 +1,20 @@ +--- tools/fxotune.c.orig Thu Jan 4 02:13:23 2007 ++++ tools/fxotune.c Wed Feb 6 11:43:10 2008 +@@ -320,7 +320,7 @@ + mycoefs.coef7 = mycoef7; + mycoefs.coef8 = mycoef8; + +- snprintf(completezappath, sizeof(completezappath), "%s/%d", zappath, myzap); ++ snprintf(completezappath, sizeof(completezappath), "%s/channel%d", zappath, myzap); + fd = open(completezappath, O_RDWR); + + if (fd < 0) { +@@ -356,7 +356,7 @@ + } + + for (i = 0; i < 252; i++) { +- snprintf(zapdev, sizeof(zapdev), "%s/%d", zappath, i+1); ++ snprintf(zapdev, sizeof(zapdev), "%s/channel%d", zappath, i+1); + + fd = open(zapdev, O_RDWR); + if (fd < 0) { |