#Maintainer: Dimitris Tzemos pkgname=os-prober pkgver=1.56 pkgrel=1dj source=("http://ftp.de.debian.org/debian/pool/main/o/os-prober/os-prober_$pkgver.tar.gz" "os-prober-jfs-oops.patch") sourcetemplate="http://people.salixos.org/djemos/salix/$pkgname/" docs=("readme" "todo") url='http://packages.debian.org/unstable/utils/os-prober' slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname (utility to detect other OSes on a set of drives)" "This package detects other OSes available on a system and outputs the" "results in a generic machine-readable format." ) build() { cd $startdir/src/$pkgname-$pkgver patch -p1 -i $startdir/src/os-prober-jfs-oops.patch make install -vd $startdir/pkg/usr/doc/$pkgname-$pkgver/ cp -r debian $startdir/pkg/usr/doc/$pkgname-$pkgver/ install -vd $startdir/pkg/usr/sbin/ install -m755 -v os-prober linux-boot-prober $startdir/pkg/usr/sbin/ install -vd $startdir/pkg/usr/lib/os-probes/{mounted,init} cp -r os-probes/common/* $startdir/pkg/usr/lib/os-probes/ cp -r os-probes/init/common/* $startdir/pkg/usr/lib/os-probes/init/ cp -r os-probes/mounted/{common,x86}/* $startdir/pkg/usr/lib/os-probes/mounted/ install -vd $startdir/pkg/usr/lib/linux-boot-probes/mounted/ cp -r linux-boot-probes/common/* $startdir/pkg/usr/lib/linux-boot-probes/ cp -r linux-boot-probes/mounted/{x86,common}/* $startdir/pkg/usr/lib/linux-boot-probes/mounted/ install -vD common.sh $startdir/pkg/usr/share/$pkgname/common.sh install -vD newns $startdir/pkg/usr/lib/os-prober/newns install -vd $startdir/pkg/var/lib/$pkgname/ }