Compare commits

..

11 commits

Author SHA1 Message Date
Fedora Release Engineering
e9d9807c75 dist-git conversion 2010-07-29 16:27:41 +00:00
Bill Nottingham
d262e4b7d9 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:08:49 +00:00
Jeffrey C. Ollie
43af190f16 - Update to 1.4.11 2008-05-29 04:44:33 +00:00
Jeffrey C. Ollie
0984ab64ea - Update to 1.4.10.1 2008-05-09 14:48:25 +00:00
Jeffrey C. Ollie
fabe2cbb7d Update to 1.4.9. 2008-02-21 14:05:27 +00:00
Jeffrey C. Ollie
6226e84a1e Really get this working. 2008-01-15 16:49:04 +00:00
Jeffrey C. Ollie
d10d47500a Update to 1.4.8. 2008-01-15 14:42:57 +00:00
Jeffrey C. Ollie
51af743894 Update to 1.4.7.1 2007-12-20 16:52:36 +00:00
Jeffrey C. Ollie
2667f2af27 Remove unneeded patch. 2007-11-03 05:07:20 +00:00
Jeffrey C. Ollie
fef8b1cc91 Update to 1.4.6 2007-11-03 04:49:57 +00:00
Bill Nottingham
62d2f34ecc Initialize branch F-7 for zaptel 2007-05-18 11:55:42 +00:00
8 changed files with 391 additions and 2 deletions

2
.gitignore vendored
View file

@ -1 +1 @@
zaptel-1.4.12.1.tar.gz
zaptel-1.4.11.tar.gz

View file

@ -1 +0,0 @@
replaced my dahdi-tools

7
menuselect.makedeps Normal file
View file

@ -0,0 +1,7 @@
MENUSELECT_DEPENDS_wctc4xxp=ZTTRANSCODE
MENUSELECT_DEPENDS_ztd-eth=ZTDYNAMIC
MENUSELECT_DEPENDS_ztd-loc=ZTDYNAMIC
MENUSELECT_DEPENDS_zttool=LIBNEWT
MENUSELECT_DEPENDS_FIRMWARE-OCT6114-064=WCT4XXP
MENUSELECT_DEPENDS_FIRMWARE-OCT6114-128=WCT4XXP
MENUSELECT_DEPENDS_FIRMWARE-TC400M=WCTC4XXP

3
menuselect.makeopts Normal file
View file

@ -0,0 +1,3 @@
MENUSELECT_MODULES=pciradio tor2 torisa wcfxo wct1xxp wct4xxp wctc4xxp wctdm wctdm24xxp wcte11xp wcte12xp wcusb xpp zaptel ztd-eth ztd-loc ztdummy ztdynamic zttranscode
MENUSELECT_UTILS=
MENUSELECT_FIRMWARE=

1
sources Normal file
View file

@ -0,0 +1 @@
894d548d180fddf360de1c0426a68bac zaptel-1.4.11.tar.gz

View file

@ -0,0 +1,23 @@
From 32a671bbf9ae1103626d539b4fce7d649d39e11f Mon Sep 17 00:00:00 2001
From: Jeffrey C. Ollie <jeff@ocjtech.us>
Date: Tue, 15 Jan 2008 08:01:31 -0600
Subject: [PATCH] Apply udevzaptelowner patch from rpm package.
---
build_tools/genudevrules | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/build_tools/genudevrules b/build_tools/genudevrules
index 17e1f90..fa6987b 100755
--- a/build_tools/genudevrules
+++ b/build_tools/genudevrules
@@ -31,5 +31,5 @@ KERNEL${match}"zappseudo", NAME="zap/pseudo"
KERNEL${match}"zap[0-9]*", NAME="zap/%n"
# zaptel devices with ownership/permissions for running as non-root
-SUBSYSTEM${match}"zaptel", OWNER="asterisk", GROUP="asterisk", MODE="0660"
+SUBSYSTEM${match}"zaptel", OWNER="zaptel", GROUP="zaptel", MODE="0660"
EOF
--
1.5.4.3

63
zaptel.init Normal file
View file

@ -0,0 +1,63 @@
#!/bin/sh
#
# zaptel This shell script takes care of loading and unloading \
# Zapata Telephony interfaces
# chkconfig: - 9 92
# description: The zapata telephony drivers allow you to use your linux \
# computer to accept incoming data and voice interfaces
#
# config: /etc/sysconfig/zaptel
initdir=/etc/rc.d/init.d
# Source function library.
. $initdir/functions || exit 0
# Source zaptel configuration.
[ -f /etc/sysconfig/zaptel ] && . /etc/sysconfig/zaptel
# Check that telephony is up.
[ "${TELEPHONY}" = "yes" ] || exit 0
[ -f /sbin/ztcfg ] || exit 0
[ -f /etc/zaptel.conf ] || exit 0
RETVAL=0
# See how we were called.
case "$1" in
start)
if [ ! -e /proc/zaptel/1 ]; then
echo "No functioning zap hardware found in /proc/zaptel, loading ztdummy"
action "Loading ztdummy:" modprobe ztdummy
fi
action "Running ztcfg: " /sbin/ztcfg
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/zaptel
;;
stop)
RETVAL=0
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/zaptel
;;
restart)
$0 stop
$0 start
;;
reload)
action "Reloading ztcfg: " /sbin/ztcfg
RETVAL=$?
;;
status)
echo "Status option unimplemented."
RETVAL=$?
;;
*)
echo "Usage: zaptel {start|stop|status|restart|reload}"
exit 1
esac
exit $RETVAL

293
zaptel.spec Normal file
View file

@ -0,0 +1,293 @@
Summary: Tools and libraries for using/configuring/monitoring Zapata telephony interfaces
Name: zaptel
Version: 1.4.11
Release: 1%{?dist}
License: GPL
Group: Applications/System
URL: http://www.digium.com/
Source0: http://downloads.digium.com/pub/telephony/zaptel/releases/zaptel-%{version}.tar.gz
Patch0: zaptel-1.4.10-udevzaptelowner.patch
Source1: menuselect.makedeps
Source2: menuselect.makeopts
Source3: zaptel.init
BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
BuildRequires: newt-devel
BuildRequires: udev
Requires(pre): fedora-usermgmt
Requires(preun): /sbin/service
Requires(preun): /sbin/chkconfig
Requires(post): /sbin/chkconfig
Requires(postun): fedora-usermgmt
%description
Tools and libraries for using/configuring/monitoring Zapata telephony
interfaces.
%package lib
Summary:Library for using Zapata telephony interfaces
Group: Development/Libraries
%description lib
Library for using Zapata telephony interfaces.
%package utils
Summary: Tools for monitoring and testing Zapata telephony interfaces
Group: Development/Libraries
Requires: zaptel-lib = %{version}-%{release}
%description utils
Tools for monitoring and testing Zapata telephony interfaces.
%package devel
Summary: Development files for Zapata telephony interfaces
Group: Development/Libraries
Requires: zaptel-lib = %{version}-%{release}
%description devel
Development files for Zapata telephony interfaces.
%prep
%setup0 -q
%patch0 -p1
cp %{S:1} .
cp %{S:2} .
cp %{S:3} .
# convert some files to UTF-8
pushd doc
for f in zttool.8 ztcfg.8 ztmonitor.8
do
iconv -f iso8859-1 -t utf-8 $f -o $f.tmp
mv $f.tmp $f
done
popd
%build
pushd menuselect/mxml
%configure
popd
pushd menuselect
%configure
popd
%configure
make %{?_smp_mflags} programs
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_initrddir}
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/network-scripts
mkdir -p %{buildroot}%{_sysconfdir}/udev/rules.d
mkdir -p %{buildroot}%{_sysconfdir}/udev/permissions.d
mkdir -p %{buildroot}%{_mandir}/man8
make install-programs config DESTDIR=%{buildroot}
build_tools/genudevrules > %{buildroot}%{_sysconfdir}/udev/rules.d/zaptel.rules
for f in fxotune fxstest ztdiag ztmonitor ztscan ztspeed zttest zttool
do
mv %{buildroot}/sbin/$f %{buildroot}%{_sbindir}/$f
done
rm -f %{buildroot}%{_libdir}/libtonezone.a
%clean
rm -rf %{buildroot}
%post
/usr/sbin/fedora-groupadd 29 -r zaptel &>/dev/null || :
/usr/sbin/fedora-useradd 29 -r -s /sbin/nologin -d / -M \
-c 'Zapata Telephony' -g zaptel zaptel &>/dev/null || :
/sbin/chkconfig --add zaptel
%preun
if [ $1 -eq 0 ]; then
/sbin/service zaptel stop >/dev/null 2>&1
/sbin/chkconfig --del zaptel
fi
%post lib -p /sbin/ldconfig
%postun lib -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc ChangeLog
%doc ifcfg-hdlc0
%doc LICENSE
%doc README
%doc README.fxotune
%doc README.fxsusb
%doc zaptel.conf.sample
%config(noreplace) %{_sysconfdir}/zaptel.conf
%config(noreplace) %{_sysconfdir}/sysconfig/zaptel
%config(noreplace) %{_sysconfdir}/udev/rules.d/zaptel.rules
%{_sysconfdir}/sysconfig/network-scripts/ifup-hdlc
/sbin/ztcfg
/sbin/sethdlc-new
%{_initrddir}/zaptel
%{_mandir}/man8/ztcfg.8*
%files lib
%defattr(-,root,root,-)
%{_libdir}/libtonezone.so.1
%{_libdir}/libtonezone.so.1.0
%files utils
%defattr(-,root,root,-)
%{_sbindir}/fxotune
%{_sbindir}/fxstest
%{_sbindir}/ztdiag
%{_sbindir}/ztmonitor
%{_sbindir}/ztscan
%{_sbindir}/ztspeed
%{_sbindir}/zttest
%{_sbindir}/zttool
%{_mandir}/man8/fxotune.8*
%{_mandir}/man8/fxstest.8*
%{_mandir}/man8/ztdiag.8*
%{_mandir}/man8/ztmonitor.8*
%{_mandir}/man8/ztscan.8*
%{_mandir}/man8/ztspeed.8*
%{_mandir}/man8/zttest.8*
%{_mandir}/man8/zttool.8*
%files devel
%defattr(-,root,root,-)
%doc LICENSE
%dir %{_includedir}/zaptel
%{_includedir}/zaptel/tonezone.h
%{_includedir}/zaptel/zaptel.h
%{_libdir}/libtonezone.so
%changelog
* Wed May 28 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.4.11-1
- Update to 1.4.11
* Thu May 8 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.4.10.1-1
- Update to 1.4.10.1
* Wed Apr 9 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.4.10-1
- Update to 1.4.10
* Thu Feb 21 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.4.9-1
- Update to 1.4.9.
* Mon Feb 11 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.4.8-2
- Rebuild for GCC 4.3
* Mon Jan 14 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.4.8-1
- Update to 1.4.8
* Thu Dec 20 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.4.7.1-1
- Update to 1.4.7.1
- Drop upstreamed patch.
* Fri Nov 1 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.4.6-1
- Update to 1.4.6
- Apply patch to fix AST-2007-024
* Wed Apr 25 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.4.2.1-1
- Update to 1.4.2.1
* Mon Mar 26 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.4.1-4
- Own /usr/include/zaptel, fixes #233970.
* Fri Mar 23 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.4.1-3
- Really, really make it work without the kernel sources...
* Fri Mar 23 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.4.1-2
- Let's see if we can get this to build without the kernel sources present.
* Fri Mar 23 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.4.1-1
- Update to 1.4.1
* Sat Dec 23 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.4.0-9
- (Annoyed Grunt!)
* Sat Dec 23 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.4.0-8
- Don't package hdlc bits on FC <= 5
* Sat Dec 23 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.4.0-7
- Update to 1.4.0 final
* Fri Dec 15 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.4.0-5.beta3
- Update to 1.4.0-beta3
- Drop unnecessary patch
* Wed Oct 25 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.4.0-4.beta2
- Compile sethdlc and package related bits.
- Remove some readmes that aren't applicable to library/userland
* Wed Oct 18 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.4.0-3.beta2
- Update to 1.4.0-beta2
* Sun Oct 15 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.4.0-2.beta1
- Don't package firmware until license can be figured out.
* Fri Oct 13 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.4.0-1.beta1
- Remove "Provides: zaptel-kmod-common"
- Don't load modules in initscript (except for possibly ztdummy) - leave that up to udev/hotplug.
- Drop ifup-hdlc - it requires sethdlc which isn't available.
- Move utilities to %%{_sbindir} rather than /sbin.
- Split libtonezone off into a separate lib package.
- Use 'zaptel' user/group to own device files.
- Add patch to fix minor makefile bug.
* Wed Oct 11 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.4.0-0.beta1
- Update to 1.4.0-beta1
* Fri Jun 9 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.2.6-3
- Bump release and rebuild.
* Thu Apr 27 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.2.5-2
- Changed ownership of device nodes to "root" in udev rules file.
- Don't build sethdlc.
* Mon Mar 27 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.2.5-1
- Update to 1.2.5
* Wed Feb 15 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.2.4-1
- Update to 1.2.4
* Tue Jan 31 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.2.3-1
- Preserve timestamps when we install.
- Use custom init.d file that does all the fancy RH stuff.
* Mon Jan 30 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.2.3-1
- Update to 1.2.3.
* Mon Jan 23 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.2.2-3
- provide zaptel-kmod-common
* Wed Jan 18 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.2.2-2
- Bump release number.
* Wed Jan 18 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.2.2-1
- Update to 1.2.2.
* Fri Jan 13 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.2.1-2
- Devel subpackage needs to require main package.
* Wed Jan 11 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.2.1-1
- Initial version for Fedora Extras