head 1.110;
access;
symbols
OPENPKG_E1_MP_HEAD:1.32
OPENPKG_E1_MP:1.32
OPENPKG_E1_MP_2_STABLE:1.26.2.3
OPENPKG_E1_FP:1.26.2.3
OPENPKG_2_STABLE_MP:1.27
OPENPKG_2_STABLE_20061018:1.26
OPENPKG_2_STABLE:1.26.0.2;
locks; strict;
comment @-- @;
1.110
date 2009.12.28.08.40.30; author rse; state Exp;
branches;
next 1.109;
commitid KvTixKW7pj6go7hu;
1.109
date 2009.12.20.10.34.20; author rse; state Exp;
branches;
next 1.108;
commitid Gu7sEXpoW7efh6gu;
1.108
date 2009.12.04.10.56.33; author rse; state Exp;
branches;
next 1.107;
commitid Prnhmrpoqx2MU2eu;
1.107
date 2009.12.02.08.37.36; author rse; state Exp;
branches;
next 1.106;
commitid YCIpcR8O6cf5dMdu;
1.106
date 2009.11.21.09.41.07; author rse; state Exp;
branches;
next 1.105;
commitid vd5PloOsBQ1OUmcu;
1.105
date 2009.11.05.16.59.41; author rse; state Exp;
branches;
next 1.104;
commitid yUlxIKyNe1e9Rlau;
1.104
date 2009.10.28.09.45.35; author rse; state Exp;
branches;
next 1.103;
commitid 7O2OxQhkYffaIh9u;
1.103
date 2009.09.15.18.05.37; author rse; state Exp;
branches;
next 1.102;
commitid oaPdHD7QKsAoRN3u;
1.102
date 2009.09.04.18.49.37; author rse; state Exp;
branches;
next 1.101;
commitid ghHaxa7FjASpso2u;
1.101
date 2009.08.30.20.29.00; author rse; state Exp;
branches;
next 1.100;
commitid BpokqCJ7rODtaL1u;
1.100
date 2009.08.16.15.57.36; author rse; state Exp;
branches;
next 1.99;
commitid iyygtxBbV1zg7WZt;
1.99
date 2009.08.11.18.27.11; author rse; state Exp;
branches;
next 1.98;
commitid TWk2AMwZUMhy6jZt;
1.98
date 2009.08.05.18.54.14; author rse; state Exp;
branches;
next 1.97;
commitid AS0dR9jHorIMrxYt;
1.97
date 2009.08.01.07.40.23; author rse; state Exp;
branches;
next 1.96;
commitid mZ9sGMB50MUzQXXt;
1.96
date 2009.07.25.08.33.54; author rse; state Exp;
branches;
next 1.95;
commitid neo0VwVPLWiRm4Xt;
1.95
date 2009.06.06.20.42.52; author rse; state Exp;
branches;
next 1.94;
commitid GOxjP25rpu2DYPQt;
1.94
date 2009.05.04.12.08.45; author rse; state Exp;
branches;
next 1.93;
commitid 3tkb48Ar3cd1cyMt;
1.93
date 2009.04.18.13.08.48; author rse; state Exp;
branches;
next 1.92;
commitid 4pHXU27WTIGCZuKt;
1.92
date 2009.04.07.21.31.29; author rse; state Exp;
branches;
next 1.91;
commitid Mzgf0EbXjZwSa8Jt;
1.91
date 2009.04.03.07.53.24; author rse; state Exp;
branches;
next 1.90;
commitid x0bp4CTCqHAbMxIt;
1.90
date 2009.03.28.19.14.52; author rse; state Exp;
branches;
next 1.89;
commitid hY8kCJ4O6stWJPHt;
1.89
date 2009.02.23.21.47.43; author rse; state Exp;
branches;
next 1.88;
commitid XVG5ioGOamo8EBDt;
1.88
date 2009.01.30.16.26.18; author rse; state Exp;
branches;
next 1.87;
commitid 6Bvb5oCJFD9IDuAt;
1.87
date 2009.01.24.11.50.37; author rse; state Exp;
branches;
next 1.86;
commitid 85egxRsWvKk5jHzt;
1.86
date 2009.01.10.19.48.24; author rse; state Exp;
branches;
next 1.85;
commitid XLjrocJiEjFToWxt;
1.85
date 2009.01.08.20.14.40; author rse; state Exp;
branches;
next 1.84;
commitid p2A5Pjpwm3zTBGxt;
1.84
date 2008.12.14.10.35.25; author rse; state Exp;
branches;
next 1.83;
commitid Vp9aObjbU310dqut;
1.83
date 2008.10.10.17.08.51; author rse; state Exp;
branches;
next 1.82;
commitid 8P9isG2TNd4wt6mt;
1.82
date 2008.10.05.17.08.24; author rse; state Exp;
branches;
next 1.81;
commitid dKaDcZZM7wKjDslt;
1.81
date 2008.10.03.07.02.26; author rse; state Exp;
branches;
next 1.80;
commitid gKfdjfuN7a1pl9lt;
1.80
date 2008.09.22.20.06.10; author rse; state Exp;
branches;
next 1.79;
commitid ING913F1E26d2Ojt;
1.79
date 2008.09.10.18.08.46; author rse; state Exp;
branches;
next 1.78;
commitid IEoMKVv4N6OQLfit;
1.78
date 2008.09.09.06.23.02; author rse; state Exp;
branches;
next 1.77;
commitid e7EQDBSmD6vJT3it;
1.77
date 2008.09.08.10.42.03; author rse; state Exp;
branches;
next 1.76;
commitid BKjqtdAhZCeAmXht;
1.76
date 2008.09.05.19.05.54; author rse; state Exp;
branches;
next 1.75;
commitid 1NzPf32SVAApfCht;
1.75
date 2008.07.08.17.50.56; author rse; state Exp;
branches;
next 1.74;
commitid yuUhOj5VHiMhJ1at;
1.74
date 2008.07.04.17.52.47; author rse; state Exp;
branches;
next 1.73;
commitid V6fQGT8GhJWSRv9t;
1.73
date 2008.07.04.07.25.14; author rse; state Exp;
branches;
next 1.72;
commitid d4MhPrhem3YAos9t;
1.72
date 2008.05.18.17.52.23; author rse; state Exp;
branches;
next 1.71;
commitid qsyDYl22WUbpnt3t;
1.71
date 2008.05.07.07.06.56; author rse; state Exp;
branches;
next 1.70;
commitid AwvFRApiiWpU902t;
1.70
date 2008.03.25.21.04.31; author rse; state Exp;
branches;
next 1.69;
commitid nNy5rpQGJs7WayWs;
1.69
date 2008.03.24.20.11.27; author rse; state Exp;
branches;
next 1.68;
commitid JZds8IQLbYiJUpWs;
1.68
date 2008.03.23.11.55.25; author rse; state Exp;
branches;
next 1.67;
commitid yVWPK6ApHtmycfWs;
1.67
date 2008.03.23.10.41.00; author rse; state Exp;
branches;
next 1.66;
commitid loL8mUyLnGE1NeWs;
1.66
date 2008.03.23.10.30.33; author rse; state Exp;
branches;
next 1.65;
commitid EzdMcbk6zkAqJeWs;
1.65
date 2008.03.23.09.46.28; author rse; state Exp;
branches;
next 1.64;
commitid uk3K6t12WjRiueWs;
1.64
date 2008.03.22.20.08.37; author rse; state Exp;
branches;
next 1.63;
commitid AoaxXgblvCKJX9Ws;
1.63
date 2008.03.22.15.59.15; author rse; state Exp;
branches;
next 1.62;
commitid LlvWwlx5cxKcA8Ws;
1.62
date 2008.03.22.15.58.06; author rse; state Exp;
branches;
next 1.61;
commitid p7dQNU4hM0XNz8Ws;
1.61
date 2008.03.22.13.18.18; author rse; state Exp;
branches;
next 1.60;
commitid YMH30SQqQlqYG7Ws;
1.60
date 2008.03.22.08.18.10; author rse; state Exp;
branches;
next 1.59;
commitid L3RdtOBtqNKZ16Ws;
1.59
date 2008.03.21.14.53.45; author rse; state Exp;
branches;
next 1.58;
commitid ODNb4T7imQsIf0Ws;
1.58
date 2008.03.20.19.40.26; author rse; state Exp;
branches;
next 1.57;
commitid 1OYCk2mQykl4STVs;
1.57
date 2008.03.20.19.25.05; author rse; state Exp;
branches;
next 1.56;
commitid eXo8YkMOOSmNMTVs;
1.56
date 2008.03.20.19.21.16; author rse; state Exp;
branches;
next 1.55;
commitid X7qHoyLBAehuLTVs;
1.55
date 2008.03.20.19.07.33; author rse; state Exp;
branches;
next 1.54;
commitid KxIzvcuhOxoMGTVs;
1.54
date 2008.03.20.10.38.15; author rse; state Exp;
branches;
next 1.53;
commitid VxlZX87sXEB3SQVs;
1.53
date 2008.03.20.07.28.08; author rse; state Exp;
branches;
next 1.52;
commitid rmqee7RTrgkOOPVs;
1.52
date 2008.03.19.20.18.27; author rse; state Exp;
branches;
next 1.51;
commitid gnIVOTak1v957MVs;
1.51
date 2008.03.19.17.16.44; author rse; state Exp;
branches;
next 1.50;
commitid HvxJqhIPeGIK6LVs;
1.50
date 2008.03.19.13.28.24; author rse; state Exp;
branches;
next 1.49;
commitid 8druyWb6RNjqQJVs;
1.49
date 2008.03.19.08.38.00; author rse; state Exp;
branches;
next 1.48;
commitid 0JGtKbVydEzNeIVs;
1.48
date 2008.03.18.22.04.57; author rse; state Exp;
branches;
next 1.47;
commitid 7vz69GjUoqaCJEVs;
1.47
date 2008.03.18.20.58.14; author rse; state Exp;
branches;
next 1.46;
commitid DMDl5e8CDwIJmEVs;
1.46
date 2008.03.17.09.33.24; author rse; state Exp;
branches;
next 1.45;
commitid 3EqlqdvOgr3NBsVs;
1.45
date 2008.03.17.09.08.11; author rse; state Exp;
branches;
next 1.44;
commitid dakIsz7ewWV8tsVs;
1.44
date 2008.03.17.07.24.24; author rse; state Exp;
branches;
next 1.43;
commitid S1Oe7j7GH5kxTrVs;
1.43
date 2008.03.10.18.16.36; author rse; state Exp;
branches;
next 1.42;
commitid eEAunMZllueeJBUs;
1.42
date 2008.03.09.20.15.20; author rse; state Exp;
branches;
next 1.41;
commitid UDRNaaxorwRWpuUs;
1.41
date 2008.03.09.19.19.30; author rse; state Exp;
branches;
next 1.40;
commitid efiCcCZmsWKN6uUs;
1.40
date 2008.03.09.19.05.14; author rse; state Exp;
branches;
next 1.39;
commitid VmBA1A75cOtU1uUs;
1.39
date 2008.03.09.18.58.39; author rse; state Exp;
branches;
next 1.38;
commitid b0xHsp3ChlnEZtUs;
1.38
date 2008.03.09.18.34.09; author rse; state Exp;
branches;
next 1.37;
commitid qmXyFyDtcwLeRtUs;
1.37
date 2008.03.09.12.41.04; author rse; state Exp;
branches;
next 1.36;
commitid Kl1KiixwmzV6UrUs;
1.36
date 2008.03.09.11.57.52; author rse; state Exp;
branches;
next 1.35;
commitid N1hfrydkM3tiFrUs;
1.35
date 2008.03.09.09.11.32; author rse; state Exp;
branches;
next 1.34;
commitid qLeR9cYdnKreKqUs;
1.34
date 2008.01.01.14.50.58; author rse; state Exp;
branches;
next 1.33;
commitid B8esaHJHoduuKILs;
1.33
date 2007.07.28.07.45.33; author rse; state Exp;
branches;
next 1.32;
commitid p4pSvsSrmtj8vvrs;
1.32
date 2007.01.01.17.36.39; author rse; state Exp;
branches;
next 1.31;
commitid BicZD6VUl7GuqP0s;
1.31
date 2006.12.23.10.47.27; author rse; state Exp;
branches;
next 1.30;
commitid pMya2JJMzfXZtDZr;
1.30
date 2006.12.23.10.14.46; author rse; state Exp;
branches;
next 1.29;
commitid etKLuxrmGtWMiDZr;
1.29
date 2006.12.16.11.30.21; author rse; state Exp;
branches;
next 1.28;
commitid OIbsvpqY0IPFWJYr;
1.28
date 2006.10.22.13.13.00; author rse; state Exp;
branches;
next 1.27;
commitid JlWWvYHFWlsuhGRr;
1.27
date 2006.10.19.05.45.14; author rse; state Exp;
branches;
next 1.26;
commitid NUp24Jyfk0YQTfRr;
1.26
date 2006.10.15.13.32.06; author rse; state Exp;
branches
1.26.2.1;
next 1.25;
commitid yqaQpn3RVCbZBMQr;
1.25
date 2006.10.14.08.32.40; author rse; state Exp;
branches;
next 1.24;
commitid nHwa8UK0Ka7gZCQr;
1.24
date 2006.10.14.06.54.25; author rse; state Exp;
branches;
next 1.23;
commitid 7zd6fy70OMTyrCQr;
1.23
date 2006.10.13.20.59.19; author rse; state Exp;
branches;
next 1.22;
commitid 23qJyHz2MK5p9zQr;
1.22
date 2006.10.13.20.56.30; author rse; state Exp;
branches;
next 1.21;
commitid AJF3s1l9VCdr8zQr;
1.21
date 2006.10.13.17.26.53; author thl; state Exp;
branches;
next 1.20;
commitid q5GSxzsSDX29XxQr;
1.20
date 2006.09.28.06.23.03; author rse; state Exp;
branches;
next 1.19;
commitid fbUOHIIG9jqGMyOr;
1.19
date 2006.09.23.11.37.17; author rse; state Exp;
branches;
next 1.18;
commitid KAqQoKeD9xyrGWNr;
1.18
date 2006.09.22.05.51.43; author rse; state Exp;
branches;
next 1.17;
commitid tojoXBJG5YeTNMNr;
1.17
date 2006.09.20.10.39.12; author rse; state Exp;
branches;
next 1.16;
commitid teUuUUkfe7dvsyNr;
1.16
date 2006.09.17.18.03.33; author rse; state Exp;
branches;
next 1.15;
commitid YkjEVx1a8DfU0dNr;
1.15
date 2006.09.17.07.38.03; author rse; state Exp;
branches;
next 1.14;
commitid efA67qjooK3ly9Nr;
1.14
date 2006.09.16.15.32.24; author rse; state Exp;
branches;
next 1.13;
commitid CskaCSTqG3U2d4Nr;
1.13
date 2006.09.16.07.53.32; author rse; state Exp;
branches;
next 1.12;
commitid 4672E7bolUFDF1Nr;
1.12
date 2006.09.15.05.58.27; author rse; state Exp;
branches;
next 1.11;
commitid LN7eV8gkoO894TMr;
1.11
date 2006.09.13.05.58.09; author rse; state Exp;
branches;
next 1.10;
commitid sogBsDQt8ye28DMr;
1.10
date 2006.09.13.05.20.39; author rse; state Exp;
branches;
next 1.9;
commitid H4tuzKYVy6FaVCMr;
1.9
date 2006.09.11.08.32.18; author rse; state Exp;
branches;
next 1.8;
commitid OUIeeXXKiewT2oMr;
1.8
date 2006.09.09.16.37.10; author cs; state Exp;
branches;
next 1.7;
commitid OBHSuMI9xileNaMr;
1.7
date 2006.09.08.19.06.34; author rse; state Exp;
branches;
next 1.6;
commitid V8xHeCL4cOBtE3Mr;
1.6
date 2006.09.08.06.19.22; author rse; state Exp;
branches;
next 1.5;
commitid vfxJhZ1oawXgpZLr;
1.5
date 2006.09.06.06.38.31; author rse; state Exp;
branches;
next 1.4;
commitid LSP71OBOWACPzJLr;
1.4
date 2006.09.06.05.47.02; author rse; state Exp;
branches;
next 1.3;
commitid tRvMyG6ZeDLaiJLr;
1.3
date 2006.09.05.13.08.37; author rse; state Exp;
branches;
next 1.2;
commitid ayfDmQyyYkvELDLr;
1.2
date 2006.09.05.10.08.40; author rse; state Exp;
branches;
next 1.1;
commitid D90VXmUDjBZULCLr;
1.1
date 2006.09.05.07.39.33; author rse; state Exp;
branches;
next ;
commitid Ui8unFFXgAWKWBLr;
1.26.2.1
date 2006.10.15.13.32.06; author rse; state dead;
branches;
next 1.26.2.2;
commitid iZxwRSmmWscPXUQr;
1.26.2.2
date 2006.10.16.14.48.09; author rse; state Exp;
branches;
next 1.26.2.3;
commitid iZxwRSmmWscPXUQr;
1.26.2.3
date 2006.10.19.05.46.18; author rse; state Exp;
branches;
next ;
commitid 4zC5mlUsdcWdUfRr;
desc
@@
1.110
log
@modifying package: asterisk-1.6.2.0 20091220 -> 20091228
@
text
@##
## asterisk.spec -- OpenPKG RPM Package Specification
## Copyright (c) 2000-2009 OpenPKG Foundation e.V.
##
## Permission to use, copy, modify, and distribute this software for
## any purpose with or without fee is hereby granted, provided that
## the above copyright notice and this permission notice appear in all
## copies.
##
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
## SUCH DAMAGE.
##
# package version
%define V_opkg 1.6.2.0
%define V_asterisk 1.6.2.0
%define V_asterisk_addons 1.6.2.0
%define V_asterisk_sounds_core_en 1.4.17
%define V_asterisk_sounds_core_de current
%define V_asterisk_sounds_extra_en 1.4.10
%define V_chan_capi 1.1.4
# package information
Name: asterisk
Summary: Private Branch Exchange (PBX)
URL: http://www.asterisk.org/
Vendor: Mark Spencer et al.
Packager: OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class: BASE
Group: VoIP
License: GPL
Version: %{V_opkg}
Release: 20091228
# package options
%option with_dahdi no
%option with_capi no
%option with_ogg no
%option with_mp3 no
%option with_fax no
%option with_avcodec no
%option with_ldap no
%option with_radius no
%option with_sqlite no
%option with_lua no
%option with_jabber no
%option with_imap no
%option with_odbc no
# list of sources
Source0: http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-%{V_asterisk}.tar.gz
Source1: http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-addons-%{V_asterisk_addons}.tar.gz
Source2: http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-en-alaw-%{V_asterisk_sounds_core_en}.tar.gz
Source3: http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-extra-sounds-en-alaw-%{V_asterisk_sounds_extra_en}.tar.gz
Source4: http://www.amooma.de/asterisk/sprachbausteine/asterisk-core-sounds-de-gsm-%{V_asterisk_sounds_core_de}.tar.gz
Source5: ftp://ftp.chan-capi.org/chan-capi/chan_capi-%{V_chan_capi}.tar.gz
Source6: asterisk.txt
Source7: rc.asterisk
Patch0: asterisk.patch
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20040130, bison, gcc, make, grep
PreReq: OpenPKG, openpkg >= 20040130, MTA
BuildPreReq: zlib, curl, openssl, ncurses, speex, popt, gmime22
PreReq: zlib, curl, openssl, ncurses, speex, popt, gmime22
%if "%{with_ogg}" == "yes"
BuildPreReq: vorbis-libs
PreReq: vorbis-libs
%endif
%if "%{with_mp3}" == "yes"
PreReq: mpg123
%endif
%if "%{with_imap}" == "yes"
BuildPreReq: imap
PreReq: imap
%endif
%if "%{with_sqlite}" == "yes"
BuildPreReq: sqlite
PreReq: sqlite
%endif
%if "%{with_lua}" == "yes"
BuildPreReq: lua
PreReq: lua
%endif
%if "%{with_fax}" == "yes"
BuildPreReq: spandsp, tiff, jpeg, zlib
PreReq: spandsp, tiff, jpeg, zlib
%endif
%if "%{with_avcodec}" == "yes"
BuildPreReq: ffmpeg
PreReq: ffmpeg
%endif
%if "%{with_ldap}" == "yes"
BuildPreReq: openldap
PreReq: openldap
%endif
%if "%{with_radius}" == "yes"
BuildPreReq: radiusclient
PreReq: radiusclient
%endif
%if "%{with_jabber}" == "yes"
BuildPreReq: iksemel
PreReq: iksemel
%endif
%if "%{with_odbc}" == "yes"
BuildPreReq: unixodbc, sqlite, sqlite::with_odbc = yes
PreReq: unixodbc, sqlite, sqlite::with_odbc = yes
%endif
AutoReq: no
AutoReqProv: no
%description
Asterisk is a complete Private Branch Exchange (PBX) in software.
It provides all of the features you would expect from a PBX and
more. Asterisk does Voice over IP (VoIP) in many protocols. Asterisk
provides Voicemail services with Directory, Call Conferencing,
Interactive Voice Response and Call Queuing. It has support for
three-way calling, caller ID services, ADSI, SIP, etc. Asterisk
needs no additional hardware for VoIP.
%track
prog asterisk = {
version = %{V_asterisk}
url = http://downloads.asterisk.org/pub/telephony/asterisk/releases/
regex = asterisk-(\d+\.\d+(\.\d+)+)\.tar\.gz
}
prog asterisk:addons = {
version = %{V_asterisk_addons}
url = http://downloads.asterisk.org/pub/telephony/asterisk/releases/
regex = asterisk-addons-(\d+\.\d+(\.\d+)+)\.tar\.gz
}
prog asterisk:sounds_core_en = {
version = %{V_asterisk_sounds_core_en}
url = http://downloads.asterisk.org/pub/telephony/sounds/releases/
regex = asterisk-core-sounds-en-alaw-(\d+\.\d+(\.\d+)+)\.tar\.gz
}
prog asterisk:sounds_extra_en = {
version = %{V_asterisk_sounds_extra_en}
url = http://downloads.asterisk.org/pub/telephony/sounds/releases/
regex = asterisk-extra-sounds-en-alaw-(\d+\.\d+(\.\d+)+)\.tar\.gz
}
prog asterisk:sounds_core_de = {
version = %{V_asterisk_sounds_core_de}
url = http://www.amooma.de/asterisk/sprachbausteine/
regex = asterisk-core-sounds-de-gsm-(__VER__)\.tar\.gz
}
prog asterisk:chan_capi = {
version = %{V_chan_capi}
url = ftp://ftp.chan-capi.org/chan-capi/
regex = chan_capi-(__VER__)\.tar\.gz
}
%prep
%setup -q -n asterisk-%{V_asterisk}
%setup -q -n asterisk-%{V_asterisk} -D -T -a 1
%setup -q -n asterisk-%{V_asterisk} -D -T -a 5
%patch -p0
exit 0
cp %{SOURCE2} %{SOURCE3} sounds/
%{l_shtool} subst \
-e 's;\(CORE_SOUNDS_VERSION\):=.*$;\1:=%{V_asterisk_sounds_core_en};' \
-e 's;\(EXTRA_SOUNDS_VERSION\):=.*$;\1:=%{V_asterisk_sounds_extra_en};' \
sounds/Makefile
%{l_shtool} subst \
-e 's;-lradiusclient-ng;-lradiusclient;g' \
-e 's;radiusclient-ng\.h;radiusclient.h;g' \
configure cdr/cdr_radius.c
%build
# sanity check
%if "%{with_dahdi}" == "yes"
dahdi_prefix=""
case "%{l_platform -t}" in
*-linux* )
if [ ! -f /usr/include/linux/dahdi.h ]; then
echo "option \"with_dahdi\" requires DAHDI Linux drivers installed" 1>&2; exit 1
fi
dahdi_prefix=/usr
;;
*-freebsd* )
if [ ! -f /usr/local/include/dahdi/dahdi.h ]; then
echo "option \"with_dahdi\" requires DAHDI FreeBSD drivers installed" 1>&2; exit 1
fi
dahdi_prefix=/usr/local
;;
* ) echo "option \"with_dahdi\" supported under Linux and FreeBSD only" 1>&2; exit 1 ;;
esac
%endif
# re-configure music-on-hold to find mpg123
%if "%{with_mp3}" == "yes"
mpg123="%{l_prefix}/bin/mpg123"
%else
mpg123="`which false`"
%endif
%{l_shtool} subst \
-e "s;/usr/local/bin/mpg123;$mpg123;" \
-e "s;/usr/bin/mpg123;$mpg123;" \
res/res_musiconhold.c apps/app_mp3.c
# build program
%{l_shtool} subst \
-e 's;-llua5\.1;-llua;' \
-e 's;lua5\.1/lua\.h;lua/lua.h;' \
-e 's;ffmpeg/avcodec\.h;libavcodec/avcodec.h;' \
configure
( echo "ac_cv_prog_CONFIG_GMIME=%{l_prefix}/bin/gmime-config"
) >config.cache
cflags="%{l_cflags -O}"
cppflags="%{l_cppflags ncurses lua .}"
ldflags="%{l_ldflags}"
libs=""
cppflags="$cppflags `pkg-config gmime-2.0 --cflags-only-I`"
ldflags="$ldflags `pkg-config gmime-2.0 --libs-only-L`"
libs="$libs `pkg-config gmime-2.0 --libs-only-l`"
%if "%{with_ogg}" == "yes"
libs="$libs -logg -lm"
%endif
%if "%{with_avcodec}" == "yes"
libs="$libs -lavcodec -lavutil"
%endif
%if "%{with_ldap}" == "yes"
libs="$libs -lldap -llber -lssl -lcrypto"
%endif
%if "%{with_dahdi}" == "yes"
cppflags="$cppflags -I$dahdi_prefix/include"
ldflags="$ldflags -L$dahdi_prefix/lib"
%endif
CC="%{l_cc}" \
CFLAGS="$cflags" \
CPPFLAGS="$cppflags" \
LDFLAGS="$ldflags" \
LIBS="$libs" \
./configure \
--cache-file=./config.cache \
--prefix=%{l_prefix} \
--mandir=%{l_prefix}/man \
--sysconfdir=%{l_prefix}/etc \
--localstatedir=%{l_prefix}/var/asterisk \
--with-curl=%{l_prefix} \
--with-ncurses \
--with-gsm="internal" \
--with-popt=%{l_prefix} \
%if "%{with_sqlite}" == "yes"
--with-sqlite3=%{l_prefix} \
%else
--without-sqlite3 \
%endif
--with-speex=%{l_prefix} \
--with-speexdsp=%{l_prefix} \
--with-ssl=%{l_prefix} \
--with-gmime=%{l_prefix} \
--with-z=%{l_prefix} \
%if "%{with_ogg}" == "yes"
--with-ogg=%{l_prefix} \
--with-vorbis=%{l_prefix} \
%else
--without-ogg \
--without-vorbis \
%endif
%if "%{with_jabber}" == "yes"
--with-iksemel=%{l_prefix} \
%else
--without-iksemel \
%endif
%if "%{with_lua}" == "yes"
--with-lua=%{l_prefix} \
%else
--without-lua \
%endif
%if "%{with_dahdi}" == "yes"
--with-dahdi=$dahdi_prefix \
--with-tonezone=$dahdi_prefix \
%else
--without-dahdi \
--without-tonezone \
%endif
%if "%{with_avcodec}" == "yes"
--with-avcodec=%{l_prefix} \
%else
--without-avcodec \
%endif
%if "%{with_ldap}" == "yes"
--with-ldap=%{l_prefix} \
%else
--without-ldap \
%endif
%if "%{with_radius}" == "yes"
--with-radius=%{l_prefix} \
%else
--without-radius \
%endif
%if "%{with_imap}" == "yes"
--with-imap=%{l_prefix} \
%else
--without-imap \
%endif
%if "%{with_odbc}" == "yes"
--with-odbc=%{l_prefix} \
%else
--without-odbc \
%endif
--without-netsnmp \
--without-isdnnet \
--without-misdn \
--without-kde \
--without-nbs \
--without-newt \
--without-asound \
--without-oss \
--without-qt \
--without-sqlite \
--without-postgres \
--without-tds \
--without-osptk \
--without-pri \
--without-suppserv \
--without-vpb \
--without-sdl \
--without-x11 \
--without-gtk \
--without-gtk2
%{l_make} %{l_mflags} \
CC="%{l_cc} $cflags -I. -I./include -I../include -I../../include $cppflags"
# build addon modules
( cd asterisk-addons-*
ASTERISK_DIR="`pwd`/.." \
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
CPPFLAGS="%{l_cppflags ncurses tiff .}" \
LDFLAGS="%{l_ldflags}" \
%if "%{with_fax}" == "yes"
LIBS="-ltiff -ljpeg -lz -lm" \
%else
LIBS="-lm" \
%endif
./configure \
--prefix=%{l_prefix} \
--mandir=%{l_prefix}/man \
--sysconfdir=%{l_prefix}/etc \
--localstatedir=%{l_prefix}/var/asterisk \
--with-ncurses \
--with-asterisk \
--without-mysqlclient \
%if "%{with_fax}" == "yes"
--with-spandsp=%{l_prefix}
%else
--without-spandsp
%endif
%{l_make} %{l_mflags} \
CC="%{l_cc} %{l_cflags -O} -I. %{l_cppflags ncurses tiff .}"
) || exit $?
%if "%{with_capi}" == "yes"
( cd chan_capi-*
ln -s ../include/asterisk .
ln -s ../include/asterisk.h .
%{l_make} %{l_mflags} \
INSTALL_PREFIX=%{l_prefix} \
ASTERISK_HEADER_DIR="`pwd`"
) || exit $?
%endif
%install
# install program
rm -rf $RPM_BUILD_ROOT
%{l_make} %{l_mflags} install \
DESTDIR=$RPM_BUILD_ROOT \
INSTALL_PREFIX=%{l_prefix}
# install addon modules
( cd asterisk-addons-*
%{l_make} %{l_mflags} install \
DESTDIR=$RPM_BUILD_ROOT \
INSTALL_PREFIX=%{l_prefix}
) || exit $?
%if "%{with_capi}" == "yes"
( cd chan_capi-*
%{l_make} %{l_mflags} install \
INSTALL_PREFIX=$RPM_BUILD_ROOT%{l_prefix} \
INSTALL="%{l_shtool} install -c" \
MODULES_DIR='$(INSTALL_PREFIX)/lib/asterisk/modules'
) || exit $?
%endif
# install addon sounds
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/share/asterisk/sounds/de
( cd $RPM_BUILD_ROOT%{l_prefix}/share/asterisk/sounds/de
%{l_gzip} -d -c %{SOURCE4} | %{l_tar} xf -
) || exit $?
# strip down installation
rm -f $RPM_BUILD_ROOT%{l_prefix}/sbin/autosupport >/dev/null 2>&1 || true
rm -f $RPM_BUILD_ROOT%{l_prefix}/sbin/safe_asterisk >/dev/null 2>&1 || true
rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man8/autosupport.8 >/dev/null 2>&1 || true
rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man8/safe_asterisk.8 >/dev/null 2>&1 || true
rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/asterisk/firmware >/dev/null 2>&1 || true
rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/asterisk/images >/dev/null 2>&1 || true
rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/asterisk/sounds/.asterisk* >/dev/null 2>&1 || true
rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/asterisk/sounds/en/CREDIT* >/dev/null 2>&1 || true
rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/asterisk/sounds/en/CHANGES* >/dev/null 2>&1 || true
rmdir $RPM_BUILD_ROOT%{l_prefix}/share/asterisk/sounds/es >/dev/null 2>&1 || true
rmdir $RPM_BUILD_ROOT%{l_prefix}/share/asterisk/sounds/fr >/dev/null 2>&1 || true
# create additional directories
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/var/asterisk/db
# post-adjust installation
strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true
mv $RPM_BUILD_ROOT%{l_prefix}/share/asterisk/agi-bin \
$RPM_BUILD_ROOT%{l_prefix}/lib/asterisk/agi-bin
for bin in $RPM_BUILD_ROOT%{l_prefix}/lib/asterisk/agi-bin/*.*; do
mv $bin `echo $bin | sed -e 's;\.[^.]*$;;'`
done
# install default configuration
for name in `grep "^/d" -e "/<\/file>/,\$d" >$name
%{l_shtool} install -c -m 644 %{l_value -s -a} \
$name $RPM_BUILD_ROOT%{l_prefix}/etc/asterisk/
done
# install run-command script
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
%{l_shtool} install -c -m 755 %{l_value -s -a} \
%{SOURCE rc.asterisk} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
# determine installation files
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
%{l_files_std} \
'%config %attr(640,%{l_mgrp},%{l_rgrp}) %{l_prefix}/etc/asterisk/*' \
'%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/asterisk'
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT
%post
%if "%{with_dahdi}" == "yes"
if [ $1 -eq 1 ]; then
case "%{l_platform -t}" in
*-freebsd* )
( echo "To allow Asterisk to use the DAHDI /dev/dahdi/pseudo device(s)"
echo "you have add the following entry to /etc/devfs.rules:"
echo ""
echo "[openpkg_asterisk=10]"
echo "add path 'dahdi/pseudo*' mode 0664 user %{l_rusr} group %{l_rgrp}"
echo ""
) | %{l_rpmtool} msg -b -t notice
;;
esac
fi
%endif
%if "%{with_odbc}" == "yes"
# after install, optionally link into ODBC and create database
if $RPM_INSTALL_PREFIX/bin/odbcinst -q -s -n "asterisk-sqlite" >/dev/null 2>&1; then
:
else
( echo "[asterisk-sqlite]"
echo "Description = Asterisk SQLite Database"
echo "Driver = SQLite3"
echo "Database = $RPM_INSTALL_PREFIX/var/asterisk/db/asterisk.sqlite"
echo "Timeout = 2000"
) | $RPM_INSTALL_PREFIX/bin/odbcinst -i -s -l -n "asterisk-sqlite" -r >/dev/null 2>&1 || true
fi
if [ ! -f $RPM_INSTALL_PREFIX/var/asterisk/run/asterisk.db ]; then
( umask 007
echo "CREATE TABLE map (key TEXT, val TEXT);" | $RPM_INSTALL_PREFIX/bin/isql "asterisk-sqlite" -b
chown %{l_rusr}:%{l_rgrp} $RPM_INSTALL_PREFIX/var/asterisk/db/asterisk.sqlite >/dev/null 2>&1 || true
) || exit $?
fi
%endif
# after upgrade, restart service
[ $1 -eq 2 ] || exit 0
eval `%{l_rc} asterisk status 2>/dev/null`
[ ".$asterisk_active" = .yes ] && %{l_rc} asterisk restart
exit 0
%preun
# before erase, stop service and remove log files
[ $1 -eq 0 ] || exit 0
%{l_rc} asterisk stop 2>/dev/null
rm -f $RPM_INSTALL_PREFIX/var/asterisk/log/* >/dev/null 2>&1 || true
rm -f $RPM_INSTALL_PREFIX/var/asterisk/log/cdr-*/* >/dev/null 2>&1 || true
rm -f $RPM_INSTALL_PREFIX/var/asterisk/run/* >/dev/null 2>&1 || true
rm -f $RPM_INSTALL_PREFIX/var/asterisk/spool/*/* >/dev/null 2>&1 || true
rm -f $RPM_INSTALL_PREFIX/var/asterisk/db/* >/dev/null 2>&1 || true
%if "%{with_odbc}" == "yes"
# before erase, optionally unlink from ODBC and destroy database
$RPM_INSTALL_PREFIX/bin/odbcinst -u -s -l -n "asterisk-sqlite" >/dev/null 2>&1 || true
%endif
exit 0
@
1.109
log
@upgrading package: asterisk 1.6.1.11 -> 1.6.2.0
@
text
@d28 1
a28 1
%define V_asterisk_sounds_core_en 1.4.16
d30 1
a30 1
%define V_asterisk_sounds_extra_en 1.4.9
d44 1
a44 1
Release: 20091220
@
1.108
log
@modifying package: asterisk-1.6.1.11 20091202 -> 20091204
@
text
@d25 3
a27 3
%define V_opkg 1.6.1.11
%define V_asterisk 1.6.1.11
%define V_asterisk_addons 1.6.1.2
d44 1
a44 1
Release: 20091204
@
1.107
log
@upgrading package: asterisk 1.6.1.10 -> 1.6.1.11
@
text
@d27 1
a27 1
%define V_asterisk_addons 1.6.1.1
d44 1
a44 1
Release: 20091202
@
1.106
log
@upgrading package: asterisk 1.6.1.9 -> 1.6.1.10
@
text
@d25 2
a26 2
%define V_opkg 1.6.1.10
%define V_asterisk 1.6.1.10
d44 1
a44 1
Release: 20091121
@
1.105
log
@upgrading package: asterisk 1.6.1.8 -> 1.6.1.9
@
text
@d25 2
a26 2
%define V_opkg 1.6.1.9
%define V_asterisk 1.6.1.9
d44 1
a44 1
Release: 20091105
@
1.104
log
@upgrading package: asterisk 1.6.1.6 -> 1.6.1.8
@
text
@d25 2
a26 2
%define V_opkg 1.6.1.8
%define V_asterisk 1.6.1.8
d44 1
a44 1
Release: 20091028
@
1.103
log
@modifying package: asterisk-1.6.1.6 20090904 -> 20090915
@
text
@d25 2
a26 2
%define V_opkg 1.6.1.6
%define V_asterisk 1.6.1.6
d44 1
a44 1
Release: 20090915
@
1.102
log
@upgrading package: asterisk 1.6.1.5 -> 1.6.1.6
@
text
@d28 1
a28 1
%define V_asterisk_sounds_core_en 1.4.15
d44 1
a44 1
Release: 20090904
@
1.101
log
@upgrading package: asterisk 1.6.1.4 -> 1.6.1.5
@
text
@d25 2
a26 2
%define V_opkg 1.6.1.5
%define V_asterisk 1.6.1.5
d44 1
a44 1
Release: 20090830
@
1.100
log
@modifying package: asterisk-1.6.1.4 20090811 -> 20090816
@
text
@d25 2
a26 2
%define V_opkg 1.6.1.4
%define V_asterisk 1.6.1.4
d44 1
a44 1
Release: 20090816
@
1.99
log
@upgrading package: asterisk 1.6.1.2 -> 1.6.1.4
@
text
@d31 1
a31 1
%define V_chan_capi 1.1.3
d44 1
a44 1
Release: 20090811
@
1.98
log
@modifying package: asterisk-1.6.1.2 20090801 -> 20090805
@
text
@d25 2
a26 2
%define V_opkg 1.6.1.2
%define V_asterisk 1.6.1.2
d44 1
a44 1
Release: 20090805
@
1.97
log
@upgrading package: asterisk 1.6.1.1 -> 1.6.1.2
@
text
@d31 1
a31 1
%define V_chan_capi 1.1.2
d44 1
a44 1
Release: 20090801
@
1.96
log
@modifying package: asterisk-1.6.1.1 20090606 -> 20090725
@
text
@d25 2
a26 2
%define V_opkg 1.6.1.1
%define V_asterisk 1.6.1.1
d44 1
a44 1
Release: 20090725
@
1.95
log
@upgrading package: asterisk 1.6.1.0 -> 1.6.1.1
@
text
@d27 1
a27 1
%define V_asterisk_addons 1.6.1.0
d44 1
a44 1
Release: 20090606
@
1.94
log
@upgrading package: asterisk 1.6.0.9 -> 1.6.1.0
@
text
@d25 2
a26 2
%define V_opkg 1.6.1.0
%define V_asterisk 1.6.1.0
d44 1
a44 1
Release: 20090504
@
1.93
log
@bump years in copyright messages
@
text
@d25 3
a27 3
%define V_opkg 1.6.0.9
%define V_asterisk 1.6.0.9
%define V_asterisk_addons 1.6.0.1
d44 1
a44 1
Release: 20090407
d62 4
a65 4
Source0: http://downloads.digium.com/pub/asterisk/releases/asterisk-%{V_asterisk}.tar.gz
Source1: http://downloads.digium.com/pub/asterisk/releases/asterisk-addons-%{V_asterisk_addons}.tar.gz
Source2: http://downloads.digium.com/pub/telephony/sounds/releases/asterisk-core-sounds-en-alaw-%{V_asterisk_sounds_core_en}.tar.gz
Source3: http://downloads.digium.com/pub/telephony/sounds/releases/asterisk-extra-sounds-en-alaw-%{V_asterisk_sounds_extra_en}.tar.gz
d77 2
a78 2
BuildPreReq: zlib, curl, openssl, ncurses, speex, popt, gmime
PreReq: zlib, curl, openssl, ncurses, speex, popt, gmime
d137 1
a137 1
url = http://downloads.digium.com/pub/asterisk/releases/
d142 1
a142 1
url = http://downloads.digium.com/pub/asterisk/releases/
d147 1
a147 1
url = http://downloads.digium.com/pub/telephony/sounds/releases/
d152 1
a152 1
url = http://downloads.digium.com/pub/telephony/sounds/releases/
d171 1
d220 1
a220 1
( echo "ac_cv_prog_CONFIG_GMIME='pkg-config gmime-2.0'"
d226 3
@
1.92
log
@upgrading package: asterisk 1.6.0.8 -> 1.6.0.9
@
text
@d3 1
a3 1
## Copyright (c) 2000-2008 OpenPKG Foundation e.V.
@
1.91
log
@upgrading package: asterisk 1.6.0.6 -> 1.6.0.8
@
text
@d25 2
a26 2
%define V_opkg 1.6.0.8
%define V_asterisk 1.6.0.8
d44 1
a44 1
Release: 20090403
@
1.90
log
@modifying package: asterisk-1.6.0.6 20090223 -> 20090328
@
text
@d25 2
a26 2
%define V_opkg 1.6.0.6
%define V_asterisk 1.6.0.6
d44 1
a44 1
Release: 20090328
@
1.89
log
@upgrading package: asterisk 1.6.0.5 -> 1.6.0.6
@
text
@d28 1
a28 1
%define V_asterisk_sounds_core_en 1.4.14
d30 2
a31 2
%define V_asterisk_sounds_extra_en 1.4.8
%define V_chan_capi 1_6_1
d44 1
a44 1
Release: 20090223
d67 1
a67 1
Source5: http://www.turbocat.net/~hselasky/capi4pbx/releases/chan_capi_%{V_chan_capi}.tar.bz2
d162 2
a163 2
url = http://www.turbocat.net/~hselasky/capi4pbx/releases/
regex = chan_capi_(__VER__)\.tar\.bz2
a200 10
%if "%{with_capi}" == "yes"
case "%{l_platform -t}" in
*-freebsd* | *-netbsd* )
if [ ! -f /usr/include/i4b/include/capi20.h ]; then
echo "option \"with_chan_capi\" requires I4B 1.6 or newer installed" 1>&2; exit 1
fi
;;
* ) echo "option \"with_capi\" supported under FreeBSD and NetBSD only" 1>&2; exit 1 ;;
esac
%endif
d364 3
a366 1
( cd chan_capi_*
d368 2
a369 1
INSTALL_PREFIX=%{l_prefix}
d387 1
a387 1
( cd chan_capi_*
d390 2
a391 1
INSTALL="%{l_shtool} install -c"
@
1.88
log
@modifying package: asterisk-1.6.0.5 20090124 -> 20090130
@
text
@d25 2
a26 2
%define V_opkg 1.6.0.5
%define V_asterisk 1.6.0.5
d44 1
a44 1
Release: 20090130
@
1.87
log
@upgrading package: asterisk 1.6.0.3 -> 1.6.0.5
@
text
@d29 1
a29 1
%define V_asterisk_sounds_core_de 20080705
d44 1
a44 1
Release: 20090124
@
1.86
log
@modifying package: asterisk-1.6.0.3 20090108 -> 20090110
@
text
@d25 2
a26 2
%define V_opkg 1.6.0.3
%define V_asterisk 1.6.0.3
d44 1
a44 1
Release: 20090110
@
1.85
log
@upgrading package: asterisk 1.6.0.2 -> 1.6.0.3
@
text
@d28 1
a28 1
%define V_asterisk_sounds_core_en 1.4.13
d44 1
a44 1
Release: 20090108
@
1.84
log
@upgrading package: asterisk 1.6.0.1 -> 1.6.0.2
@
text
@d25 2
a26 2
%define V_opkg 1.6.0.2
%define V_asterisk 1.6.0.2
d44 1
a44 1
Release: 20081214
@
1.83
log
@upgrading package: asterisk 1.6.0 -> 1.6.0.1
@
text
@d25 3
a27 3
%define V_opkg 1.6.0.1
%define V_asterisk 1.6.0.1
%define V_asterisk_addons 1.6.0
d44 1
a44 1
Release: 20081010
@
1.82
log
@better regex for Lua subst
@
text
@d25 2
a26 2
%define V_opkg 1.6.0
%define V_asterisk 1.6.0
d44 1
a44 1
Release: 20081005
@
1.81
log
@upgrading package: asterisk 1.6.0rc4 -> 1.6.0
@
text
@d44 1
a44 1
Release: 20081003
d225 3
a227 3
-e 's;-llua5.1;-llua;' \
-e 's;lua5.1/lua.h;lua/lua.h;' \
-e 's;ffmpeg/avcodec.h;libavcodec/avcodec.h;' \
@
1.80
log
@adjust back to gmime 2.2 world order (which uses gmime-2.0.pc)
@
text
@d25 3
a27 3
%define V_opkg 1.6.0rc4
%define V_asterisk 1.6.0-rc4
%define V_asterisk_addons 1.6.0-rc1
d44 1
a44 1
Release: 20080922
@
1.79
log
@modifying package: asterisk-1.6.0rc4 20080909 -> 20080910
@
text
@d44 1
a44 1
Release: 20080910
d229 1
a229 1
( echo "ac_cv_prog_CONFIG_GMIME='pkg-config gmime-2.4'"
@
1.78
log
@modifying package: asterisk-1.6.0rc4 20080908 -> 20080909
@
text
@d28 1
a28 1
%define V_asterisk_sounds_core_en 1.4.12
d44 1
a44 1
Release: 20080909
@
1.77
log
@Zaptel was renamed to DAHDI
@
text
@d30 1
a30 1
%define V_asterisk_sounds_extra_en 1.4.7
d44 1
a44 1
Release: 20080908
@
1.76
log
@upgrading package: asterisk 1.6.0b9 -> 1.6.0rc4
@
text
@d44 1
a44 1
Release: 20080905
d47 1
a47 1
%option with_zaptel no
d183 2
a184 2
%if "%{with_zaptel}" == "yes"
zaptel_prefix=""
d187 2
a188 2
if [ ! -f /usr/include/linux/zaptel.h ]; then
echo "option \"with_zaptel\" requires Zaptel Linux drivers installed" 1>&2; exit 1
d190 1
a190 1
zaptel_prefix=/usr
d193 2
a194 2
if [ ! -f /usr/local/include/zaptel/zaptel.h ]; then
echo "option \"with_zaptel\" requires Zaptel FreeBSD drivers installed" 1>&2; exit 1
d196 1
a196 1
zaptel_prefix=/usr/local
d198 1
a198 1
* ) echo "option \"with_zaptel\" supported under Linux and FreeBSD only" 1>&2; exit 1 ;;
d244 3
a246 3
%if "%{with_zaptel}" == "yes"
cppflags="$cppflags -I$zaptel_prefix/include"
ldflags="$ldflags -L$zaptel_prefix/lib"
d290 3
a292 3
%if "%{with_zaptel}" == "yes"
--with-zaptel=$zaptel_prefix \
--with-tonezone=$zaptel_prefix \
d294 1
a294 1
--without-zaptel \
d435 2
a436 2
%if "%{with_zaptel}" == "no"
[ ".$name" = ".zapata.conf" ] && continue
d472 1
a472 1
%if "%{with_zaptel}" == "yes"
d476 1
a476 1
( echo "To allow Asterisk to use the Zaptel /dev/zap/pseudo device(s)"
d480 1
a480 1
echo "add path 'zap/pseudo*' mode 0664 user %{l_rusr} group %{l_rgrp}"
@
1.75
log
@add new german voice prompts
@
text
@d25 3
a27 3
%define V_opkg 1.6.0b9
%define V_asterisk 1.6.0-beta9
%define V_asterisk_addons 1.6.0-beta4
d44 1
a44 1
Release: 20080708
@
1.74
log
@fix building against GMIME 2.3.x
@
text
@d25 7
a31 6
%define V_opkg 1.6.0b9
%define V_asterisk 1.6.0-beta9
%define V_asterisk_addons 1.6.0-beta4
%define V_asterisk_sounds_core 1.4.12
%define V_asterisk_sounds_extra 1.4.7
%define V_chan_capi 1_6_1
d44 1
a44 1
Release: 20080704
d64 6
a69 5
Source2: http://downloads.digium.com/pub/telephony/sounds/releases/asterisk-core-sounds-en-alaw-%{V_asterisk_sounds_core}.tar.gz
Source3: http://downloads.digium.com/pub/telephony/sounds/releases/asterisk-extra-sounds-en-alaw-%{V_asterisk_sounds_extra}.tar.gz
Source4: http://www.turbocat.net/~hselasky/capi4pbx/releases/chan_capi_%{V_chan_capi}.tar.bz2
Source5: asterisk.txt
Source6: rc.asterisk
d145 2
a146 2
prog asterisk:sounds_core = {
version = %{V_asterisk_sounds_core}
d150 2
a151 2
prog asterisk:sounds_extra = {
version = %{V_asterisk_sounds_extra}
d155 5
d169 1
a169 1
%setup -q -n asterisk-%{V_asterisk} -D -T -a 4
d173 2
a174 2
-e 's;\(CORE_SOUNDS_VERSION\):=.*$;\1:=%{V_asterisk_sounds_core};' \
-e 's;\(EXTRA_SOUNDS_VERSION\):=.*$;\1:=%{V_asterisk_sounds_extra};' \
d401 7
@
1.73
log
@modifying package: asterisk-1.6.0b9 20080518 -> 20080704
@
text
@d222 2
d247 1
@
1.72
log
@upgrading package: asterisk 1.6.0b8 -> 1.6.0b9
@
text
@d27 1
a27 1
%define V_asterisk_addons 1.6.0-beta3
d43 1
a43 1
Release: 20080518
@
1.71
log
@upgrading package: asterisk 1.6.0b6 -> 1.6.0b8
@
text
@d25 2
a26 2
%define V_opkg 1.6.0b8
%define V_asterisk 1.6.0-beta8
d43 1
a43 1
Release: 20080507
@
1.70
log
@add initial cut for a MeetMe addition to pass an audio file containing the user name (conference introduction)
@
text
@d25 4
a28 4
%define V_opkg 1.6.0b6
%define V_asterisk 1.6.0-beta6
%define V_asterisk_addons 1.6.0-beta2
%define V_asterisk_sounds_core 1.4.11
d43 1
a43 1
Release: 20080325
@
1.69
log
@move AGI directory; add some SIP notify settings and use lower case extension
@
text
@d43 1
a43 1
Release: 20080324
@
1.68
log
@document the essential hint that /dev/zap/pseudo has to be writeable by the Asterisk process under FreeBSD
@
text
@d43 1
a43 1
Release: 20080323
d74 1
a74 1
PreReq: OpenPKG, openpkg >= 20040130
d410 3
a412 1
for bin in $RPM_BUILD_ROOT%{l_prefix}/share/asterisk/agi-bin/*.*; do
@
1.67
log
@unify the AstDB filenames and regen the patch to be in sort order
@
text
@d453 15
@
1.66
log
@place ODBC/SQLite based database side-by-side to the Berkeley-DB based AstDB
@
text
@d461 1
a461 1
echo "Database = $RPM_INSTALL_PREFIX/var/asterisk/db/astdb.sqlite"
d468 1
a468 1
chown %{l_rusr}:%{l_rgrp} $RPM_INSTALL_PREFIX/var/asterisk/db/astdb.sqlite >/dev/null 2>&1 || true
a478 5
%if "%{with_odbc}" == "yes"
# before erase, optionally unlink from ODBC and destroy database
$RPM_INSTALL_PREFIX/bin/odbcinst -u -s -l -n "asterisk-sqlite" >/dev/null 2>&1 || true
rm -f $RPM_INSTALL_PREFIX/var/asterisk/db/astdb.sqlite >/dev/null 2>&1 || true
%endif
d487 4
@
1.65
log
@STRING -> TEXT and use isql(1) ODBC frontend instead of native sqlite3(1)
@
text
@d461 1
a461 1
echo "Database = $RPM_INSTALL_PREFIX/var/asterisk/run/asterisk.db"
d468 1
a468 1
chown %{l_rusr}:%{l_rgrp} $RPM_INSTALL_PREFIX/var/asterisk/run/asterisk.db >/dev/null 2>&1 || true
d482 1
a482 1
rm -f $RPM_INSTALL_PREFIX/var/asterisk/run/asterisk.db >/dev/null 2>&1 || true
d491 1
a491 1
rm -f $RPM_INSTALL_PREFIX/var/asterisk/spool/astdb >/dev/null 2>&1 || true
@
1.64
log
@initial ODBC (+SQLite) support
@
text
@d43 1
a43 1
Release: 20080322
d467 1
a467 2
echo "CREATE TABLE map (key STRING, val STRING);" |\
$RPM_INSTALL_PREFIX/bin/sqlite3 $RPM_INSTALL_PREFIX/var/asterisk/run/asterisk.db
@
1.63
log
@ops, remove accidentally commited 'exit 0'
@
text
@d58 1
d116 4
d307 5
a320 1
--without-odbc \
d425 4
d453 20
d480 5
@
1.62
log
@add HTTP upload support (via gmime) to AMI and add CDR support
@
text
@a158 1
exit 0
@
1.61
log
@all no longer true
@
text
@d74 2
a75 2
BuildPreReq: zlib, curl, openssl, ncurses, speex, popt
PreReq: zlib, curl, openssl, ncurses, speex, popt
d159 1
d257 1
d414 3
@
1.60
log
@modifying package: asterisk-1.6.0b6 20080321 -> 20080322
@
text
@d34 1
a34 1
Summary: Private Branch Exchange (PBX) for VoIP
a126 7
NOTICE: This OpenPKG packaging of Asterisk is special according to
the following aspects: 1. for full portability this package does
NOT include Asterisk support for any telephony hardware, 2. this
package uses a stripped down default configuration which provides an
out-of-the-box VoIP configuration for a small organisation and 3.
this package includes the Perl Asterisk::AGI module.
@
1.59
log
@festival.conf is now provided (together with the run-time subdir and the dependency to Festival itself) by asterisk-festival
@
text
@d28 1
a28 1
%define V_asterisk_sounds_core 1.4.10
d43 1
a43 1
Release: 20080321
@
1.58
log
@the Perl AGI module is now packaged as perl-asterisk
@
text
@d43 1
a43 1
Release: 20080320
@
1.57
log
@fix name in track section
@
text
@a29 1
%define V_asterisk_perl 0.10
d64 3
a66 4
Source4: http://asterisk.gnuinter.net/files/asterisk-perl-%{V_asterisk_perl}.tar.gz
Source5: http://www.turbocat.net/~hselasky/capi4pbx/releases/chan_capi_%{V_chan_capi}.tar.bz2
Source6: asterisk.txt
Source7: rc.asterisk
a75 2
BuildPreReq: perl, perl-openpkg
PreReq: perl
a154 5
prog asterisk:agi = {
version = %{V_asterisk_perl}
url = http://asterisk.gnuinter.net/files/
regex = asterisk-perl-(__VER__)\.tar\.gz
}
a164 1
%setup -q -n asterisk-%{V_asterisk} -D -T -a 5
a366 4
# build Perl API
%{l_prefix}/bin/perl-openpkg prepare
%{l_prefix}/bin/perl-openpkg -d asterisk-perl-%{V_asterisk_perl} configure build
a387 8
# install Perl API
%{l_prefix}/bin/perl-openpkg -d asterisk-perl-%{V_asterisk_perl} install
%{l_shtool} install -c -m 644 %{l_value -s -a} \
-e 's;/usr/bin/perl;%{l_prefix}/bin/perl;' \
asterisk-perl-%{V_asterisk_perl}/examples/* \
$RPM_BUILD_ROOT%{l_prefix}/share/asterisk/agi-bin/
%{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
d433 1
a433 1
%{l_files_std} `cat perl-openpkg-files` \
@
1.56
log
@libiax is now packaged in asterisk-libiax
@
text
@d139 1
a139 1
prog asterisk16 = {
d144 1
a144 1
prog asterisk16:addons = {
d149 1
a149 1
prog asterisk16:sounds_core = {
d154 1
a154 1
prog asterisk16:sounds_extra = {
d159 1
a159 1
prog asterisk16:agi = {
d164 1
a164 1
prog asterisk16:chan_capi = {
@
1.55
log
@app_conference is now packaged in asterisk-conference
@
text
@a29 1
%define V_asterisk_libiax 0.2.2
d65 4
a68 5
Source4: http://downloads.digium.com/pub/libiax/iax-%{V_asterisk_libiax}.tar.gz
Source5: http://asterisk.gnuinter.net/files/asterisk-perl-%{V_asterisk_perl}.tar.gz
Source6: http://www.turbocat.net/~hselasky/capi4pbx/releases/chan_capi_%{V_chan_capi}.tar.bz2
Source7: asterisk.txt
Source8: rc.asterisk
d74 1
a74 1
BuildPreReq: OpenPKG, openpkg >= 20040130, bison, gcc, make, grep, config
a158 5
prog asterisk16:libiax = {
version = %{V_asterisk_libiax}
url = http://downloads.digium.com/pub/libiax/
regex = iax-(\d+\.\d+(\.\d+)+)\.tar\.gz
}
a174 1
%setup -q -n asterisk-%{V_asterisk} -D -T -a 6
a376 11
# build libiax
( cd iax-%{V_asterisk_libiax}
%{l_prefix}/bin/config install .
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
./configure \
--prefix=%{l_prefix} \
--disable-shared
%{l_make} %{l_mflags -O}
) || exit $?
a401 5
# install libiax
( cd iax-%{V_asterisk_libiax}
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
) || exit $?
@
1.54
log
@modifying package: asterisk-1.6.0b6 20080320 again
@
text
@a30 1
%define V_app_conference 2.0.1
d67 4
a70 5
Source5: http://switch.dl.sourceforge.net/appconference/appconference-%{V_app_conference}.tar.gz
Source6: http://asterisk.gnuinter.net/files/asterisk-perl-%{V_asterisk_perl}.tar.gz
Source7: http://www.turbocat.net/~hselasky/capi4pbx/releases/chan_capi_%{V_chan_capi}.tar.bz2
Source8: asterisk.txt
Source9: rc.asterisk
a71 1
Patch1: asterisk.patch.appconference
d136 2
a137 4
package uses a stripped down default configuration which provides
an out-of-the-box VoIP configuration for a small organisation,
3. this package includes the add-on Asterisk application module
"app_conference" for hardware-timer independent conferencing, and 4.
a182 1
%setup -q -n asterisk-%{V_asterisk} -D -T -a 7
a183 3
( cd appconference-*
%patch -p0 -P 1
) || exit $?
a377 4
( cd appconference-*
%{l_make} %{l_mflags} \
INSTALL_PREFIX=%{l_prefix}
) || exit $?
a412 5
( cd appconference-*
%{l_make} %{l_mflags} install \
INSTALL_PREFIX=$RPM_BUILD_ROOT%{l_prefix} \
INSTALL="%{l_shtool} install -c"
) || exit $?
@
1.53
log
@flush some more config changes
@
text
@d28 1
a28 1
%define V_asterisk_sounds_core 1.4.9
@
1.52
log
@finally get Zaptel support working
@
text
@d46 1
a46 1
Release: 20080319
@
1.51
log
@zaptel is installed in a subdir with the latest misc/zaptel port of FreeBSD
@
text
@d251 3
d264 4
d269 3
a271 3
CFLAGS="%{l_cflags -O}" \
CPPFLAGS="%{l_cppflags ncurses lua .}" \
LDFLAGS="%{l_ldflags}" \
d310 1
d313 1
a350 1
--without-tonezone \
d357 1
a357 1
CC="%{l_cc} %{l_cflags -O} -I. -I./include -I../include -I../../include %{l_cppflags ncurses lua .}"
@
1.50
log
@upgrade to security-fixed beta 6
@
text
@d215 1
a215 1
if [ ! -f /usr/local/include/zaptel.h ]; then
@
1.49
log
@apply Fedora mega patch for getting app_conference to work
@
text
@d25 2
a26 2
%define V_opkg 1.6.0b5
%define V_asterisk 1.6.0-beta5
@
1.48
log
@use ALAW format only as the GSM sound would be downloaded and it of lower quality anyway
@
text
@d46 1
a46 1
Release: 20080318
d74 1
d190 3
@
1.47
log
@try to let Asterisk pass out the CA certificate if possible
@
text
@d67 6
a72 7
Source4: http://downloads.digium.com/pub/telephony/sounds/releases/asterisk-extra-sounds-en-gsm-%{V_asterisk_sounds_extra}.tar.gz
Source5: http://downloads.digium.com/pub/libiax/iax-%{V_asterisk_libiax}.tar.gz
Source6: http://switch.dl.sourceforge.net/appconference/appconference-%{V_app_conference}.tar.gz
Source7: http://asterisk.gnuinter.net/files/asterisk-perl-%{V_asterisk_perl}.tar.gz
Source8: http://www.turbocat.net/~hselasky/capi4pbx/releases/chan_capi_%{V_chan_capi}.tar.bz2
Source9: asterisk.txt
Source10: rc.asterisk
d184 1
a187 1
%setup -q -n asterisk-%{V_asterisk} -D -T -a 8
d189 1
a189 1
cp %{SOURCE2} %{SOURCE3} %{SOURCE4} sounds/
@
1.46
log
@add optional RADIUS support
@
text
@d46 1
a46 1
Release: 20080317
@
1.45
log
@provide sounds in both GSM (low quality) and ALAW (higher quality) format
@
text
@d56 1
d116 4
d195 4
d313 5
a337 1
--without-radius \
@
1.44
log
@prepare 'nat' option which is often required to get the SIP authentication working
@
text
@d64 9
a72 8
Source2: http://downloads.digium.com/pub/telephony/sounds/releases/asterisk-core-sounds-en-gsm-%{V_asterisk_sounds_core}.tar.gz
Source3: http://downloads.digium.com/pub/telephony/sounds/releases/asterisk-extra-sounds-en-gsm-%{V_asterisk_sounds_extra}.tar.gz
Source4: http://downloads.digium.com/pub/libiax/iax-%{V_asterisk_libiax}.tar.gz
Source5: http://switch.dl.sourceforge.net/appconference/appconference-%{V_app_conference}.tar.gz
Source6: http://asterisk.gnuinter.net/files/asterisk-perl-%{V_asterisk_perl}.tar.gz
Source7: http://www.turbocat.net/~hselasky/capi4pbx/releases/chan_capi_%{V_chan_capi}.tar.bz2
Source8: asterisk.txt
Source9: rc.asterisk
d154 1
a154 1
regex = asterisk-core-sounds-en-gsm-(\d+\.\d+(\.\d+)+)\.tar\.gz
d159 1
a159 1
regex = asterisk-extra-sounds-en-gsm-(\d+\.\d+(\.\d+)+)\.tar\.gz
a179 1
%setup -q -n asterisk-%{V_asterisk} -D -T -a 4
d183 1
d185 1
a185 1
cp %{SOURCE2} %{SOURCE3} sounds/
@
1.43
log
@Fix building under with_ogg=no (contribited by cs@@)
@
text
@d46 1
a46 1
Release: 20080310
@
1.42
log
@provide more clean out-of-the-box configuration
@
text
@d46 1
a46 1
Release: 20080309
d238 4
a241 1
libs="-logg -lm"
d271 1
d274 4
@
1.41
log
@remove empty subdir
@
text
@d253 1
a253 1
--sysconfdir=%{l_prefix}/etc/asterisk \
d341 1
a341 1
--sysconfdir=%{l_prefix}/etc/asterisk \
d431 4
a434 1
rmdir $RPM_BUILD_ROOT%{l_prefix}/etc/asterisk/asterisk >/dev/null 2>&1 || true
@
1.40
log
@fix building under with_fax=no
@
text
@d431 1
@
1.39
log
@build a smaller Asterisk by default but let us bump up the feature volume with a bunch of options
@
text
@d333 1
d335 3
@
1.38
log
@fix building of Asterisk addons
@
text
@d51 1
d53 1
d56 4
d79 2
a80 4
BuildPreReq: zlib, curl, openssl, ncurses, speex, vorbis-libs, imap, popt, sqlite, iksemel, lua
PreReq: zlib, curl, openssl, ncurses, speex, vorbis-libs, imap, popt, sqlite, iksemel, lua
BuildPreReq: spandsp, tiff, jpeg, libxml, zlib
PreReq: spandsp, tiff, jpeg, libxml, zlib
d83 4
d90 16
d114 4
d259 1
d261 3
d265 1
d270 1
d272 4
d277 3
d295 3
d299 1
d342 1
d344 3
@
1.37
log
@upgrade to beta 5 and the Asterisk 1.4 sounds, including the extra sounds
@
text
@d75 2
d282 19
d335 5
@
1.36
log
@fix building under newer systems like amd64-freebsd7.0
@
text
@d25 9
a33 8
%define V_opkg 1.6.0b4
%define V_asterisk 1.6.0-beta4
%define V_asterisk_addons 1.6.0-beta2
%define V_asterisk_sounds 1.2.1
%define V_asterisk_libiax 0.2.2
%define V_app_conference 2.0.1
%define V_asterisk_perl 0.10
%define V_chan_capi 1_6_1
d58 8
a65 7
Source2: http://downloads.digium.com/pub/asterisk/releases/asterisk-sounds-%{V_asterisk_sounds}.tar.gz
Source3: http://downloads.digium.com/pub/libiax/iax-%{V_asterisk_libiax}.tar.gz
Source4: http://switch.dl.sourceforge.net/appconference/appconference-%{V_app_conference}.tar.gz
Source5: http://asterisk.gnuinter.net/files/asterisk-perl-%{V_asterisk_perl}.tar.gz
Source6: http://www.turbocat.net/~hselasky/capi4pbx/releases/chan_capi_%{V_chan_capi}.tar.bz2
Source7: asterisk.txt
Source8: rc.asterisk
d120 9
a128 4
prog asterisk16:sounds = {
version = %{V_asterisk_sounds}
url = http://downloads.digium.com/pub/asterisk/releases/
regex = asterisk-sounds-(\d+\.\d+(\.\d+)+)\.tar\.gz
a148 2
%setup -q -n asterisk-%{V_asterisk} -D -T -a 2
%setup -q -n asterisk-%{V_asterisk} -D -T -a 3
d152 1
d154 5
a312 12
# install additional sounds
( cd asterisk-sounds-%{V_asterisk_sounds}
%{l_make} %{l_mflags} install \
DESTDIR=$RPM_BUILD_ROOT \
ASTVARLIBDIR=%{l_prefix}/share/asterisk \
INSTALL="%{l_shtool} install -c"
) || exit $?
%if "%{with_mp3}" == "yes"
%{l_shtool} install -c -m 644 %{l_value -s -a} \
sounds/*.mp3 $RPM_BUILD_ROOT%{l_prefix}/share/asterisk/mohmp3/
%endif
d347 5
@
1.35
log
@upgrade to Asterisk 1.6
@
text
@d69 1
a69 1
BuildPreReq: OpenPKG, openpkg >= 20040130, bison, gcc, make, grep
d282 1
@
1.34
log
@Update package specifications according to OpenPKG year 2008 world order:
http://www.mail-archive.com/openpkg-announce@@openpkg.org/msg00221.html
@
text
@d25 3
a27 2
%define V_asterisk 1.2.14
%define V_asterisk_addons 1.2.5
d30 1
a30 1
%define V_app_conference 20051216
d44 2
a45 2
Version: %{V_asterisk}
Release: 20080101
d51 2
d55 5
a59 5
Source0: ftp://ftp.digium.com/pub/asterisk/releases/asterisk-%{V_asterisk}.tar.gz
Source1: ftp://ftp.digium.com/pub/asterisk/releases/asterisk-addons-%{V_asterisk_addons}.tar.gz
Source2: ftp://ftp.digium.com/pub/asterisk/releases/asterisk-sounds-%{V_asterisk_sounds}.tar.gz
Source3: ftp://ftp.digium.com/pub/libiax/iax-%{V_asterisk_libiax}.tar.gz
Source4: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/asterisk/app_conference-%{V_app_conference}.tar.gz
d71 2
a72 2
BuildPreReq: zlib, curl, openssl, ncurses, speex
PreReq: zlib, curl, openssl, ncurses, speex
d78 8
d108 1
a108 1
prog asterisk = {
d110 1
a110 1
url = ftp://ftp.digium.com/pub/asterisk/releases/
d113 1
a113 1
prog asterisk:addons = {
d115 1
a115 1
url = ftp://ftp.digium.com/pub/asterisk/releases/
d118 1
a118 1
prog asterisk:sounds = {
d120 1
a120 1
url = ftp://ftp.digium.com/pub/asterisk/releases/
d123 1
a123 1
prog asterisk:libiax = {
d125 1
a125 1
url = ftp://ftp.digium.com/pub/libiax/
d128 1
a128 1
prog asterisk:agi = {
d133 1
a133 1
prog asterisk:chan_capi = {
d140 7
a146 7
%setup -q
%setup -q -D -T -a 1
%setup -q -D -T -a 2
%setup -q -D -T -a 3
%setup -q -D -T -a 4
%setup -q -D -T -a 5
%setup -q -D -T -a 6
d152 1
d158 1
d164 1
d192 73
d266 1
a266 5
%if "%{with_zaptel}" == "no"
WITHOUT_ZAPTEL=1 \
%endif
CC="%{l_cc}" \
INSTALL_PREFIX=%{l_prefix}
d269 1
a269 1
( cd app_conference
d314 1
a314 1
( cd app_conference
d337 1
a337 1
$RPM_BUILD_ROOT%{l_prefix}/lib/asterisk/agi-bin/
d350 1
a350 1
for bin in $RPM_BUILD_ROOT%{l_prefix}/lib/asterisk/agi-bin/*.*; do
d378 1
a378 2
'%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/asterisk/*' \
'%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/asterisk/*/*'
@
1.33
log
@modifying package: asterisk-1.2.14 20061223 -> 20070728
@
text
@d3 1
a3 2
## Copyright (c) 2000-2007 OpenPKG Foundation e.V.
## Copyright (c) 2000-2007 Ralf S. Engelschall
d44 1
a44 1
Release: 20070728
@
1.32
log
@Welcome Year 2007!
@
text
@d31 1
a31 1
%define V_asterisk_perl 0.09
d45 1
a45 1
Release: 20061223
@
1.31
log
@move subst into %build section and add IAX library
@
text
@d3 2
a4 2
## Copyright (c) 2000-2006 OpenPKG Foundation e.V.
## Copyright (c) 2000-2006 Ralf S. Engelschall
@
1.30
log
@website URLs changed, use FTP server for tracking now
@
text
@d29 1
d56 6
a61 5
Source3: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/asterisk/app_conference-%{V_app_conference}.tar.gz
Source4: http://asterisk.gnuinter.net/files/asterisk-perl-%{V_asterisk_perl}.tar.gz
Source5: http://www.turbocat.net/~hselasky/capi4pbx/releases/chan_capi_%{V_chan_capi}.tar.bz2
Source6: asterisk.txt
Source7: rc.asterisk
d113 5
d136 1
a137 9
%if "%{with_mp3}" == "yes"
mpg123="%{l_prefix}/bin/mpg123"
%else
mpg123="`which false`"
%endif
%{l_shtool} subst \
-e "s;/usr/local/bin/mpg123;$mpg123;" \
-e "s;/usr/bin/mpg123;$mpg123;" \
res/res_musiconhold.c apps/app_mp3.c
d167 11
d198 10
d245 5
@
1.29
log
@upgrading package: asterisk 1.2.13 -> 1.2.14
@
text
@d44 1
a44 1
Release: 20061216
d98 1
a98 1
url = http://www.asterisk.org/download
d103 1
a103 1
url = http://www.asterisk.org/download
d108 1
a108 1
url = http://www.asterisk.org/download
@
1.28
log
@first cut for ISDN/CAPI support under FreeBSD/NetBSD via the I4B CAPI20 API
@
text
@d26 1
a26 1
%define V_asterisk 1.2.13
d44 1
a44 1
Release: 20061022
@
1.27
log
@upgrading package: asterisk 1.2.12.1 -> 1.2.13
@
text
@d31 1
d44 1
a44 1
Release: 20061019
d48 1
d57 3
a59 2
Source5: asterisk.txt
Source6: rc.asterisk
d116 5
d128 1
d157 10
d179 6
a184 1
INSTALL_PREFIX=%{l_prefix} \
d186 1
d217 7
d252 3
@
1.26
log
@cleanup more files on deinstall
@
text
@d26 2
a27 2
%define V_asterisk 1.2.12.1
%define V_asterisk_addons 1.2.4
d43 1
a43 1
Release: 20061015
@
1.26.2.1
log
@file asterisk.spec was added on branch OPENPKG_2_STABLE on 2006-10-16 14:48:09 +0000
@
text
@d1 261
@
1.26.2.2
log
@Mass merge from CURRENT to 2-STABLE (all packages except those of JUNK class)
@
text
@a0 261
##
## asterisk.spec -- OpenPKG RPM Package Specification
## Copyright (c) 2000-2006 OpenPKG Foundation e.V.
## Copyright (c) 2000-2006 Ralf S. Engelschall
##
## Permission to use, copy, modify, and distribute this software for
## any purpose with or without fee is hereby granted, provided that
## the above copyright notice and this permission notice appear in all
## copies.
##
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
## SUCH DAMAGE.
##
# package version
%define V_asterisk 1.2.12.1
%define V_asterisk_addons 1.2.4
%define V_asterisk_sounds 1.2.1
%define V_app_conference 20051216
%define V_asterisk_perl 0.09
# package information
Name: asterisk
Summary: Private Branch Exchange (PBX) for VoIP
URL: http://www.asterisk.org/
Vendor: Mark Spencer et al.
Packager: OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class: BASE
Group: VoIP
License: GPL
Version: %{V_asterisk}
Release: 2.20061018
# package options
%option with_zaptel no
%option with_mp3 no
# list of sources
Source0: ftp://ftp.digium.com/pub/asterisk/releases/asterisk-%{V_asterisk}.tar.gz
Source1: ftp://ftp.digium.com/pub/asterisk/releases/asterisk-addons-%{V_asterisk_addons}.tar.gz
Source2: ftp://ftp.digium.com/pub/asterisk/releases/asterisk-sounds-%{V_asterisk_sounds}.tar.gz
Source3: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/asterisk/app_conference-%{V_app_conference}.tar.gz
Source4: http://asterisk.gnuinter.net/files/asterisk-perl-%{V_asterisk_perl}.tar.gz
Source5: asterisk.txt
Source6: rc.asterisk
Patch0: asterisk.patch
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 2.20061018, bison, gcc, make, grep
PreReq: OpenPKG, openpkg >= 2.20061018
BuildPreReq: zlib, curl, openssl, ncurses, speex
PreReq: zlib, curl, openssl, ncurses, speex
BuildPreReq: perl, perl-openpkg
PreReq: perl
%if "%{with_mp3}" == "yes"
PreReq: mpg123
%endif
AutoReq: no
AutoReqProv: no
%description
Asterisk is a complete Private Branch Exchange (PBX) in software.
It provides all of the features you would expect from a PBX and
more. Asterisk does Voice over IP (VoIP) in many protocols. Asterisk
provides Voicemail services with Directory, Call Conferencing,
Interactive Voice Response and Call Queuing. It has support for
three-way calling, caller ID services, ADSI, SIP, etc. Asterisk
needs no additional hardware for VoIP.
NOTICE: This OpenPKG packaging of Asterisk is special according to
the following aspects: 1. for full portability this package does
NOT include Asterisk support for any telephony hardware, 2. this
package uses a stripped down default configuration which provides
an out-of-the-box VoIP configuration for a small organisation,
3. this package includes the add-on Asterisk application module
"app_conference" for hardware-timer independent conferencing, and 4.
this package includes the Perl Asterisk::AGI module.
%track
prog asterisk = {
version = %{V_asterisk}
url = http://www.asterisk.org/download
regex = asterisk-(\d+\.\d+(\.\d+)+)\.tar\.gz
}
prog asterisk:addons = {
version = %{V_asterisk_addons}
url = http://www.asterisk.org/download
regex = asterisk-addons-(\d+\.\d+(\.\d+)+)\.tar\.gz
}
prog asterisk:sounds = {
version = %{V_asterisk_sounds}
url = http://www.asterisk.org/download
regex = asterisk-sounds-(\d+\.\d+(\.\d+)+)\.tar\.gz
}
prog asterisk:agi = {
version = %{V_asterisk_perl}
url = http://asterisk.gnuinter.net/files/
regex = asterisk-perl-(__VER__)\.tar\.gz
}
%prep
%setup -q
%setup -q -D -T -a 1
%setup -q -D -T -a 2
%setup -q -D -T -a 3
%setup -q -D -T -a 4
%patch -p0
%if "%{with_mp3}" == "yes"
mpg123="%{l_prefix}/bin/mpg123"
%else
mpg123="`which false`"
%endif
%{l_shtool} subst \
-e "s;/usr/local/bin/mpg123;$mpg123;" \
-e "s;/usr/bin/mpg123;$mpg123;" \
res/res_musiconhold.c apps/app_mp3.c
%build
# sanity check
%if "%{with_zaptel}" == "yes"
case "%{l_platform -t}" in
*-linux* )
if [ ! -f /usr/include/linux/zaptel.h ]; then
echo "option \"with_zaptel\" requires Zaptel Linux drivers installed" 1>&2; exit 1
fi
;;
*-freebsd* )
if [ ! -f /usr/local/include/zaptel.h ]; then
echo "option \"with_zaptel\" requires Zaptel FreeBSD drivers installed" 1>&2; exit 1
fi
;;
* ) echo "option \"with_zaptel\" supported under Linux and FreeBSD only" 1>&2; exit 1 ;;
esac
%endif
# build program
%{l_make} %{l_mflags} \
%if "%{with_zaptel}" == "no"
WITHOUT_ZAPTEL=1 \
%endif
CC="%{l_cc}" \
INSTALL_PREFIX=%{l_prefix}
# build addon modules
( cd app_conference
%{l_make} %{l_mflags} \
INSTALL_PREFIX=%{l_prefix} \
) || exit $?
# build Perl API
%{l_prefix}/bin/perl-openpkg prepare
%{l_prefix}/bin/perl-openpkg -d asterisk-perl-%{V_asterisk_perl} configure build
%install
# install program
rm -rf $RPM_BUILD_ROOT
%{l_make} %{l_mflags} install \
DESTDIR=$RPM_BUILD_ROOT \
INSTALL_PREFIX=%{l_prefix}
# install additional sounds
( cd asterisk-sounds-%{V_asterisk_sounds}
%{l_make} %{l_mflags} install \
DESTDIR=$RPM_BUILD_ROOT \
ASTVARLIBDIR=%{l_prefix}/share/asterisk \
INSTALL="%{l_shtool} install -c"
) || exit $?
%if "%{with_mp3}" == "yes"
%{l_shtool} install -c -m 644 %{l_value -s -a} \
sounds/*.mp3 $RPM_BUILD_ROOT%{l_prefix}/share/asterisk/mohmp3/
%endif
# install addon modules
( cd app_conference
%{l_make} %{l_mflags} install \
INSTALL_PREFIX=$RPM_BUILD_ROOT%{l_prefix} \
INSTALL="%{l_shtool} install -c"
) || exit $?
# install Perl API
%{l_prefix}/bin/perl-openpkg -d asterisk-perl-%{V_asterisk_perl} install
%{l_shtool} install -c -m 644 %{l_value -s -a} \
-e 's;/usr/bin/perl;%{l_prefix}/bin/perl;' \
asterisk-perl-%{V_asterisk_perl}/examples/* \
$RPM_BUILD_ROOT%{l_prefix}/lib/asterisk/agi-bin/
%{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
# strip down installation
rm -f $RPM_BUILD_ROOT%{l_prefix}/sbin/autosupport >/dev/null 2>&1 || true
rm -f $RPM_BUILD_ROOT%{l_prefix}/sbin/safe_asterisk >/dev/null 2>&1 || true
rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man8/autosupport.8 >/dev/null 2>&1 || true
rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man8/safe_asterisk.8 >/dev/null 2>&1 || true
rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/asterisk/firmware >/dev/null 2>&1 || true
rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/asterisk/images >/dev/null 2>&1 || true
# post-adjust installation
strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true
for bin in $RPM_BUILD_ROOT%{l_prefix}/lib/asterisk/agi-bin/*.*; do
mv $bin `echo $bin | sed -e 's;\.[^.]*$;;'`
done
# install default configuration
for name in `grep "^/d" -e "/<\/file>/,\$d" >$name
%{l_shtool} install -c -m 644 %{l_value -s -a} \
$name $RPM_BUILD_ROOT%{l_prefix}/etc/asterisk/
done
# install run-command script
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
%{l_shtool} install -c -m 755 %{l_value -s -a} \
%{SOURCE rc.asterisk} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
# determine installation files
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
%{l_files_std} `cat perl-openpkg-files` \
'%config %attr(640,%{l_mgrp},%{l_rgrp}) %{l_prefix}/etc/asterisk/*' \
'%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/asterisk/*' \
'%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/asterisk/*/*'
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT
%post
# after upgrade, restart service
[ $1 -eq 2 ] || exit 0
eval `%{l_rc} asterisk status 2>/dev/null`
[ ".$asterisk_active" = .yes ] && %{l_rc} asterisk restart
exit 0
%preun
# before erase, stop service and remove log files
[ $1 -eq 0 ] || exit 0
%{l_rc} asterisk stop 2>/dev/null
rm -f $RPM_INSTALL_PREFIX/var/asterisk/log/* >/dev/null 2>&1 || true
rm -f $RPM_INSTALL_PREFIX/var/asterisk/log/cdr-*/* >/dev/null 2>&1 || true
rm -f $RPM_INSTALL_PREFIX/var/asterisk/run/* >/dev/null 2>&1 || true
rm -f $RPM_INSTALL_PREFIX/var/asterisk/spool/*/* >/dev/null 2>&1 || true
rm -f $RPM_INSTALL_PREFIX/var/asterisk/spool/astdb >/dev/null 2>&1 || true
exit 0
@
1.26.2.3
log
@MFC: fixed vendor version
@
text
@d26 2
a27 2
%define V_asterisk 1.2.13
%define V_asterisk_addons 1.2.5
d43 1
a43 1
Release: 2.20061019
@
1.25
log
@try to resolve Solaris problems by using our GNU grep
@
text
@d43 1
a43 1
Release: 20061014
d256 1
@
1.24
log
@make mpg123 dependency an optional one
@
text
@d62 1
a62 1
BuildPreReq: OpenPKG, openpkg >= 20040130, bison, gcc, make
@
1.23
log
@bless Asterisk and SpeeX for BASE class
@
text
@d43 1
a43 1
Release: 20061013
d47 1
d63 1
a63 1
PreReq: OpenPKG, openpkg >= 20040130, mpg123
d68 3
d121 5
d127 3
a129 7
-e 's;/usr/local/bin/mpg123;%{l_prefix}/bin/mpg123;' \
-e 's;/usr/bin/mpg123;%{l_prefix}/bin/mpg123;' \
res/res_musiconhold.c
%{l_shtool} subst \
-e 's;/usr/local/bin/mpg123;%{l_prefix}/bin/mpg123;' \
-e 's;/usr/bin/mpg123;%{l_prefix}/bin/mpg123;' \
apps/app_mp3.c
d181 1
d184 1
@
1.22
log
@port to Sun Solaris
@
text
@d39 1
a39 1
Class: EVAL
@
1.21
log
@new world order for "Packager" and "Distribution" headers
@
text
@d173 2
a174 1
ASTVARLIBDIR=%{l_prefix}/share/asterisk
d182 2
a183 1
INSTALL_PREFIX=$RPM_BUILD_ROOT%{l_prefix}
@
1.20
log
@modifying package: asterisk-1.2.12.1 20060923 -> 20060928
@
text
@d37 2
a38 2
Packager: OpenPKG
Distribution: OpenPKG
d43 1
a43 1
Release: 20060928
@
1.19
log
@adjust Group header
@
text
@d30 1
a30 1
%define V_asterisk_perl 0.08
d43 1
a43 1
Release: 20060923
@
1.18
log
@track releases for now only
@
text
@d40 1
a40 1
Group: Network
d43 1
a43 1
Release: 20060922
@
1.17
log
@bugfix dialplan by using a variable to store the number to dial and cleanup the processing by using the ENUMLookup function instead of the command
@
text
@d43 1
a43 1
Release: 20060920
d92 1
a92 1
regex = asterisk-(__VER__)\.tar\.gz
d97 1
a97 1
regex = asterisk-addons-(__VER__)\.tar\.gz
d102 1
a102 1
regex = asterisk-sounds-(__VER__)\.tar\.gz
@
1.16
log
@do not warn about signed/unsigned mismatches as Asterisk has too many of them (and they do not really hurt here); add a zapata.conf configuration file to make Asterisk happy if built with Zaptel support
@
text
@d43 1
a43 1
Release: 20060917
@
1.15
log
@add a missing extension for CONGESTION status
@
text
@d208 3
@
1.14
log
@add optional Zaptel support for Linux & FreeBSD; this allows one to use PSTN hardware or at least the ztdummy kernel device which in turn allows one to use the more robust MeetMe conference application
@
text
@d43 1
a43 1
Release: 20060916
@
1.13
log
@fix segfault under FreeBSD
@
text
@d45 3
d127 17
d146 3
@
1.12
log
@resolve the gethostbyname_r issue the more general way
@
text
@d43 1
a43 1
Release: 20060915
@
1.11
log
@build against external speex instead of against a local (and older) copy of speex
@
text
@d43 1
a43 1
Release: 20060913
@
1.10
log
@upgrading package: asterisk 1.2.12 -> 1.2.12.1
@
text
@d132 1
a132 1
INSTALL_PREFIX=$RPM_BUILD_ROOT%{l_prefix} \
@
1.9
log
@disable too aggressive optimizations in order to try to get the newer version running again
@
text
@d26 1
a26 1
%define V_asterisk 1.2.12
d43 1
a43 1
Release: 20060911
@
1.8
log
@upgrading package: asterisk 1.2.11 -> 1.2.12
@
text
@d43 1
a43 1
Release: 20060909
@
1.7
log
@final package polishing
@
text
@d26 1
a26 1
%define V_asterisk 1.2.11
d43 1
a43 1
Release: 20060908
@
1.6
log
@cleanup and improve default configuration according to my rediscoveries during my latest Asterisk fiddling
@
text
@d34 1
a34 1
Summary: Private Branch Exchange (PBX) for VoIP/ISDN/POT
d76 8
a83 7
NOTICE: This OpenPKG packaging of Asterisk is special according
to three aspects: 1. for full portability this package does NOT
include any Asterisk support for any telephony hardware. 2. this
package uses a stripped down default configuration which provides an
out-of-the-box VoIP configuration for a small organisation, 3. this
package includes the addon module "app_conference", 4. this package
includes the Perl Asterisk::AGI module.
@
1.5
log
@move astdb into a var directory; add SPYGROUP to conference setup; fix asterisk.conf to allow daemon mode; add %post/%pre for the usual daemon restart/stop/cleanup
@
text
@d43 1
a43 1
Release: 20060906
@
1.4
log
@fix config file extraction
@
text
@d199 1
a199 1
'%config %{l_prefix}/etc/asterisk/*' \
d208 17
@
1.3
log
@add Perl API for AGI
@
text
@d43 1
a43 1
Release: 20060905
d184 2
a185 2
sed -e "1,/^/d" -e "/<\/file>/,\$d" \
<%{SOURCE asterisk.txt} >$name
@
1.2
log
@apply fixes from FreeBSD ports and fix a typo in our subst
@
text
@d30 1
d50 3
a52 2
Source4: asterisk.txt
Source5: rc.asterisk
d62 2
d81 2
a82 1
package includes the addon module "app_conference".
d100 5
d111 1
d134 4
d160 8
a168 1
strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true
d173 8
d198 1
a198 1
%{l_files_std} \
@
1.1
log
@first cut for a VoIP-only Asterisk packaging
@
text
@d109 1
a109 1
app/apps_mp3.c
@