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

Contents of /trunk/sys-apps/freebsd-usbin/freebsd-usbin-5.4_rc4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 341 - (show annotations) (download)
Fri May 6 16:57:01 2005 UTC (9 years, 4 months ago) by flameeyes
File size: 3106 byte(s)
Added 5.4_rc4 ebuild.. doesn't work for now.

1 # Copyright 1999-2004 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header$
4
5 inherit freebsd-utils flag-o-matic eutils
6
7 DESCRIPTION="FreeBSD /usr/sbin tools"
8 HOMEPAGE="http://www.freebsd.org/"
9 SRC_URI="mirror://gentoo/${P}.tar.bz2
10 mirror://gentoo/${CONTRIB}.tar.bz2
11 mirror://gentoo/${UBIN}.tar.bz2
12 mirror://gentoo/${LIB}.tar.bz2
13 mirror://gentoo/${SBIN}.tar.bz2
14 mirror://gentoo/${LIBEXEC}.tar.bz2
15 mirror://gentoo/${GNU}.tar.bz2"
16
17 LICENSE="BSD"
18 SLOT="0"
19 KEYWORDS="~x86-fbsd"
20 IUSE="atm bluetooth crypt ssl usb ipv6
21 pf acpi lpr ipfilter isdn pam ssl radius netgraph minimal suid ipsec nis
22 pam suid nat radius"
23 DEPEND="=sys-devel/freebsd-mk-defs-5.4*
24 =sys-libs/freebsd-lib-5.4*
25 =sys-libs/freebsd-libexec-5.4*
26 =sys-kernel/freebsd-sources-5.4*
27 =sys-kernel/freebsd-headers-5.4*
28 ssl? ( dev-libs/openssl )
29 sys-devel/flex
30 net-libs/libpcap"
31 PROVIDE="lpr? virtual/lpr"
32
33 S=${WORKDIR}/usr.sbin
34
35 pkg_setup() {
36 # Release crunch is something like minimal. It seems to remove everything
37 # which is not needed to work.
38 use minimal && mymakeopts="${mymakeopts} RELEASE_CRUNCH= "
39
40 use atm || mymakeopts="${mymakeopts} NOATM= "
41 use bluetooth || mymakeopts="${mymakeopts} NO_BLUETOOTH= "
42 use ipv6 || mymakeopts="${mymakeopts} NOINET6= "
43 use ipfilter || mymakeopts="${mymakeopts} NO_IPFILTER= "
44 use pf || mymakeopts="${mymakeopts} NO_PF= NO_AUTHPF= "
45 use lpr || mymakeopts="${mymakeopts} NO_LPR= "
46 use crypt || mymakeopts="${mymakeopts} NOCRYPT= "
47 use ssl || mymakeopts="${mymakeopts} NO_OPENSSL= NOCRYPT= "
48 use usb || mymakeopts="${mymakeopts} NO_USB= "
49 use acpi || mymakeopts="${mymakeopts} NO_ACPI= "
50 use isdn || mymakeopts="${mymakeopts} NO_I4B= "
51 use pam || mymakeopts="${mymakeopts} NOPAM= "
52 use ssl || mymakeopts="${mymakeopts} NO_OPENSSL= "
53 use radius || mymakeopts="${mymakeopts} NORADIUS= "
54 use suid || mymakeopts="${mymakeopts} NOSUID= "
55 use ipsec || mymakeopts="${mymakeopts} NOIPSEC= "
56 use nis || mymakeopts="${mymakeopts} NO_NIS= "
57 use nat || mymakeopts="${mymakeopts} NONAT= "
58 use pam || mymakeopts="${mymakeopts} NOPAM= "
59 use suid || mymakeopts="${mymakeopts} NOSUID= PPP_NOSUID= "
60 use radius || mymakeopts="${mymakeopts} NORADIUS= "
61
62 mymakeopts="${mymakeopts} NO_MAILWRAPPER= NO_BIND= NO_SENDMAIL= "
63 }
64
65 src_unpack() {
66 unpack ${A}
67
68 epatch ${FILESDIR}/${PN}-fixmakefiles.patch
69 epatch ${FILESDIR}/${PN}-minimal.patch
70 epatch ${FILESDIR}/${PN}-flex.patch
71
72 cd ${S}
73 epatch ${FILESDIR}/${PN}-5.3-r1-makefile-docpaths.patch
74 }
75
76 src_compile() {
77 filter-flags -fomit-frame-pointer
78 # kldxref does not build with -O2
79 replace-flags "-O?" "-O1"
80
81 einfo "Building package now"
82 cd ${S}
83 fmake || die "fmake failed"
84 }
85
86 src_install() {
87 # By creating these two directories we avoid having to do a
88 # more complex hack inside lpr/SMM.doc and nologin makefiles.
89 dodir /usr/share/doc
90 dodir /sbin
91 dodir /usr/libexec
92
93 # FILESDIR is used by some makefiles which will install files
94 # in the wrong place, just put it in the doc directory.
95 fmake DESTDIR=${D} DOCDIR=/usr/share/doc/${PF} install || die "Install failed"
96 }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20