2017-10-27 20:46:27 +02:00
|
|
|
|
# Tanım: Bir sürücü grubundaki diğer işletim sistemlerini bulmak için yardımcı program.
|
2017-04-06 13:38:12 +02:00
|
|
|
|
# URL: https://packages.debian.org/source/sid/os-prober
|
2017-10-27 20:46:27 +02:00
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler:
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
isim=os-prober
|
|
|
|
|
surum=1.71
|
|
|
|
|
devir=1
|
|
|
|
|
kaynak=(http://ftp.de.debian.org/debian/pool/main/o/os-prober/os-prober_1.71.tar.xz)
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle() {
|
2017-10-28 14:10:23 +02:00
|
|
|
|
cd $isim-$surum
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
|
|
|
|
# Compile newns
|
|
|
|
|
make
|
|
|
|
|
|
|
|
|
|
# Create a hierharchy for os-prober package, and copy files into it.
|
2017-10-28 14:10:23 +02:00
|
|
|
|
mkdir -p $PKG/var/lib/$isim
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
|
|
|
|
mkdir -p $PKG/usr/bin
|
|
|
|
|
cp linux-boot-prober $PKG/usr/bin
|
|
|
|
|
cp os-prober $PKG/usr/bin
|
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
mkdir -p $PKG/usr/lib/$isim
|
|
|
|
|
cp newns $PKG/usr/lib/$isim
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
|
|
|
|
mkdir -p $PKG/usr/lib/os-probes
|
|
|
|
|
cp os-probes/common/* $PKG/usr/lib/os-probes
|
|
|
|
|
mkdir -p $PKG/usr/lib/os-probes/mounted
|
|
|
|
|
mkdir -p $PKG/usr/lib/os-probes/mounted/efi
|
|
|
|
|
cp os-probes/mounted/common/* $PKG/usr/lib/os-probes/mounted
|
|
|
|
|
cp os-probes/mounted/x86/efi/* $PKG/usr/lib/os-probes/mounted/efi
|
|
|
|
|
rm -r os-probes/mounted/x86/efi
|
|
|
|
|
cp os-probes/mounted/x86/* $PKG/usr/lib/os-probes/mounted
|
|
|
|
|
|
|
|
|
|
mkdir -p $PKG/usr/lib/os-probes/init
|
|
|
|
|
cp os-probes/init/common/* $PKG/usr/lib/os-probes/init
|
|
|
|
|
|
|
|
|
|
mkdir -p $PKG/usr/lib/linux-boot-probes
|
|
|
|
|
cp linux-boot-probes/common/* $PKG/usr/lib/linux-boot-probes/
|
|
|
|
|
mkdir $PKG/usr/lib/linux-boot-probes/mounted
|
|
|
|
|
cp linux-boot-probes/mounted/common/* $PKG/usr/lib/linux-boot-probes/mounted
|
|
|
|
|
cp linux-boot-probes/mounted/x86/* $PKG/usr/lib/linux-boot-probes/mounted
|
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
mkdir -p $PKG/usr/share/$isim
|
|
|
|
|
cp common.sh $PKG/usr/share/$isim
|
|
|
|
|
chmod +x $PKG/usr/share/$isim/common.sh
|
2016-02-24 01:27:23 +01:00
|
|
|
|
# End of making os-prober directory hierarchy.
|
|
|
|
|
|
|
|
|
|
tar -cvjf os-prober#1.70.pkg.tar.bz2 $PKG/*
|
|
|
|
|
|
|
|
|
|
}
|