public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Zac Medico" <zmedico@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-vpn/frp/files/, net-vpn/frp/
Date: Sat, 28 May 2022 18:16:52 +0000 (UTC)	[thread overview]
Message-ID: <1653761808.8c4754a73a49bb489d6de3bf207acdab5918a6bd.zmedico@gentoo> (raw)

commit:     8c4754a73a49bb489d6de3bf207acdab5918a6bd
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Sat May 28 17:58:56 2022 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Sat May 28 18:16:48 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c4754a7

net-vpn/frp: add 0.43.0

Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 net-vpn/frp/Manifest               |  1 +
 net-vpn/frp/files/frpc.service     | 15 +++++++++++++++
 net-vpn/frp/files/frpc_at_.service | 15 +++++++++++++++
 net-vpn/frp/files/frps.service     | 14 ++++++++++++++
 net-vpn/frp/files/frps_at_.service | 14 ++++++++++++++
 net-vpn/frp/frp-0.43.0.ebuild      | 37 +++++++++++++++++++++++++++++++++++++
 6 files changed, 96 insertions(+)

diff --git a/net-vpn/frp/Manifest b/net-vpn/frp/Manifest
index 0acde273bf3b..e5361847af86 100644
--- a/net-vpn/frp/Manifest
+++ b/net-vpn/frp/Manifest
@@ -1,2 +1,3 @@
 DIST frp-0.42.0-deps.tar.xz 40716624 BLAKE2B 60f8f1486c0c83627954f45d55fff6e42564549950557ffdf0bed6f4ee752670547a6968ec19bd7ce04ebd259480d9f665d6b93fc3550e0830fbc9e5bee55f80 SHA512 ddab5192b9399dab54b521fa35c38c6e6cf293737b8677d384f3d991255aa49ed6c6ccb3e4ff686f4946b30e7d84499c4d5564e327ef19aa3fdf465d85b15a49
 DIST frp-0.42.0.tar.gz 1280863 BLAKE2B 5377aeb7ef83ace3a36772bf56ab671a91688da6d6b54ce23833221cc7cadee1107a3a5d1ad8a615bb7b4e6cc6eca214888449481ad18584ca03f1b0bc484be2 SHA512 b61786a1023a09d9f854e09c406ac241c4a8684fb903511b70adc7527c44d80df92b2d3493fe49e9e04d19dbd994b8fe866285862c88ff89f090860c3bda1987
+DIST frp-0.43.0.tar.gz 1282855 BLAKE2B d2e60e89de8823ae129f91aa2cf50fe5101bcc3c42d63fde48febf89cb2511e5ecabaf799803cf6ba0042b523ef1a3de19fb7d027a34074df0ccb40ba8393b86 SHA512 e6ccbf98d9d8fb714f37784ca582684b9f27994cf3f74b7081043285394243a8e9114b65f0918b64207a99064422312d700d01adaed085175314ad0ae238eb8f

diff --git a/net-vpn/frp/files/frpc.service b/net-vpn/frp/files/frpc.service
new file mode 100644
index 000000000000..37a6a9bccbac
--- /dev/null
+++ b/net-vpn/frp/files/frpc.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Frp Client Service
+After=network.target
+
+[Service]
+Type=simple
+User=nobody
+Restart=on-failure
+RestartSec=5s
+ExecStart=/usr/bin/frpc -c /etc/frp/frpc.ini
+ExecReload=/usr/bin/frpc reload -c /etc/frp/frpc.ini
+LimitNOFILE=1048576
+
+[Install]
+WantedBy=multi-user.target

diff --git a/net-vpn/frp/files/frpc_at_.service b/net-vpn/frp/files/frpc_at_.service
new file mode 100644
index 000000000000..5914ff6ae97e
--- /dev/null
+++ b/net-vpn/frp/files/frpc_at_.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Frp Client Service
+After=network.target
+
+[Service]
+Type=simple
+User=nobody
+Restart=on-failure
+RestartSec=5s
+ExecStart=/usr/bin/frpc -c /etc/frp/%i.ini
+ExecReload=/usr/bin/frpc reload -c /etc/frp/%i.ini
+LimitNOFILE=1048576
+
+[Install]
+WantedBy=multi-user.target

diff --git a/net-vpn/frp/files/frps.service b/net-vpn/frp/files/frps.service
new file mode 100644
index 000000000000..c00f2dc53c64
--- /dev/null
+++ b/net-vpn/frp/files/frps.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Frp Server Service
+After=network.target
+
+[Service]
+Type=simple
+User=nobody
+Restart=on-failure
+RestartSec=5s
+ExecStart=/usr/bin/frps -c /etc/frp/frps.ini
+LimitNOFILE=1048576
+
+[Install]
+WantedBy=multi-user.target

diff --git a/net-vpn/frp/files/frps_at_.service b/net-vpn/frp/files/frps_at_.service
new file mode 100644
index 000000000000..2942e0ba7a69
--- /dev/null
+++ b/net-vpn/frp/files/frps_at_.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Frp Server Service
+After=network.target
+
+[Service]
+Type=simple
+User=nobody
+Restart=on-failure
+RestartSec=5s
+ExecStart=/usr/bin/frps -c /etc/frp/%i.ini
+LimitNOFILE=1048576
+
+[Install]
+WantedBy=multi-user.target

diff --git a/net-vpn/frp/frp-0.43.0.ebuild b/net-vpn/frp/frp-0.43.0.ebuild
new file mode 100644
index 000000000000..a9d8f761c7f8
--- /dev/null
+++ b/net-vpn/frp/frp-0.43.0.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit go-module systemd
+
+DESCRIPTION="A reverse proxy that exposes a server behind a NAT or firewall to the internet"
+HOMEPAGE="https://github.com/fatedier/frp"
+SRC_URI="https://github.com/fatedier/frp/archive/v${PV}.tar.gz -> ${P}.tar.gz
+	https://dev.gentoo.org/~zmedico/dist/frp-0.42.0-deps.tar.xz"
+
+LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~riscv"
+IUSE=""
+
+src_prepare() {
+	# patch LDFLAGS to preserve symbol table #792408
+	sed -e "s|^\\(LDFLAGS :=\\) -s \\(.*\\)|\1 \2|" -i Makefile || die
+	default
+}
+
+src_compile() {
+	emake all
+}
+
+src_install() {
+	local x
+	dobin bin/{frpc,frps}
+	dodoc README*.md
+	systemd_dounit "${FILESDIR}"/frp{c,s}.service
+	systemd_newunit "${FILESDIR}"/frpc_at_.service frpc@.service
+	systemd_newunit "${FILESDIR}"/frps_at_.service frps@.service
+	insinto /etc/frp
+	for x in conf/*.ini; do mv "${x}"{,.example}; done
+	doins conf/*.example
+}


             reply	other threads:[~2022-05-28 18:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-28 18:16 Zac Medico [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-04-01  0:16 [gentoo-commits] repo/gentoo:master commit in: net-vpn/frp/files/, net-vpn/frp/ Zac Medico

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1653761808.8c4754a73a49bb489d6de3bf207acdab5918a6bd.zmedico@gentoo \
    --to=zmedico@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox