git: 1fc4fa871058 - main - Add net/landrop: Drop any files to any devices on your LAN

From: Li-Wen Hsu <lwhsu_at_FreeBSD.org>
Date: Fri, 31 Dec 2021 00:32:32 UTC
The branch main has been updated by lwhsu:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1fc4fa871058c868f07699d054bbf8a8e2d7673e

commit 1fc4fa871058c868f07699d054bbf8a8e2d7673e
Author:     Li-Wen Hsu <lwhsu@FreeBSD.org>
AuthorDate: 2021-12-31 00:30:48 +0000
Commit:     Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2021-12-31 00:30:48 +0000

    Add net/landrop: Drop any files to any devices on your LAN
    
    LANDrop is a cross-platform tool that you can use to conveniently transfer
    photos, videos, and other types of files to other devices on the same local
    network.
    
    WWW: https://landrop.app
---
 net/Makefile                                |  1 +
 net/landrop/Makefile                        | 30 +++++++++++++++++++++++++++++
 net/landrop/distinfo                        |  3 +++
 net/landrop/files/patch-LANDrop_LANDrop.pro | 13 +++++++++++++
 net/landrop/pkg-descr                       |  5 +++++
 5 files changed, 52 insertions(+)

diff --git a/net/Makefile b/net/Makefile
index d756d4642641..a8131a8d36f2 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -341,6 +341,7 @@
     SUBDIR += l2tpd
     SUBDIR += ladvd
     SUBDIR += lambdamoo
+    SUBDIR += landrop
     SUBDIR += latd
     SUBDIR += ldap-stats
     SUBDIR += ldapbrowser
diff --git a/net/landrop/Makefile b/net/landrop/Makefile
new file mode 100644
index 000000000000..1590f98df513
--- /dev/null
+++ b/net/landrop/Makefile
@@ -0,0 +1,30 @@
+PORTNAME=	landrop
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.4.0
+CATEGORIES=	net
+
+MAINTAINER=	lwhsu@FreeBSD.org
+COMMENT=	Drop any files to any devices on your LAN
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+LIB_DEPENDS=	libsodium.so:security/libsodium
+
+USES=	gl qmake:outsource qt:5
+
+USE_GITHUB=	yes
+
+GH_ACCOUNT=	LANDrop
+GH_PROJECT=	LANDrop
+
+USE_GL=	gl
+USE_QT=	buildtools_build core gui network widgets
+
+QMAKE_SOURCE_PATH=	${WRKSRC}/LANDrop/LANDrop.pro
+
+PLIST_FILES=	bin/landrop \
+		share/applications/landrop.desktop \
+		share/icons/hicolor/scalable/apps/landrop.svg
+
+.include <bsd.port.mk>
diff --git a/net/landrop/distinfo b/net/landrop/distinfo
new file mode 100644
index 000000000000..6e1ae9fd350f
--- /dev/null
+++ b/net/landrop/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1640882015
+SHA256 (LANDrop-LANDrop-v0.4.0_GH0.tar.gz) = b24270aba21167266398d0431c3463b933efe156f195320736fcbc0653eb2d62
+SIZE (LANDrop-LANDrop-v0.4.0_GH0.tar.gz) = 318785
diff --git a/net/landrop/files/patch-LANDrop_LANDrop.pro b/net/landrop/files/patch-LANDrop_LANDrop.pro
new file mode 100644
index 000000000000..80e026a95d9f
--- /dev/null
+++ b/net/landrop/files/patch-LANDrop_LANDrop.pro
@@ -0,0 +1,13 @@
+--- LANDrop/LANDrop.pro.orig	2021-12-30 18:09:20 UTC
++++ LANDrop/LANDrop.pro
+@@ -73,8 +73,8 @@ unix {
+     desktop.files = $$OUT_PWD/landrop.desktop
+     desktop.extra = \
+         cp "$$PWD/../misc/LANDrop.desktop" "$$OUT_PWD/landrop.desktop" && \
+-        sed -i 's/Exec=LANDrop/Exec=landrop/g' "$$OUT_PWD/landrop.desktop" && \
+-        sed -i 's/Icon=LANDrop/Icon=landrop/g' "$$OUT_PWD/landrop.desktop"
++        sed -i.bak 's/Exec=LANDrop/Exec=landrop/g' "$$OUT_PWD/landrop.desktop" && \
++        sed -i.bak 's/Icon=LANDrop/Icon=landrop/g' "$$OUT_PWD/landrop.desktop"
+     desktop.CONFIG = no_check_exist 
+ 
+     INSTALLS += binary icon desktop
diff --git a/net/landrop/pkg-descr b/net/landrop/pkg-descr
new file mode 100644
index 000000000000..864444ea04ff
--- /dev/null
+++ b/net/landrop/pkg-descr
@@ -0,0 +1,5 @@
+LANDrop is a cross-platform tool that you can use to conveniently transfer
+photos, videos, and other types of files to other devices on the same local
+network.
+
+WWW: https://landrop.app