2010-02-18 06:09:51 +00:00
|
|
|
# Template file for 'os-prober'
|
|
|
|
pkgname=os-prober
|
2010-12-18 20:43:28 +00:00
|
|
|
version=1.41
|
2010-02-18 06:09:51 +00:00
|
|
|
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>"
|
2010-12-18 20:43:28 +00:00
|
|
|
checksum=0f31cbcf25710fc39c5b26bf325fb6c11cadbd9b08d36d8a2c9d7c75fd8ef777
|
2010-02-18 06:09:51 +00:00
|
|
|
long_desc="
|
|
|
|
This package detects other OSes available on a system and outputs the
|
|
|
|
results in a generic machine-readable format."
|
|
|
|
|
|
|
|
keep_empty_dirs=yes
|
|
|
|
|
|
|
|
Add_dependency run glibc
|
2010-04-26 19:57:55 +00:00
|
|
|
Add_dependency full gettext
|
2010-02-18 06:09:51 +00:00
|
|
|
|
|
|
|
do_build()
|
|
|
|
{
|
2010-12-18 20:43:28 +00:00
|
|
|
cd ${wrksrc} && make
|
2010-02-18 06:09:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install()
|
|
|
|
{
|
|
|
|
local ARCH
|
|
|
|
|
|
|
|
case "${xbps_machine}" in
|
|
|
|
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
|
|
|
|
|
2010-12-18 20:43:28 +00:00
|
|
|
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
|
2010-02-18 06:09:51 +00:00
|
|
|
|
|
|
|
cp -a linux-boot-probes/common/* \
|
2010-12-18 20:43:28 +00:00
|
|
|
${DESTDIR}/usr/lib/linux-boot-probes
|
2010-02-18 06:09:51 +00:00
|
|
|
cp -a linux-boot-probes/mounted/common/* \
|
2010-12-18 20:43:28 +00:00
|
|
|
${DESTDIR}/usr/lib/linux-boot-probes/mounted
|
2010-02-18 06:09:51 +00:00
|
|
|
cp -a linux-boot-probes/mounted/${ARCH}/* \
|
2010-12-18 20:43:28 +00:00
|
|
|
${DESTDIR}/usr/lib/linux-boot-probes/mounted
|
2010-02-18 06:09:51 +00:00
|
|
|
|
2010-12-18 20:43:28 +00:00
|
|
|
cp -a os-probes/common/* ${DESTDIR}/usr/lib/os-probes
|
2010-02-18 06:09:51 +00:00
|
|
|
cp -a os-probes/init/common/* \
|
2010-12-18 20:43:28 +00:00
|
|
|
${DESTDIR}/usr/lib/os-probes/init
|
2010-02-18 06:09:51 +00:00
|
|
|
cp -a os-probes/mounted/common/* \
|
2010-12-18 20:43:28 +00:00
|
|
|
${DESTDIR}/usr/lib/os-probes/mounted
|
2010-02-18 06:09:51 +00:00
|
|
|
cp -a os-probes/mounted/${ARCH}/* \
|
2010-12-18 20:43:28 +00:00
|
|
|
${DESTDIR}/usr/lib/os-probes/mounted
|
2010-02-18 06:09:51 +00:00
|
|
|
}
|