git: c6090ff97a4e - main - security/py-vpn-slice: New port

From: Dries Michiels <driesm_at_FreeBSD.org>
Date: Tue, 23 Nov 2021 07:57:13 UTC
The branch main has been updated by driesm:

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

commit c6090ff97a4e1f49bff701a921f485f4d7a951c8
Author:     Jose G. Juanino <jjuanino@gmail.com>
AuthorDate: 2021-11-21 17:37:19 +0000
Commit:     Dries Michiels <driesm@FreeBSD.org>
CommitDate: 2021-11-23 06:54:02 +0000

    security/py-vpn-slice: New port
    
    Customized VPN split-tunnel. vpnc-script replacement for easy and
    secure split-tunnel VPN setup.
    
    PR:                     259831
    Approved by:            philip (mentor)
    Differential Revision:  https://reviews.freebsd.org/D33074
---
 security/Makefile                 |  1 +
 security/py-vpn-slice/Makefile    | 18 ++++++++++++++++++
 security/py-vpn-slice/distinfo    |  3 +++
 security/py-vpn-slice/pkg-descr   |  9 +++++++++
 security/py-vpn-slice/pkg-message | 10 ++++++++++
 5 files changed, 41 insertions(+)

diff --git a/security/Makefile b/security/Makefile
index 5f031d0dd71f..fb6d514facac 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -1023,6 +1023,7 @@
     SUBDIR += py-vici
     SUBDIR += py-virustotal-api
     SUBDIR += py-volatility3
+    SUBDIR += py-vpn-slice
     SUBDIR += py-vulndb
     SUBDIR += py-webauthn
     SUBDIR += py-xkcdpass
diff --git a/security/py-vpn-slice/Makefile b/security/py-vpn-slice/Makefile
new file mode 100644
index 000000000000..97b7111c2b75
--- /dev/null
+++ b/security/py-vpn-slice/Makefile
@@ -0,0 +1,18 @@
+PORTNAME=	vpn-slice
+DISTVERSION=	0.15
+CATEGORIES=	security python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	jjuanino@gmail.com
+COMMENT=	Customized VPN split-tunnel
+
+LICENSE=	GPLv3
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}dnspython>=1.16:dns/py-dnspython@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}setproctitle>=1.2:devel/py-setproctitle@${PY_FLAVOR}
+
+USES=		python:3.3+
+USE_PYTHON=	autoplist concurrent distutils
+
+.include <bsd.port.mk>
diff --git a/security/py-vpn-slice/distinfo b/security/py-vpn-slice/distinfo
new file mode 100644
index 000000000000..a6a29ae6a854
--- /dev/null
+++ b/security/py-vpn-slice/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1637510617
+SHA256 (vpn-slice-0.15.tar.gz) = 7d5133aecbed9d5696d59dcb799c3d8d30a89a08f6d36fac335f6b8357786353
+SIZE (vpn-slice-0.15.tar.gz) = 18510
diff --git a/security/py-vpn-slice/pkg-descr b/security/py-vpn-slice/pkg-descr
new file mode 100644
index 000000000000..a51cb39dbd1a
--- /dev/null
+++ b/security/py-vpn-slice/pkg-descr
@@ -0,0 +1,9 @@
+This is a replacement for the vpnc-script used by OpenConnect or VPNC.
+
+Instead of trying to copy the behavior of standard corporate VPN clients, which
+normally reroute all your network traffic through the VPN, this one tries to
+minimize your contact with an intrusive VPN. This is also known as a
+split-tunnel VPN, since it splits your traffic between the VPN tunnel and your
+normal network interfaces.
+
+WWW: https://github.com/dlenski/vpn-slice
diff --git a/security/py-vpn-slice/pkg-message b/security/py-vpn-slice/pkg-message
new file mode 100644
index 000000000000..05467707c329
--- /dev/null
+++ b/security/py-vpn-slice/pkg-message
@@ -0,0 +1,10 @@
+[
+{ type: install
+  message: <<EOM
+This software requires that procfs filesystem be mounted;
+
+# echo "proc /proc procfs rw 0 0" >> /etc/fstab
+# mount /proc
+EOM
+}
+]