wok annotate os-prober/receipt @ rev 25044

*/stuff/bootloader.S: fix VCPI case
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jun 02 15:48:36 2022 +0000 (2022-06-02)
parents 6323f548cca6
children 20e25baceb78
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@24169 4 VERSION="1.79"
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@24027 14 DEPENDS="coreutils"
Hans-G?nter@24026 15
pascal@24175 16 current_version()
pascal@24175 17 {
pascal@24175 18 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24175 19 sed "/$PACKAGE/!d;s|.*${PACKAGE}_||;s|_.*||" | tail -n 1
pascal@24175 20 }
pascal@24175 21
Hans-G?nter@24026 22 # Rules to configure and make the package.
Hans-G?nter@24026 23 compile_rules()
Hans-G?nter@24026 24 {
Hans-G?nter@24026 25 make $MAKEFLAGS newns
Hans-G?nter@24026 26 }
Hans-G?nter@24026 27
Hans-G?nter@24026 28 # Rules to gen a SliTaz package suitable for Tazpkg.
Hans-G?nter@24026 29 genpkg_rules()
Hans-G?nter@24026 30 {
Hans-G?nter@24026 31 mkdir -p $fs/usr/bin
Hans-G?nter@24026 32 mkdir -p $fs/usr/lib/os-prober
Hans-G?nter@24026 33 mkdir -p $fs/usr/share/os-prober
Hans-G?nter@24026 34 mkdir -p $fs/var/lib/os-prober
Hans-G?nter@24026 35
Hans-G?nter@24026 36 cp -a $src/linux-boot-prober $fs/usr/bin
Hans-G?nter@24026 37 cp -a $src/os-prober $fs/usr/bin
Hans-G?nter@24026 38 cp -a $src/newns $fs/usr/lib/os-prober
Hans-G?nter@24026 39 for dir in os-probes os-probes/mounted os-probes/init linux-boot-probes linux-boot-probes/mounted
Hans-G?nter@24026 40 do
Hans-G?nter@24169 41 install -dm755 $fs/usr/lib/$dir
Hans-G?nter@24026 42 cp -a $src/$dir/common/* $fs/usr/lib/$dir
Hans-G?nter@24026 43 if [ -d $src/$dir/x86 ]
Hans-G?nter@24026 44 then
Hans-G?nter@24026 45 cp -r $src/$dir/x86/* $fs/usr/lib/$dir
Hans-G?nter@24026 46 fi
Hans-G?nter@24026 47 done
Hans-G?nter@24026 48 cp -a $src/os-probes/mounted/powerpc/20macosx \
Hans-G?nter@24169 49 $fs/usr/lib/os-probes/mounted/20macosx
Hans-G?nter@24026 50 cp -a $src/common.sh $fs/usr/share/os-prober
Hans-G?nter@24026 51 }