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

Contents of /trunk/sys-apps/freebsd-usbin/freebsd-usbin-5.3.20050301.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


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

1 # Copyright 1999-2005 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 cron
6
7 BASE_VER=5.3
8 MY_PATCH=${PN}-${BASE_VER}_rc1
9
10 DESCRIPTION="FreeBSD /usr/sbin tools"
11 HOMEPAGE="http://www.freebsd.org/"
12 SRC_URI="mirror://gentoo/${P}.tar.bz2
13 mirror://gentoo/${CONTRIB}.tar.bz2
14 mirror://gentoo/${UBIN}.tar.bz2
15 mirror://gentoo/${LIB}.tar.bz2
16 mirror://gentoo/${SBIN}.tar.bz2
17 mirror://gentoo/${LIBEXEC}.tar.bz2
18 mirror://gentoo/${GNU}.tar.bz2"
19
20 LICENSE="BSD"
21 SLOT="0"
22 KEYWORDS="~x86-fbsd"
23 IUSE="atm bluetooth crypt ssl sendmail usb bind named dnssec bind-utils ipv6
24 pf acpi lpr ipfilter isdn pam ssl radius netgraph minimal suid ipsec"
25
26 DEPEND="=sys-devel/freebsd-mk-defs-5.3*
27 =sys-libs/freebsd-lib-5.3*
28 =sys-libs/freebsd-libexec-5.3*
29 =sys-kernel/freebsd-sources-5.3*
30 =sys-kernel/freebsd-headers-5.3*
31 ssl? ( =sys-apps/freebsd-crypto-5.3* )
32 sendmail? ( net-mail/mailbase )
33 sys-process/cronbase"
34
35 PROVIDE="virtual/cron
36 lpr? virtual/lpr
37 sendmail? virtual/mta"
38
39 S=${WORKDIR}/usr.sbin
40
41 pkg_setup() {
42 if ! use bind && ( use named || use dnssec || use bind-utils ); then
43 eerror "Please enable bind if you want to use named, dnssec or bind-utils"
44 fi
45
46 # Release crunch is something like minimal. It seems to remove everything
47 # which is not needed to work.
48 use minimal && mymakeopts="${mymakeopts} RELEASE_CRUNCH= "
49
50 use atm || mymakeopts="${mymakeopts} NO_ATM= "
51 use bluetooth || mymakeopts="${mymakeopts} NO_BLUETOOTH= "
52 use bind || mymakeopts="${mymakeopts} NO_BIND= "
53 use dnssec || mymakeopts="${mymakeopts} NO_BIND_DNSSEC= "
54 use named || mymakeopts="${mymakeopts} NO_BIND_NAMED= "
55 use ipv6 || mymakeopts="${mymakeopts} NOINET6= "
56 use ipfilter || mymakeopts="${mymakeopts} NO_IPFILTER= "
57 use pf || mymakeopts="${mymakeopts} NO_PF= "
58 use lpr || mymakeopts="${mymakeopts} NO_LPR= "
59 use crypt || mymakeopts="${mymakeopts} NOCRYPT= "
60 use ssl || mymakeopts="${mymakeopts} NO_OPENSSL= "
61 use sendmail || mymakeopts="${mymakeopts} NO_SENDMAIL= "
62 use usb || mymakeopts="${mymakeopts} NO_USB= "
63 use acpi || mymakeopts="${mymakeopts} NO_ACPI= "
64 use isdn || mymakeopts="${mymakeopts} NO_I4B= "
65 use pam || mymakeopts="${mymakeopts} NOPAM= "
66 use ssl || mymakeopts="${mymakeopts} NO_OPENSSL= "
67 use radius || mymakeopts="${mymakeopts} NORADIUS= "
68 use suid || mymakeopts="${mymakeopts} NOSUID= "
69 use ipsec || mymakeopts="${mymakeopts} NOIPSEC= "
70 }
71
72 src_unpack() {
73 unpack ${A}
74
75 # Changel locations to /usr/src
76 cd ${S}/acpi
77 epatch ${FILESDIR}/${MY_PATCH}-makefileinc.patch
78 cd ${S}/arlcontrol
79 epatch ${FILESDIR}/${MY_PATCH}-arlcontrol-makefile.patch
80 cd ${S}/dconschat
81 epatch ${FILESDIR}/${MY_PATCH}-dconschat-makefile.patch
82 cd ${S}/fwcontrol
83 epatch ${FILESDIR}/${MY_PATCH}-fwcontrol-makefile.patch
84 cd ${S}/ipftest
85 epatch ${FILESDIR}/${MY_PATCH}-ipftest-makefile.patch
86 cd ${S}/ipresend
87 epatch ${FILESDIR}/${MY_PATCH}-ipresend-makefile.patch
88 cd ${S}/ipsend
89 epatch ${FILESDIR}/${MY_PATCH}-ipsend-makefile.patch
90 cd ${S}/iptest
91 epatch ${FILESDIR}/${MY_PATCH}-iptest-makefile.patch
92 cd ${S}/mlxcontrol
93 epatch ${FILESDIR}/${MY_PATCH}-mlxcontrol-makefile.patch
94 cd ${S}/pciconf
95 epatch ${FILESDIR}/${MY_PATCH}-pciconf-makefile.patch
96 cd ${S}/raycontrol
97 epatch ${FILESDIR}/${MY_PATCH}-raycontrol-makefile.patch
98 cd ${S}/pnpinfo
99 epatch ${FILESDIR}/${MY_PATCH}-pnpinfo-makefile.patch
100 cd ${S}/sicontrol
101 epatch ${FILESDIR}/${MY_PATCH}-sicontrol-makefile.patch
102 cd ${S}/ndiscvt
103 epatch ${FILESDIR}/${MY_PATCH}-ndiscvt-makefile.patch
104 cd ${S}/setkey
105 epatch ${FILESDIR}/${MY_PATCH}-setkey-makefile.patch
106 cd ${S}/sysinstall
107 epatch ${FILESDIR}/${MY_PATCH}-sysinstall-makefile.patch
108
109 # Change location to /usr/include
110 cd ${S}/rpc.ypxfrd
111 epatch ${FILESDIR}/${MY_PATCH}-rpc.ypxfrd-makefile.patch
112 cd ${S}/yppush
113 epatch ${FILESDIR}/${MY_PATCH}-yppush-makefile.patch
114 cd ${S}/ypserv
115 epatch ${FILESDIR}/${MY_PATCH}-ypserv-makefile.patch
116
117 # Do not intall mailwrapper configuration file
118 # (would, probably, be a problem when working w/
119 # sandbox)
120 cd ${S}/mailwrapper
121 epatch ${FILESDIR}/${MY_PATCH}-mailwrapper-makefile.patch
122
123 cd ${S}/pcvt/keycap
124 epatch ${FILESDIR}/${MY_PATCH}-pcvt_keycap-makefile.patch
125
126 cd ${S}
127 epatch ${FILESDIR}/${PN}-${BASE_VER}-r1-makefile-docpaths.patch
128 epatch ${FILESDIR}/${PN}-cron-gentoo-location.patch
129 }
130
131 src_compile() {
132 # For libbind
133 filter-flags "-fomit-frame-pointer"
134 # kldxref does not build with -O2
135 replace-flags "-O?" "-O1"
136
137 append-ldflags -z,now
138
139 einfo "Building library dependencies for this package"
140 if use bind; then
141 cd ${WORKDIR}/lib/bind
142 fmake || die "fmake libbind failed"
143 fi
144
145 if use sendmail; then
146 cd ${WORKDIR}/lib/libsm
147 fmake || die "fmake libsm failed"
148 cd ${WORKDIR}/lib/libsmdb
149 fmake || die "fmake libsmdb failed"
150 cd ${WORKDIR}/lib/libsmutil
151 fmake || die "fmake libsmdb failed"
152 fi
153
154 einfo "Building package now"
155 cd ${S}
156 fmake || die "fmake failed"
157 }
158
159 src_install() {
160 docrondir -m0750
161 newinitd ${FILESDIR}/vixie-cron.rc6 freebsd-cron
162 insinto /etc; doins ${FILESDIR}/crontab
163
164 # By creating these two directories we avoid having to do a
165 # more complex hack inside lpr/SMM.doc and nologin makefiles.
166 dodir /usr/share/doc
167 dodir /sbin
168 dodir /usr/libexec
169
170 # FILESDIR is used by some makefiles which will install files
171 # in the wrong place, just put it in the doc directory.
172 fmake DESTDIR=${D} DOCDIR=/usr/share/doc/${PF} install || die "Install failed"
173 }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20