wok diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os-prober/receipt	Wed Mar 24 16:16:25 2021 +0100
     1.3 @@ -0,0 +1,44 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="os-prober"
     1.7 +VERSION="1.78"
     1.8 +CATEGORY="base-system"
     1.9 +SHORT_DESC="Utility to detect other OSes on a set of drives."
    1.10 +MAINTAINER="maintainer@slitaz.org"
    1.11 +LICENSE="GPL3"
    1.12 +WEB_SITE="https://joeyh.name/code/os-prober/"
    1.13 +
    1.14 +TARBALL="$PACKAGE-$VERSION.tar.xz"
    1.15 +WGET_URL="http://ftp.debian.org/debian/pool/main/o/$PACKAGE/${PACKAGE}_$VERSION.tar.xz"
    1.16 +
    1.17 +
    1.18 +# Rules to configure and make the package.
    1.19 +compile_rules()
    1.20 +{
    1.21 +	make $MAKEFLAGS newns
    1.22 +}
    1.23 +
    1.24 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.25 +genpkg_rules()
    1.26 +{
    1.27 +	mkdir -p $fs/usr/bin
    1.28 +	mkdir -p $fs/usr/lib/os-prober
    1.29 +	mkdir -p $fs/usr/share/os-prober
    1.30 +	mkdir -p $fs/var/lib/os-prober
    1.31 +
    1.32 +	cp -a $src/linux-boot-prober		$fs/usr/bin
    1.33 +	cp -a $src/os-prober			$fs/usr/bin
    1.34 +	cp -a $src/newns			$fs/usr/lib/os-prober
    1.35 +	for dir in os-probes os-probes/mounted os-probes/init linux-boot-probes linux-boot-probes/mounted
    1.36 +	  do
    1.37 +		install -dm755 $fs/usr/lib/$dir
    1.38 +		cp -a $src/$dir/common/*	$fs/usr/lib/$dir
    1.39 +		if [ -d $src/$dir/x86 ]
    1.40 +		  then
    1.41 +			cp -r $src/$dir/x86/*	$fs/usr/lib/$dir
    1.42 +		fi
    1.43 +	  done
    1.44 +	cp -a $src/os-probes/mounted/powerpc/20macosx	\
    1.45 +		$fs/usr/lib/os-probes/mounted/20macosx
    1.46 +	cp -a $src/common.sh			$fs/usr/share/os-prober
    1.47 +}