diff --git a/japanese/Makefile b/japanese/Makefile index 212f5bf91555..8aa382f0dd79 100644 --- a/japanese/Makefile +++ b/japanese/Makefile @@ -1,303 +1,304 @@ COMMENT = Japanese support SUBDIR += ASCIIdates98-fpw SUBDIR += CGdic-fpw SUBDIR += FreeWnn-lib SUBDIR += FreeWnn-server SUBDIR += R-cran-zipangu SUBDIR += Wnn6-lib SUBDIR += Wnn7-lib SUBDIR += a2ps SUBDIR += ack SUBDIR += ajaxzip2-core SUBDIR += ajaxzip2-data SUBDIR += alias-fonts SUBDIR += another-htmllint SUBDIR += anthy-unicode SUBDIR += aobook SUBDIR += bible_names-fpw SUBDIR += boiled-mozc SUBDIR += bookview SUBDIR += bugzilla50 SUBDIR += canna-lib SUBDIR += canna-server SUBDIR += cannadic SUBDIR += cdrom2 SUBDIR += celrw SUBDIR += chasen-base SUBDIR += cmigemo SUBDIR += cmigemo-dict SUBDIR += cp5022x-el SUBDIR += cskk SUBDIR += csrd SUBDIR += ctags SUBDIR += dams SUBDIR += dbskkd-cdb SUBDIR += ddskk SUBDIR += devil-fpw SUBDIR += dvi2tty SUBDIR += e2ps SUBDIR += eb SUBDIR += ebd-fpw SUBDIR += eblook SUBDIR += ebnetd SUBDIR += ebview-gtk2 SUBDIR += edict SUBDIR += edict-fpw SUBDIR += edyvalue SUBDIR += eijiro-fpw SUBDIR += epwutil SUBDIR += fcitx-anthy SUBDIR += fcitx-mozc SUBDIR += fcitx-skk SUBDIR += fcitx5-anthy SUBDIR += fcitx5-cskk SUBDIR += fcitx5-skk SUBDIR += flower-fpw SUBDIR += foldoc-fpw SUBDIR += font-aozoramincho SUBDIR += font-ayu18 SUBDIR += font-ayu20 SUBDIR += font-bizin-gothic SUBDIR += font-bizud-gothic SUBDIR += font-bizud-mincho SUBDIR += font-cica SUBDIR += font-elisa10 SUBDIR += font-elisa8 SUBDIR += font-firge SUBDIR += font-firge-nerd SUBDIR += font-genjyuugothic SUBDIR += font-genshingothic SUBDIR += font-hackgen SUBDIR += font-hackgen-nf SUBDIR += font-ipa SUBDIR += font-ipa-uigothic SUBDIR += font-ipaex SUBDIR += font-ipamjm SUBDIR += font-jisx0213 SUBDIR += font-kaname12 SUBDIR += font-kanji18 SUBDIR += font-kanji26 SUBDIR += font-kappa20 SUBDIR += font-kochi SUBDIR += font-koruri SUBDIR += font-marumoji SUBDIR += font-mgenplus SUBDIR += font-migmix SUBDIR += font-migu SUBDIR += font-mikachan SUBDIR += font-mona SUBDIR += font-mona-ipa SUBDIR += font-mona-ttf SUBDIR += font-moralerspace SUBDIR += font-moralerspace-hw SUBDIR += font-moralerspace-hwjpdoc SUBDIR += font-moralerspace-jpdoc SUBDIR += font-motoya-al SUBDIR += font-mplus-bitmap SUBDIR += font-mplus-ipa SUBDIR += font-mplus-outline SUBDIR += font-myrica SUBDIR += font-myricam SUBDIR += font-naga10 SUBDIR += font-nasu SUBDIR += font-plemoljp SUBDIR += font-plemoljp-hs SUBDIR += font-plemoljp-nf SUBDIR += font-ricty SUBDIR += font-ricty-discord SUBDIR += font-rounded-mgenplus SUBDIR += font-sazanami SUBDIR += font-shinonome SUBDIR += font-std SUBDIR += font-takao SUBDIR += font-udev-gothic SUBDIR += font-udev-gothic-hs SUBDIR += font-udev-gothic-nf SUBDIR += font-ume SUBDIR += font-vlgothic SUBDIR += freepwing SUBDIR += fumeikai-fpw SUBDIR += gawk SUBDIR += gd SUBDIR += gedy SUBDIR += groff SUBDIR += gskk SUBDIR += gsuica SUBDIR += hns SUBDIR += ibus-anthy SUBDIR += ibus-mozc SUBDIR += ibus-skk SUBDIR += icanna SUBDIR += ipadic SUBDIR += jacode.pl SUBDIR += japana SUBDIR += japaneseAFM SUBDIR += jargon-fpw SUBDIR += jcode.pl SUBDIR += jishyo SUBDIR += jls SUBDIR += jvim3 SUBDIR += kakasi SUBDIR += kasumi-unicode SUBDIR += kbanner SUBDIR += kcc SUBDIR += kcode SUBDIR += kdrill SUBDIR += kinput2 SUBDIR += kiten SUBDIR += kon2-14dot SUBDIR += kon2-16dot SUBDIR += kterm SUBDIR += latex-jlisting SUBDIR += leafrogue SUBDIR += less SUBDIR += libreoffice SUBDIR += libskk SUBDIR += libslang SUBDIR += libtomoe-gtk SUBDIR += lipsf SUBDIR += lookup SUBDIR += lsd-fpw SUBDIR += lynx SUBDIR += lynx-current SUBDIR += man SUBDIR += man-doc SUBDIR += mecab SUBDIR += mecab-ipadic SUBDIR += mecab-ipadic-eucjp SUBDIR += mecab-ipadic-sjis SUBDIR += mecab-ipadic-utf8 SUBDIR += mecab-jawiki SUBDIR += mh SUBDIR += migemo SUBDIR += migemo.el SUBDIR += mime_pls SUBDIR += mozc-el SUBDIR += mozc-server SUBDIR += mozc-tool SUBDIR += multiskkserv SUBDIR += mypaedia-fpw-package SUBDIR += namazu2 SUBDIR += navi2ch SUBDIR += ne SUBDIR += nethack34 SUBDIR += newosaka SUBDIR += ng SUBDIR += ng-canna SUBDIR += ng-devel SUBDIR += ngraph-fonts SUBDIR += nkf SUBDIR += open_jtalk SUBDIR += p5-2chproxy SUBDIR += p5-Date-Japanese-Era SUBDIR += p5-Date-Japanese-Holiday SUBDIR += p5-DateTime-Calendar-Japanese-Era SUBDIR += p5-DateTime-Format-Japanese SUBDIR += p5-Encode-EUCJPASCII SUBDIR += p5-Encode-EUCJPMS SUBDIR += p5-Encode-ISO2022 SUBDIR += p5-Encode-JP-Emoji SUBDIR += p5-Encode-JP-Mobile SUBDIR += p5-HTML-MobileJp SUBDIR += p5-Jcode SUBDIR += p5-Lingua-JA-Kana SUBDIR += p5-Lingua-JA-Moji SUBDIR += p5-Lingua-JA-Numbers SUBDIR += p5-Lingua-JA-Regular-Unicode SUBDIR += p5-Lingua-JA-Romanize-Japanese SUBDIR += p5-Lingua-JA-Summarize-Extract SUBDIR += p5-MeCab SUBDIR += p5-Number-Phone-JP SUBDIR += p5-PDFJ SUBDIR += p5-Text-ChaSen SUBDIR += p5-Text-Kakasi SUBDIR += p5-Text-MeCab SUBDIR += p5-Unicode-Japanese SUBDIR += p5-WWW-2ch SUBDIR += p5-WWW-MobileCarrierJP SUBDIR += p5-nkf SUBDIR += pejv-fpw SUBDIR += plain2 SUBDIR += plan SUBDIR += prn-ps + SUBDIR += proxy2ch SUBDIR += py-SudachiPy SUBDIR += py-fugashi SUBDIR += py-ipadic SUBDIR += py-jaconv SUBDIR += py-unidic SUBDIR += qkc SUBDIR += qolibri SUBDIR += quit SUBDIR += radish-play SUBDIR += roget-fpw SUBDIR += rogue_s SUBDIR += ruby-romkan SUBDIR += ruby-uconv SUBDIR += rubygem-jpmobile-ipaddresses SUBDIR += rubygem-jpmobile-terminfo SUBDIR += rubygem-jpmobile4 SUBDIR += rubygem-mail-iso-2022-jp SUBDIR += rubygem-myrurema SUBDIR += ryaku-fpw SUBDIR += scim-anthy SUBDIR += scim-canna SUBDIR += scim-honoka SUBDIR += scim-honoka-plugin-romkan SUBDIR += scim-honoka-plugin-wnn SUBDIR += scim-skk SUBDIR += scim-tables SUBDIR += scim-tomoe SUBDIR += scim-uim SUBDIR += seaside SUBDIR += sj3-lib SUBDIR += sj3-server SUBDIR += skk SUBDIR += skk-jawiki SUBDIR += skk-jisyo SUBDIR += skk-jisyo-cdb SUBDIR += skk-tools SUBDIR += skkinput SUBDIR += skkinput3 SUBDIR += skkserv SUBDIR += slimeforest SUBDIR += slrn SUBDIR += sourcehansans-otf SUBDIR += sourcehanserif-otf SUBDIR += spoqahansans-ttf SUBDIR += srd-fpw-package SUBDIR += sudachi SUBDIR += suicavalue SUBDIR += tdiary SUBDIR += tegaki-zinnia-japanese SUBDIR += tex-ptex SUBDIR += tgif SUBDIR += tiarra SUBDIR += timidity++-slang SUBDIR += today SUBDIR += tomoe SUBDIR += uim-anthy-unicode SUBDIR += uim-mozc SUBDIR += uim-tomoe-gtk SUBDIR += vera-fpw SUBDIR += vftool SUBDIR += w3m SUBDIR += w3m-img SUBDIR += waeijiro-fpw SUBDIR += wdic-fpw SUBDIR += web1913-fpw SUBDIR += webalizer SUBDIR += wnn7egg SUBDIR += wordnet-fpw SUBDIR += wordpress SUBDIR += wwasw-fpw SUBDIR += xpdf SUBDIR += xshodou SUBDIR += xtr SUBDIR += xv SUBDIR += yc.el SUBDIR += zinnia SUBDIR += zinnia-tomoe SUBDIR += zipcodes .include diff --git a/japanese/proxy2ch/Makefile b/japanese/proxy2ch/Makefile new file mode 100644 index 000000000000..a70013a8de39 --- /dev/null +++ b/japanese/proxy2ch/Makefile @@ -0,0 +1,46 @@ +PORTNAME= proxy2ch +DISTVERSION= 20250614 +CATEGORIES= japanese www +MASTER_SITES= ${WWW}archive/ +DISTNAME= v${DISTVERSION} +DIST_SUBDIR= ${PORTNAME} + +MAINTAINER= mew14930xvi@inbox.lv +COMMENT= Proxy server for 5ch.net, 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} + +WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION} + +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 new file mode 100644 index 000000000000..71837db24f35 --- /dev/null +++ b/japanese/proxy2ch/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1768450185 +SHA256 (proxy2ch/v20250614.tar.gz) = c28fc372cbbb0f3c6ed13f3d44e04baae5efb133587e2d78491fbdf5354e1a56 +SIZE (proxy2ch/v20250614.tar.gz) = 105976 diff --git a/japanese/proxy2ch/files/patch-Makefile b/japanese/proxy2ch/files/patch-Makefile new file mode 100644 index 000000000000..72a5e3432b3e --- /dev/null +++ b/japanese/proxy2ch/files/patch-Makefile @@ -0,0 +1,31 @@ +--- Makefile.orig 2025-06-04 17:25:57 UTC ++++ Makefile +@@ -3,26 +3,8 @@ OBJS := $(OBJS:.c=.o) + OBJS = $(SOURCES:.cpp=.o) + OBJS := $(OBJS:.c=.o) + +-CFLAGS = -O2 +-LDFLAGS = -lcurl -lpthread +- +-UNAME := $(shell uname) +-HAVE_GNUTLS := $(shell pkg-config --libs gnutls >/dev/null 2>&1; echo $$?) +-NOT_GLIBC := $(shell $(CC) -E -dM stringEncodingConverter.c | grep __GNU_LIBRARY__; echo $$?) +- +-ifneq ($(UNAME), Darwin) +- ifeq ($(NOT_GLIBC), 1) +- LDFLAGS += -liconv +- endif +- ifeq ($(HAVE_GNUTLS), 0) +- CFLAGS += -DUSE_GNUTLS +- LDFLAGS += -lgnutls +- else +- LDFLAGS += -lcrypto +- endif +-else +- LDFLAGS += -framework CoreFoundation +-endif ++CFLAGS += -flto ++LDFLAGS += -lcurl -lpthread -liconv -lcrypto + + .PHONY: all + all : $(TARGET) diff --git a/japanese/proxy2ch/files/proxy2ch.in b/japanese/proxy2ch/files/proxy2ch.in new file mode 100644 index 000000000000..bb64f21bdce4 --- /dev/null +++ b/japanese/proxy2ch/files/proxy2ch.in @@ -0,0 +1,20 @@ +#!/bin/sh + +# PROVIDE: proxy2ch +# REQUIRE: LOGIN +# KEYWORD: shutdown + +. /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"} + +run_rc_command "$1" diff --git a/japanese/proxy2ch/pkg-descr b/japanese/proxy2ch/pkg-descr new file mode 100644 index 000000000000..a7573bb417e6 --- /dev/null +++ b/japanese/proxy2ch/pkg-descr @@ -0,0 +1,3 @@ +This is a proxy that retrieves data from 5ch.net, 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.