diff options
Diffstat (limited to 'net/pichi')
-rw-r--r-- | net/pichi/Makefile | 101 | ||||
-rw-r--r-- | net/pichi/distinfo | 3 | ||||
-rw-r--r-- | net/pichi/files/pichi.in | 85 | ||||
-rw-r--r-- | net/pichi/pkg-descr | 4 | ||||
-rw-r--r-- | net/pichi/pkg-plist | 62 |
5 files changed, 0 insertions, 255 deletions
diff --git a/net/pichi/Makefile b/net/pichi/Makefile deleted file mode 100644 index cc2ab83b5f3f..000000000000 --- a/net/pichi/Makefile +++ /dev/null @@ -1,101 +0,0 @@ -PORTNAME= pichi -DISTVERSION= 1.5.1 -PORTREVISION= 5 -CATEGORIES= net - -MAINTAINER= pichi@elude.in -COMMENT= Flexible rule-based proxy -WWW= https://github.com/pichi-router/pichi - -LICENSE= BSD3CLAUSE -LICENSE_FILE= ${WRKSRC}/LICENSE - -DEPRECATED= Depends on expired security/mbedtls2 -EXPIRATION_DATE=2025-06-01 - -BUILD_DEPENDS= rapidjson>=1.1.0:devel/rapidjson - -USES= cmake compiler:c++17-lang cpe -CPE_VENDOR= ${PORTNAME}_project - -USE_GITHUB= yes -GH_ACCOUNT= pichi-router - -USE_RC_SUBR= pichi -PLIST_SUB= DISTVERSION=${DISTVERSION} - -CMAKE_BUILD_TYPE= MinSizeRel -CMAKE_ARGS= -DVERSION=${DISTVERSION} -CMAKE_ON= BUILD_SERVER BUILD_TEST -CMAKE_OFF= ENABLE_CONAN TRANSPARENT_IPTABLES -INSTALL_TARGET= install/strip -TEST_TARGET= test - -OPTIONS_DEFINE= DEVEL STATIC TLS_FINGERPRINT TRANSPARENT -OPTIONS_SUB= yes - -STATIC_DESC= Static linking -STATIC_CMAKE_BOOL_OFF= BUILD_SHARED_LIBS -STATIC_BUILD_DEPENDS= boost-libs>=1.67.0:devel/boost-libs \ - libmaxminddb>=1.3.0:net/libmaxminddb \ - libsodium>=1.0.12:security/libsodium \ - mbedtls2>=2.7.0:security/mbedtls2 -STATIC_LIB_DEPENDS_OFF= libboost_context.so:devel/boost-libs \ - libboost_filesystem.so:devel/boost-libs \ - libboost_program_options.so:devel/boost-libs \ - libboost_system.so:devel/boost-libs \ - libmaxminddb.so:net/libmaxminddb \ - libmbedcrypto.so:security/mbedtls2 \ - libmbedtls.so:security/mbedtls2 \ - libmbedx509.so:security/mbedtls2 \ - libsodium.so:security/libsodium -STATIC_USE_OFF= LDCONFIG=yes - -DEVEL_DESC= Install development files -DEVEL_CMAKE_BOOL= INSTALL_DEVEL - -TLS_FINGERPRINT_DESC= Simulate TLS fingerprint of Google Chrome -TLS_FINGERPRINT_CMAKE_BOOL= TLS_FINGERPRINT - -TRANSPARENT_DESC= Enable transparent ingress feature -TRANSPARENT_CMAKE_BOOL= TRANSPARENT_PF - -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MTLS_FINGERPRINT} -.if ${PORT_OPTIONS:MSTATIC} -BUILD_DEPENDS+= brotli>=1.0.0:archivers/brotli \ - boringssl>=0.0.0.0.2022.12.22.01:security/boringssl -DEPRECATED= Depends on expired security/mbedtls2 -EXPIRATION_DATE=2025-03-31 -.else -LIB_DEPENDS+= libbrotlicommon.so:archivers/brotli \ - libbrotlidec.so:security/boringssl \ - libbrotlienc.so:security/boringssl \ - libssl.so:security/boringssl \ - libcrypto.so:security/boringssl -.endif -.else -.if ${PORT_OPTIONS:MSTATIC} -USES+= ssl:build -.else -USES+= ssl -.endif -.endif - -.include <bsd.port.pre.mk> - -.if ${OPSYS} == FreeBSD -CFLAGS+= -Wno-error=unqualified-std-cast-call -.endif - -post-install: - ${MKDIR} ${STAGEDIR}${ETCDIR} - ${INSTALL_DATA} ${WRKSRC}/test/geo.mmdb ${STAGEDIR}${ETCDIR}/geo.mmdb - ${INSTALL_DATA} ${WRKSRC}/server/pichi.json.default ${STAGEDIR}${ETCDIR}/pichi.json.sample - -post-install-DEVEL-on: - ${MKDIR} ${STAGEDIR}${PREFIX}/include - ${INSTALL_DATA} ${WRKSRC}/include/pichi.h ${STAGEDIR}${PREFIX}/include/pichi.h - -.include <bsd.port.post.mk> diff --git a/net/pichi/distinfo b/net/pichi/distinfo deleted file mode 100644 index d933d61e48e7..000000000000 --- a/net/pichi/distinfo +++ /dev/null @@ -1,3 +0,0 @@ -TIMESTAMP = 1704144011 -SHA256 (pichi-router-pichi-1.5.1_GH0.tar.gz) = 99268097bf1f66e0b42020c168c8575ef02fab9767346dd5d956a1a9f012c645 -SIZE (pichi-router-pichi-1.5.1_GH0.tar.gz) = 2126161 diff --git a/net/pichi/files/pichi.in b/net/pichi/files/pichi.in deleted file mode 100644 index 31b4959da63a..000000000000 --- a/net/pichi/files/pichi.in +++ /dev/null @@ -1,85 +0,0 @@ -#!/bin/sh - -# PROVIDE: pichi -# REQUIRE: DAEMON -# KEYWORD: shutdown - -get_pid() -{ - ps -o "pid=" -p "$(cat ${pid_file} 2>/dev/null)" 2>/dev/null -} - -pichi_start() -{ - pid="$(get_pid)" - if [ -n "${pid}" ]; then - echo "${name} is running with pid ${pid}" - exit 1 - fi - if [ -z "${pichi_port}" ]; then - echo "pichi_port is not set" - exit 1 - fi - "${command}" -u nobody --group daemon -d -g "${pichi_mmdb}" -p "${pichi_port}" -l "${pichi_bind}" --json "${pichi_conf}" - if ! get_pid >/dev/null 2>&1; then - echo "Failed to start ${name}" - exit 1 - fi -} - -# Main -. /etc/rc.subr - -load_rc_config "${name}" - -name="pichi" -rcvar="${name}_enable" -prefix="%%PREFIX%%" -command="${prefix}/bin/${name}" -start_cmd="${name}_start" -stop_cmd="${name}_stop" -restart_cmd="${name}_restart" -status_cmd="${name}_status" -extra_commands="reload" -reload_cmd="${name}_reload" -pid_file="${prefix}/var/run/${name}.pid" - -: ${pichi_enable:="NO"} -: ${pichi_bind:="::1"} -: ${pichi_port:="21127"} -: ${pichi_conf:="${prefix}/etc/${name}/pichi.json"} -: ${pichi_mmdb:="${prefix}/etc/${name}/geo.mmdb"} - -pichi_stop() -{ - pid=$(get_pid) - if [ -n "${pid}" ]; then - kill ${pid} - fi -} - -pichi_restart() -{ - pichi_stop - pichi_start -} - -pichi_reload() -{ - pid=$(get_pid) - if [ -n "${pid}" ]; then - kill -HUP ${pid} - fi -} - -pichi_status() -{ - pid=$(get_pid) - if [ -n "${pid}" ]; then - echo "${name} is running with PID ${pid}" - else - echo "${name} is not running" - fi -} - -run_rc_command "$1" diff --git a/net/pichi/pkg-descr b/net/pichi/pkg-descr deleted file mode 100644 index 297d0bbe56a4..000000000000 --- a/net/pichi/pkg-descr +++ /dev/null @@ -1,4 +0,0 @@ -Pichi is an application layer proxy, which can be fully controlled via -RESTful APIs. It supports HTTP/SOCKS5/Shadowsocks. - -The core feature of pichi is the dynamic, flexible route controlling. diff --git a/net/pichi/pkg-plist b/net/pichi/pkg-plist deleted file mode 100644 index cb403c53ba8f..000000000000 --- a/net/pichi/pkg-plist +++ /dev/null @@ -1,62 +0,0 @@ -bin/pichi -%%ETCDIR%%/geo.mmdb -@sample %%ETCDIR%%/pichi.json.sample -%%NO_STATIC%%lib/libpichi.so.%%DISTVERSION%% -%%NO_STATIC%%lib/libpichi.so -%%STATIC%%%%DEVEL%%lib/libpichi.a -%%DEVEL%%include/boost/asio/spawn2.hpp -%%DEVEL%%include/pichi/api/balancer.hpp -%%DEVEL%%include/pichi/api/egress_manager.hpp -%%DEVEL%%include/pichi/api/ingress_holder.hpp -%%DEVEL%%include/pichi/api/ingress_manager.hpp -%%DEVEL%%include/pichi/api/rest.hpp -%%DEVEL%%include/pichi/api/router.hpp -%%DEVEL%%include/pichi/api/server.hpp -%%DEVEL%%include/pichi/api/session.hpp -%%DEVEL%%include/pichi/common/adapter.hpp -%%DEVEL%%include/pichi/common/asserts.hpp -%%DEVEL%%include/pichi/common/buffer.hpp -%%DEVEL%%include/pichi/common/config.hpp -%%DEVEL%%include/pichi/common/constants.hpp -%%DEVEL%%include/pichi/common/endpoint.hpp -%%DEVEL%%include/pichi/common/enumerations.hpp -%%DEVEL%%include/pichi/common/error.hpp -%%DEVEL%%include/pichi/common/literals.hpp -%%DEVEL%%include/pichi/common/uri.hpp -%%DEVEL%%include/pichi/crypto/aead.hpp -%%DEVEL%%include/pichi/crypto/base64.hpp -%%DEVEL%%include/pichi/crypto/brotli.hpp -%%DEVEL%%include/pichi/crypto/fingerprint.hpp -%%DEVEL%%include/pichi/crypto/hash.hpp -%%DEVEL%%include/pichi/crypto/key.hpp -%%DEVEL%%include/pichi/crypto/method.hpp -%%DEVEL%%include/pichi/crypto/stream.hpp -%%DEVEL%%include/pichi/net/adapter.hpp -%%DEVEL%%include/pichi/net/direct.hpp -%%DEVEL%%include/pichi/net/helper.hpp -%%DEVEL%%include/pichi/net/http.hpp -%%DEVEL%%include/pichi/net/reject.hpp -%%DEVEL%%include/pichi/net/socks5.hpp -%%DEVEL%%include/pichi/net/spawn.hpp -%%DEVEL%%include/pichi/net/ssaead.hpp -%%DEVEL%%include/pichi/net/ssstream.hpp -%%DEVEL%%include/pichi/net/transparent.hpp -%%DEVEL%%include/pichi/net/trojan.hpp -%%DEVEL%%include/pichi/net/tunnel.hpp -%%DEVEL%%include/pichi/stream/test.hpp -%%DEVEL%%include/pichi/stream/tls.hpp -%%DEVEL%%include/pichi/stream/traits.hpp -%%DEVEL%%include/pichi/stream/websocket.hpp -%%DEVEL%%include/pichi/vo/credential.hpp -%%DEVEL%%include/pichi/vo/egress.hpp -%%DEVEL%%include/pichi/vo/error.hpp -%%DEVEL%%include/pichi/vo/ingress.hpp -%%DEVEL%%include/pichi/vo/iterator.hpp -%%DEVEL%%include/pichi/vo/keys.hpp -%%DEVEL%%include/pichi/vo/messages.hpp -%%DEVEL%%include/pichi/vo/options.hpp -%%DEVEL%%include/pichi/vo/parse.hpp -%%DEVEL%%include/pichi/vo/route.hpp -%%DEVEL%%include/pichi/vo/rule.hpp -%%DEVEL%%include/pichi/vo/to_json.hpp -%%DEVEL%%include/pichi.h |