dot

packages and services management
Log | Files | Refs | README

commit fe4351512d845835b547ebfefced16121b946e80
parent 83451fbb16890d9601b066c4e0b6f0e66d818a3b
Author: josuah <mail@josuah.net>
Date:   Wed, 14 Dec 2016 13:09:12 +0000

Updated build and recipes

Diffstat:
M.config/dvtm/dvtm-status | 20+++++++++-----------
M.local/bin/build | 45++++++++++++++++++++++++---------------------
M.local/share/build/iomenu | 2+-
D.local/share/build/libcurses | 3---
A.local/share/build/liblibressl | 3+++
M.profile | 1+
M.xinitrc | 4+++-
Minstall | 7+++----
8 files changed, 44 insertions(+), 41 deletions(-)

diff --git a/.config/dvtm/dvtm-status b/.config/dvtm/dvtm-status @@ -1,17 +1,15 @@ -export STATUS_FIFO="/tmp/dvtm-status.$$" -export CMD_FIFO="/tmp/dvtm-cmd.$$" +export STATUS_FIFO="${TMPDIR:-/tmp}/dvtm-status" +export CMD_FIFO="${TMPDIR:-/tmp}/dvtm-cmd" -[ -p "$STATUS_FIFO" ] || mkfifo -m 600 "$STATUS_FIFO" || exit 1 -[ -p "$CMD_FIFO" ] || mkfifo -m 600 "$CMD_FIFO" || exit 1 - -while printf '%s\n' "$(status)" +[ -p "$CMD_FIFO" ] || mkfifo -m 600 "$CMD_FIFO" +[ -p "$STATUS_FIFO" ] || mkfifo -m 600 "$STATUS_FIFO" && while : do + printf '%s\n' "$(status)" sleep 5 -done > "$STATUS_FIFO" & -STATUS_PID=$! +done > "$STATUS_FIFO" & STATUS_PID="$!" -dvtm -s "$STATUS_FIFO" -c "$CMD_FIFO" "$@" 2> /dev/null +dvtm -s "$STATUS_FIFO" -c "$CMD_FIFO" $@ -kill $STATUS_PID -wait $STATUS_PID 2> /dev/null +kill "$STATUS_PID" +wait "$STATUS_PID" 2> /dev/null rm -f "$STATUS_FIFO" "$CMD_FIFO" diff --git a/.local/bin/build b/.local/bin/build @@ -10,27 +10,29 @@ usage() { local name description - { - printf '%s\n' " + printf '%s\n' " Usage: ${0##*/} COMMAND PACKAGE -COMMAND - d[ownload] Download PACKAGE's sources - i[nstall] Download then install PACKAGE - r[emove] Remove build PACKAGE and its sources - u[pdate] Delete, then download and install PACKAGE again - l[ink] Update links from ~${PROGRAMS#$HOME} to ~${PREFIX#$HOME} - -PACKAGE" - find "$PREFIX/share/build" -type f -o -type l | - while IFS='' read -r path - do - IFS='' read -r description < "$path" - printf '\t%-12s %s\n' \ - "${path#$PREFIX/share/build/}" \ - "${description#\#}" - done | sort - } | more +d[ownload] Download PACKAGE's sources +i[nstall] Download then install PACKAGE +r[emove] Remove build PACKAGE and its sources +u[pdate] Delete, then download and install PACKAGE again +l[ink] Update links from ~${PROGRAMS#$HOME} to ~${PREFIX#$HOME} +v[iew] View the list of available packages" + + exit 0 +} + + +view() +{ + find -L "$PREFIX/share/build" -type f | while IFS='' read -r path + do + IFS='' read -r description < "$path" + printf '\t%-12s %s\n' \ + "${path#$PREFIX/share/build/}" \ + "${description#\#}" + done | sort | more exit 0 } @@ -142,8 +144,6 @@ main() { mkdir -p "$PROGRAMS" - [ "$#" -le 1 ] && usage - case "$1" in d | download ) download "$2" "$tar" @@ -166,6 +166,9 @@ main() l | link ) index '' ;; + v | view ) + view + ;; * | '' ) usage ;; diff --git a/.local/share/build/iomenu b/.local/share/build/iomenu @@ -1,3 +1,3 @@ # Input/Output interactive menu and completion engine. -tar=http://repo.or.cz/iomenu.git/snapshot/d2db5717c4451611fe1db594ffd8e260e46fa474.tar.gz +tar=http://repo.or.cz/iomenu.git/snapshot/c4ff9734cd2ed5794dd2e2f133e59db18e34f1d9.tar.gz diff --git a/.local/share/build/libcurses b/.local/share/build/libcurses @@ -1,3 +0,0 @@ -# System V curses library - -tar=http://github.com/sabotage-linux/netbsd-curses/archive/v0.1.1.tar.gz diff --git a/.local/share/build/liblibressl b/.local/share/build/liblibressl @@ -0,0 +1,3 @@ +# TLS/crypto stack library forked from OpenSSL + +tar=http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.5.0.tar.gz diff --git a/.profile b/.profile @@ -16,6 +16,7 @@ #_______________________________________________________________________________ export ENV="$HOME/.profile" +export TERM='linux' # mail export NAME='Josuah Demangeon' diff --git a/.xinitrc b/.xinitrc @@ -5,7 +5,9 @@ setxkbmap -layout us -option compose:ralt -variant dvorak while xsetroot -name "$(status)" do sleep 5 -done & +done & + +pulseaudio & st -f monospace:pixelsize=14 & diff --git a/install b/install @@ -6,10 +6,9 @@ usage() printf %s " Usage: ${0##*/} COMMAND -COMMAND - l link the dotfiles to $HOME - g clone git repos listed in ~/.config/git/projects - m setup mail credentials +l link the dotfiles to $HOME +g clone git repos listed in ~/.config/git/projects +m setup mail credentials " exit 0