# $Id$ PNAME="os-prober" PVER="1.77" PBUILD="r1" PCAT="sys-apps" DESCRIPTION="Probes disks on the system for installed operating systems." HOMEPAGE="http://kitenet.net/~joey/code/os-prober/" DEPEND=">= sys-apps/coreutils-8.20 >= sys-apps/util-linux-2.22 >= sys-fs/udev-195" SRCFILE="${PNAME}_${PVER}.tar.xz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild mtools msetfeature "!check" # no check target in Makefile SRC_URI=( http://ftp.de.debian.org/debian/pool/main/${PNAME:0:1}/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2SEPERATOR="_" UP2DATE="updatecmd http://ftp.de.debian.org/debian/pool/main/${PNAME:0:1}/${PNAME} | highesttarball xz" src_compile() { cd ${SRCDIR} mmake || die } src_install() { cd ${SRCDIR} # no install target in Makefile minstallexec os-prober || die minstallexec linux-boot-prober || die minstalldir /usr/lib/os-prober || die minstallexec newns /usr/lib/os-prober || die minstalldir /usr/share/os-prober || die minstallfile common.sh /usr/share/os-prober || die local myarch case ${ARCH} in i*86|x86_64) myarch="x86" ;; *) myarch="${ARCH}" ;; esac local i for i in os-probes os-probes/mounted os-probes/init linux-boot-probes linux-boot-probes/mounted do minstalldir /usr/lib/${i} || die mcopy -a ${i}/common/\* /usr/lib/${i} || die if [[ -d ${i}/${myarch} ]] then mcopy -a ${i}/${myarch}/\* /usr/lib/${i} || die fi done # install osx probe too minstallexec os-probes/mounted/powerpc/20macosx /usr/lib/os-probes/mounted || die # needed runtime dir mkeepdir /var/lib/os-prober || die minstalldocs README TODO debian/changelog debian/copyright || die }