/[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 484 - (show annotations) (download)
Sun Jun 19 23:30:31 2005 UTC (9 years, 2 months ago) by flameeyes
File size: 2299 byte(s)
Don't compile and install telnet as we don't support it from here.

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="ssl? ( dev-libs/openssl )
14 kerberos? ( virtual/krb5 )
15 sys-devel/flex
16 sys-libs/zlib
17 virtual/pam"
18 DEPEND="${RDEPEND}
19 =sys-kernel/freebsd-sources-5.4*
20 =sys-kernel/freebsd-headers-5.4*
21 =sys-devel/freebsd-mk-defs-5.4*"
22
23 PROVIDE=""
24
25 S=${WORKDIR}/usr.bin
26
27 IUSE="atm bluetooth ssl usb nls ipv6 kerberos nis"
28
29 pkg_setup() {
30 use nls || mymakeopts="${mymakeopts} NO_NLS= "
31 use atm || mymakeopts="${mymakeopts} NOATM= "
32 use bluetooth || mymakeopts="${mymakeopts} NO_BLUETOOTH= "
33 use ssl || mymakeopts="${mymakeopts} NO_OPENSSL= NOCRYPT= "
34 use usb || mymakeopts="${mymakeopts} NO_USB= "
35 use ipv6 || mymakeopts="${mymakeopts} NOINET6= "
36 use kerberos || mymakeopts="${mymakeopts} NO_KERBEROS= "
37 use nis || mymakeopts="${mymakeopts} NO_NIS= "
38
39 mymakeopts="${mymakeopts} NO_SENDMAIL= "
40 }
41
42 src_unpack() {
43 unpack ${A}
44
45 cd ${S}
46 epatch ${FILESDIR}/${PN}-bsdcmp.patch
47 epatch ${FILESDIR}/${PN}-fixmakefiles.patch
48 epatch ${FILESDIR}/${PN}-setXid.patch
49 epatch ${FILESDIR}/${PN}-lint-stdarg.patch
50 epatch ${FILESDIR}/${PN}-flex.patch
51
52 # Here we remove some sources we don't need because they are already
53 # provided by portage's packages or similar. In order:
54 # - Archiving tools, provided by their own ebuilds
55 # - ncurses stuff
56 # - less stuff
57 # - bind utils
58 # and the rest are misc utils we already provide somewhere else.
59 dummy_mk \
60 bzip2 bzip2recover tar \
61 tput tset \
62 less lessecho lesskey \
63 dig nslookup nsupdate host \
64 compile_et lex vi smbutil file vacation nc ftp telnet
65
66 # Rename manpage for renamed cmp
67 mv ${S}/cmp/cmp.1 ${S}/cmp/bsdcmp.1
68 }
69
70 src_compile() {
71 # ATM -fomit-frame pointer is incompatible with
72 # a flag (-pg) used to build libbind.
73 filter-flags "-fomit-frame-pointer"
74
75 cd ${S}
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