/[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 182 - (show annotations) (download)
Wed Dec 1 21:08:51 2004 UTC (13 years, 11 months ago) by spb
File size: 3707 byte(s)
fixed broken SRC_URIs

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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20