diff --git a/net-im/Makefile b/net-im/Makefile index e55c9365ebf8..63ce6b19620c 100644 --- a/net-im/Makefile +++ b/net-im/Makefile @@ -1,181 +1,182 @@ COMMENT = Instant messaging SUBDIR += beebeep SUBDIR += biboumi SUBDIR += cawbird SUBDIR += chatterino2 SUBDIR += climm SUBDIR += coccinella SUBDIR += conduit SUBDIR += convey SUBDIR += coyim SUBDIR += cutegram SUBDIR += dendrite SUBDIR += dino SUBDIR += discordo SUBDIR += echat SUBDIR += ejabberd SUBDIR += farstream SUBDIR += finch SUBDIR += folks SUBDIR += fractal SUBDIR += freetalk SUBDIR += gajim SUBDIR += gloox SUBDIR += gomuks SUBDIR += gotktrix SUBDIR += gotosocial SUBDIR += gtkcord4 SUBDIR += gurk-rs SUBDIR += icmpchat SUBDIR += icqlib SUBDIR += jabberd SUBDIR += jarl SUBDIR += jicofo SUBDIR += jitsi-meet-full SUBDIR += jitsi-prosody-plugins SUBDIR += jitsi-srtp-native SUBDIR += jitsi-videobridge SUBDIR += jsxc SUBDIR += kaccounts-integration SUBDIR += kaccounts-providers SUBDIR += kaidan SUBDIR += kopete SUBDIR += libaccounts-glib SUBDIR += libaccounts-qt SUBDIR += libmesode SUBDIR += libnice SUBDIR += libnice-gst1 SUBDIR += libpurple SUBDIR += libqtelegram-ae SUBDIR += libquotient SUBDIR += libsignal-client SUBDIR += libsignal-node SUBDIR += libsignon-glib SUBDIR += libstrophe SUBDIR += loudmouth SUBDIR += lurch SUBDIR += mastodon SUBDIR += matterbridge SUBDIR += matterhorn SUBDIR += matterircd SUBDIR += mbpurple SUBDIR += mcabber SUBDIR += meanwhile SUBDIR += mikutter SUBDIR += mtxclient SUBDIR += neochat SUBDIR += nextcloud-spreed-signaling SUBDIR += nextcloud-talk SUBDIR += nheko SUBDIR += openfire SUBDIR += oysttyer SUBDIR += p5-AnyEvent-XMPP SUBDIR += p5-DJabberd SUBDIR += p5-Jabber-Lite SUBDIR += p5-Jabber-SimpleSend SUBDIR += p5-Net-AOLIM SUBDIR += p5-Net-Async-XMPP SUBDIR += p5-Net-Jabber SUBDIR += p5-Net-NetSend SUBDIR += p5-Net-OSCAR SUBDIR += p5-Net-Stomp SUBDIR += p5-Net-XMPP SUBDIR += p5-Net-XMPP2 SUBDIR += p5-Protocol-XMPP SUBDIR += p5-SOAP-Transport-JABBER SUBDIR += pecl-stomp2 SUBDIR += pidgin SUBDIR += pidgin-bot-sentry SUBDIR += pidgin-fetion SUBDIR += pidgin-hotkeys SUBDIR += pidgin-icyque SUBDIR += pidgin-latex SUBDIR += pidgin-libnotify SUBDIR += pidgin-manualsize SUBDIR += pidgin-sipe SUBDIR += pidgin-skypeweb SUBDIR += pidgin-twitter SUBDIR += pidgin-window_merge SUBDIR += profanity SUBDIR += prosody SUBDIR += prosody-modules SUBDIR += psi SUBDIR += purple-discord SUBDIR += purple-facebook SUBDIR += purple-googlechat + SUBDIR += purple-gowhatsapp SUBDIR += purple-mattermost SUBDIR += purple-plugin-pack SUBDIR += purple-rocketchat SUBDIR += purple-slack SUBDIR += py-fbmq SUBDIR += py-matrix-synapse SUBDIR += py-nbxmpp SUBDIR += py-punjab SUBDIR += py-python-telegram-bot SUBDIR += py-slack-sdk SUBDIR += py-slixmpp SUBDIR += py-telepot SUBDIR += py-toxcore-c SUBDIR += py-unmessage SUBDIR += qTox SUBDIR += quaternion SUBDIR += qxmpp SUBDIR += ricochet SUBDIR += rubygem-discordrb-webhooks SUBDIR += rubygem-discordrb-webhooks-blackst0ne SUBDIR += rubygem-hipchat SUBDIR += rubygem-lita SUBDIR += rubygem-termtter SUBDIR += rubygem-tinder SUBDIR += ruqola SUBDIR += sayaka SUBDIR += scli SUBDIR += sendxmpp SUBDIR += signal-cli SUBDIR += signal-desktop SUBDIR += signald SUBDIR += slack-term SUBDIR += spectral SUBDIR += ssh-chat SUBDIR += sshout SUBDIR += talkatu SUBDIR += tdlib SUBDIR += tdlib-purple SUBDIR += telegram-cli SUBDIR += telegram-desktop SUBDIR += telegram-purple SUBDIR += telegramqml SUBDIR += teleirc SUBDIR += telepathy-accounts-signon SUBDIR += telepathy-farstream SUBDIR += telepathy-gabble SUBDIR += telepathy-glib SUBDIR += telepathy-idle SUBDIR += telepathy-logger SUBDIR += telepathy-logger-qt5 SUBDIR += telepathy-mission-control SUBDIR += telepathy-qt SUBDIR += telepathy-salut SUBDIR += telepathy-sofiasip SUBDIR += tg_owt SUBDIR += tkabber SUBDIR += tkabber-plugins SUBDIR += tokodon SUBDIR += toot SUBDIR += tox SUBDIR += tox_extension_messages SUBDIR += toxbot SUBDIR += toxext SUBDIR += toxic SUBDIR += toxins SUBDIR += tut SUBDIR += twirssi SUBDIR += uTox SUBDIR += vqcc-gtk SUBDIR += xmpp-client SUBDIR += yume SUBDIR += zkgroup SUBDIR += zoom .include diff --git a/net-im/purple-gowhatsapp/Makefile b/net-im/purple-gowhatsapp/Makefile new file mode 100644 index 000000000000..c04ecd199d16 --- /dev/null +++ b/net-im/purple-gowhatsapp/Makefile @@ -0,0 +1,49 @@ +PORTNAME= purple-gowhatsapp +DISTVERSIONPREFIX=v +DISTVERSION= 1.13.0 +CATEGORIES= net-im + +MAINTAINER= mi@aldan.algebra.com +COMMENT= WhatsApp plugin for libpurple +WWW= https://github.com/hoehermann/purple-gowhatsapp + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libpurple.so:net-im/libpurple \ + libopusfile.so:audio/opusfile + +USES= go:no_targets cmake dos2unix + +OPTIONS_MULTI= DB-backend +OPTIONS_MULTI_DB-backend= SQLITE3 POSTGRES MYSQL +OPTIONS_DEFAULT=SQLITE3 +.for o in ${OPTIONS_MULTI_DB} +$o_DESC= Support use of $o for storing account information +.endfor + +USE_GITHUB= yep... +GH_ACCOUNT= hoehermann +DOS2UNIX_GLOB= CMake*.txt + +CMAKE_ARGS= -DPURPLE_INCLUDE_DIRS=${LOCALBASE}/include/libpurple \ + -DPURPLE_LIBRARY_DIRS=${LOCALBASE}/lib \ + -DPURPLE_PLUGIN_DIR=${PREFIX}/lib/purple-2 \ + -DPURPLE_DATA_DIR=${PREFIX}/share +LDFLAGS+= -L${LOCALBASE}/lib + +post-patch-POSTGRES-off: + ${REINPLACE_CMD} '/lib\/pq/d' ${WRKSRC}/src/go/login.go + +post-patch-MYSQL-off: + ${REINPLACE_CMD} '/go-sql-driver\/mysql/d' ${WRKSRC}/src/go/login.go + +post-patch-SQLIT3-off: + ${REINPLACE_CMD} '/mattn\/go-sqlite3/d' ${WRKSRC}/src/go/login.go + +# The downloaded Go-files are read-only and the simple rm -f does not work +# against them (unless invoked as root). Here we relax the permissions first: +pre-clean: + -@${FIND} ${WRKDIR} | ${XARGS} ${CHMOD} u+w + +.include diff --git a/net-im/purple-gowhatsapp/distinfo b/net-im/purple-gowhatsapp/distinfo new file mode 100644 index 000000000000..440dd580ed44 --- /dev/null +++ b/net-im/purple-gowhatsapp/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1705716803 +SHA256 (hoehermann-purple-gowhatsapp-v1.13.0_GH0.tar.gz) = 153229acd476ff1f98497074402944869c73e85ad06d6cfa8529bf4861960c96 +SIZE (hoehermann-purple-gowhatsapp-v1.13.0_GH0.tar.gz) = 140285 diff --git a/net-im/purple-gowhatsapp/files/patch-configure b/net-im/purple-gowhatsapp/files/patch-configure new file mode 100644 index 000000000000..b8775407932d --- /dev/null +++ b/net-im/purple-gowhatsapp/files/patch-configure @@ -0,0 +1,27 @@ +--- CMakeLists.txt 2023-09-01 16:15:26.000000000 -0400 ++++ CMakeLists.txt 2024-01-19 21:50:01.130852000 -0500 +@@ -4,3 +4,2 @@ + + set(Purple_DIR "${CMAKE_CURRENT_SOURCE_DIR}/submodules/purple-cmake" CACHE PATH "Where to find purple-config.cmake") +-find_package(Purple REQUIRED) +@@ -41,4 +40,2 @@ + + install(DIRECTORY "pixmaps" DESTINATION "${PURPLE_DATA_DIR}" FILES_MATCHING PATTERN "*.png") +- +-include(cpack.cmake) +--- src/go/go.mod.in 2023-09-01 16:15:26.000000000 -0400 ++++ src/go/go.mod.in 2024-01-19 23:14:27.315646000 -0500 +@@ -2,13 +2,2 @@ + + go 1.18 +- +-require ( +- github.com/alfg/mp4 v0.0.0-20210728035756-55ea58c08aeb +- github.com/go-sql-driver/mysql v1.6.0 +- github.com/lib/pq v1.10.4 +- github.com/mattn/go-sqlite3 v1.14.10 +- github.com/mdp/qrterminal/v3 v3.0.0 +- github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e +- golang.org/x/net v0.5.0 +- go.mau.fi/whatsmeow latest +-) diff --git a/net-im/purple-gowhatsapp/pkg-descr b/net-im/purple-gowhatsapp/pkg-descr new file mode 100644 index 000000000000..89e601b1a08d --- /dev/null +++ b/net-im/purple-gowhatsapp/pkg-descr @@ -0,0 +1,5 @@ +A libpurple/Pidgin plugin for WhatsApp. + +This is a re-write of purple-gowhatsapp, switching back-ends from +go-whatsapp to whatsmeow. whatsmeow is written by Tulir Asokan. It +has multi-device support. diff --git a/net-im/purple-gowhatsapp/pkg-plist b/net-im/purple-gowhatsapp/pkg-plist new file mode 100644 index 000000000000..b4b08ff3d299 --- /dev/null +++ b/net-im/purple-gowhatsapp/pkg-plist @@ -0,0 +1,5 @@ +lib/purple-2/libwhatsmeow.so +share/pixmaps/pidgin/protocols/16/whatsapp.png +share/pixmaps/pidgin/protocols/22/whatsapp.png +share/pixmaps/pidgin/protocols/48/whatsapp.png +share/pixmaps/pidgin/protocols/64/whatsapp.png