Merge lp:~noskcaj/ubuntu/saucy/dahdi-tools/2.7.0-1 into lp:ubuntu/saucy/dahdi-tools
- Saucy (13.10)
- 2.7.0-1
- Merge into saucy
Proposed by
Jackson Doak
Status: | Needs review | ||||
---|---|---|---|---|---|
Proposed branch: | lp:~noskcaj/ubuntu/saucy/dahdi-tools/2.7.0-1 | ||||
Merge into: | lp:ubuntu/saucy/dahdi-tools | ||||
Diff against target: |
117081 lines (+73559/-38653) 275 files modified
.gitignore (+36/-0) .pc/applied-patches (+0/-3) .pc/echocan_oslec/xpp/perl_modules/Dahdi/Config/Params.pm (+0/-156) .pc/init_unload_oslec/dahdi.init (+0/-333) .pc/zaptel_perl/xpp/Makefile (+0/-140) .version (+1/-1) ChangeLog (+0/-1460) Makefile (+33/-77) README (+22/-22) UPGRADE.txt (+3/-4) blacklist.sample (+8/-0) build_tools/dahdi_svn_tarball (+1/-1) build_tools/dahdi_sysfs_copy (+142/-0) build_tools/dump_sys_state (+28/-99) build_tools/make_tree (+0/-7) build_tools/menuselect-deps.in (+0/-2) configure (+242/-202) configure.ac (+11/-2) dahdi-tools-2.4.1-summary.html (+0/-82) dahdi-tools-2.4.1-summary.txt (+0/-162) dahdi.init (+11/-6) dahdi.rules (+3/-0) dahdi_cfg.c (+159/-54) dahdi_cfg_device_args (+32/-0) dahdi_maint.c (+33/-15) dahdi_map (+39/-0) dahdi_monitor.c (+8/-6) dahdi_pcap.c (+332/-0) dahdi_scan.c (+31/-0) dahdi_test.c (+28/-15) debian/changelog (+48/-0) debian/clean (+4/-0) debian/compat (+1/-1) debian/control (+3/-4) debian/copyright (+1/-1) debian/dahdi.examples (+1/-0) debian/dahdi.install (+1/-0) debian/dahdi.postrm (+0/-3) debian/dahdi.prerm (+0/-3) debian/dahdi.udev (+3/-0) debian/libtonezone2.0.install (+1/-1) debian/libtonezone2.0.symbols (+11/-0) debian/patches/astribank_allow_ignoreend (+0/-53) debian/patches/bashism (+0/-39) debian/patches/remove_dahdi_speed (+16/-0) debian/patches/series (+1/-0) debian/patches/ztcfg-start_stop (+0/-161) debian/rules (+16/-104) doc/dahdi_cfg.8 (+15/-1) doc/dahdi_maint.8 (+62/-0) doc/dahdi_map.8 (+48/-0) doc/dahdi_monitor.8 (+115/-13) fxotune.c (+64/-15) fxstest.c (+37/-1) handle_device (+50/-0) makeopts.in (+4/-0) menuselect/Makefile (+0/-123) menuselect/README (+0/-179) menuselect/acinclude.m4 (+0/-199) menuselect/aclocal.m4 (+0/-14) menuselect/autoconfig.h.in (+0/-125) menuselect/bootstrap.sh (+0/-41) menuselect/config.guess (+0/-1501) menuselect/config.sub (+0/-1705) menuselect/configure (+0/-6841) menuselect/configure.ac (+0/-88) menuselect/contrib/Makefile-dummy (+0/-17) menuselect/contrib/menuselect-dummy (+0/-730) menuselect/example_menuselect-tree (+0/-487) menuselect/install-sh (+0/-323) menuselect/linkedlists.h (+0/-370) menuselect/make_version (+0/-56) menuselect/makeopts.in (+0/-22) menuselect/menuselect.c (+0/-1779) menuselect/menuselect.h (+0/-165) menuselect/menuselect_curses.c (+0/-893) menuselect/menuselect_gtk.c (+0/-354) menuselect/menuselect_newt.c (+0/-375) menuselect/menuselect_stub.c (+0/-39) menuselect/missing (+0/-360) menuselect/mxml/ANNOUNCEMENT (+0/-5) menuselect/mxml/CHANGES (+0/-213) menuselect/mxml/COPYING (+0/-482) menuselect/mxml/Makefile.in (+0/-342) menuselect/mxml/README (+0/-204) menuselect/mxml/config.h.in (+0/-69) menuselect/mxml/configure (+0/-5702) menuselect/mxml/configure.in (+0/-343) menuselect/mxml/install-sh (+0/-251) menuselect/mxml/mxml-attr.c (+0/-181) menuselect/mxml/mxml-entity.c (+0/-472) menuselect/mxml/mxml-file.c (+0/-2843) menuselect/mxml/mxml-index.c (+0/-649) menuselect/mxml/mxml-node.c (+0/-664) menuselect/mxml/mxml-private.c (+0/-128) menuselect/mxml/mxml-search.c (+0/-199) menuselect/mxml/mxml-set.c (+0/-257) menuselect/mxml/mxml-string.c (+0/-377) menuselect/mxml/mxml.h (+0/-254) menuselect/mxml/mxml.list.in (+0/-115) menuselect/mxml/mxml.pc.in (+0/-10) menuselect/strcompat.c (+0/-243) menuselect/test/build_tools/menuselect-deps (+0/-52) menuselect/test/menuselect-tree (+0/-716) modules.sample (+4/-0) patgen.c (+35/-24) patlooptest.c (+70/-20) pattest.c (+35/-24) pinned-spans.conf (+56/-0) span_assignments (+193/-0) span_types (+160/-0) spantype.conf (+27/-0) system.conf.sample (+10/-3) xpp/Makefile (+47/-14) xpp/README.Astribank (+58/-37) xpp/astribank_allow.8 (+15/-5) xpp/astribank_allow.c (+17/-216) xpp/astribank_hexload.8 (+60/-18) xpp/astribank_hexload.c (+110/-37) xpp/astribank_hook (+62/-13) xpp/astribank_is_starting.c (+1/-1) xpp/astribank_license.c (+340/-0) xpp/astribank_license.h (+29/-0) xpp/astribank_tool.8 (+5/-5) xpp/astribank_tool.c (+21/-8) xpp/astribank_usb.c (+74/-353) xpp/astribank_usb.h (+16/-6) xpp/dahdi_genconf (+8/-8) xpp/dahdi_hardware (+4/-4) xpp/dahdi_registration (+3/-2) xpp/debug.c (+0/-53) xpp/debug.h (+0/-46) xpp/echo_loader.c (+852/-0) xpp/echo_loader.h (+32/-0) xpp/fpga_load.8 (+0/-86) xpp/fpga_load.c (+0/-1052) xpp/hexfile.c (+1/-1) xpp/lsdahdi (+2/-2) xpp/mpp.h (+80/-222) xpp/mpp_funcs.c (+0/-1109) xpp/mpp_funcs.h (+0/-80) xpp/mpptalk.c (+956/-0) xpp/mpptalk.h (+85/-0) xpp/mpptalk_defs.h (+113/-0) xpp/oct612x/Makefile (+38/-0) xpp/oct612x/apilib/bt/octapi_bt0.c (+1217/-0) xpp/oct612x/apilib/bt/octapi_bt0_private.h (+93/-0) xpp/oct612x/apilib/largmath/octapi_largmath.c (+628/-0) xpp/oct612x/apilib/llman/octapi_llman.c (+2787/-0) xpp/oct612x/apilib/llman/octapi_llman_private.h (+206/-0) xpp/oct612x/get_discards (+51/-0) xpp/oct612x/include/apilib/octapi_bt0.h (+75/-0) xpp/oct612x/include/apilib/octapi_largmath.h (+69/-0) xpp/oct612x/include/apilib/octapi_llman.h (+142/-0) xpp/oct612x/include/digium_unused.h (+297/-0) xpp/oct612x/include/oct6100api/oct6100_adpcm_chan_inst.h (+74/-0) xpp/oct612x/include/oct6100api/oct6100_adpcm_chan_pub.h (+90/-0) xpp/oct612x/include/oct6100api/oct6100_api.h (+84/-0) xpp/oct612x/include/oct6100api/oct6100_api_inst.h (+138/-0) xpp/oct612x/include/oct6100api/oct6100_apimi.h (+69/-0) xpp/oct612x/include/oct6100api/oct6100_apiud.h (+312/-0) xpp/oct612x/include/oct6100api/oct6100_channel_inst.h (+374/-0) xpp/oct612x/include/oct6100api/oct6100_channel_pub.h (+547/-0) xpp/oct612x/include/oct6100api/oct6100_chip_open_inst.h (+515/-0) xpp/oct612x/include/oct6100api/oct6100_chip_open_pub.h (+241/-0) xpp/oct612x/include/oct6100api/oct6100_chip_stats_inst.h (+84/-0) xpp/oct612x/include/oct6100api/oct6100_chip_stats_pub.h (+150/-0) xpp/oct612x/include/oct6100api/oct6100_conf_bridge_inst.h (+104/-0) xpp/oct612x/include/oct6100api/oct6100_conf_bridge_pub.h (+169/-0) xpp/oct612x/include/oct6100api/oct6100_debug_inst.h (+124/-0) xpp/oct612x/include/oct6100api/oct6100_debug_pub.h (+76/-0) xpp/oct612x/include/oct6100api/oct6100_defines.h (+679/-0) xpp/oct612x/include/oct6100api/oct6100_errors.h (+838/-0) xpp/oct612x/include/oct6100api/oct6100_events_inst.h (+69/-0) xpp/oct612x/include/oct6100api/oct6100_events_pub.h (+111/-0) xpp/oct612x/include/oct6100api/oct6100_interrupts_inst.h (+134/-0) xpp/oct612x/include/oct6100api/oct6100_interrupts_pub.h (+102/-0) xpp/oct612x/include/oct6100api/oct6100_mixer_inst.h (+86/-0) xpp/oct612x/include/oct6100api/oct6100_mixer_pub.h (+77/-0) xpp/oct612x/include/oct6100api/oct6100_phasing_tsst_inst.h (+68/-0) xpp/oct612x/include/oct6100api/oct6100_phasing_tsst_pub.h (+78/-0) xpp/oct612x/include/oct6100api/oct6100_playout_buf_inst.h (+88/-0) xpp/oct612x/include/oct6100api/oct6100_playout_buf_pub.h (+183/-0) xpp/oct612x/include/oct6100api/oct6100_remote_debug_inst.h (+73/-0) xpp/oct612x/include/oct6100api/oct6100_remote_debug_pub.h (+64/-0) xpp/oct612x/include/oct6100api/oct6100_tlv_inst.h (+72/-0) xpp/oct612x/include/oct6100api/oct6100_tone_detection_inst.h (+46/-0) xpp/oct612x/include/oct6100api/oct6100_tone_detection_pub.h (+74/-0) xpp/oct612x/include/oct6100api/oct6100_tsi_cnct_inst.h (+70/-0) xpp/oct612x/include/oct6100api/oct6100_tsi_cnct_pub.h (+76/-0) xpp/oct612x/include/oct6100api/oct6100_tsst_inst.h (+55/-0) xpp/oct612x/include/octdef.h (+120/-0) xpp/oct612x/include/octmac.h (+98/-0) xpp/oct612x/include/octosdependant.h (+170/-0) xpp/oct612x/include/octrpc/oct6100_rpc_protocol.h (+348/-0) xpp/oct612x/include/octrpc/rpc_protocol.h (+115/-0) xpp/oct612x/include/octtype.h (+159/-0) xpp/oct612x/include/octtypevx.h (+132/-0) xpp/oct612x/include/octtypewin.h (+100/-0) xpp/oct612x/octasic-helper (+39/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_adpcm_chan_priv.h (+131/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_adpcm_chan.c (+1237/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_channel.c (+13858/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_chip_open.c (+6899/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_chip_stats.c (+441/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_conf_bridge.c (+7664/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_debug.c (+1278/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.c (+1379/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_interrupts.c (+1997/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_memory.c (+831/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_miscellaneous.c (+640/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_mixer.c (+1586/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_phasing_tsst.c (+922/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_playout_buf.c (+3337/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_remote_debug.c (+1598/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tlv.c (+2056/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tone_detection.c (+1088/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsi_cnct.c (+1023/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsst.c (+572/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_user.c (+508/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_apimi/oct6100_mask_interrupts.c (+116/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_channel_priv.h (+529/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_chip_open_priv.h (+264/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_chip_stats_priv.h (+55/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_conf_bridge_priv.h (+318/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_debug_priv.h (+58/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_events_priv.h (+82/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_interrupts_priv.h (+158/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_memory_priv.h (+97/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_miscellaneous_priv.h (+277/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_mixer_priv.h (+150/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_phasing_tsst_priv.h (+114/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_playout_buf_priv.h (+201/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_remote_debug_priv.h (+144/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_tlv_priv.h (+515/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_tone_detection_priv.h (+111/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_tsi_cnct_priv.h (+126/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_tsst_priv.h (+89/-0) xpp/oct612x/octdeviceapi/oct6100api/oct6100_version.h (+39/-0) xpp/oct612x/test.c (+46/-0) xpp/perl_modules/Dahdi.pm (+1/-2) xpp/perl_modules/Dahdi/Chans.pm (+2/-2) xpp/perl_modules/Dahdi/Config/Gen.pm (+1/-1) xpp/perl_modules/Dahdi/Config/Gen/Chandahdi.pm (+2/-2) xpp/perl_modules/Dahdi/Config/Gen/Freepbxdb.pm (+116/-0) xpp/perl_modules/Dahdi/Config/Gen/Xpporder.pm (+1/-1) xpp/perl_modules/Dahdi/Config/Params.pm (+2/-2) xpp/perl_modules/Dahdi/Hardware.pm (+1/-1) xpp/perl_modules/Dahdi/Hardware/PCI.pm (+8/-3) xpp/perl_modules/Dahdi/Hardware/USB.pm (+8/-1) xpp/perl_modules/Dahdi/Span.pm (+61/-7) xpp/perl_modules/Dahdi/Utils.pm (+0/-1) xpp/perl_modules/Dahdi/Xpp.pm (+10/-46) xpp/perl_modules/Dahdi/Xpp/Line.pm (+7/-31) xpp/perl_modules/Dahdi/Xpp/Mpp.pm (+1/-1) xpp/perl_modules/Dahdi/Xpp/Xbus.pm (+24/-57) xpp/perl_modules/Dahdi/Xpp/Xpd.pm (+19/-74) xpp/pic_loader.c (+29/-20) xpp/twinstar (+2/-2) xpp/twinstar_hook (+1/-1) xpp/twinstar_setup (+1/-1) xpp/waitfor_xpds (+65/-16) xpp/xpp_blink (+1/-1) xpp/xpp_fxloader (+302/-113) xpp/xpp_sync (+12/-11) xpp/xtalk/debug.c (+73/-0) xpp/xtalk/debug.h (+52/-0) xpp/xtalk/xlist.c (+94/-0) xpp/xtalk/xlist.h (+29/-0) xpp/xtalk/xtalk.c (+497/-0) xpp/xtalk/xtalk.h (+178/-0) xpp/xtalk/xtalk_defs.h (+41/-0) xpp/xtalk/xusb.c (+869/-0) xpp/xtalk/xusb.h (+102/-0) zonedata.c (+49/-1) |
||||
To merge this branch: | bzr merge lp:~noskcaj/ubuntu/saucy/dahdi-tools/2.7.0-1 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel Holbach (community) | Approve | ||
Review via email: mp+181978@code.launchpad.net |
Commit message
Description of the change
Merge from debian unstable.
To post a comment you must log in.
Unmerged revisions
- 10. By Jackson Doak
-
* Merge from debian. Remaining changes:
- debian/control: Added gawk as dependency for dkms build
- debian/control: Package dahdi Depends on dahdi-dkms | dahdi-source
- debian/control: Set ubuntu maintainer
- added debian/dahdi.postinst
- debian/control: Removed Uploaders field.
- added debian/dahdi.postinst
- added --error-handler= init_failed to debian/rules
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === added file '.gitignore' |
2 | --- .gitignore 1970-01-01 00:00:00 +0000 |
3 | +++ .gitignore 2013-08-25 04:54:26 +0000 |
4 | @@ -0,0 +1,36 @@ |
5 | +*.o |
6 | +.*.o.d |
7 | +.*.lo.d |
8 | +build_tools/menuselect-deps |
9 | +config.log |
10 | +config.status |
11 | +dahdi_cfg |
12 | +dahdi_maint |
13 | +dahdi_monitor |
14 | +dahdi_scan |
15 | +dahdi_speed |
16 | +dahdi_test |
17 | +dahdi_tool |
18 | +fxotune |
19 | +libtonezone.a |
20 | +libtonezone.so |
21 | +makeopts |
22 | +sethdlc |
23 | +tonezone.lo |
24 | +version.c |
25 | +xpp/.depend |
26 | +xpp/.octasic.depend |
27 | +xpp/.perlcheck |
28 | +xpp/astribank_allow |
29 | +xpp/astribank_hexload |
30 | +xpp/astribank_is_starting |
31 | +xpp/astribank_tool |
32 | +xpp/dahdi_genconf.8 |
33 | +xpp/dahdi_hardware.8 |
34 | +xpp/dahdi_registration.8 |
35 | +xpp/lsdahdi.8 |
36 | +xpp/test_parse |
37 | +xpp/twinstar.8 |
38 | +xpp/xpp_blink.8 |
39 | +xpp/xpp_sync.8 |
40 | +zonedata.lo |
41 | |
42 | === removed file '.pc/applied-patches' |
43 | --- .pc/applied-patches 2011-03-13 23:45:36 +0000 |
44 | +++ .pc/applied-patches 1970-01-01 00:00:00 +0000 |
45 | @@ -1,3 +0,0 @@ |
46 | -zaptel_perl |
47 | -echocan_oslec |
48 | -init_unload_oslec |
49 | |
50 | === removed directory '.pc/echocan_oslec' |
51 | === removed directory '.pc/echocan_oslec/xpp' |
52 | === removed directory '.pc/echocan_oslec/xpp/perl_modules' |
53 | === removed directory '.pc/echocan_oslec/xpp/perl_modules/Dahdi' |
54 | === removed directory '.pc/echocan_oslec/xpp/perl_modules/Dahdi/Config' |
55 | === removed file '.pc/echocan_oslec/xpp/perl_modules/Dahdi/Config/Params.pm' |
56 | --- .pc/echocan_oslec/xpp/perl_modules/Dahdi/Config/Params.pm 2011-03-13 23:45:36 +0000 |
57 | +++ .pc/echocan_oslec/xpp/perl_modules/Dahdi/Config/Params.pm 1970-01-01 00:00:00 +0000 |
58 | @@ -1,156 +0,0 @@ |
59 | -package Dahdi::Config::Params; |
60 | -# |
61 | -# Written by Oron Peled <oron@actcom.co.il> |
62 | -# Copyright (C) 2009, Xorcom |
63 | -# This program is free software; you can redistribute and/or |
64 | -# modify it under the same terms as Perl itself. |
65 | -# |
66 | -# $Id: Params.pm 7224 2009-09-27 15:01:20Z tzafrir $ |
67 | -# |
68 | -use strict; |
69 | - |
70 | -=head1 NAME |
71 | - |
72 | -Dahdi::Config::Params -- Object oriented representation of F<genconf_parameters> file. |
73 | - |
74 | -=head1 SYNOPSIS |
75 | - |
76 | - use Dahdi::Config::Params; |
77 | - my $params = Dahdi::Config::Params->new('the-config-file'); |
78 | - print $params->item{'some-key'}; |
79 | - print $params->item{'some-key', NODEFAULTS => 1}; |
80 | - $params->dump; # For debugging |
81 | - |
82 | -=head1 DESCRIPTION |
83 | - |
84 | -The constructor must be given a configuration file name: |
85 | - |
86 | -=over 4 |
87 | - |
88 | -=item * Missing file is B<not> an error. |
89 | - |
90 | -=item * Other opening errors cause a C<die> to be thrown. |
91 | - |
92 | -=item * The file name is saved as the value of C<GENCONF_FILE> key. |
93 | - |
94 | -=back |
95 | - |
96 | -The access to config keys should only be done via the C<item()> method: |
97 | - |
98 | -=over 4 |
99 | - |
100 | -=item * It contains all hard-coded defaults. |
101 | - |
102 | -=item * All these values are overriden by directives in the config file. |
103 | - |
104 | -=item * Calling it with C<NODEFAULTS =E<gt> 1> option, returns C<undef> for keys that |
105 | -do not appear in the configuration file. |
106 | - |
107 | -=back |
108 | - |
109 | -=cut |
110 | - |
111 | -sub new($$) { |
112 | - my $pack = shift || die; |
113 | - my $cfg_file = shift || die; |
114 | - my $self = { |
115 | - GENCONF_FILE => $cfg_file, |
116 | - }; |
117 | - bless $self, $pack; |
118 | - if(!open(F, $cfg_file)) { |
119 | - if(defined($!{ENOENT})) { |
120 | - #print STDERR "No $cfg_file. Assume empty config\n"; |
121 | - return $self; # Empty configuration |
122 | - } |
123 | - die "$pack: Failed to open '$cfg_file': $!\n"; |
124 | - } |
125 | - #print STDERR "$pack: $cfg_file\n"; |
126 | - my $array_key; |
127 | - while(<F>) { |
128 | - my ($key, $val); |
129 | - chomp; |
130 | - s/#.*$//; |
131 | - s/\s+$//; # trim tail whitespace |
132 | - next unless /\S/; |
133 | - if(defined $array_key && /^\s+/) { |
134 | - s/^\s+//; # trim beginning whitespace |
135 | - push(@{$self->{$array_key}}, $_); |
136 | - next; |
137 | - } |
138 | - undef $array_key; |
139 | - ($key, $val) = split(/\s+/, $_, 2); |
140 | - $key = lc($key); |
141 | - if(! defined $val) { |
142 | - $array_key = $key; |
143 | - next; |
144 | - } |
145 | - die "$cfg_file:$.: Duplicate key '$key'\n", if exists $self->{$key}; |
146 | - $self->{$key} = $val; |
147 | - } |
148 | - close F; |
149 | - return $self; |
150 | -} |
151 | - |
152 | -sub item($$@) { |
153 | - my $self = shift || die; |
154 | - my $key = shift || die; |
155 | - my %options = @_; |
156 | - my %defaults = ( |
157 | - base_exten => '4000', |
158 | - freepbx => 'no', # Better via -F command line |
159 | - fxs_immediate => 'no', |
160 | - fxs_default_start => 'ks', |
161 | - fxo_default_start => 'ks', |
162 | - em_signalling => 'none', |
163 | - lc_country => 'us', |
164 | - context_lines => 'from-pstn', |
165 | - context_phones => 'from-internal', |
166 | - context_input => 'astbank-input', |
167 | - context_output => 'astbank-output', |
168 | - group_phones => '5', |
169 | - group_lines => '0', |
170 | - brint_overlap => 'no', |
171 | - bri_sig_style => 'bri_ptmp', |
172 | - echo_can => 'mg2', |
173 | - bri_hardhdlc => 'auto', |
174 | - pri_connection_type => 'PRI', |
175 | - r2_idle_bits => '1101', |
176 | - tdm_framing => 'esf', |
177 | - 'pri_termtype' => [ 'SPAN/* TE' ], |
178 | - ); |
179 | - return $self->{$key} if exists($self->{$key}) or $options{NODEFAULTS}; |
180 | - return $defaults{$key}; |
181 | -} |
182 | - |
183 | -sub dump($) { |
184 | - my $self = shift || die; |
185 | - printf STDERR "%s dump:\n", ref $self; |
186 | - my $width = 30; |
187 | - foreach my $k (sort keys %$self) { |
188 | - my $val = $self->{$k}; |
189 | - my $ref = ref $val; |
190 | - #print STDERR "DEBUG: '$k', '$ref', '$val'\n"; |
191 | - if($ref eq '') { |
192 | - printf STDERR "%-${width}s %s\n", $k, $val; |
193 | - } elsif($ref eq 'SCALAR') { |
194 | - printf STDERR "%-${width}s %s\n", $k, ${$val}; |
195 | - } elsif($ref eq 'ARRAY') { |
196 | - #printf STDERR "%s:\n", $k; |
197 | - my $i = 0; |
198 | - foreach my $v (@{$val}) { |
199 | - printf STDERR "%-${width}s %s\n", "$k\->[$i]", $v; |
200 | - $i++; |
201 | - } |
202 | - } elsif($ref eq 'HASH') { |
203 | - #printf STDERR "%s:\n", $k; |
204 | - foreach my $k1 (keys %{$val}) { |
205 | - printf STDERR "%-${width}s %s\n", "$k\->\{$k1\}", ${$val}{$k1}; |
206 | - } |
207 | - } else { |
208 | - printf STDERR "%-${width}s (-> %s)\n", $k, $ref; |
209 | - } |
210 | - } |
211 | -} |
212 | - |
213 | -1; |
214 | - |
215 | |
216 | === removed directory '.pc/init_unload_oslec' |
217 | === removed file '.pc/init_unload_oslec/dahdi.init' |
218 | --- .pc/init_unload_oslec/dahdi.init 2011-03-13 23:45:36 +0000 |
219 | +++ .pc/init_unload_oslec/dahdi.init 1970-01-01 00:00:00 +0000 |
220 | @@ -1,333 +0,0 @@ |
221 | -#!/bin/sh |
222 | -# |
223 | -# dahdi This shell script takes care of loading and unloading \ |
224 | -# DAHDI Telephony interfaces |
225 | -# chkconfig: 2345 9 92 |
226 | -# description: The DAHDI drivers allow you to use your linux \ |
227 | -# computer to accept incoming data and voice interfaces |
228 | -# |
229 | -# config: /etc/dahdi/init.conf |
230 | - |
231 | -### BEGIN INIT INFO |
232 | -# Provides: dahdi |
233 | -# Required-Start: $local_fs $remote_fs |
234 | -# Required-Stop: $local_fs $remote_fs |
235 | -# Should-Start: $network $syslog |
236 | -# Should-Stop: $network $syslog |
237 | -# Default-Start: 2 3 4 5 |
238 | -# Default-Stop: 0 1 6 |
239 | -# Description: dahdi - load and configure DAHDI modules |
240 | -### END INIT INFO |
241 | - |
242 | -initdir=/etc/init.d |
243 | - |
244 | -# Don't edit the following values. Edit /etc/dahdi/init.conf instead. |
245 | - |
246 | -DAHDI_CFG=/usr/sbin/dahdi_cfg |
247 | -DAHDI_CFG_CMD=${DAHDI_CFG_CMD:-"$DAHDI_CFG"} # e.g: for a custom system.conf location |
248 | - |
249 | -FXOTUNE=/usr/sbin/fxotune |
250 | - |
251 | -# The default syncer Astribank. Usually set automatically to a sane |
252 | -# value by xpp_sync(1) if you have an Astribank. You can set this to an |
253 | -# explicit Astribank (e.g: 01). |
254 | -XPP_SYNC=auto |
255 | - |
256 | -# The maximal timeout (seconds) to wait for udevd to finish generating |
257 | -# device nodes after the modules have loaded and before running dahdi_cfg. |
258 | -DAHDI_DEV_TIMEOUT=20 |
259 | - |
260 | -# A list of modules to unload when stopping. |
261 | -# All of their dependencies will be unloaded as well. |
262 | -DAHDI_UNLOAD_MODULES="dahdi" |
263 | - |
264 | -# |
265 | -# Determine which kind of configuration we're using |
266 | -# |
267 | -system=redhat # assume redhat |
268 | -if [ -f /etc/debian_version ]; then |
269 | - system=debian |
270 | -fi |
271 | - |
272 | -if [ -f /etc/gentoo-release ]; then |
273 | - system=debian |
274 | -fi |
275 | - |
276 | -if [ -f /etc/SuSE-release -o -f /etc/novell-release ] |
277 | -then |
278 | - system=debian |
279 | -fi |
280 | - |
281 | -# Source function library. |
282 | -if [ $system = redhat ]; then |
283 | - . $initdir/functions || exit 0 |
284 | -fi |
285 | - |
286 | -DAHDI_MODULES_FILE="/etc/dahdi/modules" |
287 | - |
288 | -[ -r /etc/dahdi/init.conf ] && . /etc/dahdi/init.conf |
289 | - |
290 | -if [ $system = redhat ]; then |
291 | - LOCKFILE=/var/lock/subsys/dahdi |
292 | -fi |
293 | - |
294 | -# recursively unload a module and its dependencies, if possible. |
295 | -# where's modprobe -r when you need it? |
296 | -# inputs: module to unload. |
297 | -# returns: the result from |
298 | -unload_module() { |
299 | - module="$1" |
300 | - line=`lsmod 2>/dev/null | grep "^$1 "` |
301 | - if [ "$line" = '' ]; then return; fi # module was not loaded |
302 | - |
303 | - set -- $line |
304 | - # $1: the original module, $2: size, $3: refcount, $4: deps list |
305 | - mods=`echo $4 | tr , ' '` |
306 | - ec_modules="" |
307 | - # xpp_usb keeps the xpds below busy if an xpp hardware is |
308 | - # connected. Hence must be removed before them: |
309 | - case "$module" in xpd_*) mods="xpp_usb $mods";; esac |
310 | - |
311 | - for mod in $mods; do |
312 | - case "$mod" in |
313 | - dahdi_echocan_*) |
314 | - ec_modules="$mod $ec_modules" |
315 | - ;; |
316 | - *) |
317 | - # run in a subshell, so it won't step over our vars: |
318 | - (unload_module $mod) |
319 | - ;; |
320 | - esac |
321 | - done |
322 | - # Now that all the other dependencies are unloaded, we can unload the |
323 | - # dahdi_echocan modules. The drivers that register spans may keep |
324 | - # references on the echocan modules before they are unloaded. |
325 | - for mod in $ec_modules; do |
326 | - (unload_module $mod) |
327 | - done |
328 | - rmmod $module |
329 | -} |
330 | - |
331 | -unload_modules() { |
332 | - for module in $DAHDI_UNLOAD_MODULES; do |
333 | - unload_module $module |
334 | - done |
335 | -} |
336 | - |
337 | -# In (xpp) hotplug mode, the init script is also executed from the |
338 | -# hotplug hook. In that case it should not attempt to loade modules. |
339 | -# |
340 | -# This function only retunrs false (1) if we're in hotplug mode and |
341 | -# coming from the hotplug hook script. |
342 | -hotplug_should_load_modules() { |
343 | - if [ "$XPP_HOTPLUG_DAHDI" = yes -a "$CALLED_FROM_ATRIBANK_HOOK" != '' ] |
344 | - then |
345 | - return 1 |
346 | - fi |
347 | - return 0 |
348 | -} |
349 | - |
350 | -# In (xpp) hotplug mode: quit after we loaded modules. |
351 | -# |
352 | -# In hotplug mode, the main run should end here, whereas the rest of the |
353 | -# script should be finished by the instance running from the hook. |
354 | -# Note that we only get here if there are actually Astribanks on the |
355 | -# system (otherwise noone will trigger the run of the hotplug hook |
356 | -# script). |
357 | -hotplug_exit_after_load() { |
358 | - if [ "$XPP_HOTPLUG_DAHDI" = yes -a "$CALLED_FROM_ATRIBANK_HOOK" = '' ] |
359 | - then |
360 | - exit 0 |
361 | - fi |
362 | -} |
363 | - |
364 | -# Initialize the Xorcom Astribank (xpp/) using perl utiliites: |
365 | -xpp_startup() { |
366 | - # do nothing if there are no astribank devices: |
367 | - if ! /usr/share/dahdi/waitfor_xpds; then return 0; fi |
368 | - |
369 | - hotplug_exit_after_load |
370 | - |
371 | - # overriding locales for the above two, as perl can be noisy |
372 | - # when locales are missing. |
373 | - # No register all the devices if they didn't auto-register: |
374 | - LC_ALL=C dahdi_registration on |
375 | -} |
376 | - |
377 | - |
378 | -hpec_start() { |
379 | - # HPEC license found |
380 | - if ! echo /var/lib/digium/licenses/HPEC-*.lic | grep -v '\*' | grep -q .; then |
381 | - return |
382 | - fi |
383 | - |
384 | - # dahdihpec_enable not installed in /usr/sbin |
385 | - if [ ! -f /usr/sbin/dahdihpec_enable ]; then |
386 | - echo -n "Running dahdihpec_enable: Failed" |
387 | - echo -n "." |
388 | - echo " The dahdihpec_enable binary is not installed in /usr/sbin." |
389 | - return |
390 | - fi |
391 | - |
392 | - # dahdihpec_enable not set executable |
393 | - if [ ! -x /usr/sbin/dahdihpec_enable ]; then |
394 | - echo -n "Running dahdihpec_enable: Failed" |
395 | - echo -n "." |
396 | - echo " /usr/sbin/dahdihpec_enable is not set as executable." |
397 | - return |
398 | - fi |
399 | - |
400 | - # dahdihpec_enable properly installed |
401 | - if [ $system = debian ]; then |
402 | - echo -n "Running dahdihpec_enable: " |
403 | - /usr/sbin/dahdihpec_enable 2> /dev/null |
404 | - elif [ $system = redhat ]; then |
405 | - action "Running dahdihpec_enable: " /usr/sbin/dahdihpec_enable |
406 | - fi |
407 | - if [ $? = 0 ]; then |
408 | - echo -n "done" |
409 | - echo "." |
410 | - else |
411 | - echo -n "Failed" |
412 | - echo -n "." |
413 | - echo " This can be caused if you had already run dahdihpec_enable, or if your HPEC license is no longer valid." |
414 | - fi |
415 | -} |
416 | - |
417 | -shutdown_dynamic() { |
418 | - if ! grep -q ' DYN/' /proc/dahdi/* 2>/dev/null; then return; fi |
419 | - |
420 | - # we should only get here if we have dynamic spans. Right? |
421 | - $DAHDI_CFG_CMD -s |
422 | -} |
423 | - |
424 | -load_modules() { |
425 | - # Some systems, e.g. Debian Lenny, add here -b, which will break |
426 | - # loading of modules blacklisted in modprobe.d/* |
427 | - unset MODPROBE_OPTIONS |
428 | - modules=`sed -e 's/#.*$//' $DAHDI_MODULES_FILE 2>/dev/null` |
429 | - #if [ "$modules" = '' ]; then |
430 | - # what? |
431 | - #fi |
432 | - echo "Loading DAHDI hardware modules:" |
433 | - modprobe dahdi |
434 | - for line in $modules; do |
435 | - if [ $system = debian ]; then |
436 | - echo -n " ${line}: " |
437 | - if modprobe $line 2> /dev/null; then |
438 | - echo -n "done" |
439 | - else |
440 | - echo -n "error" |
441 | - fi |
442 | - elif [ $system = redhat ]; then |
443 | - action " ${line}: " modprobe $line |
444 | - fi |
445 | - done |
446 | - echo "" |
447 | -} |
448 | - |
449 | -if [ ! -x "$DAHDI_CFG" ]; then |
450 | - echo "dahdi_cfg not executable" |
451 | - exit 0 |
452 | -fi |
453 | - |
454 | -if [ ! -f /etc/dahdi/system.conf ]; then |
455 | - echo "/etc/dahdi/system.conf not found. Nothing to do." |
456 | - exit 0 |
457 | -fi |
458 | - |
459 | -RETVAL=0 |
460 | - |
461 | -# See how we were called. |
462 | -case "$1" in |
463 | - start) |
464 | - if hotplug_should_load_modules; then |
465 | - load_modules |
466 | - fi |
467 | - |
468 | - TMOUT=$DAHDI_DEV_TIMEOUT # max secs to wait |
469 | - |
470 | - while [ ! -d /dev/dahdi ] ; do |
471 | - sleep 1 |
472 | - TMOUT=`expr $TMOUT - 1` |
473 | - if [ $TMOUT -eq 0 ] ; then |
474 | - echo "Error: missing /dev/dahdi!" |
475 | - exit 1 |
476 | - fi |
477 | - done |
478 | - |
479 | - xpp_startup |
480 | - |
481 | - if [ ! -e /proc/dahdi/1 ]; then |
482 | - echo "No hardware timing source found in /proc/dahdi, loading dahdi_dummy" |
483 | - modprobe dahdi_dummy 2> /dev/null |
484 | - fi |
485 | - |
486 | - if [ $system = debian ]; then |
487 | - echo -n "Running dahdi_cfg: " |
488 | - $DAHDI_CFG_CMD 2> /dev/null && echo -n "done" |
489 | - echo "." |
490 | - elif [ $system = redhat ]; then |
491 | - action "Running dahdi_cfg: " $DAHDI_CFG_CMD |
492 | - fi |
493 | - RETVAL=$? |
494 | - |
495 | - if [ "$LOCKFILE" != '' ]; then |
496 | - [ $RETVAL -eq 0 ] && touch $LOCKFILE |
497 | - fi |
498 | - |
499 | - if [ -x "$FXOTUNE" ] && [ -r /etc/fxotune.conf ]; then |
500 | - # Allowed to fail if e.g. Asterisk already uses channels: |
501 | - $FXOTUNE -s || : |
502 | - fi |
503 | - |
504 | - # Set the right Astribanks ticker: |
505 | - LC_ALL=C xpp_sync "$XPP_SYNC" |
506 | - |
507 | - hpec_start |
508 | - ;; |
509 | - stop) |
510 | - # Unload drivers |
511 | - #shutdown_dynamic # FIXME: needs test from someone with dynamic spans |
512 | - echo -n "Unloading DAHDI hardware modules: " |
513 | - if unload_modules; then |
514 | - echo "done" |
515 | - else |
516 | - echo "error" |
517 | - fi |
518 | - if [ "$LOCKFILE" != '' ]; then |
519 | - [ $RETVAL -eq 0 ] && rm -f $LOCKFILE |
520 | - fi |
521 | - ;; |
522 | - unload) |
523 | - unload_modules |
524 | - ;; |
525 | - restart|force-reload) |
526 | - $0 stop |
527 | - $0 start |
528 | - ;; |
529 | - reload) |
530 | - if [ $system = debian ]; then |
531 | - echo -n "Rerunning dahdi_cfg: " |
532 | - $DAHDI_CFG_CMD 2> /dev/null && echo -n "done" |
533 | - echo "." |
534 | - elif [ $system = redhat ]; then |
535 | - action "Rerunning dahdi_cfg: " $DAHDI_CFG_CMD |
536 | - fi |
537 | - RETVAL=$? |
538 | - ;; |
539 | - status) |
540 | - if [ -d /proc/dahdi ]; then |
541 | - /usr/sbin/lsdahdi |
542 | - RETVAL=0 |
543 | - else |
544 | - RETVAL=3 |
545 | - fi |
546 | - ;; |
547 | - *) |
548 | - echo "Usage: dahdi {start|stop|restart|status|reload|unload}" |
549 | - exit 1 |
550 | -esac |
551 | - |
552 | -exit $RETVAL |
553 | - |
554 | |
555 | === removed directory '.pc/zaptel_perl' |
556 | === removed directory '.pc/zaptel_perl/xpp' |
557 | === removed file '.pc/zaptel_perl/xpp/Makefile' |
558 | --- .pc/zaptel_perl/xpp/Makefile 2011-03-13 23:45:36 +0000 |
559 | +++ .pc/zaptel_perl/xpp/Makefile 1970-01-01 00:00:00 +0000 |
560 | @@ -1,140 +0,0 @@ |
561 | -PEDANTIC = -ansi -pedantic -std=c99 |
562 | - |
563 | -INSTALL = install |
564 | -INSTALL_DATA = install -m 644 |
565 | - |
566 | -# |
567 | -# Ugly hack to find kernel directories before/after the split |
568 | -# to kernel/user-space. |
569 | -# |
570 | -# These variables should be passed to us. But until then... |
571 | -# |
572 | -DAHDI_TOOLSDIR ?= .. |
573 | -DAHDI_KERNELDIR = |
574 | - |
575 | --include $(DAHDI_TOOLSDIR)/makeopts |
576 | - |
577 | -INSTALL_DATA = $(INSTALL) -m 644 |
578 | - |
579 | -# In 1.4 those are provided by autoconf through makeopts |
580 | -prefix ?= /usr |
581 | -datadir ?= $(prefix)/share |
582 | -mandir ?= $(datadir)/man |
583 | -INSTALL ?= install |
584 | - |
585 | -INSTALL_DATA = $(INSTALL) -m 644 |
586 | - |
587 | -SBINDIR = $(prefix)/sbin |
588 | -DATADIR = $(datadir)/dahdi |
589 | -MANDIR = $(mandir)/man8 |
590 | -HOTPLUG_USB_DIR = $(sysconfdir)/hotplug/usb |
591 | -PERLLIBDIR := $(shell eval `perl -V:sitelib`; echo "$$sitelib") |
592 | -PERL_DIRS := $(shell cd perl_modules; find * -name '[A-Z]*' -type d| xargs) |
593 | -PERL_MODS_PAT := *.pm $(PERL_DIRS:%=%/*.pm) |
594 | -PERL_MODS := $(shell cd perl_modules; echo $(PERL_MODS_PAT)) |
595 | - |
596 | -# Variables that should be defined above, but need sane defaults: |
597 | -# FIXME: Are those values really sane? |
598 | -HOSTCC ?= $(CC) |
599 | - |
600 | - |
601 | -CFLAGS += -g -Wall $(USB_INCLUDE) |
602 | - |
603 | -%.8: % |
604 | - pod2man --section 8 $^ > $@ || $(RM) $@ |
605 | -PERL_SCRIPTS = \ |
606 | - dahdi_registration \ |
607 | - xpp_sync \ |
608 | - lsdahdi \ |
609 | - xpp_blink \ |
610 | - dahdi_genconf \ |
611 | - dahdi_hardware \ |
612 | - twinstar \ |
613 | - # |
614 | - |
615 | -PERL_MANS = $(PERL_SCRIPTS:%=%.8) |
616 | - |
617 | -ABHEXLOAD_OBJS = astribank_hexload.o hexfile.o pic_loader.o astribank_usb.o mpp_funcs.o debug.o |
618 | -ABTOOL_OBJS = astribank_tool.o astribank_usb.o mpp_funcs.o debug.o |
619 | -ABALLOW_OBJS = astribank_allow.o astribank_usb.o mpp_funcs.o debug.o |
620 | - |
621 | -TARGETS = .perlcheck astribank_is_starting |
622 | -PROG_INSTALL = astribank_is_starting |
623 | -MAN_INSTALL = $(PROG_INSTALL:%=%.8) |
624 | -ifeq (1,$(PBX_USB)) |
625 | -TARGETS += fpga_load \ |
626 | - astribank_tool \ |
627 | - astribank_hexload \ |
628 | - astribank_allow \ |
629 | - test_parse |
630 | -PROG_INSTALL += fpga_load astribank_tool astribank_hexload astribank_allow |
631 | -endif |
632 | -ifneq (,$(PERLLIBDIR)) |
633 | -PROG_INSTALL += $(PERL_SCRIPTS) |
634 | -TARGETS += $(PERL_MANS) |
635 | -endif |
636 | - |
637 | -all: $(TARGETS) |
638 | - |
639 | -docs: $(PERL_MANS) |
640 | - |
641 | -install: all |
642 | - $(INSTALL) -d $(DESTDIR)$(SBINDIR) |
643 | - $(INSTALL) $(PROG_INSTALL) $(DESTDIR)$(SBINDIR)/ |
644 | - $(INSTALL) -d $(DESTDIR)$(DATADIR) |
645 | - $(INSTALL) xpp_fxloader astribank_hook $(DESTDIR)$(DATADIR)/ |
646 | - $(INSTALL) waitfor_xpds $(DESTDIR)$(DATADIR)/ |
647 | - $(INSTALL) -d $(DESTDIR)$(MANDIR) |
648 | - $(INSTALL_DATA) $(MAN_INSTALL) $(DESTDIR)$(MANDIR)/ |
649 | - $(INSTALL) -d $(DESTDIR)$(HOTPLUG_USB_DIR) |
650 | - $(INSTALL_DATA) xpp_fxloader.usermap $(DESTDIR)$(HOTPLUG_USB_DIR)/ |
651 | - # for backward compatibility and for hotplug users: |
652 | - ln -sf $(DATADIR)/xpp_fxloader $(DESTDIR)$(HOTPLUG_USB_DIR)/ |
653 | -ifneq (,$(PERLLIBDIR)) |
654 | - $(INSTALL) -d $(DESTDIR)$(PERLLIBDIR) |
655 | - for i in $(PERL_DIRS); \ |
656 | - do \ |
657 | - $(INSTALL) -d "$(DESTDIR)$(PERLLIBDIR)/$$i"; \ |
658 | - done |
659 | - for i in $(PERL_MODS); \ |
660 | - do \ |
661 | - $(INSTALL_DATA) "perl_modules/$$i" "$(DESTDIR)$(PERLLIBDIR)/$$i"; \ |
662 | - done |
663 | -endif |
664 | - |
665 | -fpga_load: fpga_load.o hexfile.o |
666 | -fpga_load: LIBS+=$(EXTRA_LIBS) $(USB_LIB) |
667 | - |
668 | -astribank_hexload: $(ABHEXLOAD_OBJS) |
669 | -astribank_hexload: LIBS+=$(EXTRA_LIBS) $(USB_LIB) |
670 | - |
671 | -astribank_tool: $(ABTOOL_OBJS) |
672 | -astribank_tool: LIBS+=$(EXTRA_LIBS) $(USB_LIB) |
673 | - |
674 | -astribank_allow: $(ABALLOW_OBJS) |
675 | -astribank_allow: LIBS+=$(EXTRA_LIBS) $(USB_LIB) |
676 | - |
677 | -astribank_is_starting: astribank_is_starting.o |
678 | -astribank_is_starting: LIBS+=$(EXTRA_LIBS) |
679 | - |
680 | -fpga_load.o: CFLAGS+=-D_GNU_SOURCE # We use memrchr() |
681 | - |
682 | -test_parse: test_parse.o hexfile.o |
683 | -test_parse: LIBS+=$(EXTRA_LIBS) $(USB_LIB) |
684 | - |
685 | -%: %.o |
686 | - $(CC) $(LDFLAGS) $^ $(LIBS) -o $@ |
687 | - |
688 | -.perlcheck: $(PERL_SCRIPTS) |
689 | - for i in $^; do perl -I./perl_modules -c $$i || exit 1; done |
690 | - touch $@ |
691 | - |
692 | -clean: |
693 | - $(RM) .depend *.o $(TARGETS) |
694 | - |
695 | -.PHONY: depend |
696 | -depend: .depend |
697 | -.depend: *.c *.h |
698 | - @$(CC) -MM *.c > $@ || rm -f $@ |
699 | - |
700 | -include .depend |
701 | |
702 | === modified file '.version' |
703 | --- .version 2011-03-13 23:45:36 +0000 |
704 | +++ .version 2013-08-25 04:54:26 +0000 |
705 | @@ -1,1 +1,1 @@ |
706 | -2.4.1 |
707 | +2.7.0 |
708 | |
709 | === removed file 'ChangeLog' |
710 | --- ChangeLog 2011-03-13 23:45:36 +0000 |
711 | +++ ChangeLog 1970-01-01 00:00:00 +0000 |
712 | @@ -1,1460 +0,0 @@ |
713 | -2011-03-03 Shaun Ruffell <sruffell@digium.com> |
714 | - |
715 | - * dahdi-tools version 2.4.1 released. |
716 | - |
717 | -2011-02-08 14:42 +0000 [r9733-9744] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
718 | - |
719 | - * /, xpp/perl_modules/Dahdi/Chans.pm, |
720 | - xpp/perl_modules/Dahdi/Config/Gen/System.pm: dahdi-perl: more |
721 | - left-over $span->xpd Replace the remaining $span->xpd with |
722 | - xpd_of_span(). Following up on r9648. Merged revisions 9731 via |
723 | - svnmerge from http://svn.digium.com/svn/dahdi/tools/trunk |
724 | - |
725 | - * xpp/perl_modules/Dahdi/Hardware/USB.pm, /: dahdi-perl: fix xpp |
726 | - driver in dahdi_hardware Don't require 'dahdi_hardware -v' to |
727 | - show the driver for a USB device. Only works when the usbfs is |
728 | - not used (when /proc/bus/usb is not mounted). Signed-off-by: |
729 | - Tzafrir Cohen <tzafrir.cohen@xorcom.com> Merged revisions 9699 |
730 | - via svnmerge from http://svn.digium.com/svn/dahdi/tools/trunk |
731 | - |
732 | - * /, xpp/perl_modules/Dahdi/Span.pm: dahdi-perl: left-over |
733 | - $span->xpd Replace one remaining $span->{XPD} with xpd_of_span(). |
734 | - Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> Merged |
735 | - revisions 9648 via svnmerge from |
736 | - http://svn.digium.com/svn/dahdi/tools/trunk |
737 | - |
738 | - * /, xpp/perl_modules/Dahdi/Config/Gen/System.pm: dahdi_genconf: |
739 | - Don't generate configurations that use channel 16 on E1 CAS |
740 | - Attempting to use channel 16 on E1 CAS is disallowed since that |
741 | - channel is reserved for RBS signaling. Configurations should not |
742 | - be generated that attempt to use it. Closes DAHDI-763. Patch by |
743 | - dmartinez. Merged revisions 9485 via svnmerge from |
744 | - http://svn.digium.com/svn/dahdi/tools/trunk |
745 | - |
746 | - * /, xpp/xpp_fxloader: xpp_fxloader: Don't try to load FPGA |
747 | - firmware twice When called from udev to load the FPGA firmware, |
748 | - make sure that this is not the event generated for the first |
749 | - end-point of the existing two, as we need to talk with the second |
750 | - one. This is probably better done in the udev rules, but will be |
751 | - slightly more complicated to apply only to the FPGA loading and |
752 | - not to USB firmware loading. Merged revisions 9482 via svnmerge |
753 | - from http://svn.digium.com/svn/dahdi/tools/trunk |
754 | - |
755 | - * dahdi_scan.c, /: dahdi_scan: Show CAS framing on the framing |
756 | - line. Also, always append "/CRC4" on any span where that was |
757 | - specified as an option. Signed-off-by: Shaun Ruffell |
758 | - <sruffell@digium.com> Acked-by: Kinsey Moore <kmoore@digium.com> |
759 | - Merged revisions 9473 via svnmerge from |
760 | - http://svn.digium.com/svn/dahdi/tools/trunk |
761 | - |
762 | - * dahdi_scan.c, /: Fixed up the loss of crc4-multiframe alignment |
763 | - logic Loss of crc4-multiframe alignment on an E1 link is not a |
764 | - condition which brings the span down. The span will continue to |
765 | - run as long as it can maintain double frame alignment. Because of |
766 | - this, we cannot place the LMFA alarm in the usual spaninfo.alarms |
767 | - member, due to userspace programs using this as a catch-all for a |
768 | - span being up or down. We can detect the alarm by watching the |
769 | - frame error counter (fecount). If it continuously increments, the |
770 | - span is configured for crc4, and the span remains OK (alarms = |
771 | - 0), then we are in loss of crc4-multiframe state. In order to |
772 | - test this alarm, you'll need to synthesize a loss of crc4 |
773 | - alignment on the span. You can usually do this by configuring the |
774 | - local span to use crc4 and the remote end to not use crc4. I used |
775 | - the Fireberd 6000 in my lab to do this. dahdi-743 & dahdi-420 |
776 | - Acked-by: Shaun Ruffell <sruffell@digium.com> Merged revisions |
777 | - 9458 via svnmerge from |
778 | - http://svn.digium.com/svn/dahdi/tools/trunk |
779 | - |
780 | - * xpp/perl_modules/Dahdi/Hardware/PCI.pm, /: Dahdi::Hardware: |
781 | - Support beroNet BN4S0e PCI Express card Add extra PCI IDs to |
782 | - support "beroNet BN4S0e PCI Express 4x S0 Karte". Origin: |
783 | - http://bugs.debian.org/600839 Merged revisions 9452 via svnmerge |
784 | - from http://svn.digium.com/svn/dahdi/tools/trunk |
785 | - |
786 | - * autoconfig.h.in, xpp/astribank_is_starting.c, /, configure, |
787 | - configure.ac: astribank_is_starting: use semop if no semtimedop |
788 | - astribank_is_starting should use a timeout for the semaphore, but |
789 | - if the GNU-specific semtimedop() is not available, we'll just |
790 | - fall back to using semop with no time out. Not as good, but |
791 | - better than nothing. (closes issue #16783) Reported by: abelbeck |
792 | - Merged revisions 9426 via svnmerge from |
793 | - http://svn.digium.com/svn/dahdi/tools/trunk |
794 | - |
795 | - * /, zonedata.c: tonezone: Add Macao,China to tone zone data Adding |
796 | - Macao tone zone data according to |
797 | - http://www.itu.int/ITU-T/inr/forms/files/tones-0203.pdf (closes |
798 | - issue #17744) Reported by: alfredtang Patches: zonedata.patch |
799 | - uploaded by alfredtang (license 1094) Merged revisions 9313 via |
800 | - svnmerge from http://svn.digium.com/svn/dahdi/tools/trunk |
801 | - |
802 | -2010-08-31 Shaun Ruffell <sruffell@digium.com> |
803 | - |
804 | - * dahdi-tools version 2.4.0 released. |
805 | - |
806 | -2010-08-31 16:12 +0000 [r9220] Kinsey Moore <kmoore@digium.com> |
807 | - |
808 | - * ppp/dahdi.c: PPP: Fix an incorrect function call that was causing |
809 | - dahdi.so to fail to load |
810 | - |
811 | -2010-08-18 13:49 +0000 [r9159] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
812 | - |
813 | - * xpp/perl_modules/Dahdi/Config/Gen.pm: DAHDI-perl: Config (sort |
814 | - of) for dynamic channels Generate some sort of configuration for |
815 | - dynamic channels. Usable enough for testing. |
816 | - |
817 | -2010-08-18 Shaun Ruffell <sruffell@digium.com> |
818 | - |
819 | - * dahdi-tools version 2.4.0-rc1 released. |
820 | - |
821 | -2010-08-13 18:40 +0000 [r9133] Shaun Ruffell <sruffell@digium.com> |
822 | - |
823 | - * dahdi_scan.c: dahdi_scan: Use 'linecompat' to identify digital |
824 | - spans. This fixes the case where the BRI spans on the Hx8 cards |
825 | - were displayed as analog spans. |
826 | - |
827 | -2010-08-03 12:14 +0000 [r9079] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
828 | - |
829 | - * xpp/perl_modules/Dahdi/Hardware/PCI.pm, |
830 | - xpp/perl_modules/Dahdi/Chans.pm: dahdi-perl: also detect Aligera |
831 | - cards (closes issue #17783) Reported by: frawd Patches: |
832 | - dahdi-tools_aligera.patch uploaded by frawd (license 610) |
833 | - |
834 | -2010-08-01 22:39 +0000 [r9076] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
835 | - |
836 | - * dahdi_scan.c, dahdi_maint.c: fix build of dahdi_scan and |
837 | - dahdi_maint with -linux 2.3 New functionality that was added in |
838 | - r8992 and r8993 uses new items defined only in dahdi-linux trunk |
839 | - (and eventually: 2.4). As in both cases it's a single place to |
840 | - check, we'll just ifdef it away. |
841 | - |
842 | -2010-07-30 15:28 +0000 [r9066-9067] Kinsey Moore <kmoore@digium.com> |
843 | - |
844 | - * dahdi_cfg.c: dahdi_cfg: Display more appropriate error messages |
845 | - when an invalid signaling is chosen along with suggestions on how |
846 | - to fix the problem. |
847 | - |
848 | - * xpp/perl_modules/Dahdi/Chans.pm: perl: make sure the channel |
849 | - parser recognizes "Reserved" for unusable channels and fix a bug |
850 | - preventing E&M-E1 from being detected properly |
851 | - |
852 | -2010-07-28 12:30 +0000 [r9031] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
853 | - |
854 | - * xpp/twinstar: twinstar: err on an invalid command. |
855 | - |
856 | -2010-07-26 18:56 +0000 [r8991-8994] Russ Meyerriecks <rmeyerreicks@digium.com> |
857 | - |
858 | - * dahdi_scan.c: Removed no longer existing alarm condition |
859 | - |
860 | - * dahdi_scan.c: Modified dahdi_sync to report detailed alarms |
861 | - |
862 | - * dahdi_maint.c: wip: dahdi_maint can now trip the alarm sim |
863 | - |
864 | - * dahdi_maint.c: dahdi_maint: Fixed outdated usage text |
865 | - |
866 | -2010-07-22 11:41 +0000 [r8964] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
867 | - |
868 | - * xpp/xpp_fxloader: increase maximal firmware delay to 15 seconds |
869 | - Hmm... how badly congested can the startup of Centos be? |
870 | - |
871 | -2010-07-21 08:47 +0000 [r8948-8954] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
872 | - |
873 | - * xpp/astribank_hexload.8, xpp/astribank_tool.8, |
874 | - xpp/astribank_allow.8: More hyphen/minus fixes. |
875 | - |
876 | - * xpp/xpp_fxloader: xpp_fxloader: replace a sleep with a sleep loop |
877 | - For newer kernels there's no need to sleep at all. For Centos5 |
878 | - systems there seems to be a need for a large sleep for firmware |
879 | - load at boot time. So let's make it a loop. |
880 | - |
881 | - * xpp/README.Astribank: README.Astribank: new VMWI settings |
882 | - |
883 | -2010-07-14 10:58 +0000 [r8923-8924] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
884 | - |
885 | - * xpp/perl_modules/Dahdi/Config/Gen.pm: dahdi_genconf: better error |
886 | - message for a bad generator module |
887 | - |
888 | - * xpp/perl_modules/Dahdi/Span.pm, xpp/genconf_parameters: Allow |
889 | - using CONNECTOR/LABEL in genconf_parameters Allow using |
890 | - CONNECTOR/LABEL in addition to SPAN and NUM for pri_termtype in |
891 | - genconf_parameters |
892 | - |
893 | -2010-07-06 17:52 +0000 [r8854] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
894 | - |
895 | - * xpp/perl_modules/Dahdi/Hardware/PCI.pm: Extra PCI IDs for |
896 | - Junghanns PCI-E card (dahdi-perl) |
897 | - |
898 | -2010-06-29 15:21 +0000 [r8827] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
899 | - |
900 | - * dahdi_tool.c: dahdi_tool: center span window as well. If your |
901 | - window was larger than 80X25, you got a main "window" in the |
902 | - center and the span one in the corner. This puts the span one in |
903 | - the center as well. |
904 | - |
905 | -2010-06-15 15:44 +0000 [r8777] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
906 | - |
907 | - * dahdi_cfg.c: Convert all '%i' to '%d' in dahdi_cfg Various values |
908 | - in system.conf were parsed using %i. This means that a value with |
909 | - a leading 0x was considered hexadecimal and a value with a |
910 | - leading 0 would be considered octal ('030' == '24' == '0x1E'). |
911 | - This was never documented and seems a potential cause for |
912 | - confusion in case a leading zero sneaks in. It is thus removed. |
913 | - |
914 | -2010-06-03 20:56 +0000 [r8746] Doug Bailey <dbailey@digium.com> |
915 | - |
916 | - * patlooptest.c: Add enhanced command line parsing and add more |
917 | - options into how errors are flagged and what is displayed. Still |
918 | - runs with the old usage: patlooptest <dahdi device> [<timeout>] |
919 | - |
920 | -2010-06-02 17:05 +0000 [r8741] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
921 | - |
922 | - * xpp/perl_modules/Dahdi/Hardware/PCI.pm: An extra PCI ID for an |
923 | - OpenVox card I ran into. |
924 | - |
925 | -2010-05-20 13:10 +0000 [r8670] Sean Bright <sean@malleable.com> |
926 | - |
927 | - * /, xpp: Add dahdi_maint and xpp/twinstar.8 to svn:ignore |
928 | - |
929 | -2010-05-17 13:26 +0000 [r8630-8638] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
930 | - |
931 | - * /, xpp/waitfor_xpds, xpp/astribank_hook: Fix bashism (Raphael |
932 | - Geissert, checkbashism) |
933 | - |
934 | - * xpp/perl_modules/Dahdi/Hardware/USB.pm: A more correct way to |
935 | - pass parameters |
936 | - |
937 | -2010-05-09 14:09 +0000 [r8615] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
938 | - |
939 | - * dahdi_cfg.c: Remove duplicate code: rad_apply_channels |
940 | - rad_apply_channels() was the same as apply_channels() |
941 | - |
942 | -2010-05-04 15:33 +0000 [r8606] Kevin P. Fleming <kpfleming@digium.com> |
943 | - |
944 | - * dahdi_cfg.c: Report correct span number in dahdi_cfg verbose |
945 | - output. When the DAHDI configuration file does not configure |
946 | - every single span in the system, but leaves spans unconfigured, |
947 | - the verbose output from dahdi_cfg would show incorrect span |
948 | - numbers when reporting the line configuration, as it printed the |
949 | - index into the array of configured spans, instead of their actual |
950 | - span numbers. |
951 | - |
952 | -2010-05-03 13:54 +0000 [r8589] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
953 | - |
954 | - * xpp/xpp_fxloader: xpp_fxloader: make sure 1163 is not missed. |
955 | - |
956 | -2010-04-29 15:06 +0000 [r8580] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
957 | - |
958 | - * xpp/xpp_fxloader: Load xpp firmware in the background (udev) Move |
959 | - loading the the xpp firmwares (when called from udev) to a |
960 | - background sub-process. This helps with: * Don't block udev * It |
961 | - seems that with older systems (e.g. CentOS 5) we need to wait a |
962 | - bit for the device file to appear (in one of the upcoming udev |
963 | - events). If we keep blocking udev, we won't have the device file. |
964 | - The 'sleep' does not seem to be required for newer systems (e.g. |
965 | - Debian Lenny). |
966 | - |
967 | -2010-04-22 09:55 +0000 [r8547] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
968 | - |
969 | - * xpp/Makefile: astribank_is_starting does not depend on libusb. |
970 | - |
971 | -2010-04-18 12:52 +0000 [r8529-8535] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
972 | - |
973 | - * dahdi.init: Add proper dependencies to the 'stop' action as well. |
974 | - |
975 | - * doc/pattest.8, xpp/dahdi_genconf, xpp/astribank_is_starting.8, |
976 | - doc/dahdi_cfg.8, doc/dahdi_test.8, doc/fxotune.8, |
977 | - doc/dahdi_diag.8, doc/dahdi_scan.8, doc/patgen.8, |
978 | - doc/dahdi_monitor.8: man pages: hyphen to minus Groff considers |
979 | - '-' a hyphen. If we want a minus (or a dash) we need to use '\-'. |
980 | - |
981 | -2010-04-14 14:55 +0000 [r8520] Kinsey Moore <kmoore@digium.com> |
982 | - |
983 | - * system.conf.sample: Add documentation for e&me1 (E&M over E1 |
984 | - lines). |
985 | - |
986 | -2010-04-12 Shaun Ruffell <sruffell@digium.com> |
987 | - |
988 | - * dahdi-tools version 2.3.0 released. |
989 | - |
990 | -2010-04-12 20:18 +0000 [r8503-8508] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
991 | - |
992 | - * xpp/perl_modules/Dahdi/Hardware/USB.pm: Also detect USB devices |
993 | - connected on a hub. |
994 | - |
995 | - * xpp/perl_modules/Dahdi/Span.pm: Also detect type for Sangoma |
996 | - E1/T1 cards. |
997 | - |
998 | -2010-04-01 15:45 +0000 [r8451] Shaun Ruffell <sruffell@digium.com> |
999 | - |
1000 | - * Makefile: dahdi_maint: install dahdi_maint on 'make install' |
1001 | - |
1002 | -2010-03-29 21:04 +0000 [r8444] Kinsey Moore <kmoore@digium.com> |
1003 | - |
1004 | - * dahdi_maint.c: Add a space between words and correct an error |
1005 | - message. |
1006 | - |
1007 | -2010-03-25 15:29 +0000 [r8422-8430] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1008 | - |
1009 | - * xpp/perl_modules/Dahdi/Hardware/PCI.pm: wcb4xxp - add Swyx 4xS0 |
1010 | - SX2 QuadBri PCI IDs to dahdi-perl (issue #16493) Reported by: |
1011 | - nic_bellamy |
1012 | - |
1013 | - * xpp/perl_modules/Dahdi/Hardware/PCI.pm: Some more wcb4xxp PCI IDs |
1014 | - for Junghanns cards (issue #15446) (issue #16447) Reported by: |
1015 | - lpistone Tested by: okrief |
1016 | - |
1017 | -2010-03-23 13:41 +0000 Russ Meyerriecks <rmeyerriecks@digium.com> |
1018 | - |
1019 | - * dahdi-tools version 2.2.1.1 released. |
1020 | - |
1021 | -2010-03-10 17:37 +0000 Russ Meyerriecks <rmeyerriecks@digium.com> |
1022 | - |
1023 | - * xpp/perl_modules/Dahdi/Hardware/PCI.pm: Added IDs for gen5 firmware |
1024 | - |
1025 | -2010-01-11 Shaun Ruffell <sruffell@digium.com> |
1026 | - |
1027 | - * dahdi-tools version 2.2.1 released. |
1028 | - |
1029 | -2010-01-10 15:39 +0000 [r7793-7829] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1030 | - |
1031 | - * /, xpp/README.Astribank: Another round of updates to |
1032 | - README.Astribank. zap->dahdi and others Merged revisions 7754 via |
1033 | - svnmerge from http://svn.digium.com/svn/dahdi/tools/trunk |
1034 | - |
1035 | - * xpp/perl_modules/Dahdi/Hardware/USB.pm, /: dahdi-perl: only get |
1036 | - 'serial' and 'devnum' attributes from Astribanks We can tell if a |
1037 | - device is an Astribank by the vendorId and productId attribute. |
1038 | - Get other attributed only after we give up on other devices. |
1039 | - (closes issue #16552) Merged revisions 7558 via svnmerge from |
1040 | - https://origsvn.digium.com/svn/dahdi/tools/trunk |
1041 | - |
1042 | - * /, xpp/xpp_fxloader: xpp_fxloader: adapt to newer kernels This |
1043 | - commit prepares xpp_fxloader to get hotplug envirnment from newer |
1044 | - kernel versions: * DEVICE will eventually be replaced with |
1045 | - DEVNAME. Accept both (and look at DEVNAME first). * If we get |
1046 | - DEVICE, we'll probably get an invalid path based at /proc/bus/usb |
1047 | - . Fix it to use /dev/bus/usb . * While we're at it, allow using |
1048 | - PRODUCT from the envirnment instead of from the command-line. |
1049 | - This should allow fixing udev rules but will also work with |
1050 | - existing rules in DAHDI-linux from trunk (for systems where they |
1051 | - are valid). Merged revisions 7752 via svnmerge from |
1052 | - http://svn.digium.com/svn/dahdi/tools/trunk |
1053 | - |
1054 | - * /, xpp/waitfor_xpds, xpp/twinstar_hook, xpp/xpp_fxloader: xpp: |
1055 | - Comment-only changes: copyright, keywords Merged revisions 7463 |
1056 | - via svnmerge from http://svn.digium.com/svn/dahdi/tools/trunk |
1057 | - |
1058 | - * /, xpp/twinstar: Add perldoc for twinstar. This also avoids a |
1059 | - bogus, empty twinstar.8 man page. Merged revisions 7219,7263 via |
1060 | - svnmerge from http://svn.digium.com/svn/dahdi/tools/trunk |
1061 | - ........ r7219 | tzafrir | 2009-09-27 13:49:40 +0200 (Sun, 27 Sep |
1062 | - 2009) | 5 lines xpp: install twinstar by default; Add a man page |
1063 | - Add a man page to twinstar (as perl POD) and get it installed by |
1064 | - default. ........ r7263 | tzafrir | 2009-09-29 22:45:50 +0200 |
1065 | - (Tue, 29 Sep 2009) | 2 lines xpp: fix a typo in documentation |
1066 | - ........ |
1067 | - |
1068 | - * README, /: Fix README for asciidoc 8.5.2 Tweak title a bit to |
1069 | - avoid asciidoc consider it a header for a syntax block. Merged |
1070 | - revisions 7792 via svnmerge from |
1071 | - http://svn.digium.com/svn/dahdi/tools/trunk |
1072 | - |
1073 | -2009-12-15 Shaun Ruffell <sruffell@digium.com> |
1074 | - |
1075 | - * dahdi-tools version 2.2.1-rc2 released. |
1076 | - |
1077 | -2009-12-01 13:14 +0000 [r7655] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1078 | - |
1079 | - * xpp/Makefile: Also install the twinstar tool on the system |
1080 | - Originaly part of trunk r7219. |
1081 | - |
1082 | -2009-11-22 11:48 +0000 [r7621] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1083 | - |
1084 | - * xpp/astribank_hexload.c, xpp/perl_modules/Dahdi/Hardware/USB.pm, |
1085 | - xpp/mpp_funcs.c, xpp/astribank_tool.c, xpp/astribank_usb.h, |
1086 | - xpp/mpp_funcs.h, xpp/astribank_tool.8, |
1087 | - xpp/perl_modules/Dahdi/Xpp/Mpp.pm, xpp/mpp.h: xpp: MPP protocol |
1088 | - v.1.4 * New firmware loading protocol - Older one (1.3) is still |
1089 | - supported for now * Support loading firmwares from Astribanks |
1090 | - with a minimal firmware (1163) * astribank_tool -Q: always query, |
1091 | - regardless of verbosity level xpp rev: up to 7559 Merged |
1092 | - revisions 7609 via svnmerge from |
1093 | - https://origsvn.digium.com/svn/dahdi/tools/trunk |
1094 | - |
1095 | -2009-11-19 23:11 +0000 [r7611] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1096 | - |
1097 | - * xpp/xpp_fxloader, xpp/astribank_tool.c: xpp: support loading |
1098 | - USB firmware into 1163 devices as well Demote some messages to |
1099 | - debug while we're at it. Merged revisions 7596 via svnmerge from |
1100 | - http://svn.digium.com/svn/dahdi/tools/trunk |
1101 | - |
1102 | -2009-11-05 09:41 +0000 [r7466-7492] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1103 | - |
1104 | - * xpp/xpp_sync, xpp/perl_modules/Dahdi/Xpp/Xpd.pm: Use the |
1105 | - timing_priority attribute, if available, to provide more corrent |
1106 | - LED indiction and such. |
1107 | - |
1108 | - * xpp: use xpd sysfs attr. timing_priority to set NT/TE |
1109 | - |
1110 | - * dahdi.init, xpp/astribank_is_starting.c (added), |
1111 | - xpp/waitfor_xpds, xpp/astribank_is_starting.8 (added), |
1112 | - xpp/twinstar_hook, xpp/xpp_fxloader, xpp/Makefile, |
1113 | - xpp/astribank_hook, init.conf.sample: Add optional "hotplug mode" |
1114 | - to init scripts The hotplug mode is only used in |
1115 | - XPP_HOTPLUG_DAHDI=yes is set in /etc/dahdi/init.conf . If it is |
1116 | - set and the system actually has Astribanks, most of the init |
1117 | - script will actually be run from the context of a udev event. |
1118 | - |
1119 | - * xpp: Add astribank_is_starting: astribank_is_running is used to |
1120 | - tell when we may have an Astribank that is initializing (and may |
1121 | - be re-enumerating and thus not listed as a device). It uses a |
1122 | - semaphore as we can always write to one and we can't always write |
1123 | - to a file. xpp: A man page for astribank_is_starting xpp rev: 7321 |
1124 | - |
1125 | - * dahdi.init: move module loading to a separate function Move the |
1126 | - module loading parts of the dahdi init script to a seperate |
1127 | - function - load_modules. To be used by a later commit. There is |
1128 | - not functional change here (but the diff is confusing). |
1129 | - |
1130 | - * Add XPP_HOTPLUG_DAHDI mode: cfg initiated mostly from hotplug If |
1131 | - XPP_HOTPLUG_DAHDI=yes is set in /etc/dahdi/init.conf (which is |
1132 | - not the default), the normal run of the 'start' operation of the |
1133 | - dahdi init script will only be responsible for loading modules. |
1134 | - The rest will be done (if there are indeed Astribanks on the |
1135 | - system) by a second call to the init script once all of them have |
1136 | - connected. The astribank_hook has also been mostly rewritten. |
1137 | - Most of the functionality of twinstar_hook moved to it. The |
1138 | - current twinstar_hook is a simple example script. |
1139 | - XPP_HOTPLUG_DAHDI mode assumes that all Astribanks on the system |
1140 | - are listed in /etc/dahdi/xpp_order (which can be generated using, |
1141 | - e.g. 'dahdi_genconf xpporder') |
1142 | - |
1143 | - * Fix XPP_HOTPLUG_DAHDI: logic; end of init.d script 'Hotplug mode' |
1144 | - was introduced in r7335. * The logic in the script was broken. - |
1145 | - Negative logic is not such a grand idea to start with. * |
1146 | - Interactive invocation of init.d ends when expected and not |
1147 | - sooner. This change makes waitfor_xpds wait longer. Rather than |
1148 | - waiting for all the Astribanks to load, it will now wait until |
1149 | - the initialization of dahdi from the Astribanks hook script is |
1150 | - run. This allows running e.g.: /etc/init.d/dahdi start; |
1151 | - /etc/init.d/asterisk start It also means that |
1152 | - 'astribank_is_starting' is actually used as a semaphore and not |
1153 | - only as stamp file. As before, those changes have no effect if |
1154 | - hotplug mode is not explicitly enabled (setting |
1155 | - 'XPP_HOTPLUG_DAHDI=yes' in init.conf). |
1156 | - |
1157 | - * xpp: make astribank_is_starting build without warnings. |
1158 | - autoconfig.h is needed as semtimedop() requires _GNU_SOURCE. xpp |
1159 | - rev: 7471 |
1160 | - |
1161 | - * xpp/perl_modules/Dahdi/Config/Params.pm, |
1162 | - xpp/perl_modules/Dahdi/Config/Gen.pm, |
1163 | - xpp/perl_modules/Dahdi/Config/Gen/Chandahdi.pm, |
1164 | - xpp/perl_modules/Dahdi/Config/Gen/System.pm, |
1165 | - xpp/genconf_parameters: CAS DAHD/Asterisk configuration |
1166 | - generation support Also support generating (open)R2 config in |
1167 | - chan_dahdi.conf, while we're at it. Default configuration remains |
1168 | - ISDN as before if no extra settings are given in |
1169 | - genconf_parameters. |
1170 | - |
1171 | - |
1172 | - * dahdi-perl: chan_dahdi.conf generator can generate openr2 conf If |
1173 | - configured to use R2 ("pri_connection_type R2" in |
1174 | - genconf_parameters), the chandahdi generator of dahdi_genconf |
1175 | - will now generate configuration for the openr2 support in |
1176 | - chan_dahdi. |
1177 | - |
1178 | - * xpp: Dahdi::Config::Gen.pm: improvements in preperation for |
1179 | - T1-CAS: - New channo_range() method which returns range strings |
1180 | - for any list of channel numbers (handle sorting, validation, |
1181 | - etc.) - Reimplement bchan_range() as a small wrapper around |
1182 | - channo_range(). - Another small wrapper is chan_range() that |
1183 | - works on channel objects. - Also a parse_chan_range() does the |
1184 | - reverse (from range string to a list of channel numbers). This |
1185 | - isn't used at the moment. xpp rev: 7306 |
1186 | - |
1187 | - * dahdi-perl: Add basic T1-CAS support for dahdi_genconf - Support |
1188 | - added in generators of system.conf and of chan_dahdi.conf . - |
1189 | - Some strange asumptions about being FXS/FXO depending on being |
1190 | - timing provider/supplier. - New gen_cas() method for Chandahdi |
1191 | - and System. - Now gen_digital() is a bit cleaner. - Call |
1192 | - gen_cas(), gen_openr2(), gen_digital() according to the |
1193 | - 'pri_connection_type' config (CAS, R2, PRI/BRI). xpp rev: 7307 |
1194 | - |
1195 | - |
1196 | - * dahdi_perl: improved config generation for T1 CAS A few extra |
1197 | - options for a CAS span signalling. xpp rev: 7343, 7346, 7369 |
1198 | - |
1199 | - * xpp: reduce the clutter of firmware loading Make the new XPP |
1200 | - tools much less verbose: * demote messages to be debug * Convert |
1201 | - multi-line messages to be single-line messages Making |
1202 | - xpp_fxloader run in debug mode can be done by setting DEBUG=yes |
1203 | - in /etc/dahdi/init.conf. |
1204 | - |
1205 | - * dahdi-perl fixes, mostly xpp-specific. * Fix pattern for PCI BRI |
1206 | - cards * Fix recognizing xpp devices by @connector in xpp_order * |
1207 | - Print more helpful comments in xpp_order * Remove most (if not |
1208 | - all) need of /proc/bus/usb * Handle other similar "is_twinstar" |
1209 | - errors. |
1210 | - |
1211 | - * dahdi_genconf: xpp_order generator: Extra '#' after connector |
1212 | - comment Add an extra '#' right after the connector string to make |
1213 | - it simpler to use the connector string from the generated |
1214 | - xpp_order. xpp rev: 7292 |
1215 | - |
1216 | - * xpp: make /proc/bus/usb/devices optional Get the information we |
1217 | - read from /proc/bus/usb/devices from /sys/bus/usb/devices . |
1218 | - Tested on my Debian Unstable with 2.6.30 kernel. The default is |
1219 | - still /proc/bus/usb and sysfs is only used if the procfs file is |
1220 | - not found. Also fixes a case of using the sysfs attribute busnum, |
1221 | - that does not exist in kernel 2.6.9 . Devise the bus number from |
1222 | - the name of the node. |
1223 | - |
1224 | - * dahdi-perl: Avoid '"is_twinstar" on unblessed reference' Dpn't |
1225 | - panic if a device is not found in the list of hardware. This is |
1226 | - not only indication of a bug, but can also happen if a device |
1227 | - appeared after the script was started. |
1228 | - |
1229 | - * zonedata.c: zonedata: Add tone definitions for Panama. (closes |
1230 | - issue #14832) Reported by: jlduran Patch by: jldruan |
1231 | - |
1232 | - * Pass correct channel number to DAHDI_GET_PARAMS when passing span |
1233 | - numbers to dahdi_scan. When filtering, we weren't taking into |
1234 | - account the number of channels in the spans that we were |
1235 | - skipping. (closes issue #15553) Reported by: tony Patches: |
1236 | - 20090723_issue15553.patch uploaded by seanbright (license 71) |
1237 | - Tested by: seanbright |
1238 | - |
1239 | - * xpp: cleanup gcc warnings and one real astribank_tool bug xpp |
1240 | - rev: 7281 |
1241 | - |
1242 | - * Add a missing trailing slash on the install-libs target (closes |
1243 | - issue #15793) Reported by: pprindeville Patches: |
1244 | - dahdi-tools-makefile.patch uploaded by pprindeville (license 347) |
1245 | - |
1246 | - * dahdi_genconf: Add the TC400P transcoder card to our hardware |
1247 | - list (seanbright) |
1248 | - |
1249 | -2009-06-08 17:02 +0000 [r6677-6678] Sean Bright <sean.bright@gmail.com> |
1250 | - |
1251 | - * dahdi-tools version 2.2.0 released. |
1252 | - |
1253 | - * Makefile: Since this 'echo' is part of a larger statement, we |
1254 | - don't need the @ symbol. Cleans up an error I am seeing on |
1255 | - Ubuntu. |
1256 | - |
1257 | - * Makefile: Get rid of parallel build warnings from GNU make. |
1258 | - |
1259 | -2009-05-28 14:04 +0000 [r6668] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1260 | - |
1261 | - * xpp/waitfor_xpds: xpp: if $dahdi_hardware is empty, don't use it |
1262 | - in an error message |
1263 | - |
1264 | -2009-05-27 Shaun Ruffell <sruffell@digium.com> |
1265 | - |
1266 | - * dahdi-tools version 2.2.0-rc3 released. |
1267 | - |
1268 | -2009-05-26 09:55 +0000 [r6655-6657] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1269 | - |
1270 | - * Makefile: Reword the message after 'make config' for the case no |
1271 | - hardware found Check the output of dahdi_hardware and give a |
1272 | - different message for the case it found no hardware. (closes |
1273 | - issue #14792) Reported by: Dovid Patches: |
1274 | - dahdi_hardware_nodev_make.diff uploaded by tzafrir (license 46) |
1275 | - |
1276 | - * xpp/waitfor_xpds: Properly fix usage of waitfor_xpds in |
1277 | - non-standard settings. From xpp rev. 7137. |
1278 | - |
1279 | -2009-05-19 16:46 +0000 [r6643-6647] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1280 | - |
1281 | - * xpp/perl_modules/Dahdi/Config/Params.pm, xpp/dahdi_genconf, |
1282 | - xpp/perl_modules/Dahdi/Config/Gen/Xpporder.pm, |
1283 | - xpp/perl_modules/Dahdi/Config/Gen/System.pm, |
1284 | - xpp/perl_modules/Dahdi/Xpp/Xpd.pm, xpp/genconf_parameters: |
1285 | - dahdi-perl: make dahdi_genconf default to hardhdlc |
1286 | - dahdi_genconf's 'bri_hardhdlc' parameter changes. Should |
1287 | - generally work with no need for manual configuration unless you |
1288 | - use a bristuffed driver (zaphfc, qozap). See notes in |
1289 | - genconf_parameters. |
1290 | - |
1291 | - * xpp/waitfor_xpds, dahdi.init: dahdi.init: moved test for |
1292 | - astribanks into waitfor_xpds If the system starts with an |
1293 | - Astribank with no firmware, the firmware loading may take a while |
1294 | - and the Astribank only becomes ready some time after the DAHDI |
1295 | - init script starts. This means that the test at the beginning of |
1296 | - xpp_startup() in dahdi.init fails to find an Astribank, and the |
1297 | - init script simply continues ignoring this. This changeset moves |
1298 | - the testing inside the script waitfor_xpds. The script now: 1. |
1299 | - Tests for an Astribank using dahdi_hardware and exists |
1300 | - immediately if none found. 2. A loop (of maximum 10 seconds) |
1301 | - waits for the first Astribank to be detected by the driver. 3. |
1302 | - Waiting for the initialization of all the Astribanks to complete |
1303 | - (The original waitfor_xpds) The support for the old procfs |
1304 | - iinterface has been removed, as it has never been used with |
1305 | - DAHDI. |
1306 | - |
1307 | - * xpp/Makefile, xpp/astribank_tool.8, xpp/astribank_allow.8 |
1308 | - (added): xpp: install astribank_allow As we install it, we need a |
1309 | - matching man page. |
1310 | - |
1311 | -2009-05-17 12:01 +0000 [r6630-6632] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1312 | - |
1313 | - * xpp/perl_modules/Dahdi/Config/Gen/Users.pm: A closer-to-reality |
1314 | - users.conf generation module |
1315 | - |
1316 | - * xpp/perl_modules/Dahdi/Config/Gen/Xpporder.pm, |
1317 | - xpp/perl_modules/Dahdi/Xpp/Mpp.pm, xpp/genconf_parameters: Fix |
1318 | - typos in xpp documentation |
1319 | - |
1320 | -2009-05-14 14:02 +0000 [r6619] Shaun Ruffell <sruffell@digium.com> |
1321 | - |
1322 | - * dahdi_cfg.c: dahdi_cfg: Default to the us tonezone if not |
1323 | - specified in system.conf. If there are not "loadzone" and |
1324 | - "defaultzone" lines in /etc/dahdi/system.conf, default to the us |
1325 | - zone. This mimics the behavior of older zaptel releases. |
1326 | - DAHDI-29. |
1327 | - |
1328 | -2009-05-13 20:18 +0000 [r6613-6617] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1329 | - |
1330 | - * xpp/mpp_funcs.c, xpp/astribank_tool.c: astribank_tool: Support |
1331 | - 'reset' of pre-MPP protocol as fallback As of USB firmware rev. |
1332 | - 6926, the Astribank control connection protocol has changed in an |
1333 | - incompatible manner. If astribank_tool fails to open a device |
1334 | - when running a reset command, try to reset the device with the |
1335 | - command from the old (pre-MPP) protocol (A single 0x20 byte). No |
1336 | - support whatsoever for any other feature of the old protocol. |
1337 | - From xpp rev. 7067. (previous commit was xpp rev. 7066). |
1338 | - |
1339 | - * xpp/mpp_funcs.c: xpp: better error reporting when failing to talk |
1340 | - to a pre-MPP Astribank. |
1341 | - |
1342 | - * xpp/perl_modules/Dahdi/Chans.pm, xpp/perl_modules/Dahdi/Span.pm: |
1343 | - dahdi-perl: Patterns for Rhino E1/T1 cards. |
1344 | - |
1345 | -2009-05-12 07:50 +0000 [r6601-6603] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1346 | - |
1347 | - * xpp/README.Astribank: A few more chan_zap -> chan_dahdi in |
1348 | - README.Astribank . |
1349 | - |
1350 | - * xpp/perl_modules/Dahdi/Chans.pm: DAHDI-perl: Fix detection of |
1351 | - empty slots in Rhino cards. |
1352 | - |
1353 | -2009-05-09 06:33 +0000 [r6579-6585] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1354 | - |
1355 | - * xpp/README.Astribank: Fix a broken link |
1356 | - |
1357 | - * xpp/README.Astribank: documentation updates: xpp_order, new USB |
1358 | - loading, and more |
1359 | - |
1360 | - * xpp/perl_modules/Dahdi.pm: dahdi-perl: scan only "number" files |
1361 | - under /proc . (In case someone, such as dahdi_dynamic_ethmf adds |
1362 | - there some other entries) |
1363 | - |
1364 | -2009-04-29 Shaun Ruffell <sruffell@digium.com> |
1365 | - |
1366 | - * dahdi-tools version 2.2.0-rc2 released. |
1367 | - |
1368 | -2009-04-27 19:45 +0000 [r6512] Kevin P. Fleming <kpfleming@digium.com> |
1369 | - |
1370 | - * configure, acinclude.m4: incorporate the autoconf 2.63 fixes here |
1371 | - too |
1372 | - |
1373 | -2009-04-26 10:29 +0000 [r6492] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1374 | - |
1375 | - * Makefile, xpp/xpp_order (removed): Remove useless sample file The |
1376 | - sample xpp_order will be generated anyway when running |
1377 | - 'dahdi_genconf xpporder' (see |
1378 | - xpp/perl_modules/Dahdi/Config/Gen/Xpporder.pm) . No need to |
1379 | - clutter the main DAHDI installation with it. |
1380 | - |
1381 | -2009-04-23 17:03 +0000 [r6476] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1382 | - |
1383 | - * Makefile, xpp/xpp_order: xpp: xpp_order is another config file |
1384 | - that should go to /etc/dahdi Also slightly fix the sample config. |
1385 | - |
1386 | -2009-04-22 10:25 +0000 [r6427-6442] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1387 | - |
1388 | - * dahdi.init: make sure '/etc/init.d/dahdi stop' ends with a |
1389 | - newline |
1390 | - |
1391 | - * ppp/dahdi.c: Yet another left-over DAHDI_PARAMS. ppp almost |
1392 | - builds |
1393 | - |
1394 | - * xpp/perl_modules/Dahdi/Config/Gen/Xpporder.pm: |
1395 | - Dahdi::Config::Gen::Xpporder: use number rather than object in |
1396 | - warning |
1397 | - |
1398 | -2009-04-21 13:44 +0000 [r6419-6421] Sean Bright <sean.bright@gmail.com> |
1399 | - |
1400 | - * dahdi_monitor.c: Correct error check for fopen() calls in |
1401 | - dahdi_monitor.c. dahdi_monitor.c was checking for an error |
1402 | - calling fopen() by determining if the return value was less than |
1403 | - 0. fopen(), however, returns a FILE * and returns NULL on |
1404 | - failure. (closes issue #14894) Reported by: |
1405 | - gknispel_proformatique Patches: |
1406 | - dahdi_monitor_fix_check_fopen_result.patch uploaded by gknispel |
1407 | - (license 261) |
1408 | - |
1409 | - * dahdi_monitor.c: Use correct return value type for getopt(). In |
1410 | - dahdi_monitor.c, the return value of getopt() was being assigned |
1411 | - to a char while the function actually returns an int. Fix |
1412 | - suggested by reporter. (closes issue #14893) Reported by: |
1413 | - gknispel_proformatique |
1414 | - |
1415 | - * dahdi_monitor.c: Whitespace and coding guidelines changes |
1416 | - |
1417 | -2009-04-20 13:44 +0000 [r6417] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1418 | - |
1419 | - * xpp/dahdi_hardware, xpp/perl_modules/Dahdi/Xpp/Xbus.pm, |
1420 | - xpp/test_parse.c, xpp/twinstar, xpp/twinstar_hook, |
1421 | - xpp/twinstar_setup, xpp/perl_modules/Dahdi/Config/Gen/Xpporder.pm |
1422 | - (added), xpp/perl_modules/Dahdi/Xpp/Mpp.pm: xpp: twinstar-related |
1423 | - perl improvements * New generator Dahdi::Config::Gen::Xpporder |
1424 | - can generate and xpp_order config for an existing setup. * Add |
1425 | - more TwinStar related logic to Dahdi::Xpp::Mpp. Simplifies the |
1426 | - twinstar utility accordingly. * twinstar_hook: for the multiple |
1427 | - Astribanks case. * twinstar_setup: More logic tests. Now |
1428 | - delegates configuration generation to dahdi_genconf (with new |
1429 | - Xpporder generator). * dahdi_hardware: Show number of channels |
1430 | - with -v |
1431 | - |
1432 | -2009-04-16 17:32 +0000 [r6375] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1433 | - |
1434 | - * xpp/xpp_fxloader: xpp_fxloader: exit properly when run with |
1435 | - incorrect argument |
1436 | - |
1437 | -2009-04-10 09:53 +0000 [r6344] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1438 | - |
1439 | - * xpp/Makefile, xpp/astribank_hook (added): Move astribank_hook |
1440 | - from linux to tools. Install it by default |
1441 | - |
1442 | -2009-04-07 08:13 +0000 [r6337] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1443 | - |
1444 | - * xpp/hexfile.c: hexfile.c was accidentally left out of r6313 |
1445 | - |
1446 | -2009-04-02 20:56 +0000 [r6278-6313] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1447 | - |
1448 | - * xpp/pic_loader.h (added), xpp/astribank_hexload.8 (added), |
1449 | - xpp/twinstar_setup (added), xpp/xpp_fxloader, |
1450 | - xpp/astribank_tool.c (added), xpp/astribank_allow.c (added), xpp, |
1451 | - xpp/xpp_sync, xpp/dahdi_genconf, xpp/twinstar (added), |
1452 | - xpp/mpp_funcs.c (added), xpp/Makefile, xpp/mpp_funcs.h (added), |
1453 | - xpp/astribank_tool.8 (added), xpp/perl_modules/Dahdi/Xpp/Mpp.pm |
1454 | - (added), xpp/astribank_upgrade (added), |
1455 | - xpp/perl_modules/Dahdi/Xpp.pm, |
1456 | - xpp/perl_modules/Dahdi/Hardware/PCI.pm, xpp/dahdi_hardware, |
1457 | - xpp/twinstar_hook (added), xpp/xpp_order (added), |
1458 | - xpp/astribank_hexload.c (added), xpp/dahdi_registration, |
1459 | - xpp/perl_modules/Dahdi/Hardware/USB.pm, |
1460 | - xpp/perl_modules/Dahdi/Xpp/Xbus.pm, xpp/debug.c (added), |
1461 | - xpp/dahdi_drivers, xpp/lsdahdi, xpp/astribank_usb.c (added), |
1462 | - xpp/hexfile.h, xpp/perl_modules/Dahdi/Hardware.pm, xpp/debug.h |
1463 | - (added), xpp/astribank_usb.h (added), |
1464 | - xpp/perl_modules/Dahdi/Xpp/Xpd.pm, xpp/mpp.h (added), |
1465 | - xpp/pic_loader.c (added): Support for Astribanks 116x: tools part |
1466 | - * New USB firmware loading mechanism. - Incompatible with |
1467 | - previous one: upgrade using fxload or hard reset - |
1468 | - astribank_hexload is the new low-level loading tool - fpga_load |
1469 | - remains for backward compatibility. - xpp/astribank_upgrade: |
1470 | - automate upgrading using fxload * Much enhanced control protocol |
1471 | - ("MPP") - astribank_tool is the low-level tool for that. * |
1472 | - Support for the TwinStar (dual USB port) - Managed through |
1473 | - astribank_tool - Wrapper perl modules and scripts provided * |
1474 | - Allow explicit ordering of Astribanks - /etc/dahdi/xpp_order - |
1475 | - explicit order of Astribanks on the system - The default sorter |
1476 | - is now to use those and fall back to connectors (previous |
1477 | - default). - An option to dahdi_registration to change sorting. |
1478 | - |
1479 | - * hdlcstress.c: hdlcstress.c: add option -b not to stress BRI too |
1480 | - much Aparantly the HFC chip can't stand the heat of this test. |
1481 | - Let's give it an occasional rest. Also add getopts support. |
1482 | - |
1483 | - * Makefile: Install genconf_parameters on 'make install' as well |
1484 | - |
1485 | - * blacklist.sample: xpp_usb should not be blacklisted: it does not |
1486 | - register automatically anyway. |
1487 | - |
1488 | - * xpp/perl_modules/Dahdi/Config/Gen/Modules.pm (added): Implement |
1489 | - 'dahdi_genconf modules' (generate /etc/dahdi/modules) |
1490 | - |
1491 | -2009-03-29 18:53 +0000 [r6272] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1492 | - |
1493 | - * xpp/perl_modules/Dahdi/Config/Gen.pm: dahdi_genconf: Set the |
1494 | - context same as groups. |
1495 | - |
1496 | -2009-03-26 18:28 +0000 [r6261] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1497 | - |
1498 | - * doc/dahdi_scan.8: s/zap/dahdi/ again in dahd_scan.8 |
1499 | - |
1500 | -2009-03-26 18:02 +0000 [r6259] Kevin P. Fleming <kpfleming@digium.com> |
1501 | - |
1502 | - * dahdi_cfg.c: when /etc/dahdi/system.conf does not have an echo |
1503 | - canceller defined for a channel, but the channel previously had |
1504 | - one assigned, running dahdi_cfg does not remove the assigned echo |
1505 | - canceller from the channel as it should. this commit changes that |
1506 | - behavior, so that every channel with a defined signaling mode is |
1507 | - updated to have the proper (or no) echo canceller assigned. |
1508 | - |
1509 | -2009-03-22 10:31 +0000 [r6215] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1510 | - |
1511 | - * xpp/perl_modules/Dahdi/Config/Gen/Users.pm, |
1512 | - xpp/perl_modules/Dahdi/Config/Gen/Chandahdi.pm, |
1513 | - xpp/perl_modules/Dahdi/Config/Gen/System.pm, |
1514 | - xpp/perl_modules/Dahdi/Config/Gen/Unicall.pm: dahdi-perl: "allow" |
1515 | - hand-editing of generated files Rework the text added by |
1516 | - dahdi_genconf generators to say that you can hand-edit files. But |
1517 | - just don't complain if they get mysteriously overriden when it is |
1518 | - run again :-) (closes issue #14569) Reported by: jtodd |
1519 | - |
1520 | -2009-03-17 17:07 +0000 [r6189] Jason Parker <jparker@digium.com> |
1521 | - |
1522 | - * dahdi_monitor.c: Remove remnants of -p option, since it no longer |
1523 | - exists. |
1524 | - |
1525 | -2009-03-17 13:52 +0000 [r6187] Russell Bryant <russell@digium.com> |
1526 | - |
1527 | - * zonedata.c: Add tone definitions for Turkey. (closes issue |
1528 | - #10450) Reported by: msahinbas |
1529 | - |
1530 | -2009-03-17 09:10 +0000 [r6167-6185] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1531 | - |
1532 | - * Makefile: Use LIBS instead of LDFLAGS directly in tools Makefile |
1533 | - The Makefile of dahdi-tools set the variable LDFLAGS directly, |
1534 | - rather than adding to LIBS. This does not allow placing LIBS |
1535 | - after all the linked objects. (closes issue #14638) Reported by: |
1536 | - Chainsaw Patches: dahdi-tools-2.1.0.2-asneeded.patch uploaded by |
1537 | - Chainsaw (license 723) |
1538 | - |
1539 | - * xpp/README.Astribank, xpp/xpp_sync, dahdi.init: dahdi.init: call |
1540 | - xpp_sync a bit later. xpp_sync needs to only be called after |
1541 | - dahdi_cfg was run, because the application of system.conf may |
1542 | - change the priority of a PRI module span (If it is a sync |
1543 | - provider, "NT", priority is lower). Also some documentation-only |
1544 | - changes for xpp_sync. |
1545 | - |
1546 | -2009-03-09 16:30 +0000 [r6110] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1547 | - |
1548 | - * xpp/perl_modules/Dahdi/Chans.pm: Fix detection of channels of |
1549 | - dynamic spans in Dahdi::Chans Fix the pattern detection of |
1550 | - channels belonging to dynamic (dahdi_dynamic) spans in perl |
1551 | - programs that use Dahdi::Chans (e.g.: lsdahdi) (closes issue |
1552 | - #14630) Reported by: tamiel Patches: |
1553 | - 20090309-perl5-Dahdi-Chans.diff uploaded by tamiel (license 712) |
1554 | - |
1555 | -2009-03-07 00:10 +0000 [r6107] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1556 | - |
1557 | - * xpp/perl_modules/Dahdi/Chans.pm, |
1558 | - xpp/perl_modules/Dahdi/Hardware/USB.pm: Detect Sangoma USB FXO |
1559 | - device; fix detection of Sangoma DAHDI channels (By Alessandro |
1560 | - Zummo) |
1561 | - |
1562 | -2009-03-05 21:10 +0000 [r6095] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1563 | - |
1564 | - * dahdi.init: Fix a typo in shutting down dynamic spans in |
1565 | - dahdi.init Fixes shutdown_dynamic() in the dahdi init.d script. |
1566 | - Not enabling it by default just yet (the second half of the |
1567 | - patch) until we get some further confirmation that such a |
1568 | - shutdown is always good. (from issue #14603) Reported by: tamiel |
1569 | - Patches: 20090304_dahdi.init.patch uploaded by tamiel (license |
1570 | - 712) |
1571 | - |
1572 | -2009-03-03 20:39 +0000 [r6071-6078] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1573 | - |
1574 | - * Makefile, README, /: Include sample genconf_parameters in |
1575 | - dahdi-tools README. |
1576 | - |
1577 | - * xpp/perl_modules/Dahdi/Config/Params.pm, |
1578 | - xpp/perl_modules/Dahdi/Config/Gen.pm, xpp/genconf_parameters: |
1579 | - genconf_parameters: Add option fxo_default_start; Document |
1580 | - genconf_parameters * Add a dqahdi_genconf option |
1581 | - fxo_default_start, equivalent of fxs_default_start. * Set all |
1582 | - trunks in group 'group_lines' rather than hard-coded 0 (for TE) |
1583 | - and 6 (for NT). * Document all parameters in genconf_parameters. |
1584 | - |
1585 | - * xpp/perl_modules/Dahdi/Config/Params.pm (added), |
1586 | - xpp/dahdi_genconf, xpp/perl_modules/Dahdi/Config/Gen.pm, |
1587 | - xpp/perl_modules/Dahdi/Config/Gen/Users.pm, |
1588 | - xpp/perl_modules/Dahdi/Config/Gen/Chandahdi.pm, |
1589 | - xpp/perl_modules/Dahdi/Config/Gen/System.pm, |
1590 | - xpp/perl_modules/Dahdi/Config/Gen/Unicall.pm: dahdi_genconf: |
1591 | - configuration handling cleanup. * Parsing genconf_parameters is |
1592 | - now in Dahdi::Config::Params All hard-coded defaults are there |
1593 | - too (in the item() method). * Dahdi::Config::Genconf is gone |
1594 | - (merged into Dahdi::Config::Gen) All semantic mapping is in the |
1595 | - constructor. * dahdi_genconf is now lean and mean. * Add some |
1596 | - implementation docs into these files. |
1597 | - |
1598 | - * xpp/perl_modules/Dahdi/Config/Gen/System.pm: dahdi-perl: Do |
1599 | - generate 'echocanceller' in system.conf Fixed a regression from |
1600 | - r6013 . |
1601 | - |
1602 | - * xpp/perl_modules/Dahdi/Config/GenconfDefaults.pm (removed): |
1603 | - dahdi-perl: Remove an obsolete and unused module |
1604 | - GenconfDefaults.pm |
1605 | - |
1606 | - * xpp/README.Astribank: README.Astribank: Killed one remaining |
1607 | - /sys/devices/xpp |
1608 | - |
1609 | -2009-03-01 14:29 +0000 [r6054-6058] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1610 | - |
1611 | - * xpp/README.Astribank: More README updates |
1612 | - |
1613 | - * xpp/perl_modules/Dahdi/Xpp/Xbus.pm, xpp/dahdi_genconf, |
1614 | - xpp/perl_modules/Dahdi/Config/Gen/Chandahdi.pm, |
1615 | - xpp/perl_modules/Dahdi/Xpp/Xpd.pm: xpp-dahdi: freepbx code |
1616 | - generation; better procfs compatibility * dahdi_genconf -F will |
1617 | - generate chan_dahdi.conf for freepbx (like genzaptelconf -F) * |
1618 | - Better procfs compatibility for xpp modules. |
1619 | - |
1620 | - * xpp/dahdi_drivers, |
1621 | - xpp/perl_modules/Dahdi/Config/GenconfDefaults.pm, |
1622 | - xpp/perl_modules/Dahdi/Config/Gen.pm, |
1623 | - xpp/perl_modules/Dahdi/Config/Gen/Users.pm: dahdi-perl: more |
1624 | - defensive coding and some docs |
1625 | - |
1626 | - * xpp/perl_modules/Dahdi.pm: Dahdi.pm: the sample code should |
1627 | - actually work. |
1628 | - |
1629 | - * xpp/fpga_load.c: fpga_load.c: Flush USB device buffer on startup. |
1630 | - Fixes some firmware loading issues. |
1631 | - |
1632 | -2009-02-26 15:41 +0000 [r6041-6043] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1633 | - |
1634 | - * xpp/perl_modules/Dahdi/Hardware/PCI.pm: Add PCI IDs of another |
1635 | - HFC-S card that zaphfc can handle. |
1636 | - |
1637 | - * xpp/perl_modules/Dahdi/Chans.pm: Fix a typo for detecting zaphfc. |
1638 | - |
1639 | -2009-02-18 21:20 +0000 [r6022] Doug Bailey <dbailey@digium.com> |
1640 | - |
1641 | - * fxstest.c: Remove 8 bit restriction on setting indirect registers |
1642 | - (closes issue #14323) Reported by: alecdavis Patches: |
1643 | - fxstest_setindirect.diff.txt uploaded by alecdavis (license 585) |
1644 | - Tested by: alecdavis |
1645 | - |
1646 | -2009-02-13 21:09 +0000 [r6013] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1647 | - |
1648 | - * xpp/dahdi_genconf, xpp/perl_modules/Dahdi/Config/Gen.pm (added), |
1649 | - xpp/perl_modules/Dahdi/Config/Gen/Users.pm (added), |
1650 | - xpp/perl_modules/Dahdi/Config/Gen/Chandahdi.pm (added), |
1651 | - xpp/perl_modules/Dahdi/Config/Gen/System.pm (added), |
1652 | - xpp/perl_modules/Dahdi/Config/Gen (added), |
1653 | - xpp/perl_modules/Dahdi/Config/Gen/Unicall.pm (added): Rework |
1654 | - dahdi_genconf to have separate configuration generation modules. |
1655 | - 'dahdi_genconf foo bar' will use the modules |
1656 | - Dahdi::Config::Gen::Foo and Dahdi::Config::Gen::Bar to generate |
1657 | - configuraion files. Extra formats can thus be added without |
1658 | - modifying dahdi_genconf and independently of DAHDI. |
1659 | - |
1660 | -2009-02-08 11:04 +0000 [r5984] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1661 | - |
1662 | - * xpp/dahdi_genconf: dahdi_genconf: do reset default files list |
1663 | - when command-line has files This fixes a regression that was |
1664 | - added whwn handling of R2 was added. Originally: Xorcom rev 6683. |
1665 | - |
1666 | -2009-01-28 18:49 +0000 [r5886] Shaun Ruffell <sruffell@digium.com> |
1667 | - |
1668 | - * dahdi.init: Use the dahdihpec_enable tool instead of the |
1669 | - zaphpec_enable. Issue: DAHDI-233 patch by: cmoye |
1670 | - |
1671 | -2009-01-27 15:14 +0000 [r5827] Doug Bailey <dbailey@digium.com> |
1672 | - |
1673 | - * fxstest.c: Break VMWI ioctl calls into two separate calls to |
1674 | - maintain old revision compatibility (issue #14104) Reported by: |
1675 | - alecdavis Tested by: dbailey |
1676 | - |
1677 | -2009-01-25 00:50 +0000 [r5808-5809] Sean Bright <sean.bright@gmail.com> |
1678 | - |
1679 | - * dahdi.init: Use the debian commands on Gentoo. (closes issue |
1680 | - #14277) Reported by: darren1713 Patches: dahdi.init.txt uploaded |
1681 | - by darren1713 (license 116) |
1682 | - |
1683 | -2009-01-22 15:45 +0000 [r5800] Doug Bailey <dbailey@digium.com> |
1684 | - |
1685 | - * fxstest.c: Alec Davis change to modify vmwi test to use new ioctl |
1686 | - call structure and enhance functionality (issue #14104) Reported |
1687 | - by: alecdavis Patches: mwiioctl_structure_fxstest.diff.txt |
1688 | - uploaded by dbailey (license ) Tested by: alecdavis, dbailey |
1689 | - |
1690 | -2009-01-20 18:54 +0000 [r5768] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1691 | - |
1692 | - * xpp/dahdi_genconf: dahdi_genconf: Finally set $fxs_default_start |
1693 | - = 'ks' rather than 'ls' |
1694 | - |
1695 | -2009-01-19 15:19 +0000 [r5728] Doug Bailey <dbailey@digium.com> |
1696 | - |
1697 | - * fxstest.c: Add test to excercise VMWI Enhance polarity test by |
1698 | - making sure the line is in an active state before testing (issue |
1699 | - #14104) Reported by: alecdavis Patches: dahditools-14104.diff.txt |
1700 | - uploaded by dbailey (license ) Tested by: alecdavis |
1701 | - |
1702 | -2009-01-19 12:46 +0000 [r5705-5707] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1703 | - |
1704 | - * Makefile: dahdi-tools: Delete test binaries on 'make clean' |
1705 | - |
1706 | - * xpp/perl_modules/Dahdi/Xpp/Xpd.pm, xpp/xpp_sync: xpp_sync xpd |
1707 | - order fix. |
1708 | - |
1709 | - * xpp/perl_modules/Dahdi/Span.pm: Dahdi-perl: Do detect Astribank |
1710 | - PRI modules. |
1711 | - |
1712 | -2009-01-18 10:22 +0000 [r5671] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1713 | - |
1714 | - * xpp/perl_modules/Dahdi/Xpp/Xbus.pm, |
1715 | - xpp/perl_modules/Dahdi/Chans.pm, |
1716 | - xpp/perl_modules/Dahdi/Xpp/Line.pm, |
1717 | - xpp/perl_modules/Dahdi/Span.pm, |
1718 | - xpp/perl_modules/Dahdi/Xpp/Xpd.pm, xpp/xpp_sync, |
1719 | - xpp/perl_modules/Dahdi/Xpp.pm: XPP tool updates to match r5663: |
1720 | - sysfs migration. |
1721 | - |
1722 | -2009-01-16 14:18 +0000 [r5662] Sean Bright <sean.bright@gmail.com> |
1723 | - |
1724 | - * configure, configure.ac: Properly detect GENERIC_HDLC_VERSION on |
1725 | - various kernel versions. (closes issue #14150) Reported by: |
1726 | - ccesario Patches: 20090115__bug14150.diff.txt uploaded by |
1727 | - seanbright (license 71) Tested by: ccesario |
1728 | - |
1729 | -2009-01-15 12:47 +0000 [r5661] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1730 | - |
1731 | - * xpp/dahdi_genconf: Add an extra output format, 'asterisk': make |
1732 | - the configuration readable for an Asterisk configuration parser. |
1733 | - |
1734 | -2009-01-14 20:06 +0000 [r5656-5660] Sean Bright <sean.bright@gmail.com> |
1735 | - |
1736 | - * hdlctest.c: Whitespace and coding guidelines changes only. |
1737 | - |
1738 | - * hdlctest.c: Fix some uninitialized variable warnings that were |
1739 | - causing hdlctest to not compile. Tested the program as well and |
1740 | - it appears to work correctly. (closes issue #13906) Reported by: |
1741 | - tzafrir |
1742 | - |
1743 | - * dahdi_monitor.c: This commit deserves no comment. |
1744 | - |
1745 | - * dahdi_monitor.c: The problem with using dahdi_copy_string here is |
1746 | - that it is guaranteed to NULL terminate the destination string, |
1747 | - which in this case was not correct. So revert back to using |
1748 | - strncpy and also decrease the buffer by 1 since it was reserving |
1749 | - an extra byte behind NULL for some reason. Fix suggested by |
1750 | - reporter. (closes issue #14103) Reported by: gork |
1751 | - |
1752 | -2009-01-06 08:09 +0000 [r5643] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1753 | - |
1754 | - * xpp/perl_modules/Dahdi/Hardware/PCI.pm: d00d must be in small |
1755 | - caps |
1756 | - |
1757 | -2009-01-03 21:14 +0000 [r5626] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1758 | - |
1759 | - * xpp/perl_modules/Dahdi/Span.pm: Dahdi::Span: Remove an |
1760 | - over-general span header "pri" pattern. Should fix #14061 . |
1761 | - |
1762 | -2008-12-16 17:02 +0000 [r5555] Doug Bailey <dbailey@digium.com> |
1763 | - |
1764 | - * fxotune.c: Add ability to use sine tables for systems that don't |
1765 | - have efficient floating point Add the ability to print out the |
1766 | - best results found during tuning Some format cleanup |
1767 | - |
1768 | -2008-12-15 Shaun Ruffell <sruffell@digium.com> |
1769 | - |
1770 | - * dahdi-tools version 2.1.0.2 released. |
1771 | - |
1772 | -2008-12-15 20:19 +0000 [r5533] Shaun Ruffell <sruffell@digium.com> |
1773 | - |
1774 | - * Makefile: Overwrite the libtonezone.so.1.0 and libtonezone.so.1 |
1775 | - links and libraries in order to maintain binary compatibility |
1776 | - with applications linked with dahdi-tools 2.0.0. |
1777 | - |
1778 | -2008-12-15 11:19 +0000 [r5530-5532] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1779 | - |
1780 | - * xpp/README.Astribank: README.Astribank: minor formatting fix. |
1781 | - |
1782 | - * xpp/README.Astribank: Document patching the xpp BRI driver for |
1783 | - now. |
1784 | - |
1785 | - * dahdi_cfg.c: Allow the span timing to be up to 255. The test for |
1786 | - 15 was ineffective anyway. Some drivers can use higher values. |
1787 | - See issue #13954 . |
1788 | - |
1789 | -2008-12-11 Shaun Ruffell <sruffell@digium.com> |
1790 | - |
1791 | - * dahdi-tools version 2.1.0.1 released. |
1792 | - |
1793 | -2008-12-11 22:45 +0000 [r5514] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1794 | - |
1795 | - * dahdi.init: Drop the "redhat" action at the 'stop' case for now: |
1796 | - RHEL4's 'action' only works with programs and not with functions. |
1797 | - |
1798 | -2008-12-09 Shaun Ruffell <sruffell@digium.com> |
1799 | - |
1800 | - * dahdi-tools version 2.1.0 released. |
1801 | - |
1802 | -2008-12-09 19:41 +0000 [r5461] Shaun Ruffell <sruffell@digium.com> |
1803 | - |
1804 | - * modules.sample: Adding the wctc4xxp driver to the modules.sample. |
1805 | - |
1806 | -2008-12-08 14:02 +0000 [r5452] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1807 | - |
1808 | - * xpp/perl_modules/Dahdi/Span.pm: Fix detection of the B410P card. |
1809 | - All ports will be reported as TE. Tested by write_erase on |
1810 | - #asterisk-dev. |
1811 | - |
1812 | -2008-12-05 00:24 +0000 [r5432-5440] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1813 | - |
1814 | - * xpp/dahdi_genconf: dahdi_genconf: add output type 'modules' |
1815 | - (/etc/dahdi/modules) Also improved documentation. |
1816 | - |
1817 | - * xpp/README.Astribank: A minor formatting fix. |
1818 | - |
1819 | -2008-12-01 18:41 +0000 [r5409-5426] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1820 | - |
1821 | - * xpp/README.Astribank: Next README.Astribank revision: Devices are |
1822 | - not under the bun. (And various other fixes) |
1823 | - |
1824 | - * xpp/README.Astribank: README.Astribank catching up with sysfs, |
1825 | - dahdi and all. Many more entries in the table of contents. Most |
1826 | - of sysfs is documented. |
1827 | - |
1828 | -2008-11-27 10:01 +0000 [r5402-5404] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1829 | - |
1830 | - * Makefile, /: dahdi-tools: Re-add README.Astribank.html |
1831 | - generation. |
1832 | - |
1833 | - * xpp/README.Astribank (added): Moving README.Astribank to |
1834 | - dahdi-tools . |
1835 | - |
1836 | -2008-11-25 Shaun Ruffell <sruffell@digium.com> |
1837 | - |
1838 | - * dahdi-tools version 2.1.0-rc5 released. |
1839 | - |
1840 | -2008-11-24 20:42 +0000 [r5379-5381] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1841 | - |
1842 | - * dahdi_cfg.c: dahdi_cfg: {} as per coding guidelines. |
1843 | - |
1844 | - * dahdi_cfg.c: dahdi_cfg: Make the message about echo canceller |
1845 | - selection verbose. |
1846 | - |
1847 | - * xpp/waitfor_xpds, xpp/test_parse.c, xpp/xpp_fxloader, |
1848 | - xpp/fpga_load.c: Add some missing copyright statements in the |
1849 | - xpp/ directory as well. |
1850 | - |
1851 | -2008-11-21 23:26 +0000 [r5365-5366] Kevin P. Fleming <kpfleming@digium.com> |
1852 | - |
1853 | - * dahdi_diag.c, hdlcstress.c, patgen.c, patlooptest.c, |
1854 | - hdlcverify.c, fxstest.c, timertest.c, hdlcgen.c, pattest.c, |
1855 | - dahdi_test.c, dahdi_speed.c, hdlctest.c: add copyright headers to |
1856 | - all the files that don't have them |
1857 | - |
1858 | - * dahdi_monitor.c, fxotune.c: minor fixes to accommodate compilers |
1859 | - who check return result usage |
1860 | - |
1861 | -2008-11-19 21:16 +0000 [r5334] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1862 | - |
1863 | - * dahdi.init: LSB init script comments. |
1864 | - |
1865 | -2008-11-17 Shaun Ruffell <sruffell@digium.com> |
1866 | - |
1867 | - * dahdi-tools version 2.1.0-rc4 released. |
1868 | - |
1869 | -2008-11-16 17:55 +0000 [r5308-5309] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1870 | - |
1871 | - * hdlcverify.c: Fix a compilation warning about signedness |
1872 | - |
1873 | - * hdlcstress.c, patgen.c, patlooptest.c, pattest.c, hdlctest.c: Fix |
1874 | - usage strings and eliminate all traces of tor |
1875 | - |
1876 | -2008-11-10 Shaun Ruffell <sruffell@digium.com> |
1877 | - |
1878 | - * dahdi-tools 2.1.0-rc3 released. |
1879 | - |
1880 | -2008-11-06 22:38 +0000 [r5266] Doug Bailey <dbailey@digium.com> |
1881 | - |
1882 | - * zonedata.c: set DTMF twist levels for listed EU countries to meet |
1883 | - TBR-21 standard of -9/-11 dB |
1884 | - |
1885 | -2008-11-05 Shaun Ruffell <sruffell@digium.com> |
1886 | - |
1887 | - * dahdi-tools 2.1.0-rc2 released. |
1888 | - |
1889 | -2008-11-05 19:17 +0000 [r5231] Shaun Ruffell <sruffell@digium.com> |
1890 | - |
1891 | - * system.conf.sample: Update system.conf.sample to clarify BRI |
1892 | - configuration. |
1893 | - |
1894 | -2008-11-04 15:58 +0000 [r5228] Shaun Ruffell <sruffell@digium.com> |
1895 | - |
1896 | - * hdlcstress.c, hdlcverify.c, hdlcgen.c, hdlctest.c: Fix |
1897 | - compilation issues with the hdlc tests. |
1898 | - |
1899 | -2008-11-03 20:14 +0000 [r5226] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1900 | - |
1901 | - * Makefile: Bump SONAME of libtonezone to 2.0: API and ABI have not |
1902 | - changed from Zaptel, but the library behaves differently. |
1903 | - |
1904 | -2008-11-03 Shaun Ruffell <sruffell@digium.com> |
1905 | - |
1906 | - * dahdi-tools 2.1.0-rc1 released. |
1907 | - |
1908 | -2008-10-28 20:42 +0000 [r5160] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1909 | - |
1910 | - * xpp/perl_modules/Dahdi/Chans.pm: Get wcb4xxp listed in lsdahdi . |
1911 | - |
1912 | -2008-10-28 18:34 +0000 [r5155] Shaun Ruffell <sruffell@digium.com> |
1913 | - |
1914 | - * xpp/perl_modules/Dahdi/Hardware/PCI.pm, blacklist.sample, |
1915 | - modules.sample: Adding support for the wcb4xxp module. |
1916 | - |
1917 | -2008-10-27 16:07 +0000 [r5134] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1918 | - |
1919 | - * xpp/perl_modules/Dahdi/Xpp/Line.pm, |
1920 | - xpp/perl_modules/Dahdi/Xpp.pm: perl xpp: Support for FXO batter |
1921 | - attribute from sysfs (from r5133). Still falls back to reading |
1922 | - the battery status from procfs. Also fixes error message. |
1923 | - |
1924 | -2008-10-16 18:03 +0000 [r5098-5099] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1925 | - |
1926 | - * xpp/waitfor_xpds (added), xpp/perl_modules/Dahdi/Xpp/Line.pm, |
1927 | - xpp/Makefile, xpp/perl_modules/Dahdi/Xpp/Xpd.pm, dahdi.init, |
1928 | - xpp/perl_modules/Dahdi/Xpp.pm: xpp: userspace support for sysfx |
1929 | - migration. The userspace side of dahdi-linux r5097. * Perl |
1930 | - modules default to using xpp sysfs but will fallback (with |
1931 | - warning) to procfs interface. * An additional |
1932 | - /usr/share/dahdi/waitfor_xpds to replace the line in the init.d |
1933 | - script. |
1934 | - |
1935 | - * xpp/dahdi_genconf: dahdi_genconf: report channel number in case |
1936 | - of error. |
1937 | - |
1938 | -2008-10-15 17:11 +0000 [r5094] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1939 | - |
1940 | - * xpp/perl_modules/Dahdi/Chans.pm: Dahdi-perl: Fix detection of |
1941 | - empty slots in Rhino analog cards. Closes issue #13685 |
1942 | - |
1943 | -2008-10-12 23:09 +0000 [r5088] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1944 | - |
1945 | - * xpp/dahdi.cgi (added): A CGI script to give some information |
1946 | - about Zaptel through the Dahdi perl interface. A simple demo. Not |
1947 | - installed automatically. |
1948 | - |
1949 | -2008-10-10 18:29 +0000 [r5079-5082] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1950 | - |
1951 | - * Makefile: Fix 'make config' for distros with no chkconfig and no |
1952 | - update-rc.d . This would cause the error on 'make config' for |
1953 | - "unknown command dahdi", and 'make -n config' would show that it |
1954 | - tries to run "dahdi defaults 15 30" |
1955 | - |
1956 | - * dahdi_test.c: revert r5077 as r5078 fixes this better: now we can |
1957 | - use 8 entries in a line. |
1958 | - |
1959 | - * dahdi_test.c: make dahdi_test's prints fit in one line. It makes |
1960 | - them slightly less "accurate", but we already use it in the |
1961 | - verbose messages, and dahdi_test is not really accurate. |
1962 | - |
1963 | -2008-10-10 16:15 +0000 [r5072-5077] Sean Bright <sean.bright@gmail.com> |
1964 | - |
1965 | - * dahdi_test.c: Wrap at 6 instead of 8 so we are sure to fit on an |
1966 | - 80 column terminal. |
1967 | - |
1968 | - * dahdi.init: Return the appropriate values to indicate if the |
1969 | - modules are loaded or not. |
1970 | - |
1971 | - * dahdi.init: Add a status command to the DAHDI init script. |
1972 | - (closes issue #13655) Reported by: jcollie Patches: |
1973 | - 0001-Add-a-trivial-status-command-to-the-init-script.patch |
1974 | - uploaded by jcollie (license 412) (Slight modification by me to |
1975 | - update the usage text) |
1976 | - |
1977 | -2008-10-03 19:37 +0000 [r5044] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
1978 | - |
1979 | - * xpp/perl_modules/Dahdi/Config/GenconfDefaults.pm: When the config |
1980 | - file is not found: return "empty" data and don't die. Closes |
1981 | - issues #13615 . |
1982 | - |
1983 | -2008-10-03 19:03 +0000 [r5038-5042] Sean Bright <sean.bright@gmail.com> |
1984 | - |
1985 | - * dahdi_test.c: Whitespace and formatting only. |
1986 | - |
1987 | - * dahdi_test.c: The first line was getting wrapped after 7 instead |
1988 | - of 8. |
1989 | - |
1990 | - * xpp/genzaptelconf (removed), xpp/genzaptelconf.8 (removed): |
1991 | - Remove some leftovers. |
1992 | - |
1993 | - * dahdi_scan.c, doc/dahdi_scan.8: Fix the dahdi_scan manpage |
1994 | - (s/dahdi_span/dahdi_scan/) and make dahdi_scan do what it is |
1995 | - advertised to do. Namely take span numbers on the command line. |
1996 | - (closes issue #13614) Reported by: jfinstrom |
1997 | - |
1998 | -2008-09-29 Shaun Ruffell <sruffell@digium.com> |
1999 | - |
2000 | - * dahdi-tools 2.0.0 released. |
2001 | - |
2002 | -2008-09-25 15:47 +0000 [r4984] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
2003 | - |
2004 | - * dahdi.init: dahdi_init: Fix a typo in xpp initialization (Stephen |
2005 | - Farrell) |
2006 | - |
2007 | -2008-09-24 19:54 +0000 [r4977] Sean Bright <sean.bright@gmail.com> |
2008 | - |
2009 | - * build_tools/menuselect-deps.in, configure, configure.ac, |
2010 | - dahdi.xml: Re-enable sethdlc by default in menuselect. Add |
2011 | - configure checks to properly discover the linux/hdlc.h |
2012 | - dependency. |
2013 | - |
2014 | -2008-09-24 17:35 +0000 [r4975] Jason Parker <jparker@digium.com> |
2015 | - |
2016 | - * dahdi.xml: Disable sethdlc in menuselect by default. This is how |
2017 | - it was in Zaptel, and it's causing issues. Ideally, this would |
2018 | - eventually be checked in the configure script. |
2019 | - |
2020 | -2008-09-23 04:56 +0000 [r4969] Shaun Ruffell <sruffell@digium.com> |
2021 | - |
2022 | - * README: Removing the note about running install_prereq since from |
2023 | - the README since that script is not present currently. |
2024 | - |
2025 | -2008-09-16 18:26 +0000 [r4913-4915] Shaun Ruffell <sruffell@digium.com> |
2026 | - |
2027 | - * dahdi.init: Remove the extra space printed after each line when a |
2028 | - module is loaded. |
2029 | - |
2030 | - * dahdi_cfg.c: Close the /dev/dahdi/channel file handle if we're |
2031 | - unable to associate it with a particular channel. |
2032 | - |
2033 | - * dahdi_cfg.c: Provide system error information if open on |
2034 | - /dev/dahdi/channel fails. |
2035 | - |
2036 | -2008-09-12 18:06 +0000 [r4904] Sean Bright <sean.bright@gmail.com> |
2037 | - |
2038 | - * Makefile, /, configure, configure.ac, makeopts.in: A few changes: |
2039 | - 1) Start using menuselect trunk 2) Bring in changes similar to |
2040 | - those in asterisk trunk so that 'make menuselect' works as it |
2041 | - should from the dahdi-tools directory. 3) Stop looking for |
2042 | - curses/ncurses in the top level configure since nothing uses it |
2043 | - (except menuselect which will find it on it's own). |
2044 | - |
2045 | -2008-09-11 20:52 +0000 [r4894] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
2046 | - |
2047 | - * xpp/Makefile, xpp/xpp.rules (removed): Move udev rules xpp.rules |
2048 | - from dahdi-tools to dahdi-linux . |
2049 | - |
2050 | -2008-09-11 15:45 +0000 [r4891-4893] Jason Parker <jparker@digium.com> |
2051 | - |
2052 | - * Makefile: Fix installation of ifup-hdlc and init script when |
2053 | - using DESTDIR. (Step 2 of cleanup) (closes issue #13430) Reported |
2054 | - by: jcollie Patches: |
2055 | - 0001-Fix-install-of-ifup-hdlc-when-installing-into-an-alt.patch |
2056 | - uploaded by jcollie (license 412) Tested by: qwell Note: Patch |
2057 | - from #13430 was extended to modify init script installation as |
2058 | - well. |
2059 | - |
2060 | - * build_tools/genmodconf (removed), dahdi.rules (removed), |
2061 | - build_tools/genudevrules (removed): Remove files that aren't used |
2062 | - or are duplicated from dahdi-linux. Step 1 of cleanup. |
2063 | - |
2064 | -2008-09-09 18:21 +0000 [r4882-4883] Jason Parker <jparker@digium.com> |
2065 | - |
2066 | - * Makefile: Fix a few typos |
2067 | - |
2068 | - * dahdi.init: Fix location of fxotune (closes issue #13428) |
2069 | - Reported by: eeman |
2070 | - |
2071 | -2008-09-04 16:37 +0000 [r4860] Shaun Ruffell <sruffell@digium.com> |
2072 | - |
2073 | - * Makefile, UPGRADE.txt: * Updates the instructions presented after |
2074 | - 'make config' about where to set which modules are loaded. * |
2075 | - Update UPGRADE.txt to indicate where to set which modules are |
2076 | - loaded and where the module parameters are set. Issue# DAHDI-187 |
2077 | - |
2078 | -2008-09-03 19:38 +0000 [r4859] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
2079 | - |
2080 | - * Makefile, README, UPGRADE.txt: Slightly reformat UPDATES.txt for |
2081 | - asciidoc . Include it in README.html . See e.g. |
2082 | - http://docs.tzafrir.org.il/dahdi-tools/README.html#_upgrade_notes |
2083 | - Also fix some links in the README. |
2084 | - |
2085 | -2008-08-28 21:40 +0000 [r4853-4855] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
2086 | - |
2087 | - * dahdi.init: Simplify reading list of modules from |
2088 | - /etc/dahdi/modules . |
2089 | - |
2090 | - * doc, xpp: Ignore generated HTML files. |
2091 | - |
2092 | - * xpp/Makefile: Don't install genzaptelconf: deprecated, and |
2093 | - collides with Zaptel. |
2094 | - |
2095 | -2008-08-27 17:13 +0000 [r4845-4850] Kevin P. Fleming <kpfleming@digium.com> |
2096 | - |
2097 | - * modules.sample, dahdi.init: remove some silly echo statement |
2098 | - constructions in the init script clean up the modules.sample file |
2099 | - to have proper lists of cards supported by each module and remove |
2100 | - reference to dahdi_dummy since the init script takes care of |
2101 | - loading that module |
2102 | - |
2103 | - * makeopts.in, fxotune.c: actually implement the rest of |
2104 | - --enable-dev-mode, and fix up more problems it found |
2105 | - |
2106 | - * Makefile, configure, configure.ac, sethdlc.c, makeopts.in, |
2107 | - dahdi_cfg.c: add --enable-dev-mode support, and fix up a couple |
2108 | - of warnings found using it (only two, surprisingly) |
2109 | - |
2110 | -2008-08-26 14:35 +0000 [r4833-4844] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
2111 | - |
2112 | - * Makefile, README, system.conf.sample: * Add a "docs" target to |
2113 | - generate documentation. * Demote/promote some headers. * Fix URL |
2114 | - for on-line copy of the README. |
2115 | - |
2116 | - * xpp/perl_modules/Dahdi/Chans.pm: Fix default path of dahdi_cfg |
2117 | - (used for probing type of wctdm channels) |
2118 | - |
2119 | -2008-08-25 16:12 +0000 [r4826-4827] Jason Parker <jparker@digium.com> |
2120 | - |
2121 | - * dahdi_cfg.c: Fix more crazy formatting |
2122 | - |
2123 | - * dahdi_cfg.c: Reverse some incorrect logic, and cleanup some very |
2124 | - ugly formatting in passing. |
2125 | - |
2126 | -2008-08-24 10:53 +0000 [r4821-4822] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
2127 | - |
2128 | - * dahdi_cfg.c: We've got a new "zap" string to zap. |
2129 | - |
2130 | - * dahdi_cfg.c: dahdi_cfg.c: Reduce nesting in main() . |
2131 | - |
2132 | -2008-08-24 05:54 +0000 [r4818] Matthew Fredrickson <creslin@digium.com> |
2133 | - |
2134 | - * dahdi_cfg.c: Add support for 56 KB HDLC as well as selectable |
2135 | - rate in system.conf |
2136 | - |
2137 | -2008-08-20 Kevin P. Fleming <kpfleming@digium.com> |
2138 | - |
2139 | - * dahdi-tools version 2.0.0-rc2 released. |
2140 | - |
2141 | -2008-08-17 15:50 +0000 [r4787] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
2142 | - |
2143 | - * xpp/perl_modules/Dahdi/Chans.pm: Dahdi::Chans: fix leftovers from |
2144 | - r4767 (handling of spaces) While r4767 solved some parsing |
2145 | - problems of channels with "strange" encoding names, it introduced |
2146 | - a new problem (e.g.: "RED" after "(In use)" which is fixed here. |
2147 | - |
2148 | -2008-08-12 12:59 +0000 [r4764-4767] Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
2149 | - |
2150 | - * xpp/perl_modules/Dahdi/Chans.pm: Dahdi-perl: More robust parsing |
2151 | - of channel signalling types. Use a list of signalling types |
2152 | - rather than a regular experssion of a "word". |
2153 | - |
2154 | - * xpp/dahdi_genconf, xpp/genconf_parameters: MFC/R2 configuration |
2155 | - generation support If optional setting 'pri_connection_type' is |
2156 | - set to R2, configure E1 spans as CAS and generate a unicall.conf |
2157 | - snippet (unicall-channels.conf). |
2158 | - |
2159 | - * xpp/perl_modules/Dahdi/Hardware/PCI.pm, xpp/xpp_fxloader: * |
2160 | - xpp_fxloader: shows USB firmware version. * Update PCI IDs |
2161 | - database. |
2162 | - |
2163 | - * xpp/lsdahdi, xpp/perl_modules/Dahdi/Chans.pm: Dahdi-perl: Add |
2164 | - alarms() method for channels. Use it in lsdahdi. * Better paring |
2165 | - of the /proc/dahdi/N channel lines for alarms * Provide it as a |
2166 | - separate alarms() method. |
2167 | - |
2168 | -2008-08-06 Kevin P. Fleming <kpfleming@digium.com> |
2169 | - |
2170 | - * dahdi-tools version 2.0.0-rc1 released. |
2171 | - |
2172 | - |
2173 | |
2174 | === modified file 'Makefile' |
2175 | --- Makefile 2011-03-13 23:45:36 +0000 |
2176 | +++ Makefile 2013-08-25 04:54:26 +0000 |
2177 | @@ -5,19 +5,7 @@ |
2178 | # |
2179 | # |
2180 | |
2181 | -# If the file .dahdi.makeopts is present in your home directory, you can |
2182 | -# include all of your favorite menuselect options so that every time you download |
2183 | -# a new version of Asterisk, you don't have to run menuselect to set them. |
2184 | -# The file /etc/dahdi.makeopts will also be included but can be overridden |
2185 | -# by the file in your home directory. |
2186 | - |
2187 | -GLOBAL_MAKEOPTS=$(wildcard /etc/dahdi.makeopts) |
2188 | -USER_MAKEOPTS=$(wildcard ~/.dahdi.makeopts) |
2189 | - |
2190 | ifeq ($(strip $(foreach var,clean distclean dist-clean update,$(findstring $(var),$(MAKECMDGOALS)))),) |
2191 | - ifneq ($(wildcard menuselect.makeopts),) |
2192 | - include menuselect.makeopts |
2193 | - endif |
2194 | endif |
2195 | |
2196 | ifeq ($(strip $(foreach var,clean distclean dist-clean update,$(findstring $(var),$(MAKECMDGOALS)))),) |
2197 | @@ -100,6 +88,7 @@ |
2198 | LIB_DIR:=$(libdir) |
2199 | INC_DIR:=$(includedir)/dahdi |
2200 | MAN_DIR:=$(mandir)/man8 |
2201 | +DATA_DIR:=${datadir}/dahdi |
2202 | CONFIG_DIR:=$(sysconfdir)/dahdi |
2203 | CONFIG_FILE:=$(CONFIG_DIR)/system.conf |
2204 | |
2205 | @@ -111,10 +100,21 @@ |
2206 | UTILS += patgen pattest patlooptest hdlcstress hdlctest hdlcgen \ |
2207 | hdlcverify timertest dahdi_maint |
2208 | |
2209 | -BINS:=fxotune fxstest sethdlc dahdi_cfg dahdi_diag dahdi_monitor dahdi_speed dahdi_test dahdi_scan dahdi_tool dahdi_maint |
2210 | -BINS:=$(filter-out $(MENUSELECT_UTILS),$(BINS)) |
2211 | + |
2212 | +BINS:=fxotune dahdi_cfg dahdi_monitor dahdi_speed dahdi_test dahdi_scan dahdi_maint |
2213 | +ifeq (1,$(PBX_NEWT)) |
2214 | + BINS += dahdi_tool |
2215 | +endif |
2216 | +ifeq (1,$(PBX_HDLC)) |
2217 | + BINS += sethdlc |
2218 | +endif |
2219 | MAN_PAGES:=$(wildcard $(BINS:%=doc/%.8)) |
2220 | |
2221 | +PINNED_DATA_SCRIPTS:=dahdi_cfg_device_args handle_device \ |
2222 | + span_assignments span_types |
2223 | +PINNED_UTILS:=dahdi_map |
2224 | +PINNED_CONF:=pinned-spans.conf spantype.conf |
2225 | + |
2226 | TEST_BINS:=patgen pattest patlooptest hdlcstress hdlctest hdlcgen hdlcverify timertest dahdi_maint |
2227 | # All the man pages. Not just installed ones: |
2228 | GROFF_PAGES := $(wildcard doc/*.8 xpp/*.8) |
2229 | @@ -122,10 +122,7 @@ |
2230 | |
2231 | GENERATED_DOCS := $(GROFF_HTML) README.html README.Astribank.html |
2232 | |
2233 | -all: menuselect.makeopts |
2234 | - @$(MAKE) _all |
2235 | - |
2236 | -_all: prereq programs |
2237 | +all: prereq programs |
2238 | |
2239 | libs: $(LTZ_SO) $(LTZ_A) |
2240 | |
2241 | @@ -176,6 +173,9 @@ |
2242 | |
2243 | dahdi_cfg: $(LTZ_A) |
2244 | dahdi_cfg: LIBS+=-lm |
2245 | +dahdi_pcap: |
2246 | + $(CC) $(CFLAGS) dahdi_pcap.c -lpcap -o $@ $< |
2247 | + |
2248 | |
2249 | fxstest: $(LTZ_SO) |
2250 | fxstest: LIBS+=-lm |
2251 | @@ -233,6 +233,12 @@ |
2252 | $(INSTALL) -d $(DESTDIR)$(CONFIG_DIR) |
2253 | $(INSTALL) -m 644 system.conf.sample $(DESTDIR)$(CONFIG_FILE) |
2254 | endif |
2255 | +ifeq ($(DAHDI_PINNED),yes) |
2256 | + install -d $(DESTDIR)$(DATA_DIR) |
2257 | + install $(PINNED_DATA_SCRIPTS) $(DESTDIR)$(DATA_DIR)/ |
2258 | + install $(PINNED_UTILS) $(DESTDIR)/$(BIN_DIR)/ |
2259 | + install -m 644 $(PINNED_CONF) $(DESTDIR)/$(CONFIG_DIR)/ |
2260 | +endif |
2261 | |
2262 | install-libs: libs |
2263 | $(INSTALL) -d -m 755 $(DESTDIR)/$(LIB_DIR) |
2264 | @@ -270,6 +276,12 @@ |
2265 | $(MAKE) -C $$dir install; \ |
2266 | done |
2267 | |
2268 | +install-tests: tests |
2269 | +ifneq (,$(TEST_BINS)) |
2270 | + install -d $(DESTDIR)$(BIN_DIR) |
2271 | + install $(TEST_BINS) $(DESTDIR)$(BIN_DIR)/ |
2272 | +endif |
2273 | + |
2274 | config: |
2275 | ifneq (,$(COPY_INITD)) |
2276 | $(COPY_INITD) |
2277 | @@ -324,7 +336,6 @@ |
2278 | fi |
2279 | |
2280 | clean: |
2281 | - -@$(MAKE) -C menuselect clean |
2282 | rm -f $(BINS) $(TEST_BINS) |
2283 | rm -f *.o dahdi_cfg tzdriver sethdlc |
2284 | rm -f $(LTZ_SO) $(LTZ_A) *.lo |
2285 | @@ -339,12 +350,12 @@ |
2286 | rm -f core |
2287 | rm -f dahdi_cfg-shared fxstest |
2288 | rm -rf $(GENERATED_DOCS) *.asciidoc tonezones.txt |
2289 | + rm -f dahdi_pcap |
2290 | |
2291 | distclean: dist-clean |
2292 | |
2293 | dist-clean: clean |
2294 | - @$(MAKE) -C menuselect dist-clean |
2295 | - rm -f makeopts menuselect.makeopts menuselect-tree build_tools/menuselect-deps |
2296 | + rm -f makeopts |
2297 | rm -f config.log config.status |
2298 | rm -f .*.d |
2299 | |
2300 | @@ -356,62 +367,7 @@ |
2301 | @echo "****" |
2302 | @exit 1 |
2303 | |
2304 | -menuselect.makeopts: menuselect/menuselect menuselect-tree makeopts |
2305 | - menuselect/menuselect --check-deps $@ $(GLOBAL_MAKEOPTS) $(USER_MAKEOPTS) |
2306 | - |
2307 | -menuconfig: menuselect |
2308 | - |
2309 | -cmenuconfig: cmenuselect |
2310 | - |
2311 | -gmenuconfig: gmenuselect |
2312 | - |
2313 | -nmenuconfig: nmenuselect |
2314 | - |
2315 | -menuselect: menuselect/cmenuselect menuselect/nmenuselect menuselect/gmenuselect |
2316 | - @if [ -x menuselect/nmenuselect ]; then \ |
2317 | - $(MAKE) nmenuselect; \ |
2318 | - elif [ -x menuselect/cmenuselect ]; then \ |
2319 | - $(MAKE) cmenuselect; \ |
2320 | - elif [ -x menuselect/gmenuselect ]; then \ |
2321 | - $(MAKE) gmenuselect; \ |
2322 | - else \ |
2323 | - echo "No menuselect user interface found. Install ncurses,"; \ |
2324 | - echo "newt or GTK libraries to build one and re-rerun"; \ |
2325 | - echo "'make menuselect'."; \ |
2326 | - fi |
2327 | - |
2328 | -cmenuselect: menuselect/cmenuselect menuselect-tree |
2329 | - -@menuselect/cmenuselect menuselect.makeopts $(GLOBAL_MAKEOPTS) $(USER_MAKEOPTS) && echo "menuselect changes saved!" || echo "menuselect changes NOT saved!" |
2330 | - |
2331 | -gmenuselect: menuselect/gmenuselect menuselect-tree |
2332 | - -@menuselect/gmenuselect menuselect.makeopts $(GLOBAL_MAKEOPTS) $(USER_MAKEOPTS) && echo "menuselect changes saved!" || echo "menuselect changes NOT saved!" |
2333 | - |
2334 | -nmenuselect: menuselect/nmenuselect menuselect-tree |
2335 | - -@menuselect/nmenuselect menuselect.makeopts $(GLOBAL_MAKEOPTS) $(USER_MAKEOPTS) && echo "menuselect changes saved!" || echo "menuselect changes NOT saved!" |
2336 | - |
2337 | -# options for make in menuselect/ |
2338 | -MAKE_MENUSELECT=CC="$(HOST_CC)" CXX="$(CXX)" LD="" AR="" RANLIB="" CFLAGS="" $(MAKE) -C menuselect CONFIGURE_SILENT="--silent" |
2339 | - |
2340 | -menuselect/menuselect: menuselect/makeopts |
2341 | - +$(MAKE_MENUSELECT) menuselect |
2342 | - |
2343 | -menuselect/cmenuselect: menuselect/makeopts |
2344 | - +$(MAKE_MENUSELECT) cmenuselect |
2345 | - |
2346 | -menuselect/gmenuselect: menuselect/makeopts |
2347 | - +$(MAKE_MENUSELECT) gmenuselect |
2348 | - |
2349 | -menuselect/nmenuselect: menuselect/makeopts |
2350 | - +$(MAKE_MENUSELECT) nmenuselect |
2351 | - |
2352 | -menuselect/makeopts: makeopts |
2353 | - +$(MAKE_MENUSELECT) makeopts |
2354 | - |
2355 | -menuselect-tree: dahdi.xml |
2356 | - @echo "Generating input for menuselect ..." |
2357 | - @build_tools/make_tree > $@ |
2358 | - |
2359 | -.PHONY: menuselect distclean dist-clean clean all _all install programs tests devel data config update install-programs install-libs install-utils-subdirs utils-subdirs prereq |
2360 | +.PHONY: distclean dist-clean clean all install programs tests devel data config update install-programs install-libs install-utils-subdirs utils-subdirs prereq |
2361 | |
2362 | FORCE: |
2363 | |
2364 | |
2365 | === modified file 'README' |
2366 | --- README 2011-03-13 23:45:36 +0000 |
2367 | +++ README 2013-08-25 04:54:26 +0000 |
2368 | @@ -1,10 +1,10 @@ |
2369 | DAHDI Telephony Interface Driver |
2370 | ================================= |
2371 | Asterisk Development Team <asteriskteam@digium.com> |
2372 | -$Revision: 7792 $, $Date: 2010-01-09 06:23:55 -0600 (Sat, 09 Jan 2010) $ |
2373 | +$Revision$, $Date$ |
2374 | |
2375 | DAHDI stands for Digium Asterisk Hardware Device Interface. This |
2376 | -package contains the userspace tools to configure the kernel modules |
2377 | +package contains the user-space tools to configure the kernel modules |
2378 | included in the package dahdi-linux. |
2379 | |
2380 | Build Requirements |
2381 | @@ -14,7 +14,7 @@ |
2382 | |
2383 | Build System |
2384 | ~~~~~~~~~~~~ |
2385 | -gcc and friends. Generally you will need to install the package gcc. |
2386 | +GCC and friends. Generally you will need to install the package gcc. |
2387 | There may be cases where you will need a specific version of gcc to build |
2388 | kernel modules. |
2389 | |
2390 | @@ -34,8 +34,6 @@ |
2391 | Note: If using `sudo` to build/install, you may need to add /sbin to your PATH. |
2392 | ---------------------------------- |
2393 | ./configure |
2394 | -# optional step: select custom configuration: |
2395 | -#make menuselect |
2396 | make |
2397 | make install |
2398 | # To install init scripts and config files: |
2399 | @@ -51,7 +49,7 @@ |
2400 | parts of DAHDI: |
2401 | |
2402 | . Build targets: |
2403 | - - make: Build DAHDI userspace programs. partial |
2404 | + - make: Build DAHDI user-space programs. partial |
2405 | targets of it: |
2406 | * make 'utilname': builds 'utilname' alone (e.g: `make dahdi_diag`) |
2407 | * make utils: Build libtonezone. |
2408 | @@ -66,7 +64,7 @@ |
2409 | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
2410 | The following may be useful when testing the package or when preparing a |
2411 | package for a binary distribution (such as an rpm package) installing |
2412 | -onto a subtree rather than on th real system. |
2413 | +onto a subtree rather than on the real system. |
2414 | |
2415 | make install DESTDIR=targetdir |
2416 | |
2417 | @@ -75,9 +73,9 @@ |
2418 | |
2419 | Options For ./configure |
2420 | ^^^^^^^^^^^^^^^^^^^^^^^ |
2421 | -The configure script various several tests and based on them generates |
2422 | -some files ( build_tools/menuselect-deps and makeopts). You can pass it |
2423 | ---with options and variable settings, for instance: |
2424 | +The configure script executes various tests and based on them generates |
2425 | +makeopts. You can pass it --with options and variable settings, for |
2426 | +instance: |
2427 | |
2428 | ./configure --without-ncurses CC="gcc-4.10" |
2429 | |
2430 | @@ -89,7 +87,7 @@ |
2431 | To re-run ./configure with the same parameters it was run with last |
2432 | time, use: |
2433 | |
2434 | - ./ocnfig.status --recheck |
2435 | + ./config.status --recheck |
2436 | |
2437 | |
2438 | Configuration |
2439 | @@ -106,7 +104,9 @@ |
2440 | A sample annotated system.conf is included in this directory and |
2441 | installed by default. Edit it to suit your configuration. Alternatively |
2442 | use the script dahdi_genconf to generate one that should work with your |
2443 | -system. |
2444 | +system. Note that while dahdi_genconf will generate a working configuration, |
2445 | +it will not automatically detect hardware echo cancellation modules. These |
2446 | +will have to be enabled manually in system.conf. |
2447 | |
2448 | /etc/dahdi/init.conf |
2449 | ~~~~~~~~~~~~~~~~~~~~ |
2450 | @@ -136,7 +136,7 @@ |
2451 | Tonezones |
2452 | ~~~~~~~~~ |
2453 | The file zonedata.c contains the information about the tone zones used |
2454 | -in libtonezone (and hence also in ztcfg). Here is a list of those zones: |
2455 | +in libtonezone (and hence also in dahdi_cfg). Here is a list of those zones: |
2456 | |
2457 | include::tonezones.txt[] |
2458 | |
2459 | @@ -144,14 +144,14 @@ |
2460 | DAHDI PERL modules |
2461 | ~~~~~~~~~~~~~~~~~~ |
2462 | The directory xpp has, in addition to helper utilities for the |
2463 | -Xorcom Astribank, a collection of perl modules to provide information |
2464 | -related to DAHDI. The perl modules themselves are under xpp/perl_modules/ . |
2465 | +Xorcom Astribank, a collection of PERL modules to provide information |
2466 | +related to DAHDI. The PERL modules themselves are under xpp/perl_modules/ . |
2467 | In xpp/ there are several utilities that use those modules: |
2468 | - xpp-specific: dahdi_registration, xpp_sync, xpp_blink . |
2469 | - General: lsdahdi, dahdi_genconf, dahdi_hardware, dahdi_drivers |
2470 | |
2471 | -The DAHDI perl modules will currently only be automatically installed if you |
2472 | -happen to install the xpp directory. Those utilities require the perl modules |
2473 | +The DAHDI PERL modules will currently only be automatically installed if you |
2474 | +happen to install the xpp directory. Those utilities require the PERL modules |
2475 | to be installed, however they will also look for them in the directory |
2476 | perl_modules, and thus can be run directly from the DAHDI source tree. For |
2477 | example: |
2478 | @@ -165,7 +165,7 @@ |
2479 | perldoc ./xpp/lsdahdi |
2480 | |
2481 | Some of them are specific for the Xorcom Astribank and described in its |
2482 | -docuemntation. the others are: |
2483 | +documentation. the others are: |
2484 | |
2485 | lsdahdi:: |
2486 | A somewhat glorified `cat /proc/dahdi/*`. |
2487 | @@ -174,9 +174,9 @@ |
2488 | /etc/dahdi/genconf_parameters (replaces genzaptelconf as well). |
2489 | dahdi_drivers:: |
2490 | A two-liner script (not installed by default) that simply returns the |
2491 | - modules that should be modprobed on this system. |
2492 | + modules that should be modprobe-d on this system. |
2493 | dahdi_hardware:: |
2494 | - Uses the information from sysfs and its own knowledge to show |
2495 | + Uses the information from SysFS and its own knowledge to show |
2496 | what PCI/USB DAHDI hardware is connected and if it is currently used |
2497 | by a driver. Shows also some more information for Astribanks from |
2498 | /proc/xpp . |
2499 | @@ -184,8 +184,8 @@ |
2500 | |
2501 | PPP Support |
2502 | ~~~~~~~~~~~ |
2503 | -DAHDI digital cards can provide data channels through ppp as |
2504 | -point-to-point connections. This requires a plugin to the ppp daemon |
2505 | +DAHDI digital cards can provide data channels through PPP as |
2506 | +point-to-point connections. This requires a plug-in to the PPP daemon |
2507 | that is included in the ppp/ subdirectory. To install it: |
2508 | |
2509 | 1. Make sure you have the PPP source / headers installed. On Debian: |
2510 | |
2511 | === modified file 'UPGRADE.txt' |
2512 | --- UPGRADE.txt 2009-06-01 08:23:38 +0000 |
2513 | +++ UPGRADE.txt 2013-08-25 04:54:26 +0000 |
2514 | @@ -62,10 +62,9 @@ |
2515 | canceler to be used on the system's channels can be configured using |
2516 | the dahdi_cfg tool from the dahdi-tools package. |
2517 | |
2518 | -IMPORTANT: It is *mandatory* to configure an echo canceler for the |
2519 | -system's channels using dahdi_cfg unless the interface cards in use |
2520 | -have echo canceler modules available and enabled. There is *no* |
2521 | -default software echo canceler with DAHDI. See |
2522 | +IMPORTANT: It is *mandatory* to configure an echo canceler for the system's |
2523 | +channels using dahdi_cfg. There is *no* default echo canceler with DAHDI, not |
2524 | +even hardware echo cancellation modules. See |
2525 | <<_echo_cancellers,section on echo cancellers>> in sample system.conf. |
2526 | |
2527 | |
2528 | |
2529 | === modified file 'blacklist.sample' |
2530 | --- blacklist.sample 2009-06-01 08:23:38 +0000 |
2531 | +++ blacklist.sample 2013-08-25 04:54:26 +0000 |
2532 | @@ -4,6 +4,7 @@ |
2533 | |
2534 | blacklist wct4xxp |
2535 | blacklist wcte12xp |
2536 | +blacklist wcte13xp |
2537 | blacklist wct1xxp |
2538 | blacklist wcte11xp |
2539 | blacklist wctdm24xxp |
2540 | @@ -11,3 +12,10 @@ |
2541 | blacklist wctdm |
2542 | blacklist wctc4xxp |
2543 | blacklist wcb4xxp |
2544 | + |
2545 | +# Some mISDN drivers may try to attach to cards supported by DAHDI. If you |
2546 | +# have a card which is *not* supported by DAHDI but supported by one of the |
2547 | +# below drivers you should feel free to remove it from the blacklist below. |
2548 | +blacklist hfcmulti |
2549 | +blacklist netjet |
2550 | +blacklist hfcpci |
2551 | |
2552 | === modified file 'build_tools/dahdi_svn_tarball' |
2553 | --- build_tools/dahdi_svn_tarball 2009-06-01 08:23:38 +0000 |
2554 | +++ build_tools/dahdi_svn_tarball 2013-08-25 04:54:26 +0000 |
2555 | @@ -18,7 +18,7 @@ |
2556 | |
2557 | usage() { |
2558 | echo >&2 "$0: Generate snapshot from DAHDI SVN" |
2559 | - echo >&2 ' ($Id: dahdi_svn_tarball 4356 2008-05-23 16:39:27Z mattf $)' |
2560 | + echo >&2 ' ($Id$)' |
2561 | echo >&2 "" |
2562 | echo >&2 "$0 [-r REV] [-2] [-s]" |
2563 | echo >&2 "$0 <-h | --help>: This message" |
2564 | |
2565 | === added file 'build_tools/dahdi_sysfs_copy' |
2566 | --- build_tools/dahdi_sysfs_copy 1970-01-01 00:00:00 +0000 |
2567 | +++ build_tools/dahdi_sysfs_copy 2013-08-25 04:54:26 +0000 |
2568 | @@ -0,0 +1,142 @@ |
2569 | +#! /usr/bin/perl |
2570 | +# |
2571 | +# Written by Oron Peled <oron@actcom.co.il> |
2572 | +# Copyright (C) 2012, Xorcom |
2573 | +# This program is free software; you can redistribute and/or |
2574 | +# modify it under the same terms as Perl itself. |
2575 | +# |
2576 | +#dahdi_sysfs_copy: Short perl script to copy dahdi related sysfs trees |
2577 | +# into a designated directory. |
2578 | +# |
2579 | +# $Id: $ |
2580 | +# |
2581 | +use strict; |
2582 | +use warnings; |
2583 | + |
2584 | +use File::Path qw(mkpath); |
2585 | +use File::Copy; |
2586 | +use Cwd qw(realpath); |
2587 | + |
2588 | +my $destdir = shift || die "Usage: $0 <destdir>\n"; |
2589 | + |
2590 | +my %symlinks; |
2591 | +my %walk_ups; |
2592 | +my %inode_cash; |
2593 | + |
2594 | +# Starting points for recursion |
2595 | +my @toplevels = qw( |
2596 | + /sys/bus/dahdi_devices |
2597 | + /sys/bus/astribanks |
2598 | + /sys/class/dahdi |
2599 | + ); |
2600 | + |
2601 | +# Loop prevention (by inode number lookup) |
2602 | +sub seen { |
2603 | + my $ino = shift || die; |
2604 | + my $path = shift || die; |
2605 | + if(defined $inode_cash{$ino}) { |
2606 | + #print STDERR "DEBUG($ino): $path\n"; |
2607 | + return 1; |
2608 | + } |
2609 | + $inode_cash{$ino}++; |
2610 | + return 0; |
2611 | +} |
2612 | + |
2613 | +# Walk up a path and copy readable attributes from any |
2614 | +# directory level. |
2615 | +sub walk_up { |
2616 | + my $path = shift || die; |
2617 | + my $curr = $path; |
2618 | + # Walk up |
2619 | + for (my $curr = $path; $curr; $curr =~ s'/?[^/]+$'') { |
2620 | + my ($dev, $ino, $mode, $nlink, $uid, $gid) = lstat($curr); |
2621 | + next if seen($ino, $curr); # Skip visited directories |
2622 | + # Scan directory |
2623 | + opendir(my $d, $curr) || die "Failed opendir($curr): $!\n"; |
2624 | + my @entries = readdir $d; |
2625 | + foreach my $entry (@entries) { |
2626 | + next if $entry =~ /^[.][.]?$/; |
2627 | + my $file = "$curr/$entry"; |
2628 | + my ($dev, $ino, $mode, $nlink, $uid, $gid) = lstat($file); |
2629 | + # Copy file |
2630 | + if (-f _ && ($mode & 0004)) { # The '-r _' is buggy |
2631 | + copy($file, "$destdir$file") || |
2632 | + die "Failed to copy '$file': $!\n"; |
2633 | + } |
2634 | + } |
2635 | + closedir $d; |
2636 | + } |
2637 | +} |
2638 | + |
2639 | +# Handle a given path (directory,symlink,regular-file) |
2640 | +sub handle_path { |
2641 | + my $path = shift || die; |
2642 | + my ($dev, $ino, $mode, $nlink, $uid, $gid) = lstat($path); |
2643 | + # Save attributes before recursion starts |
2644 | + my $isdir = -d _; |
2645 | + my $islink = -l _; |
2646 | + my $isreadable = $mode & 00004; # The '-r _' was buggy |
2647 | + return if seen($ino, $path); # Loop prevention |
2648 | + my $dest = "$destdir/$path"; |
2649 | + if ($isdir) { |
2650 | + mkpath("$dest"); |
2651 | + scan_directory($path); |
2652 | + } elsif ($islink) { |
2653 | + # We follow links (the seen() protect us from loops) |
2654 | + my $target = readlink($path) || |
2655 | + die "Failed readlink($path): $!\n"; |
2656 | + my $follow = $target; |
2657 | + if ($target !~ m{^/}) { # fix relative symlinks |
2658 | + my $dir = $path; |
2659 | + $dir =~ s,/[^/]*$,,; |
2660 | + $follow = realpath("$dir/$target"); |
2661 | + } |
2662 | + # Save symlink details, so we create them after all |
2663 | + # destination tree (subdirectories, files) is ready |
2664 | + die "Duplicate entry '$dest'\n" if exists $symlinks{$dest}; |
2665 | + $symlinks{$dest} = "$target"; |
2666 | + # Now follow symlink |
2667 | + handle_path($follow); |
2668 | + $walk_ups{$follow}++; |
2669 | + } elsif ($isreadable) { |
2670 | + copy($path, "$dest") || |
2671 | + die "Failed to copy '$path': $!\n"; |
2672 | + } |
2673 | +} |
2674 | + |
2675 | +# Scan a given directory (calling handle_path for recursion) |
2676 | +sub scan_directory { |
2677 | + my $dir = shift || die; |
2678 | + my $entry; |
2679 | + opendir(my $d, $dir) || die "Failed opendir($dir): $!\n"; |
2680 | + my @dirs = readdir $d; |
2681 | + foreach my $entry (@dirs) { |
2682 | + next if $entry =~ /^[.][.]?$/; |
2683 | + handle_path("$dir/$entry"); |
2684 | + } |
2685 | + closedir $d; |
2686 | +} |
2687 | + |
2688 | +# Filter out non-existing toplevels |
2689 | +my @scan = grep { lstat($_) } @toplevels; |
2690 | + |
2691 | +# Recurse all trees, creating subdirectories and copying files |
2692 | +foreach my $path (@scan) { |
2693 | + handle_path($path); |
2694 | +} |
2695 | + |
2696 | +# Now, that all sub-directories were created, we can |
2697 | +# create the wanted symlinks |
2698 | +for my $dest (keys %symlinks) { |
2699 | + my $link = $symlinks{$dest}; |
2700 | + die "Missing link for '$dest'\n" unless defined $link; |
2701 | + unlink $dest if -l $dest; |
2702 | + symlink($link,$dest) || |
2703 | + die "Failed symlink($link,$dest): $!\n"; |
2704 | +} |
2705 | + |
2706 | +# Walk up directories that were symlink destinations |
2707 | +# and fill their attributes |
2708 | +foreach my $dir (keys %walk_ups) { |
2709 | + walk_up($dir); |
2710 | +} |
2711 | |
2712 | === modified file 'build_tools/dump_sys_state' |
2713 | --- build_tools/dump_sys_state 2011-03-13 23:45:36 +0000 |
2714 | +++ build_tools/dump_sys_state 2013-08-25 04:54:26 +0000 |
2715 | @@ -1,7 +1,7 @@ |
2716 | #!/bin/sh |
2717 | |
2718 | # dump_sys_state: dump some /sys and /proc files to a directory. |
2719 | -# $Id: dump_sys_state 8211 2010-03-02 14:55:22Z tzafrir $ |
2720 | +# $Id$ |
2721 | # |
2722 | # Written by Tzafrir Cohen <tzafrir.cohen@xorcom.com> |
2723 | # Copyright (C) 2009, Xorcom |
2724 | @@ -31,117 +31,46 @@ |
2725 | # # And then later: |
2726 | # DAHDI_VIRT_TOP="$PWD/my_sys_state" dahdi_genconf |
2727 | |
2728 | -name=dahdi_sys_state_dump |
2729 | - |
2730 | -usage() { |
2731 | - echo "$0: dump system data for Dahdi-Perl" |
2732 | - echo "Usage: $0 [<name>]]" |
2733 | - echo "" |
2734 | - echo "<name>: name of directory/tarball to create. Default: $name" |
2735 | -} |
2736 | - |
2737 | -output_tar() { |
2738 | - gzip -9 >$name.tar.gz |
2739 | -} |
2740 | - |
2741 | -output_cpio() { |
2742 | - gzip -9 >$name.cpio.gz |
2743 | -} |
2744 | - |
2745 | -output_dir() { |
2746 | - rm -rf $name |
2747 | - mkdir -p $name |
2748 | - cd $name |
2749 | - #tar xf - |
2750 | - cpio -id |
2751 | -} |
2752 | +mydir=`dirname $0` |
2753 | +dahdi_sysfs_copy="$mydir/dahdi_sysfs_copy" |
2754 | |
2755 | # Give usage message on expected texts |
2756 | -case $1 in |
2757 | - help | -* ) usage; exit 1;; |
2758 | -esac |
2759 | - |
2760 | -if [ "$1" != '' ]; then |
2761 | - name="$1" |
2762 | -fi |
2763 | - |
2764 | -# funky permissions on procfs. Sadly rm -f does not kill them. |
2765 | -if [ -d "$name" ]; then |
2766 | - chmod -R u+w "$name" |
2767 | -fi |
2768 | -rm -rf "$name" |
2769 | -mkdir -p "$name" |
2770 | - |
2771 | -# delete a (potentially empty) list of files |
2772 | -rm_files() { |
2773 | - xargs rm -f rm_files_non_existing_file |
2774 | -} |
2775 | + |
2776 | +if [ "$#" -ne 0 ]; then |
2777 | + echo >&2 "Usage: $0" |
2778 | + exit 1 |
2779 | +fi |
2780 | + |
2781 | +id="sys_dump.`hostname`_`date +%F_%H.%M.%S`" |
2782 | +tarball="$id.tar.gz" |
2783 | + |
2784 | +tmpdir=`mktemp -td 'dahdi_dump.XXXXXX'` |
2785 | +echo -n >&2 "Creating ... " |
2786 | +trap "[ -d '$tmpdir' ] && rm -rf '$tmpdir'" 0 1 2 15 |
2787 | + |
2788 | +topdir="$tmpdir/$id" |
2789 | |
2790 | if [ -r /proc/bus/usb/devices ]; then |
2791 | - mkdir -p "$name/proc/bus/usb" |
2792 | - cp -a /proc/bus/usb/devices "$name/proc/bus/usb/" |
2793 | + mkdir -p "$topdir/proc/bus/usb" |
2794 | + cp -a /proc/bus/usb/devices "$topdir/proc/bus/usb/" |
2795 | fi |
2796 | |
2797 | if [ -d /proc/dahdi ]; then |
2798 | - mkdir -p "$name/proc/dahdi" |
2799 | + mkdir -p "$topdir/proc/dahdi" |
2800 | if find /proc/dahdi -type f >/dev/null; then |
2801 | - cp -a /proc/dahdi/* "$name/proc/dahdi/" |
2802 | + cp -a /proc/dahdi/* "$topdir/proc/dahdi/" |
2803 | fi |
2804 | fi |
2805 | |
2806 | if [ -d /proc/xpp ]; then |
2807 | - mkdir -p "$name/proc/xpp" |
2808 | + mkdir -p "$topdir/proc/xpp" |
2809 | if find /proc/xpp -type f >/dev/null; then |
2810 | - cp -a /proc/xpp/* "$name/proc/xpp/" |
2811 | - find "$name/proc/xpp" -type f -name command | rm_files |
2812 | + cp -a /proc/xpp/* "$topdir/proc/xpp/" |
2813 | + find "$topdir/proc/xpp" -type f -name command -exec rm -f '{}' ';' |
2814 | fi |
2815 | fi |
2816 | |
2817 | -# FIXME: the following grab tons of files from sysfs. Any way to do with |
2818 | -# less information? |
2819 | -pci_dev_pat='/sys/devices/pci*' |
2820 | -mkdir -p "$name/sys/devices" |
2821 | -cp -a $pci_dev_pat "$name/sys/devices/" 2>/dev/null |
2822 | - |
2823 | -for bus in astribanks xpds pci pci_express usb; do |
2824 | - if [ -d /sys/bus/$bus ]; then |
2825 | - mkdir -p "$name/sys/bus/" |
2826 | - cp -a /sys/bus/$bus "$name/sys/bus/" 2>/dev/null |
2827 | - fi |
2828 | -done |
2829 | - |
2830 | -# Remove PCI devices of irelevan classes: |
2831 | -irrelevant_devs() { |
2832 | - grep . "$name"/$pci_dev_pat/0*/class "$name"/$pci_dev_pat/0*/0*/class \ |
2833 | - | perl -n -e '# Perl provides commented regexes: |
2834 | - next unless m{/class:( # The following is a list of device classes |
2835 | - # that can be safely removed: |
2836 | - 0x060000 | # Host bridge |
2837 | - 0x030000 | # VGA compatible controller |
2838 | - 0x038000 | # Display controller |
2839 | - 0x040300 | # Audio device |
2840 | - 0x060401 | # PCI bridge |
2841 | - 0x060100 | # ISA bridge |
2842 | - 0x01018a | # IDE interface |
2843 | - 0x01018f | # IDE interface |
2844 | - 0x0c0500 | # SMBus |
2845 | - 0x060700 | # CardBus bridge |
2846 | - 0x0c0010 | # FireWire (IEEE 1394) |
2847 | - # The following are not to be removed: |
2848 | - #0x0c0300 | # USB Controller (UHCI?) |
2849 | - #0x060400 | # PCI bridge |
2850 | - #0x0c0320 | # USB Controller (EHCI?) |
2851 | - #0x020000 | # Ethernet controller |
2852 | - #0x0c0010 | # Network controller: (Wifi?) |
2853 | - )$}x; |
2854 | - # Leave out just the name of the node: |
2855 | - s{/[^/]*$}{}; |
2856 | - print; |
2857 | - print "\n" |
2858 | - ' |
2859 | -} |
2860 | - |
2861 | -# FIXME: deleting those seems to remove common 'vendor' directories |
2862 | -# and mess things up. Skip it for now. |
2863 | -#rm -rf `irrelevant_devs` |
2864 | - |
2865 | +"$dahdi_sysfs_copy" "$topdir" |
2866 | +echo -n >&2 "tarball ... " |
2867 | +( cd "$tmpdir" && tar czf - . ) > "$tarball"; |
2868 | +echo >&2 "ready in '$tarball'" |
2869 | |
2870 | === modified file 'build_tools/make_tree' |
2871 | --- build_tools/make_tree 2009-06-01 08:23:38 +0000 |
2872 | +++ build_tools/make_tree 2013-08-25 04:54:26 +0000 |
2873 | @@ -1,7 +0,0 @@ |
2874 | -#!/bin/sh |
2875 | - |
2876 | -echo "<?xml version=\"1.0\"?>" |
2877 | -echo |
2878 | -echo "<menu name=\"DAHDI Tools Selection\">" |
2879 | -cat dahdi.xml |
2880 | -echo "</menu>" |
2881 | |
2882 | === modified file 'build_tools/menuselect-deps.in' |
2883 | --- build_tools/menuselect-deps.in 2009-06-01 08:23:38 +0000 |
2884 | +++ build_tools/menuselect-deps.in 2013-08-25 04:54:26 +0000 |
2885 | @@ -1,2 +0,0 @@ |
2886 | -LIBNEWT=@PBX_NEWT@ |
2887 | -HDLC=@PBX_HDLC@ |
2888 | |
2889 | === modified file 'configure' |
2890 | --- configure 2011-03-13 23:45:36 +0000 |
2891 | +++ configure 2013-08-25 04:54:26 +0000 |
2892 | @@ -1,12 +1,10 @@ |
2893 | #! /bin/sh |
2894 | -# From configure.ac Revision: 8266 . |
2895 | +# From configure.ac Revision. |
2896 | # Guess values for system-dependent variables and create Makefiles. |
2897 | -# Generated by GNU Autoconf 2.67. |
2898 | -# |
2899 | -# |
2900 | -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
2901 | -# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
2902 | -# Foundation, Inc. |
2903 | +# Generated by GNU Autoconf 2.69. |
2904 | +# |
2905 | +# |
2906 | +# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
2907 | # |
2908 | # |
2909 | # This configure script is free software; the Free Software Foundation |
2910 | @@ -92,6 +90,7 @@ |
2911 | IFS=" "" $as_nl" |
2912 | |
2913 | # Find who we are. Look in the path if we contain no directory separator. |
2914 | +as_myself= |
2915 | case $0 in #(( |
2916 | *[\\/]* ) as_myself=$0 ;; |
2917 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2918 | @@ -136,6 +135,31 @@ |
2919 | # CDPATH. |
2920 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
2921 | |
2922 | +# Use a proper internal environment variable to ensure we don't fall |
2923 | + # into an infinite loop, continuously re-executing ourselves. |
2924 | + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
2925 | + _as_can_reexec=no; export _as_can_reexec; |
2926 | + # We cannot yet assume a decent shell, so we have to provide a |
2927 | +# neutralization value for shells without unset; and this also |
2928 | +# works around shells that cannot unset nonexistent variables. |
2929 | +# Preserve -v and -x to the replacement shell. |
2930 | +BASH_ENV=/dev/null |
2931 | +ENV=/dev/null |
2932 | +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
2933 | +case $- in # (((( |
2934 | + *v*x* | *x*v* ) as_opts=-vx ;; |
2935 | + *v* ) as_opts=-v ;; |
2936 | + *x* ) as_opts=-x ;; |
2937 | + * ) as_opts= ;; |
2938 | +esac |
2939 | +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
2940 | +# Admittedly, this is quite paranoid, since all the known shells bail |
2941 | +# out after a failed `exec'. |
2942 | +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
2943 | +as_fn_exit 255 |
2944 | + fi |
2945 | + # We don't want this to propagate to other subprocesses. |
2946 | + { _as_can_reexec=; unset _as_can_reexec;} |
2947 | if test "x$CONFIG_SHELL" = x; then |
2948 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
2949 | emulate sh |
2950 | @@ -169,7 +193,8 @@ |
2951 | else |
2952 | exitcode=1; echo positional parameters were not saved. |
2953 | fi |
2954 | -test x\$exitcode = x0 || exit 1" |
2955 | +test x\$exitcode = x0 || exit 1 |
2956 | +test -x / || exit 1" |
2957 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
2958 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
2959 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
2960 | @@ -214,14 +239,25 @@ |
2961 | |
2962 | |
2963 | if test "x$CONFIG_SHELL" != x; then : |
2964 | - # We cannot yet assume a decent shell, so we have to provide a |
2965 | - # neutralization value for shells without unset; and this also |
2966 | - # works around shells that cannot unset nonexistent variables. |
2967 | - BASH_ENV=/dev/null |
2968 | - ENV=/dev/null |
2969 | - (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
2970 | - export CONFIG_SHELL |
2971 | - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
2972 | + export CONFIG_SHELL |
2973 | + # We cannot yet assume a decent shell, so we have to provide a |
2974 | +# neutralization value for shells without unset; and this also |
2975 | +# works around shells that cannot unset nonexistent variables. |
2976 | +# Preserve -v and -x to the replacement shell. |
2977 | +BASH_ENV=/dev/null |
2978 | +ENV=/dev/null |
2979 | +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
2980 | +case $- in # (((( |
2981 | + *v*x* | *x*v* ) as_opts=-vx ;; |
2982 | + *v* ) as_opts=-v ;; |
2983 | + *x* ) as_opts=-x ;; |
2984 | + * ) as_opts= ;; |
2985 | +esac |
2986 | +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
2987 | +# Admittedly, this is quite paranoid, since all the known shells bail |
2988 | +# out after a failed `exec'. |
2989 | +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
2990 | +exit 255 |
2991 | fi |
2992 | |
2993 | if test x$as_have_required = xno; then : |
2994 | @@ -323,6 +359,14 @@ |
2995 | |
2996 | |
2997 | } # as_fn_mkdir_p |
2998 | + |
2999 | +# as_fn_executable_p FILE |
3000 | +# ----------------------- |
3001 | +# Test if FILE is an executable regular file. |
3002 | +as_fn_executable_p () |
3003 | +{ |
3004 | + test -f "$1" && test -x "$1" |
3005 | +} # as_fn_executable_p |
3006 | # as_fn_append VAR VALUE |
3007 | # ---------------------- |
3008 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
3009 | @@ -444,6 +488,10 @@ |
3010 | chmod +x "$as_me.lineno" || |
3011 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
3012 | |
3013 | + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
3014 | + # already done that, so ensure we don't try to do so again and fall |
3015 | + # in an infinite loop. This has already happened in practice. |
3016 | + _as_can_reexec=no; export _as_can_reexec |
3017 | # Don't try to exec as it changes $[0], causing all sort of problems |
3018 | # (the dirname of $[0] is not the place where we might find the |
3019 | # original and so on. Autoconf is especially sensitive to this). |
3020 | @@ -478,16 +526,16 @@ |
3021 | # ... but there are two gotchas: |
3022 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
3023 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
3024 | - # In both cases, we have to default to `cp -p'. |
3025 | + # In both cases, we have to default to `cp -pR'. |
3026 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
3027 | - as_ln_s='cp -p' |
3028 | + as_ln_s='cp -pR' |
3029 | elif ln conf$$.file conf$$ 2>/dev/null; then |
3030 | as_ln_s=ln |
3031 | else |
3032 | - as_ln_s='cp -p' |
3033 | + as_ln_s='cp -pR' |
3034 | fi |
3035 | else |
3036 | - as_ln_s='cp -p' |
3037 | + as_ln_s='cp -pR' |
3038 | fi |
3039 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
3040 | rmdir conf$$.dir 2>/dev/null |
3041 | @@ -499,28 +547,8 @@ |
3042 | as_mkdir_p=false |
3043 | fi |
3044 | |
3045 | -if test -x / >/dev/null 2>&1; then |
3046 | - as_test_x='test -x' |
3047 | -else |
3048 | - if ls -dL / >/dev/null 2>&1; then |
3049 | - as_ls_L_option=L |
3050 | - else |
3051 | - as_ls_L_option= |
3052 | - fi |
3053 | - as_test_x=' |
3054 | - eval sh -c '\'' |
3055 | - if test -d "$1"; then |
3056 | - test -d "$1/."; |
3057 | - else |
3058 | - case $1 in #( |
3059 | - -*)set "./$1";; |
3060 | - esac; |
3061 | - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
3062 | - ???[sx]*):;;*)false;;esac;fi |
3063 | - '\'' sh |
3064 | - ' |
3065 | -fi |
3066 | -as_executable_p=$as_test_x |
3067 | +as_test_x='test -x' |
3068 | +as_executable_p=as_fn_executable_p |
3069 | |
3070 | # Sed expression to map a string onto a valid CPP name. |
3071 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
3072 | @@ -615,6 +643,7 @@ |
3073 | DAHDI_INCLUDE |
3074 | DAHDI_LIB |
3075 | DAHDI_DECLARATION_AFTER_STATEMENT |
3076 | +DAHDI_PINNED |
3077 | DAHDI_DEVMODE |
3078 | DOWNLOAD |
3079 | FETCH |
3080 | @@ -681,6 +710,7 @@ |
3081 | ac_user_opts=' |
3082 | enable_option_checking |
3083 | enable_dev_mode |
3084 | +enable_pinned |
3085 | with_dahdi |
3086 | with_newt |
3087 | with_usb |
3088 | @@ -1100,7 +1130,7 @@ |
3089 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
3090 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
3091 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
3092 | - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
3093 | + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
3094 | ;; |
3095 | |
3096 | esac |
3097 | @@ -1151,8 +1181,6 @@ |
3098 | if test "x$host_alias" != x; then |
3099 | if test "x$build_alias" = x; then |
3100 | cross_compiling=maybe |
3101 | - $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
3102 | - If a cross compiler is detected then cross compile mode will be used" >&2 |
3103 | elif test "x$build_alias" != "x$host_alias"; then |
3104 | cross_compiling=yes |
3105 | fi |
3106 | @@ -1306,6 +1334,7 @@ |
3107 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
3108 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
3109 | --enable-dev-mode Turn on developer mode |
3110 | + --enable-pinned Install pinned-spans support |
3111 | |
3112 | Optional Packages: |
3113 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
3114 | @@ -1393,9 +1422,9 @@ |
3115 | if $ac_init_version; then |
3116 | cat <<\_ACEOF |
3117 | configure |
3118 | -generated by GNU Autoconf 2.67 |
3119 | +generated by GNU Autoconf 2.69 |
3120 | |
3121 | -Copyright (C) 2010 Free Software Foundation, Inc. |
3122 | +Copyright (C) 2012 Free Software Foundation, Inc. |
3123 | This configure script is free software; the Free Software Foundation |
3124 | gives unlimited permission to copy, distribute and modify it. |
3125 | |
3126 | @@ -1441,7 +1470,7 @@ |
3127 | |
3128 | ac_retval=1 |
3129 | fi |
3130 | - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
3131 | + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
3132 | as_fn_set_status $ac_retval |
3133 | |
3134 | } # ac_fn_c_try_compile |
3135 | @@ -1478,7 +1507,7 @@ |
3136 | |
3137 | ac_retval=1 |
3138 | fi |
3139 | - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
3140 | + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
3141 | as_fn_set_status $ac_retval |
3142 | |
3143 | } # ac_fn_c_try_cpp |
3144 | @@ -1491,10 +1520,10 @@ |
3145 | ac_fn_c_check_header_mongrel () |
3146 | { |
3147 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
3148 | - if eval "test \"\${$3+set}\"" = set; then : |
3149 | + if eval \${$3+:} false; then : |
3150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
3151 | $as_echo_n "checking for $2... " >&6; } |
3152 | -if eval "test \"\${$3+set}\"" = set; then : |
3153 | +if eval \${$3+:} false; then : |
3154 | $as_echo_n "(cached) " >&6 |
3155 | fi |
3156 | eval ac_res=\$$3 |
3157 | @@ -1557,7 +1586,7 @@ |
3158 | esac |
3159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
3160 | $as_echo_n "checking for $2... " >&6; } |
3161 | -if eval "test \"\${$3+set}\"" = set; then : |
3162 | +if eval \${$3+:} false; then : |
3163 | $as_echo_n "(cached) " >&6 |
3164 | else |
3165 | eval "$3=\$ac_header_compiler" |
3166 | @@ -1566,7 +1595,7 @@ |
3167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
3168 | $as_echo "$ac_res" >&6; } |
3169 | fi |
3170 | - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
3171 | + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
3172 | |
3173 | } # ac_fn_c_check_header_mongrel |
3174 | |
3175 | @@ -1607,7 +1636,7 @@ |
3176 | ac_retval=$ac_status |
3177 | fi |
3178 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
3179 | - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
3180 | + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
3181 | as_fn_set_status $ac_retval |
3182 | |
3183 | } # ac_fn_c_try_run |
3184 | @@ -1621,7 +1650,7 @@ |
3185 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
3186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
3187 | $as_echo_n "checking for $2... " >&6; } |
3188 | -if eval "test \"\${$3+set}\"" = set; then : |
3189 | +if eval \${$3+:} false; then : |
3190 | $as_echo_n "(cached) " >&6 |
3191 | else |
3192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3193 | @@ -1639,7 +1668,7 @@ |
3194 | eval ac_res=\$$3 |
3195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
3196 | $as_echo "$ac_res" >&6; } |
3197 | - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
3198 | + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
3199 | |
3200 | } # ac_fn_c_check_header_compile |
3201 | |
3202 | @@ -1670,7 +1699,7 @@ |
3203 | test ! -s conftest.err |
3204 | } && test -s conftest$ac_exeext && { |
3205 | test "$cross_compiling" = yes || |
3206 | - $as_test_x conftest$ac_exeext |
3207 | + test -x conftest$ac_exeext |
3208 | }; then : |
3209 | ac_retval=0 |
3210 | else |
3211 | @@ -1684,7 +1713,7 @@ |
3212 | # interfere with the next link command; also delete a directory that is |
3213 | # left behind by Apple's compiler. We do this before executing the actions. |
3214 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
3215 | - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
3216 | + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
3217 | as_fn_set_status $ac_retval |
3218 | |
3219 | } # ac_fn_c_try_link |
3220 | @@ -1697,7 +1726,7 @@ |
3221 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
3222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
3223 | $as_echo_n "checking for $2... " >&6; } |
3224 | -if eval "test \"\${$3+set}\"" = set; then : |
3225 | +if eval \${$3+:} false; then : |
3226 | $as_echo_n "(cached) " >&6 |
3227 | else |
3228 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3229 | @@ -1752,7 +1781,7 @@ |
3230 | eval ac_res=\$$3 |
3231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
3232 | $as_echo "$ac_res" >&6; } |
3233 | - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
3234 | + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
3235 | |
3236 | } # ac_fn_c_check_func |
3237 | cat >config.log <<_ACEOF |
3238 | @@ -1760,7 +1789,7 @@ |
3239 | running configure, to aid debugging if configure makes a mistake. |
3240 | |
3241 | It was created by $as_me, which was |
3242 | -generated by GNU Autoconf 2.67. Invocation command line was |
3243 | +generated by GNU Autoconf 2.69. Invocation command line was |
3244 | |
3245 | $ $0 $@ |
3246 | |
3247 | @@ -2018,7 +2047,7 @@ |
3248 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3249 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3250 | as_fn_error $? "failed to load site script $ac_site_file |
3251 | -See \`config.log' for more details" "$LINENO" 5 ; } |
3252 | +See \`config.log' for more details" "$LINENO" 5; } |
3253 | fi |
3254 | done |
3255 | |
3256 | @@ -2141,7 +2170,7 @@ |
3257 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
3258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3259 | $as_echo_n "checking for $ac_word... " >&6; } |
3260 | -if test "${ac_cv_prog_CC+set}" = set; then : |
3261 | +if ${ac_cv_prog_CC+:} false; then : |
3262 | $as_echo_n "(cached) " >&6 |
3263 | else |
3264 | if test -n "$CC"; then |
3265 | @@ -2153,7 +2182,7 @@ |
3266 | IFS=$as_save_IFS |
3267 | test -z "$as_dir" && as_dir=. |
3268 | for ac_exec_ext in '' $ac_executable_extensions; do |
3269 | - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3270 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3271 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3272 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3273 | break 2 |
3274 | @@ -2181,7 +2210,7 @@ |
3275 | set dummy gcc; ac_word=$2 |
3276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3277 | $as_echo_n "checking for $ac_word... " >&6; } |
3278 | -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
3279 | +if ${ac_cv_prog_ac_ct_CC+:} false; then : |
3280 | $as_echo_n "(cached) " >&6 |
3281 | else |
3282 | if test -n "$ac_ct_CC"; then |
3283 | @@ -2193,7 +2222,7 @@ |
3284 | IFS=$as_save_IFS |
3285 | test -z "$as_dir" && as_dir=. |
3286 | for ac_exec_ext in '' $ac_executable_extensions; do |
3287 | - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3288 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3289 | ac_cv_prog_ac_ct_CC="gcc" |
3290 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3291 | break 2 |
3292 | @@ -2234,7 +2263,7 @@ |
3293 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
3294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3295 | $as_echo_n "checking for $ac_word... " >&6; } |
3296 | -if test "${ac_cv_prog_CC+set}" = set; then : |
3297 | +if ${ac_cv_prog_CC+:} false; then : |
3298 | $as_echo_n "(cached) " >&6 |
3299 | else |
3300 | if test -n "$CC"; then |
3301 | @@ -2246,7 +2275,7 @@ |
3302 | IFS=$as_save_IFS |
3303 | test -z "$as_dir" && as_dir=. |
3304 | for ac_exec_ext in '' $ac_executable_extensions; do |
3305 | - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3306 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3307 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
3308 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3309 | break 2 |
3310 | @@ -2274,7 +2303,7 @@ |
3311 | set dummy cc; ac_word=$2 |
3312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3313 | $as_echo_n "checking for $ac_word... " >&6; } |
3314 | -if test "${ac_cv_prog_CC+set}" = set; then : |
3315 | +if ${ac_cv_prog_CC+:} false; then : |
3316 | $as_echo_n "(cached) " >&6 |
3317 | else |
3318 | if test -n "$CC"; then |
3319 | @@ -2287,7 +2316,7 @@ |
3320 | IFS=$as_save_IFS |
3321 | test -z "$as_dir" && as_dir=. |
3322 | for ac_exec_ext in '' $ac_executable_extensions; do |
3323 | - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3324 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3325 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3326 | ac_prog_rejected=yes |
3327 | continue |
3328 | @@ -2333,7 +2362,7 @@ |
3329 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3331 | $as_echo_n "checking for $ac_word... " >&6; } |
3332 | -if test "${ac_cv_prog_CC+set}" = set; then : |
3333 | +if ${ac_cv_prog_CC+:} false; then : |
3334 | $as_echo_n "(cached) " >&6 |
3335 | else |
3336 | if test -n "$CC"; then |
3337 | @@ -2345,7 +2374,7 @@ |
3338 | IFS=$as_save_IFS |
3339 | test -z "$as_dir" && as_dir=. |
3340 | for ac_exec_ext in '' $ac_executable_extensions; do |
3341 | - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3342 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3343 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3344 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3345 | break 2 |
3346 | @@ -2377,7 +2406,7 @@ |
3347 | set dummy $ac_prog; ac_word=$2 |
3348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3349 | $as_echo_n "checking for $ac_word... " >&6; } |
3350 | -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
3351 | +if ${ac_cv_prog_ac_ct_CC+:} false; then : |
3352 | $as_echo_n "(cached) " >&6 |
3353 | else |
3354 | if test -n "$ac_ct_CC"; then |
3355 | @@ -2389,7 +2418,7 @@ |
3356 | IFS=$as_save_IFS |
3357 | test -z "$as_dir" && as_dir=. |
3358 | for ac_exec_ext in '' $ac_executable_extensions; do |
3359 | - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3360 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3361 | ac_cv_prog_ac_ct_CC="$ac_prog" |
3362 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3363 | break 2 |
3364 | @@ -2432,7 +2461,7 @@ |
3365 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3366 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3367 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3368 | -See \`config.log' for more details" "$LINENO" 5 ; } |
3369 | +See \`config.log' for more details" "$LINENO" 5; } |
3370 | |
3371 | # Provide some information about the compiler. |
3372 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3373 | @@ -2547,7 +2576,7 @@ |
3374 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3375 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3376 | as_fn_error 77 "C compiler cannot create executables |
3377 | -See \`config.log' for more details" "$LINENO" 5 ; } |
3378 | +See \`config.log' for more details" "$LINENO" 5; } |
3379 | else |
3380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3381 | $as_echo "yes" >&6; } |
3382 | @@ -2590,7 +2619,7 @@ |
3383 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3384 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3385 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3386 | -See \`config.log' for more details" "$LINENO" 5 ; } |
3387 | +See \`config.log' for more details" "$LINENO" 5; } |
3388 | fi |
3389 | rm -f conftest conftest$ac_cv_exeext |
3390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3391 | @@ -2649,7 +2678,7 @@ |
3392 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3393 | as_fn_error $? "cannot run C compiled programs. |
3394 | If you meant to cross compile, use \`--host'. |
3395 | -See \`config.log' for more details" "$LINENO" 5 ; } |
3396 | +See \`config.log' for more details" "$LINENO" 5; } |
3397 | fi |
3398 | fi |
3399 | fi |
3400 | @@ -2660,7 +2689,7 @@ |
3401 | ac_clean_files=$ac_clean_files_save |
3402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3403 | $as_echo_n "checking for suffix of object files... " >&6; } |
3404 | -if test "${ac_cv_objext+set}" = set; then : |
3405 | +if ${ac_cv_objext+:} false; then : |
3406 | $as_echo_n "(cached) " >&6 |
3407 | else |
3408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3409 | @@ -2701,7 +2730,7 @@ |
3410 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3411 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3412 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3413 | -See \`config.log' for more details" "$LINENO" 5 ; } |
3414 | +See \`config.log' for more details" "$LINENO" 5; } |
3415 | fi |
3416 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3417 | fi |
3418 | @@ -2711,7 +2740,7 @@ |
3419 | ac_objext=$OBJEXT |
3420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3421 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
3422 | -if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
3423 | +if ${ac_cv_c_compiler_gnu+:} false; then : |
3424 | $as_echo_n "(cached) " >&6 |
3425 | else |
3426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3427 | @@ -2748,7 +2777,7 @@ |
3428 | ac_save_CFLAGS=$CFLAGS |
3429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3430 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
3431 | -if test "${ac_cv_prog_cc_g+set}" = set; then : |
3432 | +if ${ac_cv_prog_cc_g+:} false; then : |
3433 | $as_echo_n "(cached) " >&6 |
3434 | else |
3435 | ac_save_c_werror_flag=$ac_c_werror_flag |
3436 | @@ -2826,7 +2855,7 @@ |
3437 | fi |
3438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3439 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
3440 | -if test "${ac_cv_prog_cc_c89+set}" = set; then : |
3441 | +if ${ac_cv_prog_cc_c89+:} false; then : |
3442 | $as_echo_n "(cached) " >&6 |
3443 | else |
3444 | ac_cv_prog_cc_c89=no |
3445 | @@ -2835,8 +2864,7 @@ |
3446 | /* end confdefs.h. */ |
3447 | #include <stdarg.h> |
3448 | #include <stdio.h> |
3449 | -#include <sys/types.h> |
3450 | -#include <sys/stat.h> |
3451 | +struct stat; |
3452 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3453 | struct buf { int x; }; |
3454 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
3455 | @@ -2934,7 +2962,7 @@ |
3456 | CPP= |
3457 | fi |
3458 | if test -z "$CPP"; then |
3459 | - if test "${ac_cv_prog_CPP+set}" = set; then : |
3460 | + if ${ac_cv_prog_CPP+:} false; then : |
3461 | $as_echo_n "(cached) " >&6 |
3462 | else |
3463 | # Double quotes because CPP needs to be expanded |
3464 | @@ -3050,7 +3078,7 @@ |
3465 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3466 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3467 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
3468 | -See \`config.log' for more details" "$LINENO" 5 ; } |
3469 | +See \`config.log' for more details" "$LINENO" 5; } |
3470 | fi |
3471 | |
3472 | ac_ext=c |
3473 | @@ -3062,7 +3090,7 @@ |
3474 | |
3475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3476 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
3477 | -if test "${ac_cv_path_GREP+set}" = set; then : |
3478 | +if ${ac_cv_path_GREP+:} false; then : |
3479 | $as_echo_n "(cached) " >&6 |
3480 | else |
3481 | if test -z "$GREP"; then |
3482 | @@ -3076,7 +3104,7 @@ |
3483 | for ac_prog in grep ggrep; do |
3484 | for ac_exec_ext in '' $ac_executable_extensions; do |
3485 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
3486 | - { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
3487 | + as_fn_executable_p "$ac_path_GREP" || continue |
3488 | # Check for GNU ac_path_GREP and select it if it is found. |
3489 | # Check for GNU $ac_path_GREP |
3490 | case `"$ac_path_GREP" --version 2>&1` in |
3491 | @@ -3125,7 +3153,7 @@ |
3492 | |
3493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
3494 | $as_echo_n "checking for egrep... " >&6; } |
3495 | -if test "${ac_cv_path_EGREP+set}" = set; then : |
3496 | +if ${ac_cv_path_EGREP+:} false; then : |
3497 | $as_echo_n "(cached) " >&6 |
3498 | else |
3499 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3500 | @@ -3142,7 +3170,7 @@ |
3501 | for ac_prog in egrep; do |
3502 | for ac_exec_ext in '' $ac_executable_extensions; do |
3503 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
3504 | - { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
3505 | + as_fn_executable_p "$ac_path_EGREP" || continue |
3506 | # Check for GNU ac_path_EGREP and select it if it is found. |
3507 | # Check for GNU $ac_path_EGREP |
3508 | case `"$ac_path_EGREP" --version 2>&1` in |
3509 | @@ -3192,7 +3220,7 @@ |
3510 | |
3511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
3512 | $as_echo_n "checking for ANSI C header files... " >&6; } |
3513 | -if test "${ac_cv_header_stdc+set}" = set; then : |
3514 | +if ${ac_cv_header_stdc+:} false; then : |
3515 | $as_echo_n "(cached) " >&6 |
3516 | else |
3517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3518 | @@ -3321,7 +3349,7 @@ |
3519 | |
3520 | |
3521 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
3522 | -if test "x$ac_cv_header_minix_config_h" = x""yes; then : |
3523 | +if test "x$ac_cv_header_minix_config_h" = xyes; then : |
3524 | MINIX=yes |
3525 | else |
3526 | MINIX= |
3527 | @@ -3343,14 +3371,14 @@ |
3528 | |
3529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
3530 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
3531 | -if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : |
3532 | +if ${ac_cv_safe_to_define___extensions__+:} false; then : |
3533 | $as_echo_n "(cached) " >&6 |
3534 | else |
3535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3536 | /* end confdefs.h. */ |
3537 | |
3538 | -# define __EXTENSIONS__ 1 |
3539 | - $ac_includes_default |
3540 | +# define __EXTENSIONS__ 1 |
3541 | + $ac_includes_default |
3542 | int |
3543 | main () |
3544 | { |
3545 | @@ -3401,7 +3429,7 @@ |
3546 | set dummy ${ac_tool_prefix}ld; ac_word=$2 |
3547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3548 | $as_echo_n "checking for $ac_word... " >&6; } |
3549 | -if test "${ac_cv_prog_LD+set}" = set; then : |
3550 | +if ${ac_cv_prog_LD+:} false; then : |
3551 | $as_echo_n "(cached) " >&6 |
3552 | else |
3553 | if test -n "$LD"; then |
3554 | @@ -3413,7 +3441,7 @@ |
3555 | IFS=$as_save_IFS |
3556 | test -z "$as_dir" && as_dir=. |
3557 | for ac_exec_ext in '' $ac_executable_extensions; do |
3558 | - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3559 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3560 | ac_cv_prog_LD="${ac_tool_prefix}ld" |
3561 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3562 | break 2 |
3563 | @@ -3441,7 +3469,7 @@ |
3564 | set dummy ld; ac_word=$2 |
3565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3566 | $as_echo_n "checking for $ac_word... " >&6; } |
3567 | -if test "${ac_cv_prog_ac_ct_LD+set}" = set; then : |
3568 | +if ${ac_cv_prog_ac_ct_LD+:} false; then : |
3569 | $as_echo_n "(cached) " >&6 |
3570 | else |
3571 | if test -n "$ac_ct_LD"; then |
3572 | @@ -3453,7 +3481,7 @@ |
3573 | IFS=$as_save_IFS |
3574 | test -z "$as_dir" && as_dir=. |
3575 | for ac_exec_ext in '' $ac_executable_extensions; do |
3576 | - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3577 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3578 | ac_cv_prog_ac_ct_LD="ld" |
3579 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3580 | break 2 |
3581 | @@ -3500,7 +3528,7 @@ |
3582 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
3583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3584 | $as_echo_n "checking for $ac_word... " >&6; } |
3585 | -if test "${ac_cv_prog_CC+set}" = set; then : |
3586 | +if ${ac_cv_prog_CC+:} false; then : |
3587 | $as_echo_n "(cached) " >&6 |
3588 | else |
3589 | if test -n "$CC"; then |
3590 | @@ -3512,7 +3540,7 @@ |
3591 | IFS=$as_save_IFS |
3592 | test -z "$as_dir" && as_dir=. |
3593 | for ac_exec_ext in '' $ac_executable_extensions; do |
3594 | - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3595 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3596 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3597 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3598 | break 2 |
3599 | @@ -3540,7 +3568,7 @@ |
3600 | set dummy gcc; ac_word=$2 |
3601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3602 | $as_echo_n "checking for $ac_word... " >&6; } |
3603 | -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
3604 | +if ${ac_cv_prog_ac_ct_CC+:} false; then : |
3605 | $as_echo_n "(cached) " >&6 |
3606 | else |
3607 | if test -n "$ac_ct_CC"; then |
3608 | @@ -3552,7 +3580,7 @@ |
3609 | IFS=$as_save_IFS |
3610 | test -z "$as_dir" && as_dir=. |
3611 | for ac_exec_ext in '' $ac_executable_extensions; do |
3612 | - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3613 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3614 | ac_cv_prog_ac_ct_CC="gcc" |
3615 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3616 | break 2 |
3617 | @@ -3593,7 +3621,7 @@ |
3618 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
3619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3620 | $as_echo_n "checking for $ac_word... " >&6; } |
3621 | -if test "${ac_cv_prog_CC+set}" = set; then : |
3622 | +if ${ac_cv_prog_CC+:} false; then : |
3623 | $as_echo_n "(cached) " >&6 |
3624 | else |
3625 | if test -n "$CC"; then |
3626 | @@ -3605,7 +3633,7 @@ |
3627 | IFS=$as_save_IFS |
3628 | test -z "$as_dir" && as_dir=. |
3629 | for ac_exec_ext in '' $ac_executable_extensions; do |
3630 | - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3631 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3632 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
3633 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3634 | break 2 |
3635 | @@ -3633,7 +3661,7 @@ |
3636 | set dummy cc; ac_word=$2 |
3637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3638 | $as_echo_n "checking for $ac_word... " >&6; } |
3639 | -if test "${ac_cv_prog_CC+set}" = set; then : |
3640 | +if ${ac_cv_prog_CC+:} false; then : |
3641 | $as_echo_n "(cached) " >&6 |
3642 | else |
3643 | if test -n "$CC"; then |
3644 | @@ -3646,7 +3674,7 @@ |
3645 | IFS=$as_save_IFS |
3646 | test -z "$as_dir" && as_dir=. |
3647 | for ac_exec_ext in '' $ac_executable_extensions; do |
3648 | - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3649 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3650 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3651 | ac_prog_rejected=yes |
3652 | continue |
3653 | @@ -3692,7 +3720,7 @@ |
3654 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3656 | $as_echo_n "checking for $ac_word... " >&6; } |
3657 | -if test "${ac_cv_prog_CC+set}" = set; then : |
3658 | +if ${ac_cv_prog_CC+:} false; then : |
3659 | $as_echo_n "(cached) " >&6 |
3660 | else |
3661 | if test -n "$CC"; then |
3662 | @@ -3704,7 +3732,7 @@ |
3663 | IFS=$as_save_IFS |
3664 | test -z "$as_dir" && as_dir=. |
3665 | for ac_exec_ext in '' $ac_executable_extensions; do |
3666 | - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3667 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3668 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3669 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3670 | break 2 |
3671 | @@ -3736,7 +3764,7 @@ |
3672 | set dummy $ac_prog; ac_word=$2 |
3673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3674 | $as_echo_n "checking for $ac_word... " >&6; } |
3675 | -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
3676 | +if ${ac_cv_prog_ac_ct_CC+:} false; then : |
3677 | $as_echo_n "(cached) " >&6 |
3678 | else |
3679 | if test -n "$ac_ct_CC"; then |
3680 | @@ -3748,7 +3776,7 @@ |
3681 | IFS=$as_save_IFS |
3682 | test -z "$as_dir" && as_dir=. |
3683 | for ac_exec_ext in '' $ac_executable_extensions; do |
3684 | - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3685 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3686 | ac_cv_prog_ac_ct_CC="$ac_prog" |
3687 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3688 | break 2 |
3689 | @@ -3791,7 +3819,7 @@ |
3690 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3691 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3692 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3693 | -See \`config.log' for more details" "$LINENO" 5 ; } |
3694 | +See \`config.log' for more details" "$LINENO" 5; } |
3695 | |
3696 | # Provide some information about the compiler. |
3697 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3698 | @@ -3820,7 +3848,7 @@ |
3699 | |
3700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3701 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
3702 | -if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
3703 | +if ${ac_cv_c_compiler_gnu+:} false; then : |
3704 | $as_echo_n "(cached) " >&6 |
3705 | else |
3706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3707 | @@ -3857,7 +3885,7 @@ |
3708 | ac_save_CFLAGS=$CFLAGS |
3709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3710 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
3711 | -if test "${ac_cv_prog_cc_g+set}" = set; then : |
3712 | +if ${ac_cv_prog_cc_g+:} false; then : |
3713 | $as_echo_n "(cached) " >&6 |
3714 | else |
3715 | ac_save_c_werror_flag=$ac_c_werror_flag |
3716 | @@ -3935,7 +3963,7 @@ |
3717 | fi |
3718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3719 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
3720 | -if test "${ac_cv_prog_cc_c89+set}" = set; then : |
3721 | +if ${ac_cv_prog_cc_c89+:} false; then : |
3722 | $as_echo_n "(cached) " >&6 |
3723 | else |
3724 | ac_cv_prog_cc_c89=no |
3725 | @@ -3944,8 +3972,7 @@ |
3726 | /* end confdefs.h. */ |
3727 | #include <stdarg.h> |
3728 | #include <stdio.h> |
3729 | -#include <sys/types.h> |
3730 | -#include <sys/stat.h> |
3731 | +struct stat; |
3732 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3733 | struct buf { int x; }; |
3734 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
3735 | @@ -4042,7 +4069,7 @@ |
3736 | CPP= |
3737 | fi |
3738 | if test -z "$CPP"; then |
3739 | - if test "${ac_cv_prog_CPP+set}" = set; then : |
3740 | + if ${ac_cv_prog_CPP+:} false; then : |
3741 | $as_echo_n "(cached) " >&6 |
3742 | else |
3743 | # Double quotes because CPP needs to be expanded |
3744 | @@ -4158,7 +4185,7 @@ |
3745 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3746 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3747 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
3748 | -See \`config.log' for more details" "$LINENO" 5 ; } |
3749 | +See \`config.log' for more details" "$LINENO" 5; } |
3750 | fi |
3751 | |
3752 | ac_ext=c |
3753 | @@ -4213,7 +4240,7 @@ |
3754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
3755 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
3756 | if test -z "$INSTALL"; then |
3757 | -if test "${ac_cv_path_install+set}" = set; then : |
3758 | +if ${ac_cv_path_install+:} false; then : |
3759 | $as_echo_n "(cached) " >&6 |
3760 | else |
3761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3762 | @@ -4233,7 +4260,7 @@ |
3763 | # by default. |
3764 | for ac_prog in ginstall scoinst install; do |
3765 | for ac_exec_ext in '' $ac_executable_extensions; do |
3766 | - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
3767 | + if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
3768 | if test $ac_prog = install && |
3769 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3770 | # AIX install. It has an incompatible calling convention. |
3771 | @@ -4302,7 +4329,7 @@ |
3772 | |
3773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 |
3774 | $as_echo_n "checking for GNU make... " >&6; } |
3775 | -if test "${ac_cv_GNU_MAKE+set}" = set; then : |
3776 | +if ${ac_cv_GNU_MAKE+:} false; then : |
3777 | $as_echo_n "(cached) " >&6 |
3778 | else |
3779 | ac_cv_GNU_MAKE='Not Found' ; |
3780 | @@ -4348,7 +4375,7 @@ |
3781 | set dummy grep; ac_word=$2 |
3782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3783 | $as_echo_n "checking for $ac_word... " >&6; } |
3784 | -if test "${ac_cv_path_GREP+set}" = set; then : |
3785 | +if ${ac_cv_path_GREP+:} false; then : |
3786 | $as_echo_n "(cached) " >&6 |
3787 | else |
3788 | case $GREP in |
3789 | @@ -4362,7 +4389,7 @@ |
3790 | IFS=$as_save_IFS |
3791 | test -z "$as_dir" && as_dir=. |
3792 | for ac_exec_ext in '' $ac_executable_extensions; do |
3793 | - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3794 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3795 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
3796 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3797 | break 2 |
3798 | @@ -4389,7 +4416,7 @@ |
3799 | set dummy sh; ac_word=$2 |
3800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3801 | $as_echo_n "checking for $ac_word... " >&6; } |
3802 | -if test "${ac_cv_path_SHELL+set}" = set; then : |
3803 | +if ${ac_cv_path_SHELL+:} false; then : |
3804 | $as_echo_n "(cached) " >&6 |
3805 | else |
3806 | case $SHELL in |
3807 | @@ -4403,7 +4430,7 @@ |
3808 | IFS=$as_save_IFS |
3809 | test -z "$as_dir" && as_dir=. |
3810 | for ac_exec_ext in '' $ac_executable_extensions; do |
3811 | - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3812 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3813 | ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext" |
3814 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3815 | break 2 |
3816 | @@ -4430,7 +4457,7 @@ |
3817 | set dummy ln; ac_word=$2 |
3818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3819 | $as_echo_n "checking for $ac_word... " >&6; } |
3820 | -if test "${ac_cv_path_LN+set}" = set; then : |
3821 | +if ${ac_cv_path_LN+:} false; then : |
3822 | $as_echo_n "(cached) " >&6 |
3823 | else |
3824 | case $LN in |
3825 | @@ -4444,7 +4471,7 @@ |
3826 | IFS=$as_save_IFS |
3827 | test -z "$as_dir" && as_dir=. |
3828 | for ac_exec_ext in '' $ac_executable_extensions; do |
3829 | - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3830 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3831 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
3832 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3833 | break 2 |
3834 | @@ -4472,7 +4499,7 @@ |
3835 | set dummy wget; ac_word=$2 |
3836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3837 | $as_echo_n "checking for $ac_word... " >&6; } |
3838 | -if test "${ac_cv_path_WGET+set}" = set; then : |
3839 | +if ${ac_cv_path_WGET+:} false; then : |
3840 | $as_echo_n "(cached) " >&6 |
3841 | else |
3842 | case $WGET in |
3843 | @@ -4486,7 +4513,7 @@ |
3844 | IFS=$as_save_IFS |
3845 | test -z "$as_dir" && as_dir=. |
3846 | for ac_exec_ext in '' $ac_executable_extensions; do |
3847 | - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3848 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3849 | ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext" |
3850 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3851 | break 2 |
3852 | @@ -4516,7 +4543,7 @@ |
3853 | set dummy fetch; ac_word=$2 |
3854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3855 | $as_echo_n "checking for $ac_word... " >&6; } |
3856 | -if test "${ac_cv_path_FETCH+set}" = set; then : |
3857 | +if ${ac_cv_path_FETCH+:} false; then : |
3858 | $as_echo_n "(cached) " >&6 |
3859 | else |
3860 | case $FETCH in |
3861 | @@ -4530,7 +4557,7 @@ |
3862 | IFS=$as_save_IFS |
3863 | test -z "$as_dir" && as_dir=. |
3864 | for ac_exec_ext in '' $ac_executable_extensions; do |
3865 | - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3866 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3867 | ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext" |
3868 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3869 | break 2 |
3870 | @@ -4569,7 +4596,18 @@ |
3871 | enableval=$enable_dev_mode; case "${enableval}" in |
3872 | y|ye|yes) DAHDI_DEVMODE=yes ;; |
3873 | n|no) DAHDI_DEVMODE=no ;; |
3874 | - *) as_fn_error $? "bad value ${enableval} for --enable-dev-mode" "$LINENO" 5 ;; |
3875 | + *) as_fn_error $? "bad value ${enableval} for --enable-dev-mode" "$LINENO" 5 ;; |
3876 | + esac |
3877 | +fi |
3878 | + |
3879 | + |
3880 | + |
3881 | +# Check whether --enable-pinned was given. |
3882 | +if test "${enable_pinned+set}" = set; then : |
3883 | + enableval=$enable_pinned; case "${enableval}" in |
3884 | + y|ye|yes) DAHDI_PINNED=yes ;; |
3885 | + n|no) DAHDI_PINNED=no ;; |
3886 | + *) as_fn_error $? "bad value ${enableval} for --enable-pinned" "$LINENO" 5 ;; |
3887 | esac |
3888 | fi |
3889 | |
3890 | @@ -4788,7 +4826,7 @@ |
3891 | as_ac_Lib=`$as_echo "ac_cv_lib_newt_${pbxfuncname}" | $as_tr_sh` |
3892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lnewt" >&5 |
3893 | $as_echo_n "checking for ${pbxfuncname} in -lnewt... " >&6; } |
3894 | -if eval "test \"\${$as_ac_Lib+set}\"" = set; then : |
3895 | +if eval \${$as_ac_Lib+:} false; then : |
3896 | $as_echo_n "(cached) " >&6 |
3897 | else |
3898 | ac_check_lib_save_LIBS=$LIBS |
3899 | @@ -4845,7 +4883,7 @@ |
3900 | saved_cppflags="${CPPFLAGS}" |
3901 | CPPFLAGS="${CPPFLAGS} ${NEWT_INCLUDE} " |
3902 | ac_fn_c_check_header_mongrel "$LINENO" "newt.h" "ac_cv_header_newt_h" "$ac_includes_default" |
3903 | -if test "x$ac_cv_header_newt_h" = x""yes; then : |
3904 | +if test "x$ac_cv_header_newt_h" = xyes; then : |
3905 | NEWT_HEADER_FOUND=1 |
3906 | else |
3907 | NEWT_HEADER_FOUND=0 |
3908 | @@ -4895,7 +4933,7 @@ |
3909 | as_ac_Lib=`$as_echo "ac_cv_lib_usb_${pbxfuncname}" | $as_tr_sh` |
3910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lusb" >&5 |
3911 | $as_echo_n "checking for ${pbxfuncname} in -lusb... " >&6; } |
3912 | -if eval "test \"\${$as_ac_Lib+set}\"" = set; then : |
3913 | +if eval \${$as_ac_Lib+:} false; then : |
3914 | $as_echo_n "(cached) " >&6 |
3915 | else |
3916 | ac_check_lib_save_LIBS=$LIBS |
3917 | @@ -4952,7 +4990,7 @@ |
3918 | saved_cppflags="${CPPFLAGS}" |
3919 | CPPFLAGS="${CPPFLAGS} ${USB_INCLUDE} " |
3920 | ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default" |
3921 | -if test "x$ac_cv_header_usb_h" = x""yes; then : |
3922 | +if test "x$ac_cv_header_usb_h" = xyes; then : |
3923 | USB_HEADER_FOUND=1 |
3924 | else |
3925 | USB_HEADER_FOUND=0 |
3926 | @@ -4988,7 +5026,7 @@ |
3927 | for ac_func in semtimedop |
3928 | do : |
3929 | ac_fn_c_check_func "$LINENO" "semtimedop" "ac_cv_func_semtimedop" |
3930 | -if test "x$ac_cv_func_semtimedop" = x""yes; then : |
3931 | +if test "x$ac_cv_func_semtimedop" = xyes; then : |
3932 | cat >>confdefs.h <<_ACEOF |
3933 | #define HAVE_SEMTIMEDOP 1 |
3934 | _ACEOF |
3935 | @@ -5153,7 +5191,7 @@ |
3936 | |
3937 | |
3938 | |
3939 | -ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts" |
3940 | +ac_config_files="$ac_config_files makeopts" |
3941 | |
3942 | cat >confcache <<\_ACEOF |
3943 | # This file is a shell script that caches the results of configure |
3944 | @@ -5219,10 +5257,21 @@ |
3945 | :end' >>confcache |
3946 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
3947 | if test -w "$cache_file"; then |
3948 | - test "x$cache_file" != "x/dev/null" && |
3949 | + if test "x$cache_file" != "x/dev/null"; then |
3950 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
3951 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
3952 | - cat confcache >$cache_file |
3953 | + if test ! -f "$cache_file" || test -h "$cache_file"; then |
3954 | + cat confcache >"$cache_file" |
3955 | + else |
3956 | + case $cache_file in #( |
3957 | + */* | ?:*) |
3958 | + mv -f confcache "$cache_file"$$ && |
3959 | + mv -f "$cache_file"$$ "$cache_file" ;; #( |
3960 | + *) |
3961 | + mv -f confcache "$cache_file" ;; |
3962 | + esac |
3963 | + fi |
3964 | + fi |
3965 | else |
3966 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
3967 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
3968 | @@ -5254,7 +5303,7 @@ |
3969 | |
3970 | |
3971 | |
3972 | -: ${CONFIG_STATUS=./config.status} |
3973 | +: "${CONFIG_STATUS=./config.status}" |
3974 | ac_write_fail=0 |
3975 | ac_clean_files_save=$ac_clean_files |
3976 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
3977 | @@ -5355,6 +5404,7 @@ |
3978 | IFS=" "" $as_nl" |
3979 | |
3980 | # Find who we are. Look in the path if we contain no directory separator. |
3981 | +as_myself= |
3982 | case $0 in #(( |
3983 | *[\\/]* ) as_myself=$0 ;; |
3984 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3985 | @@ -5550,16 +5600,16 @@ |
3986 | # ... but there are two gotchas: |
3987 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
3988 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
3989 | - # In both cases, we have to default to `cp -p'. |
3990 | + # In both cases, we have to default to `cp -pR'. |
3991 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
3992 | - as_ln_s='cp -p' |
3993 | + as_ln_s='cp -pR' |
3994 | elif ln conf$$.file conf$$ 2>/dev/null; then |
3995 | as_ln_s=ln |
3996 | else |
3997 | - as_ln_s='cp -p' |
3998 | + as_ln_s='cp -pR' |
3999 | fi |
4000 | else |
4001 | - as_ln_s='cp -p' |
4002 | + as_ln_s='cp -pR' |
4003 | fi |
4004 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
4005 | rmdir conf$$.dir 2>/dev/null |
4006 | @@ -5619,28 +5669,16 @@ |
4007 | as_mkdir_p=false |
4008 | fi |
4009 | |
4010 | -if test -x / >/dev/null 2>&1; then |
4011 | - as_test_x='test -x' |
4012 | -else |
4013 | - if ls -dL / >/dev/null 2>&1; then |
4014 | - as_ls_L_option=L |
4015 | - else |
4016 | - as_ls_L_option= |
4017 | - fi |
4018 | - as_test_x=' |
4019 | - eval sh -c '\'' |
4020 | - if test -d "$1"; then |
4021 | - test -d "$1/."; |
4022 | - else |
4023 | - case $1 in #( |
4024 | - -*)set "./$1";; |
4025 | - esac; |
4026 | - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
4027 | - ???[sx]*):;;*)false;;esac;fi |
4028 | - '\'' sh |
4029 | - ' |
4030 | -fi |
4031 | -as_executable_p=$as_test_x |
4032 | + |
4033 | +# as_fn_executable_p FILE |
4034 | +# ----------------------- |
4035 | +# Test if FILE is an executable regular file. |
4036 | +as_fn_executable_p () |
4037 | +{ |
4038 | + test -f "$1" && test -x "$1" |
4039 | +} # as_fn_executable_p |
4040 | +as_test_x='test -x' |
4041 | +as_executable_p=as_fn_executable_p |
4042 | |
4043 | # Sed expression to map a string onto a valid CPP name. |
4044 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
4045 | @@ -5662,7 +5700,7 @@ |
4046 | # values after options handling. |
4047 | ac_log=" |
4048 | This file was extended by $as_me, which was |
4049 | -generated by GNU Autoconf 2.67. Invocation command line was |
4050 | +generated by GNU Autoconf 2.69. Invocation command line was |
4051 | |
4052 | CONFIG_FILES = $CONFIG_FILES |
4053 | CONFIG_HEADERS = $CONFIG_HEADERS |
4054 | @@ -5724,10 +5762,10 @@ |
4055 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
4056 | ac_cs_version="\\ |
4057 | config.status |
4058 | -configured by $0, generated by GNU Autoconf 2.67, |
4059 | +configured by $0, generated by GNU Autoconf 2.69, |
4060 | with options \\"\$ac_cs_config\\" |
4061 | |
4062 | -Copyright (C) 2010 Free Software Foundation, Inc. |
4063 | +Copyright (C) 2012 Free Software Foundation, Inc. |
4064 | This config.status script is free software; the Free Software Foundation |
4065 | gives unlimited permission to copy, distribute and modify it." |
4066 | |
4067 | @@ -5816,7 +5854,7 @@ |
4068 | _ACEOF |
4069 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
4070 | if \$ac_cs_recheck; then |
4071 | - set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
4072 | + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
4073 | shift |
4074 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
4075 | CONFIG_SHELL='$SHELL' |
4076 | @@ -5846,10 +5884,9 @@ |
4077 | do |
4078 | case $ac_config_target in |
4079 | "autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS autoconfig.h" ;; |
4080 | - "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;; |
4081 | "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;; |
4082 | |
4083 | - *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; |
4084 | + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
4085 | esac |
4086 | done |
4087 | |
4088 | @@ -5871,9 +5908,10 @@ |
4089 | # after its creation but before its name has been assigned to `$tmp'. |
4090 | $debug || |
4091 | { |
4092 | - tmp= |
4093 | + tmp= ac_tmp= |
4094 | trap 'exit_status=$? |
4095 | - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
4096 | + : "${ac_tmp:=$tmp}" |
4097 | + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
4098 | ' 0 |
4099 | trap 'as_fn_exit 1' 1 2 13 15 |
4100 | } |
4101 | @@ -5881,12 +5919,13 @@ |
4102 | |
4103 | { |
4104 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
4105 | - test -n "$tmp" && test -d "$tmp" |
4106 | + test -d "$tmp" |
4107 | } || |
4108 | { |
4109 | tmp=./conf$$-$RANDOM |
4110 | (umask 077 && mkdir "$tmp") |
4111 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
4112 | +ac_tmp=$tmp |
4113 | |
4114 | # Set up the scripts for CONFIG_FILES section. |
4115 | # No need to generate them if there are no CONFIG_FILES. |
4116 | @@ -5908,7 +5947,7 @@ |
4117 | ac_cs_awk_cr=$ac_cr |
4118 | fi |
4119 | |
4120 | -echo 'BEGIN {' >"$tmp/subs1.awk" && |
4121 | +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
4122 | _ACEOF |
4123 | |
4124 | |
4125 | @@ -5936,7 +5975,7 @@ |
4126 | rm -f conf$$subs.sh |
4127 | |
4128 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
4129 | -cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
4130 | +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
4131 | _ACEOF |
4132 | sed -n ' |
4133 | h |
4134 | @@ -5984,7 +6023,7 @@ |
4135 | rm -f conf$$subs.awk |
4136 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
4137 | _ACAWK |
4138 | -cat >>"\$tmp/subs1.awk" <<_ACAWK && |
4139 | +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
4140 | for (key in S) S_is_set[key] = 1 |
4141 | FS = "" |
4142 | |
4143 | @@ -6016,7 +6055,7 @@ |
4144 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
4145 | else |
4146 | cat |
4147 | -fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
4148 | +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
4149 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
4150 | _ACEOF |
4151 | |
4152 | @@ -6050,7 +6089,7 @@ |
4153 | # No need to generate them if there are no CONFIG_HEADERS. |
4154 | # This happens for instance with `./config.status Makefile'. |
4155 | if test -n "$CONFIG_HEADERS"; then |
4156 | -cat >"$tmp/defines.awk" <<\_ACAWK || |
4157 | +cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
4158 | BEGIN { |
4159 | _ACEOF |
4160 | |
4161 | @@ -6062,8 +6101,8 @@ |
4162 | # handling of long lines. |
4163 | ac_delim='%!_!# ' |
4164 | for ac_last_try in false false :; do |
4165 | - ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
4166 | - if test -z "$ac_t"; then |
4167 | + ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
4168 | + if test -z "$ac_tt"; then |
4169 | break |
4170 | elif $ac_last_try; then |
4171 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
4172 | @@ -6164,7 +6203,7 @@ |
4173 | esac |
4174 | case $ac_mode$ac_tag in |
4175 | :[FHL]*:*);; |
4176 | - :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; |
4177 | + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
4178 | :[FH]-) ac_tag=-:-;; |
4179 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
4180 | esac |
4181 | @@ -6183,7 +6222,7 @@ |
4182 | for ac_f |
4183 | do |
4184 | case $ac_f in |
4185 | - -) ac_f="$tmp/stdin";; |
4186 | + -) ac_f="$ac_tmp/stdin";; |
4187 | *) # Look for the file first in the build tree, then in the source tree |
4188 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
4189 | # because $ac_f cannot contain `:'. |
4190 | @@ -6192,7 +6231,7 @@ |
4191 | [\\/$]*) false;; |
4192 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
4193 | esac || |
4194 | - as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; |
4195 | + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
4196 | esac |
4197 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
4198 | as_fn_append ac_file_inputs " '$ac_f'" |
4199 | @@ -6218,8 +6257,8 @@ |
4200 | esac |
4201 | |
4202 | case $ac_tag in |
4203 | - *:-:* | *:-) cat >"$tmp/stdin" \ |
4204 | - || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
4205 | + *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
4206 | + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
4207 | esac |
4208 | ;; |
4209 | esac |
4210 | @@ -6349,21 +6388,22 @@ |
4211 | s&@INSTALL@&$ac_INSTALL&;t t |
4212 | $ac_datarootdir_hack |
4213 | " |
4214 | -eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
4215 | - || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
4216 | +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
4217 | + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
4218 | |
4219 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
4220 | - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
4221 | - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
4222 | + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
4223 | + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
4224 | + "$ac_tmp/out"`; test -z "$ac_out"; } && |
4225 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
4226 | which seems to be undefined. Please make sure it is defined" >&5 |
4227 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
4228 | which seems to be undefined. Please make sure it is defined" >&2;} |
4229 | |
4230 | - rm -f "$tmp/stdin" |
4231 | + rm -f "$ac_tmp/stdin" |
4232 | case $ac_file in |
4233 | - -) cat "$tmp/out" && rm -f "$tmp/out";; |
4234 | - *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
4235 | + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
4236 | + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
4237 | esac \ |
4238 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
4239 | ;; |
4240 | @@ -6374,20 +6414,20 @@ |
4241 | if test x"$ac_file" != x-; then |
4242 | { |
4243 | $as_echo "/* $configure_input */" \ |
4244 | - && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
4245 | - } >"$tmp/config.h" \ |
4246 | + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
4247 | + } >"$ac_tmp/config.h" \ |
4248 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
4249 | - if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
4250 | + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
4251 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
4252 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
4253 | else |
4254 | rm -f "$ac_file" |
4255 | - mv "$tmp/config.h" "$ac_file" \ |
4256 | + mv "$ac_tmp/config.h" "$ac_file" \ |
4257 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
4258 | fi |
4259 | else |
4260 | $as_echo "/* $configure_input */" \ |
4261 | - && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
4262 | + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
4263 | || as_fn_error $? "could not create -" "$LINENO" 5 |
4264 | fi |
4265 | ;; |
4266 | |
4267 | === modified file 'configure.ac' |
4268 | --- configure.ac 2011-03-13 23:45:36 +0000 |
4269 | +++ configure.ac 2013-08-25 04:54:26 +0000 |
4270 | @@ -12,7 +12,7 @@ |
4271 | AC_CONFIG_SRCDIR([dahdi_cfg.c]) |
4272 | |
4273 | AC_COPYRIGHT("dahdi-tools") |
4274 | -AC_REVISION($Revision: 9736 $) |
4275 | +AC_REVISION($Revision$) |
4276 | |
4277 | ac_default_prefix=/usr |
4278 | if test ${sysconfdir} = '${prefix}/etc'; then |
4279 | @@ -79,6 +79,15 @@ |
4280 | esac]) |
4281 | AC_SUBST(DAHDI_DEVMODE) |
4282 | |
4283 | +AC_ARG_ENABLE(pinned, |
4284 | + [ --enable-pinned Install pinned-spans support], |
4285 | + [case "${enableval}" in |
4286 | + y|ye|yes) DAHDI_PINNED=yes ;; |
4287 | + n|no) DAHDI_PINNED=no ;; |
4288 | + *) AC_MSG_ERROR(bad value ${enableval} for --enable-pinned) ;; |
4289 | + esac]) |
4290 | +AC_SUBST(DAHDI_PINNED) |
4291 | + |
4292 | AC_MSG_CHECKING(for -Wdeclaration-after-statement support) |
4293 | if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then |
4294 | AC_MSG_RESULT(yes) |
4295 | @@ -211,7 +220,7 @@ |
4296 | |
4297 | AC_SUBST(PPPD_VERSION) |
4298 | |
4299 | -AC_CONFIG_FILES([build_tools/menuselect-deps makeopts]) |
4300 | +AC_CONFIG_FILES([makeopts]) |
4301 | AC_OUTPUT |
4302 | |
4303 | AC_MSG_NOTICE(*** dahdi-tools build successfully configured ***) |
4304 | |
4305 | === removed file 'dahdi-tools-2.4.1-summary.html' |
4306 | --- dahdi-tools-2.4.1-summary.html 2011-03-13 23:45:36 +0000 |
4307 | +++ dahdi-tools-2.4.1-summary.html 1970-01-01 00:00:00 +0000 |
4308 | @@ -1,82 +0,0 @@ |
4309 | -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
4310 | -<html xmlns="http://www.w3.org/1999/xhtml"> |
4311 | -<head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>Release Summary - dahdi-tools-2.4.1</title></head> |
4312 | -<body> |
4313 | -<h1 align="center"><a name="top">Release Summary</a></h1> |
4314 | -<h3 align="center">dahdi-tools-2.4.1</h3> |
4315 | -<h3 align="center">Date: 2011-03-03</h3> |
4316 | -<h3 align="center"><asteriskteam@digium.com></h3> |
4317 | -<hr/> |
4318 | -<h2 align="center">Table of Contents</h2> |
4319 | -<ol> |
4320 | - <li><a href="#summary">Summary</a></li> |
4321 | - <li><a href="#contributors">Contributors</a></li> |
4322 | - <li><a href="#issues">Closed Issues</a></li> |
4323 | - <li><a href="#commits">Other Changes</a></li> |
4324 | - <li><a href="#diffstat">Diffstat</a></li> |
4325 | -</ol> |
4326 | -<hr/> |
4327 | -<a name="summary"><h2 align="center">Summary</h2></a> |
4328 | -<center><a href="#top">[Back to Top]</a></center><br/><p>This release includes only bug fixes. The changes included were made only to address problems that have been identified in this release series. Users should be able to safely upgrade to this version if this release series is already in use. Users considering upgrading from a previous release series are strongly encouraged to review the UPGRADE.txt document as well as the CHANGES document for information about upgrading to this release series.</p> |
4329 | -<p>The data in this summary reflects changes that have been made since the previous release, dahdi-tools-2.4.0.</p> |
4330 | -<hr/> |
4331 | -<a name="contributors"><h2 align="center">Contributors</h2></a> |
4332 | -<center><a href="#top">[Back to Top]</a></center><br/><p>This table lists the people who have submitted code, those that have tested patches, as well as those that reported issues on the issue tracker that were resolved in this release. For coders, the number is how many of their patches (of any size) were committed into this release. For testers, the number is the number of times their name was listed as assisting with testing a patch. Finally, for reporters, the number is the number of issues that they reported that were closed by commits that went into this release.</p> |
4333 | -<table width="100%" border="0"> |
4334 | -<tr> |
4335 | -<td width="33%"><h3>Coders</h3></td> |
4336 | -<td width="33%"><h3>Testers</h3></td> |
4337 | -<td width="33%"><h3>Reporters</h3></td> |
4338 | -</tr> |
4339 | -<tr valign="top"> |
4340 | -<td> |
4341 | -11 tzafrir<br/> |
4342 | -1 alfredtang<br/> |
4343 | -</td> |
4344 | -<td> |
4345 | -</td> |
4346 | -<td> |
4347 | -1 abelbeck<br/> |
4348 | -1 alfredtang<br/> |
4349 | -</td> |
4350 | -</tr> |
4351 | -</table> |
4352 | -<hr/> |
4353 | -<a name="issues"><h2 align="center">Closed Issues</h2></a> |
4354 | -<center><a href="#top">[Back to Top]</a></center><br/><p>This is a list of all issues from the issue tracker that were closed by changes that went into this release.</p> |
4355 | -<h3>Category: General</h3><br/> |
4356 | -<a href="https://issues.asterisk.org/view.php?id=16783">#16783</a>: [patch] DAHDI 2.2.1, XPP and astribank_is_starting.c uses semtimedop() which is not supported in our uClibc.<br/> |
4357 | -Revision: <a href="http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9736">9736</a><br/> |
4358 | -Reporter: abelbeck<br/> |
4359 | -Coders: tzafrir<br/> |
4360 | -<br/> |
4361 | -<h3>Category: NewFeature</h3><br/> |
4362 | -<a href="https://issues.asterisk.org/view.php?id=17744">#17744</a>: [patch] add macao to tone zone data<br/> |
4363 | -Revision: <a href="http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9735">9735</a><br/> |
4364 | -Reporter: alfredtang<br/> |
4365 | -Coders: alfredtang<br/> |
4366 | -<br/> |
4367 | -<hr/> |
4368 | -<a name="commits"><h2 align="center">Commits Not Associated with an Issue</h2></a> |
4369 | -<center><a href="#top">[Back to Top]</a></center><br/><p>This is a list of all changes that went into this release that did not directly close an issue from the issue tracker. The commits may have been marked as being related to an issue. If that is the case, the issue numbers are listed here, as well.</p> |
4370 | -<table width="100%" border="1"> |
4371 | -<tr><td><b>Revision</b></td><td><b>Author</b></td><td><b>Summary</b></td><td><b>Issues Referenced</b></td></tr><tr><td><a href="http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9733">9733</a></td><td>tzafrir</td><td>Branch dahdi-tools 2.4</td> |
4372 | -<td></td></tr><tr><td><a href="http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9734">9734</a></td><td>tzafrir</td><td>svnmerge stuff</td> |
4373 | -<td></td></tr><tr><td><a href="http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9737">9737</a></td><td>tzafrir</td><td>Dahdi::Hardware: Support beroNet BN4S0e PCI Express card</td> |
4374 | -<td></td></tr><tr><td><a href="http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9738">9738</a></td><td>tzafrir</td><td>Fixed up the loss of crc4-multiframe alignment logic</td> |
4375 | -<td></td></tr><tr><td><a href="http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9739">9739</a></td><td>tzafrir</td><td>dahdi_scan: Show CAS framing on the framing line.</td> |
4376 | -<td></td></tr><tr><td><a href="http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9740">9740</a></td><td>tzafrir</td><td>xpp_fxloader: Don't try to load FPGA firmware twice</td> |
4377 | -<td></td></tr><tr><td><a href="http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9741">9741</a></td><td>tzafrir</td><td>dahdi_genconf: Don't generate configurations that use channel 16 on E1 CAS</td> |
4378 | -<td></td></tr><tr><td><a href="http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9742">9742</a></td><td>tzafrir</td><td>dahdi-perl: left-over $span->xpd</td> |
4379 | -<td></td></tr><tr><td><a href="http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9743">9743</a></td><td>tzafrir</td><td>dahdi-perl: fix xpp driver in dahdi_hardware</td> |
4380 | -<td></td></tr><tr><td><a href="http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9744">9744</a></td><td>tzafrir</td><td>dahdi-perl: more left-over $span->xpd</td> |
4381 | -<td></td></tr></table> |
4382 | -<hr/> |
4383 | -<a name="diffstat"><h2 align="center">Diffstat Results</h2></a> |
4384 | -<center><a href="#top">[Back to Top]</a></center><br/><p>This is a summary of the changes to the source code that went into this release that was generated using the diffstat utility.</p> |
4385 | -<pre> |
4386 | -0 files changed |
4387 | -</pre><br/> |
4388 | -<hr/> |
4389 | -</body> |
4390 | -</html> |
4391 | |
4392 | === removed file 'dahdi-tools-2.4.1-summary.txt' |
4393 | --- dahdi-tools-2.4.1-summary.txt 2011-03-13 23:45:36 +0000 |
4394 | +++ dahdi-tools-2.4.1-summary.txt 1970-01-01 00:00:00 +0000 |
4395 | @@ -1,162 +0,0 @@ |
4396 | - Release Summary |
4397 | - |
4398 | - dahdi-tools-2.4.1 |
4399 | - |
4400 | - Date: 2011-03-03 |
4401 | - |
4402 | - <asteriskteam@digium.com> |
4403 | - |
4404 | - -------------------------------------------------------------------------- |
4405 | - |
4406 | - Table of Contents |
4407 | - |
4408 | -  1. [1]Summary |
4409 | -  2. [2]Contributors |
4410 | -  3. [3]Closed Issues |
4411 | -  4. [4]Other Changes |
4412 | -  5. [5]Diffstat |
4413 | - |
4414 | - -------------------------------------------------------------------------- |
4415 | - |
4416 | - Summary |
4417 | - |
4418 | - [6][Back to Top] |
4419 | - |
4420 | - This release includes only bug fixes. The changes included were made only |
4421 | - to address problems that have been identified in this release series. |
4422 | - Users should be able to safely upgrade to this version if this release |
4423 | - series is already in use. Users considering upgrading from a previous |
4424 | - release series are strongly encouraged to review the UPGRADE.txt document |
4425 | - as well as the CHANGES document for information about upgrading to this |
4426 | - release series. |
4427 | - |
4428 | - The data in this summary reflects changes that have been made since the |
4429 | - previous release, dahdi-tools-2.4.0. |
4430 | - |
4431 | - -------------------------------------------------------------------------- |
4432 | - |
4433 | - Contributors |
4434 | - |
4435 | - [7][Back to Top] |
4436 | - |
4437 | - This table lists the people who have submitted code, those that have |
4438 | - tested patches, as well as those that reported issues on the issue tracker |
4439 | - that were resolved in this release. For coders, the number is how many of |
4440 | - their patches (of any size) were committed into this release. For testers, |
4441 | - the number is the number of times their name was listed as assisting with |
4442 | - testing a patch. Finally, for reporters, the number is the number of |
4443 | - issues that they reported that were closed by commits that went into this |
4444 | - release. |
4445 | - |
4446 | - Coders Testers Reporters |
4447 | - 11 tzafrir 1 abelbeck |
4448 | - 1 alfredtang 1 alfredtang |
4449 | - |
4450 | - -------------------------------------------------------------------------- |
4451 | - |
4452 | - Closed Issues |
4453 | - |
4454 | - [8][Back to Top] |
4455 | - |
4456 | - This is a list of all issues from the issue tracker that were closed by |
4457 | - changes that went into this release. |
4458 | - |
4459 | - Category: General |
4460 | - |
4461 | - [9]#16783: [patch] DAHDI 2.2.1, XPP and astribank_is_starting.c uses |
4462 | - semtimedop() which is not supported in our uClibc. |
4463 | - Revision: [10]9736 |
4464 | - Reporter: abelbeck |
4465 | - Coders: tzafrir |
4466 | - |
4467 | - Category: NewFeature |
4468 | - |
4469 | - [11]#17744: [patch] add macao to tone zone data |
4470 | - Revision: [12]9735 |
4471 | - Reporter: alfredtang |
4472 | - Coders: alfredtang |
4473 | - |
4474 | - -------------------------------------------------------------------------- |
4475 | - |
4476 | - Commits Not Associated with an Issue |
4477 | - |
4478 | - [13][Back to Top] |
4479 | - |
4480 | - This is a list of all changes that went into this release that did not |
4481 | - directly close an issue from the issue tracker. The commits may have been |
4482 | - marked as being related to an issue. If that is the case, the issue |
4483 | - numbers are listed here, as well. |
4484 | - |
4485 | - +------------------------------------------------------------------------+ |
4486 | - | Revision | Author | Summary | Issues | |
4487 | - | | | | Referenced | |
4488 | - |----------+---------+--------------------------------------+------------| |
4489 | - | [14]9733 | tzafrir | Branch dahdi-tools 2.4 | | |
4490 | - |----------+---------+--------------------------------------+------------| |
4491 | - | [15]9734 | tzafrir | svnmerge stuff | | |
4492 | - |----------+---------+--------------------------------------+------------| |
4493 | - | [16]9737 | tzafrir | Dahdi::Hardware: Support beroNet | | |
4494 | - | | | BN4S0e PCI Express card | | |
4495 | - |----------+---------+--------------------------------------+------------| |
4496 | - | [17]9738 | tzafrir | Fixed up the loss of crc4-multiframe | | |
4497 | - | | | alignment logic | | |
4498 | - |----------+---------+--------------------------------------+------------| |
4499 | - | [18]9739 | tzafrir | dahdi_scan: Show CAS framing on the | | |
4500 | - | | | framing line. | | |
4501 | - |----------+---------+--------------------------------------+------------| |
4502 | - | [19]9740 | tzafrir | xpp_fxloader: Don't try to load FPGA | | |
4503 | - | | | firmware twice | | |
4504 | - |----------+---------+--------------------------------------+------------| |
4505 | - | | | dahdi_genconf: Don't generate | | |
4506 | - | [20]9741 | tzafrir | configurations that use channel 16 | | |
4507 | - | | | on E1 CAS | | |
4508 | - |----------+---------+--------------------------------------+------------| |
4509 | - | [21]9742 | tzafrir | dahdi-perl: left-over $span->xpd | | |
4510 | - |----------+---------+--------------------------------------+------------| |
4511 | - | [22]9743 | tzafrir | dahdi-perl: fix xpp driver in | | |
4512 | - | | | dahdi_hardware | | |
4513 | - |----------+---------+--------------------------------------+------------| |
4514 | - | [23]9744 | tzafrir | dahdi-perl: more left-over | | |
4515 | - | | | $span->xpd | | |
4516 | - +------------------------------------------------------------------------+ |
4517 | - |
4518 | - -------------------------------------------------------------------------- |
4519 | - |
4520 | - Diffstat Results |
4521 | - |
4522 | - [24][Back to Top] |
4523 | - |
4524 | - This is a summary of the changes to the source code that went into this |
4525 | - release that was generated using the diffstat utility. |
4526 | - |
4527 | - 0 files changed |
4528 | - |
4529 | - -------------------------------------------------------------------------- |
4530 | - |
4531 | -References |
4532 | - |
4533 | - Visible links |
4534 | - 1. file:///home/sruffell/repotools/dahdi-tools-2.4.1-summary.html#summary |
4535 | - 2. file:///home/sruffell/repotools/dahdi-tools-2.4.1-summary.html#contributors |
4536 | - 3. file:///home/sruffell/repotools/dahdi-tools-2.4.1-summary.html#issues |
4537 | - 4. file:///home/sruffell/repotools/dahdi-tools-2.4.1-summary.html#commits |
4538 | - 5. file:///home/sruffell/repotools/dahdi-tools-2.4.1-summary.html#diffstat |
4539 | - 6. file:///home/sruffell/repotools/dahdi-tools-2.4.1-summary.html#top |
4540 | - 7. file:///home/sruffell/repotools/dahdi-tools-2.4.1-summary.html#top |
4541 | - 8. file:///home/sruffell/repotools/dahdi-tools-2.4.1-summary.html#top |
4542 | - 9. https://issues.asterisk.org/view.php?id=16783 |
4543 | - 10. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9736 |
4544 | - 11. https://issues.asterisk.org/view.php?id=17744 |
4545 | - 12. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9735 |
4546 | - 13. file:///home/sruffell/repotools/dahdi-tools-2.4.1-summary.html#top |
4547 | - 14. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9733 |
4548 | - 15. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9734 |
4549 | - 16. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9737 |
4550 | - 17. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9738 |
4551 | - 18. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9739 |
4552 | - 19. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9740 |
4553 | - 20. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9741 |
4554 | - 21. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9742 |
4555 | - 22. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9743 |
4556 | - 23. http://svn.digium.com/view/dahdi/tools/branches/2.4?view=revision&revision=9744 |
4557 | - 24. file:///home/sruffell/repotools/dahdi-tools-2.4.1-summary.html#top |
4558 | |
4559 | === modified file 'dahdi.init' |
4560 | --- dahdi.init 2011-03-13 23:45:36 +0000 |
4561 | +++ dahdi.init 2013-08-25 04:54:26 +0000 |
4562 | @@ -16,6 +16,7 @@ |
4563 | # Should-Stop: $network $syslog |
4564 | # Default-Start: 2 3 4 5 |
4565 | # Default-Stop: 0 1 6 |
4566 | +# Short-Description: DAHDI kernel modules |
4567 | # Description: dahdi - load and configure DAHDI modules |
4568 | ### END INIT INFO |
4569 | |
4570 | @@ -39,7 +40,7 @@ |
4571 | |
4572 | # A list of modules to unload when stopping. |
4573 | # All of their dependencies will be unloaded as well. |
4574 | -DAHDI_UNLOAD_MODULES="dahdi echo" |
4575 | +DAHDI_UNLOAD_MODULES="dahdi" |
4576 | |
4577 | # |
4578 | # Determine which kind of configuration we're using |
4579 | @@ -226,6 +227,11 @@ |
4580 | echo "" |
4581 | } |
4582 | |
4583 | +# Make sure that either dahdi is loaded or modprobe-able |
4584 | +dahdi_modules_loadable() { |
4585 | + modinfo dahdi >/dev/null 2>&1 || lsmod | grep -q -w ^dahdi |
4586 | +} |
4587 | + |
4588 | if [ ! -x "$DAHDI_CFG" ]; then |
4589 | echo "dahdi_cfg not executable" |
4590 | exit 0 |
4591 | @@ -241,6 +247,10 @@ |
4592 | # See how we were called. |
4593 | case "$1" in |
4594 | start) |
4595 | + if ! dahdi_modules_loadable; then |
4596 | + echo "No DAHDI modules on the system. Not starting" |
4597 | + exit 0 |
4598 | + fi |
4599 | if hotplug_should_load_modules; then |
4600 | load_modules |
4601 | fi |
4602 | @@ -258,11 +268,6 @@ |
4603 | |
4604 | xpp_startup |
4605 | |
4606 | - if [ ! -e /proc/dahdi/1 ]; then |
4607 | - echo "No hardware timing source found in /proc/dahdi, loading dahdi_dummy" |
4608 | - modprobe dahdi_dummy 2> /dev/null |
4609 | - fi |
4610 | - |
4611 | if [ $system = debian ]; then |
4612 | echo -n "Running dahdi_cfg: " |
4613 | $DAHDI_CFG_CMD 2> /dev/null && echo -n "done" |
4614 | |
4615 | === added file 'dahdi.rules' |
4616 | --- dahdi.rules 1970-01-01 00:00:00 +0000 |
4617 | +++ dahdi.rules 2013-08-25 04:54:26 +0000 |
4618 | @@ -0,0 +1,3 @@ |
4619 | +# DAHDI devices with ownership/permissions for running as non-root |
4620 | +SUBSYSTEM=="dahdi", OWNER="asterisk", GROUP="asterisk", MODE="0660" |
4621 | +SUBSYSTEM=="dahdi_devices", RUN="/usr/share/dahdi/handle_device" |
4622 | |
4623 | === modified file 'dahdi_cfg.c' |
4624 | --- dahdi_cfg.c 2011-03-13 23:45:36 +0000 |
4625 | +++ dahdi_cfg.c 2013-08-25 04:54:26 +0000 |
4626 | @@ -85,6 +85,13 @@ |
4627 | |
4628 | static struct dahdi_chanconfig cc[DAHDI_MAX_CHANNELS]; |
4629 | |
4630 | +static int current_span = 0; |
4631 | +static int only_span = 0; |
4632 | +static int restrict_channels = 0; |
4633 | +static int selected_channels[DAHDI_MAX_CHANNELS]; |
4634 | +static int chan2span[DAHDI_MAX_CHANNELS]; |
4635 | +static int declared_spans[DAHDI_MAX_SPANS]; |
4636 | + |
4637 | static struct dahdi_attach_echocan ae[DAHDI_MAX_CHANNELS]; |
4638 | |
4639 | static struct dahdi_dynamic_span zds[NUM_DYNAMIC]; |
4640 | @@ -176,16 +183,6 @@ |
4641 | } |
4642 | } |
4643 | |
4644 | -int ind_ioctl(int channo, int fd, int op, void *data) |
4645 | -{ |
4646 | - struct dahdi_indirect_data ind; |
4647 | - |
4648 | - ind.chan = channo; |
4649 | - ind.op = op; |
4650 | - ind.data = data; |
4651 | - return ioctl(fd, DAHDI_INDIRECT, &ind); |
4652 | -} |
4653 | - |
4654 | static void clear_fields() |
4655 | { |
4656 | |
4657 | @@ -238,6 +235,35 @@ |
4658 | return buf; |
4659 | } |
4660 | |
4661 | +static int skip_channel(int x) |
4662 | +{ |
4663 | + int spanno = chan2span[x]; |
4664 | + |
4665 | + if (restrict_channels) { |
4666 | + if (!selected_channels[x]) |
4667 | + return 1; |
4668 | + /* sanity check */ |
4669 | + if (only_span) { |
4670 | + if (spanno != 0 && only_span != spanno) { |
4671 | + fprintf(stderr, |
4672 | + "Only span %d. Skip selected channel %d from span %d\n", |
4673 | + only_span, x, spanno); |
4674 | + return 1; |
4675 | + } |
4676 | + } |
4677 | + } else { |
4678 | + if (only_span && !declared_spans[only_span]) { |
4679 | + fprintf(stderr, |
4680 | + "Error: analog span %d given to '-S', without '-C' restriction.\n", |
4681 | + only_span); |
4682 | + exit(1); |
4683 | + } |
4684 | + if (only_span && only_span != spanno) |
4685 | + return 1; |
4686 | + } |
4687 | + return 0; |
4688 | +} |
4689 | + |
4690 | static int parseargs(char *input, char *output[], int maxargs, char sep) |
4691 | { |
4692 | char *c; |
4693 | @@ -268,11 +294,10 @@ |
4694 | int dspanconfig(char *keyword, char *args) |
4695 | { |
4696 | static char *realargs[10]; |
4697 | - int argc; |
4698 | int res; |
4699 | int chans; |
4700 | int timing; |
4701 | - argc = res = parseargs(args, realargs, 4, ','); |
4702 | + res = parseargs(args, realargs, 4, ','); |
4703 | if (res != 4) { |
4704 | error("Incorrect number of arguments to 'dynamic' (should be <driver>,<address>,<num channels>, <timing>)\n"); |
4705 | return -1; |
4706 | @@ -321,6 +346,8 @@ |
4707 | error("Span number should be a valid span number, not '%s'\n", realargs[0]); |
4708 | return -1; |
4709 | } |
4710 | + current_span = span; |
4711 | + declared_spans[span] = 1; |
4712 | res = sscanf(realargs[1], "%d", &timing); |
4713 | if ((res != 1) || (timing < 0) || (timing > MAX_TIMING)) { |
4714 | error("Timing should be a number from 0 to %d, not '%s'\n", |
4715 | @@ -492,6 +519,7 @@ |
4716 | int master=0; |
4717 | int dacschan = 0; |
4718 | char *idle; |
4719 | + int is_digital; |
4720 | bzero(chans, sizeof(chans)); |
4721 | strtok(args, ":"); |
4722 | idle = strtok(NULL, ":"); |
4723 | @@ -503,6 +531,7 @@ |
4724 | if (res <= 0) |
4725 | return -1; |
4726 | for (x=1;x<DAHDI_MAX_CHANNELS;x++) { |
4727 | + is_digital = 0; |
4728 | if (chans[x]) { |
4729 | if (slineno[x]) { |
4730 | error("Channel %d already configured as '%s' at line %d\n", x, sig[x], slineno[x]); |
4731 | @@ -548,6 +577,7 @@ |
4732 | return -1; |
4733 | cc[x].sigtype = DAHDI_SIG_CAS; |
4734 | sig[x] = sigtype_to_str(cc[x].sigtype); |
4735 | + is_digital = 1; |
4736 | } else if (!strcasecmp(keyword, "dacs")) { |
4737 | /* Setup channel for monitor */ |
4738 | cc[x].idlebits = dacschan; |
4739 | @@ -558,6 +588,7 @@ |
4740 | cc[dacschan].sigtype = DAHDI_SIG_DACS; |
4741 | sig[x] = sigtype_to_str(cc[dacschan].sigtype); |
4742 | dacschan++; |
4743 | + is_digital = 1; |
4744 | } else if (!strcasecmp(keyword, "dacsrbs")) { |
4745 | /* Setup channel for monitor */ |
4746 | cc[x].idlebits = dacschan; |
4747 | @@ -567,6 +598,7 @@ |
4748 | cc[dacschan].idlebits = x; |
4749 | cc[dacschan].sigtype = DAHDI_SIG_DACS_RBS; |
4750 | sig[x] = sigtype_to_str(cc[dacschan].sigtype); |
4751 | + is_digital = 1; |
4752 | dacschan++; |
4753 | } else if (!strcasecmp(keyword, "unused")) { |
4754 | cc[x].sigtype = 0; |
4755 | @@ -574,6 +606,7 @@ |
4756 | } else if (!strcasecmp(keyword, "indclear") || !strcasecmp(keyword, "bchan")) { |
4757 | cc[x].sigtype = DAHDI_SIG_CLEAR; |
4758 | sig[x] = sigtype_to_str(cc[x].sigtype); |
4759 | + is_digital = 1; |
4760 | } else if (!strcasecmp(keyword, "clear")) { |
4761 | sig[x] = sigtype_to_str(DAHDI_SIG_CLEAR); |
4762 | if (master) { |
4763 | @@ -583,6 +616,7 @@ |
4764 | cc[x].sigtype = DAHDI_SIG_CLEAR; |
4765 | master = x; |
4766 | } |
4767 | + is_digital = 1; |
4768 | } else if (!strcasecmp(keyword, "rawhdlc")) { |
4769 | sig[x] = sigtype_to_str(DAHDI_SIG_HDLCRAW); |
4770 | if (master) { |
4771 | @@ -592,6 +626,7 @@ |
4772 | cc[x].sigtype = DAHDI_SIG_HDLCRAW; |
4773 | master = x; |
4774 | } |
4775 | + is_digital = 1; |
4776 | } else if (!strcasecmp(keyword, "nethdlc")) { |
4777 | sig[x] = sigtype_to_str(DAHDI_SIG_HDLCNET); |
4778 | memset(cc[x].netdev_name, 0, sizeof(cc[x].netdev_name)); |
4779 | @@ -605,6 +640,7 @@ |
4780 | } |
4781 | master = x; |
4782 | } |
4783 | + is_digital = 1; |
4784 | } else if (!strcasecmp(keyword, "fcshdlc")) { |
4785 | sig[x] = sigtype_to_str(DAHDI_SIG_HDLCFCS); |
4786 | if (master) { |
4787 | @@ -614,18 +650,26 @@ |
4788 | cc[x].sigtype = DAHDI_SIG_HDLCFCS; |
4789 | master = x; |
4790 | } |
4791 | + is_digital = 1; |
4792 | } else if (!strcasecmp(keyword, "dchan")) { |
4793 | sig[x] = "D-channel"; |
4794 | cc[x].sigtype = DAHDI_SIG_HDLCFCS; |
4795 | + is_digital = 1; |
4796 | } else if (!strcasecmp(keyword, "hardhdlc")) { |
4797 | sig[x] = "Hardware assisted D-channel"; |
4798 | cc[x].sigtype = DAHDI_SIG_HARDHDLC; |
4799 | + is_digital = 1; |
4800 | } else if (!strcasecmp(keyword, "mtp2")) { |
4801 | sig[x] = "MTP2"; |
4802 | cc[x].sigtype = DAHDI_SIG_MTP2; |
4803 | + is_digital = 1; |
4804 | } else { |
4805 | fprintf(stderr, "Huh? (%s)\n", keyword); |
4806 | } |
4807 | + if (is_digital) |
4808 | + chan2span[x] = current_span; |
4809 | + else |
4810 | + current_span = 0; |
4811 | } |
4812 | } |
4813 | return 0; |
4814 | @@ -677,6 +721,8 @@ |
4815 | int chanfd; |
4816 | |
4817 | for (x = 1; x < DAHDI_MAX_CHANNELS; x++) { |
4818 | + if (skip_channel(x)) |
4819 | + continue; |
4820 | chanfd = open("/dev/dahdi/channel", O_RDWR); |
4821 | if (chanfd == -1) { |
4822 | fprintf(stderr, |
4823 | @@ -765,13 +811,12 @@ |
4824 | int ctcss(char *keyword, char *args) |
4825 | { |
4826 | static char *realargs[10]; |
4827 | - int argc; |
4828 | int res; |
4829 | int rxtone; |
4830 | int rxtag; |
4831 | int txtone; |
4832 | int isdcs = 0; |
4833 | - argc = res = parseargs(args, realargs, 3, ','); |
4834 | + res = parseargs(args, realargs, 3, ','); |
4835 | if (res != 3) { |
4836 | error("Incorrect number of arguments to 'ctcss' (should be <rxtone>,<rxtag>,<txtone>)\n"); |
4837 | return -1; |
4838 | @@ -818,10 +863,9 @@ |
4839 | int dcsrx(char *keyword, char *args) |
4840 | { |
4841 | static char *realargs[10]; |
4842 | - int argc; |
4843 | int res; |
4844 | int rxtone; |
4845 | - argc = res = parseargs(args, realargs, 1, ','); |
4846 | + res = parseargs(args, realargs, 1, ','); |
4847 | if (res != 1) { |
4848 | error("Incorrect number of arguments to 'dcsrx' (should be <rxtone>)\n"); |
4849 | return -1; |
4850 | @@ -841,11 +885,10 @@ |
4851 | int tx(char *keyword, char *args) |
4852 | { |
4853 | static char *realargs[10]; |
4854 | - int argc; |
4855 | int res; |
4856 | int txtone; |
4857 | int isdcs = 0; |
4858 | - argc = res = parseargs(args, realargs, 1, ','); |
4859 | + res = parseargs(args, realargs, 1, ','); |
4860 | if (res != 1) { |
4861 | error("Incorrect number of arguments to 'tx' (should be <txtone>)\n"); |
4862 | return -1; |
4863 | @@ -870,10 +913,9 @@ |
4864 | int debounce_time(char *keyword, char *args) |
4865 | { |
4866 | static char *realargs[10]; |
4867 | - int argc; |
4868 | int res; |
4869 | int val; |
4870 | - argc = res = parseargs(args, realargs, 1, ','); |
4871 | + res = parseargs(args, realargs, 1, ','); |
4872 | if (res != 1) { |
4873 | error("Incorrect number of arguments to 'debouncetime' (should be <value>)\n"); |
4874 | return -1; |
4875 | @@ -893,10 +935,9 @@ |
4876 | int burst_time(char *keyword, char *args) |
4877 | { |
4878 | static char *realargs[10]; |
4879 | - int argc; |
4880 | int res; |
4881 | int val; |
4882 | - argc = res = parseargs(args, realargs, 1, ','); |
4883 | + res = parseargs(args, realargs, 1, ','); |
4884 | if (res != 1) { |
4885 | error("Incorrect number of arguments to 'bursttime' (should be <value>)\n"); |
4886 | return -1; |
4887 | @@ -916,10 +957,9 @@ |
4888 | int tx_gain(char *keyword, char *args) |
4889 | { |
4890 | static char *realargs[10]; |
4891 | - int argc; |
4892 | int res; |
4893 | int val; |
4894 | - argc = res = parseargs(args, realargs, 1, ','); |
4895 | + res = parseargs(args, realargs, 1, ','); |
4896 | if (res != 1) { |
4897 | error("Incorrect number of arguments to 'txgain' (should be <value>)\n"); |
4898 | return -1; |
4899 | @@ -937,10 +977,9 @@ |
4900 | int rx_gain(char *keyword, char *args) |
4901 | { |
4902 | static char *realargs[10]; |
4903 | - int argc; |
4904 | int res; |
4905 | int val; |
4906 | - argc = res = parseargs(args, realargs, 1, ','); |
4907 | + res = parseargs(args, realargs, 1, ','); |
4908 | if (res != 1) { |
4909 | error("Incorrect number of arguments to 'rxgain' (should be <value>)\n"); |
4910 | return -1; |
4911 | @@ -958,10 +997,9 @@ |
4912 | int de_emp(char *keyword, char *args) |
4913 | { |
4914 | static char *realargs[10]; |
4915 | - int argc; |
4916 | int res; |
4917 | int val; |
4918 | - argc = res = parseargs(args, realargs, 1, ','); |
4919 | + res = parseargs(args, realargs, 1, ','); |
4920 | if (res != 1) { |
4921 | error("Incorrect number of arguments to 'de-emp' (should be <value>)\n"); |
4922 | return -1; |
4923 | @@ -981,10 +1019,9 @@ |
4924 | int pre_emp(char *keyword, char *args) |
4925 | { |
4926 | static char *realargs[10]; |
4927 | - int argc; |
4928 | int res; |
4929 | int val; |
4930 | - argc = res = parseargs(args, realargs, 1, ','); |
4931 | + res = parseargs(args, realargs, 1, ','); |
4932 | if (res != 1) { |
4933 | error("Incorrect number of arguments to 'pre_emp' (should be <value>)\n"); |
4934 | return -1; |
4935 | @@ -1004,10 +1041,9 @@ |
4936 | int invert_cor(char *keyword, char *args) |
4937 | { |
4938 | static char *realargs[10]; |
4939 | - int argc; |
4940 | int res; |
4941 | int val; |
4942 | - argc = res = parseargs(args, realargs, 1, ','); |
4943 | + res = parseargs(args, realargs, 1, ','); |
4944 | if (res != 1) { |
4945 | error("Incorrect number of arguments to 'invertcor' (should be <value>)\n"); |
4946 | return -1; |
4947 | @@ -1031,10 +1067,9 @@ |
4948 | int ext_tone(char *keyword, char *args) |
4949 | { |
4950 | static char *realargs[10]; |
4951 | - int argc; |
4952 | int res; |
4953 | int val; |
4954 | - argc = res = parseargs(args, realargs, 1, ','); |
4955 | + res = parseargs(args, realargs, 1, ','); |
4956 | if (res != 1) { |
4957 | error("Incorrect number of arguments to 'exttone' (should be <value>)\n"); |
4958 | return -1; |
4959 | @@ -1060,11 +1095,10 @@ |
4960 | int cor_thresh(char *keyword, char *args) |
4961 | { |
4962 | static char *realargs[10]; |
4963 | - int argc; |
4964 | int res; |
4965 | int val; |
4966 | int x = 0; |
4967 | - argc = res = parseargs(args, realargs, 1, ','); |
4968 | + res = parseargs(args, realargs, 1, ','); |
4969 | if (res != 1) { |
4970 | error("Incorrect number of arguments to 'corthresh' (should be <value>)\n"); |
4971 | return -1; |
4972 | @@ -1091,6 +1125,7 @@ |
4973 | int res = 0; |
4974 | int x,i,n; |
4975 | struct dahdi_radio_param p; |
4976 | + int chanfd; |
4977 | |
4978 | toneindex = 1; |
4979 | bzero(chans, sizeof(chans)); |
4980 | @@ -1099,8 +1134,21 @@ |
4981 | return -1; |
4982 | for (x=1;x<DAHDI_MAX_CHANNELS;x++) { |
4983 | if (chans[x]) { |
4984 | + const char *CHANNEL_FILENAME = "/dev/dahdi/channel"; |
4985 | + chanfd = open(CHANNEL_FILENAME, O_RDWR); |
4986 | + if (-1 == chanfd) { |
4987 | + error("Failed to open '%s'.\n", CHANNEL_FILENAME); |
4988 | + exit(-1); |
4989 | + } |
4990 | + |
4991 | + res = ioctl(chanfd, DAHDI_SPECIFY, &x); |
4992 | + if (res) { |
4993 | + error("Failed to open channel %d.\n", x); |
4994 | + close(chanfd); |
4995 | + continue; |
4996 | + } |
4997 | p.radpar = DAHDI_RADPAR_NUMTONES; |
4998 | - if (ind_ioctl(x,fd,DAHDI_RADIO_GETPARAM,&p) == -1) |
4999 | + if (ioctl(chanfd,DAHDI_RADIO_GETPARAM,&p) == -1) |
5000 | n = 0; |
The diff has been truncated for viewing.
Thanks. Uploaded.