From: <kr...@us...> - 2006-07-27 14:57:31
|
Revision: 189 Author: krisk84 Date: 2006-07-27 07:57:19 -0700 (Thu, 27 Jul 2006) ViewCVS: http://svn.sourceforge.net/astlinux/?rev=189&view=rev Log Message: ----------- app_page fixes, app_pagecon, asterisk, zaptel, libpri source fixes Modified Paths: -------------- trunk/package/appconference/appconference.mk trunk/package/asterisk/asterisk.mk trunk/package/libpri/libpri.mk trunk/package/zaptel/zaptel.mk trunk/target/iso/target_skeleton/isolinux/initrd.img Added Paths: ----------- trunk/package/asterisk/app_pagecon.c trunk/package/asterisk/asterisk_excludepage.patch Modified: trunk/package/appconference/appconference.mk =================================================================== --- trunk/package/appconference/appconference.mk 2006-07-27 04:54:48 UTC (rev 188) +++ trunk/package/appconference/appconference.mk 2006-07-27 14:57:19 UTC (rev 189) @@ -24,7 +24,7 @@ touch $(APPCONFERENCE_DIR)/.configured $(APPCONFERENCE_TARGET_BINARY): $(APPCONFERENCE_DIR)/.configured - $(MAKE) ASTERISK_INCLUDE_DIR=$(BUILD_DIR)/asterisk/include PROC=$(ARCH) OSARCH=Linux CC=$(TARGET_CC) \ + $(MAKE1) ASTERISK_INCLUDE_DIR=$(BUILD_DIR)/asterisk/include PROC=$(ARCH) OSARCH=Linux CC=$(TARGET_CC) \ APP_CONFERENCE_DEBUG=0 -C $(APPCONFERENCE_DIR) $(INSTALL) -D -m 0755 $(APPCONFERENCE_DIR)/$(APPCONFERENCE_BINARY) $(APPCONFERENCE_TARGET_BINARY) $(STRIP) --strip-unneeded $(APPCONFERENCE_TARGET_BINARY) Added: trunk/package/asterisk/app_pagecon.c =================================================================== --- trunk/package/asterisk/app_pagecon.c (rev 0) +++ trunk/package/asterisk/app_pagecon.c 2006-07-27 14:57:19 UTC (rev 189) @@ -0,0 +1,276 @@ +/* + * Asterisk -- An open source telephony toolkit. + * + * Copyright (c) 2004 - 2006 Digium, Inc. All rights reserved. + * + * Mark Spencer <mar...@di...> + * + * This code is released under the GNU General Public License + * version 2.0. See LICENSE for more information. + * + * See http://www.asterisk.org for more information about + * the Asterisk project. Please do not directly contact + * any of the maintainers of this project for assistance; + * the project provides a web site, mailing lists and IRC + * channels for your use. + * + */ + +/*! \file + * + * \brief page() - Paging application + * + * \ingroup applications + */ + +#include <stdio.h> +#include <stdlib.h> +#include <unistd.h> +#include <string.h> +#include <errno.h> + +#include "asterisk.h" + +ASTERISK_FILE_VERSION(__FILE__, "$Revision: 19812 $") + +#include "asterisk/options.h" +#include "asterisk/logger.h" +#include "asterisk/channel.h" +#include "asterisk/pbx.h" +#include "asterisk/module.h" +#include "asterisk/file.h" +#include "asterisk/app.h" +#include "asterisk/chanvars.h" + + +static const char *tdesc = "Page Multiple Phones"; + +static const char *app_pagecon = "PageCon"; + +static const char *pagecon_synopsis = "Pages phones"; + +static const char *pagecon_descrip = +"PageCon(Technology/Resource&Technology2/Resource2[|options])\n" +" Places outbound calls to the given technology / resource and dumps\n" +"them into a conference bridge as muted participants. The original\n" +"caller is dumped into the conference as a speaker and the room is\n" +"destroyed when the original caller leaves. Valid options are:\n" +" d - full duplex audio\n" +" q - quiet, do not play beep to caller\n" +" e - exclude channels in use\n"; + +STANDARD_LOCAL_USER; + +LOCAL_USER_DECL; + +enum { + PAGE_DUPLEX = (1 << 0), + PAGE_QUIET = (1 << 1), + PAGE_EXCLUDE = (1 << 2), +} page_opt_flags; + +AST_APP_OPTIONS(page_opts, { + AST_APP_OPTION('d', PAGE_DUPLEX), + AST_APP_OPTION('q', PAGE_QUIET), + AST_APP_OPTION('e', PAGE_EXCLUDE) +}); + +struct calloutdata { + char cidnum[64]; + char cidname[64]; + char tech[64]; + char resource[256]; + char conferenceopts[64]; + struct ast_variable *variables; +}; + +static void *page_thread(void *data) +{ + struct calloutdata *cd = data; + ast_pbx_outgoing_app(cd->tech, AST_FORMAT_SLINEAR, cd->resource, 30000, + "Conference", cd->conferenceopts, NULL, 0, cd->cidnum, cd->cidname, cd->variables, NULL, NULL); + free(cd); + return NULL; +} + +static void launch_page(struct ast_channel *chan, const char *conferenceopts, const char *tech, const char *resource) +{ + struct calloutdata *cd; + const char *varname; + struct ast_variable *lastvar = NULL; + struct ast_var_t *varptr; + pthread_t t; + pthread_attr_t attr; + cd = malloc(sizeof(struct calloutdata)); + if (cd) { + memset(cd, 0, sizeof(struct calloutdata)); + ast_copy_string(cd->cidnum, chan->cid.cid_num ? chan->cid.cid_num : "", sizeof(cd->cidnum)); + ast_copy_string(cd->cidname, chan->cid.cid_name ? chan->cid.cid_name : "", sizeof(cd->cidname)); + ast_copy_string(cd->tech, tech, sizeof(cd->tech)); + ast_copy_string(cd->resource, resource, sizeof(cd->resource)); + ast_copy_string(cd->conferenceopts, conferenceopts, sizeof(cd->conferenceopts)); + + AST_LIST_TRAVERSE(&chan->varshead, varptr, entries) { + if (!(varname = ast_var_full_name(varptr))) + continue; + if (varname[0] == '_') { + struct ast_variable *newvar = NULL; + + if (varname[1] == '_') { + newvar = ast_variable_new(varname, ast_var_value(varptr)); + } else { + newvar = ast_variable_new(&varname[1], ast_var_value(varptr)); + } + + if (newvar) { + if (lastvar) + lastvar->next = newvar; + else + cd->variables = newvar; + lastvar = newvar; + } + } + } + + pthread_attr_init(&attr); + pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); + if (ast_pthread_create(&t, &attr, page_thread, cd)) { + ast_log(LOG_WARNING, "Unable to create paging thread: %s\n", strerror(errno)); + free(cd); + } + } +} + +static int pagecon_exec(struct ast_channel *chan, void *data) +{ + struct localuser *u; + char *options; + char *tech, *resource; + char conferenceopts[80]; + struct ast_flags flags = { 0 }; + unsigned int confid = rand(); + struct ast_app *app; + char *tmp; + int res=0; + char originator[AST_CHANNEL_NAME]; + char exclude_list[1024] = ""; + struct ast_channel *c = NULL, *bc = NULL; + char *cnameT; + int numchans = 0; + + + if (ast_strlen_zero(data)) { + ast_log(LOG_WARNING, "This application requires at least one argument (destination(s) to page)\n"); + return -1; + } + + LOCAL_USER_ADD(u); + + if (!(app = pbx_findapp("Conference"))) { + ast_log(LOG_WARNING, "There is no Conference application available!\n"); + LOCAL_USER_REMOVE(u); + return -1; + }; + + options = ast_strdupa(data); + if (!options) { + ast_log(LOG_ERROR, "Out of memory\n"); + LOCAL_USER_REMOVE(u); + return -1; + } + + ast_copy_string(originator, chan->name, sizeof(originator)); + if ((tmp = strchr(originator, '-'))) + *tmp = '\0'; + + tmp = strsep(&options, "|"); + if (options) + ast_app_parse_options(page_opts, &flags, NULL, options); + + snprintf(conferenceopts, sizeof(conferenceopts), "%u|%sq", confid, ast_test_flag(&flags, PAGE_DUPLEX) ? "" : "L"); + + if (ast_test_flag(&flags, PAGE_EXCLUDE)) { + while ((c = ast_channel_walk_locked(c)) != NULL) { + bc = ast_bridged_channel(c); + cnameT = c->name; + while((*cnameT != '-') && (*cnameT != '\0')) cnameT++; + *cnameT = '\0'; + + strcat(exclude_list, c->name); + strcat(exclude_list, "&"); + + numchans++; + ast_mutex_unlock(&c->lock); + } + + strcat(exclude_list, originator); + } + else + { + strcpy(exclude_list, originator); + } + + while ((tech = strsep(&tmp, "&"))) { + /* don't call the originating device */ + if (!strcasecmp(tech, exclude_list)) + continue; + + if ((resource = strchr(tech, '/'))) { + *resource++ = '\0'; + if (!strstr(exclude_list, resource)) { + launch_page(chan, conferenceopts, tech, resource); + } + } else { + ast_log(LOG_WARNING, "Incomplete destination '%s' supplied.\n", tech); + } + } + + if (!ast_test_flag(&flags, PAGE_QUIET)) { + res = ast_streamfile(chan, "beep", chan->language); + if (!res) + res = ast_waitstream(chan, ""); + } + if (!res) { + snprintf(conferenceopts, sizeof(conferenceopts), "%u|%sq", confid, ast_test_flag(&flags, PAGE_DUPLEX) ? "" : "S"); + pbx_exec(chan, app, conferenceopts, 1); + } + + LOCAL_USER_REMOVE(u); + + return -1; +} + +int unload_module(void) +{ + int res; + + res = ast_unregister_application(app_pagecon); + + STANDARD_HANGUP_LOCALUSERS; + + return res; +} + +int load_module(void) +{ + return ast_register_application(app_pagecon, pagecon_exec, pagecon_synopsis, pagecon_descrip); +} + +char *description(void) +{ + return (char *) tdesc; +} + +int usecount(void) +{ + int res; + + STANDARD_USECOUNT(res); + + return res; +} + +char *key() +{ + return ASTERISK_GPL_KEY; +} Modified: trunk/package/asterisk/asterisk.mk =================================================================== --- trunk/package/asterisk/asterisk.mk 2006-07-27 04:54:48 UTC (rev 188) +++ trunk/package/asterisk/asterisk.mk 2006-07-27 14:57:19 UTC (rev 189) @@ -5,7 +5,7 @@ ############################################################## ASTERISK_VERSION := 1.2.10 ASTERISK_SOURCE := asterisk-$(ASTERISK_VERSION).tar.gz -ASTERISK_SITE := ftp://ftp.digium.com/pub/asterisk +ASTERISK_SITE := ftp://ftp.digium.com/pub/asterisk/releases ASTERISK_DIR := $(BUILD_DIR)/asterisk-$(ASTERISK_VERSION) ASTERISK_BINARY := asterisk ASTERISK_TARGET_BINARY := usr/sbin/asterisk Added: trunk/package/asterisk/asterisk_excludepage.patch =================================================================== --- trunk/package/asterisk/asterisk_excludepage.patch (rev 0) +++ trunk/package/asterisk/asterisk_excludepage.patch 2006-07-27 14:57:19 UTC (rev 189) @@ -0,0 +1,79 @@ +--- asterisk-1.2.10/apps/app_page.c.orig 2006-07-25 11:13:25.000000000 -0400 ++++ asterisk-1.2.10/apps/app_page.c 2006-07-25 14:04:33.000000000 -0400 +@@ -56,7 +56,8 @@ + "caller is dumped into the conference as a speaker and the room is\n" + "destroyed when the original caller leaves. Valid options are:\n" + " d - full duplex audio\n" +-" q - quiet, do not play beep to caller\n"; ++" q - quiet, do not play beep to caller\n" ++" e - exclude channels in use\n"; + + STANDARD_LOCAL_USER; + +@@ -65,11 +66,13 @@ + enum { + PAGE_DUPLEX = (1 << 0), + PAGE_QUIET = (1 << 1), ++ PAGE_EXCLUDE = (1 << 2), + } page_opt_flags; + + AST_APP_OPTIONS(page_opts, { + AST_APP_OPTION('d', PAGE_DUPLEX), + AST_APP_OPTION('q', PAGE_QUIET), ++ AST_APP_OPTION('e', PAGE_EXCLUDE) + }); + + struct calloutdata { +@@ -150,6 +153,11 @@ + char *tmp; + int res=0; + char originator[AST_CHANNEL_NAME]; ++ char exclude_list[1024] = ""; ++ struct ast_channel *c = NULL, *bc = NULL; ++ char *cnameT; ++ int numchans = 0; ++ + + if (ast_strlen_zero(data)) { + ast_log(LOG_WARNING, "This application requires at least one argument (destination(s) to page)\n"); +@@ -180,15 +188,38 @@ + ast_app_parse_options(page_opts, &flags, NULL, options); + + snprintf(meetmeopts, sizeof(meetmeopts), "%ud|%sqxdw", confid, ast_test_flag(&flags, PAGE_DUPLEX) ? "" : "m"); ++ ++ if (ast_test_flag(&flags, PAGE_EXCLUDE)) { ++ while ((c = ast_channel_walk_locked(c)) != NULL) { ++ bc = ast_bridged_channel(c); ++ cnameT = c->name; ++ while((*cnameT != '-') && (*cnameT != '\0')) cnameT++; ++ *cnameT = '\0'; ++ ++ strcat(exclude_list, c->name); ++ strcat(exclude_list, "&"); ++ ++ numchans++; ++ ast_mutex_unlock(&c->lock); ++ } ++ ++ strcat(exclude_list, originator); ++ } ++ else ++ { ++ strcpy(exclude_list, originator); ++ } + + while ((tech = strsep(&tmp, "&"))) { + /* don't call the originating device */ +- if (!strcasecmp(tech, originator)) ++ if (!strcasecmp(tech, exclude_list)) + continue; + + if ((resource = strchr(tech, '/'))) { + *resource++ = '\0'; +- launch_page(chan, meetmeopts, tech, resource); ++ if (!strstr(exclude_list, resource)) { ++ launch_page(chan, meetmeopts, tech, resource); ++ } + } else { + ast_log(LOG_WARNING, "Incomplete destination '%s' supplied.\n", tech); + } Modified: trunk/package/libpri/libpri.mk =================================================================== --- trunk/package/libpri/libpri.mk 2006-07-27 04:54:48 UTC (rev 188) +++ trunk/package/libpri/libpri.mk 2006-07-27 14:57:19 UTC (rev 189) @@ -5,7 +5,7 @@ ############################################################## LIBPRI_VERSION := 1.2.3 LIBPRI_SOURCE := libpri-$(LIBPRI_VERSION).tar.gz -LIBPRI_SITE := ftp://ftp.digium.com/pub/libpri +LIBPRI_SITE := ftp://ftp.digium.com/pub/libpri/releases LIBPRI_DIR := $(BUILD_DIR)/libpri-$(LIBPRI_VERSION) LIBPRI_BINARY := libpri.so.1.0 LIBPRI_TARGET_BINARY := usr/lib/libpri.so.1.0 Modified: trunk/package/zaptel/zaptel.mk =================================================================== --- trunk/package/zaptel/zaptel.mk 2006-07-27 04:54:48 UTC (rev 188) +++ trunk/package/zaptel/zaptel.mk 2006-07-27 14:57:19 UTC (rev 189) @@ -5,7 +5,7 @@ ############################################################## ZAPTEL_VERSION := 1.2.7 ZAPTEL_SOURCE := zaptel-$(ZAPTEL_VERSION).tar.gz -ZAPTEL_SITE := ftp://ftp.digium.com/pub/zaptel +ZAPTEL_SITE := ftp://ftp.digium.com/pub/zaptel/releases ZAPTEL_DIR := $(BUILD_DIR)/zaptel-$(ZAPTEL_VERSION) ZAPTEL_BINARY := ztcfg ZAPTEL_TARGET_BINARY := sbin/ztcfg Modified: trunk/target/iso/target_skeleton/isolinux/initrd.img =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kr...@us...> - 2006-08-17 04:41:40
|
Revision: 272 Author: krisk84 Date: 2006-08-16 21:41:24 -0700 (Wed, 16 Aug 2006) ViewCVS: http://svn.sourceforge.net/astlinux/?rev=272&view=rev Log Message: ----------- root fs fixes Modified Paths: -------------- trunk/package/minihttpd/minihttpd.mk trunk/package/zaptel/zaptel.mk trunk/target/generic/target_skeleton/stat/etc/rc.conf Added Paths: ----------- trunk/package/minihttpd/www.tar.gz Removed Paths: ------------- trunk/target/generic/target_skeleton/stat/etc/zaptel.conf.sample trunk/target/generic/target_skeleton/stat/var/ trunk/target/generic/target_skeleton/usr/sbin/addmailbox trunk/target/generic/target_skeleton/usr/sbin/astgenkey Modified: trunk/package/minihttpd/minihttpd.mk =================================================================== --- trunk/package/minihttpd/minihttpd.mk 2006-08-17 01:05:51 UTC (rev 271) +++ trunk/package/minihttpd/minihttpd.mk 2006-08-17 04:41:24 UTC (rev 272) @@ -32,6 +32,8 @@ $(TARGET_DIR)/$(MINIHTTPD_TARGET_BINARY): $(MINIHTTPD_DIR)/$(MINIHTTPD_BINARY) $(INSTALL) -D $(MINIHTTPD_DIR)/$(MINIHTTPD_BINARY) $(TARGET_DIR)/usr/$(MINIHTTPD_TARGET_BINARY) $(INSTALL) -D $(MINIHTTPD_DIR)/htpasswd $(TARGET_DIR)/usr/bin/htpasswd + mkdir -p $(TARGET_DIR)/stat/var + $(MINIHTTPD_CAT) package/minihttpd/www.tar.gz | tar -C $(TARGET_DIR)/stat/var $(TAR_OPTIONS) - $(INSTALL) -D -m 0755 package/minihttpd/mini_httpd.init $(TARGET_DIR)/etc/init.d/mini_httpd ln -sf /tmp/etc/mini_httpd.conf $(TARGET_DIR)/etc/mini_httpd.conf Added: trunk/package/minihttpd/www.tar.gz =================================================================== (Binary files differ) Property changes on: trunk/package/minihttpd/www.tar.gz ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/package/zaptel/zaptel.mk =================================================================== --- trunk/package/zaptel/zaptel.mk 2006-08-17 01:05:51 UTC (rev 271) +++ trunk/package/zaptel/zaptel.mk 2006-08-17 04:41:24 UTC (rev 272) @@ -80,6 +80,7 @@ cp -a $(STAGING_DIR)/$(ZAPTEL_TARGET_BINARY) $(TARGET_DIR)/$(ZAPTEL_TARGET_BINARY) cp -a $(STAGING_DIR)/sbin/zttool $(TARGET_DIR)/sbin/zttool install -D -m 0755 $(ZAPTEL_DIR)/ztmonitor $(TARGET_DIR)/sbin/ztmonitor + install -D -m 0644 $(ZAPTEL_DIR)/zaptel.conf.sample $(TARGET_DIR)/stat/etc/zaptel.conf.sample -$(STRIP) -g $(TARGET_DIR)/lib/modules/$(LINUX_VER)/misc/*.ko -$(STRIP) -g $(TARGET_DIR)/lib/libtone* -$(STRIP) -g $(TARGET_DIR)/$(ZAPTEL_TARGET_BINARY) Modified: trunk/target/generic/target_skeleton/stat/etc/rc.conf =================================================================== --- trunk/target/generic/target_skeleton/stat/etc/rc.conf 2006-08-17 01:05:51 UTC (rev 271) +++ trunk/target/generic/target_skeleton/stat/etc/rc.conf 2006-08-17 04:41:24 UTC (rev 272) @@ -230,6 +230,11 @@ AUTOMODS="rtc 3c59x typhoon tulip eepro100 natsemi forcedeth 8139cp 8139too via-rhine pcnet32 acenic e1000 ns83820 r8169 tg3" +##LMSensors Modules +##List your hardware modules, seperated by spaces +##You will also need to create a sensors.conf +#SENSEMODS="vt1211" + ##Zaptel hardware support (NOT Sangoma - use "wancfg") ##These are the modules that will get loaded\unloaded by the Zaptel ## ##Init script. Please move the zaptel modules from /etc/rc.modules ## Deleted: trunk/target/generic/target_skeleton/stat/etc/zaptel.conf.sample =================================================================== --- trunk/target/generic/target_skeleton/stat/etc/zaptel.conf.sample 2006-08-17 01:05:51 UTC (rev 271) +++ trunk/target/generic/target_skeleton/stat/etc/zaptel.conf.sample 2006-08-17 04:41:24 UTC (rev 272) @@ -1,206 +0,0 @@ -# -# Zaptel Configuration File -# -# This file is parsed by the Zaptel Configurator, ztcfg -# -# -# First come the span definitions, in the format -# span=<span num>,<timing>,<line build out (LBO)>,<framing>,<coding>[,yellow] -# -# The timing parameter determines the selection of primary, secondary, and -# so on sync sources. If this span should be considered a primary sync -# source, then give it a value of "1". For a secondary, use "2", and so on. -# To not use this as a sync source, just use "0" -# -# The line build-out (or LBO) is an integer, from the following table: -# 0: 0 db (CSU) / 0-133 feet (DSX-1) -# 1: 133-266 feet (DSX-1) -# 2: 266-399 feet (DSX-1) -# 3: 399-533 feet (DSX-1) -# 4: 533-655 feet (DSX-1) -# 5: -7.5db (CSU) -# 6: -15db (CSU) -# 7: -22.5db (CSU) -# -# The framing is one of "d4" or "esf" for T1 or "cas" or "ccs" for E1 -# -# Note: "d4" could be referred to as "sf" or "superframe" -# -# The coding is one of "ami" or "b8zs" for T1 or "ami" or "hdb3" for E1 -# -# E1's may have the additional keyword "crc4" to enable CRC4 checking -# -# If the keyword "yellow" follows, yellow alarm is transmitted when no -# channels are open. -# -#span=1,0,0,esf,b8zs -#span=2,1,0,esf,b8zs -#span=3,0,0,ccs,hdb3,crc4 -# -# Next come the dynamic span definitions, in the form: -# dynamic=<driver>,<address>,<numchans>,<timing> -# -# Where <driver> is the name of the driver (e.g. eth), <address> is the -# driver specific address (like a MAC for eth), <numchans> is the number -# of channels, and <timing> is a timing priority, like for a normal span. -# use "0" to not use this as a timing source, or prioritize them as -# primary, secondard, etc. Note that you MUST have a REAL zaptel device -# if you are not using external timing. -# -# dynamic=eth,eth0/00:02:b3:35:43:9c,24,0 -# -# Next come the definitions for using the channels. The format is: -# <device>=<channel list> -# -# Valid devices are: -# -# "e&m" : Channel(s) are signalled using E&M signalling (specific -# implementation, such as Immediate, Wink, or Feature Group D -# are handled by the userspace library). -# "fxsls" : Channel(s) are signalled using FXS Loopstart protocol. -# "fxsgs" : Channel(s) are signalled using FXS Groundstart protocol. -# "fxsks" : Channel(s) are signalled using FXS Koolstart protocol. -# "fxols" : Channel(s) are signalled using FXO Loopstart protocol. -# "fxogs" : Channel(s) are signalled using FXO Groundstart protocol. -# "fxoks" : Channel(s) are signalled using FXO Koolstart protocol. -# "sf" : Channel(s) are signalled using in-band single freq tone. -# Syntax as follows: -# channel# => sf:<rxfreq>,<rxbw>,<rxflag>,<txfreq>,<txlevel>,<txflag> -# rxfreq is rx tone freq in hz, rxbw is rx notch (and decode) -# bandwith in hz (typically 10.0), rxflag is either 'normal' or -# 'inverted', txfreq is tx tone freq in hz, txlevel is tx tone -# level in dbm, txflag is either 'normal' or 'inverted'. Set -# rxfreq or txfreq to 0.0 if that tone is not desired. -# "unused" : No signalling is performed, each channel in the list remains idle -# "clear" : Channel(s) are bundled into a single span. No conversion or -# signalling is performed, and raw data is available on the master. -# "indclear": Like "clear" except all channels are treated individually and -# are not bundled. "bchan" is an alias for this. -# "rawhdlc" : The zaptel driver performs HDLC encoding and decoding on the -# bundle, and the resulting data is communicated via the master -# device. -# "fcshdlc" : The zapdel driver performs HDLC encoding and decoding on the -# bundle and also performs incoming and outgoing FCS insertion -# and verification. "dchan" is an alias for this. -# "nethdlc" : The zaptel driver bundles the channels together into an -# hdlc network device, which in turn can be configured with -# sethdlc (available separately). -# "dacs" : The zaptel driver cross connects the channels starting at -# the channel number listed at the end, after a colon -# "dacsrbs" : The zaptel driver cross connects the channels starting at -# the channel number listed at the end, after a colon and -# also performs the DACSing of RBS bits -# -# The channel list is a comma-separated list of channels or ranges, for -# example: -# -# 1,3,5 (channels one, three, and five) -# 16-23, 29 (channels 16 through 23, as well as channel 29 -# -# So, some complete examples are: -# e&m=1-12 -# nethdlc=13-24 -# fxsls=25,26,27,28 -# fxols=29-32 -# -#fxoks=1-24 -#bchan=25-47 -#dchan=48 -#fxols=1-12 -#fxols=13-24 -#e&m=25-29 -#nethdlc=30-33 -#clear=44 -#clear=45 -#clear=46 -#clear=47 -#fcshdlc=48 -#dacs=1-24:48 -#dacsrbs=1-24:48 -# -# Finally, you can preload some tone zones, to prevent them from getting -# overwritten by other users (if you allow non-root users to open /dev/zap/* -# interfaces anyway. Also this means they won't have to be loaded at runtime. -# The format is "loadzone=<zone>" where the zone is a two letter country code. -# -# You may also specify a default zone with "defaultzone=<zone>" where zone -# is a two letter country code. -# -# An up-to-date list of the zones can be found in the file zaptel/zonedata.c -# -loadzone = us -#loadzone = us-old -#loadzone=gr -#loadzone=it -#loadzone=fr -#loadzone=de -#loadzone=uk -#loadzone=fi -#loadzone=jp -#loadzone=sp -#loadzone=no -#loadzone=hu -#loadzone=lt -#loadzone=pl -defaultzone=us -# -# Section for PCI Radio Interface -# (see http://www.zapatatelephony.org/app_rpt.html) -# -# The PCI Radio Interface card interfaces up to 4 two-way radios (either -# a base/mobile radio or repeater system) to Zaptel channels. The driver -# may work either independent of an application, or with it, through -# the driver;s ioctl() interface. This file gives you access to specify -# load-time parameters for Radio channels, so that the driver may run -# by itself, and just act like a generic Zaptel radio interface. -# -# Unlike the rest of this file, you specify a block of parameters, and -# then the channel(s) to which they apply. CTCSS is specified as a frequency -# in tenths of hertz, for example 131.8 HZ is specified as 1318. DCS -# for receive is specified as the code directly, for example 223. DCS for -# transmit is specified as D and then the code, for example D223. -# -# The hardware supports a "community" CTCSS decoder system that has -# arbitrary transmit CTCSS or DCS codes associated with them, unlike -# traditional "community" systems that encode the same tone they decode. -# -# this example is a single tone DCS transmit and receive -# -# # specify the transmit tone (in DCS mode this stays constant) -# tx=D371 -# # specify the receive DCS code -# dcsrx=223 -# -# this example is a "community" CTCSS (if you only want a single tone, then -# only specify 1 in the ctcss list) -# -# # specify the default transmit tone (when not receiving) -# tx=1000 -# # Specify the receive freq, the tag (use 0 if none), and the transmit code. -# # The tag may be used by applications to determine classification of tones. -# # The tones are to be specified in order of presedence, most important first. -# # Currently, 15 tones may be specified.. -# ctcss=1318,1,1318 -# ctcss=1862,1,1862 -# -# The following parameters may be omitted if their default value is acceptible -# -# # set the receive debounce time in milliseconds -# debouncetime=123 -# # set the transmit quiet dropoff burst time in milliseconds -# bursttime=234 -# # set the COR level threshold (specified in tenths of millivolts) -# # valid values are {3125,6250,9375,12500,15625,18750,21875,25000} -# corthresh=12500 -# # Invert COR signal {y,n} -# invertcor=y -# # set the external tone mode; yes, no, internal {y,n,i} -# exttone=y -# -# Now apply the configuration to the specified channels: -# -# # We are all done with our channel parameters, so now we specify what -# # channels they apply to -# channels=1-4 - - Deleted: trunk/target/generic/target_skeleton/usr/sbin/addmailbox =================================================================== --- trunk/target/generic/target_skeleton/usr/sbin/addmailbox 2006-08-17 01:05:51 UTC (rev 271) +++ trunk/target/generic/target_skeleton/usr/sbin/addmailbox 2006-08-17 04:41:24 UTC (rev 272) @@ -1,45 +0,0 @@ -#!/bin/sh -clear -VMHOME=/var/spool/asterisk/voicemail -SNDHOME=/var/lib/asterisk/sounds -echo -echo "Enter Voicemail Context of the mailbox you are creating." -echo "The context is the value between the square brackets in" -echo "the voicemail.conf file." -echo "(DEFAULT: default)" -echo -n "Voicemail Context: " -read context -echo -echo "Enter the Mailbox number of the voicemail box you are creating." -echo -n "Mailbox Number: " -read mailbox - -context=${context:-default} - -if [ ! -e "${VMHOME}/${context}" ] - then - echo - echo "New Voicemail context.." - echo "Creating Voicemail context directory..." - mkdir -p ${VMHOME}/${context} -fi - -echo -echo "Creating Voicemail directory..." -mkdir -p ${VMHOME}/${context}/${mailbox} -echo "Creating INBOX..." -mkdir -p ${VMHOME}/${context}/${mailbox}/INBOX -echo "Creating Default greetings..." -cat ${SNDHOME}/vm-theperson.gsm > ${VMHOME}/${context}/${mailbox}/unavail.gsm -cat ${SNDHOME}/vm-theperson.gsm > ${VMHOME}/${context}/${mailbox}/busy.gsm -cat ${SNDHOME}/vm-extension.gsm > ${VMHOME}/${context}/${mailbox}/greet.gsm -nums=`echo $mailbox | sed 's/./ \0/g'` -for x in $nums; do - cat ${SNDHOME}/digits/${x}.gsm >> ${VMHOME}/${context}/${mailbox}/unavail.gsm - cat ${SNDHOME}/digits/${x}.gsm >> ${VMHOME}/${context}/${mailbox}/busy.gsm - cat ${SNDHOME}/digits/${x}.gsm >> ${VMHOME}/${context}/${mailbox}/greet.gsm -done -cat ${SNDHOME}/vm-isunavail.gsm >> ${VMHOME}/${context}/${mailbox}/unavail.gsm -cat ${SNDHOME}/vm-isonphone.gsm >> ${VMHOME}/${context}/${mailbox}/busy.gsm -echo "Complete." - Deleted: trunk/target/generic/target_skeleton/usr/sbin/astgenkey =================================================================== --- trunk/target/generic/target_skeleton/usr/sbin/astgenkey 2006-08-17 01:05:51 UTC (rev 271) +++ trunk/target/generic/target_skeleton/usr/sbin/astgenkey 2006-08-17 04:41:24 UTC (rev 272) @@ -1,61 +0,0 @@ -#!/bin/sh -# -# Usage: astgenkey [ -q ] [ -n ] [keyname] -# -DES3=-des3 -if [ "$1" = "-q" ]; then - QUIET='y' - if [ "$2" = "-n" ]; then - DES3= - KEY=$3 - else - KEY=$2 - fi -elif [ "$1" = "-n" ]; then - DES3= - if [ "$2" = "-q" ]; then - QUIET='y' - KEY=$3 - else - KEY=$2 - fi -else - KEY=$1 -fi - -if [ "$QUIET" != 'y' ]; then - echo "" - echo "This script generates an RSA private and public key pair" - echo "in PEM format for use by Asterisk. You will be asked to" - echo "enter a passcode for your key multiple times. Please" - echo "enter the same code each time. The resulting files will" - echo "need to be moved to /var/lib/asterisk/keys if you want" - echo "to use them, and any private keys (.key files) will" - echo "need to be initialized at runtime either by running" - echo "Asterisk with the '-i' option, or with the 'init keys'" - echo "command once Asterisk is running." - echo "" - echo "Press ENTER to continue or ^C to cancel." - read BLAH -fi - -while [ "$KEY" = "" ]; do - echo -n "Enter key name: " - read KEY -done - -rm -f ${KEY}.key ${KEY}.pub - -echo "Generating SSL key '$KEY': " -openssl genrsa -out ${KEY}.key ${DES3} 1024 -openssl rsa -in ${KEY}.key -pubout -out ${KEY}.pub - -if [ -f "${KEY}.key" ] && [ -f "${KEY}.pub" ]; then - if [ "$QUIET" != 'y' ]; then - echo "Key creation successful." - echo "Public key: ${KEY}.pub" - echo "Private key: ${KEY}.key" - fi -else - echo "Unknown error creating keys." -fi This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kr...@us...> - 2006-08-24 14:18:58
|
Revision: 327 Author: krisk84 Date: 2006-08-24 07:18:53 -0700 (Thu, 24 Aug 2006) ViewCVS: http://svn.sourceforge.net/astlinux/?rev=327&view=rev Log Message: ----------- upgrade to new asterisk, zaptel releases Modified Paths: -------------- trunk/package/asterisk/asterisk-nok6opt.patch trunk/package/asterisk/asterisk.mk trunk/package/zaptel/zaptel.mk Modified: trunk/package/asterisk/asterisk-nok6opt.patch =================================================================== --- trunk/package/asterisk/asterisk-nok6opt.patch 2006-08-22 06:03:07 UTC (rev 326) +++ trunk/package/asterisk/asterisk-nok6opt.patch 2006-08-24 14:18:53 UTC (rev 327) @@ -1,19 +1,19 @@ -diff -ur asterisk-1.2.10.orig/codecs/gsm/Makefile asterisk-1.2.10/codecs/gsm/Makefile ---- asterisk-1.2.10.orig/codecs/gsm/Makefile 2006-05-30 15:18:30.000000000 -0400 -+++ asterisk-1.2.10/codecs/gsm/Makefile 2006-08-19 16:33:00.000000000 -0400 +diff -ur asterisk-1.2.11.orig/codecs/gsm/Makefile asterisk-1.2.11/codecs/gsm/Makefile +--- asterisk-1.2.11.orig/codecs/gsm/Makefile 2006-07-24 13:05:56.000000000 -0400 ++++ asterisk-1.2.11/codecs/gsm/Makefile 2006-08-24 10:08:23.000000000 -0400 @@ -243,7 +243,7 @@ ifneq (${PROC},arm) ifneq ($(shell uname -m), parisc) - ifneq (${PROC}, s390) + ifneq ($(shell uname -m),s390) -GSM_SOURCES+= $(SRC)/k6opt.s +#GSM_SOURCES+= $(SRC)/k6opt.s endif endif endif -@@ -309,7 +309,7 @@ - ifneq ($(shell uname -m), sparc64) +@@ -310,7 +310,7 @@ ifneq ($(shell uname -m), armv4l) ifneq ($(shell uname -m), parisc) + ifneq ($(shell uname -m),s390) -GSM_OBJECTS+= $(SRC)/k6opt.o +#GSM_OBJECTS+= $(SRC)/k6opt.o endif Modified: trunk/package/asterisk/asterisk.mk =================================================================== --- trunk/package/asterisk/asterisk.mk 2006-08-22 06:03:07 UTC (rev 326) +++ trunk/package/asterisk/asterisk.mk 2006-08-24 14:18:53 UTC (rev 327) @@ -3,7 +3,7 @@ # asterisk # ############################################################## -ASTERISK_VERSION := 1.2.10 +ASTERISK_VERSION := 1.2.11 ASTERISK_SOURCE := asterisk-$(ASTERISK_VERSION).tar.gz ASTERISK_SITE := ftp://ftp.digium.com/pub/asterisk/releases ASTERISK_DIR := $(BUILD_DIR)/asterisk-$(ASTERISK_VERSION) Modified: trunk/package/zaptel/zaptel.mk =================================================================== --- trunk/package/zaptel/zaptel.mk 2006-08-22 06:03:07 UTC (rev 326) +++ trunk/package/zaptel/zaptel.mk 2006-08-24 14:18:53 UTC (rev 327) @@ -3,7 +3,7 @@ # zaptel # ############################################################## -ZAPTEL_VERSION := 1.2.7 +ZAPTEL_VERSION := 1.2.8 ZAPTEL_SOURCE := zaptel-$(ZAPTEL_VERSION).tar.gz ZAPTEL_SITE := ftp://ftp.digium.com/pub/zaptel/releases ZAPTEL_DIR := $(BUILD_DIR)/zaptel-$(ZAPTEL_VERSION) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dha...@us...> - 2007-12-04 18:41:54
|
Revision: 1427 http://astlinux.svn.sourceforge.net/astlinux/?rev=1427&view=rev Author: dhartman Date: 2007-12-04 10:41:33 -0800 (Tue, 04 Dec 2007) Log Message: ----------- zaptel 1.4 is backwards compatible with Asterisk 1.2 Modified Paths: -------------- trunk/package/zaptel/zaptel.mk Removed Paths: ------------- trunk/package/zaptel/zaptel-hires.patch trunk/package/zaptel/zaptel-makefile0.patch trunk/package/zaptel/zaptel-no64.patch trunk/package/zaptel/zaptel-tdmoe.patch Deleted: trunk/package/zaptel/zaptel-hires.patch =================================================================== --- trunk/package/zaptel/zaptel-hires.patch 2007-12-04 18:12:16 UTC (rev 1426) +++ trunk/package/zaptel/zaptel-hires.patch 2007-12-04 18:41:33 UTC (rev 1427) @@ -1,132 +0,0 @@ -diff -ur zaptel-1.2.19.orig/ztdummy.c zaptel-1.2.19/ztdummy.c ---- zaptel-1.2.19.orig/ztdummy.c 2007-01-31 14:01:33.000000000 -0500 -+++ zaptel-1.2.19/ztdummy.c 2007-08-27 15:02:08.000000000 -0400 -@@ -8,6 +8,12 @@ - * Unified by Mark Spencer <mar...@di...> - * Converted to use RTC on i386 by Tony Mountifield <to...@so...> - * -+ * Converted to use HighResTimers on i386 by Jeffery Palmer <je...@tr...> -+ * To use the newer high resolution timers, in your kernel CONFIG_HIGH_RES_TIMERS -+ * needs to be enabled (Processor type and features -> High Resolution Timer Support), -+ * and optionally, (Processor type and features -> HPET Timer Support) provides -+ * a better clock source. -+ * - * Copyright (C) 2002, Hermes Softlab - * Copyright (C) 2004, Digium, Inc. - * -@@ -46,7 +52,11 @@ - */ - #if defined(__i386__) || defined(__x86_64__) - #if LINUX_VERSION_CODE >= VERSION_CODE(2,6,13) -+#ifdef CONFIG_HIGH_RES_TIMERS -+#define USE_HIGHRESTIMER -+#else - #define USE_RTC -+#endif - #else - #if 0 - #define USE_RTC -@@ -70,6 +80,9 @@ - #include <asm/io.h> - #endif - #ifdef LINUX26 -+#ifdef USE_HIGHRESTIMER -+#include <linux/hrtimer.h> -+#endif - #ifdef USE_RTC - #include <linux/rtc.h> - #endif -@@ -96,7 +109,14 @@ - static int debug = 0; - - #ifdef LINUX26 --#ifndef USE_RTC -+#if defined(LINUX26) && defined(USE_HIGHRESTIMER) -+struct hrtimer zaptimer; -+static int count = 0; -+#endif -+ -+#define ZAPTEL_RATE 1000 -+ -+#if !defined(USE_RTC) && !defined(USE_HIGHRESTIMER) - /* New 2.6 kernel timer stuff */ - static struct timer_list timer; - #if HZ != 1000 -@@ -147,6 +167,34 @@ - zt_transmit(&ztd->span); - } - } -+#elif defined(USE_HIGHRESTIMER) -+static enum hrtimer_restart ztdummy_hr_int(struct hrtimer *htmr) -+{ -+ unsigned long overrun; -+ -+ /* Trigger Zaptel */ -+ zt_receive(&ztd->span); -+ zt_transmit(&ztd->span); -+ -+ /* Overrun should always return 1, since we are in the timer that expired. -+ * We should worry if overrun is 2 or more; then we really missed a tick */ -+ overrun = hrtimer_forward(&zaptimer, htmr->expires, ktime_set(0,ZAPTEL_RATE*1000)); -+ if(overrun > 1) { -+ if(printk_ratelimit()) -+ printk(KERN_NOTICE "ztdummy: HRTimer missed %lu ticks\n", overrun - 1); -+ } -+ -+ if(debug) { -+ /* Printk every 5 seconds, good test to see if timer is running properly */ -+ count++; -+ if(count == 5000) -+ printk(KERN_DEBUG "ztdummy: 5000 ticks from hrtimer\n"); -+ count = count % 5000; -+ } -+ -+ /* Always restart the timer */ -+ return HRTIMER_RESTART; -+} - #else - /* use kernel system tick timer if PC architecture RTC is not available */ - static void ztdummy_timer(unsigned long param) -@@ -220,12 +268,12 @@ - } - #endif - --#if defined(LINUX26) && !defined(USE_RTC) -+#if defined(LINUX26) && !defined(USE_RTC) && !defined(USE_HIGHRESTIMER) - if (HZ != 1000) { - printk("ztdummy: This module requires the kernel HZ setting to be 1000 ticks per second\n"); - return -ENODEV; - } --#endif /* defined(LINUX26) && !defined(USE_RTC) */ -+#endif /* defined(LINUX26) && !defined(USE_RTC) && !defined(USE_HIGHRESTIMER) */ - - ztd = kmalloc(sizeof(struct ztdummy), GFP_KERNEL); - if (ztd == NULL) { -@@ -255,6 +303,17 @@ - } - rtc_control(&ztd->rtc_task, RTC_IRQP_SET, 1024); /* 1024 Hz */ - rtc_control(&ztd->rtc_task, RTC_PIE_ON, 0); -+#elif defined(USE_HIGHRESTIMER) -+ printk("ztdummy: Trying to load High Resolution Timer\n"); -+ hrtimer_init(&zaptimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); -+ printk("ztdummy: Initialized High Resolution Timer\n"); -+ -+ /* Set timer callback function */ -+ zaptimer.function = ztdummy_hr_int; -+ -+ printk("ztdummy: Starting High Resolution Timer\n"); -+ hrtimer_start(&zaptimer, ktime_set(0,ZAPTEL_RATE*1000), HRTIMER_MODE_REL); -+ printk("ztdummy: High Resolution Timer started, good to go\n"); - #else - init_timer(&timer); - timer.function = ztdummy_timer; -@@ -294,6 +353,9 @@ - #ifdef USE_RTC - rtc_control(&ztd->rtc_task, RTC_PIE_OFF, 0); - rtc_unregister(&ztd->rtc_task); -+#elif defined(USE_HIGHRESTIMER) -+ /* Stop high resolution timer */ -+ hrtimer_cancel(&zaptimer); - #else - del_timer(&timer); - #endif Deleted: trunk/package/zaptel/zaptel-makefile0.patch =================================================================== --- trunk/package/zaptel/zaptel-makefile0.patch 2007-12-04 18:12:16 UTC (rev 1426) +++ trunk/package/zaptel/zaptel-makefile0.patch 2007-12-04 18:41:33 UTC (rev 1427) @@ -1,98 +0,0 @@ -Common subdirectories: zaptel-1.2.18.orig/build_tools and zaptel-1.2.18/build_tools -Common subdirectories: zaptel-1.2.18.orig/doc and zaptel-1.2.18/doc -Common subdirectories: zaptel-1.2.18.orig/hpec and zaptel-1.2.18/hpec -diff -u zaptel-1.2.18.orig/Makefile zaptel-1.2.18/Makefile ---- zaptel-1.2.18.orig/Makefile 2007-06-08 11:19:15.000000000 -0400 -+++ zaptel-1.2.18/Makefile 2007-06-29 15:11:21.000000000 -0400 -@@ -6,6 +6,7 @@ - # - - CFLAGS+=-DSTANDALONE_ZAPATA -DBUILDING_TONEZONE -+INSTALL_BASE=/usr - - ifeq ($(MAKELEVEL),0) - PWD:=$(shell pwd) -@@ -145,7 +146,7 @@ - MANDIR = /usr/share/man/man8 - MAN_PAGES_BASE = ztcfg - BINS=ztcfg torisatool makefw ztmonitor ztspeed zttest fxotune --ifneq (,$(wildcard /usr/include/newt.h)) -+ifneq (,$(wildcard ./newt.h)) - BINS+=zttool - MAN_PAGES_BASE += zttool - endif -@@ -230,13 +231,13 @@ - $(CC) -o $@ $^ - - tones.h: gendigits -- ./gendigits > $@ -+ gendigits > $@ - - tor2fw.h: makefw tormenta2.rbt -- ./makefw tormenta2.rbt tor2fw > tor2fw.h -+ makefw tormenta2.rbt tor2fw > tor2fw.h - - radfw.h: makefw pciradio.rbt -- ./makefw pciradio.rbt radfw > radfw.h -+ makefw pciradio.rbt radfw > radfw.h - - gendigits: gendigits.o - $(CC) -o $@ $^ -lm -@@ -351,13 +352,13 @@ - $(MAKE) -C mISDNuser install - - install: all devices firmware -- install -D -m 755 ztcfg $(INSTALL_PREFIX)/sbin/ztcfg -+ install -D -m 755 ztcfg $(INSTALL_PREFIX)/$(INSTALL_BASE)/sbin/ztcfg - if [ -f sethdlc-new ]; then \ -- install -D -m 755 sethdlc-new $(INSTALL_PREFIX)/sbin/sethdlc; \ -+ install -D -m 755 sethdlc-new $(INSTALL_PREFIX)/$(INSTALL_BASE)/sbin/sethdlc; \ - elif [ -f sethdlc ]; then \ -- install -D -m 755 sethdlc $(INSTALL_PREFIX)/sbin/sethdlc ; \ -+ install -D -m 755 sethdlc $(INSTALL_PREFIX)/$(INSTALL_BASE)/sbin/sethdlc ; \ - fi -- if [ -f zttool ]; then install -D -m 755 zttool $(INSTALL_PREFIX)/sbin/zttool; fi -+ if [ -f zttool ]; then install -D -m 755 zttool $(INSTALL_PREFIX)/$(INSTALL_BASE)/sbin/zttool; fi - install -d $(INSTALL_PREFIX)$(MANDIR) - install -m 644 $(MAN_PAGES) $(INSTALL_PREFIX)$(MANDIR) - ifeq ($(BUILDVER),linux26) -@@ -375,25 +376,18 @@ - rm -f $(INSTALL_PREFIX)/lib/modules/$(KVERS)/misc/wcfxsusb.o; \ - fi; \ - rm -f $(INSTALL_PREFIX)/lib/modules/$(KVERS)/misc/wcfxs.o -- install -D -m 755 $(LIBTONEZONE_SO) $(INSTALL_PREFIX)/usr/lib/$(LIBTONEZONE_SO).$(LIBTONEZONE_SO_MAJOR_VER).$(LIBTONEZONE_SO_MINOR_VER) -+ install -D -m 755 $(LIBTONEZONE_SO) $(INSTALL_PREFIX)/$(INSTALL_BASE)/lib/$(LIBTONEZONE_SO).$(LIBTONEZONE_SO_MAJOR_VER).$(LIBTONEZONE_SO_MINOR_VER) - [ `id -u` = 0 ] && /sbin/ldconfig || : -- rm -f $(INSTALL_PREFIX)/usr/lib/$(LIBTONEZONE_SO) -+ rm -f $(INSTALL_PREFIX)/$(INSTALL_BASE)/lib/$(LIBTONEZONE_SO) - ln -sf $(LIBTONEZONE_SO).$(LIBTONEZONE_SO_MAJOR_VER).$(LIBTONEZONE_SO_MINOR_VER) \ -- $(INSTALL_PREFIX)/usr/lib/$(LIBTONEZONE_SO).$(LIBTONEZONE_SO_MAJOR_VER) -+ $(INSTALL_PREFIX)/$(INSTALL_BASE)/lib/$(LIBTONEZONE_SO).$(LIBTONEZONE_SO_MAJOR_VER) - ln -sf $(LIBTONEZONE_SO).$(LIBTONEZONE_SO_MAJOR_VER).$(LIBTONEZONE_SO_MINOR_VER) \ -- $(INSTALL_PREFIX)/usr/lib/$(LIBTONEZONE_SO) -- if [ -x /usr/sbin/sestatus ] && (/usr/sbin/sestatus | grep "SELinux status:" | grep -q "enabled") ; then /sbin/restorecon -v $(INSTALL_PREFIX)/usr/lib/$(LIBTONEZONE_SO); fi -- install -D -m 644 zaptel.h $(INSTALL_PREFIX)/usr/include/linux/zaptel.h -- install -D -m 644 torisa.h $(INSTALL_PREFIX)/usr/include/linux/torisa.h -- install -D -m 644 tonezone.h $(INSTALL_PREFIX)/usr/include/tonezone.h -- install -m 644 doc/ztcfg.8 $(INSTALL_PREFIX)/usr/share/man/man8 -- install -m 644 doc/zttool.8 $(INSTALL_PREFIX)/usr/share/man/man8 -- [ `id -u` = 0 ] && /sbin/depmod -a $(KVERS) || : -- [ -f $(CONFIG_FILE) ] || install -D -m 644 zaptel.conf.sample $(CONFIG_FILE) -- build_tools/genmodconf $(BUILDVER) "$(INSTALL_PREFIX)" "$(filter-out zaptel ztdummy zttranscode wctc4xxp ztdynamic xpp_usb,$(MODULES)) $(MODULE_ALIASES)" -- @if [ -d /etc/modutils ]; then \ -- /sbin/update-modules ; \ -- fi -+ $(INSTALL_PREFIX)/$(INSTALL_BASE)/lib/$(LIBTONEZONE_SO) -+ install -D -m 644 zaptel.h $(INSTALL_PREFIX)/$(INSTALL_BASE)/include/linux/zaptel.h -+ install -D -m 644 torisa.h $(INSTALL_PREFIX)/$(INSTALL_BASE)/include/linux/torisa.h -+ install -D -m 644 tonezone.h $(INSTALL_PREFIX)/$(INSTALL_BASE)/include/tonezone.h -+ install -m 644 doc/ztcfg.8 $(INSTALL_PREFIX)/$(INSTALL_BASE)/share/man/man8 -+ install -m 644 doc/zttool.8 $(INSTALL_PREFIX)/$(INSTALL_BASE)/share/man/man8 - - install-udev: devices - -Only in zaptel-1.2.18: Makefile.orig -Common subdirectories: zaptel-1.2.18.orig/oct612x and zaptel-1.2.18/oct612x -Common subdirectories: zaptel-1.2.18.orig/wct4xxp and zaptel-1.2.18/wct4xxp -Common subdirectories: zaptel-1.2.18.orig/wctc4xxp and zaptel-1.2.18/wctc4xxp -Common subdirectories: zaptel-1.2.18.orig/xpp and zaptel-1.2.18/xpp Deleted: trunk/package/zaptel/zaptel-no64.patch =================================================================== --- trunk/package/zaptel/zaptel-no64.patch 2007-12-04 18:12:16 UTC (rev 1426) +++ trunk/package/zaptel/zaptel-no64.patch 2007-12-04 18:41:33 UTC (rev 1427) @@ -1,14 +0,0 @@ -diff -ur zaptel-1.2.19.orig/Makefile zaptel-1.2.19/Makefile ---- zaptel-1.2.19.orig/Makefile 2007-07-12 12:01:12.000000000 -0400 -+++ zaptel-1.2.19/Makefile 2007-09-13 12:13:50.000000000 -0400 -@@ -94,8 +94,8 @@ - INSTALL_PREFIX:=$(DESTDIR) - - CFLAGS+=-I. -O4 -g -Wall --CFLAGS_PPC:=$(shell if uname -m | grep -q ppc; then echo "-fsigned-char"; fi) --CFLAGS_X86-64:=$(shell if uname -m | grep -q x86_64; then echo "-m64"; fi) -+CFLAGS_PPC:= -+CFLAGS_X86-64:= - CFLAGS+=$(CFLAGS_PPC) $(CFLAGS_X86-64) - LCFLAGS:=-fPIC $(CFLAGS) -DBUILDING_TONEZONE - KFLAGS:=-I$(KINCLUDES) -O6 Deleted: trunk/package/zaptel/zaptel-tdmoe.patch =================================================================== --- trunk/package/zaptel/zaptel-tdmoe.patch 2007-12-04 18:12:16 UTC (rev 1426) +++ trunk/package/zaptel/zaptel-tdmoe.patch 2007-12-04 18:41:33 UTC (rev 1427) @@ -1,228 +0,0 @@ -diff -ur zaptel-1.2.9.orig/zaptel.h zaptel-1.2.9/zaptel.h ---- zaptel-1.2.9.orig/zaptel.h 2005-12-16 21:04:05.000000000 -0500 -+++ zaptel-1.2.9/zaptel.h 2006-09-11 11:26:38.000000000 -0400 -@@ -1359,6 +1359,9 @@ - /* Transmit a given message */ - int (*transmit)(void *tpipe, unsigned char *msg, int msglen); - -+ /* Flush any pending messages */ -+ int (*flush)(void); -+ - struct zt_dynamic_driver *next; - }; - -Only in zaptel-1.2.9: zaptel.h.orig -diff -ur zaptel-1.2.9.orig/ztd-eth.c zaptel-1.2.9/ztd-eth.c ---- zaptel-1.2.9.orig/ztd-eth.c 2005-11-29 13:42:08.000000000 -0500 -+++ zaptel-1.2.9/ztd-eth.c 2006-09-11 11:26:38.000000000 -0400 -@@ -56,6 +56,8 @@ - static spinlock_t zlock = SPIN_LOCK_UNLOCKED; - #endif - -+static struct sk_buff_head skbs; -+ - static struct ztdeth { - unsigned char addr[ETH_ALEN]; - unsigned short subaddr; /* Network byte order */ -@@ -171,7 +173,7 @@ - skb->dev = dev; - if (dev->hard_header) - dev->hard_header(skb, dev, ETH_P_ZTDETH, addr, dev->dev_addr, skb->len); -- dev_queue_xmit(skb); -+ skb_queue_tail(&skbs, skb); - } - } - else -@@ -179,6 +181,18 @@ - return 0; - } - -+ -+static int ztdeth_flush(void) -+{ -+ struct sk_buff *skb; -+ -+ /* Handle all transmissions now */ -+ while ((skb = skb_dequeue(&skbs))) { -+ dev_queue_xmit(skb); -+ } -+ return 0; -+} -+ - static struct packet_type ztdeth_ptype = { - type: __constant_htons(ETH_P_ZTDETH), /* Protocol */ - dev: NULL, /* Device (NULL = wildcard) */ -@@ -376,7 +390,8 @@ - "Ethernet", - ztdeth_create, - ztdeth_destroy, -- ztdeth_transmit -+ ztdeth_transmit, -+ ztdeth_flush - }; - - static struct notifier_block ztdeth_nblock = { -@@ -388,6 +403,9 @@ - dev_add_pack(&ztdeth_ptype); - register_netdevice_notifier(&ztdeth_nblock); - zt_dynamic_register(&ztd_eth); -+ -+ skb_queue_head_init(&skbs); -+ - return 0; - } - -diff -ur zaptel-1.2.9.orig/ztd-loc.c zaptel-1.2.9/ztd-loc.c ---- zaptel-1.2.9.orig/ztd-loc.c 2005-11-29 13:42:08.000000000 -0500 -+++ zaptel-1.2.9/ztd-loc.c 2006-09-11 11:26:38.000000000 -0400 -@@ -255,7 +255,8 @@ - "Local", - ztdlocal_create, - ztdlocal_destroy, -- ztdlocal_transmit -+ ztdlocal_transmit, -+ NULL /* flush */ - }; - - /*static*/ int __init ztdlocal_init(void) -diff -ur zaptel-1.2.9.orig/ztdynamic.c zaptel-1.2.9/ztdynamic.c ---- zaptel-1.2.9.orig/ztdynamic.c 2005-11-29 13:42:08.000000000 -0500 -+++ zaptel-1.2.9/ztdynamic.c 2006-09-11 11:26:38.000000000 -0400 -@@ -132,6 +132,12 @@ - static spinlock_t dlock = SPIN_LOCK_UNLOCKED; - #endif - -+#ifdef DEFINE_RWLOCK -+static DEFINE_RWLOCK(drvlock); -+#else -+static rwlock_t drvlock = RW_LOCK_UNLOCKED; -+#endif -+ - static void checkmaster(void) - { - unsigned long flags; -@@ -142,15 +148,13 @@ - z = dspans; - while(z) { - if (z->timing) { -- if (z->timing) { -- z->master = 0; -- newhasmaster = 1; -- if (!z->alarm && (z->timing < best) && !z->dead) { -- /* If not in alarm and they're -- a better timing source, use them */ -- master = z; -- best = z->timing; -- } -+ z->master = 0; -+ newhasmaster = 1; -+ if (!z->alarm && (z->timing < best) && !z->dead) { -+ /* If not in alarm and they're -+ a better timing source, use them */ -+ master = z; -+ best = z->timing; - } - } - z = z->next; -@@ -230,6 +234,7 @@ - { - unsigned long flags; - struct zt_dynamic *z; -+ struct zt_dynamic_driver *drv; - int y; - spin_lock_irqsave(&dlock, flags); - z = dspans; -@@ -248,6 +253,17 @@ - z = z->next; - } - spin_unlock_irqrestore(&dlock, flags); -+ -+ read_lock(&drvlock); -+ drv = drivers; -+ while(drv) { -+ /* Flush any traffic still pending in the driver */ -+ if (drv->flush) { -+ drv->flush(); -+ } -+ drv = drv->next; -+ } -+ read_unlock(&drvlock); - } - - #ifdef ENABLE_TASKLETS -@@ -275,7 +291,7 @@ - int x, bits, sig; - int nchans, master; - int newalarm; -- unsigned short rxpos; -+ unsigned short rxpos, rxcnt; - - - spin_lock_irqsave(&dlock, flags); -@@ -373,6 +389,9 @@ - - master = ztd->master; - -+ rxcnt = ztd->rxcnt; -+ ztd->rxcnt = rxpos+1; -+ - spin_unlock_irqrestore(&dlock, flags); - - /* Check for Yellow alarm */ -@@ -388,6 +407,10 @@ - /* Keep track of last received packet */ - ztd->rxjif = jiffies; - -+ /* note if we had a missing packet */ -+ // if (rxpos != rxcnt) -+ // printk("Span %s: Expected seq no %d, but received %d instead\n", span->name, rxcnt, rxpos); -+ - /* If this is our master span, then run everything */ - if (master) - ztdynamic_run(); -@@ -710,14 +733,14 @@ - { - unsigned long flags; - int res = 0; -- spin_lock_irqsave(&dlock, flags); -+ write_lock_irqsave(&drvlock, flags); - if (find_driver(dri->name)) - res = -1; - else { - dri->next = drivers; - drivers = dri; - } -- spin_unlock_irqrestore(&dlock, flags); -+ write_unlock_irqrestore(&drvlock, flags); - return res; - } - -@@ -726,7 +749,7 @@ - struct zt_dynamic_driver *cur, *prev=NULL; - struct zt_dynamic *z, *zp, *zn; - unsigned long flags; -- spin_lock_irqsave(&dlock, flags); -+ write_lock_irqsave(&drvlock, flags); - cur = drivers; - while(cur) { - if (cur == dri) { -@@ -739,6 +762,8 @@ - prev = cur; - cur = cur->next; - } -+ write_unlock_irqrestore(&drvlock, flags); -+ spin_lock_irqsave(&dlock, flags); - z = dspans; - zp = NULL; - while(z) { -@@ -773,8 +798,8 @@ - z = dspans; - while(z) { - newalarm = z->span.alarms & ~ZT_ALARM_RED; -- /* If nothing received for a minute, consider that RED ALARM */ -- if ((jiffies - z->rxjif) > 1000 / HZ) { -+ /* If nothing received for a second, consider that RED ALARM */ -+ if ((jiffies - z->rxjif) > 1 * HZ) { - newalarm |= ZT_ALARM_RED; - if (z->span.alarms != newalarm) { - z->span.alarms = newalarm; Modified: trunk/package/zaptel/zaptel.mk =================================================================== --- trunk/package/zaptel/zaptel.mk 2007-12-04 18:12:16 UTC (rev 1426) +++ trunk/package/zaptel/zaptel.mk 2007-12-04 18:41:33 UTC (rev 1427) @@ -3,12 +3,13 @@ # zaptel # ############################################################## -ZAPTEL_VERSION := 1.2.19 +ZAPTEL_VERSION := 1.4.7 ZAPTEL_SOURCE := zaptel-$(ZAPTEL_VERSION).tar.gz ZAPTEL_SITE := http://downloads.digium.com/pub/zaptel/releases ZAPTEL_DIR := $(BUILD_DIR)/zaptel-$(ZAPTEL_VERSION) ZAPTEL_BINARY := ztcfg ZAPTEL_TARGET_BINARY := sbin/ztcfg +PERLLIBDIR := $(shell eval `perl -V:sitelib`; echo "$$sitelib") LINUX_VER=$(LINUX_VERSION) @@ -16,13 +17,6 @@ ZAPWAN=wanpipe endif -ifeq ($(strip $(BR2_PACKAGE_UDEV)),y) -ZAPUDEV=udev -ZAPHOTPLUG=yes -else -ZAPHOTPLUG=no -endif - ZAPTEL_TARGET_ARCH:=$(shell echo $(ARCH) | sed -e s'/-.*//' \ -e 's/i.86/i386/' \ -e 's/sparc.*/sparc/' \ @@ -50,55 +44,43 @@ touch $(ZAPTEL_DIR)/.source $(ZAPTEL_DIR)/.configured: $(ZAPTEL_DIR)/.source - touch $(ZAPTEL_DIR)/.configured + (cd $(ZAPTEL_DIR); rm -rf config.cache; \ + $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD=$(HOSTCC) \ + CFLAGS="$(TARGET_CFLAGS)" \ + ./configure \ + --target=$(GNU_TARGET_NAME) \ + --host=$(GNU_TARGET_NAME) \ + --build=$(GNU_HOST_NAME) \ + --prefix=/ \ + --exec-prefix=/usr \ + --libdir=/usr/lib \ + --includedir=/usr/include \ + --datadir=/usr/share \ + --sysconfdir=/etc \ + ); + touch $(ZAPTEL_DIR)/.configured; $(ZAPTEL_DIR)/$(ZAPTEL_BINARY): $(ZAPTEL_DIR)/.configured - $(MAKE) -C $(ZAPTEL_DIR) CC=gcc PATH="$(ZAPTEL_DIR):$(PATH)" \ - makefw gendigits tor2fw.h radfw.h #hack - $(MAKE) -C $(ZAPTEL_DIR) CC=$(TARGET_CC) ARCH=$(ZAPTEL_TARGET_ARCH) \ - PROC=$(OPTIMIZE_FOR_CPU) KSRC=$(BUILD_DIR)/linux KVERS=$(LINUX_VER) \ - $(TARGET_CONFIGURE_OPTS) PATH="$(ZAPTEL_DIR):$(PATH)" ZTTOOL=zttool \ - HOTPLUG_FIRMWARE=$(ZAPHOTPLUG) INSTALL_BASE=/ PWD=$(ZAPTEL_DIR) + $(MAKE) -C $(ZAPTEL_DIR) HOSTCC=gcc CC=$(TARGET_CC) DEB_HOST_GNU_TYPE=$(ZAPTEL_TARGET_ARCH) \ + KVERS=$(LINUX_VER) KSRC=$(LINUX_DIR) PWD=$(ZAPTEL_DIR) modules programs $(TARGET_DIR)/$(ZAPTEL_TARGET_BINARY): $(ZAPTEL_DIR)/$(ZAPTEL_BINARY) - mkdir -p $(STAGING_DIR)/etc/udev/rules.d #hack to get install to work... - mkdir -p $(STAGING_DIR)/share/man/man8 #yet another hack... - cp $(STAGING_DIR)/include/newt.h $(ZAPTEL_DIR)/. #hack to get zttool to compile - mkdir -p $(STAGING_DIR)/lib/modules/$(LINUX_VER)/misc - $(MAKE) -C $(ZAPTEL_DIR) CC=$(TARGET_CC) PROC=$(OPTIMIZE_FOR_CPU) ARCH=$(ZAPTEL_TARGET_ARCH) \ - KSRC=$(BUILD_DIR)/linux KVERS=$(LINUX_VER) $(TARGET_CONFIGURE_OPTS) PATH="$(ZAPTEL_DIR):$(PATH)" \ - INSTALL_PREFIX=$(STAGING_DIR) INSTALL_BASE=/ ZTTOOL=zttool PWD=$(ZAPTEL_DIR) HOTPLUG_FIRMWARE=$(ZAPHOTPLUG) \ - install - mkdir -p $(STAGING_DIR)/usr/include/linux - cp -a $(STAGING_DIR)/include/linux/zaptel.h $(STAGING_DIR)/usr/include/linux/zaptel.h #Hack for Asterisk to find us - cp -a $(STAGING_DIR)/lib/modules/$(LINUX_VER)/misc $(TARGET_DIR)/lib/modules/$(LINUX_VER)/ - cp -a $(STAGING_DIR)/lib/libtone*so* $(TARGET_DIR)/lib/ - cp -a $(STAGING_DIR)/$(ZAPTEL_TARGET_BINARY) $(TARGET_DIR)/$(ZAPTEL_TARGET_BINARY) - cp -a $(STAGING_DIR)/sbin/zttool $(TARGET_DIR)/sbin/zttool -ifeq ($(strip $(BR2_PACKAGE_UDEV)),y) - $(INSTALL) -D -m 0644 $(STAGING_DIR)/etc/udev/rules.d/zaptel.rules $(TARGET_DIR)/etc/udev/rules.d/zaptel.rules -endif - $(INSTALL) -D -m 0755 $(ZAPTEL_DIR)/ztmonitor $(TARGET_DIR)/sbin/ztmonitor - $(INSTALL) -D -m 0755 $(ZAPTEL_DIR)/zttool $(TARGET_DIR)/sbin/zttool - $(INSTALL) -D -m 0755 $(ZAPTEL_DIR)/zttest $(TARGET_DIR)/sbin/zttest - $(INSTALL) -D -m 0755 $(ZAPTEL_DIR)/ztspeed $(TARGET_DIR)/sbin/ztspeed - $(INSTALL) -D -m 0755 $(ZAPTEL_DIR)/fxotune $(TARGET_DIR)/sbin/fxotune - $(INSTALL) -D -m 0755 $(ZAPTEL_DIR)/torisatool $(TARGET_DIR)/sbin/torisatool - $(INSTALL) -D -m 0644 $(ZAPTEL_DIR)/zaptel.conf.sample $(TARGET_DIR)/stat/etc/zaptel.conf.sample - -$(STRIP) -g $(TARGET_DIR)/lib/modules/$(LINUX_VER)/misc/*.ko - -$(STRIP) -g $(TARGET_DIR)/lib/libtone* - -$(STRIP) -g $(TARGET_DIR)/$(ZAPTEL_TARGET_BINARY) - -$(STRIP) -g $(TARGET_DIR)/sbin/zttool - -$(STRIP) -g $(TARGET_DIR)/sbin/ztmonitor - -$(STRIP) -g $(TARGET_DIR)/sbin/zttest - -$(STRIP) -g $(TARGET_DIR)/sbin/ztspeed - -$(STRIP) -g $(TARGET_DIR)/sbin/fxotune - -$(STRIP) -g $(TARGET_DIR)/sbin/torisatool - $(DEPMOD) -ae -F $(BUILD_DIR)/linux/System.map -b $(BUILD_DIR)/root -r $(LINUX_VER) + mkdir -p $(TARGET_DIR)/$(PERLLIBDIR) + $(MAKE1) -C $(ZAPTEL_DIR) HOSTCC=gcc CC=$(TARGET_CC) DEB_HOST_GNU_TYPE=$(ZAPTEL_TARGET_ARCH) \ + DESTDIR=$(STAGING_DIR) KVERS=$(LINUX_VER) KSRC=$(LINUX_DIR) PWD=$(ZAPTEL_DIR) \ + install-libs install-include + $(MAKE1) -C $(ZAPTEL_DIR) HOSTCC=gcc CC=$(TARGET_CC) DEB_HOST_GNU_TYPE=$(ZAPTEL_TARGET_ARCH) \ + DESTDIR=$(TARGET_DIR) KVERS=$(LINUX_VER) KSRC=$(LINUX_DIR) PWD=$(ZAPTEL_DIR) \ + install-programs install-libs install-modules + -rm -rf $(TARGET_DIR)/usr/include + -rm -f $(TARGET_DIR)/usr/lib/*.a + -rm -rf $(TARGET_DIR)/$(PERLLIBDIR) + -$(STRIP) $(TARGET_DIR)/sbin/zt* $(TARGET_DIR)/usr/lib/libtone* + $(DEPMOD) -ae -F $(LINUX_DIR)/System.map -b $(TARGET_DIR) -r $(LINUX_VER) $(INSTALL) -D -m 755 package/zaptel/zaptel.init $(TARGET_DIR)/etc/init.d/zaptel ln -sf /tmp/etc/zaptel.conf $(TARGET_DIR)/etc/zaptel.conf -zaptel: uclibc linux newt $(ZAPUDEV) $(ZAPWAN) $(TARGET_DIR)/$(ZAPTEL_TARGET_BINARY) +zaptel: uclibc newt $(TARGET_DIR)/$(ZAPTEL_TARGET_BINARY) zaptel-source: $(DL_DIR)/$(ZAPTEL_SOURCE) @@ -109,12 +91,10 @@ rm -Rf $(STAGING_DIR)/usr/include/zaptel.h rm -Rf $(TARGET_DIR)/lib/libtone* rm -Rf $(STAGING_DIR)/lib/modules/$(LINUX_VER)/misc - $(DEPMOD) -ae -F $(BUILD_DIR)/linux/System.map -b $(BUILD_DIR)/root -r $(LINUX_VER) - rm -Rf $(BUILD_DIR)/zaptel - -$(MAKE) -C $(ZAPTEL_DIR) CC=$(TARGET_CC) ARCH=$(ZAPTEL_TARGET_ARCH) \ - PROC=$(OPTIMIZE_FOR_CPU) KSRC=$(BUILD_DIR)/linux KVERS=$(LINUX_VER) \ - $(TARGET_CONFIGURE_OPTS) PATH="$(ZAPTEL_DIR):$(PATH)" ZTTOOL=zttool INSTALL_BASE=/ \ - PWD=$(ZAPTEL_DIR) clean + $(DEPMOD) -ae -F $(LINUX_DIR)/System.map -b $(BUILD_DIR)/root -r $(LINUX_VER) + rm $(BUILD_DIR)/zaptel + -$(MAKE) -C $(ZAPTEL_DIR) -C $(ZAPTEL_DIR) HOSTCC=gcc CC=$(TARGET_CC) DEB_HOST_GNU_TYPE=$(ZAPTEL_TARGET_ARCH) \ + INSTALL_PREFIX=$(STAGING_DIR) KVERS=$(LINUX_VER) KSRC=$(LINUX_DIR) clean zaptel-dirclean: rm -rf $(ZAPTEL_DIR) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kr...@us...> - 2008-01-04 17:21:14
|
Revision: 1477 http://astlinux.svn.sourceforge.net/astlinux/?rev=1477&view=rev Author: krisk84 Date: 2008-01-04 09:21:14 -0800 (Fri, 04 Jan 2008) Log Message: ----------- merge zaptel changes from asterisk-beta Modified Paths: -------------- trunk/package/zaptel/zaptel.mk Added Paths: ----------- trunk/package/zaptel/zaptel-Makefile.patch Added: trunk/package/zaptel/zaptel-Makefile.patch =================================================================== --- trunk/package/zaptel/zaptel-Makefile.patch (rev 0) +++ trunk/package/zaptel/zaptel-Makefile.patch 2008-01-04 17:21:14 UTC (rev 1477) @@ -0,0 +1,26 @@ +--- zaptel/Makefile 2007-11-10 19:22:57.000000000 -0600 ++++ zaptel/Makefile.new 2007-12-31 07:27:19.000000000 -0600 +@@ -11,7 +11,7 @@ ifeq ($(MAKELEVEL),0) + PWD:=$(shell pwd) + endif + +-ARCH:=$(shell uname -m | sed -e s/i.86/i386/) ++ARCH:=i386 + + ifeq ($(DEB_HOST_GNU_TYPE),) + UNAME_M:=$(shell uname -m) +@@ -140,12 +140,8 @@ endif + + OPTFLAG=-O2 + CFLAGS+=-I. $(OPTFLAGS) -g -fPIC -Wall -DBUILDING_TONEZONE #-DTONEZONE_DRIVER +-ifneq (,$(findstring ppc,$(UNAME_M))) +-CFLAGS_PPC:=-fsigned-char +-endif +-ifneq (,$(findstring x86_64,$(UNAME_M))) +-CFLAGS_x86_64:=-m64 +-endif ++CFLAGS_PPC:= ++CFLAGS_X86-64:= + CFLAGS+=$(CFLAGS_PPC) $(CFLAGS_x86_64) + KFLAGS=-I$(KINCLUDES) -O6 + KFLAGS+=-DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -I$(KSRC)/drivers/net \ Modified: trunk/package/zaptel/zaptel.mk =================================================================== --- trunk/package/zaptel/zaptel.mk 2008-01-04 17:20:35 UTC (rev 1476) +++ trunk/package/zaptel/zaptel.mk 2008-01-04 17:21:14 UTC (rev 1477) @@ -3,7 +3,7 @@ # zaptel # ############################################################## -ZAPTEL_VERSION := 1.4.7 +ZAPTEL_VERSION := 1.4.7.1 ZAPTEL_SOURCE := zaptel-$(ZAPTEL_VERSION).tar.gz ZAPTEL_SITE := http://downloads.digium.com/pub/zaptel/releases ZAPTEL_DIR := $(BUILD_DIR)/zaptel-$(ZAPTEL_VERSION) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dha...@us...> - 2008-03-22 23:26:40
|
Revision: 1679 http://astlinux.svn.sourceforge.net/astlinux/?rev=1679&view=rev Author: dhartman Date: 2008-03-22 16:26:45 -0700 (Sat, 22 Mar 2008) Log Message: ----------- zaptel version bump Modified Paths: -------------- trunk/package/zaptel/zaptel-zconfig.patch trunk/package/zaptel/zaptel.mk Modified: trunk/package/zaptel/zaptel-zconfig.patch =================================================================== --- trunk/package/zaptel/zaptel-zconfig.patch 2008-03-22 21:13:26 UTC (rev 1678) +++ trunk/package/zaptel/zaptel-zconfig.patch 2008-03-22 23:26:45 UTC (rev 1679) @@ -1,6 +1,6 @@ -diff -ur zaptel-1.2.19.orig/zconfig.h zaptel-1.2.19/zconfig.h +diff -ur zaptel-1.2.19.orig/zconfig.h zaptel-1.2.19/kernel/zconfig.h --- zaptel-1.2.19.orig/zconfig.h 2007-04-24 14:33:29.000000000 -0400 -+++ zaptel-1.2.19/zconfig.h 2007-10-19 01:08:49.000000000 -0400 ++++ zaptel-1.2.19/kernel/zconfig.h 2007-10-19 01:08:49.000000000 -0400 @@ -109,7 +109,7 @@ * Uncomment CONFIG_ZAPATA_NET to enable SyncPPP, CiscoHDLC, and Frame Relay * support. Modified: trunk/package/zaptel/zaptel.mk =================================================================== --- trunk/package/zaptel/zaptel.mk 2008-03-22 21:13:26 UTC (rev 1678) +++ trunk/package/zaptel/zaptel.mk 2008-03-22 23:26:45 UTC (rev 1679) @@ -3,7 +3,7 @@ # zaptel # ############################################################## -ZAPTEL_VERSION := 1.4.7.1 +ZAPTEL_VERSION := 1.4.9.2 ZAPTEL_SOURCE := zaptel-$(ZAPTEL_VERSION).tar.gz ZAPTEL_SITE := http://downloads.digium.com/pub/zaptel/releases ZAPTEL_DIR := $(BUILD_DIR)/zaptel-$(ZAPTEL_VERSION) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kr...@us...> - 2008-03-29 17:08:53
|
Revision: 1707 http://astlinux.svn.sourceforge.net/astlinux/?rev=1707&view=rev Author: krisk84 Date: 2008-03-29 10:08:54 -0700 (Sat, 29 Mar 2008) Log Message: ----------- fixup zaptel options, fix xppp problems Modified Paths: -------------- trunk/package/zaptel/zaptel.mk Added Paths: ----------- trunk/package/zaptel/zaptel-xppMakefile.patch Added: trunk/package/zaptel/zaptel-xppMakefile.patch =================================================================== --- trunk/package/zaptel/zaptel-xppMakefile.patch (rev 0) +++ trunk/package/zaptel/zaptel-xppMakefile.patch 2008-03-29 17:08:54 UTC (rev 1707) @@ -0,0 +1,21 @@ +diff -ur zaptel-1.4.9.2.orig/kernel/xpp/utils/Makefile zaptel-1.4.9.2/kernel/xpp/utils/Makefile +--- zaptel-1.4.9.2.orig/kernel/xpp/utils/Makefile 2008-02-04 18:00:48.000000000 -0500 ++++ zaptel-1.4.9.2/kernel/xpp/utils/Makefile 2008-03-29 13:04:52.000000000 -0400 +@@ -6,7 +6,7 @@ + + ZAPTEL_DIR ?= ../.. + +--include $(ZAPTEL_DIR)/makeopts ++-include $(ZAPTEL_DIR)/../makeopts + + INSTALL_DATA = $(INSTALL) -m 644 + +@@ -106,7 +106,7 @@ + $(RANLIB) $@ + + fpga_load: fpga_load.o libhexfile.a +- $(CC) -L. -o $@ $@.o $(EXTRA_LIBS) -lhexfile -lusb ++ $(CC) -L. -o $@ $@.o $(EXTRA_LIBS) $(LDFLAGS) $(CFLAGS) -lhexfile -lusb + + fpga_load.o: CFLAGS+=-D_GNU_SOURCE # We use memrchr() + Modified: trunk/package/zaptel/zaptel.mk =================================================================== --- trunk/package/zaptel/zaptel.mk 2008-03-29 17:07:29 UTC (rev 1706) +++ trunk/package/zaptel/zaptel.mk 2008-03-29 17:08:54 UTC (rev 1707) @@ -10,13 +10,21 @@ ZAPTEL_BINARY := ztcfg ZAPTEL_TARGET_BINARY := sbin/ztcfg PERLLIBDIR := $(shell eval `perl -V:sitelib`; echo "$$sitelib") +ZAPTEL_EXTRAS := +ZAPTEL_CONFIGURE_ARGS := +ifeq ($(strip $(BR2_PACKAGE_PPPD)),y) +ZAPTEL_EXTRAS+=pppd +ZAPTEL_CONFIGURE_ARGS+= \ + --with-ppp="$(STAGING_DIR)/usr" +endif + ifeq ($(strip $(BR2_PACKAGE_WANPIPE)),y) -ZAPEXTRAS=wanpipe +ZAPTEL_EXTRAS=wanpipe endif ifeq ($(strip $(BR2_PACKAGE_ZAPTEL_OSLEC)),y) -ZAPEXTRAS+=oslec +ZAPTEL_EXTRAS+=oslec endif ZAPTEL_TARGET_ARCH:=i386 @@ -35,7 +43,8 @@ $(ZAPTEL_DIR)/.configured: $(ZAPTEL_DIR)/.source (cd $(ZAPTEL_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD=$(HOSTCC) \ - CFLAGS="$(TARGET_CFLAGS)" \ + CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr" \ + LDFLAGS="-L$(STAGING_DIR)/usr" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ @@ -46,6 +55,7 @@ --includedir=/usr/include \ --datadir=/usr/share \ --sysconfdir=/etc \ + $(ZAPTEL_CONFIGURE_ARGS) \ ); touch $(ZAPTEL_DIR)/.configured; @@ -69,7 +79,7 @@ $(INSTALL) -D -m 755 package/zaptel/zaptel.init $(TARGET_DIR)/etc/init.d/zaptel ln -sf /tmp/etc/zaptel.conf $(TARGET_DIR)/etc/zaptel.conf -zaptel: uclibc newt libusb $(ZAPEXTRAS) $(TARGET_DIR)/$(ZAPTEL_TARGET_BINARY) +zaptel: uclibc newt libusb $(ZAPTEL_EXTRAS) $(TARGET_DIR)/$(ZAPTEL_TARGET_BINARY) zaptel-source: $(DL_DIR)/$(ZAPTEL_SOURCE) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kr...@us...> - 2006-09-12 14:55:46
|
Revision: 362 http://svn.sourceforge.net/astlinux/?rev=362&view=rev Author: krisk84 Date: 2006-09-12 07:55:43 -0700 (Tue, 12 Sep 2006) Log Message: ----------- zaptel version bump to 1.2.9.1 and remove fw2h hack Modified Paths: -------------- trunk/package/zaptel/zaptel.mk Removed Paths: ------------- trunk/package/zaptel/zaptel-fw2hpathfix.patch Deleted: trunk/package/zaptel/zaptel-fw2hpathfix.patch =================================================================== --- trunk/package/zaptel/zaptel-fw2hpathfix.patch 2006-09-12 14:43:41 UTC (rev 361) +++ trunk/package/zaptel/zaptel-fw2hpathfix.patch 2006-09-12 14:55:43 UTC (rev 362) @@ -1,13 +0,0 @@ ---- zaptel-1.2.9/wct4xxp/fw2h.c.orig 2006-09-12 10:34:08.000000000 -0400 -+++ zaptel-1.2.9/wct4xxp/fw2h.c 2006-09-12 10:37:13.000000000 -0400 -@@ -28,7 +28,9 @@ - } - c = strrchr(argv[2], '.'); - if (c) *c = '\0'; -- fprintf(f, "static unsigned char %s[] = {\t", argv[2]); -+ -+ c = strrchr(argv[2], '/'); -+ fprintf(f, "static unsigned char %s[] = {\t", c+1); - while ((res = read(fd, buf, sizeof(buf))) > 0) { - for (x = 0; x < res; x++) { - if (!(x % 16)) Modified: trunk/package/zaptel/zaptel.mk =================================================================== --- trunk/package/zaptel/zaptel.mk 2006-09-12 14:43:41 UTC (rev 361) +++ trunk/package/zaptel/zaptel.mk 2006-09-12 14:55:43 UTC (rev 362) @@ -3,10 +3,9 @@ # zaptel # ############################################################## -ZAPTEL_VERSION := 1.2.9 +ZAPTEL_VERSION := 1.2.9.1 ZAPTEL_SOURCE := zaptel-$(ZAPTEL_VERSION).tar.gz -#ZAPTEL_SITE := ftp://ftp.digium.com/pub/zaptel/releases -ZAPTEL_SITE := http://www.krisk.org/asterisk +ZAPTEL_SITE := ftp://ftp.digium.com/pub/zaptel/releases ZAPTEL_DIR := $(BUILD_DIR)/zaptel-$(ZAPTEL_VERSION) ZAPTEL_BINARY := ztcfg ZAPTEL_TARGET_BINARY := sbin/ztcfg This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dha...@us...> - 2007-02-26 18:34:32
|
Revision: 668 http://svn.sourceforge.net/astlinux/?rev=668&view=rev Author: dhartman Date: 2007-02-26 10:34:29 -0800 (Mon, 26 Feb 2007) Log Message: ----------- zaptel fix for zttool Modified Paths: -------------- trunk/package/zaptel/zaptel-makefile0.patch trunk/package/zaptel/zaptel.mk Modified: trunk/package/zaptel/zaptel-makefile0.patch =================================================================== --- trunk/package/zaptel/zaptel-makefile0.patch 2007-02-26 18:16:04 UTC (rev 667) +++ trunk/package/zaptel/zaptel-makefile0.patch 2007-02-26 18:34:29 UTC (rev 668) @@ -1,6 +1,5 @@ -diff -ur zaptel-1.2.13.orig/Makefile zaptel-1.2.13/Makefile ---- zaptel-1.2.13.orig/Makefile 2007-02-05 16:54:40.000000000 -0500 -+++ zaptel-1.2.13/Makefile 2007-02-14 16:17:34.000000000 -0500 +--- zaptel/Makefile.orig 2007-02-26 10:34:21.000000000 -0600 ++++ zaptel/Makefile 2007-02-26 10:35:28.000000000 -0600 @@ -6,6 +6,7 @@ # @@ -9,7 +8,16 @@ ifeq ($(MAKELEVEL),0) PWD:=$(shell pwd) -@@ -224,13 +225,13 @@ +@@ -141,7 +142,7 @@ LIBTONEZONE_SO_MINOR_VER:=0 + MOD_DESTDIR:=zaptel + + BINS=ztcfg torisatool makefw ztmonitor ztspeed zttest fxotune +-ifneq (,$(wildcard /usr/include/newt.h)) ++ifneq (,$(wildcard ./newt.h)) + BINS+=zttool + endif + +@@ -224,13 +225,13 @@ torisatool: torisatool.o $(CC) -o $@ $^ tones.h: gendigits @@ -26,7 +34,7 @@ gendigits: gendigits.o $(CC) -o $@ $^ -lm -@@ -344,13 +345,13 @@ +@@ -344,13 +345,13 @@ b410p: $(MAKE) -C mISDNuser install install: all devices firmware @@ -44,7 +52,7 @@ ifeq ($(BUILDVER),linux26) for x in $(MODULESKO); do \ rm -f $(INSTALL_PREFIX)/lib/modules/$(KVERS)/extra/$$x ; \ -@@ -366,25 +367,18 @@ +@@ -366,25 +367,18 @@ endif rm -f $(INSTALL_PREFIX)/lib/modules/$(KVERS)/misc/wcfxsusb.o; \ fi; \ rm -f $(INSTALL_PREFIX)/lib/modules/$(KVERS)/misc/wcfxs.o Modified: trunk/package/zaptel/zaptel.mk =================================================================== --- trunk/package/zaptel/zaptel.mk 2007-02-26 18:16:04 UTC (rev 667) +++ trunk/package/zaptel/zaptel.mk 2007-02-26 18:34:29 UTC (rev 668) @@ -64,6 +64,7 @@ $(TARGET_DIR)/$(ZAPTEL_TARGET_BINARY): $(ZAPTEL_DIR)/$(ZAPTEL_BINARY) mkdir -p $(STAGING_DIR)/etc/udev/rules.d #hack to get install to work... mkdir -p $(STAGING_DIR)/share/man/man8 #yet another hack... + cp $(STAGING_DIR)/include/newt.h $(ZAPTEL_DIR)/. #hack to get zttool to compile mkdir -p $(STAGING_DIR)/lib/modules/$(LINUX_VER)/misc $(MAKE) -C $(ZAPTEL_DIR) CC=$(TARGET_CC) PROC=$(OPTIMIZE_FOR_CPU) ARCH=$(ZAPTEL_TARGET_ARCH) \ KSRC=$(BUILD_DIR)/linux KVERS=$(LINUX_VER) $(TARGET_CONFIGURE_OPTS) PATH="$(ZAPTEL_DIR):$(PATH)" \ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kr...@us...> - 2007-06-29 19:15:53
|
Revision: 1111 http://svn.sourceforge.net/astlinux/?rev=1111&view=rev Author: krisk84 Date: 2007-06-29 12:15:33 -0700 (Fri, 29 Jun 2007) Log Message: ----------- zaptel version update Modified Paths: -------------- trunk/package/zaptel/zaptel-makefile0.patch trunk/package/zaptel/zaptel.mk Modified: trunk/package/zaptel/zaptel-makefile0.patch =================================================================== --- trunk/package/zaptel/zaptel-makefile0.patch 2007-06-29 19:08:21 UTC (rev 1110) +++ trunk/package/zaptel/zaptel-makefile0.patch 2007-06-29 19:15:33 UTC (rev 1111) @@ -1,5 +1,9 @@ ---- zaptel/Makefile.orig 2007-03-02 16:29:04.000000000 -0600 -+++ zaptel/Makefile 2007-03-04 12:51:27.000000000 -0600 +Common subdirectories: zaptel-1.2.18.orig/build_tools and zaptel-1.2.18/build_tools +Common subdirectories: zaptel-1.2.18.orig/doc and zaptel-1.2.18/doc +Common subdirectories: zaptel-1.2.18.orig/hpec and zaptel-1.2.18/hpec +diff -u zaptel-1.2.18.orig/Makefile zaptel-1.2.18/Makefile +--- zaptel-1.2.18.orig/Makefile 2007-06-08 11:19:15.000000000 -0400 ++++ zaptel-1.2.18/Makefile 2007-06-29 15:11:21.000000000 -0400 @@ -6,6 +6,7 @@ # @@ -8,16 +12,16 @@ ifeq ($(MAKELEVEL),0) PWD:=$(shell pwd) -@@ -143,7 +144,7 @@ LIBTONEZONE_SO_MAJOR_VER:=1 - LIBTONEZONE_SO_MINOR_VER:=0 - +@@ -145,7 +146,7 @@ + MANDIR = /usr/share/man/man8 + MAN_PAGES_BASE = ztcfg BINS=ztcfg torisatool makefw ztmonitor ztspeed zttest fxotune -ifneq (,$(wildcard /usr/include/newt.h)) +ifneq (,$(wildcard ./newt.h)) BINS+=zttool + MAN_PAGES_BASE += zttool endif - -@@ -226,13 +227,13 @@ torisatool: torisatool.o +@@ -230,13 +231,13 @@ $(CC) -o $@ $^ tones.h: gendigits @@ -34,7 +38,7 @@ gendigits: gendigits.o $(CC) -o $@ $^ -lm -@@ -346,13 +347,13 @@ b410p: +@@ -351,13 +352,13 @@ $(MAKE) -C mISDNuser install install: all devices firmware @@ -49,10 +53,10 @@ fi - if [ -f zttool ]; then install -D -m 755 zttool $(INSTALL_PREFIX)/sbin/zttool; fi + if [ -f zttool ]; then install -D -m 755 zttool $(INSTALL_PREFIX)/$(INSTALL_BASE)/sbin/zttool; fi + install -d $(INSTALL_PREFIX)$(MANDIR) + install -m 644 $(MAN_PAGES) $(INSTALL_PREFIX)$(MANDIR) ifeq ($(BUILDVER),linux26) - for x in $(MODULESKO); do \ - rm -f $(INSTALL_PREFIX)/lib/modules/$(KVERS)/extra/$$x ; \ -@@ -368,25 +369,18 @@ endif +@@ -375,25 +376,18 @@ rm -f $(INSTALL_PREFIX)/lib/modules/$(KVERS)/misc/wcfxsusb.o; \ fi; \ rm -f $(INSTALL_PREFIX)/lib/modules/$(KVERS)/misc/wcfxs.o @@ -87,3 +91,8 @@ install-udev: devices +Only in zaptel-1.2.18: Makefile.orig +Common subdirectories: zaptel-1.2.18.orig/oct612x and zaptel-1.2.18/oct612x +Common subdirectories: zaptel-1.2.18.orig/wct4xxp and zaptel-1.2.18/wct4xxp +Common subdirectories: zaptel-1.2.18.orig/wctc4xxp and zaptel-1.2.18/wctc4xxp +Common subdirectories: zaptel-1.2.18.orig/xpp and zaptel-1.2.18/xpp Modified: trunk/package/zaptel/zaptel.mk =================================================================== --- trunk/package/zaptel/zaptel.mk 2007-06-29 19:08:21 UTC (rev 1110) +++ trunk/package/zaptel/zaptel.mk 2007-06-29 19:15:33 UTC (rev 1111) @@ -3,7 +3,7 @@ # zaptel # ############################################################## -ZAPTEL_VERSION := 1.2.17.1 +ZAPTEL_VERSION := 1.2.18 ZAPTEL_SOURCE := zaptel-$(ZAPTEL_VERSION).tar.gz ZAPTEL_SITE := ftp://ftp.digium.com/pub/zaptel/releases ZAPTEL_DIR := $(BUILD_DIR)/zaptel-$(ZAPTEL_VERSION) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dha...@us...> - 2007-10-19 16:39:35
|
Revision: 1301 http://astlinux.svn.sourceforge.net/astlinux/?rev=1301&view=rev Author: dhartman Date: 2007-10-19 09:39:39 -0700 (Fri, 19 Oct 2007) Log Message: ----------- zaptel udev fixes Modified Paths: -------------- trunk/package/zaptel/zaptel.mk Added Paths: ----------- trunk/package/zaptel/zaptel-udev.init Added: trunk/package/zaptel/zaptel-udev.init =================================================================== --- trunk/package/zaptel/zaptel-udev.init (rev 0) +++ trunk/package/zaptel/zaptel-udev.init 2007-10-19 16:39:39 UTC (rev 1301) @@ -0,0 +1,131 @@ +#!/bin/sh + +. /etc/rc.conf + +init () { + +if [ -d /mnt/kd/wanpipe ] +then +ln -s /mnt/kd/wanpipe /tmp/etc/wanpipe +else +if [ -d /stat/etc/wanpipe ] +then +mkdir /tmp/etc/wanpipe +cp -a /stat/etc/wanpipe/* /tmp/etc/wanpipe/ +fi +fi + +## udev should create these + +#if [ ! -d /dev/zap ] +#then +#mkdir -p /dev/zap +#mknod /dev/zap/ctl c 196 0 +#mknod /dev/zap/timer c 196 253 +#mknod /dev/zap/channel c 196 254 +#mknod /dev/zap/pseudo c 196 255 +#for i in `seq 1 250` +#do +#mknod /dev/zap/$i c 196 $i +#done +#fi + +if [ -f /stat/etc/zaptel.conf ] +then +ln -sf /stat/etc/zaptel.conf /tmp/etc/zaptel.conf +fi + +if [ -f /mnt/kd/zaptel.conf ] +then +ln -sf /mnt/kd/zaptel.conf /tmp/etc/zaptel.conf +fi +} + +start () { + +if [ -r /etc/wanpipe/wanpipe*.conf ] +then +/usr/sbin/wanrouter start +fi + +if [ -r /etc/zaptel.conf ] +then + +if [ "$ZAPMODS" ] +then +for i in $ZAPMODS +do +modprobe -q $i +done +fi + +ztcfg + +if [ "$EXTIF" = "hdlc0" ] +then +if [ "$EXTENC" ] +then +sethdlc "$EXTIF" "$EXTENC" +fi +fi + +if [ "$EXTIF" = "pvc0" ] +then +if [ "$HDLCLMI" -a "$HDLCDLCI" ] +then +sethdlc hdlc0 fr lmi "$HDLCLMI" +sethdlc hdlc0 create "$HDLCDLCI" +ifconfig hdlc0 up +fi +fi + +else +echo "No Zap hardware - loading ztdummy" +modprobe ztdummy +fi +} + +stop () { +if [ "$ZAPMODS" ] +then +for i in "$ZAPMODS" +do +modprobe -r $i +done +else +modprobe -r ztdummy +fi + +if [ -r /etc/wanpipe/wanpipe*.conf ] +then +/usr/sbin/wanrouter stop +fi + +} + +case $1 in + +init) +init +start +;; + +start) +start +;; + +stop) +stop +;; + +restart) +stop +sleep 2 +start +;; + +*) +echo "Usage: start|stop|restart" +;; + +esac Property changes on: trunk/package/zaptel/zaptel-udev.init ___________________________________________________________________ Name: svn:executable + * Modified: trunk/package/zaptel/zaptel.mk =================================================================== --- trunk/package/zaptel/zaptel.mk 2007-10-19 05:18:05 UTC (rev 1300) +++ trunk/package/zaptel/zaptel.mk 2007-10-19 16:39:39 UTC (rev 1301) @@ -18,6 +18,11 @@ ifeq ($(strip $(BR2_PACKAGE_UDEV)),y) ZAPUDEV=udev +ZAPHOTPLUG=yes +ZAPINIT=zaptel-udev.init +else +ZAPHOTPLUG=no +ZAPINIT=zaptel.init endif ZAPTEL_TARGET_ARCH:=$(shell echo $(ARCH) | sed -e s'/-.*//' \ @@ -55,7 +60,7 @@ $(MAKE) -C $(ZAPTEL_DIR) CC=$(TARGET_CC) ARCH=$(ZAPTEL_TARGET_ARCH) \ PROC=$(OPTIMIZE_FOR_CPU) KSRC=$(BUILD_DIR)/linux KVERS=$(LINUX_VER) \ $(TARGET_CONFIGURE_OPTS) PATH="$(ZAPTEL_DIR):$(PATH)" ZTTOOL=zttool \ - HOTPLUG_FIRMWARE=no INSTALL_BASE=/ PWD=$(ZAPTEL_DIR) + HOTPLUG_FIRMWARE=$(ZAPHOTPLUG) INSTALL_BASE=/ PWD=$(ZAPTEL_DIR) $(TARGET_DIR)/$(ZAPTEL_TARGET_BINARY): $(ZAPTEL_DIR)/$(ZAPTEL_BINARY) mkdir -p $(STAGING_DIR)/etc/udev/rules.d #hack to get install to work... @@ -64,8 +69,9 @@ mkdir -p $(STAGING_DIR)/lib/modules/$(LINUX_VER)/misc $(MAKE) -C $(ZAPTEL_DIR) CC=$(TARGET_CC) PROC=$(OPTIMIZE_FOR_CPU) ARCH=$(ZAPTEL_TARGET_ARCH) \ KSRC=$(BUILD_DIR)/linux KVERS=$(LINUX_VER) $(TARGET_CONFIGURE_OPTS) PATH="$(ZAPTEL_DIR):$(PATH)" \ - INSTALL_PREFIX=$(STAGING_DIR) INSTALL_BASE=/ ZTTOOL=zttool PWD=$(ZAPTEL_DIR) HOTPLUG_FIRMWARE=no \ + INSTALL_PREFIX=$(STAGING_DIR) INSTALL_BASE=/ ZTTOOL=zttool PWD=$(ZAPTEL_DIR) HOTPLUG_FIRMWARE=$(ZAPHOTPLUG) \ install + mkdir -p $(STAGING_DIR)/usr/include/linux cp -a $(STAGING_DIR)/include/linux/zaptel.h $(STAGING_DIR)/usr/include/linux/zaptel.h #Hack for Asterisk to find us cp -a $(STAGING_DIR)/lib/modules/$(LINUX_VER)/misc $(TARGET_DIR)/lib/modules/$(LINUX_VER)/ @@ -92,7 +98,7 @@ -$(STRIP) -g $(TARGET_DIR)/sbin/fxotune -$(STRIP) -g $(TARGET_DIR)/sbin/torisatool $(DEPMOD) -ae -F $(BUILD_DIR)/linux/System.map -b $(BUILD_DIR)/root -r $(LINUX_VER) - $(INSTALL) -D -m 755 package/zaptel/zaptel.init $(TARGET_DIR)/etc/init.d/zaptel + $(INSTALL) -D -m 755 package/zaptel/$(ZAPINIT) $(TARGET_DIR)/etc/init.d/zaptel ln -sf /tmp/etc/zaptel.conf $(TARGET_DIR)/etc/zaptel.conf zaptel: uclibc linux newt $(ZAPUDEV) $(ZAPWAN) $(TARGET_DIR)/$(ZAPTEL_TARGET_BINARY) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kr...@us...> - 2007-10-19 16:47:00
|
Revision: 1302 http://astlinux.svn.sourceforge.net/astlinux/?rev=1302&view=rev Author: krisk84 Date: 2007-10-19 09:46:22 -0700 (Fri, 19 Oct 2007) Log Message: ----------- slight zaptel cleanup Modified Paths: -------------- trunk/package/zaptel/zaptel.init trunk/package/zaptel/zaptel.mk Removed Paths: ------------- trunk/package/zaptel/zaptel-udev.init Deleted: trunk/package/zaptel/zaptel-udev.init =================================================================== --- trunk/package/zaptel/zaptel-udev.init 2007-10-19 16:39:39 UTC (rev 1301) +++ trunk/package/zaptel/zaptel-udev.init 2007-10-19 16:46:22 UTC (rev 1302) @@ -1,131 +0,0 @@ -#!/bin/sh - -. /etc/rc.conf - -init () { - -if [ -d /mnt/kd/wanpipe ] -then -ln -s /mnt/kd/wanpipe /tmp/etc/wanpipe -else -if [ -d /stat/etc/wanpipe ] -then -mkdir /tmp/etc/wanpipe -cp -a /stat/etc/wanpipe/* /tmp/etc/wanpipe/ -fi -fi - -## udev should create these - -#if [ ! -d /dev/zap ] -#then -#mkdir -p /dev/zap -#mknod /dev/zap/ctl c 196 0 -#mknod /dev/zap/timer c 196 253 -#mknod /dev/zap/channel c 196 254 -#mknod /dev/zap/pseudo c 196 255 -#for i in `seq 1 250` -#do -#mknod /dev/zap/$i c 196 $i -#done -#fi - -if [ -f /stat/etc/zaptel.conf ] -then -ln -sf /stat/etc/zaptel.conf /tmp/etc/zaptel.conf -fi - -if [ -f /mnt/kd/zaptel.conf ] -then -ln -sf /mnt/kd/zaptel.conf /tmp/etc/zaptel.conf -fi -} - -start () { - -if [ -r /etc/wanpipe/wanpipe*.conf ] -then -/usr/sbin/wanrouter start -fi - -if [ -r /etc/zaptel.conf ] -then - -if [ "$ZAPMODS" ] -then -for i in $ZAPMODS -do -modprobe -q $i -done -fi - -ztcfg - -if [ "$EXTIF" = "hdlc0" ] -then -if [ "$EXTENC" ] -then -sethdlc "$EXTIF" "$EXTENC" -fi -fi - -if [ "$EXTIF" = "pvc0" ] -then -if [ "$HDLCLMI" -a "$HDLCDLCI" ] -then -sethdlc hdlc0 fr lmi "$HDLCLMI" -sethdlc hdlc0 create "$HDLCDLCI" -ifconfig hdlc0 up -fi -fi - -else -echo "No Zap hardware - loading ztdummy" -modprobe ztdummy -fi -} - -stop () { -if [ "$ZAPMODS" ] -then -for i in "$ZAPMODS" -do -modprobe -r $i -done -else -modprobe -r ztdummy -fi - -if [ -r /etc/wanpipe/wanpipe*.conf ] -then -/usr/sbin/wanrouter stop -fi - -} - -case $1 in - -init) -init -start -;; - -start) -start -;; - -stop) -stop -;; - -restart) -stop -sleep 2 -start -;; - -*) -echo "Usage: start|stop|restart" -;; - -esac Modified: trunk/package/zaptel/zaptel.init =================================================================== --- trunk/package/zaptel/zaptel.init 2007-10-19 16:39:39 UTC (rev 1301) +++ trunk/package/zaptel/zaptel.init 2007-10-19 16:46:22 UTC (rev 1302) @@ -15,7 +15,7 @@ fi fi -if [ ! -d /dev/zap ] +if [ ! -d /dev/zap -a ! -x /sbin/udevd ] then mkdir -p /dev/zap mknod /dev/zap/ctl c 196 0 Modified: trunk/package/zaptel/zaptel.mk =================================================================== --- trunk/package/zaptel/zaptel.mk 2007-10-19 16:39:39 UTC (rev 1301) +++ trunk/package/zaptel/zaptel.mk 2007-10-19 16:46:22 UTC (rev 1302) @@ -19,10 +19,8 @@ ifeq ($(strip $(BR2_PACKAGE_UDEV)),y) ZAPUDEV=udev ZAPHOTPLUG=yes -ZAPINIT=zaptel-udev.init else ZAPHOTPLUG=no -ZAPINIT=zaptel.init endif ZAPTEL_TARGET_ARCH:=$(shell echo $(ARCH) | sed -e s'/-.*//' \ @@ -71,7 +69,6 @@ KSRC=$(BUILD_DIR)/linux KVERS=$(LINUX_VER) $(TARGET_CONFIGURE_OPTS) PATH="$(ZAPTEL_DIR):$(PATH)" \ INSTALL_PREFIX=$(STAGING_DIR) INSTALL_BASE=/ ZTTOOL=zttool PWD=$(ZAPTEL_DIR) HOTPLUG_FIRMWARE=$(ZAPHOTPLUG) \ install - mkdir -p $(STAGING_DIR)/usr/include/linux cp -a $(STAGING_DIR)/include/linux/zaptel.h $(STAGING_DIR)/usr/include/linux/zaptel.h #Hack for Asterisk to find us cp -a $(STAGING_DIR)/lib/modules/$(LINUX_VER)/misc $(TARGET_DIR)/lib/modules/$(LINUX_VER)/ @@ -98,7 +95,7 @@ -$(STRIP) -g $(TARGET_DIR)/sbin/fxotune -$(STRIP) -g $(TARGET_DIR)/sbin/torisatool $(DEPMOD) -ae -F $(BUILD_DIR)/linux/System.map -b $(BUILD_DIR)/root -r $(LINUX_VER) - $(INSTALL) -D -m 755 package/zaptel/$(ZAPINIT) $(TARGET_DIR)/etc/init.d/zaptel + $(INSTALL) -D -m 755 package/zaptel/zaptel.init $(TARGET_DIR)/etc/init.d/zaptel ln -sf /tmp/etc/zaptel.conf $(TARGET_DIR)/etc/zaptel.conf zaptel: uclibc linux newt $(ZAPUDEV) $(ZAPWAN) $(TARGET_DIR)/$(ZAPTEL_TARGET_BINARY) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |