wok annotate os-prober/receipt @ rev 24026
created recipe for os-prober
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 24 16:16:25 2021 +0100 (2021-03-24) |
parents | |
children | 5d63651829f6 |
rev | line source |
---|---|
Hans-G?nter@24026 | 1 # SliTaz package receipt. |
Hans-G?nter@24026 | 2 |
Hans-G?nter@24026 | 3 PACKAGE="os-prober" |
Hans-G?nter@24026 | 4 VERSION="1.78" |
Hans-G?nter@24026 | 5 CATEGORY="base-system" |
Hans-G?nter@24026 | 6 SHORT_DESC="Utility to detect other OSes on a set of drives." |
Hans-G?nter@24026 | 7 MAINTAINER="maintainer@slitaz.org" |
Hans-G?nter@24026 | 8 LICENSE="GPL3" |
Hans-G?nter@24026 | 9 WEB_SITE="https://joeyh.name/code/os-prober/" |
Hans-G?nter@24026 | 10 |
Hans-G?nter@24026 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
Hans-G?nter@24026 | 12 WGET_URL="http://ftp.debian.org/debian/pool/main/o/$PACKAGE/${PACKAGE}_$VERSION.tar.xz" |
Hans-G?nter@24026 | 13 |
Hans-G?nter@24026 | 14 |
Hans-G?nter@24026 | 15 # Rules to configure and make the package. |
Hans-G?nter@24026 | 16 compile_rules() |
Hans-G?nter@24026 | 17 { |
Hans-G?nter@24026 | 18 make $MAKEFLAGS newns |
Hans-G?nter@24026 | 19 } |
Hans-G?nter@24026 | 20 |
Hans-G?nter@24026 | 21 # Rules to gen a SliTaz package suitable for Tazpkg. |
Hans-G?nter@24026 | 22 genpkg_rules() |
Hans-G?nter@24026 | 23 { |
Hans-G?nter@24026 | 24 mkdir -p $fs/usr/bin |
Hans-G?nter@24026 | 25 mkdir -p $fs/usr/lib/os-prober |
Hans-G?nter@24026 | 26 mkdir -p $fs/usr/share/os-prober |
Hans-G?nter@24026 | 27 mkdir -p $fs/var/lib/os-prober |
Hans-G?nter@24026 | 28 |
Hans-G?nter@24026 | 29 cp -a $src/linux-boot-prober $fs/usr/bin |
Hans-G?nter@24026 | 30 cp -a $src/os-prober $fs/usr/bin |
Hans-G?nter@24026 | 31 cp -a $src/newns $fs/usr/lib/os-prober |
Hans-G?nter@24026 | 32 for dir in os-probes os-probes/mounted os-probes/init linux-boot-probes linux-boot-probes/mounted |
Hans-G?nter@24026 | 33 do |
Hans-G?nter@24026 | 34 install -dm755 $fs/usr/lib/$dir |
Hans-G?nter@24026 | 35 cp -a $src/$dir/common/* $fs/usr/lib/$dir |
Hans-G?nter@24026 | 36 if [ -d $src/$dir/x86 ] |
Hans-G?nter@24026 | 37 then |
Hans-G?nter@24026 | 38 cp -r $src/$dir/x86/* $fs/usr/lib/$dir |
Hans-G?nter@24026 | 39 fi |
Hans-G?nter@24026 | 40 done |
Hans-G?nter@24026 | 41 cp -a $src/os-probes/mounted/powerpc/20macosx \ |
Hans-G?nter@24026 | 42 $fs/usr/lib/os-probes/mounted/20macosx |
Hans-G?nter@24026 | 43 cp -a $src/common.sh $fs/usr/share/os-prober |
Hans-G?nter@24026 | 44 } |