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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 441 - (show annotations) (download)
Wed Jun 8 16:59:52 2005 UTC (9 years, 2 months ago) by flameeyes
File size: 1425 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 flag-o-matic freebsd-utils
6
7 DESCRIPTION="FreeBSD sbin utils"
8 SRC_URI="mirror://gentoo/${SBIN}.tar.bz2
9 mirror://gentoo/${CONTRIB}.tar.bz2
10 mirror://gentoo/${LIB}.tar.bz2
11 mirror://gentoo/${LIBEXEC}.tar.bz2
12 mirror://gentoo/${USBIN}.tar.bz2"
13
14 DEPEND="=sys-kernel/freebsd-sources-5.4*
15 =sys-kernel/freebsd-headers-5.4*
16 =sys-devel/freebsd-mk-defs-5.4*
17 =sys-libs/freebsd-lib-5.4*
18 =sys-libs/freebsd-libexec-5.4*
19 ssl? ( dev-libs/openssl )"
20
21 PROVIDE="virtual/dev-manager
22 virtual/dhcpc"
23
24 S=${WORKDIR}/sbin
25
26 IUSE="atm ipfilter pf ipv6 vinum suid"
27
28 pkg_setup() {
29 use atm || mymakeopts="${mymakeopts} NOATM= "
30 use ipfilter || mymakeopts="${mymakeopts} NO_IPFILTER= "
31 use pf || mymakeopts="${mymakeopts} NO_PF= "
32 use ipv6 || mymakeopts="${mymakeopts} NOINET6= "
33 use vinum || mymakeopts="${mymakeopts} NO_VINUM= "
34 use suid || mymakeopts="${mymakeopts} NOSUID= "
35 }
36
37 src_unpack() {
38 unpack ${A}
39
40 # Patches area
41 # Change makefiles to point to /usr/src/sys
42 cd ${S}
43 epatch ${FILESDIR}/${PN}-fixmakefiles.patch
44 epatch ${FILESDIR}/${PN}-setXid.patch
45 epatch ${FILESDIR}/${PN}-flex.patch
46 epatch ${FILESDIR}/${PN}-zlib.patch
47 }
48
49 src_compile() {
50 # O3 breaks this, apparently
51 replace-flags -O3 -O2
52 fmake || die "Compilation failed"
53 }
54
55 src_install() {
56 fmake DESTDIR=${D} install || die "fmake failed"
57 }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20