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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 646 - (show annotations) (download)
Thu Aug 18 14:51:56 2005 UTC (8 years, 11 months ago) by flameeyes
File size: 2283 byte(s)
Updated to reflect bsdmk/freebsd eclasses changes.

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header$
4
5 inherit bsdmk freebsd 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 RDEPEND="ssl? ( dev-libs/openssl )
14 kerberos? ( virtual/krb5 )
15 sys-libs/zlib
16 virtual/pam"
17 DEPEND="${RDEPEND}
18 sys-devel/flex
19 =sys-kernel/freebsd-sources-${RV}*
20 =sys-kernel/freebsd-headers-${RV}*
21 =sys-devel/freebsd-mk-defs-${RV}*"
22
23 PROVIDE=""
24
25 SLOT="0"
26
27 S=${WORKDIR}/usr.bin
28
29 IUSE="atm bluetooth ssl usb nls ipv6 kerberos nis"
30
31 # List of patches to apply
32 PATCHES="${FILESDIR}/${PN}-bsdcmp.patch
33 ${FILESDIR}/${PN}-fixmakefiles.patch
34 ${FILESDIR}/${PN}-setXid.patch
35 ${FILESDIR}/${PN}-lint-stdarg.patch
36 ${FILESDIR}/${PN}-flex.patch"
37
38 # Here we remove some sources we don't need because they are already
39 # provided by portage's packages or similar. In order:
40 # - Archiving tools, provided by their own ebuilds
41 # - ncurses stuff
42 # - less stuff
43 # - bind utils
44 # - rsh stuff
45 # and the rest are misc utils we already provide somewhere else.
46 REMOVE_SUBDIRS="bzip2 bzip2recover tar
47 tput tset
48 less lessecho lesskey
49 dig nslookup nsupdate host
50 rsh rlogin rusers rwho ruptime
51 compile_et lex vi smbutil file vacation nc ftp telnet"
52
53 pkg_setup() {
54 use nls || mymakeopts="${mymakeopts} NO_NLS= "
55 use atm || mymakeopts="${mymakeopts} NOATM= "
56 use bluetooth || mymakeopts="${mymakeopts} NO_BLUETOOTH= "
57 use ssl || mymakeopts="${mymakeopts} NO_OPENSSL= NOCRYPT= "
58 use usb || mymakeopts="${mymakeopts} NO_USB= "
59 use ipv6 || mymakeopts="${mymakeopts} NOINET6= "
60 use kerberos || mymakeopts="${mymakeopts} NO_KERBEROS= "
61 use nis || mymakeopts="${mymakeopts} NO_NIS= "
62
63 mymakeopts="${mymakeopts} NO_SENDMAIL= "
64 }
65
66 src_unpack() {
67 freebsd_src_unpack
68
69 # Rename manpage for renamed cmp
70 mv ${S}/cmp/cmp.1 ${S}/cmp/bsdcmp.1
71 }
72
73 src_compile() {
74 # ATM -fomit-frame pointer is incompatible with
75 # a flag (-pg) used to build libbind.
76 filter-flags "-fomit-frame-pointer"
77
78 freebsd_src_compile
79 }
80
81 src_install() {
82 freebsd_src_install
83
84 for pamdfile in login passwd su; do
85 newpamd "${FILESDIR}/${pamdfile}.pamd" ${pamdfile}
86 done
87 }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20