pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/comms/zaptel-netbsd Initial import of zaptel-netbsd, a...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/180ddfc2a34e
branches:  trunk
changeset: 492252:180ddfc2a34e
user:      riz <riz%pkgsrc.org@localhost>
date:      Fri Apr 08 03:03:42 2005 +0000

description:
Initial import of zaptel-netbsd, approved by jmcneill.

This package provides the "zaptel" drivers, which support the Asterisk
software PBX, ported to NetBSD.

These are some drivers and auxiliary tools for NetBSD in support of
the Asterisk PBX.  The wcfxo driver supports the Wildcard X100P/X101P and
clones, the wcfxs driver supports the Wildcard TDM400p, and the ztdummy
driver provides a software-only timer device which makes conferencing
work much better. (That is, if you run Asterisk, you may want these
drivers even if you don't have any of the hardware)

The T1 board driver has not yet been ported.

diffstat:

 comms/zaptel-netbsd/DESCR          |  11 +++++++++++
 comms/zaptel-netbsd/MESSAGE        |  19 +++++++++++++++++++
 comms/zaptel-netbsd/Makefile       |  26 ++++++++++++++++++++++++++
 comms/zaptel-netbsd/PLIST          |  17 +++++++++++++++++
 comms/zaptel-netbsd/buildlink3.mk  |  21 +++++++++++++++++++++
 comms/zaptel-netbsd/distinfo       |   5 +++++
 comms/zaptel-netbsd/files/ztcfg.sh |  24 ++++++++++++++++++++++++
 7 files changed, 123 insertions(+), 0 deletions(-)

diffs (151 lines):

diff -r 284e7eaee8b3 -r 180ddfc2a34e comms/zaptel-netbsd/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/zaptel-netbsd/DESCR Fri Apr 08 03:03:42 2005 +0000
@@ -0,0 +1,11 @@
+This package provides the "zaptel" drivers, which support the Asterisk
+software PBX, ported to NetBSD.
+
+These are some drivers and auxiliary tools for NetBSD in support of
+the Asterisk PBX.  The wcfxo driver supports the Wildcard X100P/X101P and
+clones, the wcfxs driver supports the Wildcard TDM400p, and the ztdummy
+driver provides a software-only timer device which makes conferencing
+work much better. (That is, if you run Asterisk, you may want these
+drivers even if you don't have any of the hardware)
+
+The T1 board driver has not yet been ported.
diff -r 284e7eaee8b3 -r 180ddfc2a34e comms/zaptel-netbsd/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/zaptel-netbsd/MESSAGE       Fri Apr 08 03:03:42 2005 +0000
@@ -0,0 +1,19 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2005/04/08 03:03:42 riz Exp $
+To have the zaptel modules automatically loaded at boot time, add the
+following to /etc/lkm.conf:
+
+${PREFIX}/lkm/mod_zaptel.o -s - ${PREFIX}/sbin/zaptel_postinstall - -
+# Uncomment the drivers you want; use mod_ztdummy.o only if you have
+# no hardware
+#${PREFIX}/lkm/mod_ztdummy.o -s - - - -
+#${PREFIX}/lkm/mod_wcfxo.o -s - - - -
+#${PREFIX}/lkm/mod_wcfxs.o -s - - - -
+
+And then add 'lkm=YES' to /etc/rc.conf.  Refer to lkm.conf(5) for
+additional details.  (Make sure to uncomment the appropriate lines for
+your hardware, or lack thereof)
+
+The script ${PREFIX}/sbin/zaptel_postinstall creates the relevant device
+nodes in /dev, and can be used independently.
+===========================================================================
diff -r 284e7eaee8b3 -r 180ddfc2a34e comms/zaptel-netbsd/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/zaptel-netbsd/Makefile      Fri Apr 08 03:03:42 2005 +0000
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/04/08 03:03:42 riz Exp $
+#
+
+DISTNAME=              zaptel-netbsd-20050404
+CATEGORIES=            comms
+MASTER_SITES=          http://www.tastylime.net/netbsd/zaptel/
+EXTRACT_SUFX=          .tar.bz2
+
+MAINTAINER=    riz%NetBSD.org@localhost
+HOMEPAGE=      http://www.tastylime.net/netbsd/zaptel/
+COMMENT=       The "zaptel" drivers and utils for the Asterisk Software PBX
+
+ONLY_FOR_PLATFORM=     NetBSD-[2-9]*-*
+INSTALLATION_DIRS=     lkm
+
+ZAPTEL_KERNEL_ENV?=    # empty
+BUILD_DEFS+=           ZAPTEL_KERNEL_ENV
+MAKE_ENV+=             ZAPTEL_KERNEL_ENV=${ZAPTEL_KERNEL_ENV:Q}
+CONF_FILES=            ${PREFIX}/share/examples/zaptel/zaptel.conf \
+                       ${PKG_SYSCONFDIR}/zaptel.conf
+
+USE_PKGINSTALL=                yes
+RCD_SCRIPTS=           ztcfg
+
+.include "../../devel/newt/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 284e7eaee8b3 -r 180ddfc2a34e comms/zaptel-netbsd/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/zaptel-netbsd/PLIST Fri Apr 08 03:03:42 2005 +0000
@@ -0,0 +1,17 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/04/08 03:03:42 riz Exp $
+bin/fxo_test
+bin/ztcfg
+bin/ztmonitor
+bin/zttest
+bin/zttool
+include/tonezone.h
+include/zaptel.h
+lib/libtonezone.a
+lkm/mod_wcfxo.o
+lkm/mod_wcfxs.o
+lkm/mod_zaptel.o
+lkm/mod_ztdummy.o
+sbin/zaptel_postinstall
+share/examples/zaptel/zaptel.conf
+@dirrm share/examples/zaptel
+@unexec ${RMDIR} %D/lkm 2>/dev/null || ${TRUE}
diff -r 284e7eaee8b3 -r 180ddfc2a34e comms/zaptel-netbsd/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/zaptel-netbsd/buildlink3.mk Fri Apr 08 03:03:42 2005 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2005/04/08 03:03:42 riz Exp $
+
+BUILDLINK_DEPTH:=              ${BUILDLINK_DEPTH}+
+ZAPTEL_NETBSD_BUILDLINK3_MK:=  ${ZAPTEL_NETBSD_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+=    zaptel-netbsd
+.endif
+
+BUILDLINK_PACKAGES:=   ${BUILDLINK_PACKAGES:Nzaptel-netbsd}
+BUILDLINK_PACKAGES+=   zaptel-netbsd
+
+.if !empty(ZAPTEL_NETBSD_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.zaptel-netbsd+=      zaptel-netbsd>=20050314
+BUILDLINK_PKGSRCDIR.zaptel-netbsd?=    ../../comms/zaptel-netbsd
+BUILDLINK_DEPMETHOD.zaptel-netbsd?=    build
+.endif # ZAPTEL_NETBSD_BUILDLINK3_MK
+
+.include "../../wip/newt/buildlink3.mk"
+
+BUILDLINK_DEPTH:=     ${BUILDLINK_DEPTH:S/+$//}
diff -r 284e7eaee8b3 -r 180ddfc2a34e comms/zaptel-netbsd/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/zaptel-netbsd/distinfo      Fri Apr 08 03:03:42 2005 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/04/08 03:03:42 riz Exp $
+
+SHA1 (zaptel-netbsd-20050404.tar.bz2) = 71f09b49a808ded0ac62558c2ccdb36969c5553f
+RMD160 (zaptel-netbsd-20050404.tar.bz2) = d10398a74a8b00299db08fb06ac767145667a674
+Size (zaptel-netbsd-20050404.tar.bz2) = 114012 bytes
diff -r 284e7eaee8b3 -r 180ddfc2a34e comms/zaptel-netbsd/files/ztcfg.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/zaptel-netbsd/files/ztcfg.sh        Fri Apr 08 03:03:42 2005 +0000
@@ -0,0 +1,24 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: ztcfg.sh,v 1.1.1.1 2005/04/08 03:03:42 riz Exp $
+#
+# PROVIDE: ztcfg
+# REQUIRE: aftermountlkm
+# BEFORE: asterisk
+#
+# You will need to set some variables in /etc/rc.conf to run ztcfg:
+#
+# ztcfg=YES
+
+if [ -f /etc/rc.subr ]
+then
+       . /etc/rc.subr
+fi
+
+name="ztcfg"
+rcvar=$name
+command="@PREFIX@/bin/ztcfg"
+required_files="@PKG_SYSCONFDIR@/zaptel.conf"
+
+load_rc_config $name
+run_rc_command "$1"



Home | Main Index | Thread Index | Old Index