distro

small linux distro experiment
Log | Files | Refs

commit d6949f3c42fae42c58262d82e427dfccf269155b
parent 88275209e4998393685cf1035ef8428463bc343d
Author: z3bra <contactatz3bradotorg>
Date:   Mon, 22 Oct 2018 08:27:53 +0200

pkg: add a 'post-install' rule before creating tarballs

This rule is meant to be overwritten on a per-pack basis when a pack
need a specific stuff to be done before creating the tarball (adding
symlinks, deleting folders, whatever)

Diffstat:
pkg/build.mk | 7++++++-
pkg/dash/mkfile | 3+++
2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/pkg/build.mk b/pkg/build.mk @@ -7,9 +7,14 @@ tarball = $pkg@$ver.tbz archive = `{basename $url 2>/dev/null || echo $pkg-$ver.tbz} # create tarball with installed files in .rootfs/ -$tarball: .rootfs +$tarball: .rootfs post-install tar -C .rootfs -cvj . > $tarball +# default rule to run before creating the tarball +# this is meant to be overwritten on a per-pack base when needed +post-install:QV: .rootfs + /bin/true + # build and install software under .rootfs/ .rootfs: $pkg-$ver mkdir -p .rootfs diff --git a/pkg/dash/mkfile b/pkg/dash/mkfile @@ -3,3 +3,6 @@ ver = 0.5.9.1 url = https://crux.ninja/distfiles/dash-0.5.9.1.tar.gz <../build.mk + +post-install:V: .rootfs + ln -sf dash .rootfs/bin/sh