os-prober: use make_dirs; misc tweaks.
This commit is contained in:
parent
6b76f45997
commit
de0cd9aff7
1 changed files with 10 additions and 26 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'os-prober'
|
# Template file for 'os-prober'
|
||||||
pkgname=os-prober
|
pkgname=os-prober
|
||||||
version=1.58
|
version=1.58
|
||||||
revision=2
|
revision=4
|
||||||
short_desc="Utility to detect other OSes on a set of drives"
|
short_desc="Utility to detect other OSes on a set of drives"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
homepage="http://packages.debian.org/sid/os-prober"
|
homepage="http://packages.debian.org/sid/os-prober"
|
||||||
|
@ -14,37 +14,21 @@ do_build() {
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
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/mount
|
|
||||||
touch ${DESTDIR}/var/lib/os-prober/mount/.owned
|
|
||||||
|
|
||||||
vinstall os-prober 755 usr/bin
|
|
||||||
vinstall linux-boot-prober 755 usr/bin
|
vinstall linux-boot-prober 755 usr/bin
|
||||||
|
vinstall os-prober 755 usr/bin
|
||||||
vinstall newns 755 usr/lib/os-prober
|
vinstall newns 755 usr/lib/os-prober
|
||||||
vinstall common.sh 644 usr/share/os-prober
|
vinstall common.sh 755 usr/share/os-prober
|
||||||
|
|
||||||
vcopy "linux-boot-probes/common/*" usr/lib/linux-boot-probes
|
for dir in os-probes os-probes/mounted os-probes/init linux-boot-probes linux-boot-probes/mounted; do
|
||||||
vcopy "linux-boot-probes/mounted/common/*" \
|
vmkdir usr/lib/${dir}
|
||||||
usr/lib/linux-boot-probes/mounted
|
install -m755 -t ${DESTDIR}/usr/lib/${dir} ${dir}/common/*
|
||||||
vcopy "linux-boot-probes/mounted/${ARCH}/*" \
|
[ -d ${dir}/x86 ] && cp -r ${dir}/x86/* ${DESTDIR}/usr/lib/${dir}
|
||||||
usr/lib/linux-boot-probes/mounted
|
done
|
||||||
vcopy "os-probes/common/*" usr/lib/os-probes
|
vinstall os-probes/mounted/powerpc/20macosx 755 usr/lib/os-probes/mounted/20macosx
|
||||||
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() {
|
os-prober_package() {
|
||||||
|
make_dirs="/var/lib/os-prober root root 0755"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove all
|
vmove all
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue