diff --git a/zaptel-netbsd/DESCR b/zaptel-netbsd/DESCR new file mode 100644 index 0000000000..27c03fdffb --- /dev/null +++ b/zaptel-netbsd/DESCR @@ -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 --git a/zaptel-netbsd/MESSAGE b/zaptel-netbsd/MESSAGE new file mode 100644 index 0000000000..77d6123487 --- /dev/null +++ b/zaptel-netbsd/MESSAGE @@ -0,0 +1,19 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2005/03/15 01:03:31 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 --git a/zaptel-netbsd/Makefile b/zaptel-netbsd/Makefile new file mode 100644 index 0000000000..d9643fc7ee --- /dev/null +++ b/zaptel-netbsd/Makefile @@ -0,0 +1,25 @@ +# $NetBSD: Makefile,v 1.1.1.1 2005/03/15 01:03:31 riz Exp $ +# + +DISTNAME= zaptel-netbsd-20050314 +CATEGORIES= wip +MASTER_SITES= http://www.tastylime.net/netbsd/zaptel/ +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= riz@NetBSD.org +HOMEPAGE= http://www.tastylime.net/netbsd/zaptel/ +COMMENT= zaptel drivers 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} + +USE_BUILDLINK3= yes + +.include "../../wip/newt/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/zaptel-netbsd/PLIST b/zaptel-netbsd/PLIST new file mode 100644 index 0000000000..31d93b89be --- /dev/null +++ b/zaptel-netbsd/PLIST @@ -0,0 +1,16 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2005/03/15 01:03:31 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 diff --git a/zaptel-netbsd/distinfo b/zaptel-netbsd/distinfo new file mode 100644 index 0000000000..106c41bc04 --- /dev/null +++ b/zaptel-netbsd/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2005/03/15 01:03:31 riz Exp $ + +SHA1 (zaptel-netbsd-20050314.tar.bz2) = 45baa64bdb2289110f81f86a6bb0d0a877353b8e +RMD160 (zaptel-netbsd-20050314.tar.bz2) = 240e0dda3f7e16264bf00edf61d832107fb7fa98 +Size (zaptel-netbsd-20050314.tar.bz2) = 113894 bytes