wok-current view os-prober/receipt @ rev 25337

suricata: set variable LIBS
author Hans-G?nter Theisgen
date Sat Jul 23 20:18:41 2022 +0100 (2022-07-23)
parents 0b7b8e414545
children 4be73f2da5c0
line source
1 # SliTaz package receipt.
3 PACKAGE="os-prober"
4 VERSION="1.80"
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 current_version()
17 {
18 wget -O - ${WGET_URL%/*} 2>/dev/null | \
19 sed "/$PACKAGE/!d;s|.*${PACKAGE}_||;s|_.*||" | tail -n 1
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 make $MAKEFLAGS newns
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/bin
32 mkdir -p $fs/usr/lib/os-prober
33 mkdir -p $fs/usr/share/os-prober
34 mkdir -p $fs/var/lib/os-prober
36 cp -a $src/linux-boot-prober $fs/usr/bin
37 cp -a $src/os-prober $fs/usr/bin
38 cp -a $src/newns $fs/usr/lib/os-prober
39 for dir in os-probes os-probes/mounted os-probes/init linux-boot-probes linux-boot-probes/mounted
40 do
41 install -dm755 $fs/usr/lib/$dir
42 cp -a $src/$dir/common/* $fs/usr/lib/$dir
43 if [ -d $src/$dir/x86 ]
44 then
45 cp -r $src/$dir/x86/* $fs/usr/lib/$dir
46 fi
47 done
48 cp -a $src/os-probes/mounted/powerpc/20macosx \
49 $fs/usr/lib/os-probes/mounted/20macosx
50 cp -a $src/common.sh $fs/usr/share/os-prober
51 }