dot

packages and services management
Log | Files | Refs | README

commit fa2e37f55640089be00bf2420813548a7fb0851c
parent e4876923d4598abd26c7eac18c73f89a20bf5021
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Tue, 15 Aug 2017 13:02:53 +0200

cleanups: added enchive, scron, fixed ii and mbsync...

Diffstat:
Dlibopenssl/build | 2--
Dlibopenssl/tar | 1-
Dlibutf/tar | 1-
Amonitor/cron | 0
Mpkg/bin/pkg-configure | 9+++++----
Mpkg/bin/pkg-service | 2+-
Aratox/git | 1+
Ascron/git | 1+
Ascron/run | 1+
Ascron/tar | 1+
10 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/libopenssl/build b/libopenssl/build @@ -1,2 +0,0 @@ -./config --prefix="$PREFIX" -make install diff --git a/libopenssl/tar b/libopenssl/tar @@ -1 +0,0 @@ -http://www.openssl.org/source/openssl-1.1.0f.tar.gz diff --git a/libutf/tar b/libutf/tar @@ -1 +0,0 @@ -http://github.com/cls/libutf/archive/master.tar.gz diff --git a/monitor/cron b/monitor/cron diff --git a/pkg/bin/pkg-configure b/pkg/bin/pkg-configure @@ -3,7 +3,7 @@ ETC="${ETC:-$ETC}" PKG="${PKG:-$PKG}" -# dotfiles +# --- dotfiles ----------------------------------------------------------------- find "$PKG/${1:-}" -path "$ROOT/pkg/*/.*" | while IFS='' read -r path do @@ -14,12 +14,13 @@ done find -L "$ROOT" -type l -exec rm {} + 2> /dev/null -# crontab +# --- crontab ------------------------------------------------------------------ -[ -f "$PKG/$1/cron" ] && cp "$ROOT/pkg/$1/cron" > "$ETC/cron.d/$1" +[ -f "$PKG/$1/cron" ] && cat "$ROOT/pkg/$1/cron" >> "$ETC/crontab" +sort -u "$ETC/crontab -# configure +# --- configure ---------------------------------------------------------------- if [ ! -f "$PKG/$1/configure" ] then printf 'no configuration needed for %s\n' "$1" diff --git a/pkg/bin/pkg-service b/pkg/bin/pkg-service @@ -30,7 +30,7 @@ do do grep -qF "$arg" "$RUN/pid/$srv/$pid" || continue 2 done - if cmp "$RUN/pid/$srv/$pid" "/proc/$pid/cmdline" 2> /dev/null + if cmp "$RUN/pid/$srv/$pid" "/proc/$pid/cmdline" &> /dev/null then acted=1 cmdline="$(tr '\0' ' ' < "$RUN/pid/$srv/$pid")" diff --git a/ratox/git b/ratox/git @@ -0,0 +1 @@ +git://git.2f30.org/ratox.git diff --git a/scron/git b/scron/git @@ -0,0 +1 @@ +git://git.2f30.org/scron.git diff --git a/scron/run b/scron/run @@ -0,0 +1 @@ +crond -n -f "$ETC/crontab" & PID=$! diff --git a/scron/tar b/scron/tar @@ -0,0 +1 @@ +http://dl.2f30.org/releases/scron-0.4.tar.gz