Commit d7db244a authored by Stefan Wagner's avatar Stefan Wagner Committed by Francesco Colista

testing/irssi-xmpp: new aport

parent 0f9009ca
# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
pkgname=irssi-xmpp
pkgver=0.53
pkgrel=0
pkgdesc="An irssi plugin to connect to the Jabber network"
url="https://cybione.org/~irssi-xmpp/"
arch="all"
license="GPL2"
makedepends="irssi-dev loudmouth-dev"
subpackages="$pkgname-doc"
source="https://cybione.org/~irssi-xmpp/files/$pkgname-$pkgver.tar.gz
musl-fixes.patch"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
make PREFIX=/usr
}
package() {
cd "$builddir"
make PREFIX=/usr DESTDIR="$pkgdir" install
}
md5sums="8c9906e4efbd6f3c8bd8420f0ac8fd91 irssi-xmpp-0.53.tar.gz
f44711684e3c492b862fbe7b209b93da musl-fixes.patch"
sha256sums="6487362d23af7b9c185d8ac74e6b651e697cacc01de8bb9c750db1752140536f irssi-xmpp-0.53.tar.gz
cea5aacb88b49b40a919a8659e7dbc76bbc9100019bd55be7af3ba6c8e8e0be7 musl-fixes.patch"
sha512sums="09969db01b77e95248a080599d480b8271dcbe6d42bc90e5e2bb304a2d1b9695b70090ef0a6b7342bf6e17326e0f7a50c11c85e02e6ed742ec55820ffad655be irssi-xmpp-0.53.tar.gz
d75fb0687ab9af9a87409e61605f2bb443729be06fc4d7f9e900783c7b9375efc43acec128c91bdeb2c19983c5bedac567a30042ff28f53e6817e976932de0ef musl-fixes.patch"
Only in b/src/core: libxmpp_core.so
diff -rBu a/src/core/loudmouth-tools.h b/src/core/loudmouth-tools.h
--- a/src/core/loudmouth-tools.h 2016-03-18 15:07:32.000000000 +0100
+++ b/src/core/loudmouth-tools.h 2016-06-07 14:54:04.037983586 +0200
@@ -1,9 +1,13 @@
#ifndef __LOUDMOUTH_TOOLS_H
#define __LOUDMOUTH_TOOLS_H
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
LmMessageNode *lm_find_node(LmMessageNode *, const char *,
const char *, const char *);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif
Only in b/src/core: loudmouth-tools.o
diff -rBu a/src/core/protocol.h b/src/core/protocol.h
--- a/src/core/protocol.h 2016-03-18 15:07:32.000000000 +0100
+++ b/src/core/protocol.h 2016-06-07 14:57:43.995854903 +0200
@@ -3,9 +3,13 @@
#include "xmpp-servers.h"
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
void protocol_init(void);
void protocol_deinit(void);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif
Only in b/src/core: protocol.o
diff -rBu a/src/core/rosters-tools.h b/src/core/rosters-tools.h
--- a/src/core/rosters-tools.h 2016-03-18 15:07:32.000000000 +0100
+++ b/src/core/rosters-tools.h 2016-06-07 14:56:35.477774630 +0200
@@ -3,7 +3,9 @@
#include "rosters.h"
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
XMPP_ROSTER_USER_REC *rosters_find_user(GSList *, const char *,
XMPP_ROSTER_GROUP_REC **,
XMPP_ROSTER_RESOURCE_REC **);
@@ -12,6 +14,8 @@
char *rosters_resolve_name(XMPP_SERVER_REC *, const char *);
char *rosters_get_name(XMPP_SERVER_REC *, const char *);
int xmpp_get_show(const char *);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif
Only in b/src/core: rosters-tools.o
diff -rBu a/src/core/rosters.h b/src/core/rosters.h
--- a/src/core/rosters.h 2016-03-18 15:07:32.000000000 +0100
+++ b/src/core/rosters.h 2016-06-07 14:56:12.660637219 +0200
@@ -45,9 +45,13 @@
GSList *users;
} XMPP_ROSTER_GROUP_REC;
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
void rosters_init(void);
void rosters_deinit(void);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif
Only in b/src/core: rosters.o
diff -rBu a/src/core/stanzas.h b/src/core/stanzas.h
--- a/src/core/stanzas.h 2016-03-18 15:07:32.000000000 +0100
+++ b/src/core/stanzas.h 2016-06-07 14:57:07.251763497 +0200
@@ -1,9 +1,13 @@
#ifndef __STANZAS_H
#define __STANZAS_H
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
void stanzas_init(void);
void stanzas_deinit(void);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif
Only in b/src/core: stanzas.o
diff -rBu a/src/core/tools.h b/src/core/tools.h
--- a/src/core/tools.h 2016-03-18 15:07:32.000000000 +0100
+++ b/src/core/tools.h 2016-06-07 14:58:25.420042865 +0200
@@ -1,7 +1,9 @@
#ifndef __TOOLS_H
#define __TOOLS_H
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
char *xmpp_recode_out(const char *);
char *xmpp_recode_in(const char *);
@@ -15,6 +17,8 @@
gboolean xmpp_priority_out_of_bound(const int);
gboolean xmpp_presence_changed(const int, const int, const char *,
const char *, const int, const int);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif
Only in b/src/core: tools.o
diff -rBu a/src/core/xep/chatstates.h b/src/core/xep/chatstates.h
--- a/src/core/xep/chatstates.h 2016-03-18 15:07:32.000000000 +0100
+++ b/src/core/xep/chatstates.h 2016-06-07 15:02:41.755331358 +0200
@@ -1,9 +1,13 @@
#ifndef __CHATSTATES_H
#define __CHATSTATES_H
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
void chatstates_init(void);
void chatstates_deinit(void);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif
Only in b/src/core/xep: chatstates.o
diff -rBu a/src/core/xep/composing.h b/src/core/xep/composing.h
--- a/src/core/xep/composing.h 2016-03-18 15:07:32.000000000 +0100
+++ b/src/core/xep/composing.h 2016-06-07 15:03:01.002395114 +0200
@@ -1,9 +1,13 @@
#ifndef __COMPOSING_H
#define __COMPOSING_H
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
void composing_init(void);
void composing_deinit(void);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif
Only in b/src/core/xep: composing.o
diff -rBu a/src/core/xep/datetime.h b/src/core/xep/datetime.h
--- a/src/core/xep/datetime.h 2016-03-18 15:07:32.000000000 +0100
+++ b/src/core/xep/datetime.h 2016-06-07 15:00:12.732256841 +0200
@@ -1,8 +1,12 @@
#ifndef __DATETIME_H
#define __DATETIME_H
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
time_t xep82_datetime(const char *);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif
Only in b/src/core/xep: datetime.o
diff -rBu a/src/core/xep/delay.h b/src/core/xep/delay.h
--- a/src/core/xep/delay.h 2016-03-18 15:07:32.000000000 +0100
+++ b/src/core/xep/delay.h 2016-06-07 15:03:17.059393056 +0200
@@ -1,9 +1,13 @@
#ifndef __DELAY_H
#define __DELAY_H
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
void delay_init(void);
void delay_deinit(void);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif
Only in b/src/core/xep: delay.o
diff -rBu a/src/core/xep/disco.h b/src/core/xep/disco.h
--- a/src/core/xep/disco.h 2016-03-18 15:07:32.000000000 +0100
+++ b/src/core/xep/disco.h 2016-06-07 14:59:18.157797573 +0200
@@ -1,14 +1,18 @@
#ifndef __DISCO_H
#define __DISCO_H
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
void disco_add_feature(char *);
gboolean disco_have_feature(GSList *, const char *);
void disco_request(XMPP_SERVER_REC *, const char *);
void disco_init(void);
void disco_deinit(void);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#define XMLNS "xmlns"
Only in b/src/core/xep: disco.o
diff -rBu a/src/core/xep/muc-commands.h b/src/core/xep/muc-commands.h
--- a/src/core/xep/muc-commands.h 2016-03-18 15:07:32.000000000 +0100
+++ b/src/core/xep/muc-commands.h 2016-06-07 15:01:19.090292550 +0200
@@ -1,9 +1,13 @@
#ifndef __MUC_COMMANDS_H
#define __MUC_COMMANDS_H
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
void muc_commands_init(void);
void muc_commands_deinit(void);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif
Only in b/src/core/xep: muc-commands.o
diff -rBu a/src/core/xep/muc-events.h b/src/core/xep/muc-events.h
--- a/src/core/xep/muc-events.h 2016-03-18 15:07:32.000000000 +0100
+++ b/src/core/xep/muc-events.h 2016-06-07 15:01:42.187435738 +0200
@@ -1,9 +1,13 @@
#ifndef __MUC_EVENTS_H
#define __MUC_EVENTS_H
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
void muc_events_init(void);
void muc_events_deinit(void);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif
Only in b/src/core/xep: muc-events.o
diff -rBu a/src/core/xep/muc-nicklist.h b/src/core/xep/muc-nicklist.h
--- a/src/core/xep/muc-nicklist.h 2016-03-18 15:07:32.000000000 +0100
+++ b/src/core/xep/muc-nicklist.h 2016-06-07 15:01:00.156568592 +0200
@@ -41,7 +41,9 @@
};
extern const char *xmpp_nicklist_role[];
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
XMPP_NICK_REC *xmpp_nicklist_insert(MUC_REC *, const char *, const char *);
void xmpp_nicklist_rename(MUC_REC *, XMPP_NICK_REC *, const char *,
const char *);
@@ -54,6 +56,8 @@
void muc_nicklist_init(void);
void muc_nicklist_deinit(void);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif
Only in b/src/core/xep: muc-nicklist.o
diff -rBu a/src/core/xep/muc-reconnect.h b/src/core/xep/muc-reconnect.h
--- a/src/core/xep/muc-reconnect.h 2016-03-18 15:07:32.000000000 +0100
+++ b/src/core/xep/muc-reconnect.h 2016-06-07 15:02:20.434891494 +0200
@@ -1,9 +1,13 @@
#ifndef __MUC_RECONNECT_H
#define __MUC_RECONNECT_H
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
void muc_reconnect_init(void);
void muc_reconnect_deinit(void);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif
Only in b/src/core/xep: muc-reconnect.o
diff -rBu a/src/core/xep/muc.h b/src/core/xep/muc.h
--- a/src/core/xep/muc.h 2016-03-18 15:07:32.000000000 +0100
+++ b/src/core/xep/muc.h 2016-06-07 15:00:42.002860727 +0200
@@ -49,7 +49,9 @@
MUC_ERROR_MAXIMUM_USERS_REACHED = 503,
};
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
void muc_join(XMPP_SERVER_REC *, const char *, gboolean);
void muc_part(MUC_REC *, const char *);
void muc_nick(MUC_REC *, const char *);
@@ -57,6 +59,8 @@
void muc_init(void);
void muc_deinit(void);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif
Only in b/src/core/xep: muc.o
diff -rBu a/src/core/xep/oob.h b/src/core/xep/oob.h
--- a/src/core/xep/oob.h 2016-03-18 15:07:32.000000000 +0100
+++ b/src/core/xep/oob.h 2016-06-07 15:03:31.993034487 +0200
@@ -1,9 +1,13 @@
#ifndef __OOB_H
#define __OOB_H
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
void oob_init(void);
void oob_deinit(void);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif
Only in b/src/core/xep: oob.o
diff -rBu a/src/core/xep/ping.h b/src/core/xep/ping.h
--- a/src/core/xep/ping.h 2016-03-18 15:07:32.000000000 +0100
+++ b/src/core/xep/ping.h 2016-06-07 15:04:08.993797855 +0200
@@ -1,11 +1,15 @@
#ifndef __PING_H
#define __PING_H
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
void xmpp_ping_send(XMPP_SERVER_REC *, const char *);
void ping_init(void);
void ping_deinit(void);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif
Only in b/src/core/xep: ping.o
diff -rBu a/src/core/xep/registration.h b/src/core/xep/registration.h
--- a/src/core/xep/registration.h 2016-03-18 15:07:32.000000000 +0100
+++ b/src/core/xep/registration.h 2016-06-07 15:02:03.267870651 +0200
@@ -14,9 +14,13 @@
REGISTRATION_ERROR_UNKNOWN = -1,
};
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
void registration_init(void);
void registration_deinit(void);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif
Only in b/src/core/xep: registration.o
diff -rBu a/src/core/xep/tool_datalist.h b/src/core/xep/tool_datalist.h
--- a/src/core/xep/tool_datalist.h 2016-03-18 15:07:32.000000000 +0100
+++ b/src/core/xep/tool_datalist.h 2016-06-07 14:58:54.853983455 +0200
@@ -14,7 +14,9 @@
void (*freedata_func)(DATALIST_REC *);
} DATALIST;
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
DATALIST *datalist_new(void (*)(DATALIST_REC *));
void datalist_destroy(DATALIST *);
DATALIST_REC *datalist_find(DATALIST *, XMPP_SERVER_REC *, const char *);
@@ -23,6 +25,8 @@
void datalist_free(DATALIST *, DATALIST_REC *);
void datalist_remove(DATALIST *, XMPP_SERVER_REC *, const char *);
void datalist_cleanup(DATALIST *, XMPP_SERVER_REC *);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif
Only in b/src/core/xep: tool_datalist.o
diff -rBu a/src/core/xep/vcard.h b/src/core/xep/vcard.h
--- a/src/core/xep/vcard.h 2016-03-18 15:07:32.000000000 +0100
+++ b/src/core/xep/vcard.h 2016-06-07 15:03:52.770129809 +0200
@@ -1,9 +1,13 @@
#ifndef __VCARD_H
#define __VCARD_H
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
void vcard_init(void);
void vcard_deinit(void);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif
Only in b/src/core/xep: vcard.o
diff -rBu a/src/core/xep/version.h b/src/core/xep/version.h
--- a/src/core/xep/version.h 2016-03-18 15:07:32.000000000 +0100
+++ b/src/core/xep/version.h 2016-06-07 15:04:23.914105679 +0200
@@ -1,9 +1,13 @@
#ifndef __VERSION_H
#define __VERSION_H
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
void version_init(void);
void version_deinit(void);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif
Only in b/src/core/xep: version.o
diff -rBu a/src/core/xep/xep.h b/src/core/xep/xep.h
--- a/src/core/xep/xep.h 2016-03-18 15:07:32.000000000 +0100
+++ b/src/core/xep/xep.h 2016-06-07 14:58:04.412942798 +0200
@@ -1,9 +1,13 @@
#ifndef __XEP_H
#define __XEP_H
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
void xep_init(void);
void xep_deinit(void);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif
Only in b/src/core/xep: xep.o
diff -rBu a/src/core/xmpp-commands.h b/src/core/xmpp-commands.h
--- a/src/core/xmpp-commands.h 2016-03-18 15:07:32.000000000 +0100
+++ b/src/core/xmpp-commands.h 2016-06-07 14:53:34.130699897 +0200
@@ -50,11 +50,15 @@
} \
} G_STMT_END
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
char *xmpp_get_dest(const char *, XMPP_SERVER_REC *, WI_ITEM_REC *);
void xmpp_commands_init(void);
void xmpp_commands_deinit(void);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif
Only in b/src/core: xmpp-commands.o
Only in b/src/core: xmpp-core.o
diff -rBu a/src/core/xmpp-queries.h b/src/core/xmpp-queries.h
--- a/src/core/xmpp-queries.h 2016-03-18 15:07:32.000000000 +0100
+++ b/src/core/xmpp-queries.h 2016-06-07 14:55:00.702485973 +0200
@@ -22,8 +22,12 @@
gboolean composing_visible;
};
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
QUERY_REC *xmpp_query_create(const char *, const char *, int);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif
Only in b/src/core: xmpp-queries.o
diff -rBu a/src/core/xmpp-servers-reconnect.h b/src/core/xmpp-servers-reconnect.h
--- a/src/core/xmpp-servers-reconnect.h 2016-03-18 15:07:32.000000000 +0100
+++ b/src/core/xmpp-servers-reconnect.h 2016-06-07 14:55:26.259679914 +0200
@@ -1,9 +1,13 @@
#ifndef __XMPP_SERVERS_RECONNECT_H
#define __XMPP_SERVERS_RECONNECT_H
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
void xmpp_servers_reconnect_init(void);
void xmpp_servers_reconnect_deinit(void);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif
Only in b/src/core: xmpp-servers-reconnect.o
diff -rBu a/src/core/xmpp-servers.h b/src/core/xmpp-servers.h
--- a/src/core/xmpp-servers.h 2016-03-18 15:07:32.000000000 +0100
+++ b/src/core/xmpp-servers.h 2016-06-07 14:54:39.542049408 +0200
@@ -54,12 +54,16 @@
GSList *msg_handlers;
};
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
SERVER_REC *xmpp_server_init_connect(SERVER_CONNECT_REC *);
void xmpp_server_connect(XMPP_SERVER_REC *);
void xmpp_servers_init(void);
void xmpp_servers_deinit(void);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif
Only in b/src/core: xmpp-servers.o
diff -rBu a/src/core/xmpp-settings.h b/src/core/xmpp-settings.h
--- a/src/core/xmpp-settings.h 2016-03-18 15:07:32.000000000 +0100
+++ b/src/core/xmpp-settings.h 2016-06-07 14:55:48.160131745 +0200
@@ -1,9 +1,13 @@
#ifndef __XMPP_SETTINGS_H
#define __XMPP_SETTINGS_H
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
void xmpp_settings_init(void);
void xmpp_settings_deinit(void);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif
Only in b/src/core: xmpp-settings.o
diff -rBu a/src/fe-common/fe-rosters.h b/src/fe-common/fe-rosters.h
--- a/src/fe-common/fe-rosters.h 2016-03-18 15:07:32.000000000 +0100
+++ b/src/fe-common/fe-rosters.h 2016-06-07 15:06:36.863515245 +0200
@@ -1,9 +1,13 @@
#ifndef __FE_ROSTERS_H
#define __FE__ROSTERS_H
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
void fe_rosters_init(void);
void fe_rosters_deinit(void);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif
Only in b/src/fe-common: fe-rosters.o
diff -rBu a/src/fe-common/fe-stanzas.h b/src/fe-common/fe-stanzas.h
--- a/src/fe-common/fe-stanzas.h 2016-03-18 15:07:32.000000000 +0100
+++ b/src/fe-common/fe-stanzas.h 2016-06-07 15:06:59.680652656 +0200
@@ -1,9 +1,13 @@
#ifndef __FE_STANZAS_H
#define __FE_STANZAS_H
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
void fe_stanzas_init(void);
void fe_stanzas_deinit(void);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif
Only in b/src/fe-common: fe-stanzas.o
Only in b/src/fe-common: fe-xmpp-core.o
diff -rBu a/src/fe-common/fe-xmpp-messages.h b/src/fe-common/fe-xmpp-messages.h
--- a/src/fe-com