wok view os-prober/receipt @ rev 25539

Up perl-test-compile (3.1.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Mar 09 12:11:13 2023 +0000 (20 months ago)
parents 20e25baceb78
children
line source
1 # SliTaz package receipt.
3 PACKAGE="os-prober"
4 VERSION="1.81"
5 CATEGORY="base-system"
6 SHORT_DESC="Utility to detect other OSes on a set of drives."
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://joeyh.name/code/os-prober/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="http://ftp.debian.org/debian/pool/main/o/$PACKAGE/${PACKAGE}_$VERSION.tar.xz"
14 DEPENDS="coreutils"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*} 2>/dev/null | \
20 sed "/$PACKAGE/!d;s|.*${PACKAGE}_||;s|_.*||" | tail -n 1
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 make $MAKEFLAGS newns
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/bin
33 mkdir -p $fs/usr/lib/os-prober
34 mkdir -p $fs/usr/share/os-prober
35 mkdir -p $fs/var/lib/os-prober
37 cp -a $src/linux-boot-prober $fs/usr/bin
38 cp -a $src/os-prober $fs/usr/bin
39 cp -a $src/newns $fs/usr/lib/os-prober
40 for dir in os-probes os-probes/mounted os-probes/init linux-boot-probes linux-boot-probes/mounted
41 do
42 install -dm755 $fs/usr/lib/$dir
43 cp -a $src/$dir/common/* $fs/usr/lib/$dir
44 if [ -d $src/$dir/x86 ]
45 then
46 cp -r $src/$dir/x86/* $fs/usr/lib/$dir
47 fi
48 done
49 cp -a $src/os-probes/mounted/powerpc/20macosx \
50 $fs/usr/lib/os-probes/mounted/20macosx
51 cp -a $src/common.sh $fs/usr/share/os-prober
52 }