51 lines
1.4 KiB
Text
51 lines
1.4 KiB
Text
# Template file for 'os-prober'
|
|
pkgname=os-prober
|
|
version=1.57
|
|
revision=1
|
|
short_desc="Utility to detect other OSes on a set of drives"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
homepage="http://packages.debian.org/sid/os-prober"
|
|
license="GPL-2"
|
|
distfiles="${DEBIAN_SITE}/main/o/$pkgname/${pkgname}_$version.tar.gz"
|
|
checksum=d63c6cbb825a7e411aac5e4805edc6db2fbf77a59282b71c10bd29723b8d860c
|
|
|
|
do_build() {
|
|
make ${makejobs}
|
|
}
|
|
|
|
do_install() {
|
|
local ARCH
|
|
|
|
case "${XBPS_MACHINE}" in
|
|
i[56]86|x86_64) ARCH=x86;;
|
|
esac
|
|
|
|
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
|
|
vmkdir var/lib/os-prober
|
|
touch ${DESTDIR}/var/lib/os-prober/.owned
|
|
|
|
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
|
|
}
|
|
|
|
os-prober_package() {
|
|
pkg_install() {
|
|
vmove usr
|
|
}
|
|
}
|