os-prober: update to 1.47, use v{install,copy,mkdir}.

This commit is contained in:
Juan RP 2011-07-02 10:52:05 +02:00
parent 75d55258a5
commit e9df0bedde

View file

@ -1,12 +1,14 @@
# Template file for 'os-prober'
pkgname=os-prober
version=1.41
version=1.47
wrksrc=${pkgname}
distfiles="${DEBIAN_SITE}/main/o/$pkgname/${pkgname}_$version.tar.gz"
build_style=custom-install
short_desc="Utility to detect other OSes on a set of drives"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=0f31cbcf25710fc39c5b26bf325fb6c11cadbd9b08d36d8a2c9d7c75fd8ef777
homepage="http://packages.debian.org/sid/os-prober"
license="GPL-2"
checksum=702c8e0bc148c13708d9e52cf8255b5d7bcd6fbabac3d823f506f2fe2376654f
long_desc="
This package detects other OSes available on a system and outputs the
results in a generic machine-readable format."
@ -18,7 +20,7 @@ Add_dependency full gettext
do_build()
{
cd ${wrksrc} && make
make ${makejobs}
}
do_install()
@ -29,31 +31,24 @@ do_install()
i[56]86|x86_64) ARCH=x86;;
esac
install -d ${DESTDIR}/usr/bin ${DESTDIR}/usr/lib/os-prober
install -d ${DESTDIR}/usr/share/os-prober
install -d ${DESTDIR}/var/lib/os-prober
install -d ${DESTDIR}/usr/lib/os-probes/init
install -d ${DESTDIR}/usr/lib/os-probes/mounted
install -d ${DESTDIR}/usr/lib/linux-boot-probes/mounted
vmkdir usr/lib/os-probes/init
vmkdir usr/lib/os-probes/mounted
vmkdir usr/share/os-prober
vmkdir var/lib/os-prober
vmkdir usr/lib/linux-boot-probes/mounted
cd ${wrksrc}
install -m755 os-prober ${DESTDIR}/usr/bin
install -m755 linux-boot-prober ${DESTDIR}/usr/bin
install -m755 newns ${DESTDIR}/usr/lib/os-prober
install -m644 common.sh ${DESTDIR}/usr/share/os-prober
vinstall os-prober 755 usr/bin
vinstall linux-boot-prober 755 usr/bin
vinstall newns 755 usr/lib/os-prober
vinstall common.sh 644 usr/share/os-prober
cp -a linux-boot-probes/common/* \
${DESTDIR}/usr/lib/linux-boot-probes
cp -a linux-boot-probes/mounted/common/* \
${DESTDIR}/usr/lib/linux-boot-probes/mounted
cp -a linux-boot-probes/mounted/${ARCH}/* \
${DESTDIR}/usr/lib/linux-boot-probes/mounted
cp -a os-probes/common/* ${DESTDIR}/usr/lib/os-probes
cp -a os-probes/init/common/* \
${DESTDIR}/usr/lib/os-probes/init
cp -a os-probes/mounted/common/* \
${DESTDIR}/usr/lib/os-probes/mounted
cp -a os-probes/mounted/${ARCH}/* \
${DESTDIR}/usr/lib/os-probes/mounted
vcopy "linux-boot-probes/common/*" usr/lib/linux-boot-probes
vcopy "linux-boot-probes/mounted/common/*" \
usr/lib/linux-boot-probes/mounted
vcopy "linux-boot-probes/mounted/${ARCH}/*" \
usr/lib/linux-boot-probes/mounted
vcopy "os-probes/common/*" usr/lib/os-probes
vcopy "os-probes/init/common/*" usr/lib/os-probes/init
vcopy "os-probes/mounted/common/*" usr/lib/os-probes/mounted
vcopy "os-probes/mounted/${ARCH}/*" usr/lib/os-probes/mounted
}