aboutsummaryrefslogtreecommitdiff
path: root/comms/ncid
diff options
context:
space:
mode:
authorAndrew Pantyukhin <sat@FreeBSD.org>2007-08-04 15:49:07 +0000
committerAndrew Pantyukhin <sat@FreeBSD.org>2007-08-04 15:49:07 +0000
commit08004f17e6dae2e6b616986495c512450c667f0d (patch)
treefd24bfd24db921a6d3aaa91bfe76389443521818 /comms/ncid
parent3018569328961531b636091f65706d42bc979b10 (diff)
downloadports-08004f17e6dae2e6b616986495c512450c667f0d.tar.gz
ports-08004f17e6dae2e6b616986495c512450c667f0d.zip
Notes
Diffstat (limited to 'comms/ncid')
-rw-r--r--comms/ncid/Makefile41
-rw-r--r--comms/ncid/distinfo6
-rw-r--r--comms/ncid/files/patch-Makefile11
-rw-r--r--comms/ncid/files/pkg-message.in2
-rw-r--r--comms/ncid/pkg-descr2
-rw-r--r--comms/ncid/pkg-plist9
6 files changed, 35 insertions, 36 deletions
diff --git a/comms/ncid/Makefile b/comms/ncid/Makefile
index 7de5ce267209..13b50575bc00 100644
--- a/comms/ncid/Makefile
+++ b/comms/ncid/Makefile
@@ -6,32 +6,47 @@
#
PORTNAME= ncid
-PORTVERSION= 0.67
-PORTREVISION= 1
+PORTVERSION= 0.68
CATEGORIES= comms
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
-MASTER_SITE_SUBDIR= ${PORTNAME}
-DISTNAME= ${PORTNAME}-${PORTVERSION}
+MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Network based Caller ID package
-LIB_DEPENDS= tk84.1:${PORTSDIR}/x11-toolkits/tk84
-
+USE_TK= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
-
-MAN1= ncid.1 ncidscripts.1 ncidtools.1
-MAN5= ncid.conf.5 ncidd.alias.5 ncidd.conf.5 ncidscript.conf.5
+MAN1= ncid.1 ncidscripts.1 ncidtools.1 yac2ncid.1
+MAN5= ncid.conf.5 ncidd.alias.5 ncidd.conf.5 ncidscript.conf.5 yac2ncid.conf.5
MAN8= ncidd.8 ncidsip.8
USE_GMAKE= yes
-ALL_TARGET= freebsd
+ALL_TARGET= local
+MAKE_ARGS= WISH=${WISH} TCLSH=${TCLSH}
INSTALL_TARGET= install-freebsd
-
-PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES= pkg-message
+post-patch:
+ @${GREP} -lr 'etc/ncid' ${WRKSRC}/|${XARGS} ${REINPLACE_CMD} -Ee\
+ 's,(/usr/local/etc/ncid|/etc/ncid),${ETCDIR},g'
+ @${FIND} ${WRKSRC}/ -name Makefile|${XARGS} ${REINPLACE_CMD} -Ee\
+ '/install:/s,install-(etc|logrotate),,'
+ @${REINPLACE_CMD} -e 's|source|.|;s|bash|sh|;/test/s|==|=|;/local/s|-i||'\
+ ${WRKSRC}/tools/yac2ncid.sh
+ @${REINPLACE_CMD} -Ee '/mkdir.*(INIT|ROTATE|BIN|LOG|ETC)/d;\
+ /CFLAGS.*=/s|=|+=|;s|-O||' ${WRKSRC}/Makefile
+
post-install:
+ @${INSTALL} -d ${ETCDIR}/
+ @cd ${WRKSRC};for i in *.alias *.conf scripts/*.conf tools/*.conf;do\
+ ib=`basename $$i`;\
+ ${INSTALL_DATA} $$i ${ETCDIR}/$$ib.dist;\
+ ${CP} -n ${ETCDIR}/$$ib.dist ${ETCDIR}/$$ib;\
+ ${ECHO_CMD} "@unexec cd %D/${ETCDIR_REL}/;! cmp -s $$ib $$ib.dist||\
+ ${RM} -f $$ib">>${TMPPLIST};\
+ ${ECHO_CMD} "${ETCDIR_REL}/$$ib.dist">>${TMPPLIST};\
+ ${ECHO_CMD} "@exec ${CP} -n %D/%F %D/${ETCDIR_REL}/$$ib">>${TMPPLIST};\
+ done
+ @${ECHO_CMD} "@unexec ${RMDIR} %D/${ETCDIR_REL} 2>/dev/null || true">>${TMPPLIST}
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
diff --git a/comms/ncid/distinfo b/comms/ncid/distinfo
index ec77b9218fb4..b14ec67f38a8 100644
--- a/comms/ncid/distinfo
+++ b/comms/ncid/distinfo
@@ -1,3 +1,3 @@
-MD5 (ncid-0.67.tar.gz) = b49d6ca63a7740a286548000f6a895e4
-SHA256 (ncid-0.67.tar.gz) = 1478cc2eeaac899d35db8686b85e9f3124f8b841981e5bd3170a33bf4bdceeaf
-SIZE (ncid-0.67.tar.gz) = 251917
+MD5 (ncid-0.68.tar.gz) = 215de135571aa33132af1f02d80a4dc2
+SHA256 (ncid-0.68.tar.gz) = 656864ede6666d11ea9db338b306a70c0db9405def4b35a3adbf5821485735da
+SIZE (ncid-0.68.tar.gz) = 254013
diff --git a/comms/ncid/files/patch-Makefile b/comms/ncid/files/patch-Makefile
deleted file mode 100644
index dd045590c794..000000000000
--- a/comms/ncid/files/patch-Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
---- Makefile.orig Sat Jul 8 05:43:57 2006
-+++ Makefile Wed Feb 7 19:23:00 2007
-@@ -172,8 +172,6 @@
- @if ! test -d $(SBIN); then mkdir -p $(SBIN); fi
- @if ! test -d $(ETC); then mkdir -p $(ETC); fi
- @if ! test -d $(LOG); then mkdir -p $(LOG); fi
-- @if ! test -d $(ROTATE); then mkdir -p $(ROTATE); fi
-- @if ! test -d $(INIT); then mkdir -p $(INIT); fi
- @if ! test -d $(SCRIPTDIR); then mkdir -p $(SCRIPTDIR); fi
- @if ! test -d $(CONFDIR); then mkdir -p $(CONFDIR); fi
-
diff --git a/comms/ncid/files/pkg-message.in b/comms/ncid/files/pkg-message.in
index 12127adf5d2c..b0fb97ca4bf9 100644
--- a/comms/ncid/files/pkg-message.in
+++ b/comms/ncid/files/pkg-message.in
@@ -1,5 +1,5 @@
********************************************************************************
- Edit %%PREFIX%%/etc/ncidd.conf to configure your modem.
+===> Please edit %%ETCDIR%%/ncidd.conf to configure your modem
********************************************************************************
diff --git a/comms/ncid/pkg-descr b/comms/ncid/pkg-descr
index 03fd27473393..fbd5a7ea1269 100644
--- a/comms/ncid/pkg-descr
+++ b/comms/ncid/pkg-descr
@@ -2,4 +2,4 @@ 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
+WWW: http://ncid.sourceforge.net/
diff --git a/comms/ncid/pkg-plist b/comms/ncid/pkg-plist
index c6a10f5cd95f..2d70b0d3c7ba 100644
--- a/comms/ncid/pkg-plist
+++ b/comms/ncid/pkg-plist
@@ -4,12 +4,7 @@ bin/ncid
bin/cidalias
bin/cidcall
bin/cidupdate
-etc/ncid/ncidd.alias
-etc/ncid/ncidd.conf
-etc/ncid/ncidrotate.conf
-etc/ncid/ncidscript.conf
-etc/ncid/ncidsip.conf
-etc/ncid/ncid.conf
+bin/yac2ncid
etc/rc.d/ncidd.sh
etc/rc.d/ncid.sh
etc/rc.d/ncidsip.sh
@@ -19,6 +14,6 @@ share/ncid/ncid-page
share/ncid/ncid-samba
share/ncid/ncid-speak
share/ncid/ncid-tivo
+share/ncid/ncid-yac
share/ncid/README
@dirrm share/ncid
-@dirrm etc/ncid