| 1 |
# Copyright 1999-2005 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header$
|
| 4 |
|
| 5 |
inherit flag-o-matic bsdmk freebsd
|
| 6 |
|
| 7 |
DESCRIPTION="FreeBSD sbin utils"
|
| 8 |
KEYWORDS="~x86-fbsd"
|
| 9 |
SLOT="0"
|
| 10 |
|
| 11 |
SRC_URI="mirror://gentoo/${SBIN}.tar.bz2
|
| 12 |
mirror://gentoo/${CONTRIB}.tar.bz2
|
| 13 |
mirror://gentoo/${LIB}.tar.bz2
|
| 14 |
mirror://gentoo/${LIBEXEC}.tar.bz2
|
| 15 |
mirror://gentoo/${USBIN}.tar.bz2
|
| 16 |
mirror://gentoo/${ETC}.tar.bz2"
|
| 17 |
|
| 18 |
RDEPEND="=sys-freebsd/freebsd-lib-${RV}*
|
| 19 |
=sys-freebsd/freebsd-libexec-${RV}*
|
| 20 |
ssl? ( dev-libs/openssl )
|
| 21 |
sys-libs/readline"
|
| 22 |
DEPEND="${RDEPEND}
|
| 23 |
=sys-freebsd/freebsd-sources-${RV}*
|
| 24 |
=sys-freebsd/freebsd-headers-${RV}*
|
| 25 |
=sys-freebsd/freebsd-mk-defs-${RV}*"
|
| 26 |
|
| 27 |
PROVIDE="virtual/dev-manager
|
| 28 |
virtual/dhcpc"
|
| 29 |
|
| 30 |
S="${WORKDIR}/sbin"
|
| 31 |
|
| 32 |
IUSE="atm ipfilter ipv6 vinum suid"
|
| 33 |
|
| 34 |
pkg_setup() {
|
| 35 |
use atm || mymakeopts="${mymakeopts} NOATM= "
|
| 36 |
use ipfilter || mymakeopts="${mymakeopts} NO_IPFILTER= "
|
| 37 |
use ipv6 || mymakeopts="${mymakeopts} NOINET6= "
|
| 38 |
use vinum || mymakeopts="${mymakeopts} NO_VINUM= "
|
| 39 |
use suid || mymakeopts="${mymakeopts} NOSUID= "
|
| 40 |
|
| 41 |
# O3 breaks this, apparently
|
| 42 |
replace-flags -O3 -O2
|
| 43 |
}
|
| 44 |
|
| 45 |
REMOVE_SUBDIRS="dhclient pfctl pflogd"
|
| 46 |
|
| 47 |
PATCHES="${FILESDIR}/${PN}-setXid.patch
|
| 48 |
${FILESDIR}/${PN}-zlib.patch"
|
| 49 |
|
| 50 |
src_unpack() {
|
| 51 |
freebsd_src_unpack
|
| 52 |
ln -s "/usr/src/sys-${RV}" "${WORKDIR}/sys"
|
| 53 |
}
|
| 54 |
|
| 55 |
src_install() {
|
| 56 |
freebsd_src_install
|
| 57 |
keepdir /var/log
|
| 58 |
|
| 59 |
cd ${WORKDIR}/etc/
|
| 60 |
insinto /etc
|
| 61 |
doins devd.conf pccard_ether defaults/pccard.conf
|
| 62 |
|
| 63 |
# Install the periodic stuff (needs probably to be ported in a more
|
| 64 |
# gentooish way)
|
| 65 |
cd "${WORKDIR}/etc/periodic"
|
| 66 |
|
| 67 |
doperiodic security \
|
| 68 |
security/*.ipfwlimit \
|
| 69 |
security/*.ipf6denied \
|
| 70 |
security/*.ip6fwlimit \
|
| 71 |
security/*.ip6fwdenied \
|
| 72 |
security/*.ipfdenied \
|
| 73 |
security/*.ipfwdenied
|
| 74 |
}
|