Gentoo Archives: gentoo-commits

From: Yuta SATOH <nigoro.gentoo@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gentoo-bsd:master commit in: sys-freebsd/freebsd-rescue/, sys-freebsd/freebsd-pf/, sys-freebsd/freebsd-ubin/, ...
Date: Thu, 23 Aug 2012 11:05:49
Message-Id: 1345648829.347eeb9438c4435e383e3686eac484208ea079d8.yuta_satoh@gentoo
1 commit: 347eeb9438c4435e383e3686eac484208ea079d8
2 Author: Yuta SATOH <nigoro <AT> gentoo <DOT> gr <DOT> jp>
3 AuthorDate: Wed Aug 22 15:20:29 2012 +0000
4 Commit: Yuta SATOH <nigoro.gentoo <AT> 0x100 <DOT> com>
5 CommitDate: Wed Aug 22 15:20:29 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-bsd.git;a=commit;h=347eeb94
7
8 remove obsolete freebsd 8.1 ebuilds
9
10 ---
11 sys-freebsd/boot0/boot0-8.1.ebuild | 52 ---
12 sys-freebsd/freebsd-bin/freebsd-bin-8.1.ebuild | 34 --
13 sys-freebsd/freebsd-cddl/freebsd-cddl-8.1.ebuild | 49 ---
14 .../freebsd-contrib/freebsd-contrib-8.1.ebuild | 56 ---
15 sys-freebsd/freebsd-lib/freebsd-lib-8.1.ebuild | 419 --------------------
16 .../freebsd-libexec/freebsd-libexec-8.1.ebuild | 65 ---
17 .../freebsd-mk-defs/freebsd-mk-defs-8.1.ebuild | 41 --
18 .../freebsd-pam-modules-8.1.ebuild | 48 ---
19 sys-freebsd/freebsd-pf/freebsd-pf-8.1.ebuild | 65 ---
20 .../freebsd-rescue/freebsd-rescue-8.1.ebuild | 49 ---
21 sys-freebsd/freebsd-sbin/freebsd-sbin-8.1.ebuild | 91 -----
22 sys-freebsd/freebsd-share/freebsd-share-8.1.ebuild | 85 ----
23 .../freebsd-sources/freebsd-sources-8.1.ebuild | 99 -----
24 sys-freebsd/freebsd-ubin/freebsd-ubin-8.1.ebuild | 146 -------
25 sys-freebsd/freebsd-usbin/freebsd-usbin-8.1.ebuild | 170 --------
26 15 files changed, 0 insertions(+), 1469 deletions(-)
27
28 diff --git a/sys-freebsd/boot0/boot0-8.1.ebuild b/sys-freebsd/boot0/boot0-8.1.ebuild
29 deleted file mode 100644
30 index baed3c7..0000000
31 --- a/sys-freebsd/boot0/boot0-8.1.ebuild
32 +++ /dev/null
33 @@ -1,52 +0,0 @@
34 -# Copyright 1999-2010 Gentoo Foundation
35 -# Distributed under the terms of the GNU General Public License v2
36 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/boot0/boot0-8.0.ebuild,v 1.1 2010/03/19 11:51:04 aballier Exp $
37 -
38 -EAPI=2
39 -
40 -inherit bsdmk freebsd flag-o-matic
41 -
42 -DESCRIPTION="FreeBSD's bootloader"
43 -SLOT="0"
44 -KEYWORDS="~sparc-fbsd ~x86-fbsd"
45 -
46 -IUSE="bzip2 ieee1394 tftp zfs"
47 -
48 -SRC_URI="mirror://gentoo/${SYS}.tar.bz2"
49 -
50 -RDEPEND=""
51 -DEPEND="=sys-freebsd/freebsd-mk-defs-${RV}*
52 - =sys-freebsd/freebsd-lib-${RV}*"
53 -
54 -S="${WORKDIR}/sys/boot"
55 -
56 -boot0_use_enable() {
57 - use ${1} && mymakeopts="${mymakeopts} LOADER_${2}_SUPPORT=\"yes\""
58 -}
59 -
60 -pkg_setup() {
61 - boot0_use_enable ieee1394 FIREWIRE
62 - boot0_use_enable zfs ZFS
63 - boot0_use_enable tftp TFTP
64 - boot0_use_enable bzip2 BZIP2
65 -}
66 -
67 -src_prepare() {
68 - sed -e '/-fomit-frame-pointer/d' -e '/-mno-align-long-strings/d' \
69 - -i "${S}"/i386/boot2/Makefile \
70 - -i "${S}"/i386/gptboot/Makefile \
71 - -i "${S}"/i386/gptzfsboot/Makefile \
72 - -i "${S}"/i386/zfsboot/Makefile || die
73 -}
74 -
75 -src_compile() {
76 - strip-flags
77 - append-flags "-I/usr/include/libstand/"
78 - append-flags "-fno-strict-aliasing"
79 - NOFLAGSTRIP="yes" freebsd_src_compile
80 -}
81 -
82 -src_install() {
83 - dodir /boot/defaults
84 - mkinstall FILESDIR=/boot || die "mkinstall failed"
85 -}
86
87 diff --git a/sys-freebsd/freebsd-bin/freebsd-bin-8.1.ebuild b/sys-freebsd/freebsd-bin/freebsd-bin-8.1.ebuild
88 deleted file mode 100644
89 index bd7a45c..0000000
90 --- a/sys-freebsd/freebsd-bin/freebsd-bin-8.1.ebuild
91 +++ /dev/null
92 @@ -1,34 +0,0 @@
93 -# Copyright 1999-2010 Gentoo Foundation
94 -# Distributed under the terms of the GNU General Public License v2
95 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-bin/freebsd-bin-8.0.ebuild,v 1.1 2010/03/19 11:50:56 aballier Exp $
96 -
97 -inherit bsdmk freebsd
98 -
99 -DESCRIPTION="FreeBSD /bin tools"
100 -SLOT="0"
101 -KEYWORDS="~sparc-fbsd ~x86-fbsd"
102 -
103 -IUSE=""
104 -
105 -SRC_URI="mirror://gentoo/${BIN}.tar.bz2
106 - mirror://gentoo/${SBIN}.tar.bz2
107 - mirror://gentoo/${LIB}.tar.bz2"
108 -
109 -RDEPEND="=sys-freebsd/freebsd-lib-${RV}*
110 - dev-libs/libedit
111 - sys-libs/ncurses
112 - sys-apps/ed
113 - !app-misc/realpath
114 - !<sys-freebsd/freebsd-ubin-8"
115 -DEPEND="${RDEPEND}
116 - =sys-freebsd/freebsd-mk-defs-${RV}*
117 - >=sys-devel/flex-2.5.31-r2"
118 -
119 -S=${WORKDIR}/bin
120 -
121 -# csh and tcsh are provided by tcsh package, rmail is sendmail stuff.
122 -REMOVE_SUBDIRS="csh rmail ed"
123 -
124 -pkg_setup() {
125 - mymakeopts="${mymakeopts} WITHOUT_TCSH= WITHOUT_SENDMAIL= WITHOUT_RCMDS= "
126 -}
127
128 diff --git a/sys-freebsd/freebsd-cddl/freebsd-cddl-8.1.ebuild b/sys-freebsd/freebsd-cddl/freebsd-cddl-8.1.ebuild
129 deleted file mode 100644
130 index b8d52a6..0000000
131 --- a/sys-freebsd/freebsd-cddl/freebsd-cddl-8.1.ebuild
132 +++ /dev/null
133 @@ -1,49 +0,0 @@
134 -# Copyright 1999-2010 Gentoo Foundation
135 -# Distributed under the terms of the GNU General Public License v2
136 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-cddl/freebsd-cddl-8.0.ebuild,v 1.2 2010/04/04 21:04:18 the_paya Exp $
137 -
138 -inherit bsdmk freebsd flag-o-matic eutils
139 -
140 -DESCRIPTION="FreeBSD CDDL (opensolaris/zfs) extra software"
141 -SLOT="0"
142 -KEYWORDS="~x86-fbsd"
143 -
144 -IUSE="build"
145 -LICENSE="CDDL"
146 -
147 -SRC_URI="mirror://gentoo/${P}.tar.bz2
148 - mirror://gentoo/${CONTRIB}.tar.bz2
149 - mirror://gentoo/${UBIN}.tar.bz2
150 - mirror://gentoo/${LIB}.tar.bz2
151 - mirror://gentoo/${SBIN}.tar.bz2
152 - mirror://gentoo/${SYS}.tar.bz2
153 - build? ( mirror://gentoo/${SYS}.tar.bz2
154 - mirror://gentoo/${INCLUDE}.tar.bz2 )"
155 -
156 -# sys is required.
157 -
158 -RDEPEND="=sys-freebsd/freebsd-lib-${RV}*
159 - =sys-freebsd/freebsd-libexec-${RV}*
160 - build? ( sys-apps/baselayout )
161 - dev-libs/libedit
162 - dev-libs/libelf"
163 -
164 -DEPEND="${RDEPEND}
165 - =sys-freebsd/freebsd-mk-defs-${RV}*
166 - !build? ( =sys-freebsd/freebsd-sources-${RV}* )"
167 -
168 -S="${WORKDIR}/cddl"
169 -
170 -PATCHES=( "${FILESDIR}/${PN}-8.0-libpaths.patch" )
171 -
172 -src_unpack() {
173 - freebsd_src_unpack
174 - # Link in include headers.
175 - ln -s "/usr/include" "${WORKDIR}/include" || die "Symlinking /usr/include.."
176 -}
177 -
178 -src_install() {
179 - freebsd_src_install
180 - # Install zfs volinit script.
181 - newinitd "${FILESDIR}"/zvol.initd zvol
182 -}
183
184 diff --git a/sys-freebsd/freebsd-contrib/freebsd-contrib-8.1.ebuild b/sys-freebsd/freebsd-contrib/freebsd-contrib-8.1.ebuild
185 deleted file mode 100644
186 index ba68a9b..0000000
187 --- a/sys-freebsd/freebsd-contrib/freebsd-contrib-8.1.ebuild
188 +++ /dev/null
189 @@ -1,56 +0,0 @@
190 -# Copyright 1999-2010 Gentoo Foundation
191 -# Distributed under the terms of the GNU General Public License v2
192 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-contrib/freebsd-contrib-8.0.ebuild,v 1.1 2010/03/19 11:50:58 aballier Exp $
193 -
194 -inherit bsdmk freebsd flag-o-matic
195 -
196 -DESCRIPTION="Contributed sources for FreeBSD."
197 -SLOT="0"
198 -KEYWORDS="~sparc-fbsd ~x86-fbsd"
199 -LICENSE="BSD GPL-2 as-is"
200 -
201 -IUSE=""
202 -
203 -SRC_URI="mirror://gentoo/${GNU}.tar.bz2
204 - mirror://gentoo/${P}.tar.bz2"
205 -
206 -RDEPEND=""
207 -DEPEND="=sys-freebsd/freebsd-sources-${RV}*
208 - =sys-freebsd/freebsd-mk-defs-${RV}*"
209 -
210 -S="${WORKDIR}/gnu"
211 -
212 -src_unpack() {
213 - echo ">>> Unpacking needed parts of ${GNU}.tar.bz2 to ${WORKDIR}"
214 - tar -jxpf "${DISTDIR}/${GNU}.tar.bz2" gnu/lib/libdialog gnu/usr.bin/sort gnu/usr.bin/patch
215 - echo ">>> Unpacking needed parts of ${CONTRIB}.tar.bz2 to ${WORKDIR}"
216 - tar -jxpf "${DISTDIR}/${CONTRIB}.tar.bz2" contrib/gnu-sort
217 -
218 - freebsd_do_patches
219 - freebsd_rename_libraries
220 -}
221 -
222 -src_compile() {
223 - cd "${S}/lib/libdialog"
224 - freebsd_src_compile
225 -
226 - cd "${S}/usr.bin/sort"
227 - freebsd_src_compile
228 -
229 - cd "${S}/usr.bin/patch"
230 - freebsd_src_compile
231 -}
232 -
233 -src_install() {
234 - use profile || mymakeopts="${mymakeopts} NO_PROFILE= "
235 - mymakeopts="${mymakeopts} NO_MANCOMPRESS= NO_INFOCOMPRESS= "
236 -
237 - cd "${S}/lib/libdialog"
238 - mkinstall || die "libdialog install failed"
239 -
240 - cd "${S}/usr.bin/sort"
241 - mkinstall BINDIR="/bin/" || die "libdialog install failed"
242 -
243 - cd "${S}/usr.bin/patch"
244 - mkinstall BINDIR="/usr/bin/" || die "libdialog install failed"
245 -}
246
247 diff --git a/sys-freebsd/freebsd-lib/freebsd-lib-8.1.ebuild b/sys-freebsd/freebsd-lib/freebsd-lib-8.1.ebuild
248 deleted file mode 100644
249 index d91ce1a..0000000
250 --- a/sys-freebsd/freebsd-lib/freebsd-lib-8.1.ebuild
251 +++ /dev/null
252 @@ -1,419 +0,0 @@
253 -# Copyright 1999-2010 Gentoo Foundation
254 -# Distributed under the terms of the GNU General Public License v2
255 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-lib/freebsd-lib-8.0.ebuild,v 1.6 2010/05/01 13:14:10 aballier Exp $
256 -
257 -EAPI=2
258 -
259 -inherit bsdmk freebsd flag-o-matic multilib toolchain-funcs
260 -
261 -DESCRIPTION="FreeBSD's base system libraries"
262 -SLOT="0"
263 -KEYWORDS="~sparc-fbsd ~x86-fbsd"
264 -
265 -# Crypto is needed to have an internal OpenSSL header
266 -# sys is needed for libalias, probably we can just extract that instead of
267 -# extracting the whole tarball
268 -SRC_URI="mirror://gentoo/${LIB}.tar.bz2
269 - mirror://gentoo/${CONTRIB}.tar.bz2
270 - mirror://gentoo/${CRYPTO}.tar.bz2
271 - mirror://gentoo/${LIBEXEC}.tar.bz2
272 - mirror://gentoo/${ETC}.tar.bz2
273 - mirror://gentoo/${INCLUDE}.tar.bz2
274 - mirror://gentoo/${USBIN}.tar.bz2
275 - mirror://gentoo/${GNU}.tar.bz2
276 - build? (
277 - mirror://gentoo/${SYS}.tar.bz2 )"
278 -
279 -if [ "${CATEGORY#*cross-}" = "${CATEGORY}" ]; then
280 - RDEPEND="ssl? ( dev-libs/openssl )
281 - hesiod? ( net-dns/hesiod )
282 - kerberos? ( virtual/krb5 )
283 - usb? ( !dev-libs/libusb )
284 - !sys-freebsd/freebsd-headers"
285 - DEPEND="${RDEPEND}
286 - >=sys-devel/flex-2.5.31-r2
287 - =sys-freebsd/freebsd-sources-${RV}*
288 - !bootstrap? ( app-arch/bzip2 )"
289 -
290 - PROVIDE="virtual/libc
291 - virtual/os-headers"
292 -
293 -else
294 - SRC_URI="${SRC_URI}
295 - mirror://gentoo/${SYS}.tar.bz2"
296 -fi
297 -
298 -DEPEND="${DEPEND}
299 - =sys-freebsd/freebsd-mk-defs-${RV}*"
300 -
301 -S="${WORKDIR}/lib"
302 -
303 -export CTARGET=${CTARGET:-${CHOST}}
304 -if [ "${CTARGET}" = "${CHOST}" -a "${CATEGORY#*cross-}" != "${CATEGORY}" ]; then
305 - export CTARGET=${CATEGORY/cross-}
306 -fi
307 -
308 -IUSE="atm bluetooth ssl hesiod ipv6 kerberos usb netware
309 - build bootstrap crosscompile_opts_headers-only"
310 -
311 -pkg_setup() {
312 - [ -c /dev/zero ] || \
313 - die "You forgot to mount /dev; the compiled libc would break."
314 -
315 - if ! use ssl && use kerberos; then
316 - eerror "If you want kerberos support you need to enable ssl support, too."
317 - fi
318 -
319 - use atm || mymakeopts="${mymakeopts} WITHOUT_ATM= "
320 - use bluetooth || mymakeopts="${mymakeopts} WITHOUT_BLUETOOTH= "
321 - use hesiod || mymakeopts="${mymakeopts} WITHOUT_HESIOD= "
322 - use ipv6 || mymakeopts="${mymakeopts} WITHOUT_INET6_SUPPORT= "
323 - use kerberos || mymakeopts="${mymakeopts} WITHOUT_KERBEROS_SUPPORT= "
324 - use netware || mymakeopts="${mymakeopts} WITHOUT_IPX= WITHOUT_IPX_SUPPORT= WITHOUT_NCP= "
325 - use ssl || mymakeopts="${mymakeopts} WITHOUT_OPENSSL= "
326 - use usb || mymakeopts="${mymakeopts} WITHOUT_USB= "
327 -
328 - mymakeopts="${mymakeopts} WITHOUT_BIND= WITHOUT_BIND_LIBS= WITHOUT_SENDMAIL="
329 -
330 - if [ "${CTARGET}" != "${CHOST}" ]; then
331 - mymakeopts="${mymakeopts} MACHINE=$(tc-arch-kernel ${CTARGET})"
332 - mymakeopts="${mymakeopts} MACHINE_ARCH=$(tc-arch-kernel ${CTARGET})"
333 - fi
334 -}
335 -
336 -PATCHES=( "${FILESDIR}/${PN}-bsdxml.patch"
337 - "${FILESDIR}/${PN}-6.0-pmc.patch"
338 - "${FILESDIR}/${PN}-6.0-gccfloat.patch"
339 - "${FILESDIR}/${PN}-6.0-flex-2.5.31.patch"
340 - "${FILESDIR}/${PN}-6.1-csu.patch"
341 - "${FILESDIR}/${PN}-6.2-bluetooth.patch"
342 - "${FILESDIR}/${PN}-8.0-log2.patch"
343 - "${FILESDIR}/${PN}-8.0-rpcsec_gss.patch" )
344 -
345 -# Here we disable and remove source which we don't need or want
346 -# In order:
347 -# - ncurses stuff
348 -# - archiving libraries (have their own ebuild)
349 -# - sendmail libraries (they are installed by sendmail)
350 -# - SNMP library and dependency (have their own ebuilds)
351 -#
352 -# The rest are libraries we already have somewhere else because
353 -# they are contribution.
354 -# Note: libtelnet is an internal lib used by telnet and telnetd programs
355 -# as it's not used in freebsd-lib package itself, it's pointless building
356 -# it here.
357 -REMOVE_SUBDIRS="ncurses
358 - libz libbz2 libarchive liblzma \
359 - libsm libsmdb libsmutil \
360 - libbegemot libbsnmp \
361 - libpam libpcap bind libwrap libmagic \
362 - libcom_err libtelnet
363 - libedit libelf"
364 -
365 -src_prepare() {
366 - sed -i.bak -e 's:-o/dev/stdout:-t:' "${S}/libc/net/Makefile.inc"
367 - sed -i.bak -e 's:histedit.h::' "${WORKDIR}/include/Makefile"
368 -
369 - # Upstream Display Managers default to using VT7
370 - # We should make FreeBSD allow this by default
371 - local x=
372 - for x in "${WORKDIR}"/etc/etc.*/ttys ; do
373 - sed -i.bak \
374 - -e '/ttyv5[[:space:]]/ a\
375 -# Display Managers default to VT7.\
376 -# If you use the xdm init script, keep ttyv6 commented out\
377 -# unless you force a different VT for the DM being used.' \
378 - -e '/^ttyv[678][[:space:]]/ s/^/# /' "${x}" \
379 - || die "Failed to sed ${x}"
380 - rm "${x}".bak
381 - done
382 -
383 - # This one is here because it also
384 - # patches "${WORKDIR}/include"
385 - cd "${WORKDIR}"
386 - epatch "${FILESDIR}/${PN}-includes.patch"
387 -
388 - # Don't install the hesiod man page or header
389 - rm "${WORKDIR}"/include/hesiod.h || die
390 - sed -i.bak -e 's:hesiod.h::' "${WORKDIR}"/include/Makefile || die
391 - sed -i.bak -e 's:hesiod.c::' -e 's:hesiod.3::' \
392 - "${WORKDIR}"/lib/libc/net/Makefile.inc || die
393 -
394 - # Fix the Makefiles of these few libraries that will overwrite our LDADD.
395 - cd "${S}"
396 - for dir in libradius libtacplus libcam libdevstat libfetch libgeom libmemstat libopie \
397 - libsmb; do sed -i.bak -e 's:LDADD=:LDADD+=:g' "${dir}/Makefile" || \
398 - die "Problem fixing \"${dir}/Makefile"
399 - done
400 - if use build; then
401 - cd "${WORKDIR}"
402 - # This patch has to be applied on ${WORKDIR}/sys, so we do it here since it
403 - # shouldn't be a symlink to /usr/src/sys (which should be already patched)
404 - epatch "${FILESDIR}"/${PN}-7.1-types.h-fix.patch
405 - # Preinstall includes so we don't use the system's ones.
406 - mkdir "${WORKDIR}/include_proper" || die "Couldn't create ${WORKDIR}/include_proper"
407 - install_includes "/include_proper"
408 - return 0
409 - fi
410 -
411 - if [ "${CTARGET}" = "${CHOST}" ]; then
412 - ln -s "/usr/src/sys-${RV}" "${WORKDIR}/sys" || die "Couldn't make sys symlink!"
413 - else
414 - sed -i.bak -e "s:/usr/include:/usr/${CTARGET}/usr/include:g" \
415 - "${S}/libc/rpc/Makefile.inc" \
416 - "${S}/libc/yp/Makefile.inc"
417 - fi
418 -
419 - if install --version 2> /dev/null | grep -q GNU; then
420 - sed -i.bak -e 's:${INSTALL} -C:${INSTALL}:' "${WORKDIR}/include/Makefile"
421 - fi
422 -
423 - # Preinstall includes so we don't use the system's ones.
424 - mkdir "${WORKDIR}/include_proper" || die "Couldn't create ${WORKDIR}/include_proper"
425 - install_includes "/include_proper"
426 -
427 - # Let arch-specific includes to be found
428 - local machine
429 - machine=$(tc-arch-kernel ${CTARGET})
430 - ln -s "${WORKDIR}/sys/${machine}/include" "${WORKDIR}/include/machine" || \
431 - die "Couldn't make ${machine}/include symlink."
432 -
433 - cd "${S}"
434 - use bootstrap && dummy_mk libstand
435 -}
436 -
437 -src_compile() {
438 - cd "${WORKDIR}/include"
439 - $(freebsd_get_bmake) CC="$(tc-getCC)" || die "make include failed"
440 -
441 - use crosscompile_opts_headers-only && return 0
442 -
443 - # Bug #270098
444 - append-flags $(test-flags -fno-strict-aliasing)
445 -
446 - strip-flags
447 - if [ "${CTARGET}" != "${CHOST}" ]; then
448 - export YACC='yacc -by'
449 - CHOST=${CTARGET} tc-export CC LD CXX RANLIB
450 - mymakeopts="${mymakeopts} NO_MANCOMPRESS= NO_INFOCOMPRESS= NLS="
451 -
452 - local machine
453 - machine=$(tc-arch-kernel ${CTARGET})
454 -
455 - local csudir
456 - if [ -d "${S}/csu/${machine}-elf" ]; then
457 - csudir="${S}/csu/${machine}-elf"
458 - else
459 - csudir="${S}/csu/${machine}"
460 - fi
461 - cd "${csudir}"
462 - $(freebsd_get_bmake) ${mymakeopts} || die "make csu failed"
463 -
464 - append-flags "-isystem /usr/${CTARGET}/usr/include"
465 - append-flags "-isystem ${WORKDIR}/lib/libutil"
466 - append-flags "-isystem ${WORKDIR}/lib/msun/${machine/i386/i387}"
467 - append-flags "-B ${csudir}"
468 - append-ldflags "-B ${csudir}"
469 -
470 - # First compile libssp_nonshared.a and add it's path to LDFLAGS.
471 - cd "${WORKDIR}/gnu/lib/libssp/" || die "missing libssp."
472 - $(freebsd_get_bmake) ${mymakeopts} || die "make libssp failed"
473 - append-ldflags "-L${WORKDIR}/gnu/lib/libssp/libssp_nonshared/"
474 -
475 - cd "${S}/libc"
476 - $(freebsd_get_bmake) ${mymakeopts} || die "make libc failed"
477 - cd "${S}/msun"
478 - LDADD="-lssp_nonshared" $(freebsd_get_bmake) ${mymakeopts} || die "make libc failed"
479 - else
480 - # Forces to use the local copy of headers as they might be outdated in
481 - # the system
482 - append-flags "-isystem '${WORKDIR}/include_proper'"
483 -
484 - # First compile libssp_nonshared.a and add it's path to LDFLAGS.
485 - einfo "Compiling libssp in \"${WORKDIR}/gnu/lib/libssp/\"."
486 - cd "${WORKDIR}/gnu/lib/libssp/" || die "missing libssp."
487 - NOFLAGSTRIP=yes freebsd_src_compile
488 - # Hack libssp_nonshared.a into libc & others since we don't have
489 - # the linker script in place yet.
490 - append-ldflags "-L${WORKDIR}/gnu/lib/libssp/libssp_nonshared/"
491 - einfo "Compiling libc."
492 - cd "${S}"
493 - NOFLAGSTRIP=yes LDADD="-lssp_nonshared" freebsd_src_compile
494 - fi
495 -}
496 -
497 -src_install() {
498 - [ "${CTARGET}" = "${CHOST}" ] \
499 - && INCLUDEDIR="/usr/include" \
500 - || INCLUDEDIR="/usr/${CTARGET}/usr/include"
501 - dodir ${INCLUDEDIR}
502 - einfo "Installing for ${CTARGET} in ${CHOST}.."
503 - install_includes ${INCLUDEDIR}
504 -
505 - # Install math.h when crosscompiling, at this point
506 - if [ "${CHOST}" != "${CTARGET}" ]; then
507 - insinto "/usr/${CTARGET}/usr/include"
508 - doins "${S}/msun/src/math.h"
509 - fi
510 -
511 - use crosscompile_opts_headers-only && return 0
512 - local mylibdir=$(get_libdir)
513 -
514 - if [ "${CTARGET}" != "${CHOST}" ]; then
515 - local csudir
516 - if [ -d "${S}/csu/$(tc-arch-kernel ${CTARGET})-elf" ]; then
517 - csudir="${S}/csu/$(tc-arch-kernel ${CTARGET})-elf"
518 - else
519 - csudir="${S}/csu/$(tc-arch-kernel ${CTARGET})"
520 - fi
521 - cd "${csudir}"
522 - $(freebsd_get_bmake) ${mymakeopts} DESTDIR="${D}" install \
523 - FILESDIR="/usr/${CTARGET}/usr/lib" LIBDIR="/usr/${CTARGET}/usr/lib" || die "Install csu failed"
524 -
525 - cd "${S}/libc"
526 - $(freebsd_get_bmake) ${mymakeopts} DESTDIR="${D}" install NO_MAN= \
527 - SHLIBDIR="/usr/${CTARGET}/lib" LIBDIR="/usr/${CTARGET}/usr/lib" || die "Install libc failed"
528 -
529 - cd "${S}/msun"
530 - $(freebsd_get_bmake) ${mymakeopts} DESTDIR="${D}" install NO_MAN= \
531 - INCLUDEDIR="/usr/${CTARGET}/usr/include" \
532 - SHLIBDIR="/usr/${CTARGET}/lib" LIBDIR="/usr/${CTARGET}/usr/lib" || die "Install msun failed"
533 -
534 - cd "${WORKDIR}/gnu/lib/libssp/"
535 - $(freebsd_get_bmake) ${mymakeopts} DESTDIR="${D}" install NO_MAN= \
536 - INCLUDEDIR="/usr/${CTARGET}/usr/include" \
537 - SHLIBDIR="/usr/${CTARGET}/lib" LIBDIR="/usr/${CTARGET}/usr/lib" || die "Install ssp failed"
538 -
539 - dosym "usr/include" "/usr/${CTARGET}/sys-include"
540 - else
541 - # Set SHLIBDIR and LIBDIR for multilib
542 - cd "${WORKDIR}/gnu/lib/libssp"
543 - SHLIBDIR="/${mylibdir}" LIBDIR="/usr/${mylibdir}" mkinstall || die "Install ssp failed."
544 - cd "${S}"
545 - SHLIBDIR="/${mylibdir}" LIBDIR="/usr/${mylibdir}" mkinstall || die "Install failed"
546 - fi
547 -
548 - # Don't install the rest of the configuration files if crosscompiling
549 - if [ "${CTARGET}" != "${CHOST}" ] ; then
550 - # This is to get it stripped with the correct tools, otherwise it gets
551 - # stripped with the host strip.
552 - export CHOST=${CTARGET}
553 - return 0
554 - fi
555 -
556 - # Add symlinks (-> libthr) for legacy threading libraries, since these are
557 - # not built by us (they are disabled in FreeBSD-7 anyway).
558 - dosym libthr.a /usr/${mylibdir}/libpthread.a
559 - dosym libthr.so /usr/${mylibdir}/libpthread.so
560 - dosym libthr.a /usr/${mylibdir}/libc_r.a
561 - dosym libthr.so /usr/${mylibdir}/libc_r.so
562 -
563 - # install libstand files
564 - dodir /usr/include/libstand
565 - insinto /usr/include/libstand
566 - doins "${S}"/libstand/*.h
567 -
568 - cd "${WORKDIR}/etc/"
569 - insinto /etc
570 - doins auth.conf nls.alias mac.conf netconfig
571 -
572 - # Install ttys file
573 - if [[ $(tc-arch-kernel) == "x86_64" ]]; then
574 - local MACHINE="amd64"
575 - else
576 - local MACHINE="$(tc-arch-kernel)"
577 - fi
578 - doins "etc.${MACHINE}"/*
579 -
580 - # Generate ldscripts, otherwise bad thigs are supposed to happen
581 - gen_usr_ldscript libalias_cuseeme.so libalias_dummy.so libalias_ftp.so \
582 - libalias_irc.so libalias_nbt.so libalias_pptp.so libalias_skinny.so \
583 - libalias_smedia.so libssp.so
584 - # These show on QA warnings too, however they're pretty much bsd only,
585 - # aka, no autotools for them.
586 - # libbsdxml.so libcam.so libcrypt.so libdevstat.so libgeom.so \
587 - # libipsec.so libipx.so libkiconv.so libkvm.so libmd.so libsbuf.so libufs.so \
588 - # libutil.so
589 -
590 - # Generate libc.so ldscript for inclusion of libssp_nonshared.a when linking
591 - # this is done to avoid having to touch gcc spec file as it is currently
592 - # done on FreeBSD upstream, mostly because their binutils aren't able to
593 - # cope with linker scripts yet.
594 - # Taken from toolchain-funcs.eclass:
595 - local output_format
596 - output_format=$($(tc-getCC) ${CFLAGS} ${LDFLAGS} -Wl,--verbose 2>&1 | sed -n 's/^OUTPUT_FORMAT("\([^"]*\)",.*/\1/p')
597 - [[ -n ${output_format} ]] && output_format="OUTPUT_FORMAT ( ${output_format} )"
598 - # Clear the symlink.
599 - rm -f "${D}/usr/${mylibdir}/libc.so"
600 - cat > "${D}/usr/${mylibdir}/libc.so" <<-END_LDSCRIPT
601 -/* GNU ld script
602 - SSP (-fstack-protector) requires __stack_chk_fail_local to be local.
603 - GCC invokes this symbol in a non-PIC way, which results in TEXTRELs if
604 - this symbol was provided by a shared libc. So we link in
605 - libssp_nonshared.a from here.
606 - */
607 -${output_format}
608 -GROUP ( /${mylibdir}/libc.so.7 /usr/${mylibdir}/libssp_nonshared.a )
609 -END_LDSCRIPT
610 -
611 - dodir /etc/sandbox.d
612 - cat - > "${D}"/etc/sandbox.d/00freebsd <<EOF
613 -# /dev/crypto is used mostly by OpenSSL on *BSD platforms
614 -# leave it available as packages might use OpenSSL commands
615 -# during compile or install phase.
616 -SANDBOX_PREDICT="/dev/crypto"
617 -EOF
618 -
619 - # Install a libusb.pc for better compat with Linux's libusb
620 - if use usb ; then
621 - dodir /usr/$(get_libdir)/pkgconfig
622 - sed -e "s:@LIBDIR@:/usr/$(get_libdir):" "${FILESDIR}/libusb.pc.in" > "${D}/usr/$(get_libdir)/pkgconfig/libusb.pc" || die
623 - fi
624 -}
625 -
626 -install_includes()
627 -{
628 - local INCLUDEDIR="$1"
629 -
630 - # The idea is to be called from either install or unpack.
631 - # During unpack it's required to install them as portage's user.
632 - if [[ "${EBUILD_PHASE}" == "install" ]]; then
633 - local DESTDIR="${D}"
634 - BINOWN="root"
635 - BINGRP="wheel"
636 - else
637 - local DESTDIR="${WORKDIR}"
638 - [[ -z "${USER}" ]] && USER="portage"
639 - BINOWN="${USER}"
640 - [[ -z "${GROUPS}" ]] && GROUPS="portage"
641 - BINGRP="${GROUPS}"
642 - fi
643 -
644 - # This is for ssp/ssp.h.
645 - einfo "Building ssp.h"
646 - cd "${WORKDIR}/gnu/lib/libssp/" || die "missing libssp"
647 - $(freebsd_get_bmake) ssp.h || die "problem building ssp.h"
648 -
649 - # Must exist before we use it.
650 - [[ -d "${DESTDIR}${INCLUDEDIR}" ]] || die "dodir or mkdir ${INCLUDEDIR} before using install_includes."
651 - cd "${WORKDIR}/include"
652 -
653 - if [[ $(tc-arch-kernel) == "x86_64" ]]; then
654 - local MACHINE="amd64"
655 - else
656 - local MACHINE="$(tc-arch-kernel)"
657 - fi
658 -
659 - einfo "Installing includes into ${INCLUDEDIR} as ${BINOWN}:${BINGRP}..."
660 - $(freebsd_get_bmake) installincludes \
661 - MACHINE=${MACHINE} DESTDIR="${DESTDIR}" \
662 - INCLUDEDIR="${INCLUDEDIR}" BINOWN="${BINOWN}" \
663 - BINGRP="${BINGRP}" || die "install_includes() failed"
664 - einfo "includes installed ok."
665 - einfo "Installing ssp includes into ${INCLUDEDIR} as ${BINOWN}:${BINGRP}..."
666 - cd "${WORKDIR}/gnu/lib/libssp"
667 - $(freebsd_get_bmake) installincludes DESTDIR="${DESTDIR}" \
668 - MACHINE=${MACHINE} INCLUDEDIR="${INCLUDEDIR}" BINOWN="${BINOWN}" \
669 - BINGRP="${BINGRP}" || die "problem installing ssp includes."
670 - einfo "ssp includes installed ok."
671 -}
672
673 diff --git a/sys-freebsd/freebsd-libexec/freebsd-libexec-8.1.ebuild b/sys-freebsd/freebsd-libexec/freebsd-libexec-8.1.ebuild
674 deleted file mode 100644
675 index 867fad4..0000000
676 --- a/sys-freebsd/freebsd-libexec/freebsd-libexec-8.1.ebuild
677 +++ /dev/null
678 @@ -1,65 +0,0 @@
679 -# Copyright 1999-2010 Gentoo Foundation
680 -# Distributed under the terms of the GNU General Public License v2
681 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-libexec/freebsd-libexec-8.0.ebuild,v 1.2 2010/05/01 11:07:45 aballier Exp $
682 -
683 -EAPI=2
684 -
685 -inherit bsdmk freebsd pam
686 -
687 -DESCRIPTION="FreeBSD libexec things"
688 -SLOT="0"
689 -KEYWORDS="~sparc-fbsd ~x86-fbsd"
690 -
691 -SRC_URI="mirror://gentoo/${LIBEXEC}.tar.bz2
692 - mirror://gentoo/${UBIN}.tar.bz2
693 - mirror://gentoo/${BIN}.tar.bz2
694 - mirror://gentoo/${CONTRIB}.tar.bz2
695 - mirror://gentoo/${LIB}.tar.bz2
696 - mirror://gentoo/${ETC}.tar.bz2
697 - mirror://gentoo/${USBIN}.tar.bz2"
698 -
699 -RDEPEND="=sys-freebsd/freebsd-lib-${RV}*
700 - pam? ( virtual/pam )"
701 -DEPEND="${RDEPEND}
702 - =sys-freebsd/freebsd-mk-defs-${RV}*
703 - =sys-freebsd/freebsd-sources-${RV}*"
704 -RDEPEND="${RDEPEND}
705 - xinetd? ( sys-apps/xinetd )"
706 -
707 -S="${WORKDIR}/libexec"
708 -
709 -PATCHES=( "${FILESDIR}/${PN}-7.2-pic.patch" )
710 -# Remove sendmail, tcp_wrapper and other useless stuff
711 -REMOVE_SUBDIRS="smrsh mail.local tcpd telnetd rshd rlogind lukemftpd ftpd"
712 -
713 -IUSE="pam ssl kerberos ipv6 nis xinetd"
714 -
715 -pkg_setup() {
716 - use ipv6 || mymakeopts="${mymakeopts} WITHOUT_INET6= WITHOUT_INET6_SUPPORT= "
717 - use kerberos || mymakeopts="${mymakeopts} WITHOUT_KERBEROS_SUPPORT= "
718 - use nis || mymakeopts="${mymakeopts} WITHOUT_NIS= "
719 - use pam || mymakeopts="${mymakeopts} WITHOUT_PAM_SUPPORT= "
720 - use ssl || mymakeopts="${mymakeopts} WITHOUT_OPENSSL= "
721 -
722 - mymakeopts="${mymakeopts} WITHOUT_SENDMAIL= WITHOUT_PF= WITHOUT_RCMDS= "
723 -}
724 -
725 -src_prepare() {
726 - ln -s /usr/include "${WORKDIR}/include"
727 -}
728 -
729 -src_install() {
730 - freebsd_src_install
731 -
732 - insinto /etc
733 - doins "${WORKDIR}/etc/gettytab"
734 - newinitd "${FILESDIR}/bootpd.initd" bootpd
735 - newconfd "${FILESDIR}/bootpd.confd" bootpd
736 -
737 - if use xinetd; then
738 - for rpcd in rstatd rusersd walld rquotad sprayd; do
739 - insinto /etc/xinetd.d
740 - newins "${FILESDIR}/${rpcd}.xinetd" ${rpcd}
741 - done
742 - fi
743 -}
744
745 diff --git a/sys-freebsd/freebsd-mk-defs/freebsd-mk-defs-8.1.ebuild b/sys-freebsd/freebsd-mk-defs/freebsd-mk-defs-8.1.ebuild
746 deleted file mode 100644
747 index 7756143..0000000
748 --- a/sys-freebsd/freebsd-mk-defs/freebsd-mk-defs-8.1.ebuild
749 +++ /dev/null
750 @@ -1,41 +0,0 @@
751 -# Copyright 1999-2010 Gentoo Foundation
752 -# Distributed under the terms of the GNU General Public License v2
753 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-mk-defs/freebsd-mk-defs-8.0.ebuild,v 1.1 2010/03/19 11:50:53 aballier Exp $
754 -
755 -inherit bsdmk freebsd
756 -
757 -DESCRIPTION="Makefiles definitions used for building and installing libraries and system files"
758 -SLOT="0"
759 -KEYWORDS="~amd64 ~x86 ~sparc-fbsd ~x86-fbsd"
760 -
761 -IUSE=""
762 -
763 -SRC_URI="mirror://gentoo/${SHARE}.tar.bz2"
764 -
765 -RDEPEND=""
766 -DEPEND=""
767 -
768 -RESTRICT="strip"
769 -
770 -S="${WORKDIR}/share/mk"
771 -
772 -src_unpack() {
773 - unpack ${A}
774 -
775 - cd "${S}"
776 - epatch "${FILESDIR}/${PN}-8.0-gentoo.patch"
777 -
778 - [[ ${CHOST} != *-*bsd* || ${CHOST} == *-gnu ]] && \
779 - epatch "${FILESDIR}/${PN}-8.0-gnu.patch"
780 -}
781 -
782 -src_compile() { :; }
783 -
784 -src_install() {
785 - if [[ ${CHOST} != *-freebsd* ]]; then
786 - insinto /usr/share/mk/freebsd
787 - else
788 - insinto /usr/share/mk
789 - fi
790 - doins *.mk *.awk
791 -}
792
793 diff --git a/sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-8.1.ebuild b/sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-8.1.ebuild
794 deleted file mode 100644
795 index 413817c..0000000
796 --- a/sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-8.1.ebuild
797 +++ /dev/null
798 @@ -1,48 +0,0 @@
799 -# Copyright 1999-2010 Gentoo Foundation
800 -# Distributed under the terms of the GNU General Public License v2
801 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-8.0.ebuild,v 1.1 2010/03/19 11:51:02 aballier Exp $
802 -
803 -inherit bsdmk freebsd multilib pam
804 -
805 -DESCRIPTION="FreeBSD's PAM authentication modules"
806 -SLOT="0"
807 -KEYWORDS="~x86-fbsd ~sparc-fbsd"
808 -
809 -IUSE="kerberos nis"
810 -
811 -SRC_URI="mirror://gentoo/${LIB}.tar.bz2"
812 -
813 -RDEPEND=">=sys-auth/openpam-20050201-r1
814 - kerberos? ( dev-libs/openssl
815 - virtual/krb5 )"
816 -DEPEND="${RDEPEND}
817 - =sys-freebsd/freebsd-mk-defs-${RV}*
818 - =sys-freebsd/freebsd-sources-${RV}*"
819 -
820 -S=${WORKDIR}/lib/libpam/modules
821 -
822 -pkg_setup() {
823 - # Avoid installing pam_ssh as that has its own ebuild.
824 - mymakeopts="${mymakeopts} NO_OPENSSH= "
825 - use kerberos || mymakeopts="${mymakeopts} NO_KERBEROS= "
826 - use nis || mymakeopts="${mymakeopts} NO_NIS= "
827 -}
828 -
829 -src_unpack() {
830 - unpack ${A}
831 -
832 - cd "${WORKDIR}"/lib
833 -
834 - for module in pam_deny pam_passwdqc pam_permit; do
835 - sed -i -e "s:${module}::" "${S}"/modules.inc
836 - done
837 -
838 - # Avoid using static versions; use gentoo /lib/security dir
839 - epatch "${FILESDIR}"/${PN}-6.0-gentoo.patch
840 -}
841 -
842 -src_install() {
843 - mkinstall "LIBDIR=/$(get_libdir)/security" || die "install failed"
844 -
845 - dodoc "${FILESDIR}/README.pamd"
846 -}
847
848 diff --git a/sys-freebsd/freebsd-pf/freebsd-pf-8.1.ebuild b/sys-freebsd/freebsd-pf/freebsd-pf-8.1.ebuild
849 deleted file mode 100644
850 index 2e620f7..0000000
851 --- a/sys-freebsd/freebsd-pf/freebsd-pf-8.1.ebuild
852 +++ /dev/null
853 @@ -1,65 +0,0 @@
854 -# Copyright 1999-2010 Gentoo Foundation
855 -# Distributed under the terms of the GNU General Public License v2
856 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pf/freebsd-pf-8.0.ebuild,v 1.1 2010/03/19 11:50:44 aballier Exp $
857 -
858 -inherit bsdmk freebsd
859 -
860 -DESCRIPTION="FreeBSD's base system libraries"
861 -SLOT="0"
862 -KEYWORDS="~x86-fbsd"
863 -
864 -IUSE=""
865 -
866 -# Crypto is needed to have an internal OpenSSL header
867 -SRC_URI="mirror://gentoo/${USBIN}.tar.bz2
868 - mirror://gentoo/${SBIN}.tar.bz2
869 - mirror://gentoo/${CONTRIB}.tar.bz2
870 - mirror://gentoo/${ETC}.tar.bz2"
871 -
872 -RDEPEND="net-libs/libpcap"
873 -DEPEND="${RDEPEND}
874 - dev-libs/libevent
875 - sys-freebsd/freebsd-mk-defs
876 - =sys-freebsd/freebsd-sources-${RV}*"
877 -
878 -S="${WORKDIR}"
879 -
880 -SUBDIRS="usr.sbin/authpf sbin/pfctl sbin/pflogd usr.sbin/ftp-proxy/ftp-proxy"
881 -
882 -pkg_setup() {
883 - enewgroup authpf 63
884 - mymakeopts="${mymakeopts} NO_MANCOMPRESS= NO_INFOCOMPRESS= "
885 -}
886 -
887 -src_unpack() {
888 - freebsd_src_unpack
889 - # pcap-int.h redefines snprintf as pcap_snprintf
890 - epatch "${FILESDIR}/${PN}-7.0-pcap_pollution.patch"
891 - # Use system's libevent
892 - epatch "${FILESDIR}/${PN}-7.0-libevent.patch"
893 - # Link in kernel sources
894 - ln -s "/usr/src/sys-${RV}" "${WORKDIR}/sys"
895 -}
896 -
897 -src_compile() {
898 - for dir in ${SUBDIRS}; do
899 - einfo "Starting make in ${dir}"
900 - cd "${S}/${dir}"
901 - mkmake || die "Make ${dir} failed"
902 - done
903 -}
904 -
905 -src_install() {
906 - for dir in ${SUBDIRS}; do
907 - einfo "Starting install in ${dir}"
908 - cd "${S}/${dir}"
909 - mkinstall || die "Install ${dir} failed"
910 - done
911 -
912 - cd "${WORKDIR}"/etc
913 - insinto /etc
914 - doins pf.os
915 - newdoc pf.conf pf.conf.example
916 - # pf.initd provided by openrc, but no pf.confd
917 - newconfd "${FILESDIR}/pf.confd" pf
918 -}
919
920 diff --git a/sys-freebsd/freebsd-rescue/freebsd-rescue-8.1.ebuild b/sys-freebsd/freebsd-rescue/freebsd-rescue-8.1.ebuild
921 deleted file mode 100644
922 index 2155745..0000000
923 --- a/sys-freebsd/freebsd-rescue/freebsd-rescue-8.1.ebuild
924 +++ /dev/null
925 @@ -1,49 +0,0 @@
926 -# Copyright 1999-2010 Gentoo Foundation
927 -# Distributed under the terms of the GNU General Public License v2
928 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-rescue/freebsd-rescue-8.0.ebuild,v 1.1 2010/03/19 11:50:47 aballier Exp $
929 -
930 -EAPI=2
931 -
932 -inherit bsdmk freebsd
933 -
934 -DESCRIPTION="FreeBSD's rescue binaries"
935 -SLOT="0"
936 -KEYWORDS="~x86-fbsd"
937 -LICENSE="BSD zfs? ( CDDL )"
938 -
939 -IUSE="atm nis zfs"
940 -
941 -SRC_URI="mirror://gentoo/${UBIN}.tar.bz2
942 - mirror://gentoo/${CONTRIB}.tar.bz2
943 - mirror://gentoo/${LIB}.tar.bz2
944 - mirror://gentoo/${BIN}.tar.bz2
945 - mirror://gentoo/${SBIN}.tar.bz2
946 - mirror://gentoo/${USBIN}.tar.bz2
947 - mirror://gentoo/${GNU}.tar.bz2
948 - mirror://gentoo/${SYS}.tar.bz2
949 - mirror://gentoo/${LIBEXEC}.tar.bz2
950 - mirror://gentoo/${RESCUE}.tar.bz2
951 - zfs? ( mirror://gentoo/${CDDL}.tar.bz2 )"
952 -
953 -RDEPEND=""
954 -DEPEND="sys-devel/flex
955 - >=app-arch/libarchive-2.7.1[static-libs]
956 - dev-util/pkgconfig
957 - =sys-freebsd/freebsd-lib-${RV}*[atm?]
958 - =sys-freebsd/freebsd-sources-${RV}*
959 - =sys-freebsd/freebsd-mk-defs-${RV}*"
960 -
961 -S="${WORKDIR}/rescue"
962 -
963 -pkg_setup() {
964 - use atm || mymakeopts="${mymakeopts} WITHOUT_ATM= "
965 - use nis || mymakeopts="${mymakeopts} WITHOUT_NIS= "
966 - use zfs || mymakeopts="${mymakeopts} WITHOUT_CDDL= "
967 -}
968 -
969 -src_prepare() {
970 - # As they are patches from ${WORKDIR} apply them by hand
971 - cd "${WORKDIR}"
972 - epatch "${FILESDIR}/${PN}"-8.0-pkgconfig_static_libarchive.patch
973 - epatch "${FILESDIR}/${PN}"-7.1-zlib.patch
974 -}
975
976 diff --git a/sys-freebsd/freebsd-sbin/freebsd-sbin-8.1.ebuild b/sys-freebsd/freebsd-sbin/freebsd-sbin-8.1.ebuild
977 deleted file mode 100644
978 index 2529198..0000000
979 --- a/sys-freebsd/freebsd-sbin/freebsd-sbin-8.1.ebuild
980 +++ /dev/null
981 @@ -1,91 +0,0 @@
982 -# Copyright 1999-2010 Gentoo Foundation
983 -# Distributed under the terms of the GNU General Public License v2
984 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sbin/freebsd-sbin-8.0.ebuild,v 1.1 2010/03/19 11:50:49 aballier Exp $
985 -
986 -EAPI=2
987 -
988 -inherit bsdmk freebsd
989 -
990 -DESCRIPTION="FreeBSD sbin utils"
991 -KEYWORDS="~sparc-fbsd ~x86-fbsd"
992 -SLOT="0"
993 -
994 -SRC_URI="mirror://gentoo/${SBIN}.tar.bz2
995 - mirror://gentoo/${CONTRIB}.tar.bz2
996 - mirror://gentoo/${LIB}.tar.bz2
997 - mirror://gentoo/${LIBEXEC}.tar.bz2
998 - mirror://gentoo/${USBIN}.tar.bz2
999 - mirror://gentoo/${ETC}.tar.bz2
1000 - build? ( mirror://gentoo/${SYS}.tar.bz2 )"
1001 -
1002 -RDEPEND="=sys-freebsd/freebsd-lib-${RV}*[ipv6?,atm?,netware?]
1003 - =sys-freebsd/freebsd-libexec-${RV}*
1004 - ssl? ( dev-libs/openssl )
1005 - dev-libs/libedit
1006 - sys-libs/readline
1007 - sys-process/vixie-cron
1008 - atm? ( net-analyzer/bsnmp )"
1009 -DEPEND="${RDEPEND}
1010 - !build? ( =sys-freebsd/freebsd-sources-${RV}* )
1011 - =sys-freebsd/freebsd-mk-defs-${RV}*"
1012 -
1013 -PROVIDE="virtual/dev-manager"
1014 -
1015 -S="${WORKDIR}/sbin"
1016 -
1017 -IUSE="atm ipfilter +pf ipv6 build ssl +cxx netware"
1018 -
1019 -pkg_setup() {
1020 - use atm || mymakeopts="${mymakeopts} WITHOUT_ATM= "
1021 - use cxx || mymakeopts="${mymakeopts} WITHOUT_CXX="
1022 - use ipfilter || mymakeopts="${mymakeopts} WITHOUT_IPFILTER= "
1023 - use ipv6 || mymakeopts="${mymakeopts} WITHOUT_INET6= WITHOUT_INET6_SUPPORT="
1024 - use netware || mymakeopts="${mymakeopts} WITHOUT_IPX= WITHOUT_IPX_SUPPORT= WITHOUT_NCP= "
1025 - use pf || mymakeopts="${mymakeopts} WITHOUT_PF= "
1026 - use ssl || mymakeopts="${mymakeopts} WITHOUT_OPENSSL="
1027 -}
1028 -
1029 -REMOVE_SUBDIRS="dhclient pfctl pflogd rcorder"
1030 -
1031 -PATCHES=( "${FILESDIR}/${PN}-setXid.patch"
1032 - "${FILESDIR}/${PN}-7.1-zlib.patch"
1033 - "${FILESDIR}/${PN}-6.2-ldconfig.patch"
1034 - "${FILESDIR}/${PN}-6.1-pr102701.patch" )
1035 -
1036 -src_prepare() {
1037 - use build || ln -s "/usr/src/sys-${RV}" "${WORKDIR}/sys"
1038 -}
1039 -
1040 -src_install() {
1041 - freebsd_src_install
1042 - keepdir /var/log
1043 - # Needed by ldconfig:
1044 - keepdir /var/run
1045 -
1046 - # Maybe ship our own sysctl.conf so things like radvd work out of the box.
1047 - # New wireless config method requires regdomain.xml in /etc
1048 - cd "${WORKDIR}/etc/"
1049 - insinto /etc
1050 - doins minfree sysctl.conf regdomain.xml || die
1051 -
1052 - # initd script for idmapd
1053 - newinitd "${FILESDIR}/idmapd.initd" idmapd
1054 -
1055 - # Install a crontab for adjkerntz
1056 - insinto /etc/cron.d
1057 - newins "${FILESDIR}/adjkerntz-crontab" adjkerntz
1058 -
1059 - # Install the periodic stuff (needs probably to be ported in a more
1060 - # gentooish way)
1061 - cd "${WORKDIR}/etc/periodic"
1062 -
1063 - doperiodic security \
1064 - security/*.ipfwlimit \
1065 - security/*.ipfwdenied || die
1066 -
1067 - use ipfilter && { doperiodic security \
1068 - security/*.ipfdenied || die ; }
1069 -
1070 - use pf && { doperiodic security \
1071 - security/*.pfdenied || die ; }
1072 -}
1073
1074 diff --git a/sys-freebsd/freebsd-share/freebsd-share-8.1.ebuild b/sys-freebsd/freebsd-share/freebsd-share-8.1.ebuild
1075 deleted file mode 100644
1076 index 228719b..0000000
1077 --- a/sys-freebsd/freebsd-share/freebsd-share-8.1.ebuild
1078 +++ /dev/null
1079 @@ -1,85 +0,0 @@
1080 -# Copyright 1999-2010 Gentoo Foundation
1081 -# Distributed under the terms of the GNU General Public License v2
1082 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-share/freebsd-share-8.0.ebuild,v 1.1 2010/03/19 11:51:03 aballier Exp $
1083 -
1084 -inherit bsdmk freebsd
1085 -
1086 -DESCRIPTION="FreeBSD shared tools/files"
1087 -SLOT="0"
1088 -KEYWORDS="~sparc-fbsd ~x86-fbsd"
1089 -
1090 -IUSE="doc isdn"
1091 -
1092 -SRC_URI="mirror://gentoo/${SHARE}.tar.bz2
1093 - mirror://gentoo/${CONTRIB}.tar.bz2
1094 - mirror://gentoo/${GNU}.tar.bz2
1095 - mirror://gentoo/${UBIN}.tar.bz2
1096 - mirror://gentoo/${USBIN}.tar.bz2
1097 - mirror://gentoo/${SBIN}.tar.bz2
1098 - mirror://gentoo/${BIN}.tar.bz2
1099 - mirror://gentoo/${LIB}.tar.bz2
1100 - mirror://gentoo/${ETC}.tar.bz2"
1101 -
1102 -DEPEND="=sys-freebsd/freebsd-mk-defs-${RV}*
1103 - =sys-freebsd/freebsd-sources-${RV}*"
1104 -RDEPEND="sys-apps/miscfiles"
1105 -
1106 -RESTRICT="strip"
1107 -
1108 -S="${WORKDIR}/share"
1109 -
1110 -pkg_setup() {
1111 - use isdn || mymakeopts="${mymakeopts} NO_I4B= "
1112 - use doc || mymakeopts="${mymakeopts} NO_SHAREDOCS= "
1113 -
1114 - mymakeopts="${mymakeopts} NO_SENDMAIL= NO_MANCOMPRESS= NO_INFOCOMPRESS= "
1115 -}
1116 -
1117 -REMOVE_SUBDIRS="mk termcap zoneinfo tabset"
1118 -
1119 -PATCHES=( "${FILESDIR}/${PN}-5.3-doc-locations.patch"
1120 - "${FILESDIR}/${PN}-5.4-gentoo-skel.patch"
1121 - "${FILESDIR}/${PN}-8.0-gnu-miscfiles.patch" )
1122 -
1123 -src_unpack() {
1124 - freebsd_src_unpack
1125 -
1126 - # Remove make.conf manpage as it describes bsdmk's make.conf.
1127 - sed -i -e 's:make.conf.5::' "${S}/man/man5/Makefile"
1128 - # Remove mailer.conf manpage
1129 - sed -i -e 's:mailer.conf.5::' "${S}/man/man5/Makefile"
1130 - # Remove pbm and moduli(ssh) manpages
1131 - sed -i -e 's:pbm.5::' -e 's:moduli.5::' "${S}/man/man5/Makefile"
1132 - # Remove builtins manpage
1133 - sed -i -e '/builtins\.1/d' "${S}/man/man1/Makefile"
1134 - # Remove rc manpages
1135 - sed -i -e '/rc.8/d' "${S}/man/man8/Makefile"
1136 -
1137 - # Don't install the arch-specific directories in subdirectories
1138 - sed -i -e '/MANSUBDIR/d' "${S}"/man/man4/man4.{i386,sparc64}/Makefile
1139 -
1140 - # Remove them so that they can't be included by error
1141 - rm -rf "${S}"/mk/*.mk
1142 -
1143 - # Make proper symlinks by defining the full target.
1144 - local sdir
1145 - for sdir in colldef mklocale monetdef msgdef numericdef timedef
1146 - do
1147 - sed -e 's:\${enc2}$:\${enc2}/\${FILESNAME}:g' -i \
1148 - "${S}/${sdir}/Makefile" || \
1149 - die "Error fixing ${sdir}/Makefile"
1150 - done
1151 - ln -s "/usr/src/sys-${RV}" "${WORKDIR}/sys" || die "failed to set sys symlink"
1152 -}
1153 -
1154 -src_compile() {
1155 - export ESED="/usr/bin/sed"
1156 -
1157 - # This is a groff problem and not a -shared problem.
1158 - export GROFF_TMAC_PATH="/usr/share/tmac/:/usr/share/groff/1.19.1/tmac/"
1159 - mkmake || die "emake failed"
1160 -}
1161 -
1162 -src_install() {
1163 - mkmake -j1 DESTDIR="${D}" DOCDIR=/usr/share/doc/${PF} install || die "Install failed"
1164 -}
1165
1166 diff --git a/sys-freebsd/freebsd-sources/freebsd-sources-8.1.ebuild b/sys-freebsd/freebsd-sources/freebsd-sources-8.1.ebuild
1167 deleted file mode 100644
1168 index f52fa59..0000000
1169 --- a/sys-freebsd/freebsd-sources/freebsd-sources-8.1.ebuild
1170 +++ /dev/null
1171 @@ -1,99 +0,0 @@
1172 -# Copyright 1999-2010 Gentoo Foundation
1173 -# Distributed under the terms of the GNU General Public License v2
1174 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sources/freebsd-sources-8.0.ebuild,v 1.2 2010/04/20 23:06:53 the_paya Exp $
1175 -
1176 -inherit bsdmk freebsd flag-o-matic
1177 -
1178 -DESCRIPTION="FreeBSD kernel sources"
1179 -SLOT="${PVR}"
1180 -KEYWORDS="~sparc-fbsd ~x86-fbsd"
1181 -
1182 -IUSE="symlink"
1183 -
1184 -SRC_URI="mirror://gentoo/${SYS}.tar.bz2"
1185 -
1186 -RDEPEND=">=sys-freebsd/freebsd-mk-defs-8.0"
1187 -DEPEND=""
1188 -
1189 -RESTRICT="strip binchecks"
1190 -
1191 -S="${WORKDIR}/sys"
1192 -
1193 -MY_PVR="${PVR}"
1194 -
1195 -[[ ${MY_PVR} == "${RV}" ]] && MY_PVR="${MY_PVR}-r0"
1196 -
1197 -src_unpack() {
1198 - unpack ${A}
1199 - cd "${S}"
1200 -
1201 - # This replaces the gentoover patch, it doesn't need reapply every time.
1202 - sed -i -e 's:^REVISION=.*:REVISION="'${PVR}'":' \
1203 - -e 's:^BRANCH=.*:BRANCH="Gentoo":' \
1204 - -e 's:^VERSION=.*:VERSION="${TYPE} ${BRANCH} ${REVISION}":' \
1205 - "${S}/conf/newvers.sh"
1206 -
1207 - # __FreeBSD_cc_version comes from FreeBSD's gcc.
1208 - # on 8.0-RELEASE it's 800001.
1209 - sed -e "s:-D_KERNEL:-D_KERNEL -D__FreeBSD_cc_version=800001:g" \
1210 - -i "${S}/conf/kern.pre.mk" \
1211 - -i "${S}/conf/kmod.mk" || die "Couldn't set __FreeBSD_cc_version"
1212 -
1213 - epatch "${FILESDIR}/${PN}-8.0-gentoo.patch"
1214 - epatch "${FILESDIR}/${PN}-6.0-flex-2.5.31.patch"
1215 - epatch "${FILESDIR}/${PN}-8.0-werror.patch"
1216 - epatch "${FILESDIR}/${PN}-6.1-ntfs.patch"
1217 - epatch "${FILESDIR}/${PN}-7.2-debug-O2.patch"
1218 - epatch "${FILESDIR}/${PN}-7.1-types.h-fix.patch"
1219 - epatch "${FILESDIR}/${PN}-8.0-subnet-route-pr40133.patch"
1220 - epatch "${FILESDIR}/${PN}-7.1-includes.patch"
1221 -
1222 - # By adding -DGENTOO_LIVECD to CFLAGS activate this stub
1223 - # vop_whiteout to tmpfs, so it can be used as an overlay
1224 - # unionfs filesystem over the cd9660 readonly filesystem.
1225 - epatch "${FILESDIR}/${PN}-7.0-tmpfs_whiteout_stub.patch"
1226 -
1227 - # See http://sourceware.org/bugzilla/show_bug.cgi?id=5391
1228 - # ld doesn't provide symbols constructed as the __start_set_(s) ones
1229 - # are on FreeBSD modules.
1230 - # This patch adds code to generate a list of these and adds them
1231 - # as undefined references to ld's commandline to get them.
1232 - # Without this kernel modules will not load.
1233 - epatch "${FILESDIR}/${PN}-7.1-binutils_link.patch"
1234 -}
1235 -
1236 -src_compile() {
1237 - einfo "Nothing to compile.."
1238 -}
1239 -
1240 -src_install() {
1241 - insinto "/usr/src/sys-${MY_PVR}"
1242 - doins -r "${S}/"*
1243 -}
1244 -
1245 -pkg_postinst() {
1246 - if [[ ! -L "${ROOT}/usr/src/sys" ]]; then
1247 - einfo "/usr/src/sys symlink doesn't exist; creating symlink to sys-${MY_PVR}..."
1248 - ln -sf "sys-${MY_PVR}" "${ROOT}/usr/src/sys" || \
1249 - eerror "Couldn't create ${ROOT}/usr/src/sys symlink."
1250 - # just in case...
1251 - [[ -L ""${ROOT}/usr/src/sys-${RV}"" ]] && rm "${ROOT}/usr/src/sys-${RV}"
1252 - ln -sf "sys-${MY_PVR}" "${ROOT}/usr/src/sys-${RV}" || \
1253 - eerror "Couldn't create ${ROOT}/usr/src/sys-${RV} symlink."
1254 - elif use symlink; then
1255 - einfo "Updating /usr/src/sys symlink to sys-${MY_PVR}..."
1256 - rm "${ROOT}/usr/src/sys" "${ROOT}/usr/src/sys-${RV}" || \
1257 - eerror "Couldn't remove previous symlinks, please fix manually."
1258 - ln -sf "sys-${MY_PVR}" "${ROOT}/usr/src/sys" || \
1259 - eerror "Couldn't create ${ROOT}/usr/src/sys symlink."
1260 - ln -sf "sys-${MY_PVR}" "${ROOT}/usr/src/sys-${RV}" || \
1261 - eerror "Couldn't create ${ROOT}/usr/src/sys-${RV} symlink."
1262 - fi
1263 -
1264 - if use sparc-fbsd ; then
1265 - ewarn "WARNING: kldload currently causes kernel panics"
1266 - ewarn "on sparc64. This is probably a gcc-4.1 issue, but"
1267 - ewarn "we need gcc-4.1 to compile the kernel correctly :/"
1268 - ewarn "Please compile all modules you need into the kernel"
1269 - fi
1270 -}
1271
1272 diff --git a/sys-freebsd/freebsd-ubin/freebsd-ubin-8.1.ebuild b/sys-freebsd/freebsd-ubin/freebsd-ubin-8.1.ebuild
1273 deleted file mode 100644
1274 index 3db5a3c..0000000
1275 --- a/sys-freebsd/freebsd-ubin/freebsd-ubin-8.1.ebuild
1276 +++ /dev/null
1277 @@ -1,146 +0,0 @@
1278 -# Copyright 1999-2010 Gentoo Foundation
1279 -# Distributed under the terms of the GNU General Public License v2
1280 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-ubin/freebsd-ubin-8.0.ebuild,v 1.2 2010/03/24 11:04:55 the_paya Exp $
1281 -
1282 -EAPI=2
1283 -
1284 -inherit bsdmk freebsd flag-o-matic pam
1285 -
1286 -DESCRIPTION="FreeBSD's base system source for /usr/bin"
1287 -SLOT="0"
1288 -KEYWORDS="~sparc-fbsd ~x86-fbsd"
1289 -IUSE="ar atm audit bluetooth ipv6 kerberos netware nis ssl usb build zfs"
1290 -LICENSE="BSD zfs? ( CDDL )"
1291 -
1292 -SRC_URI="mirror://gentoo/${UBIN}.tar.bz2
1293 - mirror://gentoo/${CONTRIB}.tar.bz2
1294 - mirror://gentoo/${LIB}.tar.bz2
1295 - mirror://gentoo/${ETC}.tar.bz2
1296 - mirror://gentoo/${BIN}.tar.bz2
1297 - mirror://gentoo/${INCLUDE}.tar.bz2
1298 - zfs? ( mirror://gentoo/${CDDL}.tar.bz2 )
1299 - build? ( mirror://gentoo/${SYS}.tar.bz2 )"
1300 -
1301 -RDEPEND="=sys-freebsd/freebsd-lib-${RV}*[usb?,bluetooth?]
1302 - ssl? ( dev-libs/openssl )
1303 - kerberos? ( virtual/krb5 )
1304 - ar? ( app-arch/libarchive )
1305 - virtual/pam
1306 - sys-libs/zlib
1307 - !dev-util/csup"
1308 -
1309 -DEPEND="${RDEPEND}
1310 - sys-devel/flex
1311 - !build? ( =sys-freebsd/freebsd-sources-${RV}* )
1312 - =sys-freebsd/freebsd-mk-defs-${RV}*"
1313 -
1314 -RDEPEND="${RDEPEND}
1315 - >=sys-auth/pambase-20080219.1
1316 - sys-process/cronbase"
1317 -
1318 -S="${WORKDIR}/usr.bin"
1319 -
1320 -PATCHES=( "${FILESDIR}/${PN}-6.0-bsdcmp.patch"
1321 - "${FILESDIR}/${PN}-6.0-fixmakefiles.patch"
1322 - "${FILESDIR}/${PN}-setXid.patch"
1323 - "${FILESDIR}/${PN}-lint-stdarg.patch"
1324 - "${FILESDIR}/${PN}-6.0-kdump-ioctl.patch"
1325 - "${FILESDIR}/${PN}-8.0-xinstall.patch"
1326 - "${FILESDIR}/${PN}-8.0-bsdar.patch" )
1327 -
1328 -# Here we remove some sources we don't need because they are already
1329 -# provided by portage's packages or similar. In order:
1330 -# - Archiving tools, provided by their own ebuilds
1331 -# - ncurses stuff
1332 -# - less stuff
1333 -# - bind utils
1334 -# - rsh stuff
1335 -# - binutils gprof
1336 -# and the rest are misc utils we already provide somewhere else.
1337 -REMOVE_SUBDIRS="bzip2 bzip2recover tar cpio
1338 - gzip gprof
1339 - tput tset
1340 - less lessecho lesskey
1341 - dig hesinfo nslookup nsupdate host
1342 - rsh rlogin rusers rwho ruptime
1343 - compile_et lex vi smbutil file vacation nc ftp telnet
1344 - c99 c89
1345 - whois tftp lzmainfo xz xzdec"
1346 -
1347 -pkg_setup() {
1348 - use atm || mymakeopts="${mymakeopts} WITHOUT_ATM= "
1349 - use audit || mymakeopts="${mymakeopts} WITHOUT_AUDIT= "
1350 - use bluetooth || mymakeopts="${mymakeopts} WITHOUT_BLUETOOTH= "
1351 - use ipv6 || mymakeopts="${mymakeopts} WITHOUT_INET6= WITHOUT_INET6_SUPPORT= "
1352 - use kerberos || mymakeopts="${mymakeopts} WITHOUT_KERBEROS_SUPPORT= "
1353 - use netware || mymakeopts="${mymakeopts} WITHOUT_IPX= WITHOUT_IPX_SUPPORT= WITHOUT_NCP= "
1354 - use nis || mymakeopts="${mymakeopts} WITHOUT_NIS= "
1355 - use ssl || mymakeopts="${mymakeopts} WITHOUT_OPENSSL= "
1356 - use usb || mymakeopts="${mymakeopts} WITHOUT_USB= "
1357 - use zfs || mymakeopts="${mymakeopts} WITHOUT_CDDL= "
1358 -}
1359 -
1360 -pkg_preinst() {
1361 - # bison installs a /usr/bin/yacc symlink ...
1362 - # we need to remove it to avoid triggering
1363 - # collision-protect errors
1364 - if [[ -L ${ROOT}/usr/bin/yacc ]] ; then
1365 - rm -f "${ROOT}"/usr/bin/yacc
1366 - fi
1367 -}
1368 -
1369 -src_prepare() {
1370 - use build || ln -s "/usr/src/sys-${RV}" "${WORKDIR}/sys"
1371 -
1372 - # Rename manpage for renamed cmp
1373 - mv "${S}"/cmp/cmp.1 "${S}"/cmp/bsdcmp.1 || die
1374 - # Rename manpage for renamed ar
1375 - mv "${S}"/ar/ar.1 "${S}"/ar/freebsd-ar.1 || die
1376 - # Fix whereis(1) manpath search.
1377 - sed -i -e 's:"manpath -q":"manpath":' "${S}/whereis/pathnames.h"
1378 -
1379 - # Build a dynamic make
1380 - sed -i -e '/^NO_SHARED/ s/^/#/' "${S}"/make/Makefile || die
1381 -
1382 - # Disable it here otherwise our patch wont apply
1383 - use ar || dummy_mk ar
1384 -}
1385 -
1386 -src_install() {
1387 - freebsd_src_install
1388 -
1389 - # baselayout requires these in /bin
1390 - dodir /bin
1391 - for bin in sed; do
1392 - mv "${D}/usr/bin/${bin}" "${D}/bin/" || die "mv ${bin} failed"
1393 - dosym /bin/${bin} /usr/bin/${bin} || die "dosym ${bin} failed"
1394 - done
1395 -
1396 - for pamdfile in login passwd su; do
1397 - newpamd "${FILESDIR}/${pamdfile}.1.pamd" ${pamdfile} || die
1398 - done
1399 -
1400 - cd "${WORKDIR}/etc"
1401 - insinto /etc
1402 - doins remote phones opieaccess fbtab || die
1403 -
1404 - exeinto /etc/cron.daily
1405 - newexe "${FILESDIR}/locate-updatedb-cron" locate.updatedb || die
1406 -}
1407 -
1408 -pkg_postinst() {
1409 - # We need to ensure that login.conf.db is up-to-date.
1410 - if [[ -e "${ROOT}"etc/login.conf ]] ; then
1411 - einfo "Updating ${ROOT}etc/login.conf.db"
1412 - "${ROOT}"usr/bin/cap_mkdb -f "${ROOT}"etc/login.conf "${ROOT}"etc/login.conf
1413 - elog "Remember to run cap_mkdb /etc/login.conf after making changes to it"
1414 - fi
1415 -}
1416 -
1417 -pkg_postrm() {
1418 - # and if we uninstall yacc but keep bison,
1419 - # lets restore the /usr/bin/yacc symlink
1420 - if [[ ! -e ${ROOT}/usr/bin/yacc ]] && [[ -e ${ROOT}/usr/bin/yacc.bison ]] ; then
1421 - ln -s yacc.bison "${ROOT}"/usr/bin/yacc
1422 - fi
1423 -}
1424
1425 diff --git a/sys-freebsd/freebsd-usbin/freebsd-usbin-8.1.ebuild b/sys-freebsd/freebsd-usbin/freebsd-usbin-8.1.ebuild
1426 deleted file mode 100644
1427 index 1295c14..0000000
1428 --- a/sys-freebsd/freebsd-usbin/freebsd-usbin-8.1.ebuild
1429 +++ /dev/null
1430 @@ -1,170 +0,0 @@
1431 -# Copyright 1999-2010 Gentoo Foundation
1432 -# Distributed under the terms of the GNU General Public License v2
1433 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/freebsd-usbin-8.0.ebuild,v 1.3 2010/04/13 11:50:36 the_paya Exp $
1434 -
1435 -EAPI=2
1436 -
1437 -inherit bsdmk freebsd flag-o-matic eutils
1438 -
1439 -DESCRIPTION="FreeBSD /usr/sbin tools"
1440 -SLOT="0"
1441 -KEYWORDS="~sparc-fbsd ~x86-fbsd"
1442 -
1443 -SRC_URI="mirror://gentoo/${P}.tar.bz2
1444 - mirror://gentoo/${CONTRIB}.tar.bz2
1445 - mirror://gentoo/${UBIN}.tar.bz2
1446 - mirror://gentoo/${LIB}.tar.bz2
1447 - mirror://gentoo/${SBIN}.tar.bz2
1448 - mirror://gentoo/${ETC}.tar.bz2
1449 - mirror://gentoo/${GNU}.tar.bz2
1450 - nis? ( mirror://gentoo/${LIBEXEC}.tar.bz2 )
1451 - build? ( mirror://gentoo/${SYS}.tar.bz2
1452 - mirror://gentoo/${INCLUDE}.tar.bz2 )"
1453 -
1454 -RDEPEND="=sys-freebsd/freebsd-lib-${RV}*[usb?,bluetooth?,netware?]
1455 - =sys-freebsd/freebsd-libexec-${RV}*
1456 - acpi? ( sys-power/iasl )
1457 - build? ( sys-apps/baselayout )
1458 - ssl? ( dev-libs/openssl )
1459 - tcpd? ( sys-apps/tcp-wrappers )
1460 - dev-libs/libelf
1461 - dev-libs/libedit
1462 - net-libs/libpcap"
1463 -DEPEND="${RDEPEND}
1464 - =sys-freebsd/freebsd-mk-defs-${RV}*
1465 - =sys-freebsd/freebsd-ubin-${RV}*
1466 - !build? ( =sys-freebsd/freebsd-sources-${RV}* )
1467 - sys-apps/texinfo
1468 - sys-devel/flex"
1469 -
1470 -PROVIDE="virtual/logger"
1471 -
1472 -S="${WORKDIR}/usr.sbin"
1473 -
1474 -IUSE="acpi atm audit bluetooth floppy ipv6 isdn minimal netware nis pam ssl tcpd usb build"
1475 -
1476 -pkg_setup() {
1477 - # Release crunch is something like minimal. It seems to remove everything
1478 - # which is not needed to work.
1479 - use minimal && mymakeopts="${mymakeopts} RELEASE_CRUNCH= "
1480 -
1481 - use acpi || mymakeopts="${mymakeopts} WITHOUT_ACPI= "
1482 - use atm || mymakeopts="${mymakeopts} WITHOUT_ATM= "
1483 - use audit || mymakeopts="${mymakeopts} WITHOUT_AUDIT= "
1484 - use bluetooth || mymakeopts="${mymakeopts} WITHOUT_BLUETOOTH= "
1485 - use ipv6 || mymakeopts="${mymakeopts} WITHOUT_INET6= WITHOUT_INET6_SUPPORT= "
1486 - use isdn || mymakeopts="${mymakeopts} WITHOUT_I4B= "
1487 - use netware || mymakeopts="${mymakeopts} WITHOUT_IPX= WITHOUT_IPX_SUPPORT= WITHOUT_NCP= "
1488 - use nis || mymakeopts="${mymakeopts} WITHOUT_NIS= "
1489 - use pam || mymakeopts="${mymakeopts} WITHOUT_PAM_SUPPORT= "
1490 - use ssl || mymakeopts="${mymakeopts} WITHOUT_OPENSSL= "
1491 - use usb || mymakeopts="${mymakeopts} WITHOUT_USB= "
1492 - use floppy || mymakeopts="${mymakeopts} WITHOUT_FLOPPY= "
1493 - use tcpd || mymakeopts="${mymakeopts} NO_WRAP="
1494 -
1495 - mymakeopts="${mymakeopts} WITHOUT_BIND_NAMED= WITHOUT_BIND_DNSSEC= WITHOUT_PF= WITHOUT_LPR= WITHOUT_SENDMAIL= WITHOUT_AUTHPF= WITHOUT_MAILWRAPPER= "
1496 -}
1497 -
1498 -PATCHES=( "${FILESDIR}/${PN}-7.0-nowrap.patch"
1499 - "${FILESDIR}/${PN}-adduser.patch" )
1500 -
1501 -REMOVE_SUBDIRS="
1502 - named named-checkzone named-checkconf rndc rndc-confgen
1503 - dnssec-keygen dnssec-signzone
1504 - tcpdchk tcpdmatch
1505 - sendmail praliases editmap mailstats makemap
1506 - sysinstall cron mailwrapper ntp bsnmpd
1507 - tcpdump ndp inetd
1508 - wpa/wpa_supplicant wpa/hostapd wpa/hostapd_cli wpa/wpa_cli wpa/wpa_passphrase
1509 - zic amd
1510 - pkg_install freebsd-update"
1511 -
1512 -src_prepare() {
1513 - if ! use build; then
1514 - ln -s "/usr/src/sys-${RV}" "${WORKDIR}/sys"
1515 - ln -s "/usr/include" "${WORKDIR}/include"
1516 - else
1517 - dummy_mk mount_smbfs
1518 - fi
1519 - # Don't install mtree format manpage
1520 - # it's installed by libarchive.
1521 - sed -e "s: mtree.5::g" -i "${S}"/mtree/Makefile
1522 -}
1523 -
1524 -src_install() {
1525 - # By creating these directories we avoid having to do a
1526 - # more complex hack
1527 - dodir /usr/share/doc
1528 - dodir /sbin
1529 - dodir /usr/libexec
1530 - dodir /usr/bin
1531 -
1532 - # FILESDIR is used by some makefiles which will install files
1533 - # in the wrong place, just put it in the doc directory.
1534 - mkinstall DOCDIR=/usr/share/doc/${PF} || die "Install failed"
1535 -
1536 - # Most of these now come from openrc.
1537 - for util in nfs rpc.statd rpc.lockd; do
1538 - newinitd "${FILESDIR}/"${util}.initd ${util} || die
1539 - if [[ -e "${FILESDIR}"/${util}.confd ]]; then \
1540 - newconfd "${FILESDIR}"/${util}.confd ${util} || die
1541 - fi
1542 - done
1543 -
1544 - for class in daily monthly weekly; do
1545 - cat - > "${T}/periodic.${class}" <<EOS
1546 -#!/bin/sh
1547 -/usr/sbin/periodic ${class}
1548 -EOS
1549 - exeinto /etc/cron.${class}
1550 - newexe "${T}/periodic.${class}" periodic
1551 - done
1552 -
1553 - # Install the pw.conf file to let pw use Gentoo's skel location
1554 - insinto /etc
1555 - doins "${FILESDIR}/pw.conf" || die
1556 -
1557 - cd "${WORKDIR}/etc"
1558 - doins apmd.conf syslog.conf newsyslog.conf nscd.conf || die
1559 -
1560 - insinto /etc/ppp
1561 - doins ppp/ppp.conf || die
1562 -
1563 - if use isdn; then
1564 - insinto /etc/isdn
1565 - doins isdn/* || die
1566 - rm -f "${D}"/etc/isdn/Makefile
1567 - fi
1568 -
1569 - if use bluetooth; then
1570 - insinto /etc/bluetooth
1571 - doins bluetooth/* || die
1572 - rm -f "${D}"/etc/bluetooth/Makefile
1573 - fi
1574 -
1575 - # Install the periodic stuff (needs probably to be ported in a more
1576 - # gentooish way)
1577 - cd "${WORKDIR}/etc/periodic"
1578 -
1579 - doperiodic daily daily/*.accounting
1580 - doperiodic monthly monthly/*.accounting
1581 -}
1582 -
1583 -pkg_postinst() {
1584 - # We need to run pwd_mkdb if key files are not present
1585 - # If they are, then there is no need to run pwd_mkdb
1586 - if [[ ! -e "${ROOT}etc/passwd" || ! -e "${ROOT}etc/pwd.db" || ! -e "${ROOT}etc/spwd.db" ]] ; then
1587 - if [[ -e "${ROOT}etc/master.passwd" ]] ; then
1588 - einfo "Generating passwd files from ${ROOT}etc/master.passwd"
1589 - "${ROOT}"usr/sbin/pwd_mkdb -p -d "${ROOT}etc" "${ROOT}etc/master.passwd"
1590 - else
1591 - eerror "${ROOT}etc/master.passwd does not exist!"
1592 - eerror "You will no be able to log into your system!"
1593 - fi
1594 - fi
1595 -
1596 - for logfile in messages security auth.log maillog lpd-errs xferlog cron \
1597 - debug.log slip.log ppp.log; do
1598 - [[ -f "${ROOT}/var/log/${logfile}" ]] || touch "${ROOT}/var/log/${logfile}"
1599 - done
1600 -}