diff options
author | bptato <nincsnevem662@gmail.com> | 2024-10-12 17:14:01 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-10-12 17:19:44 +0200 |
commit | c4a75720959a968004fec1996d6870d0874c953d (patch) | |
tree | 428407444b6aa0199060629047f5393f3b590218 /bonus | |
parent | 828716e78b5b1a9fea93c2839d89e189c1fcb252 (diff) | |
download | chawan-c4a75720959a968004fec1996d6870d0874c953d.tar.gz |
Add `nc' tool & adjust finger/spartan to use it
Simple netcat clone, useful for portable scripts. Especially because some netcats will close the connection as soon as I close stdin... this one only quits when either stdout or the socket refuses new data. Also, it uses our standard TCP connection routine, meaning it respects ALL_PROXY. (i.e. now spartan works with socks5 too)
Diffstat (limited to 'bonus')
-rw-r--r-- | bonus/Makefile | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/bonus/Makefile b/bonus/Makefile index 6365e7c0..cab38f89 100644 --- a/bonus/Makefile +++ b/bonus/Makefile @@ -9,6 +9,19 @@ bindir = $(DESTDIR)$(prefix)/bin none: @echo "Run make install-{file} to install a script." +.PHONY: install-git.cgi +install-git.cgi: git.cgi + mkdir -p $(CHA_CGI_DIR) + cp git.cgi $(CHA_CGI_DIR) + ./addurimethod git git.cgi +#TODO this will almost never work unless the user is root... + ln -s $(CHA_CGI_DIR)/git.cgi $(bindir)/gitcha + +.PHONY: install-filei.cgi +install-filei.cgi: filei.cgi + mkdir -p $(CHA_CGI_DIR) + cp filei.cgi $(CHA_CGI_DIR) + stbir2_url=https://raw.githubusercontent.com/nothings/stb/master/stb_image_resize2.h stbir2/stb_image_resize2.h: @@ -24,30 +37,19 @@ install-stbir2: stbir2/stbir2.nim stbir2/stb_image_resize2.h stbir2/stb_image_re mkdir -p $(CHA_CGI_DIR) nim c -d:release -d:lto -o:$(CHA_CGI_DIR)/resize stbir2/stbir2.nim -.PHONY: install-git.cgi -install-git.cgi: git.cgi - mkdir -p $(CHA_CGI_DIR) - cp git.cgi $(CHA_CGI_DIR) - ./addurimethod git git.cgi -#TODO this will almost never work unless the user is root... - ln -s $(CHA_CGI_DIR)/git.cgi $(bindir)/gitcha - -.PHONY: install-filei.cgi -install-filei.cgi: filei.cgi - mkdir -p $(CHA_CGI_DIR) - cp filei.cgi $(CHA_CGI_DIR) - .PHONY: install-libfetch.c install-libfetch-http.c: $(CHA_CGI_DIR)/libfetch-http $(CC) -Wall -O2 -g -std=c89 $< -lfetch -o $@ ./addurimethod http libfetch-http ./addurimethod https libfetch-http +.PHONY: install-magnet.cgi install-magnet.cgi: magnet.cgi mkdir -p $(CHA_CGI_DIR) cp magnet.cgi $(CHA_CGI_DIR) ./addurimethod magnet magnet.cgi +.PHONY: install-trans.cgi install-trans.cgi: trans.cgi mkdir -p $(CHA_CGI_DIR) cp trans.cgi $(CHA_CGI_DIR) |