dot

packages and services management
Log | Files | Refs | README

commit 2d0d74d5901777d5fe474d3dd4ec56e3f09d0382
parent 2479d6cb62b585661541b6e06d36f3bca64a5da6
Author: Josuah Demangeon <mail@josuah.net>
Date:   Thu,  5 Apr 2018 23:04:16 +0200

adding qmail and fixing u9fs

Diffstat:
Abin/start-acme | 5+++++
Mbin/xdg-abduco | 12++++++------
Mbin/xdg-open | 2+-
Mgit/config | 2+-
Apack/qmail/tar | 1+
Mrun/authsrv9/run | 3++-
Mrun/crond/run | 2+-
Mrun/git/run | 3++-
Drun/inetd/run | 12------------
Mrun/runit/run | 8++------
Drun/u9fs-ssh/9pfs | 9---------
Arun/u9fs-ssh/mount-9p | 9+++++++++
Mrun/u9fs-ssh/run | 6++----
Rrun/u9fs/9pfs -> run/u9fs/mount-9p | 0
Mrun/u9fs/run | 9++-------
15 files changed, 34 insertions(+), 49 deletions(-)

diff --git a/bin/start-acme b/bin/start-acme @@ -0,0 +1,5 @@ +#!/bin/sh -e + +exec acme \ + -f "$PLAN9/font/pelm/unicode.8.font" \ + -F "$PLAN9/font/pelm/unicode.8.font" "$@" diff --git a/bin/xdg-abduco b/bin/xdg-abduco @@ -16,15 +16,15 @@ grep -e "^$(abduco | sed -rn 's/.* ([0-9]+)$/\1/p') " "$dir/names" | sort -k2 -uo "$dir/names" # get the real path name -[ ! -h "$2" ] || name="$(readlink -f "$name")" -[ ! -e "$2" ] || name="$(cd "$(dirname "$name")"; pwd)/$(basename "$name")" -[ ! -d "$2" ] || name="$name" "$(cd "$name"; pwd)" +[ ! -h "$2" ] || name="$(readlink -f "$2")" +[ ! -e "$2" ] || name="$(cd "$(dirname "$2")"; pwd)/$(basename "$2")" +[ ! -d "$2" ] || name="$(cd "$2"; pwd)" case "$#" in (0) cut -f 2 "$dir/names" ;; -(*) +(2) printf '\033]0;%s\a' "$2" 1>&2 hash="$(printf %s "$2" | cksum | cut -d ' ' -f 1)" @@ -32,10 +32,10 @@ case "$#" in if [ "$ABDUCO" ] then - ABDUCO="$2" abduco -n "$hash" "$@" + ABDUCO="$2" abduco -n "$hash" "$1" "$2" printf '"%s" open in the background\n' "$2" else - ABDUCO="$2" exec abduco -A "$hash" "$@" + ABDUCO="$2" exec abduco -A "$hash" "$@" "$2" fi ;; esac diff --git a/bin/xdg-open b/bin/xdg-open @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/sh -e # open the resource given as argument according to its content diff --git a/git/config b/git/config @@ -10,7 +10,7 @@ $(git diff | grep ^- | wc -l) [core] - editor = B + editor = edit [push] default = simple diff --git a/pack/qmail/tar b/pack/qmail/tar @@ -0,0 +1 @@ +https://cr.yp.to/software/ezmlm-0.53.tar.gz diff --git a/run/authsrv9/run b/run/authsrv9/run @@ -21,4 +21,5 @@ authsrv="$(command -v authsrv9)" [ -h "$authsrv" ] && authsrv="$(readlink -f "$authsrv")" install -m750 -o root "$authsrv" bin/authsrv9 -exec tcpserver 0.0.0.0 "$port" chpst -/ "$(dirname "$0")" authsrv9 +exec tcpserver 0.0.0.0 "$port" chpst -/ "$(dirname "$0")" \ + authsrv9 diff --git a/run/crond/run b/run/crond/run @@ -1,4 +1,4 @@ #!/bin/sh -e exec 2>&1 -exec crond -n -f "$HOME/.config/crontab" +exec crond -n -f crontab diff --git a/run/git/run b/run/git/run @@ -4,4 +4,5 @@ path="$HOME/var/git" port="9418" exec 2>&1 -exec tcpserver 0.0.0.0 "$port" git daemon --inetd --export-all --base-path="$path" +exec tcpserver 0.0.0.0 "$port" \ + git daemon --inetd --export-all --base-path="$path" diff --git a/run/inetd/run b/run/inetd/run @@ -1,12 +0,0 @@ -#!/bin/sh -e - -exec 2>&1 - -case "$(readlink "$(command -v inetd)")" in -(*busybox*) - exec inetd -fe "$HOME/.config/inetd.conf" - ;; -(*) - exec inetd -d "$HOME/.config/inetd.conf" - ;; -esac diff --git a/run/runit/run b/run/runit/run @@ -13,9 +13,5 @@ sv start authsrv9 chmod 600 key -exec tcpserver 0.0.0.0 "$port" u9fs \ - -u "$(whoami)" \ - -l /dev/stderr \ - -a none \ - -A key \ - "$path" +exec tcpserver 0.0.0.0 "$port" \ + u9fs -u "$(whoami)" -l /dev/stderr -a none -A key "$path" diff --git a/run/u9fs-ssh/9pfs b/run/u9fs-ssh/9pfs @@ -1,9 +0,0 @@ -#!/bin/sh -e - -# mount a 9p filesystem from a local UNIX socket - -IFS='' read -r sock <sock -IFS='' read -r path <path-dst - -mkdir -p "$path" -9pfs -U "$sock" "$path" & diff --git a/run/u9fs-ssh/mount-9p b/run/u9fs-ssh/mount-9p @@ -0,0 +1,9 @@ +#!/bin/sh -e + +# mount a 9p filesystem from a local UNIX socket + +IFS='' read -r sock <sock +IFS='' read -r path <path-dst + +mkdir -p "$path" +9pfs -U "$sock" "$path" diff --git a/run/u9fs-ssh/run b/run/u9fs-ssh/run @@ -9,7 +9,5 @@ IFS='' read -r host <host IFS='' read -r user <user IFS='' read -r path <path-src -exec unixserver -v "$sock" ssh "$user@$host" '. ./.profile;' u9fs \ - -a none \ - -u "$user" \ - "'$path'" +exec unixserver -v "$sock" ssh "$user@$host" '. ./.profile;' \ + u9fs -a none -u "$user" "'$path'" diff --git a/run/u9fs/9pfs b/run/u9fs/mount-9p diff --git a/run/u9fs/run b/run/u9fs/run @@ -2,15 +2,10 @@ # forward u9fs from a remote host to a local socket through ssh -mountp="$HOME/var/9p" - exec 2>&1 IFS='' read -r user <user IFS='' read -r path <path -exec tcpserver 0.0.0.0 564 u9fs \ - -a none \ - -A key \ - -u "$user" \ - "'$path'" +exec tcpserver 0.0.0.0 564 \ + u9fs -a none -u "$user" -A key "'$path'"