diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2005-06-06 22:44:54 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2005-06-06 22:44:54 +0000 |
commit | cacf09cf21a6b18fdb050aaf6fa21f758d73ebbe (patch) | |
tree | 19b256e5d91b3e0cb2556e032cdb9ae003de3d0d /comms/ncid/files | |
parent | - Fix CATEGORIES (diff) |
NCID is a network based Caller ID package that contains a server to obtain the
CID information from a modem, and a client to display the CID information on a
computer, TiVo, text pager, or cell phone. Multiple clients are permitted.
PR: ports/81954
Submitted by: David <david@freshports.org>
Notes
Notes:
svn path=/head/; revision=136953
Diffstat (limited to 'comms/ncid/files')
-rw-r--r-- | comms/ncid/files/patch-ncidd.c | 46 | ||||
-rw-r--r-- | comms/ncid/files/patch-scripts_Makefile | 17 | ||||
-rw-r--r-- | comms/ncid/files/patch-tools_Makefile | 17 | ||||
-rw-r--r-- | comms/ncid/files/pkg-message.in | 5 |
4 files changed, 85 insertions, 0 deletions
diff --git a/comms/ncid/files/patch-ncidd.c b/comms/ncid/files/patch-ncidd.c new file mode 100644 index 000000000000..e427a2392ac6 --- /dev/null +++ b/comms/ncid/files/patch-ncidd.c @@ -0,0 +1,46 @@ +*** ncidd.c Wed Nov 24 03:44:55 2004 +--- ncidd.c Fri Jun 3 17:24:58 2005 +*************** +*** 359,376 **** + + strcat(strncpy(buf, ptr, BUFSIZ - 2), CR); + if (write(ttyfd, buf, strlen(buf)) < 0) return -1; +! do + { +! if ((num = read(ttyfd, buf + size, BUFSIZ - size - 1)) < 0) return -1; +! size += num; +! } while (num); + +! if (debug && size) write(STDOUT, buf, size); +! buf[size] = 0; +! if ((bufp = strrchr(buf, 'O')) != 0) +! if (!strncmp(bufp, "OK", 2)) return 0; +! if ((bufp = strrchr(buf, 'E')) != 0) +! if (!strncmp(bufp, "ERROR", 5)) return 1; + + return 2; + } +--- 359,381 ---- + + strcat(strncpy(buf, ptr, BUFSIZ - 2), CR); + if (write(ttyfd, buf, strlen(buf)) < 0) return -1; +! +! do + { +! do +! { +! if ((num = read(ttyfd, buf + size, BUFSIZ - size - 1)) < 0) return -1; +! size += num; +! } while (num); +! +! if (debug && size) write(STDOUT, buf, size); +! buf[size] = 0; + +! if ((bufp = strrchr(buf, 'O')) != 0) +! if (!strncmp(bufp, "OK", 2)) return 0; +! if ((bufp = strrchr(buf, 'E')) != 0) +! if (!strncmp(bufp, "ERROR", 5)) return 1; +! } while(1); + + return 2; + } diff --git a/comms/ncid/files/patch-scripts_Makefile b/comms/ncid/files/patch-scripts_Makefile new file mode 100644 index 000000000000..d830104ce863 --- /dev/null +++ b/comms/ncid/files/patch-scripts_Makefile @@ -0,0 +1,17 @@ +*** scripts/Makefile.ori Mon Jun 6 16:05:09 2005 +--- scripts/Makefile Mon Jun 6 16:05:29 2005 +*************** +*** 21,32 **** + @if test ! -d $(SHARE); then mkdir $(SHARE); fi + install -m 755 $(SCRIPTS) $(SHARE) + install -m 644 README $(SHARE)/. +- touch install-script + + install-man: $(MAN) + cd $(MAN1); rm -f $(MANSRC) + install -m 644 $(MANSRC) $(MAN1) +- touch install-man + + clean: + +--- 21,30 ---- diff --git a/comms/ncid/files/patch-tools_Makefile b/comms/ncid/files/patch-tools_Makefile new file mode 100644 index 000000000000..724479ed278d --- /dev/null +++ b/comms/ncid/files/patch-tools_Makefile @@ -0,0 +1,17 @@ +*** tools/Makefile.ori Mon Jun 6 16:04:37 2005 +--- tools/Makefile Mon Jun 6 16:04:53 2005 +*************** +*** 31,42 **** + + install-script: $(SCRIPT) + install -m 755 $(SCRIPT) $(BIN) +- touch install-script + + install-man: $(MAN) + cd $(MAN1); rm -f ncidtools.1 + install -m 644 ncidtools.1 $(MAN1) +- touch install-man + + clean: + +--- 31,40 ---- diff --git a/comms/ncid/files/pkg-message.in b/comms/ncid/files/pkg-message.in new file mode 100644 index 000000000000..12127adf5d2c --- /dev/null +++ b/comms/ncid/files/pkg-message.in @@ -0,0 +1,5 @@ +******************************************************************************** + + Edit %%PREFIX%%/etc/ncidd.conf to configure your modem. + +******************************************************************************** |