summaryrefslogtreecommitdiff
path: root/os-prober/Pkgfile
blob: a113494547e5e8c729412f6bae724ce093cf2e5e (plain)
    1 # Description: Tool to detect other OSes.
    2 # URL: http://joey.kitenet.net/code/os-prober
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on:
    5 
    6 name=os-prober
    7 version=1.78
    8 release=1
    9 source=(http://ftp.de.debian.org/debian/pool/main/o/$name/${name}_$version.tar.xz
   10 Fix-CRUX-grub-menu-entry-detection.patch)
   11 
   12 build() {
   13   cd $name-$version
   14   patch -Np1 -i $SRC/Fix-CRUX-grub-menu-entry-detection.patch
   15   # Adjust lib dir to allow detection of 64-bit distros
   16   sed -i -e "s:/lib/ld\*\.so\*:/lib*/ld*.so*:g" os-probes/mounted/common/90linux-distro
   17   rm -f Makefile
   18   make newns
   19 
   20   install -Dm755 linux-boot-prober $PKG/usr/bin/linux-boot-prober
   21   install -Dm755 $name $PKG/usr/bin/$name
   22   install -Dm755 newns $PKG/usr/lib/$name/newns
   23   install -Dm755 common.sh $PKG/usr/share/$name/common.sh
   24   for i in os-probes os-probes/mounted os-probes/init linux-boot-probes linux-boot-probes/mounted; do
   25     install -dm755 $PKG/usr/lib/$i
   26     install -m755 -t $PKG/usr/lib/$i $i/common/*
   27     [[ -d $i/x86 ]] && cp -r $i/x86/* $PKG/usr/lib/$i
   28   done
   29   install -Dm755 os-probes/mounted/powerpc/20macosx $PKG/usr/lib/os-probes/mounted/20macosx
   30   install -dm755 $PKG/var/lib/$name
   31 }

Generated by cgit