blob: f639c3e18046c76a423c27ce46568c1052de0335 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-ubin/freebsd-ubin-6.0-r1.ebuild,v 1.2 2006/04/02 21:09:48 flameeyes Exp $
inherit bsdmk freebsd flag-o-matic pam
DESCRIPTION="FreeBSD's base system source for /usr/bin"
SLOT="0"
KEYWORDS="~x86-fbsd"
IUSE="atm bluetooth ssl usb nls ipv6 kerberos nis"
SRC_URI="mirror://gentoo/${UBIN}.tar.bz2
mirror://gentoo/${CONTRIB}.tar.bz2
mirror://gentoo/${LIB}.tar.bz2
mirror://gentoo/${ETC}.tar.bz2
mirror://gentoo/${BIN}.tar.bz2"
RDEPEND="ssl? ( dev-libs/openssl )
kerberos? ( virtual/krb5 )
sys-libs/zlib
virtual/pam
virtual/cron"
DEPEND="${RDEPEND}
sys-devel/flex
=sys-freebsd/freebsd-sources-${RV}*
=sys-freebsd/freebsd-headers-${RV}*
=sys-freebsd/freebsd-mk-defs-${RV}*"
S=${WORKDIR}/usr.bin
pkg_setup() {
use nls || mymakeopts="${mymakeopts} NO_NLS= "
use atm || mymakeopts="${mymakeopts} NO_ATM= "
use bluetooth || mymakeopts="${mymakeopts} NO_BLUETOOTH= "
use ssl || mymakeopts="${mymakeopts} NO_OPENSSL= NO_CRYPT= "
use usb || mymakeopts="${mymakeopts} NO_USB= "
use ipv6 || mymakeopts="${mymakeopts} NO_INET6= "
use kerberos || mymakeopts="${mymakeopts} NO_KERBEROS= "
use nis || mymakeopts="${mymakeopts} NO_NIS= "
mymakeopts="${mymakeopts} NO_SENDMAIL= "
}
# List of patches to apply
PATCHES="${FILESDIR}/${PN}-${RV}-bsdcmp.patch
${FILESDIR}/${PN}-${RV}-fixmakefiles.patch
${FILESDIR}/${PN}-setXid.patch
${FILESDIR}/${PN}-lint-stdarg.patch
${FILESDIR}/SA-06-02-ee.patch"
# Here we remove some sources we don't need because they are already
# provided by portage's packages or similar. In order:
# - Archiving tools, provided by their own ebuilds
# - ncurses stuff
# - less stuff
# - bind utils
# - rsh stuff
# and the rest are misc utils we already provide somewhere else.
REMOVE_SUBDIRS="bzip2 bzip2recover tar
tput tset
less lessecho lesskey
dig nslookup nsupdate host
rsh rlogin rusers rwho ruptime
compile_et lex vi smbutil file vacation nc ftp telnet"
src_unpack() {
freebsd_src_unpack
ln -s "/usr/src/sys-${RV}" "${WORKDIR}/sys"
# Rename manpage for renamed cmp
mv ${S}/cmp/cmp.1 ${S}/cmp/bsdcmp.1
}
src_install() {
freebsd_src_install
for pamdfile in login passwd su; do
newpamd "${FILESDIR}/${pamdfile}.pamd" ${pamdfile}
done
cd "${WORKDIR}/etc"
insinto /etc
doins remote phones opieaccess fbtab
exeinto /etc/cron.daily
newexe "${FILESDIR}/locate-updatedb-cron" locate.updatedb
}
|