Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Mar 2021 08:15:40 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r569094 - in head/net/frp: . files
Message-ID:  <202103240815.12O8Fej7012171@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Wed Mar 24 08:15:40 2021
New Revision: 569094
URL: https://svnweb.freebsd.org/changeset/ports/569094

Log:
  net/frp: Update 0.36.1 -> 0.36.2
  
  Add config file and rc script.
  
  Reported by:	portscout

Added:
  head/net/frp/files/
  head/net/frp/files/frps.in   (contents, props changed)
  head/net/frp/pkg-plist   (contents, props changed)
Modified:
  head/net/frp/Makefile
  head/net/frp/distinfo

Modified: head/net/frp/Makefile
==============================================================================
--- head/net/frp/Makefile	Wed Mar 24 07:58:33 2021	(r569093)
+++ head/net/frp/Makefile	Wed Mar 24 08:15:40 2021	(r569094)
@@ -2,7 +2,7 @@
 
 PORTNAME=	frp
 DISTVERSIONPREFIX=	v
-DISTVERSION=	0.36.1
+DISTVERSION=	0.36.2
 CATEGORIES=	net
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -74,7 +74,11 @@ GH_TUPLE=	\
 		xtaci:lossyconn:8df528c0c9ae:xtaci_lossyconn/vendor/github.com/xtaci/lossyconn
 GO_TARGET=	./cmd/frpc ./cmd/frps
 
-PLIST_FILES=	bin/frpc \
-		bin/frps
+USER=		nobody
+SUB_LIST=	USER=${USER}
+USE_RC_SUBR=	${PORTNAME}s
+
+post-install:
+	${INSTALL_DATA} ${WRKSRC}/conf/frps.ini ${STAGEDIR}${PREFIX}/etc/frps.ini.sample
 
 .include <bsd.port.mk>

Modified: head/net/frp/distinfo
==============================================================================
--- head/net/frp/distinfo	Wed Mar 24 07:58:33 2021	(r569093)
+++ head/net/frp/distinfo	Wed Mar 24 08:15:40 2021	(r569094)
@@ -1,6 +1,6 @@
-TIMESTAMP = 1616047274
-SHA256 (fatedier-frp-v0.36.1_GH0.tar.gz) = b49f3d3a0f67dde4bde6dde0617947d0bd1a669f949dd956866ad0727abf0c35
-SIZE (fatedier-frp-v0.36.1_GH0.tar.gz) = 1898513
+TIMESTAMP = 1616572551
+SHA256 (fatedier-frp-v0.36.2_GH0.tar.gz) = b9dca438385ddbbcc4c7dade3d5e940e1b61b27dd45a012876eaaa41ec2da2a9
+SIZE (fatedier-frp-v0.36.2_GH0.tar.gz) = 1898652
 SHA256 (Azure-go-ntlmssp-66371956d46c_GH0.tar.gz) = 24b46602ef1adae845ec6938550d14ce9a93b4f2171201af0a29da421b611139
 SIZE (Azure-go-ntlmssp-66371956d46c_GH0.tar.gz) = 8131
 SHA256 (armon-go-socks5-e75332964ef5_GH0.tar.gz) = 37f9cad3e321c452ea54824021ecd5b6ef4222c68b25f9c8a66a0c6d8411437e

Added: head/net/frp/files/frps.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/frp/files/frps.in	Wed Mar 24 08:15:40 2021	(r569094)
@@ -0,0 +1,27 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: frps
+# REQUIRE: DAEMON NETWORKING
+# KEYWORD: shutdown
+
+# Add the following lines to /etc/rc.conf to enable frps:
+# frps_enable : set to "YES" to enable the daemon, default is "NO"
+
+. /etc/rc.subr
+
+name=frps
+rcvar=frps_enable
+
+load_rc_config $name
+
+frps_enable=${frps_enable:-"NO"}
+
+logfile="/var/log/${name}.log"
+
+procname=%%PREFIX%%/bin/frps
+command="/usr/sbin/daemon"
+command_args="-u %%USER%% -o ${logfile} -t ${name} %%PREFIX%%/bin/frps -c %%PREFIX%%/etc/frps.ini"
+
+run_rc_command "$1"

Added: head/net/frp/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/frp/pkg-plist	Wed Mar 24 08:15:40 2021	(r569094)
@@ -0,0 +1,3 @@
+bin/frpc
+bin/frps
+@sample etc/frps.ini.sample



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103240815.12O8Fej7012171>