/[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 265 - (show annotations) (download)
Thu Mar 17 18:31:54 2005 UTC (9 years, 9 months ago) by angusyoung
File size: 2623 byte(s)
New ebuilds based on updated sources. Release -r1 contains support for USE Flags thus closing bug 84904

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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20