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

Contents of /trunk/sys-kernel/freebsd-kernel/freebsd-kernel-5.3_rc1.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: 1687 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 #unalias make
7
8 MY_P=freebsd-sources-${PV}
9 MY_KERNCONF=GENERIC
10
11 DESCRIPTION="FreeBSD kernel sources"
12 HOMEPAGE="http://www.freebsd.org"
13 SRC_URI="${MY_P}.tar.bz2"
14
15 IUSE=""
16 DEPEND="sys-libs/freebsd-libc
17 sys-kernel/freebsd-headers"
18 PROVIDE="virtual/kernel virtual/sources"
19
20 S=${WORKDIR}/sys
21
22 src_unpack() {
23 unpack ${MY_P}.tar.bz2
24 unpack ${CONTRIB}.tar.bz2
25 unpack ${LIB}.tar.bz2
26 }
27
28 src_compile() {
29
30 # Let's avoid problems before they appear
31 strip-flags
32
33 einfo "Using ${MY_KERNCONF} as kernel configuration"
34 cd ${S}/i386/conf
35 if [ -f ${MY_KERNCONF} ] ; then
36 config ${MY_KERNCONF} || die "Unable do configure kernel"
37 else
38 die "Requested configuration file does not exist"
39 fi
40 cd ${S}/i386/compile/${MY_KERNCONF}
41
42 einfo "Building kernel dependencies"
43 CC=cc make depend || die "Unable to compile kernel dependencies"
44
45 # ATM it won't install withou these files.
46 #einfo "Building some boot files"
47 #cd ${S}/boot/i386
48 #CC=cc make || die "Unable to compile boot files"
49
50 einfo "Building kernel"
51 cd ${S}/i386/compile/${MY_KERNCONF}
52 CC=cc make || die "Unable to compile kernel"
53
54 }
55
56
57 src_install() {
58 dodir /boot
59
60 for FILE in $(ls /boot) ; do
61 if [ -f ${ROOT}/boot/${FILE} ] ; then
62 cp ${ROOT}/boot/${FILE} ${D}/boot/
63 fi
64 done
65 dodir /boot/defaults
66 cp ${ROOT}/boot/defaults/loader.conf ${D}/boot/defaults/
67
68 cd ${S}/i386/compile/${MY_KERNCONF}
69 make DESTDIR=${D} install || die "Kernel installation failed"
70 }
71
72 pkg_preinst() {
73 if [ -f /boot/kernel ] ; then
74 mv ${ROOT}/boot/kernel /${ROOT}/boot/kernel.old
75 fi
76 }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20