/[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 467 - (show annotations) (download)
Thu Jun 16 07:49:54 2005 UTC (14 years ago) by flameeyes
File size: 2388 byte(s)
Removed a few more subtargets: tar file vacation nc ftp, as they have their own ebuilds.

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 usb || mymakeopts="${mymakeopts} NO_USB= "
36 use ipv6 || mymakeopts="${mymakeopts} NOINET6= "
37 use kerberos || mymakeopts="${mymakeopts} NO_KERBEROS= "
38 use nis || mymakeopts="${mymakeopts} NO_NIS= "
39 }
40
41 src_unpack() {
42 unpack ${A}
43
44 cd ${S}
45 epatch ${FILESDIR}/${PN}-bsdcmp.patch
46 epatch ${FILESDIR}/${PN}-fixmakefiles.patch
47 epatch ${FILESDIR}/${PN}-setXid.patch
48 epatch ${FILESDIR}/${PN}-lint-stdarg.patch
49 epatch ${FILESDIR}/${PN}-flex.patch
50
51 # Here we remove some sources we don't need because they are already
52 # provided by portage's packages or similar. In order:
53 # - Archiving tools, provided by their own ebuilds
54 # - ncurses stuff
55 # - less stuff
56 # - bind utils
57 # and the rest are misc utils we already provide somewhere else.
58 dummy_mk \
59 bzip2 bzip2recover tar \
60 tput tset \
61 less lessecho lesskey \
62 dig nslookup nsupdate host \
63 compile_et lex vi smbutil file vacation nc ftp
64
65 # Rename manpage for renamed cmp
66 mv ${S}/cmp/cmp.1 ${S}/cmp/bsdcmp.1
67 }
68
69 src_compile() {
70 # ATM -fomit-frame pointer is incompatible with
71 # a flag (-pg) used to build libbind.
72 filter-flags "-fomit-frame-pointer"
73
74 cd ${WORKDIR}/lib/libtelnet
75 fmake || die "fmake libtelnet failed"
76
77 cd ${S}
78 einfo "Building package"
79 fmake || die "fmake failed"
80 }
81
82 src_install() {
83 cd ${S}
84 fmake DESTDIR=${D} install || die "Install failed"
85
86 for pamdfile in login passwd rsh su; do
87 newpamd "${FILESDIR}/${pamdfile}.pamd" ${pamdfile}
88 done
89 }
90

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20