Magellan Linux

Contents of /trunk/core/os-prober/os-prober-1.77-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31901 - (show annotations) (download)
Wed Jan 2 10:16:06 2019 UTC (5 years, 4 months ago) by niro
File size: 1653 byte(s)
auto added: ver bump to 1.77-r1
1 # $Id$
2
3 PNAME="os-prober"
4 PVER="1.77"
5 PBUILD="r1"
6
7 PCAT="sys-apps"
8
9 DESCRIPTION="Probes disks on the system for installed operating systems."
10 HOMEPAGE="http://kitenet.net/~joey/code/os-prober/"
11
12 DEPEND=">= sys-apps/coreutils-8.20
13 >= sys-apps/util-linux-2.22
14 >= sys-fs/udev-195"
15
16 SRCFILE="${PNAME}_${PVER}.tar.xz"
17 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
18
19 sminclude mbuild mtools
20 msetfeature "!check" # no check target in Makefile
21
22 SRC_URI=(
23 http://ftp.de.debian.org/debian/pool/main/${PNAME:0:1}/${PNAME}/${SRCFILE}
24 mirror://${PNAME}/${SRCFILE}
25 )
26
27 UP2SEPERATOR="_"
28 UP2DATE="updatecmd http://ftp.de.debian.org/debian/pool/main/${PNAME:0:1}/${PNAME} | highesttarball xz"
29
30 src_compile()
31 {
32 cd ${SRCDIR}
33 mmake || die
34 }
35
36 src_install()
37 {
38 cd ${SRCDIR}
39
40 # no install target in Makefile
41 minstallexec os-prober || die
42 minstallexec linux-boot-prober || die
43 minstalldir /usr/lib/os-prober || die
44 minstallexec newns /usr/lib/os-prober || die
45 minstalldir /usr/share/os-prober || die
46 minstallfile common.sh /usr/share/os-prober || die
47
48 local myarch
49 case ${ARCH} in
50 i*86|x86_64) myarch="x86" ;;
51 *) myarch="${ARCH}" ;;
52 esac
53
54 local i
55 for i in os-probes os-probes/mounted os-probes/init linux-boot-probes linux-boot-probes/mounted
56 do
57 minstalldir /usr/lib/${i} || die
58 mcopy -a ${i}/common/\* /usr/lib/${i} || die
59 if [[ -d ${i}/${myarch} ]]
60 then
61 mcopy -a ${i}/${myarch}/\* /usr/lib/${i} || die
62 fi
63 done
64
65 # install osx probe too
66 minstallexec os-probes/mounted/powerpc/20macosx /usr/lib/os-probes/mounted || die
67
68 # needed runtime dir
69 mkeepdir /var/lib/os-prober || die
70
71 minstalldocs README TODO debian/changelog debian/copyright || die
72 }