From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Jun 6 16:00:03 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 28BF616A41C for ; Mon, 6 Jun 2005 16:00:03 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D239B43D55 for ; Mon, 6 Jun 2005 16:00:02 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j56G023L008177 for ; Mon, 6 Jun 2005 16:00:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j56G02Gb008172; Mon, 6 Jun 2005 16:00:02 GMT (envelope-from gnats) Resent-Date: Mon, 6 Jun 2005 16:00:02 GMT Resent-Message-Id: <200506061600.j56G02Gb008172@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, David Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1976316A422 for ; Mon, 6 Jun 2005 15:51:12 +0000 (GMT) (envelope-from david@goliath.org) Received: from goliath.org (lns-vlq-17f-81-56-160-30.adsl.proxad.net [81.56.160.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8281143D1F for ; Mon, 6 Jun 2005 15:51:10 +0000 (GMT) (envelope-from david@goliath.org) Received: by goliath.org (Postfix, from userid 1001) id 97F93B5; Mon, 6 Jun 2005 17:51:06 +0200 (CEST) Message-Id: <20050606155106.97F93B5@goliath.org> Date: Mon, 6 Jun 2005 17:51:06 +0200 (CEST) From: David To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/81954: New port: comms/ncid Obtain CallerID information from a modem X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: David List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jun 2005 16:00:03 -0000 >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@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@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 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@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 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: