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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 441 - (show annotations) (download)
Wed Jun 8 16:59:52 2005 UTC (9 years, 10 months ago) by flameeyes
File size: 2257 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 pam
6
7 DESCRIPTION="FreeBSD's base system source for /usr/bin"
8 SRC_URI="mirror://gentoo/${UBIN}.tar.bz2
9 mirror://gentoo/${CONTRIB}.tar.bz2
10 mirror://gentoo/${LIB}.tar.bz2
11 mirror://gentoo/${BIN}.tar.bz2"
12
13 DEPEND="=sys-devel/freebsd-mk-defs-5.4*
14 =sys-libs/freebsd-lib-5.4*
15 =sys-kernel/freebsd-headers-5.4*
16 =sys-kernel/freebsd-sources-5.4*
17 ssl? ( dev-libs/openssl )
18 sendmail? ( virtual/mta )
19 kerberos? ( virtual/krb5 )
20 sys-devel/flex
21 sys-libs/zlib
22 virtual/pam"
23
24 PROVIDE=""
25
26 S=${WORKDIR}/usr.bin
27
28 IUSE="atm bluetooth ssl sendmail usb nls ipv6 kerberos nis"
29
30 pkg_setup() {
31 use nls || mymakeopts="${mymakeopts} NO_NLS= "
32 use atm || mymakeopts="${mymakeopts} NOATM= "
33 use bluetooth || mymakeopts="${mymakeopts} NO_BLUETOOTH= "
34 use ssl || mymakeopts="${mymakeopts} NO_OPENSSL= NOCRYPT= "
35 use sendmail || mymakeopts="${mymakeopts} NO_SENDMAIL= "
36 use usb || mymakeopts="${mymakeopts} NO_USB= "
37 use ipv6 || mymakeopts="${mymakeopts} NOINET6= "
38 use kerberos || mymakeopts="${mymakeopts} NO_KERBEROS= "
39 use nis || mymakeopts="${mymakeopts} NO_NIS= "
40 }
41
42 src_unpack() {
43 unpack ${A}
44
45 cd ${S}
46 epatch ${FILESDIR}/${PN}-minimal.patch
47 epatch ${FILESDIR}/${PN}-bsdcmp.patch
48 epatch ${FILESDIR}/${PN}-fixmakefiles.patch
49 epatch ${FILESDIR}/${PN}-setXid.patch
50 epatch ${FILESDIR}/${PN}-lint-stdarg.patch
51 epatch ${FILESDIR}/${PN}-flex.patch
52
53 # Rename manpage for renamed cmp
54 mv ${S}/cmp/cmp.1 ${S}/cmp/bsdcmp.1
55 }
56
57 src_compile() {
58 # ATM -fomit-frame pointer is incompatible with
59 # a flag (-pg) used to build libbind.
60 filter-flags "-fomit-frame-pointer"
61
62 cd ${WORKDIR}/lib/libtelnet
63 fmake || die "fmake libtelnet failed"
64
65 if use sendmail; then
66 cd ${WORKDIR}/lib/libsm
67 fmake || die "fmake libsm failed"
68 cd ${WORKDIR}/lib/libsmutil
69 fmake || die "fmake libsmutil failed"
70 cd ${WORKDIR}/lib/libsmdb
71 fmake || die "fmake libsmdb failed"
72 fi
73
74 cd ${S}
75 einfo "Building package"
76 fmake || die "fmake failed"
77 }
78
79 src_install() {
80 cd ${S}
81 fmake DESTDIR=${D} install || die "Install failed"
82
83 for pamdfile in login passwd rsh su; do
84 newpamd "${FILESDIR}/${pamdfile}.pamd" ${pamdfile}
85 done
86 }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20