2010-02-18 06:09:51 +00:00
|
|
|
# Template file for 'os-prober'
|
|
|
|
pkgname=os-prober
|
2013-01-25 12:29:52 +00:00
|
|
|
version=1.57
|
2012-07-04 08:19:48 +00:00
|
|
|
revision=1
|
2010-02-18 06:09:51 +00:00
|
|
|
short_desc="Utility to detect other OSes on a set of drives"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-07-02 08:52:05 +00:00
|
|
|
homepage="http://packages.debian.org/sid/os-prober"
|
|
|
|
license="GPL-2"
|
2012-07-04 08:19:48 +00:00
|
|
|
distfiles="${DEBIAN_SITE}/main/o/$pkgname/${pkgname}_$version.tar.gz"
|
2013-01-25 12:29:52 +00:00
|
|
|
checksum=d63c6cbb825a7e411aac5e4805edc6db2fbf77a59282b71c10bd29723b8d860c
|
2010-02-18 06:09:51 +00:00
|
|
|
|
2011-11-09 16:21:51 +00:00
|
|
|
do_build() {
|
2011-07-02 08:52:05 +00:00
|
|
|
make ${makejobs}
|
2010-02-18 06:09:51 +00:00
|
|
|
}
|
|
|
|
|
2011-11-09 16:21:51 +00:00
|
|
|
do_install() {
|
2010-02-18 06:09:51 +00:00
|
|
|
local ARCH
|
|
|
|
|
2011-11-08 10:56:17 +00:00
|
|
|
case "${XBPS_MACHINE}" in
|
2010-02-18 06:09:51 +00:00
|
|
|
i[56]86|x86_64) ARCH=x86;;
|
|
|
|
esac
|
|
|
|
|
2011-07-02 08:52:05 +00:00
|
|
|
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
|
2011-11-09 16:21:51 +00:00
|
|
|
vmkdir var/lib/os-prober
|
|
|
|
touch ${DESTDIR}/var/lib/os-prober/.owned
|
2011-07-02 08:52:05 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
2010-02-18 06:09:51 +00:00
|
|
|
}
|