dot

packages and services management
Log | Files | Refs | README

commit 0afb065db72291ff2407bcac9fa90ec11be3ad0c
parent 0fd09c5b22b07a535693bfef6265d95fb9b248f6
Author: Josuah Demangeon <mail@josuah.net>
Date:   Mon, 19 Feb 2018 01:24:56 +0100

moving fixing paths around

Diffstat:
M.profile | 10+++++-----
Mbin/io | 2+-
Mbin/pack | 5+++--
Mbin/twt | 3++-
Mskel/crontab | 13++++++-------
Mskel/inetd.conf | 31++++++++++++++++++-------------
6 files changed, 35 insertions(+), 29 deletions(-)

diff --git a/.profile b/.profile @@ -24,16 +24,16 @@ export C_INCLUDE_PATH="$SYSROOT/include" export LIBRARY_PATH="$SYSROOT/lib:/usr/local/lib/inotify" export LD_LIBRARY_PATH="$SYSROOT/lib:/usr/local/lib/inotify" +export ABDUCO_CMD='dvtm-status' +export ABDUCO_SOCKET_DIR="$HOME/var/run" export BLIH='josuah.demangeon@epitech.eu' export CVSROOT='anoncvs@anoncvs.fr.openbsd.org:/cvs' -export PKG_PATH='https://ftp.fr.openbsd.org/pub/OpenBSD/' -export ABDUCO_SOCKET_DIR="$HOME/var/run" -export ABDUCO_CMD='dvtm-status' -export MBLAZE="$HOME/.config/mblaze" +export EXINIT='set ruler' export LESS='-R~X' export LESSHISTFILE='-' +export MBLAZE="$HOME/.config/mblaze" +export PKG_PATH='https://ftp.fr.openbsd.org/pub/OpenBSD/' export SSH_AUTH_SOCK="$HOME/var/run/ssh-agent" -export EXINIT='set ruler' export PS1='$([ "$?" -gt 0 ] && printf "\033[31;1mx\033[m\n\r")' export PS1="$PS1$(printf '\033]0;%s\a' '$PWD') diff --git a/bin/io b/bin/io @@ -75,7 +75,7 @@ EOF cut -c $((${#HOME} + 2))- | xargs -I {} printf '%s/%s\n' "$cache" {} | xargs -I {} cat "$cache" {} 2> /dev/null | - cat - "$HOME/.config/uri" | + cat - "$HOME/etc/uri" | iomenu -# | cut -f 2-)" ;; diff --git a/bin/pack b/bin/pack @@ -1,6 +1,7 @@ #!/bin/sh -e -export PKG="$HOME/.config/pack/$2" +export SYSROOT="${SYSROOT:-$HOME/.local}" +export PKG="$HOME/etc/pack/$2" export SRC="$SYSROOT/src/$2" export OPT="$SYSROOT/opt/$2" export CFLAGS="-I'$SYSROOT/include'" @@ -60,6 +61,6 @@ case "$1" in (*) echo 'usage: pack tar | git | get | build | add | del <package>' echo '' - COLUMNS=80 ls "$HOME/.config/pack" + COLUMNS=80 ls "$HOME/etc/pack" ;; esac diff --git a/bin/twt b/bin/twt @@ -143,7 +143,8 @@ case "$1" in sed 's/[[:space:]].*//' "$HOME/.config/twt" | grep -Fqx "$2" || err "not following $2" - sed "/^$(printf %s "$2" | sed 's/./[&]/g')[[:space:]]/ d" "$HOME/.config/twt" | + sed "/^$(printf %s "$2" | sed 's/./[&]/g')[[:space:]]/ d" \ + "$HOME/.config/twt" | sort -uo "$HOME/.config/twt" ;; (following) diff --git a/skel/crontab b/skel/crontab @@ -4,11 +4,10 @@ #*/15 * * * * update-agenda #*/15 * * * * update-sfeed -#10 6 * * * back rsync "${HOME}/back/1" -#20 6 * * * back rsync "${HOME}/back/2" -#30 6 * * * back rsync "${HOME}/back/3" -#40 6 * * * back rsync "${HOME}/back/4" -#50 6 * * * back rsync "${HOME}/back/5" - -#*/15 * * * * . "$HOME/.profile"; cd "${HOME}/srv" && make stat +#10 6 * * * back rsync "$HOME/back/1" +#20 6 * * * back rsync "$HOME/back/2" +#30 6 * * * back rsync "$HOME/back/3" +#40 6 * * * back rsync "$HOME/back/4" +#50 6 * * * back rsync "$HOME/back/5" +#*/15 * * * * cd "$HOME/srv" && make stat diff --git a/skel/inetd.conf b/skel/inetd.conf @@ -1,13 +1,18 @@ -#service type conn wait user path argv - -#9fs stream tcp nowait nobody /XXX/bin/u9fs u9fs -#http stream tcp nowait nobody /XXX/bin/gproxy gproxy nas.josuah.net -#http stream tcp nowait nobody /XXX/bin/ghttp ghttp josuah.net -#gopher stream tcp nowait nobody /XXX/bin/geomyidae geomyidae -b /XXX/srv -h josuah.net -#rsync stream tcp nowait nobody /XXX/bin/rsyncd rsyncd --daemon -#git stream tcp nowait nobody /XXX/bin/git git daemon --inetd --base-path=/XXX/git --export-all - -#/tmp/irc.cyberia.is stream unix nowait nobody /XXX/bin/openssl openssl s_client -quiet -connect irc.cyberia.is:6697 -#/tmp/unix.chat stream unix nowait nobody /XXX/bin/openssl openssl s_client -quiet -connect unix.chat:6697 -#/tmp/irc.freenode.net stream unix nowait nobody /XXX/bin/openssl openssl s_client -quiet -connect irc.freenode.net:6697 -#/tmp/irc.oftc.net stream unix nowait nobody /XXX/bin/openssl openssl s_client -quiet -connect irc.oftc.net:6697 +#service #type #conn #wait #user #path #argv + +#9fs stream tcp nowait nobody /XXX/bin/u9fs u9fs + +#http stream tcp nowait nobody /XXX/bin/gproxy gproxy nas.josuah.net +#http stream tcp nowait nobody /XXX/bin/ghttp ghttp josuah.net +#gopher dgram tcp nowait nobody /XXX/bin/geomyidae geomyidae -b /XXX/srv -h josuah.net + +#rsync stream tcp nowait nobody /XXX/bin/rsyncd rsyncd --daemon + +#git stream tcp nowait nobody /XXX/bin/git git daemon --inetd --base-path=/XXX/git --export-all + +#5747 stream tcp nowait nobody /XXX/stat.sh stat.sh recv /XXX/collectd + +#/tmp/irc.cyberia.is stream unix nowait nobody /XXX/bin/openssl openssl s_client -quiet -connect irc.cyberia.is:6697 +#/tmp/unix.chat stream unix nowait nobody /XXX/bin/openssl openssl s_client -quiet -connect unix.chat:6697 +#/tmp/irc.freenode.net stream unix nowait nobody /XXX/bin/openssl openssl s_client -quiet -connect irc.freenode.net:6697 +#/tmp/irc.oftc.net stream unix nowait nobody /XXX/bin/openssl openssl s_client -quiet -connect irc.oftc.net:6697