From nobody Mon Aug 26 14:15:10 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Wst3z25Bpz5T0Lf; Mon, 26 Aug 2024 14:15:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wst3z0P89z4jNp; Mon, 26 Aug 2024 14:15:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724681711; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=M7wKIUN96pT5tmmRiFeWDh24uv2ju4tC1jpSBHHPnZc=; b=YqZWCclQJYbRmanCzDw+7OVbqlk0tNUh8H7CXZ8HxkgY3Ix1Yg2hgJ5aLE9a99EId5RQF1 bRCBdS9vfo+jFnivFFCoFrh9yGhIbevZowq2Io6Asrp/tyFdXSubsCvbXgwz0CS/262sXE psVRm8wT8cb0F02lQUpbHOLMPQDL/lmDVt2dlf1tx267nk6enR07XWkYAzhSBYp9fUtNCz IE9O6Oz5mrxn8Cr6k5Fgk86G9wRR91/ZP6Oi1crD5ZAtCZIG/XL0twLHWIzrYoN2NnLMyp B9wM58onNioPSGcGLsxprgfIp4h4H9qFgpxToa/Ca9CCGc5Fvvb24i2JQDuvaQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724681711; a=rsa-sha256; cv=none; b=s66x0bNmJgITraCVD5jPF3o/seph6zDUJZyRdtEpiatiFw3mTxtLxA5rUJGiN1TCmtO5hs lTyXaWmxMM5zxmbc8AhF7oTWQuukMmtIVqaFyrDaYNmIjCuEpo96WR7oKTfJO8uG1Cp09+ 197CVF4GML3s2cAlgQlIpULd6/pYv4CPNYHuomWdjjzQWultIdB2S3HNJUZAhWOlmbaj8N m/9AuXi7nPgr0YP9DW8LCaou0eBeOaJifmsgrT+ZCKLZIcblIZrrGzphSCfbIs7FaxGiSN Us7/SUPCVro2R/SoKn8kK30kllSwLl6YflZvxxrw+RxtCCFU1KZHvm6Swm81pg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724681711; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=M7wKIUN96pT5tmmRiFeWDh24uv2ju4tC1jpSBHHPnZc=; b=rVkc41J71ZlwLfQoHUgCdUy6e7uQ8+xtt5u/2nPXhYCrepCBA2Sbqanh60b+JW3/sw7myD 4a0vEzdb/RPdGXNRBO74e5NF4KGBZ9rK+nDTP6zb6ufOJziZZgn7CcH+f08dm9MDNxilC7 W4C+DDIgC8mAUB+7Vqg8lR8+Qnu8n2/QoHoI8DIyV1WH+jeU3tAkpkr5VduIsHaDRyspaW L2C3PZmPoCe0yGnV/jteNccmfcom2FBcQVU4Qsm0G8Y7QfJJhKIjJccyrT1icciwcsGCVH flDCDon6EpQ7km9FCkqHkroYk3MiEoYT6/Dig11dO9LYD15lt799hiuDo04sSQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Wst3y75l2z18B5; Mon, 26 Aug 2024 14:15:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 47QEFASV052687; Mon, 26 Aug 2024 14:15:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47QEFAZ7052684; Mon, 26 Aug 2024 14:15:10 GMT (envelope-from git) Date: Mon, 26 Aug 2024 14:15:10 GMT Message-Id: <202408261415.47QEFAZ7052684@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Nicola Vitale Subject: git: f3d18ded6804 - main - net-im/linux-whatsdesk: Add new port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: nivit X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f3d18ded6804e7145e90c84573d9e725b35a8343 Auto-Submitted: auto-generated The branch main has been updated by nivit: URL: https://cgit.FreeBSD.org/ports/commit/?id=f3d18ded6804e7145e90c84573d9e725b35a8343 commit f3d18ded6804e7145e90c84573d9e725b35a8343 Author: Nicola Vitale AuthorDate: 2024-08-26 14:12:21 +0000 Commit: Nicola Vitale CommitDate: 2024-08-26 14:14:37 +0000 net-im/linux-whatsdesk: Add new port WhatsDesk is an unofficial client of Whatsapp. This project is only inserting an instance of Whatsapp Web in an electron app and adds/enables desktop notifications. https://gitlab.com/zerkc/whatsdesk --- net-im/Makefile | 1 + net-im/linux-whatsdesk/Makefile | 57 ++++++++++++++++++ net-im/linux-whatsdesk/distinfo | 3 + net-im/linux-whatsdesk/files/linux-whatsdesk.in | 11 ++++ net-im/linux-whatsdesk/pkg-descr | 4 ++ net-im/linux-whatsdesk/pkg-message | 13 ++++ net-im/linux-whatsdesk/pkg-plist | 80 +++++++++++++++++++++++++ 7 files changed, 169 insertions(+) diff --git a/net-im/Makefile b/net-im/Makefile index e56e237d586a..00c38a44f58d 100644 --- a/net-im/Makefile +++ b/net-im/Makefile @@ -52,6 +52,7 @@ SUBDIR += libsignon-glib SUBDIR += libstrophe SUBDIR += linux-discord + SUBDIR += linux-whatsdesk SUBDIR += loudmouth SUBDIR += lurch SUBDIR += mastodon diff --git a/net-im/linux-whatsdesk/Makefile b/net-im/linux-whatsdesk/Makefile new file mode 100644 index 000000000000..3e5570c299c9 --- /dev/null +++ b/net-im/linux-whatsdesk/Makefile @@ -0,0 +1,57 @@ +PORTNAME= linux-whatsdesk +DISTVERSIONPREFIX= v +DISTVERSION= 0.3.9 +CATEGORIES= net-im +MASTER_SITES= https://zerkc.gitlab.io/whatsdesk/ +DISTFILES= whatsdesk_${DISTVERSION}_amd64.deb +EXTRACT_ONLY= ${DISTFILES:R}.tar.xz + +MAINTAINER= nivit@FreeBSD.org +COMMENT= Unofficial client of Whatsapp +WWW= https://gitlab.com/zerkc/whatsdesk + +LICENSE= AGPLv3 BSD3CLAUSE CC-BY-2.5 CC-BY-3.0 LGPL21 MIT MPL11 +LICENSE_COMB= multi + +ONLY_FOR_ARCHS= amd64 + +EXTRACT_DEPENDS= deb2targz:archivers/deb2targz + +USES= desktop-file-utils linux:rl9 tar:xz +USE_LINUX= alsa-plugins-oss alsa-plugins-pulseaudio alsalib at-spi2-atk \ + atk ca-certificates cups-libs dbuslibs devtools gtk3 libdrm \ + libsigsegv nss opus + +NO_BUILD= yes +SUB_FILES= ${PORTNAME} +SUB_LIST= LINUXBASE=${LINUXBASE} + +NO_WRKSUBDIR= yes + +STRIP_CMD= ${LINUXBASE}/usr/bin/strip + +pre-extract: + ${LOCALBASE}/bin/deb2targz ${DISTDIR}/${DISTFILES} + +# remove artifact of deb2targz +post-extract: + @${RM} ${DISTDIR}/${DISTFILES:R}.tar.xz + +post-patch: + ${REINPLACE_CMD} -i "" \ + -e "s,/opt/whatsdesk/\(whatsdesk\),${PREFIX}/bin/linux-\1,1" \ + ${WRKSRC}/usr/share/applications/whatsdesk.desktop + +do-install: + @${MKDIR} ${STAGEDIR}${DATADIR} + (cd ${WRKSRC}/opt/whatsdesk && \ + ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} \ + "-not -regex \./LICENSE.*") + (cd ${WRKSRC}/usr/share && \ + ${COPYTREE_SHARE} . ${STAGEDIR}${LOCALBASE}/share \ + "-not -regex \./doc.*") + ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${LOCALBASE}/bin/${PORTNAME} + (cd ${STAGEDIR}${DATADIR} && \ + ${STRIP_CMD} chrome-sandbox libvulkan.so.1) + +.include diff --git a/net-im/linux-whatsdesk/distinfo b/net-im/linux-whatsdesk/distinfo new file mode 100644 index 000000000000..64f79d45a5d9 --- /dev/null +++ b/net-im/linux-whatsdesk/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1724279277 +SHA256 (whatsdesk_0.3.9_amd64.deb) = 4756f5c9f22e889fcec3aa34c587cb10bc6e7ccb476d6481e58267c4f6df181e +SIZE (whatsdesk_0.3.9_amd64.deb) = 64354830 diff --git a/net-im/linux-whatsdesk/files/linux-whatsdesk.in b/net-im/linux-whatsdesk/files/linux-whatsdesk.in new file mode 100755 index 000000000000..39df1e544af2 --- /dev/null +++ b/net-im/linux-whatsdesk/files/linux-whatsdesk.in @@ -0,0 +1,11 @@ +#!%%LINUXBASE%%/bin/bash + +export ELECTRON_IS_DEV=0 +export LIBGL_DRI3_DISABLE=1 +export NODE_ENV=production +# workaround Chromium bug https://bugs.chromium.org/p/chromium/issues/detail?id=918234 +if [ "$DBUS_SESSION_BUS_ADDRESS" = "" ]; then + export DBUS_SESSION_BUS_ADDRESS="autolaunch:" +fi + +exec -a "$0" "%%DATADIR%%/whatsdesk" --no-sandbox "$@" diff --git a/net-im/linux-whatsdesk/pkg-descr b/net-im/linux-whatsdesk/pkg-descr new file mode 100644 index 000000000000..fd5ea916550f --- /dev/null +++ b/net-im/linux-whatsdesk/pkg-descr @@ -0,0 +1,4 @@ +WhatsDesk is an unofficial client of whatsapp. + +This project is only inserting an instance of Whatsapp Web in an electron app +and adds/enables desktop notifications. diff --git a/net-im/linux-whatsdesk/pkg-message b/net-im/linux-whatsdesk/pkg-message new file mode 100644 index 000000000000..0658f441fc7f --- /dev/null +++ b/net-im/linux-whatsdesk/pkg-message @@ -0,0 +1,13 @@ +[ +{ type: install + message: <