[Midnightbsd-cvs] mports: mports/comms: add cdr_read

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Aug 17 17:42:19 EDT 2008


Log Message:
-----------
add cdr_read

Modified Files:
--------------
    mports/comms:
        Makefile (r1.14 -> r1.15)

Added Files:
-----------
    mports/comms/cdr_read:
        Makefile (r1.1)
        distinfo (r1.1)
        pkg-descr (r1.1)
    mports/comms/cdr_read/files:
        patch-cdr_read.c (r1.1)

-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/comms/Makefile,v
retrieving revision 1.14
retrieving revision 1.15
diff -L comms/Makefile -L comms/Makefile -u -r1.14 -r1.15
--- comms/Makefile
+++ comms/Makefile
@@ -9,6 +9,7 @@
     SUBDIR += atslog
     SUBDIR += bforce
     SUBDIR += bforce-kst
+    SUBDIR += cdr_read
     SUBDIR += efax
     SUBDIR += libirman
     SUBDIR += libticables
--- /dev/null
+++ comms/cdr_read/pkg-descr
@@ -0,0 +1,9 @@
+    This program is intented for reading of the call detail records from
+PBX and putting them in common text file or in different files on
+day-by-day or  month-by-month basis. In case day-by-day or month-by-month
+ basis the support  of  specific PBX is required.
+    The  following  PBXs  are supported:
+Definity, Merlin, Panasonic KX-TD816/TD1232/TA308/TA616/TA624 (and others
+with similar SMDR format), Meridian, GHX-616/36/46.
+
+WWW: http://www.gamma.ru/~avk/
--- /dev/null
+++ comms/cdr_read/Makefile
@@ -0,0 +1,34 @@
+# New ports collection makefile for: cdr_read
+# Date created:    15 June 2004
+# Whom:     Konstantin Reznichenko <kot at premierbank.dp.ua>
+#
+# $MidnightBSD: mports/comms/cdr_read/Makefile,v 1.1 2008/08/17 21:42:16 laffer1 Exp $
+# $FreeBSD: ports/comms/cdr_read/Makefile,v 1.2 2004/07/15 22:59:10 kris Exp $
+#
+
+PORTNAME=	cdr_read
+PORTVERSION=	1.09
+CATEGORIES=	comms
+MASTER_SITES=	http://www.gamma.ru/~avk/
+DISTNAME=	cdrr109
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	Utility for reading of the call detail records from PBX
+LICENSE=	other
+
+NO_WRKSUBDIR=	yes
+
+PORTDOCS=	readme.txt
+PLIST_FILES=	sbin/cdr_read
+
+post-patch:
+	@${TR} -d "\015" < ${WRKDIR}/readme_eng.txt > ${WRKDIR}/readme.txt
+
+do-install:
+	@${INSTALL_PROGRAM} ${WRKDIR}/${PORTNAME} ${PREFIX}/sbin/${PORTNAME}
+.if !defined(NOPORTDOCS)
+	@${MKDIR} ${DOCSDIR}
+	@${INSTALL_DATA} ${WRKDIR}/readme.txt ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
--- /dev/null
+++ comms/cdr_read/distinfo
@@ -0,0 +1,3 @@
+MD5 (cdrr109.tar.gz) = c2534601519edc3e408070ab7c0c4380
+SHA256 (cdrr109.tar.gz) = 4a723b6a5ceb8d577cd103128fb334cd1e4e5ab02ada57251fa82030f3bcd729
+SIZE (cdrr109.tar.gz) = 28288
--- /dev/null
+++ comms/cdr_read/files/patch-cdr_read.c
@@ -0,0 +1,52 @@
+--- cdr_read.c.orig	Tue Oct  8 09:39:55 2002
++++ cdr_read.c	Mon Jul  5 11:14:12 2004
+@@ -696,28 +696,27 @@
+ 	struct LogType *lt;
+ 
+ 	fprintf( stderr,
+-"
+-CDR Reader for PBXs v.%s (C) Alexey V. Kuznetsov, avk at gamma.ru, 2001-2002
+-cdr_read [-D dir] [-L logfile] [-s speed] [-c csize] [-p parity] [-f sbits]
+-	 [-t type] [-d] [-e] [-a] [-o] dev
+--D dir		directory where CDR files will be put, default is current dir
+--L logfile	file for error messages, default is stderr
+--s speed	speed of serial device, default 9600
+--c char_size	length of character; valid values from 5 to 8
+--p parity	parity of serial device:
+-		e - even parity, o - odd parity, n - no parity,
+-		m - mark parity (Win32 only), s - space parity (Win32 only)
+--f stop_bits	number of stop bits; valid values 1 or 2
+--d		output additional debug messages
+--e		copy error messages to stderr (in case if -L has value)
+--a		write date at the beginning of file (for Definity type only)
+--o		write CDR additionally to stdout
+--m		write log files on month-by-month instead of day-by-day basis
+--n		consider day in place of month and vice versa
+--r x.x.x.x	accept TCP connections from this IP address only
+--w seconds	timeout before I/O port will be opened next time after EOF
+--t cdr_type	type of CDR records, valid values (first is default)
+-",CDRR_VER);
++"\n" \
++"CDR Reader for PBXs v.%s (C) Alexey V. Kuznetsov, avk at gamma.ru, 2001-2002\n" \
++"cdr_read [-D dir] [-L logfile] [-s speed] [-c csize] [-p parity] [-f sbits]\n" \
++"	 [-t type] [-d] [-e] [-a] [-o] dev\n" \
++"-D dir		directory where CDR files will be put, default is current dir\n" \
++"-L logfile	file for error messages, default is stderr\n" \
++"-s speed	speed of serial device, default 9600\n" \
++"-c char_size	length of character; valid values from 5 to 8\n" \
++"-p parity	parity of serial device:\n" \
++"		e - even parity, o - odd parity, n - no parity,\n" \
++"		m - mark parity (Win32 only), s - space parity (Win32 only)\n" \
++"-f stop_bits	number of stop bits; valid values 1 or 2\n" \
++"-d		output additional debug messages\n" \
++"-e		copy error messages to stderr (in case if -L has value)\n" \
++"-a		write date at the beginning of file (for Definity type only)\n" \
++"-o		write CDR additionally to stdout\n" \
++"-m		write log files on month-by-month instead of day-by-day basis\n" \
++"-n		consider day in place of month and vice versa\n" \
++"-r x.x.x.x	accept TCP connections from this IP address only\n" \
++"-w seconds	timeout before I/O port will be opened next time after EOF\n" \
++"-t cdr_type	type of CDR records, valid values (first is default)\n",CDRR_VER);
+ 	for( lt=logtypes; lt->name!=NULL; lt++ ) {
+ 		fprintf( stderr,"\t%s",lt->name );
+ 	}


More information about the Midnightbsd-cvs mailing list