/[gentoo-alt]/trunk/sys-apps/freebsd-sbin/freebsd-sbin-5.3.20050301-r1.ebuild
Gentoo

Contents of /trunk/sys-apps/freebsd-sbin/freebsd-sbin-5.3.20050301-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 441 - (show annotations) (download)
Wed Jun 8 16:59:52 2005 UTC (9 years, 6 months ago) by flameeyes
File size: 2538 byte(s)
Updated to use gentoo's mirrors and freebsd-utils eclass.

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header$
4
5 inherit flag-o-matic freebsd-utils
6
7 MY_PATCH=${PN}-5.3_rc1
8
9 DESCRIPTION="FreeBSD sbin utils"
10 SRC_URI="mirror://gentoo/${SBIN}.tar.bz2
11 mirror://gentoo/${CONTRIB}.tar.bz2
12 mirror://gentoo/${LIB}.tar.bz2
13 mirror://gentoo/${LIBEXEC}.tar.bz2
14 mirror://gentoo/${USBIN}.tar.bz2"
15
16 DEPEND="=sys-kernel/freebsd-sources-5.3*
17 =sys-kernel/freebsd-headers-5.3*
18 =sys-devel/freebsd-mk-defs-5.3*
19 =sys-libs/freebsd-lib-5.3*
20 =sys-libs/freebsd-libexec-5.3*
21 ssl? ( =sys-apps/freebsd-crypto-5.3* )"
22
23 PROVIDE="!nocxx? virtual/dev-manager
24 virtual/dhcpc"
25
26 S=${WORKDIR}/sbin
27
28 IUSE="atm nocxx ipfilter pf ipv6 vinum suid"
29
30 pkg_setup() {
31 use atm || mymakeopts="${mymakeopts} NO_ATM= "
32 use nocxx || mymakeopts="${mymakeopts} NO_CXX= "
33 use ipfilter || mymakeopts="${mymakeopts} NO_IPFILTER= "
34 use pf || mymakeopts="${mymakeopts} NO_PF= "
35 use ipv6 || mymakeopts="${mymakeopts} NOINET6= "
36 use vinum || mymakeopts="${mymakeopts} NO_VINUM= "
37 use suid || mymakeopts="${mymakeopts} NOSUID= "
38 }
39
40 src_unpack() {
41 unpack ${A}
42
43 # Patches area
44 # Most patches just change makefiles to point to /usr/src/sys
45
46 cd ${S}/atm/atm
47 epatch ${FILESDIR}/${MY_PATCH}-atm-atm-makefile.patch
48 cd ${S}/atm/fore_dnld
49 epatch ${FILESDIR}/${MY_PATCH}-atm-fore_dnld-makefile.patch
50 cd ${S}/atm/ilmid
51 epatch ${FILESDIR}/${MY_PATCH}-atm-ilmid-makefile.patch
52
53 cd ${S}/bsdlabel
54 epatch ${FILESDIR}/${MY_PATCH}-bsdlabel-makefile.patch
55 cd ${S}/fsck_ffs
56 epatch ${FILESDIR}/${MY_PATCH}-fsck_ffs-makefile.patch
57 cd ${S}/fsdb
58 epatch ${FILESDIR}/${MY_PATCH}-fsdb-makefile.patch
59 cd ${S}/gbde
60 epatch ${FILESDIR}/${MY_PATCH}-gbde-makefile.patch
61 cd ${S}/sunlabel
62 epatch ${FILESDIR}/${MY_PATCH}-sunlabel-makefile.patch
63 cd ${S}/fdisk
64 epatch ${FILESDIR}/${MY_PATCH}-fdisk-makefile.patch
65
66 if use vinum ; then
67 cd ${S}/vinum
68 epatch ${FILESDIR}/${MY_PATCH}-vinum-makefile.patch
69 fi
70
71 cd ${S}/gvinum
72 epatch ${FILESDIR}/${MY_PATCH}-gvinum-makefile.patch
73
74 if use pf || use ipfilter ; then
75 cd ${S}/ipf
76 epatch ${FILESDIR}/${MY_PATCH}-ipf-makefile.patch
77 cd ${S}/ipfs
78 epatch ${FILESDIR}/${MY_PATCH}-ipfs-makefile.patch
79 cd ${S}/ipfstat
80 epatch ${FILESDIR}/${MY_PATCH}-ipfstat-makefile.patch
81 cd ${S}/ipmon
82 epatch ${FILESDIR}/${MY_PATCH}-ipmon-makefile.patch
83 cd ${S}/ipnat
84 epatch ${FILESDIR}/${MY_PATCH}-ipnat-makefile.patch
85 fi
86 }
87
88 src_compile() {
89 fmake || die "Compilation failed"
90 }
91
92 src_install() {
93 fmake DESTDIR=${D} install || die "Install failed"
94 }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20