# HG changeset patch
# User Hans-G?nter Theisgen
# Date 1616598985 -3600
# Node ID 23f582bc5eb009712f4c2b579aa8f2813809fc37
# Parent  2c87b294a31861f453faa3b0b3995905344bf962
created recipe for os-prober

diff -r 2c87b294a318 -r 23f582bc5eb0 os-prober/description.txt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/os-prober/description.txt	Wed Mar 24 16:16:25 2021 +0100
@@ -0,0 +1,3 @@
+os-prober is a spinoff of debian-installer.
+One of the installer's features is that it can probe disks on the system for other operating systems,
+and add them to the boot loader, so that installing Debian doesn't make your other installed OS hard to boot.
diff -r 2c87b294a318 -r 23f582bc5eb0 os-prober/receipt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/os-prober/receipt	Wed Mar 24 16:16:25 2021 +0100
@@ -0,0 +1,44 @@
+# SliTaz package receipt.
+
+PACKAGE="os-prober"
+VERSION="1.78"
+CATEGORY="base-system"
+SHORT_DESC="Utility to detect other OSes on a set of drives."
+MAINTAINER="maintainer@slitaz.org"
+LICENSE="GPL3"
+WEB_SITE="https://joeyh.name/code/os-prober/"
+
+TARBALL="$PACKAGE-$VERSION.tar.xz"
+WGET_URL="http://ftp.debian.org/debian/pool/main/o/$PACKAGE/${PACKAGE}_$VERSION.tar.xz"
+
+
+# Rules to configure and make the package.
+compile_rules()
+{
+	make $MAKEFLAGS newns
+}
+
+# Rules to gen a SliTaz package suitable for Tazpkg.
+genpkg_rules()
+{
+	mkdir -p $fs/usr/bin
+	mkdir -p $fs/usr/lib/os-prober
+	mkdir -p $fs/usr/share/os-prober
+	mkdir -p $fs/var/lib/os-prober
+
+	cp -a $src/linux-boot-prober		$fs/usr/bin
+	cp -a $src/os-prober			$fs/usr/bin
+	cp -a $src/newns			$fs/usr/lib/os-prober
+	for dir in os-probes os-probes/mounted os-probes/init linux-boot-probes linux-boot-probes/mounted
+	  do
+		install -dm755 $fs/usr/lib/$dir
+		cp -a $src/$dir/common/*	$fs/usr/lib/$dir
+		if [ -d $src/$dir/x86 ]
+		  then
+			cp -r $src/$dir/x86/*	$fs/usr/lib/$dir
+		fi
+	  done
+	cp -a $src/os-probes/mounted/powerpc/20macosx	\
+		$fs/usr/lib/os-probes/mounted/20macosx
+	cp -a $src/common.sh			$fs/usr/share/os-prober
+}