parent
5544963168
commit
87380acc66
@ -1,38 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-accessibility/at-spi2-atk/at-spi2-atk-2.8.0.ebuild,v 1.1 2013/03/28 16:24:26 pacho Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
GCONF_DEBUG="no"
|
|
||||||
GNOME2_LA_PUNT="yes"
|
|
||||||
|
|
||||||
inherit eutils gnome2 virtualx
|
|
||||||
|
|
||||||
DESCRIPTION="Gtk module for bridging AT-SPI to Atk"
|
|
||||||
HOMEPAGE="http://live.gnome.org/Accessibility"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2+"
|
|
||||||
SLOT="2"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
COMMON_DEPEND="
|
|
||||||
>=app-accessibility/at-spi2-core-2.7.5
|
|
||||||
>=dev-libs/atk-2.7.90
|
|
||||||
>=dev-libs/glib-2.32:2
|
|
||||||
>=sys-apps/dbus-1
|
|
||||||
"
|
|
||||||
RDEPEND="${COMMON_DEPEND}
|
|
||||||
!<gnome-extra/at-spi-1.32.0-r1
|
|
||||||
"
|
|
||||||
DEPEND="${COMMON_DEPEND}
|
|
||||||
virtual/pkgconfig
|
|
||||||
"
|
|
||||||
|
|
||||||
src_configure(){
|
|
||||||
gnome2_src_configure --enable-p2p
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
Xemake check
|
|
||||||
}
|
|
@ -0,0 +1,25 @@
|
|||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-arch/lzip/lzip-1.15.ebuild,v 1.1 2013/10/04 07:37:57 radhermit Exp $
|
||||||
|
|
||||||
|
EAPI="4"
|
||||||
|
|
||||||
|
inherit toolchain-funcs
|
||||||
|
|
||||||
|
DESCRIPTION="lossless data compressor based on the LZMA algorithm"
|
||||||
|
HOMEPAGE="http://www.nongnu.org/lzip/lzip.html"
|
||||||
|
SRC_URI="http://download.savannah.gnu.org/releases-noredirect/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86"
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
# not autotools-based
|
||||||
|
./configure \
|
||||||
|
--prefix="${EPREFIX}"/usr \
|
||||||
|
CXX="$(tc-getCXX)" \
|
||||||
|
CPPFLAGS="${CPPFLAGS}" \
|
||||||
|
CXXFLAGS="${CXXFLAGS}" \
|
||||||
|
LDFLAGS="${LDFLAGS}" || die
|
||||||
|
}
|
@ -0,0 +1,23 @@
|
|||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-crypt/efitools/efitools-1.4.2-r1.ebuild,v 1.1 2013/10/03 22:34:09 gregkh Exp $
|
||||||
|
|
||||||
|
EAPI="4"
|
||||||
|
|
||||||
|
DESCRIPTION="Tools for manipulating UEFI secure boot platforms"
|
||||||
|
HOMEPAGE="git://git.kernel.org/pub/scm/linux/kernel/git/jejb/efitools.git"
|
||||||
|
SRC_URI="http://blog.hansenpartnership.com/wp-uploads/2013/efitools-${PV}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
RDEPEND="dev-libs/openssl
|
||||||
|
sys-apps/util-linux"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
sys-apps/help2man
|
||||||
|
sys-boot/gnu-efi
|
||||||
|
app-crypt/sbsigntool
|
||||||
|
virtual/pkgconfig
|
||||||
|
dev-perl/File-Slurp"
|
@ -0,0 +1,69 @@
|
|||||||
|
From 4bde12206c5bf199dc6e12a74af8da4558ba41bf Mon Sep 17 00:00:00 2001
|
||||||
|
From: Werner Koch <wk@gnupg.org>
|
||||||
|
Date: Fri, 15 Mar 2013 15:46:03 +0100
|
||||||
|
Subject: [PATCH] gpg: Distinguish between missing and cleared key flags.
|
||||||
|
|
||||||
|
* include/cipher.h (PUBKEY_USAGE_NONE): New.
|
||||||
|
* g10/getkey.c (parse_key_usage): Set new flag.
|
||||||
|
--
|
||||||
|
|
||||||
|
We do not want to use the default capabilities (derived from the
|
||||||
|
algorithm) if any key flags are given in a signature. Thus if key
|
||||||
|
flags are used in any way, the default key capabilities are never
|
||||||
|
used.
|
||||||
|
|
||||||
|
This allows to create a key with key flags set to all zero so it can't
|
||||||
|
be used. This better reflects common sense.
|
||||||
|
---
|
||||||
|
g10/getkey.c | 8 +++++++-
|
||||||
|
include/cipher.h | 7 ++++++-
|
||||||
|
2 files changed, 13 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/g10/getkey.c b/g10/getkey.c
|
||||||
|
index 9294273..8cc5601 100644
|
||||||
|
--- a/g10/getkey.c
|
||||||
|
+++ b/g10/getkey.c
|
||||||
|
@@ -1276,13 +1276,19 @@ parse_key_usage (PKT_signature * sig)
|
||||||
|
|
||||||
|
if (flags)
|
||||||
|
key_usage |= PUBKEY_USAGE_UNKNOWN;
|
||||||
|
+
|
||||||
|
+ if (!key_usage)
|
||||||
|
+ key_usage |= PUBKEY_USAGE_NONE;
|
||||||
|
}
|
||||||
|
+ else if (p) /* Key flags of length zero. */
|
||||||
|
+ key_usage |= PUBKEY_USAGE_NONE;
|
||||||
|
|
||||||
|
/* We set PUBKEY_USAGE_UNKNOWN to indicate that this key has a
|
||||||
|
capability that we do not handle. This serves to distinguish
|
||||||
|
between a zero key usage which we handle as the default
|
||||||
|
capabilities for that algorithm, and a usage that we do not
|
||||||
|
- handle. */
|
||||||
|
+ handle. Likewise we use PUBKEY_USAGE_NONE to indicate that
|
||||||
|
+ key_flags have been given but they do not specify any usage. */
|
||||||
|
|
||||||
|
return key_usage;
|
||||||
|
}
|
||||||
|
diff --git a/include/cipher.h b/include/cipher.h
|
||||||
|
index 191e197..557ab70 100644
|
||||||
|
--- a/include/cipher.h
|
||||||
|
+++ b/include/cipher.h
|
||||||
|
@@ -54,9 +54,14 @@
|
||||||
|
|
||||||
|
#define PUBKEY_USAGE_SIG GCRY_PK_USAGE_SIGN /* Good for signatures. */
|
||||||
|
#define PUBKEY_USAGE_ENC GCRY_PK_USAGE_ENCR /* Good for encryption. */
|
||||||
|
-#define PUBKEY_USAGE_CERT GCRY_PK_USAGE_CERT /* Also good to certify keys. */
|
||||||
|
+#define PUBKEY_USAGE_CERT GCRY_PK_USAGE_CERT /* Also good to certify keys.*/
|
||||||
|
#define PUBKEY_USAGE_AUTH GCRY_PK_USAGE_AUTH /* Good for authentication. */
|
||||||
|
#define PUBKEY_USAGE_UNKNOWN GCRY_PK_USAGE_UNKN /* Unknown usage flag. */
|
||||||
|
+#define PUBKEY_USAGE_NONE 256 /* No usage given. */
|
||||||
|
+#if (GCRY_PK_USAGE_SIGN | GCRY_PK_USAGE_ENCR | GCRY_PK_USAGE_CERT \
|
||||||
|
+ | GCRY_PK_USAGE_AUTH | GCRY_PK_USAGE_UNKN) >= 256
|
||||||
|
+# error Please choose another value for PUBKEY_USAGE_NONE
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
#define DIGEST_ALGO_MD5 /* 1 */ GCRY_MD_MD5
|
||||||
|
#define DIGEST_ALGO_SHA1 /* 2 */ GCRY_MD_SHA1
|
||||||
|
--
|
||||||
|
1.7.2.5
|
||||||
|
|
@ -0,0 +1,157 @@
|
|||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/gnupg-2.0.21-r2.ebuild,v 1.1 2013/10/04 22:24:40 alonbl Exp $
|
||||||
|
|
||||||
|
EAPI="5"
|
||||||
|
|
||||||
|
inherit eutils flag-o-matic toolchain-funcs
|
||||||
|
|
||||||
|
DESCRIPTION="The GNU Privacy Guard, a GPL pgp replacement"
|
||||||
|
HOMEPAGE="http://www.gnupg.org/"
|
||||||
|
SRC_URI="mirror://gnupg/gnupg/${P}.tar.bz2"
|
||||||
|
# SRC_URI="ftp://ftp.gnupg.org/gcrypt/${PN}/${P}.tar.bz2"
|
||||||
|
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||||
|
IUSE="adns bzip2 doc ldap nls mta readline static selinux smartcard usb"
|
||||||
|
|
||||||
|
COMMON_DEPEND_LIBS="
|
||||||
|
>=dev-libs/libassuan-2
|
||||||
|
>=dev-libs/libgcrypt-1.4
|
||||||
|
>=dev-libs/libgpg-error-1.11
|
||||||
|
>=dev-libs/libksba-1.0.7
|
||||||
|
>=dev-libs/pth-1.3.7
|
||||||
|
>=net-misc/curl-7.10
|
||||||
|
sys-libs/zlib
|
||||||
|
adns? ( >=net-libs/adns-1.4 )
|
||||||
|
bzip2? ( app-arch/bzip2 )
|
||||||
|
readline? ( sys-libs/readline )
|
||||||
|
smartcard? ( usb? ( virtual/libusb:0 ) )
|
||||||
|
ldap? ( net-nds/openldap )"
|
||||||
|
COMMON_DEPEND_BINS="|| ( app-crypt/pinentry app-crypt/pinentry-qt )"
|
||||||
|
|
||||||
|
# Existence of executables is checked during configuration.
|
||||||
|
DEPEND="${COMMON_DEPEND_LIBS}
|
||||||
|
${COMMON_DEPEND_BINS}
|
||||||
|
static? (
|
||||||
|
>=dev-libs/libassuan-2[static-libs]
|
||||||
|
>=dev-libs/libgcrypt-1.4[static-libs]
|
||||||
|
>=dev-libs/libgpg-error-1.7[static-libs]
|
||||||
|
>=dev-libs/libksba-1.0.7[static-libs]
|
||||||
|
>=dev-libs/pth-1.3.7[static-libs]
|
||||||
|
>=net-misc/curl-7.10[static-libs]
|
||||||
|
sys-libs/zlib[static-libs]
|
||||||
|
bzip2? ( app-arch/bzip2[static-libs] )
|
||||||
|
)
|
||||||
|
nls? ( sys-devel/gettext )
|
||||||
|
doc? ( sys-apps/texinfo )"
|
||||||
|
|
||||||
|
RDEPEND="!static? ( ${COMMON_DEPEND_LIBS} )
|
||||||
|
${COMMON_DEPEND_BINS}
|
||||||
|
mta? ( virtual/mta )
|
||||||
|
!<=app-crypt/gnupg-2.0.1
|
||||||
|
selinux? ( sec-policy/selinux-gpg )
|
||||||
|
nls? ( virtual/libintl )"
|
||||||
|
|
||||||
|
REQUIRED_USE="smartcard? ( !static )"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
epatch "${FILESDIR}/${PN}-2.0.17-gpgsm-gencert.patch"
|
||||||
|
epatch "${FILESDIR}/${P}-CVE-2013-4351.patch"
|
||||||
|
epatch_user
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local myconf=()
|
||||||
|
|
||||||
|
# 'USE=static' support was requested:
|
||||||
|
# gnupg1: bug #29299
|
||||||
|
# gnupg2: bug #159623
|
||||||
|
use static && append-ldflags -static
|
||||||
|
|
||||||
|
if use smartcard; then
|
||||||
|
myconf+=(
|
||||||
|
--enable-scdaemon
|
||||||
|
$(use_enable usb ccid-driver)
|
||||||
|
)
|
||||||
|
else
|
||||||
|
myconf+=( --disable-scdaemon )
|
||||||
|
fi
|
||||||
|
|
||||||
|
econf \
|
||||||
|
--docdir="${EPREFIX}/usr/share/doc/${PF}" \
|
||||||
|
--enable-gpg \
|
||||||
|
--enable-gpgsm \
|
||||||
|
--enable-agent \
|
||||||
|
"${myconf[@]}" \
|
||||||
|
$(use_with adns) \
|
||||||
|
$(use_enable bzip2) \
|
||||||
|
$(use_enable !elibc_SunOS symcryptrun) \
|
||||||
|
$(use_enable nls) \
|
||||||
|
$(use_enable mta mailto) \
|
||||||
|
$(use_enable ldap) \
|
||||||
|
$(use_with readline) \
|
||||||
|
CC_FOR_BUILD="$(tc-getBUILD_CC)"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
default
|
||||||
|
|
||||||
|
if use doc; then
|
||||||
|
cd doc
|
||||||
|
emake html
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
|
||||||
|
emake DESTDIR="${D}" -f doc/Makefile uninstall-nobase_dist_docDATA
|
||||||
|
rm "${ED}"/usr/share/gnupg/help* || die
|
||||||
|
|
||||||
|
dodoc ChangeLog NEWS README THANKS TODO VERSION doc/FAQ doc/DETAILS \
|
||||||
|
doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER doc/help*
|
||||||
|
|
||||||
|
dosym gpg2 /usr/bin/gpg
|
||||||
|
dosym gpgv2 /usr/bin/gpgv
|
||||||
|
dosym gpg2keys_hkp /usr/libexec/gpgkeys_hkp
|
||||||
|
dosym gpg2keys_finger /usr/libexec/gpgkeys_finger
|
||||||
|
dosym gpg2keys_curl /usr/libexec/gpgkeys_curl
|
||||||
|
if use ldap; then
|
||||||
|
dosym gpg2keys_ldap /usr/libexec/gpgkeys_ldap
|
||||||
|
fi
|
||||||
|
echo ".so man1/gpg2.1" > "${ED}"/usr/share/man/man1/gpg.1
|
||||||
|
echo ".so man1/gpgv2.1" > "${ED}"/usr/share/man/man1/gpgv.1
|
||||||
|
|
||||||
|
dodir /etc/env.d
|
||||||
|
echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg
|
||||||
|
|
||||||
|
if use doc; then
|
||||||
|
dohtml doc/gnupg.html/* doc/*.png
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elog "If you wish to view images emerge:"
|
||||||
|
elog "media-gfx/xloadimage, media-gfx/xli or any other viewer"
|
||||||
|
elog "Remember to use photo-viewer option in configuration file to activate"
|
||||||
|
elog "the right viewer."
|
||||||
|
elog
|
||||||
|
|
||||||
|
if use smartcard; then
|
||||||
|
elog "To use your OpenPGP smartcard (or token) with GnuPG you need one of"
|
||||||
|
use usb && elog " - a CCID-compatible reader, used directly through libusb;"
|
||||||
|
elog " - sys-apps/pcsc-lite and a compatible reader device;"
|
||||||
|
elog " - dev-libs/openct and a compatible reader device;"
|
||||||
|
elog " - a reader device and drivers exporting either PC/SC or CT-API interfaces."
|
||||||
|
elog ""
|
||||||
|
elog "General hint: you probably want to try installing sys-apps/pcsc-lite and"
|
||||||
|
elog "app-crypt/ccid first."
|
||||||
|
fi
|
||||||
|
|
||||||
|
ewarn "Please remember to restart gpg-agent if a different version"
|
||||||
|
ewarn "of the agent is currently used. If you are unsure of the gpg"
|
||||||
|
ewarn "agent you are using please run 'killall gpg-agent',"
|
||||||
|
ewarn "and to start a fresh daemon just run 'gpg-agent --daemon'."
|
||||||
|
}
|
@ -0,0 +1,9 @@
|
|||||||
|
# ChangeLog for app-crypt/tc-play
|
||||||
|
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-crypt/tc-play/ChangeLog,v 1.1 2013/10/05 16:07:34 alonbl Exp $
|
||||||
|
|
||||||
|
*tc-play-1.1 (05 Oct 2013)
|
||||||
|
|
||||||
|
05 Oct 2013; Alon Bar-Lev <alonbl@gentoo.org> +metadata.xml,
|
||||||
|
+tc-play-1.1.ebuild:
|
||||||
|
Initial import, bug#432914
|
@ -0,0 +1,14 @@
|
|||||||
|
-----BEGIN PGP SIGNED MESSAGE-----
|
||||||
|
Hash: SHA256
|
||||||
|
|
||||||
|
DIST tc-play-1.1.tar.gz 1011669 SHA256 62346e852c6f781fffebf5c43e5967ceb0e36304626aa27e77c77378f8215d84 SHA512 9401e094d207cdc81fca6451c82de6bf8e1d8a4fc9bc330183cace2000bb82e81f04ca33a6bfdbe4b8ac3f09489e408b37255f2ed7701c21f62a59f4ee92b6c9 WHIRLPOOL 06c5eb3551e1dcc100d55043bec4952d06783799e7ed916487032a7e32a74f3eea317dadc3cc60e1ae9eb0654779058503f288ee791776a997669a91d0da7653
|
||||||
|
EBUILD tc-play-1.1.ebuild 1103 SHA256 307b0e3efef526c9e29c17e9f5a532a9c17d56ee2246b5b965e1a8f2c8f92e41 SHA512 b8254d184e6a5770af809f1c1bbdbd00a7403fb297516cae8b726ad034439de572dc8e225b53a47a1513bc32c6f66e6df6897dae309c2ad5f637afab7f608762 WHIRLPOOL 421fafda9cb22aeaf6f8b2b2bdf4190aa0d743d0731c27ad6db5f931fe5c9a034c7037f890abe42533c4784f815c4da8b4ca5c67b16eafbd3bcd9ab81caf4b5e
|
||||||
|
MISC ChangeLog 350 SHA256 ab357421079ed554f9734d5b880461166e18a05b0caabc32718b0f0c864d49da SHA512 b9e668433a351c1ec4a49e036570f06e3d42cf5de018c4c5450835a43732caa8b7bda853369cfd4c1a182f125ad51fcdb69129b314b00b8684679dabb2c414ba WHIRLPOOL 72ba86568efadbcdb4462e9af83a256486ac42a2bf12436c43ac5c0d44e020af461d0f87751a4231bd219625a0207330ee36afa23fb03421145faf370ab836c3
|
||||||
|
MISC metadata.xml 250 SHA256 deee38f52b017ddf0a8c86da684ca968a3b77d5bbbfbbba3a45891816c8f2249 SHA512 e82f29b019d1786a9f936c2882cf2853ddcf4ba7df3a17130620fd93408b6d63df900cf848975815524977c90743650178b6563fb0b14da6762b788de26e61cc WHIRLPOOL c29ed944274949c1aa06023e1b653b5a3feac3eb9de842ba99aaeab6a5893b44c480782eba69ac6cfcf3396bb946bdb1f06eed3e33af7fe1523e37109e01027a
|
||||||
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
Version: GnuPG v2.0.20 (GNU/Linux)
|
||||||
|
|
||||||
|
iF4EAREIAAYFAlJQOUoACgkQXYk9GL8g3FEMIwEAoSKS8m+Ksb6z6V5TbKlBoclO
|
||||||
|
B1sXSw5CTBRZOADqpO4A/3Eoek9rdRx/ma7KZzsdnqWjCANAiiLVW7JHsxP8FcaV
|
||||||
|
=AV1f
|
||||||
|
-----END PGP SIGNATURE-----
|
@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<herd>crypto</herd>
|
||||||
|
<use>
|
||||||
|
<flag name='openssl'>
|
||||||
|
Use openssl crypto backend.
|
||||||
|
</flag>
|
||||||
|
</use>
|
||||||
|
</pkgmetadata>
|
@ -0,0 +1,51 @@
|
|||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-crypt/tc-play/tc-play-1.1.ebuild,v 1.1 2013/10/05 16:07:34 alonbl Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
inherit toolchain-funcs multilib
|
||||||
|
|
||||||
|
DESCRIPTION="a free, pretty much fully featured and stable TrueCrypt implementation"
|
||||||
|
HOMEPAGE="https://github.com/bwalex/tc-play"
|
||||||
|
SRC_URI="https://github.com/bwalex/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
IUSE="openssl"
|
||||||
|
|
||||||
|
DEPEND="dev-libs/libgpg-error
|
||||||
|
sys-fs/lvm2
|
||||||
|
sys-apps/util-linux
|
||||||
|
dev-libs/libgcrypt
|
||||||
|
openssl? ( dev-libs/openssl )"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
local backend="gcrypt"
|
||||||
|
use openssl && backend="openssl"
|
||||||
|
|
||||||
|
EXTRA_MAKE_FLAGS=(
|
||||||
|
PBKDF_BACKEND="${backend}"
|
||||||
|
WARNFLAGS=""
|
||||||
|
CC=$(tc-getCC)
|
||||||
|
AR=$(tc-getAR)
|
||||||
|
PREFIX=/usr \
|
||||||
|
LIBDIR=/usr/$(get_libdir)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
emake -f Makefile.classic \
|
||||||
|
tcplay \
|
||||||
|
"${EXTRA_MAKE_FLAGS[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake -f Makefile.classic \
|
||||||
|
"${EXTRA_MAKE_FLAGS[@]}" \
|
||||||
|
install_program \
|
||||||
|
DESTDIR="${ED}"
|
||||||
|
dodoc README.md
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-editors/adie/adie-1.7.42.ebuild,v 1.1 2013/10/05 17:23:21 mabi Exp $
|
||||||
|
|
||||||
|
EAPI="4"
|
||||||
|
|
||||||
|
inherit fox
|
||||||
|
|
||||||
|
DESCRIPTION="Text editor based on the FOX Toolkit"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND="~x11-libs/fox-${PV}"
|
||||||
|
RDEPEND="${DEPEND}"
|
@ -0,0 +1,54 @@
|
|||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-editors/mg/mg-20130922.ebuild,v 1.3 2013/10/06 15:06:27 jer Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
inherit toolchain-funcs
|
||||||
|
|
||||||
|
DESCRIPTION="MicroGnuEmacs, a port from the BSDs"
|
||||||
|
HOMEPAGE="http://homepage.boetes.org/software/mg/"
|
||||||
|
SRC_URI="http://homepage.boetes.org/software/mg/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="public-domain"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~hppa"
|
||||||
|
IUSE="livecd"
|
||||||
|
|
||||||
|
RDEPEND="sys-libs/ncurses"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
virtual/pkgconfig
|
||||||
|
dev-libs/clens"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# create our own Makefile to avoid BSD make
|
||||||
|
echo -e 'SRCS =' *.c '\n\nmg: $(SRCS:.c=.o)' \
|
||||||
|
'\n\t$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)' >Makefile || die
|
||||||
|
|
||||||
|
# remove OpenBSD specific easter egg
|
||||||
|
sed -i -e 's/theo\.c//' Makefile || die
|
||||||
|
sed -i -e '/theo_init/d' main.c || die
|
||||||
|
|
||||||
|
# fix path to tutorial in man page
|
||||||
|
sed -i -e "s:doc/mg/:doc/${PF}/:" mg.1 || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
emake CC="$(tc-getCC)" \
|
||||||
|
CFLAGS="${CFLAGS} -DFKEYS -DREGEX -DXKEYS -I/usr/include/clens" \
|
||||||
|
LDLIBS="-lclens $("$(tc-getPKG_CONFIG)" --libs ncurses)"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin mg
|
||||||
|
doman mg.1
|
||||||
|
dodoc README README_PORTING tutorial
|
||||||
|
# don't compress the tutorial, otherwise mg cannot open it
|
||||||
|
docompress -x /usr/share/doc/${PF}/tutorial
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
if use livecd; then
|
||||||
|
[[ -e ${EROOT}/usr/bin/emacs ]] || ln -s mg "${EROOT}"/usr/bin/emacs
|
||||||
|
fi
|
||||||
|
}
|
@ -0,0 +1,87 @@
|
|||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-editors/scite/scite-3.3.5.ebuild,v 1.1 2013/10/05 10:36:21 ago Exp $
|
||||||
|
|
||||||
|
EAPI="4"
|
||||||
|
|
||||||
|
inherit toolchain-funcs eutils
|
||||||
|
|
||||||
|
MY_PV=${PV//./}
|
||||||
|
DESCRIPTION="A very powerful editor for programmers"
|
||||||
|
HOMEPAGE="http://www.scintilla.org/SciTE.html"
|
||||||
|
SRC_URI="mirror://sourceforge/scintilla/${PN}${MY_PV}.tgz"
|
||||||
|
|
||||||
|
LICENSE="HPND lua? ( MIT )"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~arm-linux ~x86-linux"
|
||||||
|
IUSE="lua"
|
||||||
|
|
||||||
|
RDEPEND="dev-libs/glib
|
||||||
|
x11-libs/cairo
|
||||||
|
x11-libs/gtk+:2
|
||||||
|
x11-libs/gdk-pixbuf
|
||||||
|
x11-libs/pango
|
||||||
|
lua? ( >=dev-lang/lua-5 )"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
virtual/pkgconfig
|
||||||
|
>=sys-apps/sed-4"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${PN}/gtk"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
cd "${WORKDIR}/scintilla/gtk"
|
||||||
|
sed -i makefile \
|
||||||
|
-e "s#^CXXFLAGS=#CXXFLAGS=${CXXFLAGS} #" \
|
||||||
|
-e "s#^\(CXXFLAGS=.*\)-Os#\1#" \
|
||||||
|
-e "s#^CC =\(.*\)#CC = $(tc-getCXX)#" \
|
||||||
|
-e "s#^CCOMP =\(.*\)#CCOMP = $(tc-getCC)#" \
|
||||||
|
-e "s#-Os##" \
|
||||||
|
|| die "error patching makefile"
|
||||||
|
|
||||||
|
cd "${WORKDIR}/scite/gtk"
|
||||||
|
sed -i makefile \
|
||||||
|
-e "s#-rdynamic#-rdynamic ${LDFLAGS}#" \
|
||||||
|
|| die "error patching makefile"
|
||||||
|
|
||||||
|
cd "${S}"
|
||||||
|
sed -i makefile \
|
||||||
|
-e 's#usr/local#usr#g' \
|
||||||
|
-e 's#/gnome/apps/Applications#/applications#' \
|
||||||
|
-e "s#^CXXFLAGS=#CXXFLAGS=${CXXFLAGS} #" \
|
||||||
|
-e "s#^\(CXXFLAGS=.*\)-Os#\1#" \
|
||||||
|
-e "s#^CC =\(.*\)#CC = $(tc-getCXX)#" \
|
||||||
|
-e "s#^CCOMP =\(.*\)#CCOMP = $(tc-getCC)#" \
|
||||||
|
-e 's#${D}##' \
|
||||||
|
-e 's#-g root#-g 0#' \
|
||||||
|
-e "s#-Os##" \
|
||||||
|
|| die "error patching makefile"
|
||||||
|
cd "${WORKDIR}"
|
||||||
|
epatch "${FILESDIR}/${PN}-3.0.1-no-lua.patch"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
emake -C ../../scintilla/gtk AR="$(tc-getAR)"
|
||||||
|
if use lua; then
|
||||||
|
emake
|
||||||
|
else
|
||||||
|
emake NO_LUA=1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dodir /usr/bin
|
||||||
|
dodir /usr/share/{pixmaps,applications}
|
||||||
|
|
||||||
|
emake prefix="${ED}/usr" install
|
||||||
|
|
||||||
|
# we have to keep this because otherwise it'll break upgrading
|
||||||
|
mv "${ED}/usr/bin/SciTE" "${ED}/usr/bin/scite" || die
|
||||||
|
dosym /usr/bin/scite /usr/bin/SciTE
|
||||||
|
|
||||||
|
# replace .desktop file with our own working version
|
||||||
|
rm -f "${ED}/usr/share/applications/SciTE.desktop"
|
||||||
|
domenu "${FILESDIR}/scite.desktop"
|
||||||
|
|
||||||
|
doman ../doc/scite.1
|
||||||
|
dodoc ../README
|
||||||
|
}
|
@ -1,25 +1,24 @@
|
|||||||
-----BEGIN PGP SIGNED MESSAGE-----
|
-----BEGIN PGP SIGNED MESSAGE-----
|
||||||
Hash: SHA1
|
Hash: SHA256
|
||||||
|
|
||||||
AUX 50yaml-mode-gentoo.el 160 SHA256 0aa6492c4370ff0a667a25ec874cd331f936f414a8bd3796c5ee93914a2fa17b SHA512 7c47cf500d16296ebd791a9b307b844bfd9077142f511aa362cd1f1f8c1464c5617eba0eb613f801f326dde6f91afc88f6d8c59c103ae4e1ce77b01ac008d6c4 WHIRLPOOL 409c8996a2e15947dfe3d185799a2ca5c8d31e43c256a9a4764200784f104e2326ff24391a9301943f8f7952db085fa65be28c73c52bd3816df00329e00b4bd6
|
AUX 50yaml-mode-gentoo.el 160 SHA256 0aa6492c4370ff0a667a25ec874cd331f936f414a8bd3796c5ee93914a2fa17b SHA512 7c47cf500d16296ebd791a9b307b844bfd9077142f511aa362cd1f1f8c1464c5617eba0eb613f801f326dde6f91afc88f6d8c59c103ae4e1ce77b01ac008d6c4 WHIRLPOOL 409c8996a2e15947dfe3d185799a2ca5c8d31e43c256a9a4764200784f104e2326ff24391a9301943f8f7952db085fa65be28c73c52bd3816df00329e00b4bd6
|
||||||
DIST yaml-mode-0.0.8.tar.gz 6271 SHA256 88695798a4df55e5d42e880b7d24b18d180cc0a9989f8057ea48ec66365586f5 SHA512 3239d834b1202058d3414130b6374301f502b57e852786396a8d4e4d83e7e6c6a89b845799a0fbfdb458a93a85d8a03a1574522be38f929d032de4bc06f2935b WHIRLPOOL 2ba200432a107f00470dbfec9d5c7ee6cd4c586bf83b5b350987f3c0e7f3cc41be8d9974e65dcec45e2247f2768da56d184826e19ee82f0152a154004b50a9a2
|
DIST yaml-mode-0.0.8.tar.gz 6271 SHA256 88695798a4df55e5d42e880b7d24b18d180cc0a9989f8057ea48ec66365586f5 SHA512 3239d834b1202058d3414130b6374301f502b57e852786396a8d4e4d83e7e6c6a89b845799a0fbfdb458a93a85d8a03a1574522be38f929d032de4bc06f2935b WHIRLPOOL 2ba200432a107f00470dbfec9d5c7ee6cd4c586bf83b5b350987f3c0e7f3cc41be8d9974e65dcec45e2247f2768da56d184826e19ee82f0152a154004b50a9a2
|
||||||
EBUILD yaml-mode-0.0.8.ebuild 518 SHA256 346ef56c7f47fe1cc37f2ebf4a0fee0800fa6d20e7407387751f4e9aabc2faa9 SHA512 f0c79dc4d3114469bb0b9f7fe574e696ff2a2ffb8b864dcfadd61755e22078e19d2100469b238bc80116400a515591e8f12190a2d359cba719b7574f551c1f1a WHIRLPOOL 9a09b1ff1b5731b7cdbfc545783dde71a5cfecdfc5ec11bd6d4fcc47ee3a24ba674f21b8e648375e2c0a7ada802c5c1c1de6dfbf39e1457d15ec821e4cd92b35
|
DIST yaml-mode-0.0.9.tar.gz 6498 SHA256 5d65852d9d738fd1966125f8ae737760ae48e647030e1aa5a78fd703f54358fc SHA512 cdfb0694d2efe5bb86ab5280e78d577d5bdac906a7745c6e988128cbb001f1f78569199288e2c12e7977a35c35f9e47f3271747bf26fcdfab5d2a961295550ea WHIRLPOOL 58ee875ce20ab49595b4372a979417deb672c09647f5b0859d3dddf484302b8bf4b65243e18709d7d6edec757d6528a59814f4b9f56fe98178d4966fcba5018f
|
||||||
MISC ChangeLog 590 SHA256 b79b17e2c553b9fc25e04fa12c46514bb9eebc563affe4a74818f5dfe4e80dec SHA512 532a470186b07c1bde958e0a58a639008ec4229242bc3db9f3e62c6f5fc89050d6d49e04d7b1154a3308c817875c98efb8d8fe4a3e5271e5e039b98a15b6cb0c WHIRLPOOL d42fa10afc25f257ec1cf02d187e6fbee2bd738c824704d6c5c7841fcc1f2b0b31beb8ed2890e06eee58e1982985c6c99e2def449b9601fe68aea0292168bafe
|
EBUILD yaml-mode-0.0.8.ebuild 511 SHA256 aa8e5b6929e96158493e218f398ffcd624b719c1c8891e322a823506ab6da5f7 SHA512 bc87a49e2c9d1d93899fbbfbeb6e85dd86007e1e83eb7164f05fc40a05a989aa496b7039c16e5bc7a59bcda4bc6489a4e5ab80c41a202d316fb528f623d0f617 WHIRLPOOL b5460748d19b287f386fa8806ae01e5dc13331b81fa181c97a6fccfd46020a18e394f9dbe6289d6d4d31d780b42b74e0dcd368c19a9d64c99d79ed185b2b494a
|
||||||
|
EBUILD yaml-mode-0.0.9.ebuild 581 SHA256 6f0843279b4dc98701f84d0b4171020884fa0f98afc37cfbe97e2b27c4bf7885 SHA512 23c741932fdd3852868077dea138f4632e17f78952176bf3d2f433a4ef94a65345da1cff8feacf71c1a26a4885097a2b05ae3272b51c503c4590a7894e61246f WHIRLPOOL 830ac59227b7344a499e04a4e69500aa1f64d8acbe9ee99fc6c065293b6de83af6e9429041aae9df94169e9f4635943269f74b6db9f33131032d1c5190e437e9
|
||||||
|
MISC ChangeLog 808 SHA256 bd4f2e3ac70ce9eec9c3573981010d7acbb18729c2ccd2a7b189eb6ea26535bc SHA512 79a83424761f400c6b06199fed78a2e54d40d00b3958bf005edeba0c6dd34b2f0701c01f9624beb99dd471e9ba48bc12596195523633fac907ba965d2aef782d WHIRLPOOL 58ed8f3c8056c2bd44ac5ffd278d87e78c51e12a19300e8ce894bc079c810a77a725c7f59cc429ae325e32ad0a33914f7a519fa3b94352cd08b98e26d9222f71
|
||||||
MISC metadata.xml 223 SHA256 b529abc4b5e131c1b6ced0a4db0aaecde036636102c0ad8af20b304796059c1a SHA512 5a23c6b44d3761f83f95ad87734405c53d422f47f3511a2150e881ac131c3579fe8e92818e75a740fc45ca6257648c4dc3cecef480e6c2feac293e19421f66b4 WHIRLPOOL e25d4741bb7ab98de6fcb07263f680038e85349346f63234a3bfa56a25259f0e98e542d2b0ed9178dfd048b3c81bd4ef74645410826327e69943a39b06050591
|
MISC metadata.xml 223 SHA256 b529abc4b5e131c1b6ced0a4db0aaecde036636102c0ad8af20b304796059c1a SHA512 5a23c6b44d3761f83f95ad87734405c53d422f47f3511a2150e881ac131c3579fe8e92818e75a740fc45ca6257648c4dc3cecef480e6c2feac293e19421f66b4 WHIRLPOOL e25d4741bb7ab98de6fcb07263f680038e85349346f63234a3bfa56a25259f0e98e542d2b0ed9178dfd048b3c81bd4ef74645410826327e69943a39b06050591
|
||||||
-----BEGIN PGP SIGNATURE-----
|
-----BEGIN PGP SIGNATURE-----
|
||||||
Version: GnuPG v2.0.19 (GNU/Linux)
|
Version: GnuPG v2.0.21 (GNU/Linux)
|
||||||
|
|
||||||
iQIcBAEBAgAGBQJP9fcKAAoJEDxpGckxwJCBhP0QAI4B1jtfuj1qoLsaK8S0oUvE
|
iQGcBAEBCAAGBQJSTXkYAAoJEJQzkH1pP7W4zZUL/0t+orS8WL3TBtGjrwz3ALUO
|
||||||
OJA75MMR5NJbc5YcfVtmQvwTfs/cNQCM6eCVoYUeXsjidVN0nsRrMMImJvklT4V0
|
sxe7sSgDoAK1laGQaLk5LTM590rkpUwhoCMCZkOy6XR/GwTFqIdXTx/BfP9spLZm
|
||||||
AuyfXa7SGnZB5e2m/A2fFJXdss7uLBKz/9bdyFPYgElzjHxOrBN61T74vH16rlTi
|
6sECxyjQGxE/FDRpzCjLsypBG1CLRIhPcXvW5reIHj16SNfjgcmdVvf++cjjXfkA
|
||||||
PJp+VRwnAtnSMYXcs02NIzS+jtbytnxZAoukef1ICFzJ91cvPmPTV+QUYQqzNSHF
|
zn/P4GnrQubNz9t+s83QYAcwrk+cf6DZxwranR1cbacOtXEohlBA37UiPwqGuKOt
|
||||||
576Jstv9utdOX35ErXfpvWZVcAbiWFV05cBgOYWc1dMUhngRWwh74/8v4zFT/R6v
|
yaJzTt79YbdKA+y+O5YKExtIfbaNx4Ihg2gTWS5ocer0zR87xFpNl7ZFVoezo9fJ
|
||||||
HMg1yFXmFVnHnYcbw0Wo5LPOitG1kSvBzVy3taO1xWQJp3A90wihgxKWCy41P+dC
|
/JZyqXUtIqD7WhpcYE4hwtXQsrKmeb9UgvhaBpEXgf40jbYRCKK0LDLf4scbMWLQ
|
||||||
DMebMy0hn179oHT+/piFwLtr1At6FSpKWKiWH+mNCX782FJHjb8N96Y0u8ed0DF8
|
4sj/T4N3mghd35EJnAxfSUikzq5AuYCymiujza9HXa+ZA9BbSvQwPtw0H/8mfPd/
|
||||||
4I63ZgXkHIlQQjEBYGg8wSzpxFYOZgal+cLwyscKlhrwVcuyA9E5L/Zi8thpeWoB
|
hIE/zxRCZyXDceqc7FuP5XZy910GhvfCYG2B0witg20t40UNFh84Tq6t2yb6qxOw
|
||||||
2/KWutWD3B1B7/xBVxSdEHy09/uDYEbwUowKlkz+5LRDBH9/LO3e4W9+VexcIWl1
|
otfoOHS1wNjgt9DcPhszI6sVDmEjUkBdsdIij0Ke1Q==
|
||||||
LyYrFBk+UV+xifChoKH+kDocnOQnzu+csWJwA4LLZWAAzSM+MbKQoMZjYUhQ7gRS
|
=2BAc
|
||||||
XrpPd+8BRrKCLVKg4E/ISHAOsiaEfRayHOI8pnv4GM2hnbDJGa69LZatQz9ZD1Gb
|
|
||||||
tg8WZfNbtlJdroLYu+jZ
|
|
||||||
=uUoq
|
|
||||||
-----END PGP SIGNATURE-----
|
-----END PGP SIGNATURE-----
|
||||||
|
@ -0,0 +1,19 @@
|
|||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-emacs/yaml-mode/yaml-mode-0.0.9.ebuild,v 1.1 2013/10/03 14:02:08 ulm Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
inherit elisp
|
||||||
|
|
||||||
|
DESCRIPTION="A major mode for GNU Emacs for editing YAML files"
|
||||||
|
HOMEPAGE="https://github.com/yoshiki/yaml-mode"
|
||||||
|
SRC_URI="https://github.com/yoshiki/${PN}/archive/release-${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2+"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${PN}-release-${PV}"
|
||||||
|
DOCS="README Changes"
|
||||||
|
SITEFILE="50${PN}-gentoo.el"
|
@ -0,0 +1,164 @@
|
|||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-emulation/docker/docker-0.6.3-r1.ebuild,v 1.1 2013/10/05 17:41:13 gregkh Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
DESCRIPTION="Docker complements LXC with a high-level API which operates at the process level."
|
||||||
|
HOMEPAGE="http://www.docker.io/"
|
||||||
|
SRC_URI=""
|
||||||
|
|
||||||
|
EGIT_REPO_URI="git://github.com/dotcloud/docker.git"
|
||||||
|
if [[ ${PV} == *9999 ]]; then
|
||||||
|
KEYWORDS=""
|
||||||
|
else
|
||||||
|
EGIT_COMMIT="v${PV}"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
fi
|
||||||
|
|
||||||
|
inherit bash-completion-r1 git-2 linux-info systemd user
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="doc vim-syntax"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
>=dev-lang/go-1.1.2
|
||||||
|
dev-vcs/git
|
||||||
|
dev-vcs/mercurial
|
||||||
|
doc? (
|
||||||
|
dev-python/sphinx
|
||||||
|
dev-python/sphinxcontrib-httpdomain
|
||||||
|
)
|
||||||
|
"
|
||||||
|
RDEPEND="
|
||||||
|
!app-emulation/lxc-docker-bin
|
||||||
|
>=app-arch/tar-1.26
|
||||||
|
>=sys-apps/iproute2-3.5
|
||||||
|
>=net-firewall/iptables-1.4
|
||||||
|
>=app-emulation/lxc-0.8
|
||||||
|
>=dev-vcs/git-1.7
|
||||||
|
>=app-arch/xz-utils-4.9
|
||||||
|
|| (
|
||||||
|
sys-fs/aufs3
|
||||||
|
sys-kernel/aufs-sources
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
RESTRICT="strip"
|
||||||
|
|
||||||
|
DOCKERFILE_VIM_S="${WORKDIR}/dockerfile.vim"
|
||||||
|
|
||||||
|
# TODO AUFS will be replaced with device-mapper (sys-fs/lvm2[static-libs]) in 0.7
|
||||||
|
ERROR_AUFS_FS="AUFS_FS is required to be set if and only if aufs-sources are used"
|
||||||
|
|
||||||
|
ERROR_MEMCG_SWAP="MEMCG_SWAP is required if you wish to limit swap usage of containers"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
CONFIG_CHECK+=" ~AUFS_FS ~BRIDGE ~MEMCG_SWAP ~NETFILTER_XT_MATCH_ADDRTYPE ~NF_NAT ~NF_NAT_NEEDED"
|
||||||
|
check_extra_config
|
||||||
|
}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
git-2_src_unpack
|
||||||
|
|
||||||
|
if use vim-syntax; then
|
||||||
|
( # subshell to prevent environment leakage (and confusion of smart-live-rebuild)
|
||||||
|
EGIT_SOURCEDIR="${DOCKERFILE_VIM_S}"
|
||||||
|
EGIT_PROJECT="honza-dockerfile.vim.git"
|
||||||
|
EGIT_REPO_URI="https://github.com/honza/dockerfile.vim.git"
|
||||||
|
EGIT_MASTER="master"
|
||||||
|
EGIT_BRANCH="${EGIT_MASTER}"
|
||||||
|
EGIT_COMMIT="${EGIT_BRANCH}"
|
||||||
|
EGIT_NOUNPACK="true"
|
||||||
|
git-2_src_unpack
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
export CGO_ENABLED=0 # we need static linking!
|
||||||
|
|
||||||
|
export GOPATH="${WORKDIR}/gopath"
|
||||||
|
mkdir -p "$GOPATH" || die
|
||||||
|
|
||||||
|
# copy GOROOT so we can build it without cgo and not modify anything in the REAL_GOROOT
|
||||||
|
REAL_GOROOT="$(go env GOROOT)"
|
||||||
|
export GOROOT="${WORKDIR}/goroot"
|
||||||
|
rm -rf "$GOROOT" || die
|
||||||
|
cp -R "$REAL_GOROOT" "$GOROOT" || die
|
||||||
|
|
||||||
|
# recompile GOROOT to be cgo-less and thus static-able (especially net package)
|
||||||
|
go install -a -v std || die
|
||||||
|
|
||||||
|
# make sure docker itself is in our shiny new GOPATH
|
||||||
|
mkdir -p "${GOPATH}/src/github.com/dotcloud" || die
|
||||||
|
ln -sf "$(pwd -P)" "${GOPATH}/src/github.com/dotcloud/docker" || die
|
||||||
|
|
||||||
|
# we need our vendored deps, too
|
||||||
|
export GOPATH="$GOPATH:$(pwd -P)/vendor"
|
||||||
|
|
||||||
|
# time to build!
|
||||||
|
./hack/make.sh binary || die
|
||||||
|
|
||||||
|
# now copy the binary to a consistent location that doesn't involve the current version number
|
||||||
|
mkdir -p bin || die
|
||||||
|
VERSION=$(cat ./VERSION)
|
||||||
|
cp -v bundles/$VERSION/binary/docker-$VERSION bin/docker || die
|
||||||
|
|
||||||
|
if use doc; then
|
||||||
|
emake -C docs docs man || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin bin/docker
|
||||||
|
dodoc AUTHORS CONTRIBUTING.md CHANGELOG.md MAINTAINERS NOTICE README.md
|
||||||
|
|
||||||
|
newinitd "${FILESDIR}/docker-r2.initd" docker
|
||||||
|
newconfd "${FILESDIR}/docker-r2.confd" docker
|
||||||
|
|
||||||
|
systemd_dounit "${FILESDIR}/docker.service"
|
||||||
|
|
||||||
|
insinto /usr/share/${P}/contrib
|
||||||
|
doins contrib/README
|
||||||
|
cp -R "${S}/contrib"/* "${D}/usr/share/${P}/contrib/"
|
||||||
|
|
||||||
|
newbashcomp contrib/docker.bash docker
|
||||||
|
|
||||||
|
if use doc; then
|
||||||
|
dohtml -r docs/_build/html/*
|
||||||
|
doman docs/_build/man/*
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use vim-syntax; then
|
||||||
|
insinto /usr/share/vim/vimfiles
|
||||||
|
doins -r "${DOCKERFILE_VIM_S}/ftdetect"
|
||||||
|
doins -r "${DOCKERFILE_VIM_S}/syntax"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elog ""
|
||||||
|
elog "To use docker, the docker daemon must be running as root. To automatically"
|
||||||
|
elog "start the docker daemon at boot, add docker to the default runlevel:"
|
||||||
|
elog " rc-update add docker default"
|
||||||
|
elog "Similarly for systemd:"
|
||||||
|
elog " systemctl enable docker.service"
|
||||||
|
elog ""
|
||||||
|
|
||||||
|
# create docker group if the code checking for it in /etc/group exists
|
||||||
|
enewgroup docker
|
||||||
|
|
||||||
|
elog "To use docker as a non-root user, add yourself to the docker group."
|
||||||
|
elog ""
|
||||||
|
|
||||||
|
ewarn ""
|
||||||
|
ewarn "If you want your containers to have access to the public internet or even"
|
||||||
|
ewarn "the existing private network, IP Forwarding must be enabled:"
|
||||||
|
ewarn " sysctl -w net.ipv4.ip_forward=1"
|
||||||
|
ewarn "or more permanently:"
|
||||||
|
ewarn " echo net.ipv4.ip_forward = 1 > /etc/sysctl.d/${PN}.conf"
|
||||||
|
ewarn "Please be mindful of the security implications of enabling IP Forwarding."
|
||||||
|
ewarn ""
|
||||||
|
}
|
@ -1,155 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-pvgrub/xen-pvgrub-4.2.1-r3.ebuild,v 1.4 2013/08/23 13:14:52 idella4 Exp $
|
|
||||||
|
|
||||||
EAPI=4
|
|
||||||
PYTHON_DEPEND="2:2.6"
|
|
||||||
|
|
||||||
inherit flag-o-matic eutils multilib python toolchain-funcs
|
|
||||||
|
|
||||||
XEN_EXTFILES_URL="http://xenbits.xensource.com/xen-extfiles"
|
|
||||||
LIBPCI_URL=ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci
|
|
||||||
GRUB_URL=mirror://gnu-alpha/grub
|
|
||||||
XSAPATCHES="http://dev.gentoo.org/~idella4/"
|
|
||||||
SRC_URI="
|
|
||||||
http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz
|
|
||||||
$GRUB_URL/grub-0.97.tar.gz
|
|
||||||
$XEN_EXTFILES_URL/zlib-1.2.3.tar.gz
|
|
||||||
$LIBPCI_URL/pciutils-2.2.9.tar.bz2
|
|
||||||
$XEN_EXTFILES_URL/lwip-1.3.0.tar.gz
|
|
||||||
$XEN_EXTFILES_URL/newlib/newlib-1.16.0.tar.gz
|
|
||||||
$XSAPATCHES/patches/XSA-55patches.tar.gz
|
|
||||||
"
|
|
||||||
|
|
||||||
S="${WORKDIR}/xen-${PV}"
|
|
||||||
|
|
||||||
DESCRIPTION="allows to boot Xen domU kernels from a menu.lst laying inside guest filesystem"
|
|
||||||
HOMEPAGE="http://xen.org/"
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
IUSE="custom-cflags"
|
|
||||||
|
|
||||||
DEPEND="sys-devel/gettext
|
|
||||||
dev-libs/yajl"
|
|
||||||
RDEPEND=">=app-emulation/xen-4.2.1"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
python_set_active_version 2
|
|
||||||
python_pkg_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
retar-externals() {
|
|
||||||
# Purely to unclutter src_prepare
|
|
||||||
local set="grub-0.97.tar.gz lwip-1.3.0.tar.gz newlib-1.16.0.tar.gz zlib-1.2.3.tar.gz"
|
|
||||||
|
|
||||||
# epatch can't patch in $WORKDIR, requires a sed; Bug #455194. Patchable, but sed informative
|
|
||||||
sed -e s':AR=${AR-"ar rc"}:AR=${AR-"ar"}:' \
|
|
||||||
-i "${WORKDIR}"/zlib-1.2.3/configure
|
|
||||||
sed -e 's:^AR=ar rc:AR=ar:' \
|
|
||||||
-e s':$(AR) $@:$(AR) rc $@:' \
|
|
||||||
-i "${WORKDIR}"/zlib-1.2.3/{Makefile,Makefile.in}
|
|
||||||
einfo "zlib Makefile edited"
|
|
||||||
|
|
||||||
cd "${WORKDIR}"
|
|
||||||
tar czp zlib-1.2.3 -f zlib-1.2.3.tar.gz
|
|
||||||
tar czp grub-0.97 -f grub-0.97.tar.gz
|
|
||||||
tar czp lwip -f lwip-1.3.0.tar.gz
|
|
||||||
tar czp newlib-1.16.0 -f newlib-1.16.0.tar.gz
|
|
||||||
mv $set "${S}"/stubdom/
|
|
||||||
einfo "tarballs moved to source"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# if the user *really* wants to use their own custom-cflags, let them
|
|
||||||
if use custom-cflags; then
|
|
||||||
einfo "User wants their own CFLAGS - removing defaults"
|
|
||||||
# try and remove all the default custom-cflags
|
|
||||||
find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-i {} \;
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Patch the unmergeable newlib, fix most of the leftover gcc QA issues
|
|
||||||
cp "${FILESDIR}"/newlib-implicits.patch stubdom || die
|
|
||||||
|
|
||||||
# Patch stubdom/Makefile to patch insource newlib & prevent internal downloading
|
|
||||||
epatch "${FILESDIR}"/${P/-pvgrub/}-externals.patch
|
|
||||||
|
|
||||||
# Drop .config and Fix gcc-4.6
|
|
||||||
epatch "${FILESDIR}"/${PN/-pvgrub/}-4-fix_dotconfig-gcc.patch
|
|
||||||
|
|
||||||
# fix jobserver in Makefile
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.2-jserver.patch
|
|
||||||
|
|
||||||
#Sec patch
|
|
||||||
epatch "${FILESDIR}"/${PN/-pvgrub/}-4-CVE-2012-6075-XSA-41.patch \
|
|
||||||
"${FILESDIR}"/xen-4-CVE-2013-0215-XSA-38.patch \
|
|
||||||
"${FILESDIR}"/xen-4-CVE-2013-1919-XSA-46.patch \
|
|
||||||
"${FILESDIR}"/xen-4-CVE-2013-1922-XSA-48.patch \
|
|
||||||
"${FILESDIR}"/xen-4-CVE-2013-1952-XSA_49.patch \
|
|
||||||
"${FILESDIR}"/xen-4.2-CVE-2013-1-XSA-55.patch \
|
|
||||||
"${FILESDIR}"/xen-4.2-CVE-2013-2-XSA-55.patch \
|
|
||||||
"${FILESDIR}"/xen-4.2-CVE-2013-3-XSA-55.patch \
|
|
||||||
"${FILESDIR}"/xen-4.2-CVE-2013-4-XSA-55.patch \
|
|
||||||
"${FILESDIR}"/xen-4.2-CVE-2013-5to7-XSA-55.patch \
|
|
||||||
"${WORKDIR}"/files/xen-4.2-CVE-2013-8-XSA-55.patch \
|
|
||||||
"${FILESDIR}"/xen-4.2-CVE-2013-9to10-XSA-55.patch \
|
|
||||||
"${WORKDIR}"/files/xen-4.2-CVE-2013-11-XSA-55.patch \
|
|
||||||
"${FILESDIR}"/xen-4.2-CVE-2013-12to13-XSA-55.patch \
|
|
||||||
"${FILESDIR}"/xen-4.2-CVE-2013-14-XSA-55.patch \
|
|
||||||
"${WORKDIR}"/files/xen-4.2-CVE-2013-15-XSA-55.patch \
|
|
||||||
"${FILESDIR}"/xen-4.2-CVE-2013-16-XSA-55.patch \
|
|
||||||
"${FILESDIR}"/xen-4.2-CVE-2013-17-XSA-55.patch \
|
|
||||||
"${FILESDIR}"/xen-4.2-CVE-2013-18to19-XSA-55.patch \
|
|
||||||
"${FILESDIR}"/xen-4.2-CVE-2013-20to23-XSA-55.patch
|
|
||||||
|
|
||||||
# Substitute for internal downloading. pciutils copied only due to the only .bz2
|
|
||||||
cp $DISTDIR/pciutils-2.2.9.tar.bz2 ./stubdom/ || die "pciutils not copied to stubdom"
|
|
||||||
|
|
||||||
retar-externals || die "re-tar procedure failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
use custom-cflags || unset CFLAGS
|
|
||||||
if test-flag-CC -fno-strict-overflow; then
|
|
||||||
append-flags -fno-strict-overflow
|
|
||||||
fi
|
|
||||||
|
|
||||||
emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" -C tools/include
|
|
||||||
|
|
||||||
if use x86; then
|
|
||||||
emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" \
|
|
||||||
XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub
|
|
||||||
elif use amd64; then
|
|
||||||
emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" \
|
|
||||||
XEN_TARGET_ARCH="x86_64" -C stubdom pv-grub
|
|
||||||
if use multilib; then
|
|
||||||
multilib_toolchain_setup x86
|
|
||||||
emake CC="$(tc-getCC)" AR="$(tc-getAR)" \
|
|
||||||
XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
if use x86; then
|
|
||||||
emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub
|
|
||||||
fi
|
|
||||||
if use amd64; then
|
|
||||||
emake XEN_TARGET_ARCH="x86_64" DESTDIR="${D}" -C stubdom install-grub
|
|
||||||
if use multilib; then
|
|
||||||
emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog "Official Xen Guide and the offical wiki page:"
|
|
||||||
elog "http://www.gentoo.org/doc/en/xen-guide.xml"
|
|
||||||
elog "http://wiki.xen.org/wiki/Main_Page"
|
|
||||||
}
|
|
@ -1,378 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/xen-tools-4.2.1-r5.ebuild,v 1.3 2013/08/23 13:03:29 idella4 Exp $
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
|
||||||
PYTHON_REQ_USE='xml,threads'
|
|
||||||
|
|
||||||
IPXE_TARBALL_URL="http://dev.gentoo.org/~idella4/tarballs/ipxe.tar.gz"
|
|
||||||
XEN_SEABIOS_URL="http://dev.gentoo.org/~idella4/tarballs/seabios-0-20121121.tar.bz2"
|
|
||||||
XSAPATCHES="http://dev.gentoo.org/~idella4/"
|
|
||||||
|
|
||||||
if [[ $PV == *9999 ]]; then
|
|
||||||
KEYWORDS=""
|
|
||||||
REPO="xen-unstable.hg"
|
|
||||||
EHG_REPO_URI="http://xenbits.xensource.com/${REPO}"
|
|
||||||
S="${WORKDIR}/${REPO}"
|
|
||||||
live_eclass="mercurial"
|
|
||||||
else
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
SRC_URI="http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz
|
|
||||||
$IPXE_TARBALL_URL
|
|
||||||
$XEN_SEABIOS_URL
|
|
||||||
$XSAPATCHES/patches/XSA-55patches.tar.gz"
|
|
||||||
S="${WORKDIR}/xen-${PV}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
inherit bash-completion-r1 eutils flag-o-matic multilib python-single-r1 toolchain-funcs udev ${live_eclass}
|
|
||||||
|
|
||||||
DESCRIPTION="Xend daemon and tools"
|
|
||||||
HOMEPAGE="http://xen.org/"
|
|
||||||
DOCS=( README docs/README.xen-bugtool )
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="api custom-cflags debug doc flask hvm qemu ocaml pygrub screen static-libs xend"
|
|
||||||
|
|
||||||
REQUIRED_USE="hvm? ( qemu )"
|
|
||||||
|
|
||||||
CDEPEND="dev-libs/yajl
|
|
||||||
dev-python/lxml[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pypam[${PYTHON_USEDEP}]
|
|
||||||
sys-libs/zlib
|
|
||||||
sys-power/iasl
|
|
||||||
ocaml? ( dev-ml/findlib )
|
|
||||||
hvm? ( media-libs/libsdl )
|
|
||||||
${PYTHON_DEPS}
|
|
||||||
api? ( dev-libs/libxml2
|
|
||||||
net-misc/curl )
|
|
||||||
${PYTHON_DEPS}
|
|
||||||
pygrub? ( ${PYTHON_DEPS//${PYTHON_REQ_USE}/ncurses} )"
|
|
||||||
DEPEND="${CDEPEND}
|
|
||||||
sys-devel/bin86
|
|
||||||
sys-devel/dev86
|
|
||||||
dev-lang/perl
|
|
||||||
app-misc/pax-utils
|
|
||||||
doc? (
|
|
||||||
app-doc/doxygen
|
|
||||||
dev-tex/latex2html[png,gif]
|
|
||||||
media-gfx/transfig
|
|
||||||
media-gfx/graphviz
|
|
||||||
dev-tex/xcolor
|
|
||||||
dev-texlive/texlive-latexextra
|
|
||||||
virtual/latex-base
|
|
||||||
dev-tex/latexmk
|
|
||||||
dev-texlive/texlive-latex
|
|
||||||
dev-texlive/texlive-pictures
|
|
||||||
dev-texlive/texlive-latexrecommended
|
|
||||||
)
|
|
||||||
hvm? ( x11-proto/xproto )"
|
|
||||||
RDEPEND="${CDEPEND}
|
|
||||||
sys-apps/iproute2
|
|
||||||
net-misc/bridge-utils
|
|
||||||
ocaml? ( >=dev-lang/ocaml-3.12.0 )
|
|
||||||
screen? (
|
|
||||||
app-misc/screen
|
|
||||||
app-admin/logrotate
|
|
||||||
)
|
|
||||||
virtual/udev"
|
|
||||||
|
|
||||||
# hvmloader is used to bootstrap a fully virtualized kernel
|
|
||||||
# Approved by QA team in bug #144032
|
|
||||||
QA_WX_LOAD="usr/lib/xen/boot/hvmloader"
|
|
||||||
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
python-single-r1_pkg_setup
|
|
||||||
export "CONFIG_LOMOUNT=y"
|
|
||||||
|
|
||||||
if has_version dev-libs/libgcrypt; then
|
|
||||||
export "CONFIG_GCRYPT=y"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use qemu; then
|
|
||||||
export "CONFIG_IOEMU=y"
|
|
||||||
else
|
|
||||||
export "CONFIG_IOEMU=n"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use x86 && ! has x86 $(get_all_abis) && use hvm; then
|
|
||||||
eerror "HVM (VT-x and AMD-v) cannot be built on this system. An x86 or"
|
|
||||||
eerror "an amd64 multilib profile is required. Remove the hvm use flag"
|
|
||||||
eerror "to build xen-tools on your current profile."
|
|
||||||
die "USE=hvm is unsupported on this system."
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -z ${XEN_TARGET_ARCH} ]] ; then
|
|
||||||
if use x86 && use amd64; then
|
|
||||||
die "Confusion! Both x86 and amd64 are set in your use flags!"
|
|
||||||
elif use x86; then
|
|
||||||
export XEN_TARGET_ARCH="x86_32"
|
|
||||||
elif use amd64 ; then
|
|
||||||
export XEN_TARGET_ARCH="x86_64"
|
|
||||||
else
|
|
||||||
die "Unsupported architecture!"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
use api && export "LIBXENAPI_BINDINGS=y"
|
|
||||||
use flask && export "FLASK_ENABLE=y"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# Drop .config, fixes to gcc-4.6
|
|
||||||
epatch "${FILESDIR}"/${PN/-tools/}-4-fix_dotconfig-gcc.patch
|
|
||||||
|
|
||||||
# Xend
|
|
||||||
if ! use xend; then
|
|
||||||
sed -e 's:xm xen-bugtool xen-python-path xend:xen-bugtool xen-python-path:' \
|
|
||||||
-i tools/misc/Makefile || die "Disabling xend failed"
|
|
||||||
sed -e 's:^XEND_INITD:#XEND_INITD:' \
|
|
||||||
-i tools/examples/Makefile || die "Disabling xend failed"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if the user *really* wants to use their own custom-cflags, let them
|
|
||||||
if use custom-cflags; then
|
|
||||||
einfo "User wants their own CFLAGS - removing defaults"
|
|
||||||
|
|
||||||
# try and remove all the default cflags
|
|
||||||
find "${S}" \( -name Makefile -o -name Rules.mk -o -name Config.mk \) \
|
|
||||||
-exec sed \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-i {} + || die "failed to re-set custom-cflags"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use pygrub; then
|
|
||||||
sed -e '/^SUBDIRS-$(PYTHON_TOOLS) += pygrub$/d' -i tools/Makefile || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Disable hvm support on systems that don't support x86_32 binaries.
|
|
||||||
if ! use hvm; then
|
|
||||||
sed -e '/^CONFIG_IOEMU := y$/d' -i config/*.mk || die
|
|
||||||
sed -e '/SUBDIRS-$(CONFIG_X86) += firmware/d' -i tools/Makefile || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Don't bother with qemu, only needed for fully virtualised guests
|
|
||||||
if ! use qemu; then
|
|
||||||
sed -e "/^CONFIG_IOEMU := y$/d" -i config/*.mk || die
|
|
||||||
sed -e "s:install-tools\: tools/ioemu-dir:install-tools\: :g" -i Makefile || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Fix texi2html build error with new texi2html, qemu.doc.html
|
|
||||||
epatch "${FILESDIR}"/${PN}-4-docfix.patch \
|
|
||||||
"${FILESDIR}"/${PN}-4-qemu-xen-doc.patch
|
|
||||||
|
|
||||||
# Fix network broadcast on bridged networks
|
|
||||||
epatch "${FILESDIR}/${PN}-3.4.0-network-bridge-broadcast.patch"
|
|
||||||
|
|
||||||
# Prevent the downloading of ipxe, seabios
|
|
||||||
epatch "${FILESDIR}"/${PN/-tools/}-4.2.0-anti-download.patch
|
|
||||||
cp "${DISTDIR}"/ipxe.tar.gz tools/firmware/etherboot/ || die
|
|
||||||
mv ../seabios-dir-remote tools/firmware/ || die
|
|
||||||
pushd tools/firmware/ > /dev/null
|
|
||||||
ln -s seabios-dir-remote seabios-dir || die
|
|
||||||
popd > /dev/null
|
|
||||||
|
|
||||||
# Fix bridge by idella4, bug #362575
|
|
||||||
epatch "${FILESDIR}/${PN}-4.1.1-bridge.patch"
|
|
||||||
|
|
||||||
# Don't build ipxe with pie on hardened, Bug #360805
|
|
||||||
if gcc-specs-pie; then
|
|
||||||
epatch "${FILESDIR}"/ipxe-nopie.patch
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Prevent double stripping of files at install
|
|
||||||
epatch "${FILESDIR}"/${PN/-tools/}-4.2.0-nostrip.patch
|
|
||||||
|
|
||||||
# fix jobserver in Makefile
|
|
||||||
epatch "${FILESDIR}"/${PN/-tools/}-4.2.0-jserver.patch
|
|
||||||
|
|
||||||
# add missing typedef
|
|
||||||
epatch "${FILESDIR}"/xen-4-ulong.patch \
|
|
||||||
"${FILESDIR}"/${PN}-4.2-xen_disk_leak.patch
|
|
||||||
|
|
||||||
# Set dom0-min-mem to kb; Bug #472982
|
|
||||||
epatch "${FILESDIR}"/${PN/-tools/}-4.2-configsxp.patch
|
|
||||||
|
|
||||||
#Sec patches currently valid
|
|
||||||
epatch "${FILESDIR}"/xen-4-CVE-2012-6075-XSA-41.patch \
|
|
||||||
"${FILESDIR}"/xen-4-CVE-2013-0215-XSA-38.patch \
|
|
||||||
"${FILESDIR}"/xen-4-CVE-2013-1919-XSA-46.patch \
|
|
||||||
"${FILESDIR}"/xen-4-CVE-2013-1922-XSA-48.patch \
|
|
||||||
"${FILESDIR}"/xen-4-CVE-2013-1952-XSA_49.patch \
|
|
||||||
"${FILESDIR}"/xen-4.2-CVE-2013-1-XSA-55.patch \
|
|
||||||
"${FILESDIR}"/xen-4.2-CVE-2013-2-XSA-55.patch \
|
|
||||||
"${FILESDIR}"/xen-4.2-CVE-2013-3-XSA-55.patch \
|
|
||||||
"${FILESDIR}"/xen-4.2-CVE-2013-4-XSA-55.patch \
|
|
||||||
"${FILESDIR}"/xen-4.2-CVE-2013-5to7-XSA-55.patch \
|
|
||||||
"${WORKDIR}"/files/xen-4.2-CVE-2013-8-XSA-55.patch \
|
|
||||||
"${FILESDIR}"/xen-4.2-CVE-2013-9to10-XSA-55.patch \
|
|
||||||
"${WORKDIR}"/files/xen-4.2-CVE-2013-11-XSA-55.patch \
|
|
||||||
"${FILESDIR}"/xen-4.2-CVE-2013-12to13-XSA-55.patch \
|
|
||||||
"${FILESDIR}"/xen-4.2-CVE-2013-14-XSA-55.patch \
|
|
||||||
"${WORKDIR}"/files/xen-4.2-CVE-2013-15-XSA-55.patch \
|
|
||||||
"${FILESDIR}"/xen-4.2-CVE-2013-16-XSA-55.patch \
|
|
||||||
"${FILESDIR}"/xen-4.2-CVE-2013-17-XSA-55.patch \
|
|
||||||
"${FILESDIR}"/xen-4.2-CVE-2013-18to19-XSA-55.patch \
|
|
||||||
"${FILESDIR}"/xen-4.2-CVE-2013-20to23-XSA-55.patch \
|
|
||||||
"${FILESDIR}"/xen-4-CVE-2013-2072-XSA-56.patch \
|
|
||||||
"${FILESDIR}"/xen-4.2-CVE-XSA-57.patch
|
|
||||||
|
|
||||||
epatch_user
|
|
||||||
|
|
||||||
# Bug 472438
|
|
||||||
sed -e 's:^BASH_COMPLETION_DIR ?= $(CONFIG_DIR)/bash_completion.d:BASH_COMPLETION_DIR ?= $(SHARE_DIR)/bash-completion:' \
|
|
||||||
-i Config.mk || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
export VARTEXFONTS="${T}/fonts"
|
|
||||||
local myopt
|
|
||||||
use debug && myopt="${myopt} debug=y"
|
|
||||||
|
|
||||||
use custom-cflags || unset CFLAGS
|
|
||||||
if test-flag-CC -fno-strict-overflow; then
|
|
||||||
append-flags -fno-strict-overflow
|
|
||||||
fi
|
|
||||||
|
|
||||||
unset LDFLAGS
|
|
||||||
unset CFLAGS
|
|
||||||
emake CC="$(tc-getCC)" LD="$(tc-getLD)" -C tools ${myopt}
|
|
||||||
|
|
||||||
use doc && emake -C docs txt html
|
|
||||||
emake -C docs man-pages
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# Override auto-detection in the build system, bug #382573
|
|
||||||
export INITD_DIR=/tmp/init.d
|
|
||||||
export CONFIG_LEAF_DIR=../tmp/default
|
|
||||||
|
|
||||||
# Let the build system compile installed Python modules.
|
|
||||||
local PYTHONDONTWRITEBYTECODE
|
|
||||||
export PYTHONDONTWRITEBYTECODE
|
|
||||||
|
|
||||||
emake DESTDIR="${ED}" DOCDIR="/usr/share/doc/${PF}" \
|
|
||||||
XEN_PYTHON_NATIVE_INSTALL=y install-tools
|
|
||||||
|
|
||||||
# Fix the remaining Python shebangs.
|
|
||||||
python_fix_shebang "${ED}"
|
|
||||||
|
|
||||||
# Remove RedHat-specific stuff
|
|
||||||
rm -rf "${ED}"tmp || die
|
|
||||||
|
|
||||||
# uncomment lines in xl.conf
|
|
||||||
sed -e 's:^#autoballoon=1:autoballoon=1:' \
|
|
||||||
-e 's:^#lockfile="/var/lock/xl":lockfile="/var/lock/xl":' \
|
|
||||||
-e 's:^#vifscript="vif-bridge":vifscript="vif-bridge":' \
|
|
||||||
-i tools/examples/xl.conf || die
|
|
||||||
|
|
||||||
# Reset bash completion dir; Bug 472438
|
|
||||||
mv "${D}"bash-completion "${D}"usr/share/ || die
|
|
||||||
|
|
||||||
if use doc; then
|
|
||||||
emake DESTDIR="${ED}" DOCDIR="/usr/share/doc/${PF}" install-docs
|
|
||||||
|
|
||||||
dohtml -r docs/
|
|
||||||
docinto pdf
|
|
||||||
dodoc ${DOCS[@]}
|
|
||||||
[ -d "${D}"/usr/share/doc/xen ] && mv "${D}"/usr/share/doc/xen/* "${D}"/usr/share/doc/${PF}/html
|
|
||||||
fi
|
|
||||||
|
|
||||||
rm -rf "${D}"/usr/share/doc/xen/
|
|
||||||
doman docs/man?/*
|
|
||||||
|
|
||||||
if use xend; then
|
|
||||||
newinitd "${FILESDIR}"/xend.initd-r2 xend || die "Couldn't install xen.initd"
|
|
||||||
fi
|
|
||||||
newconfd "${FILESDIR}"/xendomains.confd xendomains
|
|
||||||
newconfd "${FILESDIR}"/xenstored.confd xenstored
|
|
||||||
newconfd "${FILESDIR}"/xenconsoled.confd xenconsoled
|
|
||||||
newinitd "${FILESDIR}"/xendomains.initd-r2 xendomains
|
|
||||||
newinitd "${FILESDIR}"/xenstored.initd xenstored
|
|
||||||
newinitd "${FILESDIR}"/xenconsoled.initd xenconsoled
|
|
||||||
|
|
||||||
if use screen; then
|
|
||||||
cat "${FILESDIR}"/xendomains-screen.confd >> "${ED}"/etc/conf.d/xendomains || die
|
|
||||||
cp "${FILESDIR}"/xen-consoles.logrotate "${ED}"/etc/xen/ || die
|
|
||||||
keepdir /var/log/xen-consoles
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use qemu; then
|
|
||||||
mkdir -p "${D}"usr/$(get_libdir)/xen/bin || die
|
|
||||||
mv "${D}"usr/lib/xen/bin/qemu* "${D}"usr/$(get_libdir)/xen/bin/ || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# For -static-libs wrt Bug 384355
|
|
||||||
if ! use static-libs; then
|
|
||||||
rm -f "${ED}"usr/$(get_libdir)/*.a "${ED}"usr/$(get_libdir)/ocaml/*/*.a
|
|
||||||
fi
|
|
||||||
|
|
||||||
# xend expects these to exist
|
|
||||||
keepdir /var/run/xenstored /var/lib/xenstored /var/xen/dump /var/lib/xen /var/log/xen
|
|
||||||
|
|
||||||
# for xendomains
|
|
||||||
keepdir /etc/xen/auto
|
|
||||||
|
|
||||||
# Temp QA workaround
|
|
||||||
dodir "$(udev_get_udevdir)"
|
|
||||||
mv "${ED}"/etc/udev/* "${ED}/$(udev_get_udevdir)"
|
|
||||||
rm -rf "${ED}"/etc/udev
|
|
||||||
|
|
||||||
# Remove files failing QA AFTER emake installs them, avoiding seeking absent files
|
|
||||||
find "${ED}" \( -name openbios-sparc32 -o -name openbios-sparc64 \
|
|
||||||
-o -name openbios-ppc -o -name palcode-clipper \) -delete || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog "Official Xen Guide and the offical wiki page:"
|
|
||||||
elog "http://www.gentoo.org/doc/en/xen-guide.xml"
|
|
||||||
elog "http://wiki.xen.org/wiki/Main_Page"
|
|
||||||
|
|
||||||
if [[ "$(scanelf -s __guard -q "${PYTHON}")" ]] ; then
|
|
||||||
echo
|
|
||||||
ewarn "xend may not work when python is built with stack smashing protection (ssp)."
|
|
||||||
ewarn "If 'xm create' fails with '<ProtocolError for /RPC2: -1 >', see bug #141866"
|
|
||||||
ewarn "This problem may be resolved as of Xen 3.0.4, if not post in the bug."
|
|
||||||
fi
|
|
||||||
|
|
||||||
# TODO: we need to have the current Python slot here.
|
|
||||||
if ! has_version "dev-lang/python[ncurses]"; then
|
|
||||||
echo
|
|
||||||
ewarn "NB: Your dev-lang/python is built without USE=ncurses."
|
|
||||||
ewarn "Please rebuild python with USE=ncurses to make use of xenmon.py."
|
|
||||||
fi
|
|
||||||
|
|
||||||
if has_version "sys-apps/iproute2[minimal]"; then
|
|
||||||
echo
|
|
||||||
ewarn "Your sys-apps/iproute2 is built with USE=minimal. Networking"
|
|
||||||
ewarn "will not work until you rebuild iproute2 without USE=minimal."
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use hvm; then
|
|
||||||
echo
|
|
||||||
elog "HVM (VT-x and AMD-V) support has been disabled. If you need hvm"
|
|
||||||
elog "support enable the hvm use flag."
|
|
||||||
elog "An x86 or amd64 multilib system is required to build HVM support."
|
|
||||||
echo
|
|
||||||
elog "The qemu use flag has been removed and replaced with hvm."
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use xend; then
|
|
||||||
echo
|
|
||||||
elog "xend capability has been enabled and installed"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if grep -qsF XENSV= "${ROOT}/etc/conf.d/xend"; then
|
|
||||||
echo
|
|
||||||
elog "xensv is broken upstream (Gentoo bug #142011)."
|
|
||||||
elog "Please remove '${ROOT%/}/etc/conf.d/xend', as it is no longer needed."
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,139 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/xen-4.2.1-r4.ebuild,v 1.4 2013/07/28 09:13:36 jcallen Exp $
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
|
||||||
|
|
||||||
if [[ $PV == *9999 ]]; then
|
|
||||||
KEYWORDS=""
|
|
||||||
REPO="xen-unstable.hg"
|
|
||||||
EHG_REPO_URI="http://xenbits.xensource.com/${REPO}"
|
|
||||||
S="${WORKDIR}/${REPO}"
|
|
||||||
live_eclass="mercurial"
|
|
||||||
else
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
SRC_URI="http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz"
|
|
||||||
fi
|
|
||||||
|
|
||||||
inherit mount-boot flag-o-matic python-any-r1 toolchain-funcs eutils ${live_eclass}
|
|
||||||
|
|
||||||
DESCRIPTION="The Xen virtual machine monitor"
|
|
||||||
HOMEPAGE="http://xen.org/"
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="custom-cflags debug efi flask pae xsm"
|
|
||||||
|
|
||||||
DEPEND="${PYTHON_DEPS}
|
|
||||||
efi? ( >=sys-devel/binutils-2.22[multitarget] )
|
|
||||||
!efi? ( >=sys-devel/binutils-2.22[-multitarget] )"
|
|
||||||
RDEPEND=""
|
|
||||||
PDEPEND="~app-emulation/xen-tools-${PV}"
|
|
||||||
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
# Approved by QA team in bug #144032
|
|
||||||
QA_WX_LOAD="boot/xen-syms-${PV}"
|
|
||||||
|
|
||||||
REQUIRED_USE="
|
|
||||||
flask? ( xsm )
|
|
||||||
"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
python-any-r1_pkg_setup
|
|
||||||
if [[ -z ${XEN_TARGET_ARCH} ]]; then
|
|
||||||
if use x86 && use amd64; then
|
|
||||||
die "Confusion! Both x86 and amd64 are set in your use flags!"
|
|
||||||
elif use x86; then
|
|
||||||
export XEN_TARGET_ARCH="x86_32"
|
|
||||||
elif use amd64; then
|
|
||||||
export XEN_TARGET_ARCH="x86_64"
|
|
||||||
else
|
|
||||||
die "Unsupported architecture!"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use flask ; then
|
|
||||||
export "XSM_ENABLE=y"
|
|
||||||
export "FLASK_ENABLE=y"
|
|
||||||
elif use xsm ; then
|
|
||||||
export "XSM_ENABLE=y"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# Drop .config and fix gcc-4.6
|
|
||||||
epatch "${FILESDIR}"/${PN/-pvgrub/}-4-fix_dotconfig-gcc.patch
|
|
||||||
|
|
||||||
if use efi; then
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.2-efi.patch
|
|
||||||
export EFI_VENDOR="gentoo"
|
|
||||||
export EFI_MOUNTPOINT="boot"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if the user *really* wants to use their own custom-cflags, let them
|
|
||||||
if use custom-cflags; then
|
|
||||||
einfo "User wants their own CFLAGS - removing defaults"
|
|
||||||
# try and remove all the default custom-cflags
|
|
||||||
find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-i {} \; || die "failed to re-set custom-cflags"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# not strictly necessary to fix this
|
|
||||||
sed -i 's/, "-Werror"//' "${S}/tools/python/setup.py" || die "failed to re-set setup.py"
|
|
||||||
|
|
||||||
#Security patches
|
|
||||||
epatch "${FILESDIR}"/${PN}-4-CVE-2012-5634-XSA-33.patch \
|
|
||||||
"${FILESDIR}"/${PN}-4-CVE-2013-0151-XSA-34_35.patch \
|
|
||||||
"${FILESDIR}"/${PN}-4-CVE-2013-0154-XSA-37.patch \
|
|
||||||
"${FILESDIR}"/${PN}-4-CVE-2013-0153-XSA-36.patch \
|
|
||||||
"${FILESDIR}"/${PN}-4-CVE-2013-1917-XSA-44.patch \
|
|
||||||
"${FILESDIR}"/${PN}-4-CVE-2013-1918-XSA-45_[1-7].patch \
|
|
||||||
"${FILESDIR}"/${PN}-4.2-2013-2076-XSA-52to54.patch \
|
|
||||||
"${FILESDIR}"/${PN}-4.2-CVE-2013-1432-XSA-58.patch
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
use debug && myopt="${myopt} debug=y"
|
|
||||||
use pae && myopt="${myopt} pae=y"
|
|
||||||
|
|
||||||
if use custom-cflags; then
|
|
||||||
filter-flags -fPIE -fstack-protector
|
|
||||||
replace-flags -O3 -O2
|
|
||||||
else
|
|
||||||
unset CFLAGS
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
# Send raw LDFLAGS so that --as-needed works
|
|
||||||
emake CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local myopt
|
|
||||||
use debug && myopt="${myopt} debug=y"
|
|
||||||
use pae && myopt="${myopt} pae=y"
|
|
||||||
|
|
||||||
# The 'make install' doesn't 'mkdir -p' the subdirs
|
|
||||||
if use efi; then
|
|
||||||
mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog "Official Xen Guide and the unoffical wiki page:"
|
|
||||||
elog " http://www.gentoo.org/doc/en/xen-guide.xml"
|
|
||||||
elog " http://en.gentoo-wiki.com/wiki/Xen/"
|
|
||||||
|
|
||||||
use pae && ewarn "This is a PAE build of Xen. It will *only* boot PAE kernels!"
|
|
||||||
use efi && einfo "The efi executable is installed in boot/efi/gentoo"
|
|
||||||
}
|
|
@ -0,0 +1,40 @@
|
|||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-forensics/lynis/lynis-1.3.1.ebuild,v 1.1 2013/10/03 13:41:48 idl0r Exp $
|
||||||
|
|
||||||
|
EAPI="5"
|
||||||
|
|
||||||
|
DESCRIPTION="Security and system auditing tool"
|
||||||
|
HOMEPAGE="http://www.rootkit.nl/projects/lynis.html"
|
||||||
|
SRC_URI="http://www.rootkit.nl/files/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND=""
|
||||||
|
RDEPEND="app-shells/bash"
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
insinto /usr/share/${PN}
|
||||||
|
doins -r db/ include/ plugins/ || die "failed to install lynis base files"
|
||||||
|
|
||||||
|
dosbin lynis
|
||||||
|
|
||||||
|
insinto /etc/${PN}
|
||||||
|
doins default.prf
|
||||||
|
|
||||||
|
doman lynis.8
|
||||||
|
dodoc CHANGELOG FAQ README dev/TODO
|
||||||
|
|
||||||
|
# Remove the old one during the next stabilize progress
|
||||||
|
exeinto /etc/cron.daily
|
||||||
|
newexe "${FILESDIR}"/lynis.cron-new lynis
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
einfo
|
||||||
|
einfo "A cron script has been installed to ${ROOT}etc/cron.daily/lynis."
|
||||||
|
einfo
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
--- a/tools/xmode2.c 2011-03-25 23:28:18.000000000 +0100
|
||||||
|
+++ b/tools/xmode2.c 2012-07-29 19:36:34.972246587 +0200
|
||||||
|
@@ -69,7 +69,7 @@
|
||||||
|
Window w0, w1; /*w0 = root */
|
||||||
|
char w1_wname[] = "xmode2";
|
||||||
|
char w1_iname[] = "xmode2";
|
||||||
|
-char font1_name[] = "-*-Courier-medium-r-*-*-8-*-*-m-*-iso8859-1";
|
||||||
|
+char font1_name[] = "fixed";
|
||||||
|
|
||||||
|
int w1_x = 0, w1_y = 0;
|
||||||
|
unsigned int w1_w = 640, w1_h = 480, w1_border = 0;
|
||||||
|
@@ -201,7 +201,7 @@
|
||||||
|
printf("coudn't allocate blue color\n");
|
||||||
|
f1_str = XLoadQueryFont(d1, font1_name);
|
||||||
|
if (f1_str == NULL) {
|
||||||
|
- printf("could't load font\n");
|
||||||
|
+ printf("couldn't load font\n");
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,431 @@
|
|||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/lirc-0.9.0-r4.ebuild,v 1.1 2013/10/06 14:43:06 zzam Exp $
|
||||||
|
|
||||||
|
EAPI=4
|
||||||
|
|
||||||
|
inherit eutils linux-mod linux-info toolchain-funcs flag-o-matic autotools
|
||||||
|
|
||||||
|
DESCRIPTION="decode and send infra-red signals of many commonly used remote controls"
|
||||||
|
HOMEPAGE="http://www.lirc.org/"
|
||||||
|
|
||||||
|
MY_P=${PN}-${PV/_/}
|
||||||
|
|
||||||
|
if [[ "${PV/_pre/}" = "${PV}" ]]; then
|
||||||
|
SRC_URI="mirror://sourceforge/lirc/${MY_P}.tar.bz2"
|
||||||
|
else
|
||||||
|
SRC_URI="http://www.lirc.org/software/snapshots/${MY_P}.tar.bz2"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||||||
|
IUSE="debug doc hardware-carrier transmitter static-libs X"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
X? (
|
||||||
|
x11-libs/libX11
|
||||||
|
x11-libs/libSM
|
||||||
|
x11-libs/libICE
|
||||||
|
)
|
||||||
|
lirc_devices_alsa_usb? ( media-libs/alsa-lib )
|
||||||
|
lirc_devices_audio? ( >media-libs/portaudio-18 )
|
||||||
|
lirc_devices_irman? ( media-libs/libirman )"
|
||||||
|
|
||||||
|
# 2012-07-17, Ian Stakenvicius
|
||||||
|
# A helper script that scrapes out values for nearly all of the variables below
|
||||||
|
# from lirc's configure.ac is available at
|
||||||
|
# http://dev.gentoo.org/~axs/helper-for-lirc-iuse.sh
|
||||||
|
|
||||||
|
# This are drivers with names matching the
|
||||||
|
# parameter --with-driver=NAME
|
||||||
|
IUSE_LIRC_DEVICES_DIRECT="
|
||||||
|
all userspace accent act200l act220l
|
||||||
|
adaptec alsa_usb animax asusdh atilibusb
|
||||||
|
atiusb audio audio_alsa avermedia avermedia_vdomate
|
||||||
|
avermedia98 awlibusb bestbuy bestbuy2 breakoutbox
|
||||||
|
bte bw6130 caraca chronos commandir
|
||||||
|
cph06x creative creative_infracd
|
||||||
|
devinput digimatrix dsp dvico ea65 ene0100
|
||||||
|
exaudio flyvideo ftdi gvbctv5pci hauppauge
|
||||||
|
hauppauge_dvb hercules_smarttv_stereo i2cuser
|
||||||
|
igorplugusb iguanaIR imon imon_24g imon_knob
|
||||||
|
imon_lcd imon_pad imon_rsc irdeo irdeo_remote
|
||||||
|
irlink irman irreal it87 ite8709
|
||||||
|
knc_one kworld leadtek_0007 leadtek_0010
|
||||||
|
leadtek_pvr2000 livedrive_midi
|
||||||
|
livedrive_seq logitech macmini
|
||||||
|
mediafocusI mouseremote
|
||||||
|
mouseremote_ps2 mp3anywhere mplay nslu2
|
||||||
|
packard_bell parallel pcmak pcmak_usb
|
||||||
|
pctv pixelview_bt878 pixelview_pak
|
||||||
|
pixelview_pro provideo realmagic
|
||||||
|
remotemaster sa1100 samsung sasem sb0540 serial
|
||||||
|
silitek sir slinke streamzap tekram
|
||||||
|
tekram_bt829 tira ttusbir tuxbox tvbox udp uirt2
|
||||||
|
uirt2_raw usb_uirt_raw usbx wpc8769l zotac"
|
||||||
|
|
||||||
|
# drivers that need special handling and
|
||||||
|
# must have another name specified for
|
||||||
|
# parameter --with-driver=NAME
|
||||||
|
IUSE_LIRC_DEVICES_SPECIAL="
|
||||||
|
serial_igor_cesko
|
||||||
|
remote_wonder_plus xboxusb usbirboy inputlirc"
|
||||||
|
|
||||||
|
IUSE_LIRC_DEVICES="${IUSE_LIRC_DEVICES_DIRECT} ${IUSE_LIRC_DEVICES_SPECIAL}"
|
||||||
|
|
||||||
|
# The following are lists which are used to provide ewarns on incompatibilities
|
||||||
|
# with the kernel:
|
||||||
|
|
||||||
|
#drivers that do not build kernel modules
|
||||||
|
NO_KMOD_BUILT_FOR_DEV="
|
||||||
|
accent bte creative creative_infracd devinput dsp ea65 exaudio
|
||||||
|
ftdi i2cuser irlink irreal livedrive_midi livedrive_seq logitech
|
||||||
|
mediafocusI mouseremote mouseremote_ps2 mp3anywhere mplay mplay2
|
||||||
|
pcmak pcmak_usb pctv realmagic remotemaster silitek tira tira_raw
|
||||||
|
tuxbox udp uirt2 uirt2_raw usb_uirt_raw usbx"
|
||||||
|
|
||||||
|
#drivers that build lirc_dev and so will conflict with kernel lirc_dev
|
||||||
|
LIRCDEV_BUILT_FOR_DEV="all
|
||||||
|
act200l act220l adaptec animax atiusb breakoutbox hauppauge
|
||||||
|
hauppauge_dvb hercules_smarttv_stereo igorplugusb imon imon_24g
|
||||||
|
imon_knob imon_lcd imon_pad imon_rsc irdeo irdeo_remote knc_one
|
||||||
|
leadtek_pvr2000 nslu2 packard_bell parallel pixelview_bt878
|
||||||
|
provideo sa1100 sasem serial sir tekram tekram_bt829 ttusbir
|
||||||
|
tvbox wpc8769l zotac"
|
||||||
|
|
||||||
|
#lirc_gpio drivers, which cannot be supported on kernel >= 2.6.22
|
||||||
|
LIRC_GPIO_DEV="
|
||||||
|
avermedia avermedia98 avermedia_vdomate bestbuy bestbuy2 chronos
|
||||||
|
cph03x cph06x flyvideo gvbctv5pci kworld leadtek_0007 leadtek_0010
|
||||||
|
pixelview_pak pixelview_pro"
|
||||||
|
|
||||||
|
#device-driver which use libusb
|
||||||
|
LIBUSB_USED_BY_DEV="
|
||||||
|
all atilibusb awlibusb sasem igorplugusb imon imon_lcd imon_pad
|
||||||
|
imon_rsc streamzap xboxusb irlink commandir"
|
||||||
|
|
||||||
|
for dev in ${LIBUSB_USED_BY_DEV}; do
|
||||||
|
DEPEND="${DEPEND} lirc_devices_${dev}? ( virtual/libusb:0 )"
|
||||||
|
done
|
||||||
|
|
||||||
|
# adding only compile-time depends
|
||||||
|
DEPEND="${RDEPEND} ${DEPEND}
|
||||||
|
virtual/linux-sources
|
||||||
|
lirc_devices_ftdi? ( dev-embedded/libftdi )
|
||||||
|
lirc_devices_all? ( dev-embedded/libftdi )"
|
||||||
|
|
||||||
|
# adding only run-time depends
|
||||||
|
RDEPEND="${RDEPEND}
|
||||||
|
lirc_devices_usbirboy? ( app-misc/usbirboy )
|
||||||
|
lirc_devices_inputlirc? ( app-misc/inputlircd )
|
||||||
|
lirc_devices_iguanaIR? ( app-misc/iguanaIR )"
|
||||||
|
|
||||||
|
# add all devices to IUSE
|
||||||
|
# and ensure lirc_devices_all is not set alongside lirc_devices_*
|
||||||
|
REQUIRED_USE="lirc_devices_all? ("
|
||||||
|
for dev in ${IUSE_LIRC_DEVICES}; do
|
||||||
|
IUSE="${IUSE} lirc_devices_${dev}"
|
||||||
|
if [[ "${dev}" != "all" ]]; then
|
||||||
|
REQUIRED_USE="${REQUIRED_USE} !lirc_devices_${dev}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
REQUIRED_USE="${REQUIRED_USE} )"
|
||||||
|
|
||||||
|
add_device() {
|
||||||
|
local dev="${1}"
|
||||||
|
local desc="device ${dev}"
|
||||||
|
if [[ -n "${2}" ]]; then
|
||||||
|
desc="${2}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Bug #187418
|
||||||
|
if kernel_is ge 2 6 22 && [[ " ${LIRC_GPIO_DEV} " == *" ${dev} "* ]]; then
|
||||||
|
eerror "${desc} uses lirc_gpio which fails with kernel 2.6.22 or above. Not building."
|
||||||
|
eerror "Use 'devinput' instead, or use 'userspace' along with in-kernel drivers"
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
: ${lirc_device_count:=0}
|
||||||
|
((lirc_device_count++))
|
||||||
|
|
||||||
|
elog "Compiling support for ${desc}"
|
||||||
|
|
||||||
|
if [[ " ${LIRCDEV_BUILT_FOR_DEV} " == *" ${dev} "* ]] ; then
|
||||||
|
if linux_chkconfig_present LIRC ; then
|
||||||
|
ewarn "${desc} builds lirc_dev and CONFIG_LIRC is set in the kernel -- this may conflict."
|
||||||
|
fi
|
||||||
|
if ! linux_chkconfig_present MODULE_UNLOAD ; then
|
||||||
|
ewarn "${desc} builds modules and CONFIG_MODULE_UNLOAD is unset in kernel."
|
||||||
|
ewarn "You will need MODULE_UNLOAD support in your kernel."
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if [[ " ${NO_KMOD_BUILT_FOR_DEV} " == *" ${dev} "* ]] && ! linux_chkconfig_present IR_LIRC_CODEC ; then
|
||||||
|
ewarn "${desc} builds no kernel module and CONFIG_IR_LIRC_CODEC is unset in kernel."
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ${lirc_device_count} -eq 2 ]] ; then
|
||||||
|
ewarn
|
||||||
|
ewarn "LIRC_DEVICES has more than one entry."
|
||||||
|
ewarn "When selecting multiple devices for lirc to be supported,"
|
||||||
|
ewarn "it can not be guaranteed that the drivers play nice together."
|
||||||
|
ewarn "If this is not intended, then please adjust LIRC_DEVICES"
|
||||||
|
ewarn "and re-emerge."
|
||||||
|
ewarn
|
||||||
|
fi
|
||||||
|
|
||||||
|
MY_OPTS="${MY_OPTS} --with-driver=${dev}"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_pretend() {
|
||||||
|
if [[ -n "${LIRC_OPTS}" ]] ; then
|
||||||
|
ewarn
|
||||||
|
ewarn "LIRC_OPTS is deprecated from lirc-0.8.0-r1 on."
|
||||||
|
ewarn
|
||||||
|
ewarn "Please use LIRC_DEVICES from now on."
|
||||||
|
ewarn "e.g. LIRC_DEVICES=\"serial sir\""
|
||||||
|
ewarn
|
||||||
|
ewarn "Flags are now set per use-flags."
|
||||||
|
ewarn "e.g. transmitter, hardware-carrier"
|
||||||
|
|
||||||
|
local opt
|
||||||
|
local unsupported_opts=""
|
||||||
|
|
||||||
|
# test for allowed options for LIRC_OPTS
|
||||||
|
for opt in ${LIRC_OPTS}; do
|
||||||
|
case ${opt} in
|
||||||
|
--with-port=*|--with-irq=*|--with-timer=*|--with-tty=*)
|
||||||
|
MY_OPTS="${MY_OPTS} ${opt}"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
unsupported_opts="${unsupported_opts} ${opt}"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
if [[ -n ${unsupported_opts} ]]; then
|
||||||
|
eerror "These options are no longer allowed to be set"
|
||||||
|
eerror "with LIRC_OPTS: ${unsupported_opts}"
|
||||||
|
die "LIRC_OPTS is no longer supported, use LIRC_DEVICES."
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
linux-mod_pkg_setup
|
||||||
|
|
||||||
|
# set default configure options
|
||||||
|
MY_OPTS=""
|
||||||
|
LIRC_DRIVER_DEVICE="/dev/lirc0"
|
||||||
|
|
||||||
|
if use lirc_devices_all; then
|
||||||
|
# compile in drivers for a lot of devices
|
||||||
|
add_device all "a lot of devices"
|
||||||
|
else
|
||||||
|
# compile in only requested drivers
|
||||||
|
local dev
|
||||||
|
for dev in ${IUSE_LIRC_DEVICES_DIRECT}; do
|
||||||
|
if use lirc_devices_${dev}; then
|
||||||
|
add_device ${dev}
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if use lirc_devices_remote_wonder_plus; then
|
||||||
|
add_device atiusb "device Remote Wonder Plus (atiusb-based)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use lirc_devices_serial_igor_cesko; then
|
||||||
|
add_device serial "serial with Igor Cesko design"
|
||||||
|
MY_OPTS="${MY_OPTS} --with-igor"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use lirc_devices_imon_pad; then
|
||||||
|
ewarn "The imon_pad driver has incorporated the previous pad2keys patch"
|
||||||
|
ewarn "and removed the pad2keys_active option for the lirc_imon module"
|
||||||
|
ewarn "because it is always active."
|
||||||
|
ewarn "If you have an older imon VFD device, you may need to add the module"
|
||||||
|
ewarn "option display_type=1 to override autodetection and force VFD mode."
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use lirc_devices_xboxusb; then
|
||||||
|
add_device atiusb "device xboxusb"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use lirc_devices_usbirboy; then
|
||||||
|
add_device userspace "device usbirboy"
|
||||||
|
LIRC_DRIVER_DEVICE="/dev/usbirboy"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ "${MY_OPTS}" == "" ]]; then
|
||||||
|
if [[ "${PROFILE_ARCH}" == "xbox" ]]; then
|
||||||
|
# on xbox: use special driver
|
||||||
|
add_device atiusb "device xboxusb"
|
||||||
|
else
|
||||||
|
# no driver requested
|
||||||
|
elog
|
||||||
|
elog "Compiling only the lirc-applications, but no drivers."
|
||||||
|
elog "Enable drivers with LIRC_DEVICES if you need them."
|
||||||
|
MY_OPTS="--with-driver=none"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
use hardware-carrier && MY_OPTS="${MY_OPTS} --without-soft-carrier"
|
||||||
|
use transmitter && MY_OPTS="${MY_OPTS} --with-transmitter"
|
||||||
|
|
||||||
|
einfo
|
||||||
|
einfo "lirc-configure-opts: ${MY_OPTS}"
|
||||||
|
elog "Setting default lirc-device to ${LIRC_DRIVER_DEVICE}"
|
||||||
|
|
||||||
|
filter-flags -Wl,-O1
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# Rip out dos CRLF
|
||||||
|
edos2unix contrib/lirc.rules
|
||||||
|
|
||||||
|
# Apply patches needed for some special device-types
|
||||||
|
use lirc_devices_audio || epatch "${FILESDIR}"/lirc-0.8.4-portaudio_check.patch
|
||||||
|
use lirc_devices_remote_wonder_plus && epatch "${FILESDIR}"/lirc-0.8.3_pre1-remotewonderplus.patch
|
||||||
|
|
||||||
|
# Apply fixes for kernel-2.6.39 and above
|
||||||
|
epatch "${FILESDIR}"/${P}-kernel-2.6.39-fixes.patch
|
||||||
|
# Slightly massaged upstream patch to fix kfifo issues >=2.6.38
|
||||||
|
# for bug 377033
|
||||||
|
epatch "${FILESDIR}"/${P}-atiusb_kfifo.patch
|
||||||
|
# Apply fixes for kernel-3.3 and above (bug 439538)
|
||||||
|
epatch "${FILESDIR}"/${P}-kernel-3.3.0-fixes.patch
|
||||||
|
# Apply fix for missing err() in usb.h for kernel 3.5+ (bug 444736)
|
||||||
|
epatch "${FILESDIR}"/${P}-kernel-3.5-err-fix.patch
|
||||||
|
# Apply fix for missing __devinit __devexit defines in kernel 3.8+ (bug 461532)
|
||||||
|
epatch "${FILESDIR}"/${P}-kernel-3.8-fixes.patch
|
||||||
|
# Add support for zotac remote, bug 342848
|
||||||
|
epatch "${FILESDIR}"/${P}-add-zotac-support.patch
|
||||||
|
# Use fixed font
|
||||||
|
epatch "${FILESDIR}"/${P}-fixed-font.patch
|
||||||
|
|
||||||
|
# Do not build drivers from the top-level Makefile
|
||||||
|
sed -i -e 's:\(SUBDIRS =\) drivers\(.*\):\1\2:' Makefile.am
|
||||||
|
|
||||||
|
# remove parallel driver on SMP systems
|
||||||
|
if linux_chkconfig_present SMP ; then
|
||||||
|
sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.am
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Bug #187418 - only need this part for lirc_devices_all as others die in pkg_setup
|
||||||
|
if use lirc_devices_all && kernel_is ge 2 6 22 ; then
|
||||||
|
ewarn "Disabling lirc_gpio driver as it does no longer work Kernel 2.6.22+"
|
||||||
|
sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.am
|
||||||
|
fi
|
||||||
|
|
||||||
|
# respect CFLAGS
|
||||||
|
sed -i -e 's:CFLAGS="-O2:CFLAGS=""\n#CFLAGS="-O2:' configure.ac
|
||||||
|
|
||||||
|
# setting default device-node
|
||||||
|
local f
|
||||||
|
for f in configure.ac acconfig.h; do
|
||||||
|
[[ -f "$f" ]] && sed -i -e '/#define LIRC_DRIVER_DEVICE/d' "$f"
|
||||||
|
done
|
||||||
|
echo "#define LIRC_DRIVER_DEVICE \"${LIRC_DRIVER_DEVICE}\"" >> acconfig.h
|
||||||
|
|
||||||
|
sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac || die # automake 1.13
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
econf \
|
||||||
|
--localstatedir=/var \
|
||||||
|
--with-syslog=LOG_DAEMON \
|
||||||
|
--enable-sandboxed \
|
||||||
|
--with-kerneldir="${KV_DIR}" \
|
||||||
|
--with-moduledir="/lib/modules/${KV_FULL}/misc" \
|
||||||
|
$(use_enable debug) \
|
||||||
|
$(use_enable static-libs static) \
|
||||||
|
$(use_with X x) \
|
||||||
|
${MY_OPTS} \
|
||||||
|
ABI="${KERNEL_ABI}" \
|
||||||
|
ARCH="$(tc-arch-kernel)"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
# force non-parallel make, Bug 196134 (confirmed valid for 0.9.0-r2)
|
||||||
|
emake -j1
|
||||||
|
|
||||||
|
MODULE_NAMES="lirc(misc:${S}/drivers)"
|
||||||
|
BUILD_TARGETS="all"
|
||||||
|
linux-mod_src_compile
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake DESTDIR="${D}" install
|
||||||
|
emake -C drivers DESTDIR="${D}" install
|
||||||
|
|
||||||
|
newinitd "${FILESDIR}"/lircd-0.8.6-r2 lircd
|
||||||
|
newinitd "${FILESDIR}"/lircmd lircmd
|
||||||
|
newconfd "${FILESDIR}"/lircd.conf.4 lircd
|
||||||
|
|
||||||
|
insinto /etc/modprobe.d/
|
||||||
|
newins "${FILESDIR}"/modprobed.lirc lirc.conf
|
||||||
|
|
||||||
|
newinitd "${FILESDIR}"/irexec-initd-0.8.6-r2 irexec
|
||||||
|
newconfd "${FILESDIR}"/irexec-confd irexec
|
||||||
|
|
||||||
|
if use doc ; then
|
||||||
|
dohtml doc/html/*.html
|
||||||
|
insinto /usr/share/doc/${PF}/images
|
||||||
|
doins doc/images/*
|
||||||
|
fi
|
||||||
|
|
||||||
|
insinto /usr/share/lirc/remotes
|
||||||
|
doins -r remotes/*
|
||||||
|
|
||||||
|
keepdir /etc/lirc
|
||||||
|
if [[ -e "${D}"/etc/lirc/lircd.conf ]]; then
|
||||||
|
newdoc "${D}"/etc/lirc/lircd.conf lircd.conf.example
|
||||||
|
fi
|
||||||
|
|
||||||
|
use static-libs || rm "${D}/usr/$(get_libdir)/liblirc_client.la"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_preinst() {
|
||||||
|
linux-mod_pkg_preinst
|
||||||
|
|
||||||
|
local dir="${EROOT}/etc/modprobe.d"
|
||||||
|
if [[ -a "${dir}"/lirc && ! -a "${dir}"/lirc.conf ]]; then
|
||||||
|
elog "Renaming ${dir}/lirc to lirc.conf"
|
||||||
|
mv -f "${dir}/lirc" "${dir}/lirc.conf"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# copy the first file that can be found
|
||||||
|
if [[ -f "${EROOT}"/etc/lirc/lircd.conf ]]; then
|
||||||
|
cp "${EROOT}"/etc/lirc/lircd.conf "${T}"/lircd.conf
|
||||||
|
elif [[ -f "${EROOT}"/etc/lircd.conf ]]; then
|
||||||
|
cp "${EROOT}"/etc/lircd.conf "${T}"/lircd.conf
|
||||||
|
MOVE_OLD_LIRCD_CONF=1
|
||||||
|
elif [[ -f "${D}"/etc/lirc/lircd.conf ]]; then
|
||||||
|
cp "${D}"/etc/lirc/lircd.conf "${T}"/lircd.conf
|
||||||
|
fi
|
||||||
|
|
||||||
|
# stop portage from touching the config file
|
||||||
|
if [[ -e "${D}"/etc/lirc/lircd.conf ]]; then
|
||||||
|
rm -f "${D}"/etc/lirc/lircd.conf
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
linux-mod_pkg_postinst
|
||||||
|
|
||||||
|
# copy config file to new location
|
||||||
|
# without portage knowing about it
|
||||||
|
# so it will not delete it on unmerge or ever touch it again
|
||||||
|
if [[ -e "${T}"/lircd.conf ]]; then
|
||||||
|
cp "${T}"/lircd.conf "${EROOT}"/etc/lirc/lircd.conf
|
||||||
|
if [[ "$MOVE_OLD_LIRCD_CONF" = "1" ]]; then
|
||||||
|
elog "Moved /etc/lircd.conf to /etc/lirc/lircd.conf"
|
||||||
|
rm -f "${EROOT}"/etc/lircd.conf
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
einfo "The new default location for lircd.conf is inside of"
|
||||||
|
einfo "/etc/lirc/ directory"
|
||||||
|
}
|
@ -0,0 +1,91 @@
|
|||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-l10n/libreoffice-l10n-4.1.2.3.ebuild,v 1.1 2013/10/04 19:31:51 dilfridge Exp $
|
||||||
|
|
||||||
|
EAPI=4
|
||||||
|
|
||||||
|
inherit rpm eutils multilib versionator
|
||||||
|
|
||||||
|
MY_PV=$(get_version_component_range 1-3)
|
||||||
|
|
||||||
|
DESCRIPTION="Translations for the Libreoffice suite."
|
||||||
|
HOMEPAGE="http://www.libreoffice.org"
|
||||||
|
BASE_SRC_URI="http://download.documentfoundation.org/${PN/-l10n/}/testing/${MY_PV}/rpm"
|
||||||
|
|
||||||
|
LICENSE="|| ( LGPL-3 MPL-1.1 )"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
IUSE="offlinehelp"
|
||||||
|
|
||||||
|
LANGUAGES_HELP="am ast bg bn_IN bn bo bs ca_XV ca cs da de dz el en_GB en en_ZA
|
||||||
|
eo es et eu fi fr gl gu he hi hr hu id is it ja ka km ko mk nb ne nl nn om pl
|
||||||
|
pt_BR pt ru si sk sl sq sv tg tr ug uk vi zh_CN zh_TW"
|
||||||
|
LANGUAGES="${LANGUAGES_HELP} af ar as be br brx cy dgo fa ga gd kk kn kok ks ku
|
||||||
|
lb lo lt lv mai ml mn mni mr my nr nso oc or pa_IN ro rw sa_IN sat sd sh sr
|
||||||
|
ss st sw_TZ ta te th tn ts tt uz ve xh zu"
|
||||||
|
|
||||||
|
for lang in ${LANGUAGES_HELP}; do
|
||||||
|
helppack=""
|
||||||
|
[[ ${lang} == en ]] && lang2=${lang/en/en_US} || lang2=${lang}
|
||||||
|
helppack="offlinehelp? ( ${BASE_SRC_URI}/x86/LibreOffice_${PV}_Linux_x86_rpm_helppack_${lang2/_/-}.tar.gz )"
|
||||||
|
SRC_URI+=" linguas_${lang}? ( ${helppack} )"
|
||||||
|
done
|
||||||
|
for lang in ${LANGUAGES}; do
|
||||||
|
langpack=""
|
||||||
|
[[ ${lang} == en ]] \
|
||||||
|
|| langpack="${BASE_SRC_URI}/x86/LibreOffice_${PV}_Linux_x86_rpm_langpack_${lang/_/-}.tar.gz"
|
||||||
|
[[ -z ${langpack} ]] || SRC_URI+=" linguas_${lang}? ( ${langpack} )"
|
||||||
|
IUSE+=" linguas_${lang}"
|
||||||
|
done
|
||||||
|
unset lang helppack langpack lang2
|
||||||
|
|
||||||
|
RDEPEND+="app-text/hunspell"
|
||||||
|
|
||||||
|
RESTRICT="strip"
|
||||||
|
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
default
|
||||||
|
|
||||||
|
local lang dir rpmdir i
|
||||||
|
local ooextused=()
|
||||||
|
|
||||||
|
for lang in ${LANGUAGES}; do
|
||||||
|
# break away if not enabled; paludis support
|
||||||
|
use_if_iuse linguas_${lang} || continue
|
||||||
|
|
||||||
|
dir=${lang/_/-}
|
||||||
|
|
||||||
|
# for english we provide just helppack, as translation is always there
|
||||||
|
if [[ ${lang} != en ]]; then
|
||||||
|
rpmdir="LibreOffice_${PV}_Linux_x86_rpm_langpack_${dir}/RPMS/"
|
||||||
|
[[ -d ${rpmdir} ]] || die "Missing directory: \"${rpmdir}\""
|
||||||
|
# First remove dictionaries, we want to use system ones.
|
||||||
|
rm -rf "${S}/${rpmdir}/"*dict*.rpm
|
||||||
|
rpm_unpack "./${rpmdir}/"*.rpm
|
||||||
|
fi
|
||||||
|
if [[ "${LANGUAGES_HELP}" =~ "${lang}" ]] && use offlinehelp; then
|
||||||
|
[[ ${lang} == en ]] && dir="en-US"
|
||||||
|
rpmdir="LibreOffice_${PV}_Linux_x86_rpm_helppack_${dir}/RPMS/"
|
||||||
|
[[ -d ${rpmdir} ]] || die "Missing directory: \"${rpmdir}\""
|
||||||
|
rpm_unpack ./"${rpmdir}/"*.rpm
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() { :; }
|
||||||
|
src_configure() { :; }
|
||||||
|
src_compile() { :; }
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
local dir="${S}"/opt/${PN/-l10n/}$(get_version_component_range 1-2)/
|
||||||
|
# Condition required for people that do not install anything eg no linguas
|
||||||
|
# or just english with no offlinehelp.
|
||||||
|
if [[ -d "${dir}" ]] ; then
|
||||||
|
insinto /usr/$(get_libdir)/${PN/-l10n/}/
|
||||||
|
doins -r "${dir}"/*
|
||||||
|
fi
|
||||||
|
# remove extensions that are in the l10n for some weird reason
|
||||||
|
rm -rf "${ED}"/usr/$(get_libdir)/${PN/-l10n/}/share/extensions/
|
||||||
|
}
|
@ -0,0 +1,578 @@
|
|||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-4.1.2.3.ebuild,v 1.1 2013/10/04 19:34:11 dilfridge Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
KDE_REQUIRED="optional"
|
||||||
|
QT_MINIMAL="4.7.4"
|
||||||
|
KDE_SCM="git"
|
||||||
|
CMAKE_REQUIRED="never"
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python2_7 python3_3 )
|
||||||
|
PYTHON_REQ_USE="threads,xml"
|
||||||
|
|
||||||
|
# experimental ; release ; old
|
||||||
|
# Usually the tarballs are moved a lot so this should make
|
||||||
|
# everyone happy.
|
||||||
|
DEV_URI="
|
||||||
|
http://dev-builds.libreoffice.org/pre-releases/src
|
||||||
|
http://download.documentfoundation.org/libreoffice/src/${PV:0:5}/
|
||||||
|
http://download.documentfoundation.org/libreoffice/old/${PV}/
|
||||||
|
"
|
||||||
|
EXT_URI="http://ooo.itc.hu/oxygenoffice/download/libreoffice"
|
||||||
|
ADDONS_URI="http://dev-www.libreoffice.org/src/"
|
||||||
|
|
||||||
|
BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
|
||||||
|
# PATCHSET="${P}-patchset-01.tar.xz"
|
||||||
|
|
||||||
|
[[ ${PV} == *9999* ]] && SCM_ECLASS="git-2"
|
||||||
|
inherit base autotools bash-completion-r1 check-reqs eutils java-pkg-opt-2 kde4-base pax-utils python-single-r1 multilib toolchain-funcs flag-o-matic nsplugins ${SCM_ECLASS}
|
||||||
|
unset SCM_ECLASS
|
||||||
|
|
||||||
|
DESCRIPTION="LibreOffice, a full office productivity suite."
|
||||||
|
HOMEPAGE="http://www.libreoffice.org"
|
||||||
|
SRC_URI="branding? ( http://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
|
||||||
|
[[ -n ${PATCHSET} ]] && SRC_URI+=" http://dev.gentooexperimental.org/~scarabeus/${PATCHSET}"
|
||||||
|
|
||||||
|
# Split modules following git/tarballs
|
||||||
|
# Core MUST be first!
|
||||||
|
# Help is used for the image generator
|
||||||
|
MODULES="core help"
|
||||||
|
# Only release has the tarballs
|
||||||
|
if [[ ${PV} != *9999* ]]; then
|
||||||
|
for i in ${DEV_URI}; do
|
||||||
|
for mod in ${MODULES}; do
|
||||||
|
if [[ ${mod} == core ]]; then
|
||||||
|
SRC_URI+=" ${i}/${P}.tar.xz"
|
||||||
|
else
|
||||||
|
SRC_URI+=" ${i}/${PN}-${mod}-${PV}.tar.xz"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
unset mod
|
||||||
|
done
|
||||||
|
unset i
|
||||||
|
fi
|
||||||
|
unset DEV_URI
|
||||||
|
|
||||||
|
# Really required addons
|
||||||
|
# These are bundles that can't be removed for now due to huge patchsets.
|
||||||
|
# If you want them gone, patches are welcome.
|
||||||
|
ADDONS_SRC+=" ${ADDONS_URI}/ea91f2fb4212a21d708aced277e6e85a-vigra1.4.0.tar.gz"
|
||||||
|
ADDONS_SRC+=" ${ADDONS_URI}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz" # modifies source code
|
||||||
|
ADDONS_SRC+=" java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
|
||||||
|
ADDONS_SRC+=" libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )" # no release for 8 years, should we package it?
|
||||||
|
ADDONS_SRC+=" libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )" # Does not build with 1.6 rhino at all
|
||||||
|
ADDONS_SRC+=" libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )" # requirement of rhino
|
||||||
|
ADDONS_SRC+=" odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )" # not packageable
|
||||||
|
SRC_URI+=" ${ADDONS_SRC}"
|
||||||
|
|
||||||
|
unset ADDONS_URI
|
||||||
|
unset EXT_URI
|
||||||
|
unset ADDONS_SRC
|
||||||
|
|
||||||
|
IUSE="bluetooth +branding +cups dbus debug eds gnome gstreamer +gtk
|
||||||
|
gtk3 jemalloc kde mysql odk opengl postgres telepathy test +vba +webdav"
|
||||||
|
|
||||||
|
LO_EXTS="nlpsolver presenter-minimizer scripting-beanshell scripting-javascript wiki-publisher"
|
||||||
|
# Unpackaged separate extensions:
|
||||||
|
# diagram: lo has 0.9.5 upstream is weirdly patched 0.9.4 -> wtf?
|
||||||
|
# hunart: only on ooo extensions -> fubared download path somewhere on sf
|
||||||
|
# numbertext, typo, validator, watch-window: ^^
|
||||||
|
# oooblogger: no homepage or anything
|
||||||
|
# Extensions that need extra work:
|
||||||
|
for lo_xt in ${LO_EXTS}; do
|
||||||
|
IUSE+=" libreoffice_extensions_${lo_xt}"
|
||||||
|
done
|
||||||
|
unset lo_xt
|
||||||
|
|
||||||
|
LICENSE="|| ( LGPL-3 MPL-1.1 )"
|
||||||
|
SLOT="0"
|
||||||
|
[[ ${PV} == *9999* ]] || \
|
||||||
|
KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
|
||||||
|
COMMON_DEPEND="
|
||||||
|
${PYTHON_DEPS}
|
||||||
|
app-arch/zip
|
||||||
|
app-arch/unzip
|
||||||
|
>=app-text/hunspell-1.3.2-r3
|
||||||
|
app-text/mythes
|
||||||
|
>=app-text/libexttextcat-3.2
|
||||||
|
app-text/liblangtag
|
||||||
|
app-text/libmspub
|
||||||
|
>=app-text/libmwaw-0.1.7
|
||||||
|
app-text/libodfgen
|
||||||
|
app-text/libwpd:0.9[tools]
|
||||||
|
app-text/libwpg:0.2
|
||||||
|
>=app-text/libwps-0.2.2
|
||||||
|
>=app-text/poppler-0.16:=[xpdf-headers(+),cxx]
|
||||||
|
>=dev-cpp/clucene-2.3.3.4-r2
|
||||||
|
>=dev-cpp/libcmis-0.3.1:0.3
|
||||||
|
dev-db/unixODBC
|
||||||
|
>=dev-libs/boost-1.46:=
|
||||||
|
dev-libs/expat
|
||||||
|
>=dev-libs/hyphen-2.7.1
|
||||||
|
>=dev-libs/icu-4.8.1.1:=
|
||||||
|
>=dev-libs/liborcus-0.5.1:=
|
||||||
|
>=dev-libs/nspr-4.8.8
|
||||||
|
>=dev-libs/nss-3.12.9
|
||||||
|
>=dev-lang/perl-5.0
|
||||||
|
>=dev-libs/openssl-1.0.0d
|
||||||
|
>=dev-libs/redland-1.0.16[ssl]
|
||||||
|
media-gfx/graphite2
|
||||||
|
>=media-libs/fontconfig-2.8.0
|
||||||
|
media-libs/freetype:2
|
||||||
|
>=media-libs/harfbuzz-0.9.10:=[icu(+)]
|
||||||
|
media-libs/lcms:2
|
||||||
|
>=media-libs/libpng-1.4
|
||||||
|
>=media-libs/libcdr-0.0.5
|
||||||
|
media-libs/libvisio
|
||||||
|
>=net-misc/curl-7.21.4
|
||||||
|
net-nds/openldap
|
||||||
|
sci-mathematics/lpsolve
|
||||||
|
virtual/jpeg:0
|
||||||
|
>=x11-libs/cairo-1.10.0[X]
|
||||||
|
x11-libs/libXinerama
|
||||||
|
x11-libs/libXrandr
|
||||||
|
x11-libs/libXrender
|
||||||
|
bluetooth? ( net-wireless/bluez )
|
||||||
|
cups? ( net-print/cups )
|
||||||
|
dbus? ( >=dev-libs/dbus-glib-0.92 )
|
||||||
|
eds? ( gnome-extra/evolution-data-server )
|
||||||
|
gnome? ( gnome-base/gconf:2 )
|
||||||
|
gtk? (
|
||||||
|
x11-libs/gdk-pixbuf[X]
|
||||||
|
>=x11-libs/gtk+-2.24:2
|
||||||
|
)
|
||||||
|
gtk3? ( >=x11-libs/gtk+-3.2:3 )
|
||||||
|
gstreamer? (
|
||||||
|
media-libs/gstreamer:1.0
|
||||||
|
media-libs/gst-plugins-base:1.0
|
||||||
|
)
|
||||||
|
jemalloc? ( dev-libs/jemalloc )
|
||||||
|
libreoffice_extensions_scripting-beanshell? ( >=dev-java/bsh-2.0_beta4 )
|
||||||
|
libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
|
||||||
|
libreoffice_extensions_wiki-publisher? (
|
||||||
|
dev-java/commons-codec:0
|
||||||
|
dev-java/commons-httpclient:3
|
||||||
|
dev-java/commons-lang:2.1
|
||||||
|
dev-java/commons-logging:0
|
||||||
|
dev-java/tomcat-servlet-api:3.0
|
||||||
|
)
|
||||||
|
mysql? ( >=dev-db/mysql-connector-c++-1.1.0 )
|
||||||
|
opengl? (
|
||||||
|
virtual/glu
|
||||||
|
virtual/opengl
|
||||||
|
)
|
||||||
|
postgres? ( >=dev-db/postgresql-base-9.0[kerberos] )
|
||||||
|
telepathy? (
|
||||||
|
dev-libs/glib:2
|
||||||
|
>=net-libs/telepathy-glib-0.18.0
|
||||||
|
>=x11-libs/gtk+-2.24:2
|
||||||
|
)
|
||||||
|
webdav? ( net-libs/neon )
|
||||||
|
"
|
||||||
|
|
||||||
|
RDEPEND="${COMMON_DEPEND}
|
||||||
|
!app-office/libreoffice-bin
|
||||||
|
!app-office/libreoffice-bin-debug
|
||||||
|
!<app-office/openoffice-bin-3.4.0-r1
|
||||||
|
!app-office/openoffice
|
||||||
|
media-fonts/libertine-ttf
|
||||||
|
media-fonts/liberation-fonts
|
||||||
|
media-fonts/urw-fonts
|
||||||
|
java? ( >=virtual/jre-1.6 )
|
||||||
|
"
|
||||||
|
|
||||||
|
if [[ ${PV} != *9999* ]]; then
|
||||||
|
PDEPEND="~app-office/libreoffice-l10n-${PV}"
|
||||||
|
else
|
||||||
|
# Translations are not reliable on live ebuilds
|
||||||
|
# rather force people to use english only.
|
||||||
|
PDEPEND="!app-office/libreoffice-l10n"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# FIXME: cppunit should be moved to test conditional
|
||||||
|
# after everything upstream is under gbuild
|
||||||
|
# as dmake execute tests right away
|
||||||
|
DEPEND="${COMMON_DEPEND}
|
||||||
|
>=dev-libs/libxml2-2.7.8
|
||||||
|
dev-libs/libxslt
|
||||||
|
dev-perl/Archive-Zip
|
||||||
|
dev-util/cppunit
|
||||||
|
>=dev-util/gperf-3
|
||||||
|
dev-util/intltool
|
||||||
|
=dev-util/mdds-0.8*:=
|
||||||
|
virtual/pkgconfig
|
||||||
|
net-misc/npapi-sdk
|
||||||
|
>=sys-apps/findutils-4.4.2
|
||||||
|
sys-devel/bison
|
||||||
|
sys-apps/coreutils
|
||||||
|
sys-devel/flex
|
||||||
|
sys-devel/gettext
|
||||||
|
>=sys-devel/make-3.82
|
||||||
|
sys-devel/ucpp
|
||||||
|
sys-libs/zlib
|
||||||
|
x11-libs/libXt
|
||||||
|
x11-libs/libXtst
|
||||||
|
x11-proto/randrproto
|
||||||
|
x11-proto/xextproto
|
||||||
|
x11-proto/xineramaproto
|
||||||
|
x11-proto/xproto
|
||||||
|
java? (
|
||||||
|
>=virtual/jdk-1.6
|
||||||
|
>=dev-java/ant-core-1.7
|
||||||
|
)
|
||||||
|
odk? ( app-doc/doxygen )
|
||||||
|
test? ( dev-util/cppunit )
|
||||||
|
"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
# not upstreamable stuff
|
||||||
|
"${FILESDIR}/${PN}-3.7-system-pyuno.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
REQUIRED_USE="
|
||||||
|
${PYTHON_REQUIRED_USE}
|
||||||
|
bluetooth? ( dbus )
|
||||||
|
gnome? ( gtk )
|
||||||
|
eds? ( gnome )
|
||||||
|
telepathy? ( gtk )
|
||||||
|
libreoffice_extensions_nlpsolver? ( java )
|
||||||
|
libreoffice_extensions_scripting-beanshell? ( java )
|
||||||
|
libreoffice_extensions_scripting-javascript? ( java )
|
||||||
|
libreoffice_extensions_wiki-publisher? ( java )
|
||||||
|
"
|
||||||
|
|
||||||
|
CHECKREQS_MEMORY="512M"
|
||||||
|
CHECKREQS_DISK_BUILD="6G"
|
||||||
|
|
||||||
|
pkg_pretend() {
|
||||||
|
local pgslot
|
||||||
|
|
||||||
|
if [[ ${MERGE_TYPE} != binary ]]; then
|
||||||
|
check-reqs_pkg_pretend
|
||||||
|
|
||||||
|
if [[ $(gcc-major-version) -lt 4 ]] || \
|
||||||
|
( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ]] ) \
|
||||||
|
; then
|
||||||
|
eerror "Compilation with gcc older than 4.6 is not supported"
|
||||||
|
die "Too old gcc found."
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# ensure pg version
|
||||||
|
if use postgres && has_version dev-db/postgresql-base; then
|
||||||
|
pgslot=$(postgresql-config show)
|
||||||
|
if [[ ${pgslot//.} < 90 ]] ; then
|
||||||
|
eerror "PostgreSQL slot must be set to 9.0 or higher."
|
||||||
|
eerror " postgresql-config set 9.0"
|
||||||
|
die "PostgreSQL slot is not set to 9.0 or higher."
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
java-pkg-opt-2_pkg_setup
|
||||||
|
kde4-base_pkg_setup
|
||||||
|
python-single-r1_pkg_setup
|
||||||
|
|
||||||
|
[[ ${MERGE_TYPE} != binary ]] && check-reqs_pkg_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
local mod mod2 dest tmplfile tmplname mypv
|
||||||
|
|
||||||
|
[[ -n ${PATCHSET} ]] && unpack ${PATCHSET}
|
||||||
|
use branding && unpack "${BRANDING}"
|
||||||
|
|
||||||
|
if [[ ${PV} != *9999* ]]; then
|
||||||
|
unpack "${P}.tar.xz"
|
||||||
|
for mod in ${MODULES}; do
|
||||||
|
[[ ${mod} == core ]] && continue
|
||||||
|
unpack "${PN}-${mod}-${PV}.tar.xz"
|
||||||
|
done
|
||||||
|
else
|
||||||
|
for mod in ${MODULES}; do
|
||||||
|
mypv=${PV/.9999}
|
||||||
|
[[ ${mypv} != ${PV} ]] && EGIT_BRANCH="${PN}-${mypv/./-}"
|
||||||
|
EGIT_PROJECT="${PN}/${mod}"
|
||||||
|
EGIT_SOURCEDIR="${WORKDIR}/${P}"
|
||||||
|
[[ ${mod} != core ]] && EGIT_SOURCEDIR="${WORKDIR}/${PN}-${mod}-${PV}"
|
||||||
|
EGIT_REPO_URI="git://anongit.freedesktop.org/${PN}/${mod}"
|
||||||
|
EGIT_NOUNPACK="true"
|
||||||
|
git-2_src_unpack
|
||||||
|
if [[ ${mod} != core ]]; then
|
||||||
|
mod2=${mod}
|
||||||
|
# mapping does not match on help
|
||||||
|
[[ ${mod} == help ]] && mod2="helpcontent2"
|
||||||
|
mkdir -p "${S}/${mod2}/" || die
|
||||||
|
mv -n "${WORKDIR}/${PN}-${mod}-${PV}"/* "${S}/${mod2}" || die
|
||||||
|
rm -rf "${WORKDIR}/${PN}-${mod}-${PV}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
unset EGIT_PROJECT EGIT_SOURCEDIR EGIT_REPO_URI EGIT_BRANCH
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# optimization flags
|
||||||
|
export GMAKE_OPTIONS="${MAKEOPTS}"
|
||||||
|
# System python 2.7 enablement:
|
||||||
|
export PYTHON_CFLAGS=$(python_get_CFLAGS)
|
||||||
|
export PYTHON_LIBS=$(python_get_LIBS)
|
||||||
|
|
||||||
|
# patchset
|
||||||
|
if [[ -n ${PATCHSET} ]]; then
|
||||||
|
EPATCH_FORCE="yes" \
|
||||||
|
EPATCH_SOURCE="${WORKDIR}/${PATCHSET/.tar.xz/}" \
|
||||||
|
EPATCH_SUFFIX="patch" \
|
||||||
|
epatch
|
||||||
|
fi
|
||||||
|
|
||||||
|
base_src_prepare
|
||||||
|
|
||||||
|
AT_M4DIR="m4" eautoreconf
|
||||||
|
# hack in the autogen.sh
|
||||||
|
touch autogen.lastrun
|
||||||
|
|
||||||
|
# system pyuno mess
|
||||||
|
sed \
|
||||||
|
-e "s:%eprefix%:${EPREFIX}:g" \
|
||||||
|
-e "s:%libdir%:$(get_libdir):g" \
|
||||||
|
-i pyuno/source/module/uno.py \
|
||||||
|
-i scripting/source/pyprov/officehelper.py || die
|
||||||
|
# sed in the tests
|
||||||
|
sed -i \
|
||||||
|
-e 's#all : build unitcheck#all : build#g' \
|
||||||
|
solenv/gbuild/Module.mk || die
|
||||||
|
sed -i \
|
||||||
|
-e 's#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g' \
|
||||||
|
-e 's#Makefile.gbuild all slowcheck#Makefile.gbuild all#g' \
|
||||||
|
Makefile.in || die
|
||||||
|
|
||||||
|
if use branding; then
|
||||||
|
# hack...
|
||||||
|
mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local java_opts
|
||||||
|
local internal_libs
|
||||||
|
local lo_ext
|
||||||
|
local ext_opts
|
||||||
|
local jbs=$(sed -ne 's/.*\(-j[[:space:]]*\|--jobs=\)\([[:digit:]]\+\).*/\2/;T;p' <<< "${MAKEOPTS}")
|
||||||
|
|
||||||
|
# recheck that there is some value in jobs
|
||||||
|
[[ -z ${jbs} ]] && jbs="1"
|
||||||
|
|
||||||
|
# sane: just sane.h header that is used for scan in writer, not
|
||||||
|
# linked or anything else, worthless to depend on
|
||||||
|
# vigra: just uses templates from there
|
||||||
|
# it is serious pain in the ass for packaging
|
||||||
|
# should be replaced by boost::gil if someone interested
|
||||||
|
internal_libs+="
|
||||||
|
--without-system-sane
|
||||||
|
--without-system-vigra
|
||||||
|
"
|
||||||
|
|
||||||
|
# libreoffice extensions handling
|
||||||
|
for lo_xt in ${LO_EXTS}; do
|
||||||
|
if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
|
||||||
|
ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt})"
|
||||||
|
else
|
||||||
|
ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt})"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if use java; then
|
||||||
|
# hsqldb: system one is too new
|
||||||
|
java_opts="
|
||||||
|
--without-junit
|
||||||
|
--without-system-hsqldb
|
||||||
|
--with-ant-home="${ANT_HOME}"
|
||||||
|
--with-jdk-home=$(java-config --jdk-home 2>/dev/null)
|
||||||
|
--with-jvm-path="${EPREFIX}/usr/$(get_libdir)/"
|
||||||
|
"
|
||||||
|
|
||||||
|
use libreoffice_extensions_scripting-beanshell && \
|
||||||
|
java_opts+=" --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)"
|
||||||
|
|
||||||
|
use libreoffice_extensions_scripting-javascript && \
|
||||||
|
java_opts+=" --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar)"
|
||||||
|
|
||||||
|
if use libreoffice_extensions_wiki-publisher; then
|
||||||
|
java_opts+="
|
||||||
|
--with-commons-codec-jar=$(java-pkg_getjar commons-codec commons-codec.jar)
|
||||||
|
--with-commons-httpclient-jar=$(java-pkg_getjar commons-httpclient-3 commons-httpclient.jar)
|
||||||
|
--with-commons-lang-jar=$(java-pkg_getjar commons-lang-2.1 commons-lang.jar)
|
||||||
|
--with-commons-logging-jar=$(java-pkg_getjar commons-logging commons-logging.jar)
|
||||||
|
--with-servlet-api-jar=$(java-pkg_getjar tomcat-servlet-api-3.0 servlet-api.jar)
|
||||||
|
"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# system headers/libs/...: enforce using system packages
|
||||||
|
# --enable-cairo: ensure that cairo is always required
|
||||||
|
# --enable-graphite: disabling causes build breakages
|
||||||
|
# --enable-*-link: link to the library rather than just dlopen on runtime
|
||||||
|
# --enable-release-build: build the libreoffice as release
|
||||||
|
# --disable-fetch-external: prevent dowloading during compile phase
|
||||||
|
# --disable-gnome-vfs: old gnome virtual fs support
|
||||||
|
# --disable-kdeab: kde3 adressbook
|
||||||
|
# --disable-kde: kde3 support
|
||||||
|
# --disable-rpath: relative runtime path is not desired
|
||||||
|
# --disable-systray: quickstarter does not actually work at all so do not
|
||||||
|
# promote it
|
||||||
|
# --enable-extension-integration: enable any extension integration support
|
||||||
|
# --without-{afms,fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
|
||||||
|
# --disable-report-builder: too much java packages pulled in without pkgs
|
||||||
|
econf \
|
||||||
|
--docdir="${EPREFIX}/usr/share/doc/${PF}/" \
|
||||||
|
--with-system-headers \
|
||||||
|
--with-system-libs \
|
||||||
|
--with-system-jars \
|
||||||
|
--with-system-dicts \
|
||||||
|
--enable-cairo-canvas \
|
||||||
|
--enable-graphite \
|
||||||
|
--enable-largefile \
|
||||||
|
--enable-mergelibs \
|
||||||
|
--enable-python=system \
|
||||||
|
--enable-randr \
|
||||||
|
--enable-randr-link \
|
||||||
|
--enable-release-build \
|
||||||
|
--enable-hardlink-deliver \
|
||||||
|
--disable-ccache \
|
||||||
|
--disable-crashdump \
|
||||||
|
--disable-dependency-tracking \
|
||||||
|
--disable-epm \
|
||||||
|
--disable-fetch-external \
|
||||||
|
--disable-gnome-vfs \
|
||||||
|
--disable-gstreamer-0-10 \
|
||||||
|
--disable-report-builder \
|
||||||
|
--disable-kdeab \
|
||||||
|
--disable-kde \
|
||||||
|
--disable-online-update \
|
||||||
|
--disable-rpath \
|
||||||
|
--disable-systray \
|
||||||
|
--with-alloc=$(use jemalloc && echo "jemalloc" || echo "system") \
|
||||||
|
--with-build-version="Gentoo official package" \
|
||||||
|
--enable-extension-integration \
|
||||||
|
--with-external-dict-dir="${EPREFIX}/usr/share/myspell" \
|
||||||
|
--with-external-hyph-dir="${EPREFIX}/usr/share/myspell" \
|
||||||
|
--with-external-thes-dir="${EPREFIX}/usr/share/myspell" \
|
||||||
|
--with-external-tar="${DISTDIR}" \
|
||||||
|
--with-lang="" \
|
||||||
|
--with-parallelism=${jbs} \
|
||||||
|
--with-system-ucpp \
|
||||||
|
--with-vendor="Gentoo Foundation" \
|
||||||
|
--with-x \
|
||||||
|
--without-afms \
|
||||||
|
--without-fonts \
|
||||||
|
--without-myspell-dicts \
|
||||||
|
--without-help \
|
||||||
|
--with-helppack-integration \
|
||||||
|
--without-sun-templates \
|
||||||
|
$(use_enable bluetooth sdremote-bluetooth) \
|
||||||
|
$(use_enable cups) \
|
||||||
|
$(use_enable debug) \
|
||||||
|
$(use_enable dbus) \
|
||||||
|
$(use_enable eds evolution2) \
|
||||||
|
$(use_enable gnome gconf) \
|
||||||
|
$(use_enable gnome gio) \
|
||||||
|
$(use_enable gnome lockdown) \
|
||||||
|
$(use_enable gstreamer) \
|
||||||
|
$(use_enable gtk) \
|
||||||
|
$(use_enable gtk3) \
|
||||||
|
$(use_enable kde kde4) \
|
||||||
|
$(use_enable mysql ext-mariadb-connector) \
|
||||||
|
$(use_enable odk) \
|
||||||
|
$(use_enable opengl) \
|
||||||
|
$(use_enable postgres postgresql-sdbc) \
|
||||||
|
$(use_enable telepathy) \
|
||||||
|
$(use_enable test linkoo) \
|
||||||
|
$(use_enable vba) \
|
||||||
|
$(use_enable webdav neon) \
|
||||||
|
$(use_with java) \
|
||||||
|
$(use_with mysql system-mysql-cppconn) \
|
||||||
|
$(use_with odk doxygen) \
|
||||||
|
${internal_libs} \
|
||||||
|
${java_opts} \
|
||||||
|
${ext_opts}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
# hack for offlinehelp, this needs fixing upstream at some point
|
||||||
|
# it is broken because we send --without-help
|
||||||
|
# https://bugs.freedesktop.org/show_bug.cgi?id=46506
|
||||||
|
(
|
||||||
|
grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk"
|
||||||
|
source "${T}/config_host.mk" 2&> /dev/null
|
||||||
|
|
||||||
|
local path="${SOLARVER}/${INPATH}/res/img"
|
||||||
|
mkdir -p "${path}" || die
|
||||||
|
|
||||||
|
echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=icon-themes/galaxy/res/helpimg > \"${path}/helpimg.ilst\""
|
||||||
|
perl "${S}/helpcontent2/helpers/create_ilst.pl" \
|
||||||
|
-dir=icon-themes/galaxy/res/helpimg \
|
||||||
|
> "${path}/helpimg.ilst"
|
||||||
|
[[ -s "${path}/helpimg.ilst" ]] || ewarn "The help images list is empty, something is fishy, report a bug."
|
||||||
|
)
|
||||||
|
|
||||||
|
local target
|
||||||
|
use test && target="build" || target="build-nocheck"
|
||||||
|
|
||||||
|
# this is not a proper make script
|
||||||
|
make ${target} || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
make unitcheck || die
|
||||||
|
make slowcheck || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
# This is not Makefile so no buildserver
|
||||||
|
make DESTDIR="${D}" distro-pack-install -o build -o check || die
|
||||||
|
|
||||||
|
# Fix bash completion placement
|
||||||
|
newbashcomp "${ED}"/etc/bash_completion.d/libreoffice.sh ${PN}
|
||||||
|
rm -rf "${ED}"/etc/
|
||||||
|
|
||||||
|
if use branding; then
|
||||||
|
insinto /usr/$(get_libdir)/${PN}/program
|
||||||
|
newins "${WORKDIR}/branding-sofficerc" sofficerc
|
||||||
|
fi
|
||||||
|
|
||||||
|
# symlink the nsplugin to proper location
|
||||||
|
# use gtk && inst_plugin /usr/$(get_libdir)/libreoffice/program/libnpsoplugin.so
|
||||||
|
|
||||||
|
# Hack for offlinehelp, this needs fixing upstream at some point.
|
||||||
|
# It is broken because we send --without-help
|
||||||
|
# https://bugs.freedesktop.org/show_bug.cgi?id=46506
|
||||||
|
insinto /usr/$(get_libdir)/libreoffice/help
|
||||||
|
doins xmlhelp/util/*.xsl
|
||||||
|
|
||||||
|
# Remove desktop files for support to old installs that can't parse mime
|
||||||
|
rm -rf "${ED}"/usr/share/mimelnk/
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_preinst() {
|
||||||
|
# Cache updates - all handled by kde eclass for all environments
|
||||||
|
kde4-base_pkg_preinst
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
kde4-base_pkg_postinst
|
||||||
|
|
||||||
|
pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
|
||||||
|
pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin
|
||||||
|
|
||||||
|
use java || \
|
||||||
|
ewarn 'If you plan to use lbase application you should enable java or you will get various crashes.'
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
kde4-base_pkg_postrm
|
||||||
|
}
|
@ -0,0 +1,198 @@
|
|||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice-bin/openoffice-bin-4.0.1.ebuild,v 1.1 2013/10/03 16:22:04 chithanh Exp $
|
||||||
|
|
||||||
|
EAPI="4"
|
||||||
|
|
||||||
|
inherit eutils fdo-mime gnome2-utils pax-utils prefix rpm multilib
|
||||||
|
|
||||||
|
IUSE="gnome java"
|
||||||
|
|
||||||
|
BUILDID="9714"
|
||||||
|
BVER="${PV/_rc*/}-${BUILDID}"
|
||||||
|
BVER2=4.0-${BUILDID}
|
||||||
|
BASIS="ooobasis4.0"
|
||||||
|
BASIS2="basis4.0"
|
||||||
|
NM="openoffice"
|
||||||
|
NM1="${NM}-brand"
|
||||||
|
NM2="${NM}4"
|
||||||
|
NM3="${NM2}.0"
|
||||||
|
FILEPATH="mirror://sourceforge/openofficeorg.mirror"
|
||||||
|
if [ "${ARCH}" = "amd64" ] ; then
|
||||||
|
XARCH="x86_64"
|
||||||
|
else
|
||||||
|
XARCH="i586"
|
||||||
|
fi
|
||||||
|
UP="en-US/RPMS"
|
||||||
|
|
||||||
|
DESCRIPTION="Apache OpenOffice productivity suite."
|
||||||
|
HOMEPAGE="http://www.openoffice.org/"
|
||||||
|
SRC_URI="amd64? ( "${FILEPATH}"/Apache_OpenOffice_${PV}_Linux_x86-64_install-rpm_en-US.tar.gz )
|
||||||
|
x86? ( "${FILEPATH}"/Apache_OpenOffice_${PV}_Linux_x86_install-rpm_en-US.tar.gz )"
|
||||||
|
|
||||||
|
LANGS="ast eu zh_CN zh_TW cs nl en_GB fi fr gd gl de el hu it ja km ko lt pl pt_BR pt ru sr sk sl es sv ta tr vi"
|
||||||
|
|
||||||
|
for X in ${LANGS} ; do
|
||||||
|
[[ ${X} != "en" ]] && SRC_URI="${SRC_URI} linguas_${X}? (
|
||||||
|
amd64? ( "${FILEPATH}"/Apache_OpenOffice_${PV}_Linux_x86-64_langpack-rpm_${X/_/-}.tar.gz )
|
||||||
|
x86? ( "${FILEPATH}"/Apache_OpenOffice_${PV}_Linux_x86_langpack-rpm_${X/_/-}.tar.gz ) )"
|
||||||
|
IUSE="${IUSE} linguas_${X}"
|
||||||
|
done
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
!app-office/openoffice
|
||||||
|
!prefix? ( sys-libs/glibc )
|
||||||
|
app-arch/unzip
|
||||||
|
app-arch/zip
|
||||||
|
>=dev-lang/perl-5.0
|
||||||
|
dev-lang/python:2.7
|
||||||
|
>=media-libs/freetype-2.1.10-r2
|
||||||
|
x11-libs/libXaw
|
||||||
|
x11-libs/libXinerama"
|
||||||
|
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
sys-apps/findutils"
|
||||||
|
|
||||||
|
PDEPEND="java? ( >=virtual/jre-1.5 )"
|
||||||
|
|
||||||
|
RESTRICT="strip"
|
||||||
|
|
||||||
|
QA_PREBUILT="usr/$(get_libdir)/${NM}/program/*"
|
||||||
|
QA_TEXTRELS="usr/$(get_libdir)/${NM}/program/libvclplug_genli.so"
|
||||||
|
|
||||||
|
S=${WORKDIR}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
|
||||||
|
unpack ${A}
|
||||||
|
|
||||||
|
cp "${FILESDIR}"/{50-${PN},wrapper.in} "${T}"
|
||||||
|
eprefixify "${T}"/{50-${PN},wrapper.in}
|
||||||
|
|
||||||
|
for i in base calc core01 core02 core03 core04 core05 core06 core07 draw graphicfilter images impress math ogltrans ooofonts ooolinguistic pyuno ure writer xsltfilter ; do
|
||||||
|
rpm_unpack "./${UP}/${NM}-${i}-${BVER}.${XARCH}.rpm"
|
||||||
|
done
|
||||||
|
|
||||||
|
rpm_unpack "./${UP}/${NM}-${BVER}.${XARCH}.rpm"
|
||||||
|
|
||||||
|
for j in base calc draw impress math writer; do
|
||||||
|
rpm_unpack "./${UP}/${NM1}-${j}-${BVER}.${XARCH}.rpm"
|
||||||
|
done
|
||||||
|
|
||||||
|
rpm_unpack "./${UP}/desktop-integration/${NM3}-freedesktop-menus-${BVER2}.noarch.rpm"
|
||||||
|
|
||||||
|
use gnome && rpm_unpack "./${UP}/${NM}-gnome-integration-${BVER}.${XARCH}.rpm"
|
||||||
|
use java && rpm_unpack "./${UP}/${NM}-javafilter-${BVER}.${XARCH}.rpm"
|
||||||
|
|
||||||
|
# English support installed by default
|
||||||
|
rpm_unpack "./${UP}/${NM}-en-US-${BVER}.${XARCH}.rpm"
|
||||||
|
rpm_unpack "./${UP}/${NM1}-en-US-${BVER}.${XARCH}.rpm"
|
||||||
|
for s in base calc draw help impress math res writer ; do
|
||||||
|
rpm_unpack "./${UP}/${NM}-en-US-${s}-${BVER}.${XARCH}.rpm"
|
||||||
|
done
|
||||||
|
|
||||||
|
# Localization
|
||||||
|
strip-linguas ${LANGS}
|
||||||
|
for l in ${LINGUAS}; do
|
||||||
|
m="${l/_/-}"
|
||||||
|
if [[ ${m} != "en" ]] ; then
|
||||||
|
LANGDIR="${m}/RPMS/"
|
||||||
|
rpm_unpack "./${LANGDIR}/${NM}-${m}-${BVER}.${XARCH}.rpm"
|
||||||
|
rpm_unpack "./${LANGDIR}/${NM1}-${m}-${BVER}.${XARCH}.rpm"
|
||||||
|
for n in base calc draw help impress math res writer; do
|
||||||
|
rpm_unpack "./${LANGDIR}/${NM}-${m}-${n}-${BVER}.${XARCH}.rpm"
|
||||||
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install () {
|
||||||
|
|
||||||
|
INSTDIR="/usr/$(get_libdir)/${NM}"
|
||||||
|
dodir ${INSTDIR}
|
||||||
|
# mv "${WORKDIR}"/opt/${NM}/* "${ED}${INSTDIR}" || die
|
||||||
|
mv "${WORKDIR}"/opt/${NM2}/* "${ED}${INSTDIR}" || die
|
||||||
|
|
||||||
|
#Menu entries, icons and mime-types
|
||||||
|
cd "${ED}${INSTDIR}/share/xdg/"
|
||||||
|
for desk in base calc draw impress javafilter math printeradmin qstart startcenter writer; do
|
||||||
|
if [ "${desk}" = "javafilter" ] ; then
|
||||||
|
use java || { rm javafilter.desktop; continue; }
|
||||||
|
fi
|
||||||
|
mv ${desk}.desktop ${NM}-${desk}.desktop
|
||||||
|
sed -i -e "s/${NM2} /ooffice /g" ${NM}-${desk}.desktop || die
|
||||||
|
domenu ${NM}-${desk}.desktop
|
||||||
|
done
|
||||||
|
insinto /usr/share
|
||||||
|
doins -r "${WORKDIR}"/usr/share/icons
|
||||||
|
doins -r "${WORKDIR}"/usr/share/mime
|
||||||
|
|
||||||
|
# Make sure the permissions are right
|
||||||
|
use prefix || fowners -R root:0 /
|
||||||
|
|
||||||
|
# Install wrapper script
|
||||||
|
newbin "${T}/wrapper.in" ooffice
|
||||||
|
sed -i -e s/LIBDIR/$(get_libdir)/g "${ED}/usr/bin/ooffice" || die
|
||||||
|
|
||||||
|
# Component symlinks
|
||||||
|
for app in base calc draw impress math writer; do
|
||||||
|
dosym ${INSTDIR}/program/s${app} /usr/bin/oo${app}
|
||||||
|
done
|
||||||
|
|
||||||
|
dosym ${INSTDIR}/program/spadmin /usr/bin/ooffice-printeradmin
|
||||||
|
dosym ${INSTDIR}/program/soffice /usr/bin/soffice
|
||||||
|
|
||||||
|
# Non-java weirdness see bug #99366
|
||||||
|
use !java && rm -f "${ED}${INSTDIR}/program/javaldx"
|
||||||
|
|
||||||
|
# prevent revdep-rebuild from attempting to rebuild all the time
|
||||||
|
insinto /etc/revdep-rebuild && doins "${T}/50-${PN}"
|
||||||
|
|
||||||
|
# remove soffice bin
|
||||||
|
rm -rf "${ED}${EPREFIX}/usr/bin/soffice"
|
||||||
|
|
||||||
|
# replace all symlinks by bash shell code in order to nicely cope with
|
||||||
|
# libreoffice
|
||||||
|
cd "${ED}${EPREFIX}/usr/bin/"
|
||||||
|
for i in oo*; do
|
||||||
|
[[ ${i} == ooffice* ]] && continue
|
||||||
|
|
||||||
|
rm ${i}
|
||||||
|
cat >> ${i} << EOF
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
pushd "${EPREFIX}/usr/$(get_libdir)/openoffice/program" > /dev/null
|
||||||
|
./${i/oo/s} "\$@"
|
||||||
|
popd > /dev/null
|
||||||
|
EOF
|
||||||
|
chmod +x ${i}
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_preinst() {
|
||||||
|
|
||||||
|
use gnome && gnome2_icon_savelist
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
|
||||||
|
fdo-mime_desktop_database_update
|
||||||
|
fdo-mime_mime_database_update
|
||||||
|
use gnome && gnome2_icon_cache_update
|
||||||
|
|
||||||
|
pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/${NM}/program/soffice.bin
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
|
||||||
|
fdo-mime_desktop_database_update
|
||||||
|
use gnome && gnome2_icon_cache_update
|
||||||
|
|
||||||
|
}
|
@ -1,17 +1,20 @@
|
|||||||
-----BEGIN PGP SIGNED MESSAGE-----
|
-----BEGIN PGP SIGNED MESSAGE-----
|
||||||
Hash: SHA256
|
Hash: SHA256
|
||||||
|
|
||||||
|
AUX e-file-20110906-portageq.patch 1228 SHA256 41a9d192f67e83302ac0b97b67a9794037bd1f806c5b36fff168a74f234931e0 SHA512 2ae9a57a998bec81051d926c562220c5c70b2356150af5947929607207244e146581b19118bbbf424057fcb3f79568fac74db76aedf76009a468e3ea14542ae8 WHIRLPOOL 68074264d5096a84f8bef87462869c7da09b5e1f0012833ce2b301a6d1ab2725413b53ed71b69a73fcaf4c7d90faa127908c29297bc2963f0de27f9beedc4315
|
||||||
DIST e-file-20110906 2974 SHA256 bb79a48fb495f7cd4e9934bed2bccce818bbef5bc90cfb8a569568344dc8a241 SHA512 a5d0cb46b19f734e5b330f1fe2cf8e532bf786c39da74031e5a8497a5f0f3b35139795ef27cf0c030a6957645afe0536dab47f9e3283c0f803f24942d7ed929a WHIRLPOOL 63a79476c43fee9cdb5175d556788e42ac626a2cc0385a06f659a89633745374e10ac3c84437748cd89732d73bebb40fe753659756f7eb7a168621dd4d7494d2
|
DIST e-file-20110906 2974 SHA256 bb79a48fb495f7cd4e9934bed2bccce818bbef5bc90cfb8a569568344dc8a241 SHA512 a5d0cb46b19f734e5b330f1fe2cf8e532bf786c39da74031e5a8497a5f0f3b35139795ef27cf0c030a6957645afe0536dab47f9e3283c0f803f24942d7ed929a WHIRLPOOL 63a79476c43fee9cdb5175d556788e42ac626a2cc0385a06f659a89633745374e10ac3c84437748cd89732d73bebb40fe753659756f7eb7a168621dd4d7494d2
|
||||||
DIST pfl-2.3 14060 SHA256 7f7f95173e3c2203a9b585572a3898f9ccf2bfee9d167c76705ad816e253b4d6 SHA512 ecd76a1beee3608e395c925f469509d4cd0fb974e91cd5f388cf0fc2fe645287977c357221aa11bf02362a7962401ac7ba1654af8d63bf9249892d982b8c978e WHIRLPOOL 97965c46a8f5b0497fcaae9fc1abef4c0763ad622def7d2db0d5472be7d63d8a9b7f02cd48ccf10fa6bdadb5817ca84bef0c6a4522549f07c0c00be870ed633b
|
DIST pfl-2.3 14060 SHA256 7f7f95173e3c2203a9b585572a3898f9ccf2bfee9d167c76705ad816e253b4d6 SHA512 ecd76a1beee3608e395c925f469509d4cd0fb974e91cd5f388cf0fc2fe645287977c357221aa11bf02362a7962401ac7ba1654af8d63bf9249892d982b8c978e WHIRLPOOL 97965c46a8f5b0497fcaae9fc1abef4c0763ad622def7d2db0d5472be7d63d8a9b7f02cd48ccf10fa6bdadb5817ca84bef0c6a4522549f07c0c00be870ed633b
|
||||||
DIST pfl-2.3.tar.bz2 6481 SHA256 40f9b5846abd561089a1cb80662d51ca49364353398407f4f1c74437281b8a6a SHA512 42721a79ea001c8dc571d4ae1d0dde4dce22bd0c177e0c984ec2daa1d01838e8d48943bd94ab6f4652b00bb4ab40594bfda6fab04cc62d2447fb603d4ec7ee05 WHIRLPOOL a2ac419ed7466a306f9cd7c3df824d2af90175661bb27b703501b07a27d5d2752a1fc85b2b77781a10778ac5eb894a5a68e5f46bbf57b4f3091154178ccbec7c
|
DIST pfl-2.3.tar.bz2 6481 SHA256 40f9b5846abd561089a1cb80662d51ca49364353398407f4f1c74437281b8a6a SHA512 42721a79ea001c8dc571d4ae1d0dde4dce22bd0c177e0c984ec2daa1d01838e8d48943bd94ab6f4652b00bb4ab40594bfda6fab04cc62d2447fb603d4ec7ee05 WHIRLPOOL a2ac419ed7466a306f9cd7c3df824d2af90175661bb27b703501b07a27d5d2752a1fc85b2b77781a10778ac5eb894a5a68e5f46bbf57b4f3091154178ccbec7c
|
||||||
|
DIST pfl-2.4.tar.bz2 6274 SHA256 7e09db7fe79a2c0cdd8faf39ff05069f5c03b5f994168ecb0395c628b8d5f297 SHA512 a33712bc38d6e02474856dc3a9eac0d39be032a9554f2510815602e94648cd6bf499111a3354568788ddcc0a653a2ac54fac56b0af03fb1cf822ec44ffcb1d72 WHIRLPOOL 3091e30199313c27b88f35563825c2add7bcee972337ef8936636342442b663d12d5ad3c178342812906476071d7224ff134eacdabbf9f7478d7823d793b128f
|
||||||
EBUILD pfl-2.3-r3.ebuild 1107 SHA256 9af784ad16b3edaa3a3977ba70c663761e4cc87016cce84151066aca8326c752 SHA512 728d13f23c9fa1c6513c5fbcb5d93b478d129c5d69d142a7856dce7aa71316a100f96d4ea5ce26344f55c58122c516ede38627be017d04a97481fc02016fcee1 WHIRLPOOL 17895185892cafd768eff9fd6dfe53c12600e07b9dc2db76da65b07f61e41a549d5a59b8ed884d7683ac422331d968534f39c282cdd82f1bf367af0df3fe5620
|
EBUILD pfl-2.3-r3.ebuild 1107 SHA256 9af784ad16b3edaa3a3977ba70c663761e4cc87016cce84151066aca8326c752 SHA512 728d13f23c9fa1c6513c5fbcb5d93b478d129c5d69d142a7856dce7aa71316a100f96d4ea5ce26344f55c58122c516ede38627be017d04a97481fc02016fcee1 WHIRLPOOL 17895185892cafd768eff9fd6dfe53c12600e07b9dc2db76da65b07f61e41a549d5a59b8ed884d7683ac422331d968534f39c282cdd82f1bf367af0df3fe5620
|
||||||
EBUILD pfl-2.3.ebuild 1681 SHA256 11e529cd184fa745eea14a4904ab504436b24c582147f838cf4e0ed92d32ca4d SHA512 a88f1fa815eba52883bb38457192aa65d338479ae02a1f67219e484e9e2c53e347e4a6a67e148f36e45f9dbdeacd07ffba17c750f8c07e6f4972413a2062d351 WHIRLPOOL 4b63cce27defb3e1de510ee8bcae860c98a8d2b6997fe4e46e1494d22ef05063a97edfeb2c4164cfa2a7a332c52ecf19f3e2df40566e1600d148097f14d12a3a
|
EBUILD pfl-2.3.ebuild 1681 SHA256 11e529cd184fa745eea14a4904ab504436b24c582147f838cf4e0ed92d32ca4d SHA512 a88f1fa815eba52883bb38457192aa65d338479ae02a1f67219e484e9e2c53e347e4a6a67e148f36e45f9dbdeacd07ffba17c750f8c07e6f4972413a2062d351 WHIRLPOOL 4b63cce27defb3e1de510ee8bcae860c98a8d2b6997fe4e46e1494d22ef05063a97edfeb2c4164cfa2a7a332c52ecf19f3e2df40566e1600d148097f14d12a3a
|
||||||
MISC ChangeLog 6801 SHA256 217e3300d455368a5fae9267f5b20ff3f9822b37167da1fb06a81791dc631670 SHA512 31a7df81675419547892b39c686177f326e8df56177d559672e7290cb8abb04303ca69c70a78d1fcb7e1dee4641c56100aae2f82cc50b2828b8bf04dfa52f76b WHIRLPOOL 042b8d3bab03dd7ad7736bb9d905436684159d17d4b14f54581a383393d17262aadf85ad2adb3691f7575d1cd253bc3fd9f5767e278fab7b7ad9bd94cac73bd1
|
EBUILD pfl-2.4.ebuild 1117 SHA256 a1ae5cf78776d9e08067fdd474940eb3873304121d603dfdcf8203f373cc6719 SHA512 ee9728d075fb1e4e0934db018ae8d37339362df2a6ed8b81d9abf39c8a24737b6e760c3a093495bf9c5ea7f6adff9cb525e5ab029dd2755b143172e77c6b0537 WHIRLPOOL 4816b112cbe13db26940dca93519b1c5e40aa7ac2c8ca5c6b9465a65d00f723eb6267ba7e0754d392b69792ecd3a890b6f923e377b5e04ee9d2f3e09eb00c3b2
|
||||||
|
MISC ChangeLog 7096 SHA256 a27a5a4b4cf7932eea36bf3d0e6396629852cb7f190ff992b4a7420a5a170454 SHA512 6b8c0eb743e3982233a1e452773be31e82c19fffed2150cb81cd3efc1638c7948f6709b298e94d0ef39b37d754b5726a06ec60447e4a22c3b88f70555fec2030 WHIRLPOOL d9581a50ddf868823819ba73bb6ecf998a8e9e9bbfaa405b99b677f7c9aed7b03ebff70f74830bd7bfc290091d05f9ab7d93b4434206678715b603e8ea836c7d
|
||||||
MISC metadata.xml 515 SHA256 749b45b87e5c0f2c5cd4c8a23e6ff65cffa426516ab99da0f0e96ae2575ca3b7 SHA512 6fb02ae546328199365df72937302b96fdb758c78219ae1ef1f484bdb0ae93d20c274af53e5cf0477c9ea3029199e6e7f7c919d3641d3c80b9ee03c76e70c30c WHIRLPOOL b5c98ed9ec81a55c43bdd085c5589075c8cb5c0d41a4f3036ccb07b4a07c883b631c9c02605cc1eb0121b3b242266bb1a79dc6015a377356df2737fad27e0226
|
MISC metadata.xml 515 SHA256 749b45b87e5c0f2c5cd4c8a23e6ff65cffa426516ab99da0f0e96ae2575ca3b7 SHA512 6fb02ae546328199365df72937302b96fdb758c78219ae1ef1f484bdb0ae93d20c274af53e5cf0477c9ea3029199e6e7f7c919d3641d3c80b9ee03c76e70c30c WHIRLPOOL b5c98ed9ec81a55c43bdd085c5589075c8cb5c0d41a4f3036ccb07b4a07c883b631c9c02605cc1eb0121b3b242266bb1a79dc6015a377356df2737fad27e0226
|
||||||
-----BEGIN PGP SIGNATURE-----
|
-----BEGIN PGP SIGNATURE-----
|
||||||
Version: GnuPG v2.0.21 (GNU/Linux)
|
Version: GnuPG v2.0.20 (GNU/Linux)
|
||||||
|
|
||||||
iEYEAREIAAYFAlIT6OQACgkQ1ycZbhPLE2CpkACggzcoOEIwfYbr9JVXPvKIpork
|
iEYEAREIAAYFAlJRlPoACgkQlcuUeyFa0U3NRgCg5MvEesglFUd0Wu8S7dyiuwi5
|
||||||
pqoAoKRmKIWVJfKjRNz0a89arF53amcZ
|
HtcAnivjjEWk/hk6H7i+I3XTPdehI0Vs
|
||||||
=6V0n
|
=thD4
|
||||||
-----END PGP SIGNATURE-----
|
-----END PGP SIGNATURE-----
|
||||||
|
@ -0,0 +1,44 @@
|
|||||||
|
--- bin/e-file
|
||||||
|
+++ bin/e-file
|
||||||
|
@@ -16,11 +16,11 @@
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
-if type emerge >/dev/null 2>&1; then
|
||||||
|
+if type portageq >/dev/null 2>&1; then
|
||||||
|
isgentoo=1
|
||||||
|
else
|
||||||
|
isgentoo=0
|
||||||
|
- echo 'WARNING: "emerge" no found. If your system is not gentoo, a part of function will not available!' >&2
|
||||||
|
+ echo 'WARNING: "portageq" no found. If your system is not gentoo, a part of function will not available!' >&2
|
||||||
|
fi
|
||||||
|
|
||||||
|
URL="http://www.portagefilelist.de/index.php/Special:PFLQuery2?file=$1&searchfile=lookup&lookup=file&txt"
|
||||||
|
@@ -29,8 +29,7 @@
|
||||||
|
BEGIN{
|
||||||
|
FOUND=0
|
||||||
|
if(isgentoo){
|
||||||
|
- "emerge --info | grep PORTDIR" | getline
|
||||||
|
- split($0,PORTDIR,/\"/)
|
||||||
|
+ "portageq envvar / PORTDIR" | getline PORTDIR
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
@@ -75,7 +74,7 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
NF=0
|
||||||
|
- cmd="(grep -h HOMEPAGE\\= " PORTDIR[2] "/" pkg "/*.ebuild | tail -n 1)2>/dev/null"
|
||||||
|
+ cmd="(grep -h HOMEPAGE\\= " PORTDIR "/" pkg "/*.ebuild | tail -n 1)2>/dev/null"
|
||||||
|
cmd | getline
|
||||||
|
if(NF==0){
|
||||||
|
HOMEPAGE=""
|
||||||
|
@@ -85,7 +84,7 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
NF=0
|
||||||
|
- cmd="(grep -h DESCRIPTION " PORTDIR[2] "/" pkg "/*.ebuild | tail -n 1)2>/dev/null"
|
||||||
|
+ cmd="(grep -h DESCRIPTION " PORTDIR "/" pkg "/*.ebuild | tail -n 1)2>/dev/null"
|
||||||
|
cmd | getline
|
||||||
|
if(NF==0){
|
||||||
|
DESCRIPTION=""
|
@ -0,0 +1,46 @@
|
|||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-portage/pfl/pfl-2.4.ebuild,v 1.1 2013/10/06 16:51:01 billie Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||||
|
PYTHON_REQ_USE="xml"
|
||||||
|
|
||||||
|
inherit eutils distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Searchable online file/package database for Gentoo"
|
||||||
|
HOMEPAGE="http://www.portagefilelist.de"
|
||||||
|
SRC_URI="http://files.portagefilelist.de/${P}.tar.bz2"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x64-freebsd ~x86-linux"
|
||||||
|
IUSE="+network-cron"
|
||||||
|
|
||||||
|
DEPEND=""
|
||||||
|
RDEPEND="${DEPEND}
|
||||||
|
net-misc/curl
|
||||||
|
sys-apps/portage"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
epatch "${FILESDIR}"/e-file-20110906-portageq.patch
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
if use network-cron ; then
|
||||||
|
exeinto /etc/cron.weekly
|
||||||
|
doexe cron/pfl
|
||||||
|
fi
|
||||||
|
|
||||||
|
keepdir /var/lib/${PN}
|
||||||
|
distutils-r1_python_install_all
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
if [[ ! -e "${EROOT%/}/var/lib/${PN}/pfl.info" ]]; then
|
||||||
|
touch "${EROOT%/}/var/lib/${PN}/pfl.info"
|
||||||
|
chown -R 0:portage "${EROOT%/}/var/lib/${PN}"
|
||||||
|
chmod 775 "${EROOT%/}/var/lib/${PN}"
|
||||||
|
fi
|
||||||
|
}
|
@ -0,0 +1,22 @@
|
|||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-vim/easy-align/easy-align-2.6.0.ebuild,v 1.1 2013/10/06 04:59:18 radhermit Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
inherit vim-plugin
|
||||||
|
|
||||||
|
MY_PN="vim-${PN}"
|
||||||
|
MY_P="${MY_PN}-${PV}"
|
||||||
|
DESCRIPTION="vim plugin: a simple alignment plugin"
|
||||||
|
HOMEPAGE="https://github.com/junegunn/vim-easy-align http://www.vim.org/scripts/script.php?script_id=4520"
|
||||||
|
SRC_URI="https://github.com/junegunn/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
LICENSE="MIT"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
|
||||||
|
VIM_PLUGIN_HELPFILES="${PN}"
|
||||||
|
|
||||||
|
S=${WORKDIR}/${MY_PN}-${PV}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
rmdir test || die
|
||||||
|
}
|
@ -1,76 +0,0 @@
|
|||||||
# ChangeLog for dev-games/neotools
|
|
||||||
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-games/neotools/ChangeLog,v 1.19 2013/05/13 08:19:47 tupone Exp $
|
|
||||||
|
|
||||||
13 May 2013; Tupone Alfredo <tupone@gentoo.org> neotools-0.8.2-r1.ebuild,
|
|
||||||
+files/neotools-0.8.2-automake113.patch:
|
|
||||||
Fix build with automake-1.13 Bug #467636 by Ian Stakenvicius
|
|
||||||
|
|
||||||
15 Oct 2010; Brent Baude <ranger@gentoo.org> neotools-0.8.2-r1.ebuild:
|
|
||||||
stable ppc, bug 313903
|
|
||||||
|
|
||||||
13 Apr 2010; Pawel Hajdan jr <phajdan.jr@gentoo.org>
|
|
||||||
neotools-0.8.2-r1.ebuild:
|
|
||||||
x86 stable wrt bug #313903
|
|
||||||
|
|
||||||
*neotools-0.8.2-r1 (31 Mar 2009)
|
|
||||||
|
|
||||||
31 Mar 2009; Michael Sterrett <mr_bones_@gentoo.org>
|
|
||||||
-neotools-0.8.2.ebuild, +neotools-0.8.2-r1.ebuild:
|
|
||||||
rev bump to force out the linking with the system libbz2
|
|
||||||
|
|
||||||
31 Mar 2009; Michael Sterrett <mr_bones_@gentoo.org>
|
|
||||||
neotools-0.8.2.ebuild:
|
|
||||||
EAPI=2; link against the system libbz2 (bug #258286)
|
|
||||||
|
|
||||||
23 Jan 2009; Alfredo Tupone <tupone@gentoo.org>
|
|
||||||
+files/neotools-0.8.2-gcc43.patch, neotools-0.8.2.ebuild:
|
|
||||||
Fix gcc-4.3 bug #255819 by flameeyes@gentoo.org
|
|
||||||
|
|
||||||
16 Nov 2008; Diego E. Pettenò <flameeyes@gentoo.org>
|
|
||||||
files/neotools-0.8.2-errno.patch:
|
|
||||||
Fix patch.
|
|
||||||
|
|
||||||
25 Dec 2007; Christian Heim <phreak@gentoo.org> metadata.xml:
|
|
||||||
Removing dholm from metadata.xml as per #24623.
|
|
||||||
|
|
||||||
27 Apr 2006; Marien Zwart <marienz@gentoo.org>
|
|
||||||
files/digest-neotools-0.8.1, Manifest:
|
|
||||||
Fixing SHA256 digest, pass four
|
|
||||||
|
|
||||||
15 Apr 2006; <Tupone@gentoo.org> neotools-0.8.2.ebuild:
|
|
||||||
Fix for gcc-4.1
|
|
||||||
|
|
||||||
*neotools-0.8.2 (03 Mar 2006)
|
|
||||||
|
|
||||||
03 Mar 2006; <Tupone@gentoo.org> +files/neotools-0.8.2-errno.patch,
|
|
||||||
+neotools-0.8.2.ebuild:
|
|
||||||
Version bump and fix bug #118996 (errno.h include missing)
|
|
||||||
|
|
||||||
30 Sep 2005; Chris Gianelloni <wolf31o2@gentoo.org> neotools-0.8.1.ebuild:
|
|
||||||
Removed INSTALL.
|
|
||||||
|
|
||||||
13 Aug 2004; Michael Sterrett <mr_bones_@gentoo.org> -neotools-0.7.0.ebuild,
|
|
||||||
-neotools-0.8.0.ebuild, neotools-0.8.1.ebuild:
|
|
||||||
error check sed; clean older ebuilds
|
|
||||||
|
|
||||||
29 Jun 2004; Aron Griffis <agriffis@gentoo.org> neotools-0.7.0.ebuild,
|
|
||||||
neotools-0.8.0.ebuild, neotools-0.8.1.ebuild:
|
|
||||||
add sed-4 dep
|
|
||||||
|
|
||||||
*neotools-0.8.1 (14 Apr 2004)
|
|
||||||
|
|
||||||
14 Apr 2004; David Holm <dholm@gentoo.org> neotools-0.8.1.ebuild:
|
|
||||||
Version bump.
|
|
||||||
|
|
||||||
*neotools-0.8.0 (23 Mar 2004)
|
|
||||||
|
|
||||||
23 Mar 2004; David Holm <dholm@gentoo.org> neotools-0.8.0.ebuild:
|
|
||||||
Version bump.
|
|
||||||
|
|
||||||
*neotools-0.7.0 (22 Mar 2004)
|
|
||||||
|
|
||||||
22 Mar 2004; David Holm <dholm@gentoo.org> metadata.xml,
|
|
||||||
neotools-0.7.0.ebuild:
|
|
||||||
Initial import.
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
|||||||
-----BEGIN PGP SIGNED MESSAGE-----
|
|
||||||
Hash: SHA256
|
|
||||||
|
|
||||||
AUX neotools-0.8.2-automake113.patch 308 SHA256 2e0e10a6fa043dc3ee6514c6ecc45b5f9ee9f3937173eec1f076d80857e911dc SHA512 7cc12997de2ac7b74e8cd508a05aa2ac81a752012fff9e04b9933c0d1565fd5ba0796448258105541b65d4cdaf877e15a2b287abf42770e314d59445cfc8b429 WHIRLPOOL 43e4644a973cfb1be1f25cc3899c5ea8b4fe2d4c1f8af46237aa834b970916359561f0794ec9e4ef756ae86e28a005e42044f7718faca7ad299cc421dc9cb81d
|
|
||||||
AUX neotools-0.8.2-errno.patch 221 SHA256 826827311f4b1fefcdeed07ff81f5627e86e9b565c404ed058ed6ebd87ef5072 SHA512 0a04ecc6e205ab0908cf163688bab0c10885e7b7fcf34760c6e2cbe483de2674e57bde5c06c60843485587ad112bebb8ee834801b0d268ad32cf6e55ba577c06 WHIRLPOOL 8908ac12cf785a5e9632aacc9099d1461fbf11a1d27e6f2270c07f931603d318b28474cc01787e7421b165c6c9acdf832d2839439bfd4f3be35e1b8df8b13b99
|
|
||||||
AUX neotools-0.8.2-gcc43.patch 1264 SHA256 2669e548d82b7c4e0fa01ba8faf72bf61b0ca0168007304c47fe386cdf83aae8 SHA512 a432ecac29d01b2e31331cb5213f6a707e65262a6eec7927ad71bd1b45e8b87211dd3388a7d3bcc71681c0cf03df5e545349cd6cbae6aec41fb467094d071880 WHIRLPOOL 661b2ebd5b5d52a01e48690349bb0f0b96034d4431dba5123fa4485a8af9d5a09f9fcf72496b366aa853974e830baa329e3ad46355b5d4b11deaae23f4d2d733
|
|
||||||
DIST neotools-0.8.2.tar.bz2 105475 SHA256 38ca4a1a85bf23064d68649f423efefc377405bac1224a11dd9ce1edf9f165db SHA512 f502dccde4e31ab9e00b50a59fc33cbbc9dbd5dbe3cf3e379523a08ef6a00f211e339ec3645aab9e1a5e35ae0da17b9158ce73d90ab8fffe2cc37f58c7cd3fc1 WHIRLPOOL e77311923bc0a549daec990f5755feefc19afb5958de8375d7bdf57dc60fede33d3e746288ab4c2a0cb67c815a66f42da52b9afec7759894ba0a8f02be09ce48
|
|
||||||
EBUILD neotools-0.8.2-r1.ebuild 1226 SHA256 3c362d6138ef5d398373717c040bd5fec8b8545587e28b4dabca3ff0a5f869a5 SHA512 be33def227f871f02b5e8c3cafd3cfdbfc1377965bbc24bfb93a90ad34a51399ec309064b5628c2b0e6479f3f2d7b3f001f24de73b82e752e1843c92d11a7b46 WHIRLPOOL 2e34721b26b2989e7c57852a39b9cbd75733eea6b213de86d05611cda13e5a18bf0f8e55ee7d2ce0930babf501a0fcfac1e39c961c2094cd020233f0ad7ae2f3
|
|
||||||
MISC ChangeLog 2485 SHA256 c48e63e1ef0d8b61bf8588e07dec42b0f2e29cc88b2f839194babe703a6a178d SHA512 c0e1df4d71c276e963689dbcc87f1924d85c132c47c5a00f9f55539717ed56df959fda663e69f849c663d4092ba9aab2587827fe3489784983598917ec52f416 WHIRLPOOL 0261bcae3a23ce619ac49452d63991ab0ab3f3c231a2bc29aa43206ad593b2d560dcab3d1c7e6fe78b75291b0aafa9746fc3647222fb4a41b4fb0041c0a83a99
|
|
||||||
MISC metadata.xml 400 SHA256 c73a1d09ae225e19b9850a6308a579f47119a30b7d90efffae962d1eea336766 SHA512 b333057a664d519ebe67b43dca12fc295a755be6e147d69015338217d5a8fa49c1df76327a00e9d2cc2acafdac644af2f158007f325ed23777497a2b43c5243b WHIRLPOOL 5756ef0467bd26289cb46472592e3f0dd966b3632ad000a0daef5194e4d0d4297190ca3f9a5236d4cee02ea284b57f366123b52dc45ba7b7e2e35717bbd358c5
|
|
||||||
-----BEGIN PGP SIGNATURE-----
|
|
||||||
Version: GnuPG v2.0.19 (GNU/Linux)
|
|
||||||
|
|
||||||
iEYEAREIAAYFAlGQoigACgkQIY77eQFFFC1EWACeJSwrwlmO6Lw5tAAqjUIdquXk
|
|
||||||
yDQAnjk9iyYTmdSjVkK8vurjJFhy4jXL
|
|
||||||
=z9u1
|
|
||||||
-----END PGP SIGNATURE-----
|
|
@ -1,11 +0,0 @@
|
|||||||
--- configure.in.old 2013-05-13 09:52:34.778345838 +0200
|
|
||||||
+++ configure.in 2013-05-13 10:09:14.830518747 +0200
|
|
||||||
@@ -3,7 +3,7 @@
|
|
||||||
AC_CANONICAL_TARGET
|
|
||||||
AM_INIT_AUTOMAKE(neotools, 0.8.1)
|
|
||||||
AC_CONFIG_SRCDIR(nscemake/main.cpp)
|
|
||||||
-AM_CONFIG_HEADER(config.h)
|
|
||||||
+AC_CONFIG_HEADER(config.h)
|
|
||||||
AC_LANG(C++)
|
|
||||||
AC_PREREQ(2.52)
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
|||||||
--- a/nscemake/md3.cpp 2004-02-17 14:22:12.000000000 +0100
|
|
||||||
+++ b/nscemake/md3.cpp 2006-01-14 16:47:30.000000000 +0100
|
|
||||||
@@ -54,6 +54,7 @@
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <ctype.h>
|
|
||||||
+#include <errno.h>
|
|
||||||
|
|
||||||
#include <vector>
|
|
||||||
|
|
@ -1,42 +0,0 @@
|
|||||||
--- nscemake/md3.h.old 2009-01-23 11:25:56.000000000 +0100
|
|
||||||
+++ nscemake/md3.h 2009-01-23 11:26:12.000000000 +0100
|
|
||||||
@@ -32,6 +32,8 @@
|
|
||||||
#ifndef __NSCEMAKE_MD3_H
|
|
||||||
#define __NSCEMAKE_MD3_H
|
|
||||||
|
|
||||||
+#include <cstdlib>
|
|
||||||
+#include <cstring>
|
|
||||||
#include "base.h"
|
|
||||||
#include "converter.h"
|
|
||||||
|
|
||||||
--- nscemake/md5mesh.cpp.old 2009-01-23 11:36:28.000000000 +0100
|
|
||||||
+++ nscemake/md5mesh.cpp 2009-01-23 11:37:04.000000000 +0100
|
|
||||||
@@ -30,6 +30,7 @@
|
|
||||||
***************************************************************************/
|
|
||||||
|
|
||||||
#include "md5mesh.h"
|
|
||||||
+#include <cstdlib>
|
|
||||||
|
|
||||||
#include <neoengine/file.h>
|
|
||||||
#include <neoengine/nemath.h>
|
|
||||||
--- nscemake/q3map.cpp.old 2009-01-23 11:39:43.000000000 +0100
|
|
||||||
+++ nscemake/q3map.cpp 2009-01-23 11:40:18.000000000 +0100
|
|
||||||
@@ -30,6 +30,7 @@
|
|
||||||
***************************************************************************/
|
|
||||||
|
|
||||||
#include "q3map.h"
|
|
||||||
+#include <cstdlib>
|
|
||||||
#include "q3maptypes.h"
|
|
||||||
|
|
||||||
#include <neoengine/vertex.h>
|
|
||||||
--- nscemake/ut2.cpp.old 2009-01-23 11:41:29.000000000 +0100
|
|
||||||
+++ nscemake/ut2.cpp 2009-01-23 11:41:52.000000000 +0100
|
|
||||||
@@ -30,6 +30,7 @@
|
|
||||||
***************************************************************************/
|
|
||||||
|
|
||||||
#include "ut2.h"
|
|
||||||
+#include <cstring>
|
|
||||||
|
|
||||||
#include <neoengine/file.h>
|
|
||||||
#include <neoengine/logstream.h>
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<herd>games</herd>
|
|
||||||
<longdescription>
|
|
||||||
Various development tools for NeoEngine.
|
|
||||||
* npacmake: Create and manage npac archives
|
|
||||||
* nscemake: Convert various file formats to engine native scene format
|
|
||||||
* nsceview: View nsce scene files
|
|
||||||
</longdescription>
|
|
||||||
</pkgmetadata>
|
|
@ -1,52 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-games/neotools/neotools-0.8.2-r1.ebuild,v 1.4 2013/05/13 08:19:47 tupone Exp $
|
|
||||||
|
|
||||||
EAPI=2
|
|
||||||
inherit eutils autotools
|
|
||||||
|
|
||||||
DESCRIPTION="Various development tools for NeoEngine"
|
|
||||||
HOMEPAGE="http://www.neoengine.org/"
|
|
||||||
SRC_URI="mirror://sourceforge/neoengine/neotools-${PV}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="MPL-1.1"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="ppc x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND=">=dev-games/neoengine-${PV}
|
|
||||||
app-arch/bzip2"
|
|
||||||
|
|
||||||
S=${WORKDIR}/neotools
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
sed -i \
|
|
||||||
-e 's/BUILD_STATIC/BUILD_DYNAMIC/g' \
|
|
||||||
-e 's/_static//g' \
|
|
||||||
nscemake/Makefile.am \
|
|
||||||
|| die "sed failed"
|
|
||||||
sed -i \
|
|
||||||
-e 's:"bzip2/bzlib.h":<bzlib.h>:' \
|
|
||||||
npacmake/main.cpp \
|
|
||||||
|| die "sed failed"
|
|
||||||
sed -i \
|
|
||||||
-e '/npacmake_SOURCES/s/main.cpp.*/main.cpp/' \
|
|
||||||
-e '/npacmake_LDADD/s/$/ -lbz2/' \
|
|
||||||
npacmake/Makefile.am \
|
|
||||||
|| die "sed failed"
|
|
||||||
sed -i \
|
|
||||||
-e 's/ -Werror//' \
|
|
||||||
configure.in \
|
|
||||||
|| die "sed failed"
|
|
||||||
|
|
||||||
epatch "${FILESDIR}"/${P}-errno.patch \
|
|
||||||
"${FILESDIR}"/${P}-gcc43.patch \
|
|
||||||
"${FILESDIR}"/${P}-automake113.patch
|
|
||||||
|
|
||||||
eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
emake DESTDIR="${D}" install || die "emake install failed"
|
|
||||||
dodoc AUTHORS ChangeLog*
|
|
||||||
}
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue