/[gentoo-alt]/trunk/sys-apps/freebsd-usbin/freebsd-usbin-5.3.ebuild
Gentoo

Contents of /trunk/sys-apps/freebsd-usbin/freebsd-usbin-5.3.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: 3557 byte(s)
Updated to use gentoo's mirrors and freebsd-utils eclass.

1 # Copyright 1999-2004 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header$
4
5 inherit freebsd-utils flag-o-matic eutils
6
7 MY_PATCH=${PN}-5.3_rc1
8
9 DESCRIPTION="FreeBSD /usr/sbin tools"
10 HOMEPAGE="http://www.freebsd.org/"
11 SRC_URI="mirror://gentoo/${P}.tar.bz2
12 mirror://gentoo/${CONTRIB}.tar.bz2
13 mirror://gentoo/${UBIN}.tar.bz2
14 mirror://gentoo/${LIB}.tar.bz2
15 mirror://gentoo/${SBIN}.tar.bz2
16 mirror://gentoo/${LIBEXEC}.tar.bz2
17 mirror://gentoo/${GNU}.tar.bz2"
18
19 LICENSE="BSD"
20 SLOT="0"
21 KEYWORDS="~x86-fbsd"
22 IUSE=""
23 DEPEND="=sys-devel/freebsd-mk-defs-5.3*
24 =sys-libs/freebsd-lib-5.3*
25 =sys-libs/freebsd-libexec-5.3*
26 =sys-kernel/freebsd-sources-5.3*
27 =sys-kernel/freebsd-headers-5.3*"
28 PROVIDE="virtual/cron"
29
30 S=${WORKDIR}/usr.sbin
31
32 src_unpack() {
33 unpack ${P}.tar.bz2
34 unpack ${CONTRIB}.tar.bz2
35 unpack ${UBIN}.tar.bz2
36 unpack ${LIB}.tar.bz2
37 unpack ${LIBEXEC}.tar.bz2
38 unpack ${SBIN}.tar.bz2
39 unpack ${GNU}.tar.bz2
40
41 # Changel locations to /usr/src
42 cd ${S}/acpi
43 epatch ${FILESDIR}/${MY_PATCH}-makefileinc.patch
44 cd ${S}/arlcontrol
45 epatch ${FILESDIR}/${MY_PATCH}-arlcontrol-makefile.patch
46 cd ${S}/dconschat
47 epatch ${FILESDIR}/${MY_PATCH}-dconschat-makefile.patch
48 cd ${S}/fwcontrol
49 epatch ${FILESDIR}/${MY_PATCH}-fwcontrol-makefile.patch
50 cd ${S}/ipftest
51 epatch ${FILESDIR}/${MY_PATCH}-ipftest-makefile.patch
52 cd ${S}/ipresend
53 epatch ${FILESDIR}/${MY_PATCH}-ipresend-makefile.patch
54 cd ${S}/ipsend
55 epatch ${FILESDIR}/${MY_PATCH}-ipsend-makefile.patch
56 cd ${S}/iptest
57 epatch ${FILESDIR}/${MY_PATCH}-iptest-makefile.patch
58 cd ${S}/mlxcontrol
59 epatch ${FILESDIR}/${MY_PATCH}-mlxcontrol-makefile.patch
60 cd ${S}/pciconf
61 epatch ${FILESDIR}/${MY_PATCH}-pciconf-makefile.patch
62 cd ${S}/raycontrol
63 epatch ${FILESDIR}/${MY_PATCH}-raycontrol-makefile.patch
64 cd ${S}/pnpinfo
65 epatch ${FILESDIR}/${MY_PATCH}-pnpinfo-makefile.patch
66 cd ${S}/sicontrol
67 epatch ${FILESDIR}/${MY_PATCH}-sicontrol-makefile.patch
68 cd ${S}/ndiscvt
69 epatch ${FILESDIR}/${MY_PATCH}-ndiscvt-makefile.patch
70 cd ${S}/setkey
71 epatch ${FILESDIR}/${MY_PATCH}-setkey-makefile.patch
72 cd ${S}/sysinstall
73 epatch ${FILESDIR}/${MY_PATCH}-sysinstall-makefile.patch
74
75 # Change location to /usr/include
76 cd ${S}/rpc.ypxfrd
77 epatch ${FILESDIR}/${MY_PATCH}-rpc.ypxfrd-makefile.patch
78 cd ${S}/yppush
79 epatch ${FILESDIR}/${MY_PATCH}-yppush-makefile.patch
80 cd ${S}/ypserv
81 epatch ${FILESDIR}/${MY_PATCH}-ypserv-makefile.patch
82
83 # Do not intall mailwrapper configuration file
84 # (would, probably, be a problem when working w/
85 # sandbox)
86 cd ${S}/mailwrapper
87 epatch ${FILESDIR}/${MY_PATCH}-mailwrapper-makefile.patch
88
89 # Installation related patches
90 cd ${S}/nologin
91 epatch ${FILESDIR}/${MY_PATCH}-nologin-makefile.patch
92 cd ${S}/pcvt/keycap
93 epatch ${FILESDIR}/${MY_PATCH}-pcvt_keycap-makefile.patch
94 }
95
96 src_compile() {
97 # For libbind
98 filter-flags "-fomit-frame-pointer"
99 # kldxref does not build with -O2
100 replace-flags "-O?" "-O1"
101
102 einfo "Building library dependencies for this package"
103 cd ${WORKDIR}/lib/bind
104 emake || die "emake libbind failed"
105 cd ${WORKDIR}/lib/libsm
106 emake || die "emake libsm failed"
107 cd ${WORKDIR}/lib/libsmdb
108 emake || die "emake libsmdb failed"
109 cd ${WORKDIR}/lib/libsmutil
110 emake || die "emake libsmdb failed"
111
112 einfo "Building package now"
113 cd ${S}
114 emake || die "emake failed"
115 }
116
117 src_install() {
118 # By creating these two directories we avoid having to do a
119 # more complex hack inside lpr/SMM.doc and nologin makefiles.
120 dodir ${D}/usr/share/doc
121 dodir ${D}/sbin
122 emake DESTDIR=${D} install || die "Install failed"
123 }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20