ports/81954: New port: comms/ncid Obtain CallerID information from a modem
David
david at freshports.org
Mon Jun 6 16:00:03 UTC 2005
>Number: 81954
>Category: ports
>Synopsis: New port: comms/ncid Obtain CallerID information from a modem
>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 Jun 06 16:00:02 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: David
>Release: FreeBSD 5.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD 5.4-STABLE FreeBSD 5.4-STABLE #0: Fri May 13 17:06:20 CEST 2005 root at noname.org:/usr/obj/usr/src/sys/GOLIATH i386
>Description:
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.
>How-To-Repeat:
>Fix:
--- shar_report begins here ---
# 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:
#
# ncid
# ncid/files
# ncid/files/patch-ncidd.c
# ncid/files/patch-tools_Makefile
# ncid/files/patch-scripts_Makefile
# ncid/pkg-plist
# ncid/pkg-descr
# ncid/distinfo
# ncid/Makefile
# ncid/pkg-message
#
echo c - ncid
mkdir -p ncid > /dev/null 2>&1
echo c - ncid/files
mkdir -p ncid/files > /dev/null 2>&1
echo x - ncid/files/patch-ncidd.c
sed 's/^X//' >ncid/files/patch-ncidd.c << 'END-of-ncid/files/patch-ncidd.c'
X*** ncidd.c Wed Nov 24 03:44:55 2004
X--- ncidd.c Fri Jun 3 17:24:58 2005
X***************
X*** 359,376 ****
X
X strcat(strncpy(buf, ptr, BUFSIZ - 2), CR);
X if (write(ttyfd, buf, strlen(buf)) < 0) return -1;
X! do
X {
X! if ((num = read(ttyfd, buf + size, BUFSIZ - size - 1)) < 0) return -1;
X! size += num;
X! } while (num);
X
X! if (debug && size) write(STDOUT, buf, size);
X! buf[size] = 0;
X! if ((bufp = strrchr(buf, 'O')) != 0)
X! if (!strncmp(bufp, "OK", 2)) return 0;
X! if ((bufp = strrchr(buf, 'E')) != 0)
X! if (!strncmp(bufp, "ERROR", 5)) return 1;
X
X return 2;
X }
X--- 359,381 ----
X
X strcat(strncpy(buf, ptr, BUFSIZ - 2), CR);
X if (write(ttyfd, buf, strlen(buf)) < 0) return -1;
X!
X! do
X {
X! do
X! {
X! if ((num = read(ttyfd, buf + size, BUFSIZ - size - 1)) < 0) return -1;
X! size += num;
X! } while (num);
X!
X! if (debug && size) write(STDOUT, buf, size);
X! buf[size] = 0;
X
X! if ((bufp = strrchr(buf, 'O')) != 0)
X! if (!strncmp(bufp, "OK", 2)) return 0;
X! if ((bufp = strrchr(buf, 'E')) != 0)
X! if (!strncmp(bufp, "ERROR", 5)) return 1;
X! } while(1);
X
X return 2;
X }
END-of-ncid/files/patch-ncidd.c
echo x - ncid/files/patch-tools_Makefile
sed 's/^X//' >ncid/files/patch-tools_Makefile << 'END-of-ncid/files/patch-tools_Makefile'
X*** tools/Makefile.ori Mon Jun 6 16:04:37 2005
X--- tools/Makefile Mon Jun 6 16:04:53 2005
X***************
X*** 31,42 ****
X
X install-script: $(SCRIPT)
X install -m 755 $(SCRIPT) $(BIN)
X- touch install-script
X
X install-man: $(MAN)
X cd $(MAN1); rm -f ncidtools.1
X install -m 644 ncidtools.1 $(MAN1)
X- touch install-man
X
X clean:
X
X--- 31,40 ----
END-of-ncid/files/patch-tools_Makefile
echo x - ncid/files/patch-scripts_Makefile
sed 's/^X//' >ncid/files/patch-scripts_Makefile << 'END-of-ncid/files/patch-scripts_Makefile'
X*** scripts/Makefile.ori Mon Jun 6 16:05:09 2005
X--- scripts/Makefile Mon Jun 6 16:05:29 2005
X***************
X*** 21,32 ****
X @if test ! -d $(SHARE); then mkdir $(SHARE); fi
X install -m 755 $(SCRIPTS) $(SHARE)
X install -m 644 README $(SHARE)/.
X- touch install-script
X
X install-man: $(MAN)
X cd $(MAN1); rm -f $(MANSRC)
X install -m 644 $(MANSRC) $(MAN1)
X- touch install-man
X
X clean:
X
X--- 21,30 ----
END-of-ncid/files/patch-scripts_Makefile
echo x - ncid/pkg-plist
sed 's/^X//' >ncid/pkg-plist << 'END-of-ncid/pkg-plist'
Xsbin/ncidd
Xbin/ncid
Xbin/cidalias
Xbin/cidlog
Xbin/cidlogupd
Xetc/ncidd.conf
Xetc/rc.d/ncidd.sh
Xetc/rc.d/ncid.sh
Xshare/ncid/ncidrotate
Xshare/ncid/ncid-page
Xshare/ncid/ncid-samba
Xshare/ncid/ncid-speak
Xshare/ncid/README
X at dirrm share/ncid
END-of-ncid/pkg-plist
echo x - ncid/pkg-descr
sed 's/^X//' >ncid/pkg-descr << 'END-of-ncid/pkg-descr'
XNCID is a network based Caller ID package that contains a server to obtain the
XCID information from a modem, and a client to display the CID information on a
Xcomputer, TiVo, text pager, or cell phone. Multiple clients are permitted.
X
XWWW: http://ncid.sourceforge.net
X
X- David
X <david at freshports.org>
END-of-ncid/pkg-descr
echo x - ncid/distinfo
sed 's/^X//' >ncid/distinfo << 'END-of-ncid/distinfo'
XMD5 (ncid-0.50.tar.gz) = 7b6e0ec1eb019dbb086d2a55e9e50d5e
XSIZE (ncid-0.50.tar.gz) = 105852
END-of-ncid/distinfo
echo x - ncid/Makefile
sed 's/^X//' >ncid/Makefile << 'END-of-ncid/Makefile'
X# New ports collection makefile for: ncid
X# Date created: 06 June 2005
X# Whom: David
X#
X# $FreeBSD$
X#
X
XPORTNAME= ncid
XPORTVERSION= 0.50
XCATEGORIES= comms
XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR= ${PORTNAME}
XDISTNAME= ${PORTNAME}-${PORTVERSION}
X
XMAINTAINER= david at freshports.org
XCOMMENT= Network based Caller ID package
X
XLIB_DEPENDS= tk84.1:${PORTSDIR}/x11-toolkits/tk84 \
X tcl84.1:${PORTSDIR}/lang/tcl84
X
XWRKSRC= ${WRKDIR}/${PORTNAME}
X
XMAN1= ncid.1 ncidscripts.1 ncidtools.1
XMAN5= ncidd.conf.5
XMAN8= ncidd.8
X
XUSE_GMAKE= yes
XALL_TARGET= freebsd
X
Xdo-install:
X cd ${WRKSRC} ; ${GMAKE} install-freebsd
X
Xpost-install:
X @${SED} -e 's|%%PREFIX%%|${PREFIX}|g' ${PKGDIR}/pkg-message | ${CAT}
X
X
X.include <bsd.port.mk>
END-of-ncid/Makefile
echo x - ncid/pkg-message
sed 's/^X//' >ncid/pkg-message << 'END-of-ncid/pkg-message'
X********************************************************************************
X
X Edit %%PREFIX%%/etc/ncidd.conf to configure your modem.
X
X********************************************************************************
END-of-ncid/pkg-message
exit
--- shar_report ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list