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

Contents of /trunk/sys-apps/freebsd-ubin/freebsd-ubin-5.3.20050301.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: 2627 byte(s)
Updated to use gentoo's mirrors and freebsd-utils eclass.

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 BASE_VER=5.3
8 MY_PATCH=${PN}-${BASE_VER}_rc1
9
10 DESCRIPTION="FreeBSD's base system source for /usr/bin"
11 SRC_URI="mirror://gentoo/${UBIN}.tar.bz2
12 mirror://gentoo/${CONTRIB}.tar.bz2
13 mirror://gentoo/${LIB}.tar.bz2
14 mirror://gentoo/${BIN}.tar.bz2"
15
16 DEPEND="=sys-devel/freebsd-mk-defs-5.3*
17 =sys-libs/freebsd-lib-5.3*
18 =sys-kernel/freebsd-headers-5.3*
19 =sys-kernel/freebsd-sources-5.3*
20 ssl? ( =sys-apps/freebsd-crypto-5.3* )
21 sendmail? ( virtual/mta )
22 kerberos? ( virtual/krb5 )"
23
24 PROVIDE="virtual/editor"
25
26 S=${WORKDIR}/usr.bin
27
28 IUSE="atm bind-utils bluetooth ssl sendmail usb nls ipv6 kerberos"
29
30 pkg_setup() {
31 use nls || mymakeopts="${mymakeopts} NO_NLS= "
32 use atm || mymakeopts="${mymakeopts} NOATM= "
33 use bind-utils || mymakeopts="${mymakeopts} NO_BIND_UTILS= "
34 use bluetooth || mymakeopts="${mymakeopts} NO_BLUETOOTH= "
35 use ssl || mymakeopts="${mymakeopts} NO_OPENSSL= NOCRYPT= "
36 use sendmail || mymakeopts="${mymakeopts} NO_SENDMAIL= "
37 use usb || mymakeopts="${mymakeopts} NO_USB= "
38 use ipv6 || mymakeopts="${mymakeopts} NOINET6= "
39 use kerberos || mymakeopts="${mymakeopts} NO_KERBEROS= "
40 }
41
42 src_unpack() {
43 unpack ${A}
44
45 cd ${S}
46 epatch ${FILESDIR}/${PN}-${BASE_VER}-nocom_err.patch
47
48 # Fixed location to /usr/src
49 cd ${S}/kdump
50 epatch ${FILESDIR}/${MY_PATCH}-kdump-makefile.patch
51
52 # I belive this patch may give problems with sandbox in the future
53 cd ${S}/truss
54 epatch ${FILESDIR}/${MY_PATCH}-truss-makefile.patch
55
56 # Installation related patch (to create necessary dirs)
57 cd ${S}/calendar
58 epatch ${FILESDIR}/${MY_PATCH}-calendar-makefile.patch
59
60 # These patch does not create NLSLINKS
61 cd ${S}/ee
62 epatch ${FILESDIR}/${MY_PATCH}-ee-makefile.patch
63 cd ${S}/vi
64 epatch ${FILESDIR}/${MY_PATCH}-vi-makefile.patch
65 }
66
67 src_compile() {
68 # ATM -fomit-frame pointer is incompatible with
69 # a flag (-pg) used to build libbind.
70 filter-flags "-fomit-frame-pointer"
71 append-ldflags -z,now
72
73 einfo "Building library dependencies"
74 if use bind-utils; then
75 cd ${WORKDIR}/lib/bind
76 fmake || die "fmake libbind failed"
77 fi
78
79 cd ${WORKDIR}/lib/libtelnet
80 fmake || die "emake libtelnet failed"
81
82 if use sendmail ; then
83 cd ${WORKDIR}/lib/libsm
84 emake || die "emake libsm failed"
85 cd ${WORKDIR}/lib/libsmutil
86 emake || die "emake libsmutil failed"
87 cd ${WORKDIR}/lib/libsmdb
88 emake || die "emake libsmdb failed"
89 fi
90
91 cd ${S}
92 einfo "Building package"
93 fmake || die "emake failed"
94 }
95
96 src_install() {
97 cd ${S}
98 fmake DESTDIR=${D} install || die "Install failed"
99 }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20