diff options
author | Alin Năstac <mrness@gentoo.org> | 2006-11-15 22:49:40 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2006-11-15 22:49:40 +0000 |
commit | 8cf68dae4e912da13407f79599a25ae539bfe65c (patch) | |
tree | 34a39725bc7909a97ce917cb859b7ae757dfeebd /app-mobilephone/kannel | |
parent | rewrite some the flag handling functions to be simpler and to fix introducing... (diff) | |
download | historical-8cf68dae4e912da13407f79599a25ae539bfe65c.tar.gz historical-8cf68dae4e912da13407f79599a25ae539bfe65c.tar.bz2 historical-8cf68dae4e912da13407f79599a25ae539bfe65c.zip |
Version bump. Add sqlite3 USE flag.
Package-Manager: portage-2.1.1-r1
Diffstat (limited to 'app-mobilephone/kannel')
-rw-r--r-- | app-mobilephone/kannel/ChangeLog | 8 | ||||
-rw-r--r-- | app-mobilephone/kannel/Manifest | 26 | ||||
-rw-r--r-- | app-mobilephone/kannel/files/digest-kannel-1.4.1 | 3 | ||||
-rw-r--r-- | app-mobilephone/kannel/files/kannel-1.4.1-custom-wap-ports.patch | 354 | ||||
-rw-r--r-- | app-mobilephone/kannel/kannel-1.4.1.ebuild | 96 |
5 files changed, 479 insertions, 8 deletions
diff --git a/app-mobilephone/kannel/ChangeLog b/app-mobilephone/kannel/ChangeLog index 06faad1bb2ba..c83441707d58 100644 --- a/app-mobilephone/kannel/ChangeLog +++ b/app-mobilephone/kannel/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-mobilephone/kannel # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/kannel/ChangeLog,v 1.8 2006/09/17 13:42:39 mrness Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/kannel/ChangeLog,v 1.9 2006/11/15 22:49:40 mrness Exp $ + +*kannel-1.4.1 (15 Nov 2006) + + 15 Nov 2006; Alin Nastac <mrness@gentoo.org> + +files/kannel-1.4.1-custom-wap-ports.patch, +kannel-1.4.1.ebuild: + Version bump. Add sqlite3 USE flag. 17 Sep 2006; Alin Nastac <mrness@gentoo.org> -kannel-1.4.0.ebuild: Remove old revision. diff --git a/app-mobilephone/kannel/Manifest b/app-mobilephone/kannel/Manifest index af1238942f08..367d1f857e2a 100644 --- a/app-mobilephone/kannel/Manifest +++ b/app-mobilephone/kannel/Manifest @@ -9,6 +9,10 @@ AUX kannel-1.4.0-mysql-list.patch 7291 RMD160 e040e44c8dd8abbf69399e96e00a4860cf MD5 600c73cb97d9ffdce59537ee94229ee7 files/kannel-1.4.0-mysql-list.patch 7291 RMD160 e040e44c8dd8abbf69399e96e00a4860cf8b71be files/kannel-1.4.0-mysql-list.patch 7291 SHA256 27c9a5c79ad76818d398c9c8b91b39f90a7f8a59fe5249465eb57d44907fb717 files/kannel-1.4.0-mysql-list.patch 7291 +AUX kannel-1.4.1-custom-wap-ports.patch 13266 RMD160 6d390b206dfbcc3e8749447ac6e419d9b67bcd0c SHA1 04bc815e29831450dfb1709f50480140b696ec01 SHA256 e0959fd25dd41fc2aa01b488fc70b0d29d1ab66aed1151de60fcc9e84e50512f +MD5 7197883643eb865cd87b17a57aa924eb files/kannel-1.4.1-custom-wap-ports.patch 13266 +RMD160 6d390b206dfbcc3e8749447ac6e419d9b67bcd0c files/kannel-1.4.1-custom-wap-ports.patch 13266 +SHA256 e0959fd25dd41fc2aa01b488fc70b0d29d1ab66aed1151de60fcc9e84e50512f files/kannel-1.4.1-custom-wap-ports.patch 13266 AUX kannel-confd 366 RMD160 7036907a3695a279dc3c9622cf081273834ba666 SHA1 89335740ca0fc412bf3ca994aed27dc00f8f9371 SHA256 78afde2b41edad9338894b2eab5968c2c93a2a657745d0bb8d2d1ba401d7cee0 MD5 b77f55cded4c364d155c302e81eb07c6 files/kannel-confd 366 RMD160 7036907a3695a279dc3c9622cf081273834ba666 files/kannel-confd 366 @@ -18,14 +22,19 @@ MD5 0b79d37344165b8743061f68a18959ce files/kannel-initd 1529 RMD160 285dbe2b181f356ef8ad5365bf32bd1bad2e4a62 files/kannel-initd 1529 SHA256 a1b0587fddd348c31ad2e02822e32b1389339b531259ddd84050447e2b9f9e6a files/kannel-initd 1529 DIST gateway-1.4.0.tar.gz 2465341 RMD160 54eeca755fe942ab7fb28e3854fb60755670d80b SHA1 f0b0c55771d47a688275feab8f7dbf9298852f3c SHA256 33a3858780a6e1a0e38aa005a62e8682baedf77ba0222d22f91c9cdfd79c592f +DIST gateway-1.4.1.tar.gz 2596267 RMD160 45523a5aa23711a607e1ccf46eb4584897784fbe SHA1 4699aa3e6689a420bce24bba2356eb63e0767895 SHA256 0a70a1507883cba9bd44a0de39a04d3480f9781359a79f6f662020862270e44b EBUILD kannel-1.4.0-r2.ebuild 2331 RMD160 c07fc604542beb0610468c7aeaf7d5d7899ef395 SHA1 8bdffef2ee81bddb64952e78265de03a46e37181 SHA256 5ff1dd4400bd7a0be6470860ba1cea8555a1257ad757a786197993dee1bf2320 MD5 bed56ab2ae54242f843bc1c0d90945cb kannel-1.4.0-r2.ebuild 2331 RMD160 c07fc604542beb0610468c7aeaf7d5d7899ef395 kannel-1.4.0-r2.ebuild 2331 SHA256 5ff1dd4400bd7a0be6470860ba1cea8555a1257ad757a786197993dee1bf2320 kannel-1.4.0-r2.ebuild 2331 -MISC ChangeLog 1565 RMD160 8d2b8efe83054b4f4b32ae75e5028eff6341543c SHA1 e5b2e127dfcb445adc82dd808d6cd58f4e13cb3d SHA256 dd3c8af9225d5dc0e766ccb5038512c07342d1dd382806d5e167bb84e80a9d9e -MD5 75bf87f476470d79f4142aacec39f5e8 ChangeLog 1565 -RMD160 8d2b8efe83054b4f4b32ae75e5028eff6341543c ChangeLog 1565 -SHA256 dd3c8af9225d5dc0e766ccb5038512c07342d1dd382806d5e167bb84e80a9d9e ChangeLog 1565 +EBUILD kannel-1.4.1.ebuild 2331 RMD160 1e3df8d2c63e3e579ba51945b44d7cd923823238 SHA1 5c021693668513d6f1616e990e9ea08dd77562f3 SHA256 5cf8262322a4eaa0b035de61ba654fb8ceae8121b7f52a138b9e1b331168b886 +MD5 2747cae755ccf2290598d1372f76ef35 kannel-1.4.1.ebuild 2331 +RMD160 1e3df8d2c63e3e579ba51945b44d7cd923823238 kannel-1.4.1.ebuild 2331 +SHA256 5cf8262322a4eaa0b035de61ba654fb8ceae8121b7f52a138b9e1b331168b886 kannel-1.4.1.ebuild 2331 +MISC ChangeLog 1748 RMD160 afbfade162ecc21242e0b934edb44afe1d5be243 SHA1 e2178d16b2a47647b233c29c4475632776a5e263 SHA256 61184c98e8de2f222dd6ab131ab5c244c2847499bffa1ba4e06c8b9f5cb890d6 +MD5 ce2d763ac6dc9a524a31d7461ff255f9 ChangeLog 1748 +RMD160 afbfade162ecc21242e0b934edb44afe1d5be243 ChangeLog 1748 +SHA256 61184c98e8de2f222dd6ab131ab5c244c2847499bffa1ba4e06c8b9f5cb890d6 ChangeLog 1748 MISC metadata.xml 389 RMD160 fc509383c09f88b4215f7cee07d3512647d0fddc SHA1 3fdf094c4c9ee7f53ebb752c3fa3f74b2e2c2efc SHA256 16236241363c791f472a403615d4cf12b0126967113605edce57329771795d61 MD5 8e6557d777542beebd0e35c01bdc156c metadata.xml 389 RMD160 fc509383c09f88b4215f7cee07d3512647d0fddc metadata.xml 389 @@ -33,10 +42,13 @@ SHA256 16236241363c791f472a403615d4cf12b0126967113605edce57329771795d61 metadata MD5 14588e94ffc1c5e90c7c347939cb18c6 files/digest-kannel-1.4.0-r2 244 RMD160 4361bd6b380027a05d2fb56124d845ab59ac6545 files/digest-kannel-1.4.0-r2 244 SHA256 facb0f964ea62a5d31ca791277d4387d8f17c1c845f34a314079598c0a7dda27 files/digest-kannel-1.4.0-r2 244 +MD5 ad33ced1c7f936e248a5460c05f85a4b files/digest-kannel-1.4.1 244 +RMD160 3f8f3562114e357b9901985a9aede2876dd7b7ba files/digest-kannel-1.4.1 244 +SHA256 28eb72118f6a21fcc14b6c1fe7d44630056c55d21337de7bb7a03a90ff984dd4 files/digest-kannel-1.4.1 244 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) -iD8DBQFFDVDW3sf9c6kjmR8RAh1HAJ9+kxqmVuS27K0B66RUm3r+gYUtYACaAh/t -qSuNM61u7BUDV0/XHJ1tQwk= -=B+05 +iD8DBQFFW5mS3sf9c6kjmR8RAlV4AJwO0Hkga6m7sNN8aZoAfhzLw2/AwACeKdvz +lrbPNabgmUFs0vJTSpv/mYA= +=Qv/t -----END PGP SIGNATURE----- diff --git a/app-mobilephone/kannel/files/digest-kannel-1.4.1 b/app-mobilephone/kannel/files/digest-kannel-1.4.1 new file mode 100644 index 000000000000..ea47243f9383 --- /dev/null +++ b/app-mobilephone/kannel/files/digest-kannel-1.4.1 @@ -0,0 +1,3 @@ +MD5 fe7b782c1e47639718ecd3deca05b023 gateway-1.4.1.tar.gz 2596267 +RMD160 45523a5aa23711a607e1ccf46eb4584897784fbe gateway-1.4.1.tar.gz 2596267 +SHA256 0a70a1507883cba9bd44a0de39a04d3480f9781359a79f6f662020862270e44b gateway-1.4.1.tar.gz 2596267 diff --git a/app-mobilephone/kannel/files/kannel-1.4.1-custom-wap-ports.patch b/app-mobilephone/kannel/files/kannel-1.4.1-custom-wap-ports.patch new file mode 100644 index 000000000000..c7afe96a6038 --- /dev/null +++ b/app-mobilephone/kannel/files/kannel-1.4.1-custom-wap-ports.patch @@ -0,0 +1,354 @@ +diff -Nru gateway-1.4.1.orig/gw/bb_udp.c gateway-1.4.1/gw/bb_udp.c +--- gateway-1.4.1.orig/gw/bb_udp.c 2005-02-11 17:35:48.000000000 +0200 ++++ gateway-1.4.1/gw/bb_udp.c 2006-11-16 00:28:56.346802750 +0200 +@@ -78,7 +78,7 @@ + #include "gwlib/gwlib.h" + #include "msg.h" + #include "bearerbox.h" +- ++#include "custports.h" + /* passed from bearerbox core */ + + extern volatile sig_atomic_t bb_status; +@@ -352,13 +352,13 @@ + while (gwlist_len(ifs) > 0) { + iface = gwlist_extract_first(ifs); + info(0, "Adding interface %s", octstr_get_cstr(iface)); +- add_service(9200, octstr_get_cstr(iface)); /* wsp */ +- add_service(9201, octstr_get_cstr(iface)); /* wsp/wtp */ ++ add_service(port_wsp, octstr_get_cstr(iface)); /* wsp */ ++ add_service(port_wtp, octstr_get_cstr(iface)); /* wsp/wtp */ + + #ifdef HAVE_WTLS_OPENSSL + if (allow_wtls) { +- add_service(9202, octstr_get_cstr(iface)); /* wsp/wtls */ +- add_service(9203, octstr_get_cstr(iface)); /* wsp/wtp/wtls */ ++ add_service(port_wsps, octstr_get_cstr(iface)); /* wsp/wtls */ ++ add_service(port_wtps, octstr_get_cstr(iface)); /* wsp/wtp/wtls */ + } + #else + if (allow_wtls) +diff -Nru gateway-1.4.1.orig/gw/bearerbox.c gateway-1.4.1/gw/bearerbox.c +--- gateway-1.4.1.orig/gw/bearerbox.c 2006-05-09 08:44:31.000000000 +0300 ++++ gateway-1.4.1/gw/bearerbox.c 2006-11-16 00:28:56.346802750 +0200 +@@ -77,6 +77,7 @@ + #include "bearerbox.h" + #include "shared.h" + #include "dlr.h" ++#include "custports.h" + + /* global variables; included to other modules as needed */ + +@@ -280,7 +281,6 @@ + { + static int started = 0; + if (started) return 0; +- + udp_start(cfg); + + start_wap(cfg); +@@ -353,6 +353,7 @@ + int ssl_enabled = 0; + #endif /* HAVE_LIBSSL */ + ++ ReadCustomPorts(cfg); + /* defaults: use localtime and markers for access-log */ + lf = m = 1; + +diff -Nru gateway-1.4.1.orig/gw/custports.c gateway-1.4.1/gw/custports.c +--- gateway-1.4.1.orig/gw/custports.c 1970-01-01 02:00:00.000000000 +0200 ++++ gateway-1.4.1/gw/custports.c 2006-11-16 00:28:56.346802750 +0200 +@@ -0,0 +1,88 @@ ++/* ==================================================================== ++ * The Kannel Software License, Version 1.0 ++ * ++ * Copyright (c) 2001-2004 Kannel Group ++ * Copyright (c) 1998-2001 WapIT Ltd. ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in ++ * the documentation and/or other materials provided with the ++ * distribution. ++ * ++ * 3. The end-user documentation included with the redistribution, ++ * if any, must include the following acknowledgment: ++ * "This product includes software developed by the ++ * Kannel Group (http://www.kannel.org/)." ++ * Alternately, this acknowledgment may appear in the software itself, ++ * if and wherever such third-party acknowledgments normally appear. ++ * ++ * 4. The names "Kannel" and "Kannel Group" must not be used to ++ * endorse or promote products derived from this software without ++ * prior written permission. For written permission, please ++ * contact org@kannel.org. ++ * ++ * 5. Products derived from this software may not be called "Kannel", ++ * nor may "Kannel" appear in their name, without prior written ++ * permission of the Kannel Group. ++ * ++ * 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 KANNEL GROUP OR ITS 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. ++ * ==================================================================== ++ * ++ * This software consists of voluntary contributions made by many ++ * individuals on behalf of the Kannel Group. For more information on ++ * the Kannel Group, please see <http://www.kannel.org/>. ++ * ++ * Portions of this software are based upon software originally written at ++ * WapIT Ltd., Helsinki, Finland for the Kannel project. ++ */ ++ ++/* ++ * gw/custports.c ++ * ++ * Implementation of reading custom UDP ports used by wapbox ++ * ++ * Lubor Kolar <kolar@porcus.cz>, 14.03.2006 ++ */ ++ ++#include <custports.h> ++ ++long port_wsp = 9200; // connectionless default ++long port_wtp = 9201; // connection-oriented default ++long port_wsps = 9202; // connectionless secure default ++long port_wtps = 9203; // connection-oriented secure ++ ++ ++void ReadCustomPorts(Cfg *config) ++{ ++ CfgGroup *grp; ++ grp = cfg_get_single_group(config, octstr_imm("wapbox")); ++ if(grp == NULL) ++ return; ++ ++ if(cfg_get_integer(&port_wsp, grp, octstr_imm("wsp-port")) != -1) ++ info(0, "Using custom WSP port %ld", port_wsp); ++ if(cfg_get_integer(&port_wtp, grp, octstr_imm("wtp-port")) != -1) ++ info(0, "Using custom WSP/WTP port %ld", port_wtp); ++ if(cfg_get_integer(&port_wsps, grp, octstr_imm("wsps-port")) != -1) ++ info(0, "Using custom WSP/WTLS port %ld", port_wsps); ++ if(cfg_get_integer(&port_wtps, grp, octstr_imm("wtps-port")) != -1) ++ info(0, "Using custom WSP/WTP/WTLS port %ld", port_wtps); ++} +diff -Nru gateway-1.4.1.orig/gw/custports.h gateway-1.4.1/gw/custports.h +--- gateway-1.4.1.orig/gw/custports.h 1970-01-01 02:00:00.000000000 +0200 ++++ gateway-1.4.1/gw/custports.h 2006-11-16 00:28:56.346802750 +0200 +@@ -0,0 +1,77 @@ ++/* ==================================================================== ++ * The Kannel Software License, Version 1.0 ++ * ++ * Copyright (c) 2001-2004 Kannel Group ++ * Copyright (c) 1998-2001 WapIT Ltd. ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in ++ * the documentation and/or other materials provided with the ++ * distribution. ++ * ++ * 3. The end-user documentation included with the redistribution, ++ * if any, must include the following acknowledgment: ++ * "This product includes software developed by the ++ * Kannel Group (http://www.kannel.org/)." ++ * Alternately, this acknowledgment may appear in the software itself, ++ * if and wherever such third-party acknowledgments normally appear. ++ * ++ * 4. The names "Kannel" and "Kannel Group" must not be used to ++ * endorse or promote products derived from this software without ++ * prior written permission. For written permission, please ++ * contact org@kannel.org. ++ * ++ * 5. Products derived from this software may not be called "Kannel", ++ * nor may "Kannel" appear in their name, without prior written ++ * permission of the Kannel Group. ++ * ++ * 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 KANNEL GROUP OR ITS 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. ++ * ==================================================================== ++ * ++ * This software consists of voluntary contributions made by many ++ * individuals on behalf of the Kannel Group. For more information on ++ * the Kannel Group, please see <http://www.kannel.org/>. ++ * ++ * Portions of this software are based upon software originally written at ++ * WapIT Ltd., Helsinki, Finland for the Kannel project. ++ */ ++ ++/* ++ * gw/custports.h ++ * ++ * Implementation of wapbox custom UDP ports) ++ * ++ * Lubor Kolar <kolar@porcus.cz>, 14.03.2006 ++ */ ++ ++#ifndef CUSTPORTS_H ++#define CUSTPORTS_H ++ ++#include "gwlib/gwlib.h" ++ ++extern long port_wsp; // connectionless ++extern long port_wtp; // connection-oriented ++extern long port_wsps; // connectionless secure ++extern long port_wtps; // connection-oriented secure ++ ++void ReadCustomPorts(Cfg *config); ++#endif /* CUSTPORTS_H */ ++ +diff -Nru gateway-1.4.1.orig/gw/wapbox.c gateway-1.4.1/gw/wapbox.c +--- gateway-1.4.1.orig/gw/wapbox.c 2006-03-28 15:00:19.000000000 +0300 ++++ gateway-1.4.1/gw/wapbox.c 2006-11-16 00:28:56.350803000 +0200 +@@ -84,17 +84,11 @@ + #include "gwlib/pki.h" + #endif + #include "radius/radius_acct.h" ++#include "custports.h" + + static void config_reload(int reload); + static long logfilelevel=-1; + +-enum { +- CONNECTIONLESS_PORT = 9200, +- CONNECTION_ORIENTED_PORT = 9201, +- WTLS_CONNECTIONLESS_PORT = 9202, +- WTLS_CONNECTION_ORIENTED_PORT = 9203 +-}; +- + enum { DEFAULT_TIMER_FREQ = 1}; + + static Octstr *bearerbox_host; +@@ -131,6 +125,8 @@ + + cfg_dump(cfg); + ++ ReadCustomPorts(cfg); ++ + /* + * Extract info from the core group. + */ +@@ -772,9 +768,9 @@ + * XXXX here should be suspend/resume, add RSN + */ + } else if (msg_type(msg) == wdp_datagram) { +- switch (msg->wdp_datagram.destination_port) { +- case CONNECTIONLESS_PORT: +- case CONNECTION_ORIENTED_PORT: ++ if(msg->wdp_datagram.destination_port == port_wsp ++ || msg->wdp_datagram.destination_port == port_wtp) ++ { + dgram = wap_event_create(T_DUnitdata_Ind); + dgram->u.T_DUnitdata_Ind.addr_tuple = wap_addr_tuple_create( + msg->wdp_datagram.source_address, +@@ -785,19 +781,22 @@ + msg->wdp_datagram.user_data = NULL; + + wap_dispatch_datagram(dgram); +- break; +- case WTLS_CONNECTIONLESS_PORT: +- case WTLS_CONNECTION_ORIENTED_PORT: ++ } ++ else ++ if(msg->wdp_datagram.destination_port == port_wsps ++ || msg->wdp_datagram.destination_port == port_wtps) ++ { + #if (HAVE_WTLS_OPENSSL) + dgram = wtls_unpack_wdp_datagram(msg); + if (dgram != NULL) + wtls_dispatch_event(dgram); + #endif +- break; +- default: ++ } ++ else ++ { + panic(0,"Bad packet received! This shouldn't happen!"); + break; +- } ++ } + } else { + warning(0, "Received other message than wdp/admin, ignoring!"); + } +diff -Nru gateway-1.4.1.orig/gw/wap_push_ppg.c gateway-1.4.1/gw/wap_push_ppg.c +--- gateway-1.4.1.orig/gw/wap_push_ppg.c 2005-10-06 15:48:26.000000000 +0300 ++++ gateway-1.4.1/gw/wap_push_ppg.c 2006-11-16 00:28:56.350803000 +0200 +@@ -88,6 +88,7 @@ + #include "wap_push_pap_compiler.h" + #include "wap_push_pap_mime.h" + #include "wap_push_ppg_pushuser.h" ++#include "custports.h" + + enum { + TIME_EXPIRED = 0, +@@ -1768,10 +1769,10 @@ + + if (!cless_accepted) { + cliport = CONNECTED_CLIPORT; +- servport = CONNECTED_SERVPORT; ++ servport = port_wtp; + } else { + cliport = CONNECTIONLESS_PUSH_CLIPORT; +- servport = CONNECTIONLESS_SERVPORT; ++ servport = port_wsp; + } + + address_type = (**e).u.Push_Message.address_type; +diff -Nru gateway-1.4.1.orig/gw/wap_push_ppg.h gateway-1.4.1/gw/wap_push_ppg.h +--- gateway-1.4.1.orig/gw/wap_push_ppg.h 2005-02-11 17:35:48.000000000 +0200 ++++ gateway-1.4.1/gw/wap_push_ppg.h 2006-11-16 00:28:56.350803000 +0200 +@@ -167,9 +167,7 @@ + */ + enum { + CONNECTIONLESS_PUSH_CLIPORT = 2948, +- CONNECTIONLESS_SERVPORT = 9200, + CONNECTED_CLIPORT = 9209, +- CONNECTED_SERVPORT = 9201 + }; + + struct PPGSessionMachine { +diff -Nru gateway-1.4.1.orig/gwlib/cfg.def gateway-1.4.1/gwlib/cfg.def +--- gateway-1.4.1.orig/gwlib/cfg.def 2006-08-28 15:06:13.000000000 +0300 ++++ gateway-1.4.1/gwlib/cfg.def 2006-11-16 00:30:55.042220750 +0200 +@@ -153,6 +153,10 @@ + OCTSTR(concatenation) + OCTSTR(max-messages) + OCTSTR(wml-strict) ++ OCTSTR(wsp-port) ++ OCTSTR(wtp-port) ++ OCTSTR(wsps-port) ++ OCTSTR(wtps-port) + ) + + diff --git a/app-mobilephone/kannel/kannel-1.4.1.ebuild b/app-mobilephone/kannel/kannel-1.4.1.ebuild new file mode 100644 index 000000000000..b26b894925b8 --- /dev/null +++ b/app-mobilephone/kannel/kannel-1.4.1.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/kannel/kannel-1.4.1.ebuild,v 1.1 2006/11/15 22:49:40 mrness Exp $ +inherit eutils + +DESCRIPTION="Powerful SMS and WAP gateway" +HOMEPAGE="http://www.kannel.org/" +SRC_URI="http://www.kannel.org/download/${PV}/gateway-${PV}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="ssl mysql sqlite sqlite3 postgres pcre doc debug pam" + +RDEPEND=">=dev-libs/libxml2-2.6.26 + >=dev-lang/perl-5.8.8 + >=sys-libs/zlib-1.2.3 + ssl? ( >=dev-libs/openssl-0.9.8d ) + mysql? ( dev-db/mysql ) + sqlite? ( =dev-db/sqlite-2* ) + sqlite3? ( >=dev-db/sqlite-3.2.1 ) + postgres? ( dev-db/postgresql ) + pcre? ( dev-libs/libpcre ) + doc? ( media-gfx/transfig + app-text/jadetex + app-text/docbook-dsssl-stylesheets ) + pam? ( >=sys-libs/pam-0.78 )" +DEPEND="${RDEPEND} + >=sys-devel/bison-2.2" + +S="${WORKDIR}/gateway-${PV}" + +pkg_setup() { + enewgroup kannel + enewuser kannel -1 -1 /var/log/kannel kannel +} + +src_unpack() { + unpack ${A} + + epatch "${FILESDIR}/${P}-custom-wap-ports.patch" + + cd "${S}" + #by default, use current directory for logging + sed -i -e 's:/tmp/::' doc/examples/kannel.conf + #correct doc path + sed -i -e "s:share/doc/kannel:share/doc/${P}:" configure configure.in +} + +src_compile() { + econf \ + --enable-localtime \ + --disable-start-stop-daemon \ + $(use_enable pam) \ + $(use_enable debug debug) \ + $(use_enable pcre) \ + $(use_enable doc docs) \ + $(use_enable ssl) \ + $(use_with mysql) \ + $(use_with sqlite) \ + $(use_with sqlite3) \ + $(use_with postgres pgsql) \ + || die "./configure failed" + + emake || die "emake failed" +} + +src_test() { + make check || die "make check failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + use doc && make DESTDIR="${D}" install-docs + dodoc README LICENSE + + diropts -g kannel -m0750 + dodir /etc/kannel + insinto /etc/kannel + newins doc/examples/kannel.conf kannel.conf.sample + newins doc/examples/modems.conf modems.conf.sample + use mysql && newins doc/examples/dlr-mysql.conf dlr-mysql.conf.sample + + diropts -g kannel -m0770 + keepdir /var/log/kannel + + exeinto /etc/init.d + newexe "${FILESDIR}/kannel-initd" kannel + insinto /etc/conf.d + newins "${FILESDIR}/kannel-confd" kannel +} + +pkg_preinst() { + pkg_setup +} |