summaryrefslogtreecommitdiff
path: root/share/hackvr
diff options
context:
space:
mode:
authorepoch <epoch@thebackupbox.net>2020-04-07 06:51:48 -0500
committerepoch <epoch@thebackupbox.net>2020-04-07 06:51:48 -0500
commit1cca9c35f1837ba0eb324593cdb8d5778fa9b7e3 (patch)
tree395be28b4ef60a0ab129dd5293c367f6dff6f876 /share/hackvr
parent35b84411ef9e69ab01bf0de789cce296d302110e (diff)
downloadhackvr-1cca9c35f1837ba0eb324593cdb8d5778fa9b7e3.tar.gz
hackvr-1cca9c35f1837ba0eb324593cdb8d5778fa9b7e3.zip
moved hackvr_coproc into main bin dir. added example uristart.conf file for hackvr URIs. fixed calvr makefile to not do hackvr_coproc
Diffstat (limited to 'share/hackvr')
-rw-r--r--share/hackvr/examples/calendar/Makefile3
-rwxr-xr-xshare/hackvr/examples/calendar/hackvr_coproc2
-rw-r--r--share/hackvr/examples/uristart.conf2
3 files changed, 3 insertions, 4 deletions
diff --git a/share/hackvr/examples/calendar/Makefile b/share/hackvr/examples/calendar/Makefile
index 2027b18..1646279 100644
--- a/share/hackvr/examples/calendar/Makefile
+++ b/share/hackvr/examples/calendar/Makefile
@@ -1,8 +1,7 @@
PREFIX:=/usr/local
-all: calvr hackvr_coproc
+all: calvr
@echo using PREFIX: $(PREFIX)
install:
install -t $(PREFIX)/bin calvr
- install -t $(PREFIX)/bin hackvr_coproc
diff --git a/share/hackvr/examples/calendar/hackvr_coproc b/share/hackvr/examples/calendar/hackvr_coproc
deleted file mode 100755
index 8d2e127..0000000
--- a/share/hackvr/examples/calendar/hackvr_coproc
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-exec socat exec:hackvr "exec:$*"
diff --git a/share/hackvr/examples/uristart.conf b/share/hackvr/examples/uristart.conf
new file mode 100644
index 0000000..d48e8d1
--- /dev/null
+++ b/share/hackvr/examples/uristart.conf
@@ -0,0 +1,2 @@
+hackvr: if [ "%u" ];then USER="%u";fi;ncat '%d' '%P' -c "echo $USER action %p;hackvr_uri"
+hackvr+ssh: if [ '%u' ];then u='%u@';fi ; if [ "%P" ];then P='-p %P';fi; hackvr_coproc ssh "$u"'%d' $P "/var/hackvr/hackvr-subsystem" '%p'