/[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 194 - (show annotations) (download)
Fri Dec 17 20:14:33 2004 UTC (13 years, 11 months ago) by spb
File size: 3724 byte(s)
blah

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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20