config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit c569f901548c37ad3e98f7d84af366997c3238e2
parent f1941d9a882de6237da39328bc4879116e18de74
Author: Jacob R. Edwards <n/a>
Date:   Fri, 11 Feb 2022 17:47:51 -0800

Add checksums to forks

This centeralizes trust into those with write-access to this
repository. Even if you trust my conduct though, I assure you, you
should not trust my competence.

Note that I haven't even vetted the programs which produce these
checksums yet.

Diffstat:
Mlocal/src/src/fork/common.mk | 25+++++++++++++++++--------
Alocal/src/src/fork/dmenu/checksum | 1+
Alocal/src/src/fork/dwm/checksum | 1+
Mlocal/src/src/fork/git.mk | 11+++++++++--
Alocal/src/src/fork/herbe/checksum | 1+
Mlocal/src/src/fork/slstatus/Makefile | 2+-
Alocal/src/src/fork/slstatus/checksum | 1+
7 files changed, 31 insertions(+), 11 deletions(-)

diff --git a/local/src/src/fork/common.mk b/local/src/src/fork/common.mk @@ -8,9 +8,18 @@ distclean: clean: rm -rf patched ${dir} -ready: ${dir} +fetch: ${arc} -patch: ready +verify: fetch + make checksum | cmp /dev/stdin checksum + +${dir}: verify + case ${arc} in \ + (*.gz) gunzip;; \ + (*.bz2) bunzip2;; \ + esac < ${arc} | pax -r + +patch: ${dir} if test -d patches -a '!' -e patched; then \ for patch in patches/*; do \ patch -d ${dir} -p 1 < $$patch; \ @@ -18,10 +27,10 @@ patch: ready > patched; \ fi -${dir}: ${arc} - case ${arc} in \ - (*.gz) gunzip;; \ - (*.git) git -C ${arc} archive --format=tar --prefix=${dir}/ ${ref};; \ - esac < ${arc} | pax -r +checksum: ${arc} + @pax -w ${arc} | sha256 + +updatechecksum: + make checksum > checksum -.PHONY: all distclean clean ready patch +.PHONY: all distclean clean ready patch verify checksum updatechecksum diff --git a/local/src/src/fork/dmenu/checksum b/local/src/src/fork/dmenu/checksum @@ -0,0 +1 @@ +d46049b14d8653174c9326bb2812ab8aef67f5be273bb12d52129ff343fdc73d diff --git a/local/src/src/fork/dwm/checksum b/local/src/src/fork/dwm/checksum @@ -0,0 +1 @@ +c77ddf16ba6095f16aa80b6db23c49fa5058f030202cfd4d0b1a2ecc3997caa7 diff --git a/local/src/src/fork/git.mk b/local/src/src/fork/git.mk @@ -1,4 +1,11 @@ # git distribution target -${arc}: - git clone --quiet --mirror ${url} ${arc} +${arc}.git: + git clone --quiet --mirror ${url} ${arc}.git + +${arc}: ${arc}.git + case ${arc} in \ + (*.bz2) a=bzip2;; \ + (*.gz|*.tgz) a=gzip;; \ + esac ; \ + git -C ${arc}.git archive --format=tar --prefix=${dir}/ ${ref} | $$a > ${arc} diff --git a/local/src/src/fork/herbe/checksum b/local/src/src/fork/herbe/checksum @@ -0,0 +1 @@ +46f43d2ba99c07ba81bae78bee59913e500461094832dcd3189592532f9df83a diff --git a/local/src/src/fork/slstatus/Makefile b/local/src/src/fork/slstatus/Makefile @@ -1,5 +1,5 @@ dir = slstatus -arc = ${dir}.git +arc = ${dir}.tar.bz2 url = https://git.suckless.org/slstatus ref = 84a2f117a32f0796045941260cdc4b69852b41e0 diff --git a/local/src/src/fork/slstatus/checksum b/local/src/src/fork/slstatus/checksum @@ -0,0 +1 @@ +3fe3dd878b42c37c49f9d9eda0a7c656f16a7103802d409fac726023a3002158