/[gentoo-alt]/trunk/overlay/sys-openbsd/openbsd-sources/openbsd-sources-3.8.ebuild
Gentoo

Contents of /trunk/overlay/sys-openbsd/openbsd-sources/openbsd-sources-3.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 974 - (show annotations) (download)
Sat Jan 28 08:56:27 2006 UTC (8 years, 9 months ago) by reb
File size: 1335 byte(s)
+sys-openbsd/openbsd-sources

1 # Copyright 1999-2005 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header$
4
5 inherit bsdmk openbsd
6
7 DESCRIPTION="OpenBSD kernel sources"
8 SLOT="${PVR}"
9 KEYWORDS="~x86-obsd"
10
11 IUSE="symlink"
12
13 SRC_URI="mirror://gentoo/${SYS}.tar.bz2"
14
15 DEPEND=""
16 RDEPEND=""
17
18 PROVIDE="virtual/os-sources"
19 RESTRICT="nostrip"
20
21 S=${WORKDIR}/sys
22
23 src_unpack() {
24 unpack ${A}
25 epatch ${FILESDIR}/openbsd-sources-gentoo.patch # Gentoo branch
26 }
27
28 src_compile() {
29 einfo "Nothing to compile..."
30 }
31
32 src_install() {
33 dodir /usr/src
34 mv ${S} ${D}/usr/src/sys-${PVR}
35 }
36
37 pkg_postinst() {
38 if [[ ! -L ${ROOT}usr/src/sys ]]; then
39 einfo "/usr/src/sys symlink doesn't exist; creating..."
40 ln -sf sys-${PVR} ${ROOT}/usr/src/sys || eerror "Couldn't create symlink."
41 elif use symlink; then
42 einfo "Updating /usr/src/sys symlink..."
43 rm ${ROOT}/usr/src/sys
44 ln -sf sys-${PVR} ${ROOT}/usr/src/sys || eerror "Couldn't create symlink."
45 fi
46
47 echo
48
49 einfo "If you are upgrading from a previous kernel, you may be interested"
50 einfo "in the following documents:"
51 einfo " - Building the kernel: http://www.openbsd.org/faq/faq5.html#BldKernel"
52 einfo " - Upgrade from 3.7 to 3.8: http://www.openbsd.org/faq/upgrade38.html"
53
54 echo
55
56 einfo "Don't forget to do make obj in /usr/src/sys, before"
57 einfo "compiling new kernel..."
58 }

  ViewVC Help
Powered by ViewVC 1.1.20