wok-current annotate os-prober/receipt @ rev 25551
nfs-utils: make nfsd work on first start too
author | Hans-G?nter Theisgen |
---|---|
date | Thu Apr 06 10:52:37 2023 +0100 (22 months ago) |
parents | 20e25baceb78 |
children |
rev | line source |
---|---|
Hans-G?nter@24026 | 1 # SliTaz package receipt. |
Hans-G?nter@24026 | 2 |
Hans-G?nter@24026 | 3 PACKAGE="os-prober" |
pascal@25430 | 4 VERSION="1.81" |
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@25430 | 16 # What is the latest version available today? |
pascal@24175 | 17 current_version() |
pascal@24175 | 18 { |
pascal@24175 | 19 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24175 | 20 sed "/$PACKAGE/!d;s|.*${PACKAGE}_||;s|_.*||" | tail -n 1 |
pascal@24175 | 21 } |
pascal@24175 | 22 |
Hans-G?nter@24026 | 23 # Rules to configure and make the package. |
Hans-G?nter@24026 | 24 compile_rules() |
Hans-G?nter@24026 | 25 { |
Hans-G?nter@24026 | 26 make $MAKEFLAGS newns |
Hans-G?nter@24026 | 27 } |
Hans-G?nter@24026 | 28 |
Hans-G?nter@24026 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
Hans-G?nter@24026 | 30 genpkg_rules() |
Hans-G?nter@24026 | 31 { |
Hans-G?nter@24026 | 32 mkdir -p $fs/usr/bin |
Hans-G?nter@24026 | 33 mkdir -p $fs/usr/lib/os-prober |
Hans-G?nter@24026 | 34 mkdir -p $fs/usr/share/os-prober |
Hans-G?nter@24026 | 35 mkdir -p $fs/var/lib/os-prober |
Hans-G?nter@24026 | 36 |
Hans-G?nter@24026 | 37 cp -a $src/linux-boot-prober $fs/usr/bin |
Hans-G?nter@24026 | 38 cp -a $src/os-prober $fs/usr/bin |
Hans-G?nter@24026 | 39 cp -a $src/newns $fs/usr/lib/os-prober |
Hans-G?nter@24026 | 40 for dir in os-probes os-probes/mounted os-probes/init linux-boot-probes linux-boot-probes/mounted |
Hans-G?nter@24026 | 41 do |
Hans-G?nter@24169 | 42 install -dm755 $fs/usr/lib/$dir |
Hans-G?nter@24026 | 43 cp -a $src/$dir/common/* $fs/usr/lib/$dir |
Hans-G?nter@24026 | 44 if [ -d $src/$dir/x86 ] |
Hans-G?nter@24026 | 45 then |
Hans-G?nter@24026 | 46 cp -r $src/$dir/x86/* $fs/usr/lib/$dir |
Hans-G?nter@24026 | 47 fi |
Hans-G?nter@24026 | 48 done |
Hans-G?nter@24026 | 49 cp -a $src/os-probes/mounted/powerpc/20macosx \ |
Hans-G?nter@24169 | 50 $fs/usr/lib/os-probes/mounted/20macosx |
Hans-G?nter@24026 | 51 cp -a $src/common.sh $fs/usr/share/os-prober |
Hans-G?nter@24026 | 52 } |