/[gentoo-x86]/sys-kernel/genkernel/genkernel-3.4.22.1.ebuild
Gentoo

Contents of /sys-kernel/genkernel/genkernel-3.4.22.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Jul 15 19:01:56 2012 UTC (23 months, 3 weeks ago) by sping
Branch: MAIN
Changes since 1.2: +2 -2 lines
sys-kernel/genkernel: Fix location of open-iscsi-2.0-872.tar.gz (bug #426732)

(Portage version: 2.1.10.65/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-kernel/genkernel/genkernel-3.4.22.1.ebuild,v 1.2 2012/05/16 18:56:22 sping Exp $
4
5 # genkernel-9999 -> latest Git branch "master"
6 # genkernel-VERSION -> normal genkernel release
7
8 VERSION_BUSYBOX='1.18.1'
9 VERSION_DMAP='1.02.22'
10 VERSION_DMRAID='1.0.0.rc14'
11 VERSION_MDADM='3.1.4'
12 VERSION_E2FSPROGS='1.41.14'
13 VERSION_FUSE='2.7.4'
14 VERSION_ISCSI='2.0-872'
15 VERSION_LVM='2.02.74'
16 VERSION_UNIONFS_FUSE='0.22'
17 VERSION_GPG='1.4.11'
18
19 MY_HOME="http://wolf31o2.org"
20 RH_HOME="ftp://sources.redhat.com/pub"
21 DM_HOME="http://people.redhat.com/~heinzm/sw/dmraid/src"
22 BB_HOME="http://www.busybox.net/downloads"
23
24 COMMON_URI="${DM_HOME}/dmraid-${VERSION_DMRAID}.tar.bz2
25 ${DM_HOME}/old/dmraid-${VERSION_DMRAID}.tar.bz2
26 mirror://kernel/linux/utils/raid/mdadm/mdadm-${VERSION_MDADM}.tar.bz2
27 ${RH_HOME}/lvm2/LVM2.${VERSION_LVM}.tgz
28 ${RH_HOME}/lvm2/old/LVM2.${VERSION_LVM}.tgz
29 ${RH_HOME}/dm/device-mapper.${VERSION_DMAP}.tgz
30 ${RH_HOME}/dm/old/device-mapper.${VERSION_DMAP}.tgz
31 ${BB_HOME}/busybox-${VERSION_BUSYBOX}.tar.bz2
32 http://www.open-iscsi.org/bits/open-iscsi-${VERSION_ISCSI}.tar.gz
33 mirror://sourceforge/e2fsprogs/e2fsprogs-${VERSION_E2FSPROGS}.tar.gz
34 mirror://sourceforge/fuse/fuse-${VERSION_FUSE}.tar.gz
35 http://podgorny.cz/unionfs-fuse/releases/unionfs-fuse-${VERSION_UNIONFS_FUSE}.tar.bz2
36 mirror://gnupg/gnupg/gnupg-${VERSION_GPG}.tar.bz2"
37
38 if [[ ${PV} == 9999* ]]
39 then
40 EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/${PN}.git
41 http://git.overlays.gentoo.org/gitroot/proj/${PN}.git"
42 inherit git-2 bash-completion-r1 eutils
43 S="${WORKDIR}/${PN}"
44 SRC_URI="${COMMON_URI}"
45 KEYWORDS=""
46 else
47 inherit bash-completion-r1 eutils
48 SRC_URI="mirror://gentoo/${P}.tar.bz2
49 ${MY_HOME}/sources/genkernel/${P}.tar.bz2
50 ${COMMON_URI}"
51 # Please don't touch individual KEYWORDS. Since this is maintained/tested by
52 # Release Engineering, it's easier for us to deal with all arches at once.
53 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
54 fi
55
56 DESCRIPTION="Gentoo automatic kernel building scripts"
57 HOMEPAGE="http://www.gentoo.org"
58
59 LICENSE="GPL-2"
60 SLOT="0"
61 RESTRICT=""
62 IUSE="ibm selinux"
63
64 DEPEND="sys-fs/e2fsprogs
65 selinux? ( sys-libs/libselinux )"
66 RDEPEND="${DEPEND} app-arch/cpio"
67
68 if [[ ${PV} == 9999* ]]; then
69 DEPEND="${DEPEND} app-text/asciidoc"
70 fi
71
72 src_unpack() {
73 if [[ ${PV} == 9999* ]] ; then
74 git-2_src_unpack
75 else
76 unpack ${P}.tar.bz2
77 fi
78 use selinux && sed -i 's/###//g' "${S}"/gen_compile.sh
79 }
80
81 src_compile() {
82 if [[ ${PV} == 9999* ]]; then
83 emake || die
84 fi
85 }
86
87 src_install() {
88 # This block updates genkernel.conf
89 sed \
90 -e "s:VERSION_BUSYBOX:$VERSION_BUSYBOX:" \
91 -e "s:VERSION_DMAP:$VERSION_DMAP:" \
92 -e "s:VERSION_MDADM:$VERSION_MDADM:" \
93 -e "s:VERSION_DMRAID:$VERSION_DMRAID:" \
94 -e "s:VERSION_E2FSPROGS:$VERSION_E2FSPROGS:" \
95 -e "s:VERSION_FUSE:$VERSION_FUSE:" \
96 -e "s:VERSION_ISCSI:$VERSION_ISCSI:" \
97 -e "s:VERSION_LVM:$VERSION_LVM:" \
98 -e "s:VERSION_UNIONFS_FUSE:$VERSION_UNIONFS_FUSE:" \
99 -e "s:VERSION_GPG:$VERSION_GPG:" \
100 "${S}"/genkernel.conf > "${T}"/genkernel.conf \
101 || die "Could not adjust versions"
102 insinto /etc
103 doins "${T}"/genkernel.conf || die "doins genkernel.conf"
104
105 doman genkernel.8 || die "doman"
106 dodoc AUTHORS ChangeLog README TODO || die "dodoc"
107
108 dobin genkernel || die "dobin genkernel"
109
110 rm -f genkernel genkernel.8 AUTHORS ChangeLog README TODO genkernel.conf
111
112 insinto /usr/share/genkernel
113 doins -r "${S}"/* || die "doins"
114 use ibm && cp "${S}"/ppc64/kernel-2.6-pSeries "${S}"/ppc64/kernel-2.6 || \
115 cp "${S}"/arch/ppc64/kernel-2.6.g5 "${S}"/arch/ppc64/kernel-2.6
116
117 # Copy files to /var/cache/genkernel/src
118 elog "Copying files to /var/cache/genkernel/src..."
119 mkdir -p "${D}"/var/cache/genkernel/src
120 cp -f \
121 "${DISTDIR}"/mdadm-${VERSION_MDADM}.tar.bz2 \
122 "${DISTDIR}"/dmraid-${VERSION_DMRAID}.tar.bz2 \
123 "${DISTDIR}"/LVM2.${VERSION_LVM}.tgz \
124 "${DISTDIR}"/device-mapper.${VERSION_DMAP}.tgz \
125 "${DISTDIR}"/e2fsprogs-${VERSION_E2FSPROGS}.tar.gz \
126 "${DISTDIR}"/busybox-${VERSION_BUSYBOX}.tar.bz2 \
127 "${DISTDIR}"/fuse-${VERSION_FUSE}.tar.gz \
128 "${DISTDIR}"/unionfs-fuse-${VERSION_UNIONFS_FUSE}.tar.bz2 \
129 "${DISTDIR}"/gnupg-${VERSION_GPG}.tar.bz2 \
130 "${DISTDIR}"/open-iscsi-${VERSION_ISCSI}.tar.gz \
131 "${D}"/var/cache/genkernel/src || die "Copying distfiles..."
132
133 newbashcomp "${FILESDIR}"/genkernel.bash "${PN}"
134 }
135
136 pkg_postinst() {
137 echo
138 elog 'Documentation is available in the genkernel manual page'
139 elog 'as well as the following URL:'
140 echo
141 elog 'http://www.gentoo.org/doc/en/genkernel.xml'
142 echo
143 ewarn "This package is known to not work with reiser4. If you are running"
144 ewarn "reiser4 and have a problem, do not file a bug. We know it does not"
145 ewarn "work and we don't plan on fixing it since reiser4 is the one that is"
146 ewarn "broken in this regard. Try using a sane filesystem like ext3 or"
147 ewarn "even reiser3."
148 echo
149 ewarn "The LUKS support has changed from versions prior to 3.4.4. Now,"
150 ewarn "you use crypt_root=/dev/blah instead of real_root=luks:/dev/blah."
151 echo
152 }

  ViewVC Help
Powered by ViewVC 1.1.20