blob: 2030f64dcae4be845e6154ac1ad5c7dee2597e8d (
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
90
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sbin/freebsd-sbin-9.0_rc2.ebuild,v 1.1 2011/12/07 17:09:16 aballier Exp $
EAPI=2
inherit bsdmk freebsd
DESCRIPTION="FreeBSD sbin utils"
KEYWORDS="~sparc-fbsd ~x86-fbsd"
SLOT="0"
SRC_URI="mirror://gentoo/${SBIN}.tar.bz2
mirror://gentoo/${CONTRIB}.tar.bz2
mirror://gentoo/${LIB}.tar.bz2
mirror://gentoo/${LIBEXEC}.tar.bz2
mirror://gentoo/${USBIN}.tar.bz2
mirror://gentoo/${ETC}.tar.bz2
build? ( mirror://gentoo/${SYS}.tar.bz2 )"
RDEPEND="=sys-freebsd/freebsd-lib-${RV}*[ipv6?,atm?,netware?]
=sys-freebsd/freebsd-libexec-${RV}*
>=dev-libs/expat-2.0.1
ssl? ( dev-libs/openssl )
sys-libs/readline
sys-process/vixie-cron
atm? ( net-analyzer/bsnmp )"
DEPEND="${RDEPEND}
!build? ( =sys-freebsd/freebsd-sources-${RV}* )
=sys-freebsd/freebsd-mk-defs-${RV}*"
S="${WORKDIR}/sbin"
IUSE="atm ipfilter +pf ipv6 build ssl +cxx netware"
pkg_setup() {
use atm || mymakeopts="${mymakeopts} WITHOUT_ATM= "
use cxx || mymakeopts="${mymakeopts} WITHOUT_CXX="
use ipfilter || mymakeopts="${mymakeopts} WITHOUT_IPFILTER= "
use ipv6 || mymakeopts="${mymakeopts} WITHOUT_INET6= WITHOUT_INET6_SUPPORT="
use netware || mymakeopts="${mymakeopts} WITHOUT_IPX= WITHOUT_IPX_SUPPORT= WITHOUT_NCP= "
use pf || mymakeopts="${mymakeopts} WITHOUT_PF= "
use ssl || mymakeopts="${mymakeopts} WITHOUT_OPENSSL="
}
REMOVE_SUBDIRS="dhclient pfctl pflogd rcorder"
PATCHES=( "${FILESDIR}/${PN}-setXid.patch"
"${FILESDIR}/${PN}-7.1-zlib.patch"
"${FILESDIR}/${PN}-6.2-ldconfig.patch"
"${FILESDIR}/${PN}-6.1-pr102701.patch"
"${FILESDIR}/${PN}-bsdxml2expat.patch" )
src_prepare() {
use build || ln -s "/usr/src/sys-${RV}" "${WORKDIR}/sys"
}
src_install() {
freebsd_src_install
keepdir /var/log
# Needed by ldconfig:
keepdir /var/run
# Maybe ship our own sysctl.conf so things like radvd work out of the box.
# New wireless config method requires regdomain.xml in /etc
cd "${WORKDIR}/etc/"
insinto /etc
doins minfree sysctl.conf regdomain.xml || die
# initd script for idmapd
newinitd "${FILESDIR}/idmapd.initd" idmapd
# Install a crontab for adjkerntz
insinto /etc/cron.d
newins "${FILESDIR}/adjkerntz-crontab" adjkerntz
# Install the periodic stuff (needs probably to be ported in a more
# gentooish way)
cd "${WORKDIR}/etc/periodic"
doperiodic security \
security/*.ipfwlimit \
security/*.ipfwdenied || die
use ipfilter && { doperiodic security \
security/*.ipfdenied || die ; }
use pf && { doperiodic security \
security/*.pfdenied || die ; }
}
|