diff options
Diffstat (limited to 'comms')
-rw-r--r-- | comms/zaptel-netbsd/DESCR | 11 | ||||
-rw-r--r-- | comms/zaptel-netbsd/MESSAGE | 19 | ||||
-rw-r--r-- | comms/zaptel-netbsd/Makefile | 26 | ||||
-rw-r--r-- | comms/zaptel-netbsd/PLIST | 17 | ||||
-rw-r--r-- | comms/zaptel-netbsd/buildlink3.mk | 21 | ||||
-rw-r--r-- | comms/zaptel-netbsd/distinfo | 5 | ||||
-rw-r--r-- | comms/zaptel-netbsd/files/ztcfg.sh | 24 |
7 files changed, 123 insertions, 0 deletions
diff --git a/comms/zaptel-netbsd/DESCR b/comms/zaptel-netbsd/DESCR new file mode 100644 index 00000000000..27c03fdffbe --- /dev/null +++ b/comms/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/comms/zaptel-netbsd/MESSAGE b/comms/zaptel-netbsd/MESSAGE new file mode 100644 index 00000000000..6acabe4b36f --- /dev/null +++ b/comms/zaptel-netbsd/MESSAGE @@ -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 --git a/comms/zaptel-netbsd/Makefile b/comms/zaptel-netbsd/Makefile new file mode 100644 index 00000000000..ea89b616be6 --- /dev/null +++ b/comms/zaptel-netbsd/Makefile @@ -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 +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 --git a/comms/zaptel-netbsd/PLIST b/comms/zaptel-netbsd/PLIST new file mode 100644 index 00000000000..84871e8b31e --- /dev/null +++ b/comms/zaptel-netbsd/PLIST @@ -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 --git a/comms/zaptel-netbsd/buildlink3.mk b/comms/zaptel-netbsd/buildlink3.mk new file mode 100644 index 00000000000..7dc298ed8b4 --- /dev/null +++ b/comms/zaptel-netbsd/buildlink3.mk @@ -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 --git a/comms/zaptel-netbsd/distinfo b/comms/zaptel-netbsd/distinfo new file mode 100644 index 00000000000..02a16e68fb1 --- /dev/null +++ b/comms/zaptel-netbsd/distinfo @@ -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 --git a/comms/zaptel-netbsd/files/ztcfg.sh b/comms/zaptel-netbsd/files/ztcfg.sh new file mode 100644 index 00000000000..4d0075c1c0d --- /dev/null +++ b/comms/zaptel-netbsd/files/ztcfg.sh @@ -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" |