diff options
Diffstat (limited to 'sys-freebsd/freebsd-rescue/freebsd-rescue-9.1.ebuild')
-rw-r--r-- | sys-freebsd/freebsd-rescue/freebsd-rescue-9.1.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/sys-freebsd/freebsd-rescue/freebsd-rescue-9.1.ebuild b/sys-freebsd/freebsd-rescue/freebsd-rescue-9.1.ebuild new file mode 100644 index 000000000000..1a6717101a6e --- /dev/null +++ b/sys-freebsd/freebsd-rescue/freebsd-rescue-9.1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-rescue/freebsd-rescue-9.1.ebuild,v 1.1 2013/01/27 21:27:12 aballier Exp $ + +EAPI=2 + +inherit bsdmk freebsd + +DESCRIPTION="FreeBSD's rescue binaries" +SLOT="0" +KEYWORDS="~amd64-fbsd ~x86-fbsd" +LICENSE="BSD zfs? ( CDDL )" + +IUSE="atm netware nis zfs" + +SRC_URI="mirror://gentoo/${UBIN}.tar.bz2 + mirror://gentoo/${CONTRIB}.tar.bz2 + mirror://gentoo/${LIB}.tar.bz2 + mirror://gentoo/${BIN}.tar.bz2 + mirror://gentoo/${SBIN}.tar.bz2 + mirror://gentoo/${USBIN}.tar.bz2 + mirror://gentoo/${GNU}.tar.bz2 + mirror://gentoo/${SYS}.tar.bz2 + mirror://gentoo/${LIBEXEC}.tar.bz2 + mirror://gentoo/${RESCUE}.tar.bz2 + zfs? ( mirror://gentoo/${CDDL}.tar.bz2 )" + +RDEPEND="" +DEPEND="sys-devel/flex + >=app-arch/libarchive-3.0.3[static-libs] + app-arch/xz-utils[static-libs] + sys-libs/ncurses[static-libs] + dev-libs/expat[static-libs] + app-arch/bzip2[static-libs] + dev-libs/libedit[static-libs] + dev-libs/libxml2:2[static-libs] + dev-libs/openssl[static-libs] + sys-libs/zlib[static-libs] + sys-libs/readline[static-libs] + virtual/pkgconfig + =sys-freebsd/freebsd-lib-${RV}*[atm?,netware?] + =sys-freebsd/freebsd-sources-${RV}* + =sys-freebsd/freebsd-mk-defs-${RV}*" + +S="${WORKDIR}/rescue" + +pkg_setup() { + use atm || mymakeopts="${mymakeopts} WITHOUT_ATM= " + use netware || mymakeopts="${mymakeopts} WITHOUT_IPX= " + use nis || mymakeopts="${mymakeopts} WITHOUT_NIS= " + use zfs || mymakeopts="${mymakeopts} WITHOUT_CDDL= " +} + +src_prepare() { + # As they are patches from ${WORKDIR} apply them by hand + cd "${WORKDIR}" + epatch "${FILESDIR}/${PN}"-8.0-pkgconfig_static_libarchive.patch + epatch "${FILESDIR}/${PN}"-7.1-zlib.patch + epatch "${FILESDIR}/${PN}"-9.1-libcleverlink.patch + epatch "${FILESDIR}/${PN}"-9.1-bsdtar.patch + epatch "${FILESDIR}/freebsd-sbin-bsdxml2expat.patch" +} |