/[gentoo-alt]/trunk/overlay/sys-freebsd/freebsd-sbin/freebsd-sbin-6.0.ebuild
Gentoo

Contents of /trunk/overlay/sys-freebsd/freebsd-sbin/freebsd-sbin-6.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1034 - (show annotations) (download)
Mon Feb 13 16:54:39 2006 UTC (8 years, 5 months ago) by flameeyes
File size: 1799 byte(s)
Add ipf scripts only if ipfilter is enabled.
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 minfree
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/*.ip6fwlimit \
70 security/*.ip6fwdenied \
71 security/*.ipfwdenied
72
73 use ipfilter && doperiodic security \
74 security/*.ipf6denied \
75 security/*.ipfdenied
76 }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20