wok view 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
line source
1 # SliTaz package receipt.
3 PACKAGE="os-prober"
4 VERSION="1.78"
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"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 make $MAKEFLAGS newns
19 }
21 # Rules to gen a SliTaz package suitable for Tazpkg.
22 genpkg_rules()
23 {
24 mkdir -p $fs/usr/bin
25 mkdir -p $fs/usr/lib/os-prober
26 mkdir -p $fs/usr/share/os-prober
27 mkdir -p $fs/var/lib/os-prober
29 cp -a $src/linux-boot-prober $fs/usr/bin
30 cp -a $src/os-prober $fs/usr/bin
31 cp -a $src/newns $fs/usr/lib/os-prober
32 for dir in os-probes os-probes/mounted os-probes/init linux-boot-probes linux-boot-probes/mounted
33 do
34 install -dm755 $fs/usr/lib/$dir
35 cp -a $src/$dir/common/* $fs/usr/lib/$dir
36 if [ -d $src/$dir/x86 ]
37 then
38 cp -r $src/$dir/x86/* $fs/usr/lib/$dir
39 fi
40 done
41 cp -a $src/os-probes/mounted/powerpc/20macosx \
42 $fs/usr/lib/os-probes/mounted/20macosx
43 cp -a $src/common.sh $fs/usr/share/os-prober
44 }