/[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 468 - (hide annotations) (download)
Thu Jun 16 07:53:23 2005 UTC (9 years, 6 months ago) by flameeyes
File size: 1474 byte(s)
Avoid building and installing dhclient.

1 flameeyes 468 # Copyright 1999-2005 Gentoo Foundation
2 flameeyes 354 # 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 flameeyes 441 SRC_URI="mirror://gentoo/${SBIN}.tar.bz2
9 flameeyes 354 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 flameeyes 441 src_unpack() {
38 flameeyes 354 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 flameeyes 468
48     # Don't build dhclient here
49     dummy_mk dhclient
50 flameeyes 354 }
51    
52     src_compile() {
53     # O3 breaks this, apparently
54     replace-flags -O3 -O2
55     fmake || die "Compilation failed"
56     }
57    
58     src_install() {
59     fmake DESTDIR=${D} install || die "fmake failed"
60     }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20