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

Contents of /trunk/sys-apps/freebsd-sbin/freebsd-sbin-5.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 441 - (show annotations) (download)
Wed Jun 8 16:59:52 2005 UTC (9 years, 4 months ago) by flameeyes
File size: 2099 byte(s)
Updated to use gentoo's mirrors and freebsd-utils eclass.

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header$
4
5 inherit freebsd-utils
6
7 MY_PATCH=${PN}-5.3_rc1
8
9 DESCRIPTION="FreeBSD sbin utils"
10 SRC_URI="mirror://gentoo/${SBIN}.tar.bz2
11 mirror://gentoo/${CONTRIB}.tar.bz2
12 mirror://gentoo/${LIB}.tar.bz2
13 mirror://gentoo/${LIBEXEC}.tar.bz2
14 mirror://gentoo/${USBIN}.tar.bz2"
15
16 DEPEND="=sys-kernel/freebsd-sources-5.3*
17 =sys-kernel/freebsd-headers-5.3*
18 =sys-devel/freebsd-mk-defs-5.3*
19 =sys-libs/freebsd-lib-5.3*
20 =sys-libs/freebsd-libexec-5.3*"
21
22 S=${WORKDIR}/sbin
23
24 src_unpack() {
25 unpack ${P}.tar.bz2
26 unpack ${CONTRIB}.tar.bz2
27 unpack ${LIB}.tar.bz2
28 unpack ${LIBEXEC}.tar.bz2
29 unpack ${USBIN}.tar.bz2
30
31 # Patches area
32 # Most patches just change makefiles to point to /usr/src/sys
33 cd ${S}/atm/atm
34 epatch ${FILESDIR}/${MY_PATCH}-atm-atm-makefile.patch
35 cd ${S}/atm/fore_dnld
36 epatch ${FILESDIR}/${MY_PATCH}-atm-fore_dnld-makefile.patch
37 cd ${S}/atm/ilmid
38 epatch ${FILESDIR}/${MY_PATCH}-atm-ilmid-makefile.patch
39 cd ${S}/bsdlabel
40 epatch ${FILESDIR}/${MY_PATCH}-bsdlabel-makefile.patch
41 cd ${S}/fsck_ffs
42 epatch ${FILESDIR}/${MY_PATCH}-fsck_ffs-makefile.patch
43 cd ${S}/fsdb
44 epatch ${FILESDIR}/${MY_PATCH}-fsdb-makefile.patch
45 cd ${S}/gbde
46 epatch ${FILESDIR}/${MY_PATCH}-gbde-makefile.patch
47 cd ${S}/sunlabel
48 epatch ${FILESDIR}/${MY_PATCH}-sunlabel-makefile.patch
49 cd ${S}/fdisk
50 epatch ${FILESDIR}/${MY_PATCH}-fdisk-makefile.patch
51 cd ${S}/vinum
52 epatch ${FILESDIR}/${MY_PATCH}-vinum-makefile.patch
53 cd ${S}/gvinum
54 epatch ${FILESDIR}/${MY_PATCH}-gvinum-makefile.patch
55 cd ${S}/ipf
56 epatch ${FILESDIR}/${MY_PATCH}-ipf-makefile.patch
57 cd ${S}/ipfs
58 epatch ${FILESDIR}/${MY_PATCH}-ipfs-makefile.patch
59 cd ${S}/ipfstat
60 epatch ${FILESDIR}/${MY_PATCH}-ipfstat-makefile.patch
61 cd ${S}/ipmon
62 epatch ${FILESDIR}/${MY_PATCH}-ipmon-makefile.patch
63 cd ${S}/ipnat
64 epatch ${FILESDIR}/${MY_PATCH}-ipnat-makefile.patch
65 }
66
67 src_compile() {
68 # O3 breaks this, apparently
69 replace-flags -O3 -O2
70 bsdmake || die "Compilation failed"
71 }
72
73 src_install() {
74 bsdmake DESTDIR=${D} install || die "emake failed"
75 }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20