dot

packages and services management
Log | Files | Refs | README

commit c517f8926ee6d762447c2902e383c78cfa83ebd1
parent c3c101009fbc16e781d89fb6ccbef8e6ae2b8582
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Sun, 18 Jun 2017 17:09:49 +0200

added a README

Diffstat:
MBUILD | 4++--
AREADME | 23+++++++++++++++++++++++
MSERVICE | 2+-
3 files changed, 26 insertions(+), 3 deletions(-)

diff --git a/BUILD b/BUILD @@ -16,8 +16,8 @@ build() then sh "$ETC/$1/build" else - find "$ETC/$1" -name '*.diff' -exec patch -N -p 1 -i {} \; - find "$ETC/$1" -name 'config.*' -exec cp -f {} . \; + find "$ETC/${PWD##*/}" -name '*.diff' -exec patch -N -p 1 -i {} \; + find "$ETC/${PWD##*/}" -name 'config.*' -exec cp -f {} . \; [ -f ./configure ] && ./configure --prefix="$PREFIX" make && make PREFIX="$PREFIX" install clean fi diff --git a/README b/README @@ -0,0 +1,23 @@ +$ETC/BUILD # download, build, and install pkgs + +$ETC/<pkg>/url # url to a tarball of the pkg sources +$ETC/<pkg>/build # script that build the pkg into $PREFIX +$ETC/<pkg>/*.diff # patch to apply before building the program + + +$ETC/SETUP # handle pkgs configuration + +$ETC/<pkg>/.* # dotfiles to be symlinked into $HOME +$ETC/<pkg>/cron # lines to be included into the crontab +$ETC/<pkg>/inet # lines to be included into the inetd config file + + +$ETC/SERVICE # manage programs running + +$ETC/<pkg>/start # script that start a program +$ETC/<pkg>/stop # script that stop a program based off its pid + + +$ETC/BUILD -d <pkg> # download from $ETC/url to $SRC/<pkg> +$ETC/BUILD -i <pkg> # install from $SRC/<pkg> to $OPT/<pkg> +$ETC/BUILD -i <pkg> # symlink from $OPT/<pkg> to $ROOT/ diff --git a/SERVICE b/SERVICE @@ -25,7 +25,7 @@ start() service="$1" shift - exec nohup sh "$ETC/$service/start" "$@" > "$VAR/log/$service" & + sh "$ETC/$service/start" "$@" & }