1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

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>
This commit is contained in:
Pav Lucistnik 2005-06-06 22:44:54 +00:00
parent eb012cae26
commit cacf09cf21
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=136953
9 changed files with 146 additions and 0 deletions

View File

@ -59,6 +59,7 @@
SUBDIR += mserver
SUBDIR += mwavem
SUBDIR += nasawash
SUBDIR += ncid
SUBDIR += nokryptia
SUBDIR += obexapp
SUBDIR += openobex

36
comms/ncid/Makefile Normal file
View File

@ -0,0 +1,36 @@
# New ports collection makefile for: ncid
# Date created: 06 June 2005
# Whom: David
#
# $FreeBSD$
#
PORTNAME= ncid
PORTVERSION= 0.50
CATEGORIES= comms
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}-${PORTVERSION}
MAINTAINER= david@freshports.org
COMMENT= Network based Caller ID package
LIB_DEPENDS= tk84.1:${PORTSDIR}/x11-toolkits/tk84
WRKSRC= ${WRKDIR}/${PORTNAME}
MAN1= ncid.1 ncidscripts.1 ncidtools.1
MAN5= ncidd.conf.5
MAN8= ncidd.8
USE_GMAKE= yes
ALL_TARGET= freebsd
INSTALL_TARGET= install-freebsd
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES= pkg-message
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

2
comms/ncid/distinfo Normal file
View File

@ -0,0 +1,2 @@
MD5 (ncid-0.50.tar.gz) = 7b6e0ec1eb019dbb086d2a55e9e50d5e
SIZE (ncid-0.50.tar.gz) = 105852

View File

@ -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;
}

View File

@ -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 ----

View File

@ -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 ----

View File

@ -0,0 +1,5 @@
********************************************************************************
Edit %%PREFIX%%/etc/ncidd.conf to configure your modem.
********************************************************************************

8
comms/ncid/pkg-descr Normal file
View File

@ -0,0 +1,8 @@
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.
WWW: http://ncid.sourceforge.net
- David
<david@freshports.org>

14
comms/ncid/pkg-plist Normal file
View File

@ -0,0 +1,14 @@
sbin/ncidd
bin/ncid
bin/cidalias
bin/cidlog
bin/cidlogupd
etc/ncidd.conf
etc/rc.d/ncidd.sh
etc/rc.d/ncid.sh
share/ncid/ncidrotate
share/ncid/ncid-page
share/ncid/ncid-samba
share/ncid/ncid-speak
share/ncid/README
@dirrm share/ncid