diff --git a/japanese/proxy2ch/Makefile b/japanese/proxy2ch/Makefile index f680167802a2..4143041c0880 100644 --- a/japanese/proxy2ch/Makefile +++ b/japanese/proxy2ch/Makefile @@ -1,43 +1,42 @@ PORTNAME= proxy2ch -DISTVERSION= 20250614 -PORTREVISION= 1 +DISTVERSION= 20260306 CATEGORIES= japanese www -MASTER_SITES= https://codeberg.org/NanashiNoGombe/${PORTNAME}/archive/v${DISTVERSION}${EXTRACT_SUFX}?dummy=/ +MASTER_SITES= https://codeberg.org/NanashiNoGombe/${PORTNAME}/archive/v${DISTVERSION}-snapshot${EXTRACT_SUFX}?dummy=/ -MAINTAINER= mew14930xvi@inbox.lv -COMMENT= Proxy server for 5ch.net, bbspink.com and talk.jp +MAINTAINER= mce@FreeBSD.org +COMMENT= Proxy server for 5ch.io, bbspink.com and talk.jp WWW= https://codeberg.org/NanashiNoGombe/proxy2ch/ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libcurl.so:ftp/curl USES= gmake iconv:wchar_t localbase:ldflags ssl USE_RC_SUBR= ${PORTNAME} PLIST_FILES= ${DOCSDIR_REL}/README.md sbin/${PORTNAME} OPTIONS_DEFINE= LUA MITM MITM_DESC= Operates as a MITM proxy (experimental) LUA_USES= lua LUA_CFLAGS= -DUSE_LUA LUA_LDFLAGS= -llua-${LUA_VER} MITM_CFLAGS= -DUSE_MITM -DUSE_ECDSA_KEY MITM_LDFLAGS= -lssl post-extract: @${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC} post-patch-LUA-on: @cd ${WRKSRC} && ${REINPLACE_CMD} \ -e '/include/s,lua.hpp,${LUA_FLAVOR}/lua.hpp,' \ BBS2chProxyHttpHeaders.h BBS2chProxyPoster.cpp main.cpp do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} .include diff --git a/japanese/proxy2ch/distinfo b/japanese/proxy2ch/distinfo index 27b21a3e5e51..3e8d0e684bfe 100644 --- a/japanese/proxy2ch/distinfo +++ b/japanese/proxy2ch/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1769372599 -SHA256 (proxy2ch-20250614.tar.gz) = c28fc372cbbb0f3c6ed13f3d44e04baae5efb133587e2d78491fbdf5354e1a56 -SIZE (proxy2ch-20250614.tar.gz) = 105976 +TIMESTAMP = 1774624428 +SHA256 (proxy2ch-20260306.tar.gz) = 5b0a0b485c9ef5b496c16425d7caa4541b6b386b2ad64f696c251eefb2bebb71 +SIZE (proxy2ch-20260306.tar.gz) = 108328 diff --git a/japanese/proxy2ch/files/proxy2ch.in b/japanese/proxy2ch/files/proxy2ch.in index bb64f21bdce4..365cd727e1fd 100644 --- a/japanese/proxy2ch/files/proxy2ch.in +++ b/japanese/proxy2ch/files/proxy2ch.in @@ -1,20 +1,24 @@ #!/bin/sh # PROVIDE: proxy2ch # REQUIRE: LOGIN # KEYWORD: shutdown +# proxy2ch_args (string): Extra arguments passed to proxy2ch +# Default is "-c" + . /etc/rc.subr name=proxy2ch rcvar=${name}_enable -pidfile=/var/run/${name}.pid -command="/usr/sbin/daemon" -command_args="-frP ${pidfile} %%PREFIX%%/sbin/${name} -c -s ${proxy2ch_flags}" - load_rc_config ${name} : ${proxy2ch_enable:=NO} : ${proxy2ch_svcj_options:="net_basic"} +: ${proxy2ch_args:="-c"} + +pidfile=/var/run/${name}.pid +command="/usr/sbin/daemon" +command_args="-frP ${pidfile} %%PREFIX%%/sbin/${name} ${proxy2ch_args}" run_rc_command "$1" diff --git a/japanese/proxy2ch/pkg-descr b/japanese/proxy2ch/pkg-descr index a7573bb417e6..1f869d355fbe 100644 --- a/japanese/proxy2ch/pkg-descr +++ b/japanese/proxy2ch/pkg-descr @@ -1,3 +1,3 @@ -This is a proxy that retrieves data from 5ch.net, bbspink.com, talk.jp +This is a proxy that retrieves data from 5ch.io, bbspink.com, talk.jp and returns it to the client. If the destination is *.2ch.net, the URL -is converted internally to *.5ch.net before connecting. +is converted internally to *.5ch.io before connecting.