Gentoo Archives: gentoo-commits

From: "Fabio Erculiani (lxnay)" <lxnay@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-boot/os-prober: ChangeLog os-prober-1.39.ebuild
Date: Mon, 26 Jul 2010 11:00:55
Message-Id: 20100726110051.B45E32CE14@corvid.gentoo.org
1 lxnay 10/07/26 11:00:51
2
3 Modified: ChangeLog
4 Added: os-prober-1.39.ebuild
5 Log:
6 Version bump
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.5 sys-boot/os-prober/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/os-prober/ChangeLog?rev=1.5&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/os-prober/ChangeLog?rev=1.5&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/os-prober/ChangeLog?r1=1.4&r2=1.5
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-boot/os-prober/ChangeLog,v
19 retrieving revision 1.4
20 retrieving revision 1.5
21 diff -u -r1.4 -r1.5
22 --- ChangeLog 4 Jun 2010 02:31:38 -0000 1.4
23 +++ ChangeLog 26 Jul 2010 11:00:51 -0000 1.5
24 @@ -1,6 +1,11 @@
25 # ChangeLog for sys-boot/os-prober
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-boot/os-prober/ChangeLog,v 1.4 2010/06/04 02:31:38 beandog Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-boot/os-prober/ChangeLog,v 1.5 2010/07/26 11:00:51 lxnay Exp $
29 +
30 +*os-prober-1.39 (26 Jul 2010)
31 +
32 + 26 Jul 2010; Fabio Erculiani <lxnay@g.o> +os-prober-1.39.ebuild:
33 + Version bump
34
35 *os-prober-1.38 (04 Jun 2010)
36
37
38
39
40 1.1 sys-boot/os-prober/os-prober-1.39.ebuild
41
42 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/os-prober/os-prober-1.39.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/os-prober/os-prober-1.39.ebuild?rev=1.1&content-type=text/plain
44
45 Index: os-prober-1.39.ebuild
46 ===================================================================
47 # Copyright 1999-2010 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/sys-boot/os-prober/os-prober-1.39.ebuild,v 1.1 2010/07/26 11:00:51 lxnay Exp $
50
51 EAPI="2"
52
53 inherit eutils multilib toolchain-funcs
54
55 DESCRIPTION="Utility to detect other OSs on a set of drives"
56 HOMEPAGE="http://packages.debian.org/source/sid/os-prober"
57 SRC_URI="mirror://debian/pool/main/${PN::1}/${PN}/${PN}_${PV}.tar.gz"
58
59 LICENSE="GPL-3"
60 SLOT="0"
61 KEYWORDS="~amd64 ~x86"
62 IUSE=""
63
64 S="${WORKDIR}/${PN}"
65
66 src_prepare() {
67 sed -i -e "s:/lib/udev:/$(get_libdir)/udev:g" common.sh || die "sed failed on common.sh"
68 find "${S}" -type f -exec sed -i -e "s:/usr/lib/:/usr/libexec/:g" {} + || die "failed on find and sed lib->libexec"
69 sed -i -e "s:/lib/ld\*\.so\*:/lib*/ld*.so*:g" os-probes/mounted/common/90linux-distro || die "sed failed on 90linux-distro"
70
71 # Just use the default rules provided by GNU Make
72 rm Makefile
73 }
74
75 src_compile() {
76 tc-export CC
77 emake newns || die "emake failed"
78 }
79
80 src_install() {
81 dobin os-prober linux-boot-prober || die "dobin failed"
82
83 exeinto /usr/libexec/os-prober
84 doexe newns || die "doexe newns failed"
85
86 insinto /usr/share/os-prober
87 doins common.sh || die "doins common.sh failed"
88
89 keepdir /var/lib/os-prober
90
91 local debarch=${ARCH%-*} dir
92
93 case ${debarch} in
94 amd64) debarch=x86 ;;
95 ppc|ppc64) debarch=powerpc ;;
96 esac
97
98 for dir in os-probes{,/mounted,/init} linux-boot-probes{,/mounted}; do
99 exeinto /usr/libexec/$dir
100 doexe $dir/common/* || die "doexe failed in $dir/common"
101 if [[ -d $dir/$debarch ]]; then
102 doexe $dir/$debarch/* || die "doexe failed in $dir/$debarch"
103 fi
104 done
105
106 if use amd64 || use x86; then
107 exeinto /usr/libexec/os-probes/mounted
108 doexe os-probes/mounted/powerpc/20macosx || die "doexe failed on 20macosx"
109 fi
110
111 dodoc README TODO debian/changelog || die "dodoc failed"
112 }
113
114 pkg_postinst() {
115 elog "If you intend for os-prober to detect versions of Windows installed on"
116 elog "NTFS-formatted partitions, your system must be capable of reading the"
117 elog "NTFS filesystem. One way to do this is by installing sys-fs/ntfs3g"
118 }