[25471] trunk/dports/net
source_changes at macosforge.org
source_changes at macosforge.org
Tue May 22 03:34:00 PDT 2007
Revision: 25471
http://trac.macosforge.org/projects/macports/changeset/25471
Author: ryandesign at macports.org
Date: 2007-05-22 03:34:00 -0700 (Tue, 22 May 2007)
Log Message:
-----------
New port: ncid
Added Paths:
-----------
trunk/dports/net/ncid/
trunk/dports/net/ncid/Portfile
trunk/dports/net/ncid/files/
trunk/dports/net/ncid/files/patch-Makefile.diff
trunk/dports/net/ncid/files/patch-manpages.diff
Added: trunk/dports/net/ncid/Portfile
===================================================================
--- trunk/dports/net/ncid/Portfile (rev 0)
+++ trunk/dports/net/ncid/Portfile 2007-05-22 10:34:00 UTC (rev 25471)
@@ -0,0 +1,48 @@
+# $Id$
+
+PortSystem 1.0
+
+name ncid
+version 0.67
+categories net
+maintainers ryandesign at macports.org
+homepage http://ncid.sourceforge.net/
+master_sites sourceforge
+platforms darwin
+worksrcdir ${name}
+use_configure no
+build.target mac
+destroot.target install-mac
+destroot.destdir prefix=${destroot}${prefix}
+
+description \
+ Network Caller ID system
+
+long_description \
+ NCID is Caller ID (CID) distributed over a network to a variety of \
+ devices and computers. It consists of a server that obtains the \
+ Caller ID information and various clients that receive the \
+ information from the server and act on it in various ways. \
+ The NCID package consists of a server called ncidd, a universal \
+ client called ncid and a CID client called ncidsip. \
+ The server obtains the Caller ID information from a modem, a CID \
+ device or one or more CID clients, and then sends the information \
+ to each connected client.
+
+checksums \
+ md5 b49d6ca63a7740a286548000f6a895e4 \
+ sha1 06699d7675f6b5e29b0b5192f6c86cd7f74682fe \
+ rmd160 84d58ea8b075c0f6fa663994349f0a9bb190bf81
+
+patchfiles \
+ patch-Makefile.diff \
+ patch-manpages.diff
+
+post-patch {
+ reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Makefile
+ reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/man/ncid.1
+ reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/man/ncidd.8
+ reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/man/ncidscripts.1
+ reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/man/ncidsip.8
+ reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/man/ncidtools.1
+}
Property changes on: trunk/dports/net/ncid/Portfile
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: trunk/dports/net/ncid/files/patch-Makefile.diff
===================================================================
--- trunk/dports/net/ncid/files/patch-Makefile.diff (rev 0)
+++ trunk/dports/net/ncid/files/patch-Makefile.diff 2007-05-22 10:34:00 UTC (rev 25471)
@@ -0,0 +1,30 @@
+--- Makefile.orig 2007-04-20 19:53:00.000000000 -0500
++++ Makefile 2007-04-20 19:53:47.000000000 -0500
+@@ -35,7 +35,7 @@
+ FILES = Makefile $(DIST) $(HEADER) $(SOURCE) \
+ $(DOCFILE) $(ETCFILE)
+
+-prefix = /usr/local
++prefix = @PREFIX@
+ prefix2 = $(prefix)
+ settag = NONE
+ setname = NONE
+@@ -48,7 +48,7 @@
+ INIT = $(ETC)/rc.d/init.d
+ CONFDIR = $(ETC)/ncid
+ DEV = /dev
+-LOG = /var/log
++LOG = $(prefix)/var/log
+ MAN = $(prefix)/share/man
+
+ CONF = $(CONFDIR)/ncidd.conf
+@@ -147,7 +147,8 @@
+ $(MAKE) local settag="Macintosh OS X"
+
+ install-mac:
+- $(MAKE) install-base MAN=$(prefix)/man
++ $(MAKE) install-base \
++ MODEMDEV=$(DEV)/cu.modem
+
+ cygwin:
+ $(MAKE) local \
Added: trunk/dports/net/ncid/files/patch-manpages.diff
===================================================================
--- trunk/dports/net/ncid/files/patch-manpages.diff (rev 0)
+++ trunk/dports/net/ncid/files/patch-manpages.diff 2007-05-22 10:34:00 UTC (rev 25471)
@@ -0,0 +1,187 @@
+diff -ru man-orig/ncid.1 man/ncid.1
+--- man-orig/ncid.1 2006-07-28 09:18:33.000000000 -0500
++++ man/ncid.1 2007-04-20 23:37:16.000000000 -0500
+@@ -66,10 +66,10 @@
+ test for it, and if it is not found, or if it is not executable,
+ it will terminate with a error message.
+ .PP
+-The configuration file for \fIncid\fR is /etc/ncid/ncid.conf.
++The configuration file for \fIncid\fR is @PREFIX@/etc/ncid/ncid.conf.
+ .PP
+ Four output modules are provided, customize as needed in the
+-/etc/ncid/ncidscript.conf file:
++ at PREFIX@/etc/ncid/ncidscript.conf file:
+ .PD 0
+ .TP 12
+ .B ncid-mythtv
+@@ -138,7 +138,7 @@
+ .B --prog PROGRAM | -P PROGRAM
+ the display or helper program to use
+ .br
+-Default PATH: /usr/share/ncid
++Default PATH: @PREFIX@/share/ncid
+ .br
+ Default PROGRAM: ncid-speak
+ .TP
+@@ -175,9 +175,9 @@
+ Default: 3333
+ .PD
+ .SH FILES
+-/etc/ncid/*
++ at PREFIX@/etc/ncid/*
+ .br
+-/usr/share/ncid/*
++ at PREFIX@/share/ncid/*
+ .SH EXAMPLES
+ .nf
+ # run ncid in a terminal window, server on remote host
+diff -ru man-orig/ncidd.8 man/ncidd.8
+--- man-orig/ncidd.8 2006-06-28 14:09:40.000000000 -0500
++++ man/ncidd.8 2007-04-20 23:38:09.000000000 -0500
+@@ -82,17 +82,17 @@
+ .B -A <file> | --alias <file>
+ Alias file.
+ .br
+-Default: /etc/ncid/ncidd.alias
++Default: @PREFIX@/etc/ncid/ncidd.alias
+ .TP
+ .B -C <file> | --config <file>
+ Config file.
+ .br
+-Default: /etc/ncid/ncidd.conf
++Default: @PREFIX@/etc/ncid/ncidd.conf
+ .TP
+ .B -c <file> | --cidlog <file>
+ Call log data file.
+ .br
+-Default: /var/log/cidcall.log
++Default: @PREFIX@/var/log/cidcall.log
+ .TP
+ .B -D | --debug
+ Debug mode.
+@@ -100,7 +100,7 @@
+ .B -d <file> | --datalog <file>
+ Data log data file, usually from a modem.
+ .br
+-Default: /var/log/datalog.log
++Default: @PREFIX@/var/log/datalog.log
+ .TP
+ .B -h | --help
+ Display a help message.
+@@ -120,12 +120,12 @@
+ .B -L <file> | --logfile <file>
+ Server logfile.
+ .br
+-Default: /var/log/ncidd.log
++Default: @PREFIX@/var/log/ncidd.log
+ .TP
+ .B -l <file> | --lockfile <file>
+ Modem lockfile.
+ .br
+-Default: /var/lock/LCK..modem
++Default: @PREFIX@/var/lock/LCK..modem
+ .TP
+ .B -N 0/1 | --noserial 0/1
+ serial device (0) or no serial device (1)
+@@ -169,7 +169,7 @@
+ .B -t <ttyport> | --ttyport <ttyport>
+ Modem device file, or serial port that provides Caller ID information.
+ .br
+-Default: /dev/modem
++Default: /dev/cu.modem
+ .TP
+ .B -V | --version
+ Display the version number.
+diff -ru man-orig/ncidscripts.1 man/ncidscripts.1
+--- man-orig/ncidscripts.1 2006-07-03 14:00:38.000000000 -0500
++++ man/ncidscripts.1 2007-04-20 23:40:33.000000000 -0500
+@@ -38,16 +38,16 @@
+ CIDdate CIDtime CIDnumber CIDname CIDline
+ .SH DESCRIPTION
+ These are CID output modules and are normally located in the
+-.BR /usr/share/ncid
++.BR @PREFIX@/share/ncid
+ directory.
+ .PP
+ .B Ncidrotate
+ is called by
+-.I /etc/logrotate.d/ncidd
++.I @PREFIX@/etc/logrotate.d/ncidd
+ and will keep a number of lines in the logfile after rotation.
+ The default is 0 lines kept. The configuration file for
+ logrotate is
+-.I /etc/ncid/ncidrotate.conf
++.I @PREFIX@/etc/ncid/ncidrotate.conf
+ .PP
+ The client,
+ .BR ncid ,
+@@ -58,12 +58,12 @@
+ or
+ .BR ncid-mythtv .
+ The configuration file for the scripts is
+-.I /etc/ncid/ncidscript.conf
++.I @PREFIX@/etc/ncid/ncidscript.conf
+ .PD
+ .SH FILES
+-/etc/ncid/ncidrotate.conf
++ at PREFIX@/etc/ncid/ncidrotate.conf
+ .br
+-/etc/ncid/ncidscript.conf
++ at PREFIX@/etc/ncid/ncidscript.conf
+ .SH SEE ALSO
+ ncid.1,
+ ncidscript.conf.5,
+diff -ru man-orig/ncidsip.8 man/ncidsip.8
+--- man-orig/ncidsip.8 2006-11-14 20:45:24.000000000 -0600
++++ man/ncidsip.8 2007-04-20 23:40:53.000000000 -0500
+@@ -22,7 +22,7 @@
+ the libpcap library and snoops only udp traffic on the specified SIP
+ host and port.
+ .PP
+-The configuration file for \fIncidsip\fR is /etc/ncid/ncidsip.conf.
++The configuration file for \fIncidsip\fR is @PREFIX@/etc/ncid/ncidsip.conf.
+ .SH "OPTIONS"
+ .TP
+ .B -s, --sip=<[host][:port]>
+@@ -71,7 +71,7 @@
+ ID line generated when a call comes in, and a CANCEL line if cancel
+ was generated.
+ .SH FILES
+-/etc/ncid/ncidsip.conf
++ at PREFIX@/etc/ncid/ncidsip.conf
+ .SH CID MESSAGE FORMAT
+ .nf
+ MSG: CID: ###DATEmmddhhss...LINEidentifier...NMBRnumber...NAMEwords+++
+diff -ru man-orig/ncidtools.1 man/ncidtools.1
+--- man-orig/ncidtools.1 2006-05-31 22:12:59.000000000 -0500
++++ man/ncidtools.1 2007-04-20 23:41:12.000000000 -0500
+@@ -41,12 +41,12 @@
+ .B -a aliasfile
+ Set the alias file to \fIaliasfile\fR
+ .br
+-Default: /etc/ncid/ncidd.alias
++Default: @PREFIX@/etc/ncid/ncidd.alias
+ .TP
+ .B -c cidlog
+ Set the CID call file to \fIcidlog\fR
+ .br
+-Default: /var/log/cidcall.log
++Default: @PREFIX@/var/log/cidcall.log
+ .PD
+ .SS "Arguments"
+ .PD 0
+@@ -54,12 +54,12 @@
+ .B cidlog
+ The CID call file.
+ .br
+-Default: /var/log/cidcall.log
++Default: @PREFIX@/var/log/cidcall.log
+ .TP
+ .B configfile
+ The ncidd configuration file.
+ .br
+-Default: /etc/ncid/ncidd.conf
++Default: @PREFIX@/etc/ncid/ncidd.conf
+ .TP
+ .B newcidlog
+ The updated CID log file.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070522/327b089f/attachment.html
More information about the macports-changes
mailing list