/[gentoo-alt]/trunk/sys-kernel/freebsd-kernel/freebsd-kernel-5.3.ebuild
Gentoo

Contents of /trunk/sys-kernel/freebsd-kernel/freebsd-kernel-5.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 490 - (show annotations) (download)
Mon Jun 20 12:39:36 2005 UTC (9 years, 1 month ago) by flameeyes
File size: 1485 byte(s)
Renamed freebsd-utils eclass to bsdmk, updated all the ebuilds, remove src_install and src_compile functions where aren't needed. Remove telnetd and rsh stuff. Updated deps.

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header$
4
5 inherit bsdmk flag-o-matic
6
7 MY_KERNCONF=GENERIC
8
9 DESCRIPTION="FreeBSD kernel sources"
10 HOMEPAGE="http://www.freebsd.org"
11 SRC_URI="mirror://gentoo/${SOURCES}.tar.bz2
12 mirror://gentoo/${CONTRIB}.tar.bz2
13 mirror://gentoo/${LIB}.tar.bz2"
14
15 IUSE=""
16 DEPEND="sys-libs/freebsd-lib
17 sys-kernel/freebsd-headers"
18 PROVIDE="virtual/kernel virtual/sources"
19
20 S=${WORKDIR}/sys
21
22 src_compile() {
23 # Let's avoid problems before they appear
24 strip-flags
25
26 einfo "Using ${MY_KERNCONF} as kernel configuration"
27 cd ${S}/i386/conf
28 if [ -f ${MY_KERNCONF} ] ; then
29 config ${MY_KERNCONF} || die "Unable do configure kernel"
30 else
31 die "Requested configuration file does not exist"
32 fi
33 cd ${S}/i386/compile/${MY_KERNCONF}
34
35 einfo "Building kernel dependencies"
36 CC=cc make depend || die "Unable to compile kernel dependencies"
37
38 einfo "Building kernel"
39 cd ${S}/i386/compile/${MY_KERNCONF}
40 CC=cc make || die "Unable to compile kernel"
41 }
42
43
44 src_install() {
45 dodir /boot
46
47 for FILE in $(ls /boot) ; do
48 if [ -f ${ROOT}/boot/${FILE} ] ; then
49 cp ${ROOT}/boot/${FILE} ${D}/boot/
50 fi
51 done
52 dodir /boot/defaults
53 cp ${ROOT}/boot/defaults/loader.conf ${D}/boot/defaults/
54
55 cd ${S}/i386/compile/${MY_KERNCONF}
56 make DESTDIR=${D} install || die "Kernel installation failed"
57 }
58
59 pkg_preinst() {
60 if [ -f /boot/kernel ] ; then
61 mv ${ROOT}/boot/kernel /${ROOT}/boot/kernel.old
62 fi
63 }

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.20