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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 336 - (show annotations) (download)
Thu May 5 17:52:59 2005 UTC (9 years, 4 months ago) by flameeyes
File size: 2091 byte(s)
Updated to 5.4_rc4.

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header$
4
5 inherit freebsd-utils flag-o-matic
6
7 CONTRIB="freebsd-contrib-${PV}"
8 LIB="freebsd-lib-${PV}"
9 BIN="freebsd-bin-${PV}"
10
11 DESCRIPTION="FreeBSD's base system source for /usr/bin"
12 SRC_URI="${SRC_URI}
13 ${BASE_SRC_URI}${CONTRIB}.tar.bz2
14 ${BASE_SRC_URI}${LIB}.tar.bz2
15 ${BASE_SRC_URI}${BIN}.tar.bz2"
16
17 DEPEND="=sys-devel/freebsd-mk-defs-5.4*
18 =sys-libs/freebsd-lib-5.4*
19 =sys-kernel/freebsd-headers-5.4*
20 =sys-kernel/freebsd-sources-5.4*
21 ssl? ( dev-libs/openssl )
22 sendmail? ( virtual/mta )
23 kerberos? ( virtual/krb5 )
24 sys-devel/flex
25 sys-libs/zlib"
26
27 PROVIDE=""
28
29 S=${WORKDIR}/usr.bin
30
31 IUSE="atm bluetooth ssl sendmail usb nls ipv6 kerberos nis"
32
33 pkg_setup() {
34 use nls || mymakeopts="${mymakeopts} NO_NLS= "
35 use atm || mymakeopts="${mymakeopts} NOATM= "
36 use bluetooth || mymakeopts="${mymakeopts} NO_BLUETOOTH= "
37 use ssl || mymakeopts="${mymakeopts} NO_OPENSSL= NOCRYPT= "
38 use sendmail || mymakeopts="${mymakeopts} NO_SENDMAIL= "
39 use usb || mymakeopts="${mymakeopts} NO_USB= "
40 use ipv6 || mymakeopts="${mymakeopts} NOINET6= "
41 use kerberos || mymakeopts="${mymakeopts} NO_KERBEROS= "
42 use nis || mymakeopts="${mymakeopts} NO_NIS= "
43 }
44
45 src_unpack() {
46 unpack ${A}
47
48 cd ${S}
49 epatch ${FILESDIR}/${PN}-minimal.patch
50 epatch ${FILESDIR}/${PN}-fixmakefiles.patch
51 epatch ${FILESDIR}/${PN}-setXid.patch
52 epatch ${FILESDIR}/${PN}-lint-stdarg.patch
53 epatch ${FILESDIR}/${PN}-flex.patch
54 }
55
56 src_compile() {
57 # ATM -fomit-frame pointer is incompatible with
58 # a flag (-pg) used to build libbind.
59 filter-flags "-fomit-frame-pointer"
60
61 cd ${WORKDIR}/lib/libtelnet
62 fmake || die "fmake libtelnet failed"
63
64 if use sendmail; then
65 cd ${WORKDIR}/lib/libsm
66 fmake || die "fmake libsm failed"
67 cd ${WORKDIR}/lib/libsmutil
68 fmake || die "fmake libsmutil failed"
69 cd ${WORKDIR}/lib/libsmdb
70 fmake || die "fmake libsmdb failed"
71 fi
72
73 cd ${S}
74 einfo "Building package"
75 fmake || die "fmake failed"
76 }
77
78 src_install() {
79 cd ${S}
80 fmake DESTDIR=${D} install || die "Install failed"
81 }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20