diff options
author | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2013-08-20 04:42:28 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2013-08-20 04:42:28 -0300 |
commit | f47d70789def071ce501505d51c90099121aef9c (patch) | |
tree | 1c083455cf51166dfebdb426b188e1cebf860bdf | |
parent | 97161d7676a9268aa73ee18c51fb3d45afad19db (diff) | |
download | abslibre-f47d70789def071ce501505d51c90099121aef9c.tar.gz abslibre-f47d70789def071ce501505d51c90099121aef9c.tar.bz2 abslibre-f47d70789def071ce501505d51c90099121aef9c.zip |
kdenetwork-kopete-libre-nonprism: add new package to nonprism repo
6 files changed, 297 insertions, 0 deletions
diff --git a/nonprism/kdenetwork-kopete-libre-nonprism/PKGBUILD b/nonprism/kdenetwork-kopete-libre-nonprism/PKGBUILD new file mode 100644 index 000000000..d41efa232 --- /dev/null +++ b/nonprism/kdenetwork-kopete-libre-nonprism/PKGBUILD @@ -0,0 +1,71 @@ +# $Id: PKGBUILD 192541 2013-08-13 18:47:05Z andrea $ +# Maintainer: Andrea Scarpino <andrea@archlinux.org> +# Maintainer (Parabola): André Silva <emulatorman@lavabit.com> + +_pkgname=kdenetwork-kopete +pkgname=kdenetwork-kopete-libre-nonprism +pkgver=4.11.0 +pkgrel=1 +pkgdesc='Instant Messenger, without skype and unsafe/dangerous protocols support' +url='http://kde.org/applications/internet/kopete/' +arch=('i686' 'x86_64' 'mips64el') +license=('GPL' 'LGPL' 'FDL') +groups=('kde' 'kdenetwork') +depends=('kdebase-runtime' 'kdepimlibs' 'qca-ossl' 'libotr3' 'libmsn' 'libidn' + 'qimageblitz' 'libgadu' 'mediastreamer' 'jsoncpp') +makedepends=('cmake' 'automoc4' 'boost') +install=${_pkgname}.install +replaces=$_pkgname +conflicts=$_pkgname +provides=$_pkgname=$pkgver +source=("http://download.kde.org/stable/${pkgver}/src/kopete-${pkgver}.tar.xz" + 'libotr3.patch' + 'mediastreamer29.patch' + 'libre-nonprism.patch') +sha1sums=('a67716f14a07cdbacf3df40983db17f594eb768b' + '9c3b0ee15538fbfa36aa0a4748b1f6b5a7905384' + '317683a5c2acd0a0058c5ab42f6006e9db511ef3' + '3c46e5c80ef0cd3f6fe9fb6d5cb8c252c6792208') + +prepare() { + cd kopete-${pkgver} + patch -p2 -i "${srcdir}"/libotr3.patch + patch -p1 -i "${srcdir}"/mediastreamer29.patch + # Based on http://bzr.trisquel.info/package-helpers/trunk/annotate/head%3A/helpers/natty/make-kdenetwork, revision 34. + sed -i 's/Skype protocol" ON/Skype protocol" OFF/g' protocols/CMakeLists.txt + rm -rf protocols/skype + # remove unsafe/dangerous services + sed -i 's/Oscar (ICQ and AIM) protocol" ON/Oscar (ICQ and AIM) protocol" OFF/g' protocols/CMakeLists.txt + rm -rf protocols/oscar + sed -i 's/Yahoo protocol" ON/Yahoo protocol" OFF/g' protocols/CMakeLists.txt + rm -rf protocols/yahoo + sed -i 's/QQ protocol" ON/QQ protocol" OFF/g' protocols/CMakeLists.txt + rm -rf protocols/qq + sed -i 's/Novell GroupWise Messenger protocol" ON/Novell GroupWise Messenger protocol" OFF/g' protocols/CMakeLists.txt + rm -rf protocols/groupwise + sed -i 's/Gadu-Gadu protocol" ON/Gadu-Gadu protocol" OFF/g' protocols/CMakeLists.txt + rm -rf protocols/gadu + sed -i 's/Google Talk support" ON/Google Talk support" OFF/g' protocols/CMakeLists.txt + sed -i 's/Window Live Messenger support" ON/Window Live Messenger support" OFF/g' protocols/CMakeLists.txt + rm -rf protocols/wlm + sed -i 's/Windows Live Messenger voice clip support" ON/Windows Live Messenger voice clip support" OFF/g' protocols/CMakeLists.txt + sed -i 's/meanwhile protocol" ON/meanwhile protocol" OFF/g' protocols/CMakeLists.txt + rm -rf protocols/meanwhile + patch -p1 -i "${srcdir}"/libre-nonprism.patch +} + +build() { + mkdir build + cd build + cmake ../kopete-${pkgver} \ + -DCMAKE_BUILD_TYPE=Release \ + -DKDE4_BUILD_TESTS=OFF \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_SKIP_RPATH=ON + make +} + +package() { + cd build + make DESTDIR=$pkgdir install +} diff --git a/nonprism/kdenetwork-kopete-libre-nonprism/kdenetwork-kopete.install b/nonprism/kdenetwork-kopete-libre-nonprism/kdenetwork-kopete.install new file mode 100644 index 000000000..5495fb1b5 --- /dev/null +++ b/nonprism/kdenetwork-kopete-libre-nonprism/kdenetwork-kopete.install @@ -0,0 +1,12 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor &> /dev/null + update-desktop-database -q +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} diff --git a/nonprism/kdenetwork-kopete-libre-nonprism/kdenetwork.install b/nonprism/kdenetwork-kopete-libre-nonprism/kdenetwork.install new file mode 100644 index 000000000..e70c054ec --- /dev/null +++ b/nonprism/kdenetwork-kopete-libre-nonprism/kdenetwork.install @@ -0,0 +1,11 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor &> /dev/null +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} diff --git a/nonprism/kdenetwork-kopete-libre-nonprism/libotr3.patch b/nonprism/kdenetwork-kopete-libre-nonprism/libotr3.patch new file mode 100644 index 000000000..1e96c98d6 --- /dev/null +++ b/nonprism/kdenetwork-kopete-libre-nonprism/libotr3.patch @@ -0,0 +1,71 @@ +diff -urN a/kopete/cmake/modules/FindLibOTR.cmake b/kopete/cmake/modules/FindLibOTR.cmake +--- a/kopete/cmake/modules/FindLibOTR.cmake 2012-08-12 18:08:59.000000000 -0600 ++++ b/kopete/cmake/modules/FindLibOTR.cmake 2012-11-09 12:14:24.251450904 -0700 +@@ -13,13 +13,13 @@ + SET(LIBOTR_FIND_QUIETLY TRUE) + ENDIF (LIBOTR_INCLUDE_DIR AND LIBOTR_LIBRARY) + +-FIND_PATH(LIBOTR_INCLUDE_DIR libotr/version.h) ++FIND_PATH(LIBOTR_INCLUDE_DIR libotr3/version.h) + +-FIND_LIBRARY(LIBOTR_LIBRARY NAMES otr libotr) ++FIND_LIBRARY(LIBOTR_LIBRARY NAMES otr3 libotr3) + +-# Determine version information from libotr/version.h ++# Determine version information from libotr3/version.h + IF( LIBOTR_INCLUDE_DIR AND LIBOTR_LIBRARY ) +- EXECUTE_PROCESS(COMMAND grep "OTRL_VERSION" "${LIBOTR_INCLUDE_DIR}/libotr/version.h" OUTPUT_VARIABLE output) ++ EXECUTE_PROCESS(COMMAND grep "OTRL_VERSION" "${LIBOTR_INCLUDE_DIR}/libotr3/version.h" OUTPUT_VARIABLE output) + STRING(REGEX MATCH "OTRL_VERSION \"[0-9]+\\.[0-9]+\\.[0-9]+" LIBOTR_VERSION "${output}") + STRING(REGEX REPLACE "^OTRL_VERSION \"" "" LIBOTR_VERSION "${LIBOTR_VERSION}") + # Check if version is at least 3.2.0 +diff -urN a/kopete/plugins/otr/authenticationwizard.h b/kopete/plugins/otr/authenticationwizard.h +--- a/kopete/plugins/otr/authenticationwizard.h 2012-08-12 18:09:00.000000000 -0600 ++++ b/kopete/plugins/otr/authenticationwizard.h 2012-11-09 12:15:11.181265336 -0700 +@@ -26,7 +26,7 @@ + */ + + extern "C"{ +-#include "libotr/proto.h" ++#include "libotr3/proto.h" + } + + #include "kopetechatsession.h" +diff -urN a/kopete/plugins/otr/otrlchatinterface.h b/kopete/plugins/otr/otrlchatinterface.h +--- a/kopete/plugins/otr/otrlchatinterface.h 2012-08-12 18:09:00.000000000 -0600 ++++ b/kopete/plugins/otr/otrlchatinterface.h 2012-11-09 12:16:10.141032744 -0700 +@@ -36,10 +36,10 @@ + #include "authenticationwizard.h" + + extern "C" { +-#include <libotr/privkey.h> +-#include <libotr/proto.h> +-#include <libotr/message.h> +-#include <libotr/userstate.h> ++#include <libotr3/privkey.h> ++#include <libotr3/proto.h> ++#include <libotr3/message.h> ++#include <libotr3/userstate.h> + } + + +diff -urN a/kopete/plugins/otr/otrlconfinterface.h b/kopete/plugins/otr/otrlconfinterface.h +--- a/kopete/plugins/otr/otrlconfinterface.h 2012-08-12 18:09:00.000000000 -0600 ++++ b/kopete/plugins/otr/otrlconfinterface.h 2012-11-09 12:15:56.961084991 -0700 +@@ -32,11 +32,11 @@ + #include <kopetechatsession.h> + + extern "C" { +-#include <libotr/privkey.h> +-#include <libotr/proto.h> +-#include <libotr/message.h> +-#include <libotr/userstate.h> +-#include <libotr/context.h> ++#include <libotr3/privkey.h> ++#include <libotr3/proto.h> ++#include <libotr3/message.h> ++#include <libotr3/userstate.h> ++#include <libotr3/context.h> + } + + class KOPETE_OTR_SHARED_EXPORT OtrlConfInterface : public QObject diff --git a/nonprism/kdenetwork-kopete-libre-nonprism/libre-nonprism.patch b/nonprism/kdenetwork-kopete-libre-nonprism/libre-nonprism.patch new file mode 100644 index 000000000..b6915cbb5 --- /dev/null +++ b/nonprism/kdenetwork-kopete-libre-nonprism/libre-nonprism.patch @@ -0,0 +1,110 @@ +diff --git a/doc/index.docbook b/doc/index.docbook +index 1576dc9..daf7170 100644 +--- a/doc/index.docbook ++++ b/doc/index.docbook +@@ -20,7 +20,6 @@ + <!ENTITY kopete-chatstyle SYSTEM "chatstyle.docbook"> + <!ENTITY kopete-pipes SYSTEM "pipes.docbook"> + <!ENTITY kopete-jabber SYSTEM "jabber.docbook"> +- <!ENTITY kopete-icq SYSTEM "icq.docbook"> + ]> + <!-- + Intro (1st draft, Will) +@@ -112,15 +111,7 @@ Appendix: Chat Window Style Guide (1st draft, Michaël) + <keyword>Messaging</keyword> + <keyword>Jabber</keyword> + <keyword>IRC</keyword> +-<keyword>MSN</keyword> +-<keyword>ICQ</keyword> +-<keyword>AIM</keyword> +-<keyword>Yahoo</keyword> +-<keyword>Gadu-Gadu</keyword> +-<keyword>GroupWise</keyword> +-<keyword>Novell</keyword> + <keyword>WinPopup</keyword> +-<keyword>SMS</keyword> + </keywordset> + + </bookinfo> +@@ -174,13 +165,13 @@ Appendix: Chat Window Style Guide (1st draft, Michaël) + <para>To use &kopete; you need to set up one or more accounts for the instant messaging services you wish to use.</para> + <para>You've probably already chosen a messaging service, either because you already use &im;, or you need to use the same service as your friends. If you don't fit into either of these categories, please consider using a messaging service based on open standards, because these are designed for use by Free Software. Other messaging services are prone to changing the underlying technology without making the details freely available, making them harder for Free Software developers to support.</para> + <para>The messaging services that &kopete; supports that are based on open standards are Jabber and IRC.</para> +-<para>The following section assumes you are registered with an &im; service already. If not, you can register with Gadu-Gadu, Jabber, and <trademark>MSN</trademark> from inside &kopete;; for other services, you'll have to register using their respective web site before creating an account in &kopete;.</para> ++<para>The following section assumes you are registered with an &im; service already. If not, you can register with Jabber from inside &kopete;; for other services, you'll have to register using their respective web site before creating an account in &kopete;.</para> + <sect1 id="creating-accounts"> + <title>Creating Accounts</title> + <para>To create an account, use <menuchoice><guimenu>Settings</guimenu> <guimenuitem>Configure...</guimenuitem> </menuchoice> to display the Configure window.</para> + <para>The Configure window is the main way to set up and customize &kopete;. On the left a column of icons control which aspect of &kopete; is being configured. Click the <guiicon>Accounts</guiicon> icon. The main pane will change to display the account management pane. This is currently empty, but will soon list your &im; accounts. Click <guibutton>New</guibutton> to display the <interface>Account Wizard</interface>.</para> + <para>The <interface>Account Wizard</interface> helps you create an &im; account. After the <guilabel>Introduction</guilabel> page, you are asked to select the messaging service that you'd like to use. Click one of the services shown and then click <guibutton>Next</guibutton>. On the following page, you should enter your registration details for that instant messaging service.</para> +-<para>Most services just require you to enter a username or unique identifying number (<acronym>UIN</acronym>) and password. The special purpose services Winpopup and <acronym>SMS</acronym> work slightly differently, so please see their specific sections. There are a couple of other options that apply to most services that you should look at:</para> ++<para>Most services just require you to enter a username or unique identifying number (<acronym>UIN</acronym>) and password. The special purpose services Winpopup work slightly differently, so please see their specific sections. There are a couple of other options that apply to most services that you should look at:</para> + <variablelist> + <varlistentry><term>Remember password</term><listitem><para>When this is checked, &kopete; will store the password for you, so you don't have to enter it every time you connect to the &im; service. If you are security-conscious or want to limit access to the &im; account you can leave this unchecked.</para></listitem></varlistentry> + <varlistentry><term>Connect at startup</term><listitem><para>When this is checked, &kopete; will try to connect to the &im; service as when it starts. If you use a <acronym>LAN</acronym>, <acronym>DSL</acronym> or other <quote>always-on</quote> connection, this is appropriate; dial-up modem users should turn this off and connect manually when you have dialed up.</para></listitem></varlistentry> +@@ -256,7 +247,7 @@ Shortcuts...</guimenuitem></menuchoice>.</para></tip> + <listitem><para>Select Display Name and Group. Here you can enter a Display Name (the name used for this person inside &kopete;), and choose the <link linkend="organise-contacts-grouping">groups</link> they are a member of.</para></listitem> + <listitem><para>Select &im; Accounts. Here you can choose which accounts you want to use to chat to the new contact. If you only have one &im; account, you won't see this screen.</para></listitem> + <listitem><para>Account-specific Add Contact Pages. For each account, you'll get one page where you can enter the <acronym>UIN</acronym>, buddy name or Email address, depending on the &im; system in use.</para></listitem> +-<listitem><para>Finish Screen. All done. Except if the &im; system requires authorization (such as <trademark>ICQ</trademark>) to add a contact to your list - in which case, you'll be prompted after the wizard exits.</para></listitem> ++<listitem><para>Finish Screen. All done. Except if the &im; system requires authorization to add a contact to your list - in which case, you'll be prompted after the wizard exits.</para></listitem> + </orderedlist> + + <para>You can add contacts to an existing Metacontact using its context menu.</para> +@@ -699,47 +690,17 @@ Shortcuts...</guimenuitem></menuchoice>.</para></tip> + <para>&kopete; calls different &im; systems 'Protocols'. When you add an account, it is specific to a single protocol. Although &kopete; tries to make instant messaging appear the same, no matter what protocol you use, there are some differences in the level of support for advanced features such as file transfer and multimedia.</para> + <sect1 id="protocols-list"> + <title>Protocols</title> +- <sect2 id="protocols-aim"> +- <title>AIM</title> +- <para>AIM supports chatrooms. Use the <guilabel>Join Chat...</guilabel> command on the AIM account menu to join a chatroom. Contact pictures and custom emoticons are also supported.</para> +- </sect2> +- <sect2 id="protocols-icq"> +- <title>ICQ</title> +- <para>ICQ has an Invisibility feature which allows you to hide from selected contacts. You may also search the ICQ user folder when adding a contact. A wide range of contact details can be set using the <guilabel>Properties</guilabel> option.</para> +- </sect2> +- <sect2 id="protocols-msn"> +- <title>MSN</title> +- <para>File transfer and multi user chats work. To transfer a file, drag the file from &konqueror; or the desktop into the chat window. To invite someone else into a chat, drag them from the Contact List into the chat window. The <menuchoice><guimenu>File</guimenu></menuchoice> menu also contains these commands. In addition, MSN supports custom emoticons.</para> +- <para>To use file transfer, make sure port 6891 is forwarded to your computer.</para> +- </sect2> +- <sect2 id="protocols-yahoo"> +- <title>Yahoo</title> +- <para>Yahoo can send and receive webcam video. It also supports Yahoo mail and the Yahoo address book from the account menu. Conferencing is also possible.</para> +- </sect2> + <sect2 id="protocols-jabber"> + <title>Jabber</title> + <para>Jabber, also known as XMPP, supports file transfer, conferencing and any other services supplied by the Jabber server. For example, many Jabber servers have a user directory, and some provide transports to other messaging systems. To access services, use <menuchoice><guimenu>Services...</guimenu></menuchoice> on the account menu. Jabber file transfer can work without port forwarding, but enjoys better performance where a direct connection is possible. By default, port 8010 is used for port forwarding, but this is configurable in each account's settings.</para> + </sect2> +- <sect2 id="protocols-gtalk"> +- <title>Google Talk</title> +- <para>Since Google Talk is based upon Jabber, it is well supported in &kopete; with the exception of voice chat, which is worked upon.</para> +- <para>To configure &kopete; for Google Talk: Use your complete Google Mail address as the user name. Check <guilabel>Use protocol encryption (SSL)</guilabel>, <guilabel>Allow plain-text password authentication</guilabel> and <guilabel>Override default server information</guilabel>. The server is <quote>talk.google.com</quote> or <quote>gmail.com</quote> and ports 443 or 5223 should be used.</para> +- </sect2> +- <sect2 id="protocols-groupwise"> +- <title>Novell GroupWise</title> +- <para>GroupWise Messenger is an enterprise messenging system from Novell Inc. The full range of features are supported, including privacy, group chat, rich text and user search.</para> +- </sect2> +- <sect2 id="protocols-gadu-gadu"> +- <title>Gadu-Gadu</title> +- <para>Gadu-Gadu is a chat system originating from Poland. At present, &kopete; supports basic chat functions.</para> +- </sect2> + <sect2 id="protocols-winpopup"> + <title>WinPopup</title> + <para>WinPopup is a way to use &kopete; to send and receive messages with &Windows; computers on the local network. The WinPopup protocol only supports single, plain-text messages.</para> + </sect2> + <sect2 id="protocols-others"> + <title>Other protocols</title> +- <para>As well as the protocols named above, &kopete; has support for several other protocols. In most cases, this is not enabled by default or an additional plugin must be installed. Meanwhile, SMS, Skype and SILC are provided in this way. See &kopetewww; for details, however, the &kopete; team are not responsible for these protocols.</para> ++ <para>As well as the protocols named above, &kopete; has support for several other protocols. In most cases, this is not enabled by default or an additional plugin must be installed. See &kopetewww; for details, however, the &kopete; team are not responsible for these protocols.</para> + </sect2> + </sect1> + </chapter> +@@ -1120,7 +1081,6 @@ Documentation copyright 2003,2004,2005 &Will.Stephenson; (lists at stevello free + &kopete-chatstyle; + &kopete-pipes; + &kopete-jabber; +-&kopete-icq; + + &documentation.index; + </book> diff --git a/nonprism/kdenetwork-kopete-libre-nonprism/mediastreamer29.patch b/nonprism/kdenetwork-kopete-libre-nonprism/mediastreamer29.patch new file mode 100644 index 000000000..eb0b2297e --- /dev/null +++ b/nonprism/kdenetwork-kopete-libre-nonprism/mediastreamer29.patch @@ -0,0 +1,22 @@ +diff --git a/protocols/jabber/googletalk/libjingle/talk/session/phone/linphonemediaengine.cc b/protocols/jabber/googletalk/libjingle/talk/session/phone/linphonemediaengine.cc +index 88fdbd1..57c6c05 100644 +--- a/protocols/jabber/googletalk/libjingle/talk/session/phone/linphonemediaengine.cc ++++ b/protocols/jabber/googletalk/libjingle/talk/session/phone/linphonemediaengine.cc +@@ -200,7 +200,7 @@ bool LinphoneVoiceChannel::SetSendCodecs(const std::vector<AudioCodec>& codecs) + LOG(LS_INFO) << "Using " << i->name << "/" << i->clockrate; + pt_ = i->id; + audio_stream_ = audio_stream_start(&av_profile, -1, "localhost", port1, i->id, 250, 0); /* -1 means that function will choose some free port */ +- port2 = rtp_session_get_local_port(audio_stream_->session); ++ port2 = rtp_session_get_local_port(audio_stream_->ms.session); + first = false; + } + } +@@ -211,7 +211,7 @@ bool LinphoneVoiceChannel::SetSendCodecs(const std::vector<AudioCodec>& codecs) + // working with a buggy client; let's try PCMU. + LOG(LS_WARNING) << "Received empty list of codces; using PCMU/8000"; + audio_stream_ = audio_stream_start(&av_profile, -1, "localhost", port1, 0, 250, 0); /* -1 means that function will choose some free port */ +- port2 = rtp_session_get_local_port(audio_stream_->session); ++ port2 = rtp_session_get_local_port(audio_stream_->ms.session); + } + + return true; |