blob: ff73fbf563b990fb776bc5a5d0e0ee9f89a588b8 (
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
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit bsdmk freebsd pam multilib multibuild multilib-build
DESCRIPTION="FreeBSD libexec things"
SLOT="0"
KEYWORDS="~amd64-fbsd ~x86-fbsd"
SRC_URI="mirror://gentoo/${LIBEXEC}.tar.bz2
mirror://gentoo/${UBIN}.tar.bz2
mirror://gentoo/${BIN}.tar.bz2
mirror://gentoo/${CONTRIB}.tar.bz2
mirror://gentoo/${LIB}.tar.bz2
mirror://gentoo/${ETC}.tar.bz2
mirror://gentoo/${USBIN}.tar.bz2"
RDEPEND="=sys-freebsd/freebsd-lib-${RV}*
>=sys-freebsd/freebsd-lib-9.1-r11[${MULTILIB_USEDEP}]
pam? ( virtual/pam )"
DEPEND="${RDEPEND}
=sys-freebsd/freebsd-mk-defs-${RV}*
=sys-freebsd/freebsd-sources-${RV}*"
RDEPEND="${RDEPEND}
xinetd? ( sys-apps/xinetd )"
S="${WORKDIR}/libexec"
# Remove sendmail, tcp_wrapper and other useless stuff
REMOVE_SUBDIRS="smrsh mail.local tcpd telnetd rshd rlogind lukemftpd ftpd"
IUSE="pam ssl kerberos ipv6 nis xinetd"
pkg_setup() {
use ipv6 || mymakeopts="${mymakeopts} WITHOUT_INET6= WITHOUT_INET6_SUPPORT= "
use kerberos || mymakeopts="${mymakeopts} WITHOUT_KERBEROS_SUPPORT= "
use nis || mymakeopts="${mymakeopts} WITHOUT_NIS= "
use pam || mymakeopts="${mymakeopts} WITHOUT_PAM_SUPPORT= "
use ssl || mymakeopts="${mymakeopts} WITHOUT_OPENSSL= "
mymakeopts="${mymakeopts} WITHOUT_SENDMAIL= WITHOUT_PF= WITHOUT_RCMDS= "
}
src_prepare() {
ln -s /usr/include "${WORKDIR}/include"
}
setup_multilib_vars() {
if ! multilib_is_native_abi ; then
cd "${WORKDIR}/libexec/rtld-elf" || die
export mymakeopts="${mymakeopts} PROG=ld-elf32.so.1"
else
cd "${S}"
fi
"$@"
}
src_compile() {
local MULTIBUILD_VARIANTS=( $(multilib_get_enabled_abis) )
multibuild_foreach_variant freebsd_multilib_multibuild_wrapper setup_multilib_vars freebsd_src_compile
}
src_install() {
local MULTIBUILD_VARIANTS=( $(multilib_get_enabled_abis) )
multibuild_foreach_variant freebsd_multilib_multibuild_wrapper setup_multilib_vars freebsd_src_install
insinto /etc
doins "${WORKDIR}/etc/gettytab"
newinitd "${FILESDIR}/bootpd.initd" bootpd
newconfd "${FILESDIR}/bootpd.confd" bootpd
if use xinetd; then
for rpcd in rstatd rusersd walld rquotad sprayd; do
insinto /etc/xinetd.d
newins "${FILESDIR}/${rpcd}.xinetd" ${rpcd}
done
fi
}
|