parent
aa66708146
commit
260918d677
@ -1,2 +1 @@
|
||||
DIST eselect-postgresql-1.2.0.tbz2 3587 SHA256 53cd59e4851c60c6744fe5b5b9149103355f47152cc30265dc066ffe5eb31020 SHA512 6f8a3dcefd41d1da29e980f162ba0ae0ce412812e8e015275bcce383a91e62331e3168edc24ff287b25aa80d56469da8f7c785d80472e767e54b8e26b17c0ed5 WHIRLPOOL adb3eb969222835d14bdd61771ec850b84a060707c22da43f14a816d31ba9f6249c7691c871a1c8f74c064554926e333e15af63becf46aedfd09bea788deacad
|
||||
DIST eselect-postgresql-1.2.1.tbz2 3645 SHA256 661ef3cbb1627798af3c8d6c526f4a6367620a5fef08c287a633e1babf43f938 SHA512 9b24cb7620dd3de979ef595c60ebf607cd9da5c7d3c4da19ebe242c25961883e2db54341f916690abb9fe7a76663d9f1ac73fc76c90389f72eff425aa6fb43e4 WHIRLPOOL e7ef4f3d250f4f345d28bccdd43fa1639b8ed80b9f6a4aabd4f7df5f4337845ee0f4ce653fde596209094b01fc0e5c624872affbfa042382f3963a49d600827f
|
||||
|
@ -1,28 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-postgresql/eselect-postgresql-1.2.0.ebuild,v 1.10 2013/09/10 18:01:55 maekke Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
DESCRIPTION="Utility to select the default PostgreSQL slot"
|
||||
HOMEPAGE="http://www.gentoo.org/"
|
||||
SRC_URI="http://dev.gentoo.org/~titanofold/${P}.tbz2"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="app-admin/eselect"
|
||||
|
||||
src_install() {
|
||||
keepdir /etc/eselect/postgresql
|
||||
|
||||
insinto /usr/share/eselect/modules
|
||||
doins postgresql.eselect
|
||||
|
||||
dosym /usr/bin/eselect /usr/bin/postgresql-config
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
postgresql-config update
|
||||
}
|
@ -1,3 +1,2 @@
|
||||
DIST clamav-0.97.7.tar.gz 14598481 SHA256 8527754e7eb235317e37a50706d94d3fc9d880fd0bf6f3cb83757d64a720e9ff SHA512 92120250afb882b7fb9f956f2095797f8e3c93076a229967123261c907d9b4436cda6cf2d18b2c61cec8b33afeacba9c2701ad3322aa3316163fe4f36f7a7bc7 WHIRLPOOL 1f3fb155ad4e35ef1ea3835941e40363f9da9c37ab46fe1b9d44e29add6fee9d775e1f5858648a6229f9d0f41c40ed4ade726a4fc044156d208bf10f6cc8c705
|
||||
DIST clamav-0.97.8.tar.gz 14609966 SHA256 d872bdfd692d440bc2ade2f4e5a7befc37feb8885cd81adfb6346a8214aafc12 SHA512 e3a80bbfc90922f7f49521d1ab53ec63fb948a42d448ecaa933023cbb256f35e5b695305bd2d56480ee1f94ac93703d10aa4193566c521a1fa62f2c0e1019fda WHIRLPOOL b0ddc29edd096007abc0183400f2b3ee54cf87f13bb2eab2388c444f038fab33eb25b6b5d678449d49da2258017a630ff2e6b36c27028557038a033b415b026c
|
||||
DIST clamav-0.98.1.tar.gz 15431484 SHA256 35f5e84d734cdd4532c1cc6c92560c5b31d1c24f2e1e203bef0ca1351eb223dc SHA512 5daac24d346a03acc7e4d8f9e5962a009a908326663008557cbc2af4426e6059cbebbb8fac6d718edf9a567075b823c457f3f9a3aea3c558f5ee272274030b42 WHIRLPOOL 0af4baeefb5e384db0679bdbad2902ced213adb4993c61755fb4065845106779b3467e61dd6fc38b4d7fcecf492069e2a02178a259c618fd6e2f309faf9d1eb1
|
||||
DIST clamav-0.98.tar.gz 37075245 SHA256 113450537f46ed47f010a179be333a0dcd79eac13f264dce26db7aac8d52b3b6 SHA512 532f9fa2616065879b3ecace2672fad26cf3863943e0ecb8835fbed7e5907600ef50b8df820a08a6586bf77c9bf7c6e50af671f31b7c3ee372c31745a173099f WHIRLPOOL a4ee9efd09193aee7fd740dbb60acabdd4a1f6d5171a4e0fa220441457e3431bf99b27c7300ca0e3e124bb5406f65acf106fa51bfc34d87335ca83ccbc942979
|
||||
|
@ -1,120 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/clamav-0.97.7.ebuild,v 1.11 2013/10/09 11:28:32 xarthisius Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils flag-o-matic user
|
||||
|
||||
DESCRIPTION="Clam Anti-Virus Scanner"
|
||||
HOMEPAGE="http://www.clamav.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE="bzip2 clamdtop iconv ipv6 milter selinux static-libs uclibc"
|
||||
|
||||
CDEPEND="bzip2? ( app-arch/bzip2 )
|
||||
clamdtop? ( sys-libs/ncurses )
|
||||
iconv? ( virtual/libiconv )
|
||||
milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) )
|
||||
dev-libs/libtommath
|
||||
>=sys-libs/zlib-1.2.2
|
||||
sys-devel/libtool"
|
||||
DEPEND="${CDEPEND}
|
||||
virtual/pkgconfig"
|
||||
RDEPEND="${CDEPEND}
|
||||
selinux? ( sec-policy/selinux-clamav )"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
DOCS=( AUTHORS BUGS ChangeLog FAQ INSTALL NEWS README UPGRADE )
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup clamav
|
||||
enewuser clamav -1 -1 /dev/null clamav
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
use ppc64 && append-flags -mminimal-toc
|
||||
use uclibc && export ac_cv_type_error_t=yes
|
||||
epatch "${FILESDIR}"/${PN}-0.97-nls.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--disable-experimental \
|
||||
--enable-id-check \
|
||||
--with-dbdir="${EPREFIX}"/var/lib/clamav \
|
||||
--with-system-tommath \
|
||||
--with-zlib="${EPREFIX}"/usr \
|
||||
$(use_enable bzip2) \
|
||||
$(use_enable clamdtop) \
|
||||
$(use_enable ipv6) \
|
||||
$(use_enable milter) \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_with iconv)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
rm -rf "${ED}"/var/lib/clamav
|
||||
newinitd "${FILESDIR}"/clamd.initd-r3 clamd
|
||||
newconfd "${FILESDIR}"/clamd.conf clamd
|
||||
|
||||
keepdir /var/lib/clamav
|
||||
fowners clamav:clamav /var/lib/clamav
|
||||
keepdir /var/log/clamav
|
||||
fowners clamav:clamav /var/log/clamav
|
||||
|
||||
dodir /etc/logrotate.d
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}"/clamav.logrotate clamav
|
||||
|
||||
# Modify /etc/{clamd,freshclam}.conf to be usable out of the box
|
||||
sed -i -e "s:^\(Example\):\# \1:" \
|
||||
-e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.pid:" \
|
||||
-e "s:.*\(LocalSocket\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.sock:" \
|
||||
-e "s:.*\(User\) .*:\1 clamav:" \
|
||||
-e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamd.log:" \
|
||||
-e "s:^\#\(LogTime\).*:\1 yes:" \
|
||||
-e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \
|
||||
"${ED}"/etc/clamd.conf
|
||||
sed -i -e "s:^\(Example\):\# \1:" \
|
||||
-e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/freshclam.pid:" \
|
||||
-e "s:.*\(DatabaseOwner\) .*:\1 clamav:" \
|
||||
-e "s:^\#\(UpdateLogFile\) .*:\1 ${EPREFIX}/var/log/clamav/freshclam.log:" \
|
||||
-e "s:^\#\(NotifyClamd\).*:\1 ${EPREFIX}/etc/clamd.conf:" \
|
||||
-e "s:^\#\(ScriptedUpdates\).*:\1 yes:" \
|
||||
-e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \
|
||||
"${ED}"/etc/freshclam.conf
|
||||
|
||||
if use milter ; then
|
||||
# MilterSocket one to include ' /' because there is a 2nd line for
|
||||
# inet: which we want to leave
|
||||
dodoc "${FILESDIR}"/clamav-milter.README.gentoo
|
||||
sed -i -e "s:^\(Example\):\# \1:" \
|
||||
-e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamav-milter.pid:" \
|
||||
-e "s+^\#\(ClamdSocket\) .*+\1 unix:${EPREFIX}/var/run/clamav/clamd.sock+" \
|
||||
-e "s:.*\(User\) .*:\1 clamav:" \
|
||||
-e "s+^\#\(MilterSocket\) /.*+\1 unix:${EPREFIX}/var/run/clamav/clamav-milter.sock+" \
|
||||
-e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \
|
||||
-e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamav-milter.log:" \
|
||||
"${ED}"/etc/clamav-milter.conf
|
||||
cat > "${ED}"/etc/conf.d/clamd <<-EOF
|
||||
MILTER_NICELEVEL=19
|
||||
START_MILTER=no
|
||||
EOF
|
||||
fi
|
||||
|
||||
prune_libtool_files --all
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use milter ; then
|
||||
elog "For simple instructions how to setup the clamav-milter read the"
|
||||
elog "clamav-milter.README.gentoo in /usr/share/doc/${PF}"
|
||||
fi
|
||||
}
|
@ -1,120 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/clamav-0.97.8.ebuild,v 1.5 2013/11/29 09:06:23 pinkbyte Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils flag-o-matic user
|
||||
|
||||
DESCRIPTION="Clam Anti-Virus Scanner"
|
||||
HOMEPAGE="http://www.clamav.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE="bzip2 clamdtop iconv ipv6 milter selinux static-libs uclibc"
|
||||
|
||||
CDEPEND="bzip2? ( app-arch/bzip2 )
|
||||
clamdtop? ( sys-libs/ncurses )
|
||||
iconv? ( virtual/libiconv )
|
||||
milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) )
|
||||
dev-libs/libtommath
|
||||
>=sys-libs/zlib-1.2.2
|
||||
sys-devel/libtool"
|
||||
DEPEND="${CDEPEND}
|
||||
virtual/pkgconfig"
|
||||
RDEPEND="${CDEPEND}
|
||||
selinux? ( sec-policy/selinux-clamav )"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
DOCS=( AUTHORS BUGS ChangeLog FAQ INSTALL NEWS README UPGRADE )
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup clamav
|
||||
enewuser clamav -1 -1 /dev/null clamav
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
use ppc64 && append-flags -mminimal-toc
|
||||
use uclibc && export ac_cv_type_error_t=yes
|
||||
epatch "${FILESDIR}"/${PN}-0.97-nls.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--disable-experimental \
|
||||
--enable-id-check \
|
||||
--with-dbdir="${EPREFIX}"/var/lib/clamav \
|
||||
--with-system-tommath \
|
||||
--with-zlib="${EPREFIX}"/usr \
|
||||
$(use_enable bzip2) \
|
||||
$(use_enable clamdtop) \
|
||||
$(use_enable ipv6) \
|
||||
$(use_enable milter) \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_with iconv)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
rm -rf "${ED}"/var/lib/clamav
|
||||
newinitd "${FILESDIR}"/clamd.initd-r5 clamd
|
||||
newconfd "${FILESDIR}"/clamd.conf clamd
|
||||
|
||||
keepdir /var/lib/clamav
|
||||
fowners clamav:clamav /var/lib/clamav
|
||||
keepdir /var/log/clamav
|
||||
fowners clamav:clamav /var/log/clamav
|
||||
|
||||
dodir /etc/logrotate.d
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}"/clamav.logrotate clamav
|
||||
|
||||
# Modify /etc/{clamd,freshclam}.conf to be usable out of the box
|
||||
sed -i -e "s:^\(Example\):\# \1:" \
|
||||
-e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.pid:" \
|
||||
-e "s:.*\(LocalSocket\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.sock:" \
|
||||
-e "s:.*\(User\) .*:\1 clamav:" \
|
||||
-e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamd.log:" \
|
||||
-e "s:^\#\(LogTime\).*:\1 yes:" \
|
||||
-e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \
|
||||
"${ED}"/etc/clamd.conf
|
||||
sed -i -e "s:^\(Example\):\# \1:" \
|
||||
-e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/freshclam.pid:" \
|
||||
-e "s:.*\(DatabaseOwner\) .*:\1 clamav:" \
|
||||
-e "s:^\#\(UpdateLogFile\) .*:\1 ${EPREFIX}/var/log/clamav/freshclam.log:" \
|
||||
-e "s:^\#\(NotifyClamd\).*:\1 ${EPREFIX}/etc/clamd.conf:" \
|
||||
-e "s:^\#\(ScriptedUpdates\).*:\1 yes:" \
|
||||
-e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \
|
||||
"${ED}"/etc/freshclam.conf
|
||||
|
||||
if use milter ; then
|
||||
# MilterSocket one to include ' /' because there is a 2nd line for
|
||||
# inet: which we want to leave
|
||||
dodoc "${FILESDIR}"/clamav-milter.README.gentoo
|
||||
sed -i -e "s:^\(Example\):\# \1:" \
|
||||
-e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamav-milter.pid:" \
|
||||
-e "s+^\#\(ClamdSocket\) .*+\1 unix:${EPREFIX}/var/run/clamav/clamd.sock+" \
|
||||
-e "s:.*\(User\) .*:\1 clamav:" \
|
||||
-e "s+^\#\(MilterSocket\) /.*+\1 unix:${EPREFIX}/var/run/clamav/clamav-milter.sock+" \
|
||||
-e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \
|
||||
-e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamav-milter.log:" \
|
||||
"${ED}"/etc/clamav-milter.conf
|
||||
cat > "${ED}"/etc/conf.d/clamd <<-EOF
|
||||
MILTER_NICELEVEL=19
|
||||
START_MILTER=no
|
||||
EOF
|
||||
fi
|
||||
|
||||
prune_libtool_files --all
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use milter ; then
|
||||
elog "For simple instructions how to setup the clamav-milter read the"
|
||||
elog "clamav-milter.README.gentoo in /usr/share/doc/${PF}"
|
||||
fi
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
--- clamav-0.97/shared/output.c.orig
|
||||
+++ clamav-0.97/shared/output.c
|
||||
@@ -63,7 +63,7 @@
|
||||
pthread_mutex_t mdprintf_mutex = PTHREAD_MUTEX_INITIALIZER;
|
||||
#endif
|
||||
|
||||
-#ifdef C_LINUX
|
||||
+#if defined(C_LINUX) && defined(HAVE_LIBINTL_H)
|
||||
#include <libintl.h>
|
||||
#include <locale.h>
|
||||
|
@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer><email>maintainer-needed@gentoo.org</email></maintainer>
|
||||
<maintainer>
|
||||
<email>blueness@gentoo.org</email>
|
||||
<name>Anthony G. Basile</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
@ -0,0 +1,74 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-baselibs/emul-linux-x86-baselibs-20131008-r10.ebuild,v 1.1 2014/01/27 12:50:54 ssuominen Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit emul-linux-x86
|
||||
|
||||
LICENSE="Artistic GPL-1 GPL-2 GPL-3 BSD BSD-2 BZIP2 AFL-2.1 LGPL-2.1 BSD-4 MIT
|
||||
public-domain LGPL-3 LGPL-2 GPL-2-with-exceptions MPL-1.1 OPENLDAP
|
||||
Sleepycat UoI-NCSA ZLIB openafs-krb5-a HPND ISC RSA IJG libmng libtiff
|
||||
openssl tcp_wrappers_license"
|
||||
|
||||
KEYWORDS="-* ~amd64"
|
||||
IUSE="abi_x86_32"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="!<app-emulation/emul-linux-x86-medialibs-10.2
|
||||
abi_x86_32? (
|
||||
>=sys-libs/zlib-1.2.8-r1[abi_x86_32(-)]
|
||||
>=app-arch/bzip2-1.0.6-r4[abi_x86_32(-)]
|
||||
>=media-libs/libpng-1.5.16-r1:0[abi_x86_32(-)]
|
||||
>=dev-libs/udis86-1.7-r2[abi_x86_32(-)]
|
||||
>=virtual/libffi-3.0.13-r1[abi_x86_32(-)]
|
||||
>=sys-devel/llvm-3.3-r1[abi_x86_32(-)]
|
||||
>=media-libs/libpng-1.2.50-r1:1.2[abi_x86_32(-)]
|
||||
virtual/jpeg:62[abi_x86_32(-)]
|
||||
>=sys-libs/libraw1394-2.1.0-r1[abi_x86_32(-)]
|
||||
>=sys-libs/libavc1394-0.5.4-r1[abi_x86_32(-)]
|
||||
>=dev-libs/expat-2.1.0-r3[abi_x86_32(-)]
|
||||
>=virtual/libusb-0-r1:0[abi_x86_32(-)]
|
||||
>=virtual/libusb-1-r1:1[abi_x86_32(-)]
|
||||
|| (
|
||||
>=virtual/udev-206-r1[abi_x86_32(-)]
|
||||
~virtual/udev-204[abi_x86_32(-)] )
|
||||
>=media-libs/tiff-4.0.3-r5:0[abi_x86_32(-)]
|
||||
>=sys-apps/attr-2.4.47-r1[abi_x86_32(-)]
|
||||
>=dev-libs/glib-2.36.3-r2:2[abi_x86_32(-)]
|
||||
>=media-libs/lcms-2.5-r1:2[abi_x86_32(-)]
|
||||
>=app-text/libpaper-1.1.24-r2[abi_x86_32(-)]
|
||||
>=media-libs/tiff-3.9.7-r1:3[abi_x86_32(-)]
|
||||
|| (
|
||||
>=dev-libs/elfutils-0.155-r1[abi_x86_32(-)]
|
||||
>=dev-libs/libelf-0.8.13-r2[abi_x86_32(-)]
|
||||
)
|
||||
>=sys-libs/e2fsprogs-libs-1.42.7-r1[abi_x86_32(-)]
|
||||
>=sys-libs/ncurses-5.9-r3[abi_x86_32(-)]
|
||||
>=sys-libs/gpm-1.20.7-r2[abi_x86_32(-)]
|
||||
>=dev-libs/gmp-5.1.3-r1[abi_x86_32(-)]
|
||||
>=dev-libs/libpcre-8.33-r1[abi_x86_32(-)]
|
||||
>=sys-apps/dbus-1.6.18-r1[abi_x86_32(-)]
|
||||
>=sys-apps/tcp-wrappers-7.6.22-r1[abi_x86_32(-)]
|
||||
>=sys-libs/gdbm-1.10-r1[abi_x86_32(-)]
|
||||
>=dev-libs/json-c-0.11-r1[abi_x86_32(-)]
|
||||
>=dev-libs/libxml2-2.9.1-r2[abi_x86_32(-)]
|
||||
>=dev-libs/dbus-glib-0.100.2-r1[abi_x86_32(-)]
|
||||
>=sys-libs/readline-6.2_p5-r1:0[abi_x86_32(-)]
|
||||
)
|
||||
>=sys-libs/glibc-2.15" # bug 340613
|
||||
|
||||
PYTHON_UPDATER_IGNORE="1"
|
||||
|
||||
src_prepare() {
|
||||
export ALLOWED="(${S}/lib32/security/pam_filter/upperLOWER|${S}/etc/env.d|${S}/lib32/security/pam_ldap.so)"
|
||||
emul-linux-x86_src_prepare
|
||||
rm -rf "${S}/etc/env.d/binutils/" \
|
||||
"${S}/usr/i686-pc-linux-gnu/lib" \
|
||||
"${S}/usr/lib32/engines/" \
|
||||
"${S}/usr/lib32/openldap/" || die
|
||||
|
||||
ln -s ../share/terminfo "${S}/usr/lib32/terminfo" || die
|
||||
|
||||
# Remove migrated stuff.
|
||||
use abi_x86_32 && rm -f $(cat "${FILESDIR}/remove-native")
|
||||
}
|
@ -0,0 +1,74 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-baselibs/emul-linux-x86-baselibs-20131008-r11.ebuild,v 1.1 2014/01/27 13:18:45 ssuominen Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit emul-linux-x86
|
||||
|
||||
LICENSE="Artistic GPL-1 GPL-2 GPL-3 BSD BSD-2 BZIP2 AFL-2.1 LGPL-2.1 BSD-4 MIT
|
||||
public-domain LGPL-3 LGPL-2 GPL-2-with-exceptions MPL-1.1 OPENLDAP
|
||||
Sleepycat UoI-NCSA ZLIB openafs-krb5-a HPND ISC RSA IJG libmng libtiff
|
||||
openssl tcp_wrappers_license"
|
||||
|
||||
KEYWORDS="-* ~amd64"
|
||||
IUSE="abi_x86_32"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="!<app-emulation/emul-linux-x86-medialibs-10.2
|
||||
abi_x86_32? (
|
||||
>=sys-libs/zlib-1.2.8-r1[abi_x86_32(-)]
|
||||
>=app-arch/bzip2-1.0.6-r4[abi_x86_32(-)]
|
||||
>=media-libs/libpng-1.5.16-r1:0[abi_x86_32(-)]
|
||||
>=dev-libs/udis86-1.7-r2[abi_x86_32(-)]
|
||||
>=virtual/libffi-3.0.13-r1[abi_x86_32(-)]
|
||||
>=sys-devel/llvm-3.3-r1[abi_x86_32(-)]
|
||||
>=media-libs/libpng-1.2.50-r1:1.2[abi_x86_32(-)]
|
||||
virtual/jpeg:62[abi_x86_32(-)]
|
||||
>=sys-libs/libraw1394-2.1.0-r1[abi_x86_32(-)]
|
||||
>=sys-libs/libavc1394-0.5.4-r1[abi_x86_32(-)]
|
||||
>=dev-libs/expat-2.1.0-r3[abi_x86_32(-)]
|
||||
>=virtual/libusb-0-r1:0[abi_x86_32(-)]
|
||||
>=virtual/libusb-1-r1:1[abi_x86_32(-)]
|
||||
|| (
|
||||
>=virtual/udev-206-r1[abi_x86_32(-)]
|
||||
~virtual/udev-204[abi_x86_32(-)] )
|
||||
>=media-libs/tiff-4.0.3-r5:0[abi_x86_32(-)]
|
||||
>=sys-apps/attr-2.4.47-r1[abi_x86_32(-)]
|
||||
>=dev-libs/glib-2.36.3-r2:2[abi_x86_32(-)]
|
||||
>=media-libs/lcms-2.5-r1:2[abi_x86_32(-)]
|
||||
>=app-text/libpaper-1.1.24-r2[abi_x86_32(-)]
|
||||
>=media-libs/tiff-3.9.7-r1:3[abi_x86_32(-)]
|
||||
|| (
|
||||
>=dev-libs/elfutils-0.155-r1[abi_x86_32(-)]
|
||||
>=dev-libs/libelf-0.8.13-r2[abi_x86_32(-)]
|
||||
)
|
||||
>=sys-libs/e2fsprogs-libs-1.42.7-r1[abi_x86_32(-)]
|
||||
>=sys-libs/ncurses-5.9-r3[abi_x86_32(-)]
|
||||
>=sys-libs/gpm-1.20.7-r2[abi_x86_32(-)]
|
||||
>=dev-libs/gmp-5.1.3-r1[abi_x86_32(-)]
|
||||
>=dev-libs/libpcre-8.33-r1[abi_x86_32(-)]
|
||||
>=sys-apps/dbus-1.6.18-r1[abi_x86_32(-)]
|
||||
>=sys-apps/tcp-wrappers-7.6.22-r1[abi_x86_32(-)]
|
||||
>=sys-libs/gdbm-1.10-r1[abi_x86_32(-)]
|
||||
>=dev-libs/json-c-0.11-r1[abi_x86_32(-)]
|
||||
>=dev-libs/libxml2-2.9.1-r2[abi_x86_32(-)]
|
||||
>=dev-libs/dbus-glib-0.100.2-r1[abi_x86_32(-)]
|
||||
>=sys-libs/readline-6.2_p5-r1:0[abi_x86_32(-)]
|
||||
)
|
||||
>=sys-libs/glibc-2.15" # bug 340613
|
||||
|
||||
PYTHON_UPDATER_IGNORE="1"
|
||||
|
||||
src_prepare() {
|
||||
export ALLOWED="(${S}/lib32/security/pam_filter/upperLOWER|${S}/etc/env.d|${S}/lib32/security/pam_ldap.so)"
|
||||
emul-linux-x86_src_prepare
|
||||
rm -rf "${S}/etc/env.d/binutils/" \
|
||||
"${S}/usr/i686-pc-linux-gnu/lib" \
|
||||
"${S}/usr/lib32/engines/" \
|
||||
"${S}/usr/lib32/openldap/" || die
|
||||
|
||||
ln -s ../share/terminfo "${S}/usr/lib32/terminfo" || die
|
||||
|
||||
# Remove migrated stuff.
|
||||
use abi_x86_32 && rm -f $(cat "${FILESDIR}/remove-native")
|
||||
}
|
@ -1,7 +1,2 @@
|
||||
DIST libvirt-1.1.3-062ad8b2.tar.xz 18836 SHA256 a16a72d9cc6b49564e234b39f94a987e20da9fd511203ec1cb4534ccf4570121 SHA512 0734836972ef3e7a2d8bcb1d1ab001b3f15202c2921107c28a17f6ccf4002849c920133969b611560a88ca7f969eea468b1a8bc14b432b270f624c6594fc1ade WHIRLPOOL 340ca175f7322ede982455ba311a19cd5cbb33ea49e1fa3a7ab13a0fdb31c37a8a0fc58cec189efb19a861a21d6c677c3c3533e58e9fb9eaa4ce0f3dde721ec9
|
||||
DIST libvirt-1.1.3.1.tar.gz 26595900 SHA256 00383e0beef1854610d8d47fd9347564b3654ce0e4a263e06b0de364a118c93e SHA512 59f79d0fc52ae0c9ae97bcc8fd90f799d6daf63c9a36d38738ec7d7392e630e39347f0c472b02434e83888b3ee0ab62d2b0b4eaa92eed3102ff36ca30f2598aa WHIRLPOOL 92be678e7ef84f9437bb91b1a621e6b35f9ce1383b945e466b4b864c0df1cfb95900da6267263bb1984663ea8e2b5b358bd516748a934835a87be822f5d27e90
|
||||
DIST libvirt-1.1.3.3.tar.gz 26611343 SHA256 81f3527b5e647d128af18b21ea924ffb4f8b6420fe87d19f09829af7b31982e9 SHA512 01fb1b70fc537cdb0986f09066df3af61ed3d949814c42438842e4ceb44e919a1a1a4f1d9e3d4adaab050fbcb4dffc218b1b9f7fbbae1d035a7c0edc2fc3f03e WHIRLPOOL cf5cc9d298deac77c7f6ff5a3a8edac8f63bdf93a423fefa8a4969fa0d03ec35864a7fd1894c4fd37daad731c018d3c0b7e55fe92321bbc3f106fb73728f1e8d
|
||||
DIST libvirt-1.1.3.tar.gz 26578000 SHA256 af83e65b4b26520662ddd183c1358be0d05138dba3e66745419f06441eff5a7c SHA512 895f8ccf1fdf7a36918e4d460b44b1bf67d06842e39142c89c620f6191e299b53c50f80ab47677d7cba6bd570177d79b5ee0d7d2a11472991590389db51fab9d WHIRLPOOL c046f1182976bbd6bf65b460b2017996e63f67b5cce44f0af859d90f892278d0236192e6e7172e16c85183da6e258a003d9c8757af2079ab4d77de9ca300d986
|
||||
DIST libvirt-1.2.0-36378d1a.tar.xz 5200 SHA256 1c1448051bad702eccd7a122496f7995427218152b65de12e3d418f7faaf6412 SHA512 4c01d90dc1e2c46ed65a61321887d1337ea2733dfda1361de9560bd5aba68ff51e425190bbe140893dd96f902111ed5be1ba9bc72a356abc0251f30fff645746 WHIRLPOOL f3778cfd56c0a0857607af1c301e3cf8a96ecf87b5ec85d23dbf98512692fd2bb428c923eab69234e6fdad95ed6e195bb01ebdd843df7a18e910e55bb6dccf82
|
||||
DIST libvirt-1.2.0.tar.gz 26916717 SHA256 a8e578ae7861db2ac5f454073293d2ef3229fd3f6c4f9029101763244db22ddd SHA512 834274b0249eb39439d21cd9b494fa2acbaee9e5337557b8d57977b483f3e5d00fd0a6743f8f4a02e826114c15d2468ab0c9385e4e4c9537abba18da3d8c5fa6 WHIRLPOOL 057a91ad4296710833721d3a7f9eff616755422462479709b72e5fe679ed8825c5bbfd47fde9f7abaf1e6f4104a680ad874c41bf9759cf45ac7d863061a38cd0
|
||||
DIST libvirt-1.2.1.tar.gz 27228694 SHA256 bc29b5751bf36753c17e2fdbb75e70c7b07df3d9527586d3426e90f5f4abb898 SHA512 6184840623156ca01ee7f59078ebf031bc84c25b37bb110372c7bcf230a79b74e267475f989fb73db5e3c096dcc74f03cb30adfc5de022f756ed2cd6ab05bfd0 WHIRLPOOL 75c2a37b1101950474aad8931d999564ff575512d38c9e8d2cf989cef3ad7057853046b738b20bd77be80c1e6677319aea7227797ae95ce91512dc36bd05a142
|
||||
|
@ -1,432 +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/libvirt/libvirt-1.1.3-r1.ebuild,v 1.3 2013/10/25 16:24:52 ago Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
BACKPORTS=062ad8b2
|
||||
AUTOTOOLIZE=yes
|
||||
|
||||
MY_P="${P/_rc/-rc}"
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
|
||||
inherit eutils python-single-r1 user autotools linux-info systemd readme.gentoo
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
inherit git-2
|
||||
EGIT_REPO_URI="git://libvirt.org/libvirt.git"
|
||||
AUTOTOOLIZE=yes
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="http://libvirt.org/sources/${MY_P}.tar.gz
|
||||
ftp://libvirt.org/libvirt/${MY_P}.tar.gz
|
||||
${BACKPORTS:+
|
||||
http://dev.gentoo.org/~cardoe/distfiles/${MY_P}-${BACKPORTS}.tar.xz}"
|
||||
KEYWORDS="amd64 x86"
|
||||
fi
|
||||
S="${WORKDIR}/${P%_rc*}"
|
||||
|
||||
DESCRIPTION="C toolkit to manipulate virtual machines"
|
||||
HOMEPAGE="http://www.libvirt.org/"
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
IUSE="audit avahi +caps firewalld fuse iscsi +libvirtd lvm lxc +macvtap nfs \
|
||||
nls numa openvz parted pcap phyp policykit python +qemu rbd sasl \
|
||||
selinux +udev uml +vepa virtualbox virt-network xen elibc_glibc \
|
||||
systemd"
|
||||
REQUIRED_USE="libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) )
|
||||
lxc? ( caps libvirtd )
|
||||
openvz? ( libvirtd )
|
||||
qemu? ( libvirtd )
|
||||
uml? ( libvirtd )
|
||||
vepa? ( macvtap )
|
||||
virtualbox? ( libvirtd )
|
||||
xen? ( libvirtd )
|
||||
virt-network? ( libvirtd )
|
||||
firewalld? ( virt-network )
|
||||
python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
# gettext.sh command is used by the libvirt command wrappers, and it's
|
||||
# non-optional, so put it into RDEPEND.
|
||||
# We can use both libnl:1.1 and libnl:3, but if you have both installed, the
|
||||
# package will use 3 by default. Since we don't have slot pinning in an API,
|
||||
# we must go with the most recent
|
||||
RDEPEND="sys-libs/readline
|
||||
sys-libs/ncurses
|
||||
>=net-misc/curl-7.18.0
|
||||
dev-libs/libgcrypt
|
||||
>=dev-libs/libxml2-2.7.6
|
||||
dev-libs/libnl:3
|
||||
>=net-libs/gnutls-1.0.25
|
||||
net-libs/libssh2
|
||||
sys-apps/dmidecode
|
||||
>=sys-apps/util-linux-2.17
|
||||
sys-devel/gettext
|
||||
>=net-analyzer/netcat6-1.0-r2
|
||||
app-misc/scrub
|
||||
audit? ( sys-process/audit )
|
||||
avahi? ( >=net-dns/avahi-0.6[dbus] )
|
||||
caps? ( sys-libs/libcap-ng )
|
||||
fuse? ( >=sys-fs/fuse-2.8.6 )
|
||||
iscsi? ( sys-block/open-iscsi )
|
||||
lxc? ( sys-power/pm-utils )
|
||||
lvm? ( >=sys-fs/lvm2-2.02.48-r2 )
|
||||
nfs? ( net-fs/nfs-utils )
|
||||
numa? (
|
||||
>sys-process/numactl-2.0.2
|
||||
sys-process/numad
|
||||
)
|
||||
openvz? ( sys-kernel/openvz-sources )
|
||||
parted? (
|
||||
>=sys-block/parted-1.8[device-mapper]
|
||||
sys-fs/lvm2
|
||||
)
|
||||
pcap? ( >=net-libs/libpcap-1.0.0 )
|
||||
policykit? ( >=sys-auth/polkit-0.9 )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
qemu? (
|
||||
>=app-emulation/qemu-0.13.0
|
||||
dev-libs/yajl
|
||||
sys-power/pm-utils
|
||||
)
|
||||
rbd? ( sys-cluster/ceph )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
selinux? ( >=sys-libs/libselinux-2.0.85 )
|
||||
virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) )
|
||||
xen? ( app-emulation/xen-tools app-emulation/xen )
|
||||
udev? ( virtual/udev >=x11-libs/libpciaccess-0.10.9 )
|
||||
virt-network? ( net-dns/dnsmasq
|
||||
>=net-firewall/iptables-1.4.10
|
||||
net-misc/radvd
|
||||
net-firewall/ebtables
|
||||
sys-apps/iproute2[-minimal]
|
||||
firewalld? ( net-firewall/firewalld )
|
||||
)
|
||||
elibc_glibc? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) )"
|
||||
# one? ( dev-libs/xmlrpc-c )
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
app-text/xhtml1
|
||||
dev-lang/perl
|
||||
dev-libs/libxslt"
|
||||
|
||||
DOC_CONTENTS="For the basic networking support (bridged and routed networks)
|
||||
you don't need any extra software. For more complex network modes
|
||||
including but not limited to NATed network, you can enable the
|
||||
'virt-network' USE flag.\n\n
|
||||
If you are using dnsmasq on your system, you will have
|
||||
to configure /etc/dnsmasq.conf to enable the following settings:\n\n
|
||||
bind-interfaces\n
|
||||
interface or except-interface\n\n
|
||||
Otherwise you might have issues with your existing DNS server."
|
||||
|
||||
LXC_CONFIG_CHECK="
|
||||
~CGROUPS
|
||||
~CGROUP_FREEZER
|
||||
~CGROUP_DEVICE
|
||||
~CGROUP_CPUACCT
|
||||
~CGROUP_SCHED
|
||||
~CGROUP_PERF
|
||||
~BLK_CGROUP
|
||||
~NET_CLS_CGROUP
|
||||
~NETPRIO_CGROUP
|
||||
~CPUSETS
|
||||
~RESOURCE_COUNTERS
|
||||
~NAMESPACES
|
||||
~UTS_NS
|
||||
~IPC_NS
|
||||
~PID_NS
|
||||
~NET_NS
|
||||
~USER_NS
|
||||
~DEVPTS_MULTIPLE_INSTANCES
|
||||
~VETH
|
||||
~MACVLAN
|
||||
~POSIX_MQUEUE
|
||||
~SECURITYFS
|
||||
~!GRKERNSEC_CHROOT_MOUNT
|
||||
~!GRKERNSEC_CHROOT_DOUBLE
|
||||
~!GRKERNSEC_CHROOT_PIVOT
|
||||
~!GRKERNSEC_CHROOT_CHMOD
|
||||
~!GRKERNSEC_CHROOT_CAPS
|
||||
"
|
||||
|
||||
VIRTNET_CONFIG_CHECK="
|
||||
~BRIDGE_NF_EBTABLES
|
||||
~BRIDGE_EBT_MARK_T
|
||||
~NETFILTER_ADVANCED
|
||||
~NETFILTER_XT_TARGET_CHECKSUM
|
||||
~NETFILTER_XT_CONNMARK
|
||||
~NETFILTER_XT_MARK
|
||||
"
|
||||
|
||||
MACVTAP_CONFIG_CHECK=" ~MACVTAP"
|
||||
|
||||
LVM_CONFIG_CHECK=" ~BLK_DEV_DM ~DM_SNAPSHOT ~DM_MULTIPATH"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup qemu 77
|
||||
enewuser qemu 77 -1 -1 qemu kvm
|
||||
|
||||
# Some people used the masked ebuild which was not adding the qemu
|
||||
# user to the kvm group originally. This results in VMs failing to
|
||||
# start for some users. bug #430808
|
||||
egetent group kvm | grep -q qemu
|
||||
if [[ $? -ne 0 ]]; then
|
||||
gpasswd -a qemu kvm
|
||||
fi
|
||||
|
||||
python-single-r1_pkg_setup
|
||||
|
||||
# Handle specific kernel versions for different features
|
||||
kernel_is lt 3 6 && LXC_CONFIG_CHECK+=" ~CGROUP_MEM_RES_CTLR"
|
||||
kernel_is ge 3 6 && LXC_CONFIG_CHECK+=" ~MEMCG ~MEMCG_SWAP ~MEMCG_KMEM"
|
||||
|
||||
CONFIG_CHECK=""
|
||||
use fuse && CONFIG_CHECK+=" ~FUSE_FS"
|
||||
use lvm && CONFIG_CHECK+="${LVM_CONFIG_CHECK}"
|
||||
use lxc && CONFIG_CHECK+="${LXC_CONFIG_CHECK}"
|
||||
use macvtap && CONFIG_CHECK+="${MACVTAP_CONFIG_CHECK}"
|
||||
use virt-network && CONFIG_CHECK+="${VIRTNET_CONFIG_CHECK}"
|
||||
if [[ -n ${CONFIG_CHECK} ]]; then
|
||||
linux-info_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
touch "${S}/.mailmap"
|
||||
[[ -n ${BACKPORTS} ]] && \
|
||||
EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \
|
||||
epatch
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
|
||||
# git checkouts require bootstrapping to create the configure script.
|
||||
# Additionally the submodules must be cloned to the right locations
|
||||
# bug #377279
|
||||
./bootstrap || die "bootstrap failed"
|
||||
(
|
||||
git submodule status | sed 's/^[ +-]//;s/ .*//'
|
||||
git hash-object bootstrap.conf
|
||||
) >.git-module-status
|
||||
fi
|
||||
|
||||
epatch_user
|
||||
|
||||
[[ -n ${AUTOTOOLIZE} ]] && eautoreconf
|
||||
|
||||
# Tweak the init script
|
||||
local avahi_init=
|
||||
local iscsi_init=
|
||||
local rbd_init=
|
||||
local firewalld_init=
|
||||
cp "${FILESDIR}/libvirtd.init-r12" "${S}/libvirtd.init"
|
||||
use avahi && avahi_init='avahi-daemon'
|
||||
use iscsi && iscsi_init='iscsid'
|
||||
use rbd && rbd_init='ceph'
|
||||
use firewalld && firewalld_init='need firewalld'
|
||||
|
||||
sed -e "s/USE_FLAG_FIREWALLD/${firewalld_init}/" -i "${S}/libvirtd.init"
|
||||
sed -e "s/USE_FLAG_AVAHI/${avahi_init}/" -i "${S}/libvirtd.init"
|
||||
sed -e "s/USE_FLAG_ISCSI/${iscsi_init}/" -i "${S}/libvirtd.init"
|
||||
sed -e "s/USE_FLAG_RBD/${rbd_init}/" -i "${S}/libvirtd.init"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=""
|
||||
|
||||
## enable/disable daemon, otherwise client only utils
|
||||
myconf="${myconf} $(use_with libvirtd)"
|
||||
|
||||
## enable/disable the daemon using avahi to find VMs
|
||||
myconf="${myconf} $(use_with avahi)"
|
||||
|
||||
## hypervisors on the local host
|
||||
myconf="${myconf} $(use_with xen) $(use_with xen xen-inotify)"
|
||||
myconf+=" --without-xenapi"
|
||||
if use xen && has_version ">=app-emulation/xen-tools-4.2.0"; then
|
||||
myconf+=" --with-libxl"
|
||||
else
|
||||
myconf+=" --without-libxl"
|
||||
fi
|
||||
myconf="${myconf} $(use_with openvz)"
|
||||
myconf="${myconf} $(use_with lxc)"
|
||||
if use virtualbox && has_version app-emulation/virtualbox-ose; then
|
||||
myconf="${myconf} --with-vbox=/usr/lib/virtualbox-ose/"
|
||||
else
|
||||
myconf="${myconf} $(use_with virtualbox vbox)"
|
||||
fi
|
||||
myconf="${myconf} $(use_with uml)"
|
||||
myconf="${myconf} $(use_with qemu)"
|
||||
myconf="${myconf} $(use_with qemu yajl)" # Use QMP over HMP
|
||||
myconf="${myconf} $(use_with phyp)"
|
||||
myconf="${myconf} --with-esx"
|
||||
myconf="${myconf} --with-vmware"
|
||||
|
||||
## additional host drivers
|
||||
myconf="${myconf} $(use_with virt-network network)"
|
||||
myconf="${myconf} --with-storage-fs"
|
||||
myconf="${myconf} $(use_with lvm storage-lvm)"
|
||||
myconf="${myconf} $(use_with iscsi storage-iscsi)"
|
||||
myconf="${myconf} $(use_with parted storage-disk)"
|
||||
myconf="${myconf} $(use_with lvm storage-mpath)"
|
||||
myconf="${myconf} $(use_with rbd storage-rbd)"
|
||||
myconf="${myconf} $(use_with numa numactl)"
|
||||
myconf="${myconf} $(use_with numa numad)"
|
||||
myconf="${myconf} $(use_with selinux)"
|
||||
myconf="${myconf} $(use_with fuse)"
|
||||
|
||||
# udev for device support details
|
||||
myconf="${myconf} $(use_with udev)"
|
||||
|
||||
# linux capability support so we don't need privileged accounts
|
||||
myconf="${myconf} $(use_with caps capng)"
|
||||
|
||||
## auth stuff
|
||||
myconf="${myconf} $(use_with policykit polkit)"
|
||||
myconf="${myconf} $(use_with sasl)"
|
||||
|
||||
# network bits
|
||||
myconf="${myconf} $(use_with macvtap)"
|
||||
myconf="${myconf} $(use_with pcap libpcap)"
|
||||
myconf="${myconf} $(use_with vepa virtualport)"
|
||||
myconf="${myconf} $(use_with firewalld)"
|
||||
|
||||
## other
|
||||
myconf="${myconf} $(use_enable nls)"
|
||||
myconf="${myconf} $(use_with python)"
|
||||
|
||||
# user privilege bits fir qemu/kvm
|
||||
if use caps; then
|
||||
myconf="${myconf} --with-qemu-user=qemu"
|
||||
myconf="${myconf} --with-qemu-group=qemu"
|
||||
else
|
||||
myconf="${myconf} --with-qemu-user=root"
|
||||
myconf="${myconf} --with-qemu-group=root"
|
||||
fi
|
||||
|
||||
# audit support
|
||||
myconf="${myconf} $(use_with audit)"
|
||||
|
||||
## stuff we don't yet support
|
||||
myconf="${myconf} --without-netcf"
|
||||
|
||||
# we use udev over hal
|
||||
myconf="${myconf} --without-hal"
|
||||
|
||||
# locking support
|
||||
myconf="${myconf} --without-sanlock"
|
||||
|
||||
# systemd unit files
|
||||
use systemd && myconf="${myconf} --with-init-script=systemd"
|
||||
|
||||
# this is a nasty trick to work around the problem in bug
|
||||
# #275073. The reason why we don't solve this properly is that
|
||||
# it'll require us to rebuild autotools (and we don't really want
|
||||
# to do that right now). The proper solution has been sent
|
||||
# upstream and should hopefully land in 0.7.7, in the mean time,
|
||||
# mime the same functionality with this.
|
||||
case ${CHOST} in
|
||||
*cygwin* | *mingw* )
|
||||
;;
|
||||
*)
|
||||
ac_cv_prog_WINDRES=no
|
||||
;;
|
||||
esac
|
||||
|
||||
econf \
|
||||
${myconf} \
|
||||
--disable-static \
|
||||
--docdir=/usr/share/doc/${PF} \
|
||||
--with-remote \
|
||||
--localstatedir=/var
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
# Restore gnulib's config.sub and config.guess
|
||||
# bug #377279
|
||||
(cd .gnulib && git reset --hard > /dev/null)
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Explicitly allow parallel build of tests
|
||||
export VIR_TEST_DEBUG=1
|
||||
HOME="${T}" emake check || die "tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake install \
|
||||
DESTDIR="${D}" \
|
||||
HTML_DIR=/usr/share/doc/${PF}/html \
|
||||
DOCS_DIR=/usr/share/doc/${PF} \
|
||||
EXAMPLE_DIR=/usr/share/doc/${PF}/examples \
|
||||
SYSTEMD_UNIT_DIR="$(systemd_get_unitdir)" \
|
||||
|| die "emake install failed"
|
||||
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
|
||||
use libvirtd || return 0
|
||||
# From here, only libvirtd-related instructions, be warned!
|
||||
|
||||
newinitd "${S}/libvirtd.init" libvirtd || die
|
||||
newconfd "${FILESDIR}/libvirtd.confd-r4" libvirtd || die
|
||||
|
||||
keepdir /var/lib/libvirt/images
|
||||
|
||||
use python && python_optimize
|
||||
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# we only ever want to generate this once
|
||||
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
||||
rm -rf "${D}"/etc/libvirt/qemu/networks/default.xml
|
||||
fi
|
||||
|
||||
# We really don't want to use or support old PolicyKit cause it
|
||||
# screws with the new polkit integration
|
||||
if has_version sys-auth/policykit; then
|
||||
rm -rf "${D}"/usr/share/PolicyKit/policy/org.libvirt.unix.policy
|
||||
fi
|
||||
|
||||
# Only sysctl files ending in .conf work
|
||||
dodir /etc/sysctl.d
|
||||
mv "${D}"/usr/lib/sysctl.d/libvirtd.conf "${D}"/etc/sysctl.d/libvirtd.conf
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
||||
touch "${ROOT}"/etc/libvirt/qemu/networks/default.xml
|
||||
fi
|
||||
|
||||
# support for dropped privileges
|
||||
if use qemu; then
|
||||
fperms 0750 "${EROOT}/var/lib/libvirt/qemu"
|
||||
fperms 0750 "${EROOT}/var/cache/libvirt/qemu"
|
||||
fi
|
||||
|
||||
if use caps && use qemu; then
|
||||
fowners -R qemu:qemu "${EROOT}/var/lib/libvirt/qemu"
|
||||
fowners -R qemu:qemu "${EROOT}/var/cache/libvirt/qemu"
|
||||
elif use qemu; then
|
||||
fowners -R root:root "${EROOT}/var/lib/libvirt/qemu"
|
||||
fowners -R root:root "${EROOT}/var/cache/libvirt/qemu"
|
||||
fi
|
||||
|
||||
if ! use policykit; then
|
||||
elog "To allow normal users to connect to libvirtd you must change the"
|
||||
elog "unix sock group and/or perms in /etc/libvirt/libvirtd.conf"
|
||||
fi
|
||||
|
||||
use libvirtd || return 0
|
||||
# From here, only libvirtd-related instructions, be warned!
|
||||
|
||||
readme.gentoo_print_elog
|
||||
|
||||
if use caps && use qemu; then
|
||||
elog "libvirt will now start qemu/kvm VMs with non-root privileges."
|
||||
elog "Ensure any resources your VMs use are accessible by qemu:qemu"
|
||||
fi
|
||||
}
|
@ -1,433 +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/libvirt/libvirt-1.1.3.1.ebuild,v 1.2 2013/12/07 18:08:29 nimiux Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
#BACKPORTS=062ad8b2
|
||||
AUTOTOOLIZE=yes
|
||||
|
||||
MY_P="${P/_rc/-rc}"
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
|
||||
inherit eutils python-single-r1 user autotools linux-info systemd readme.gentoo
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
inherit git-2
|
||||
EGIT_REPO_URI="git://libvirt.org/libvirt.git"
|
||||
AUTOTOOLIZE=yes
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="http://libvirt.org/sources/stable_updates/${MY_P}.tar.gz
|
||||
ftp://libvirt.org/libvirt/${MY_P}.tar.gz
|
||||
${BACKPORTS:+
|
||||
http://dev.gentoo.org/~cardoe/distfiles/${MY_P}-${BACKPORTS}.tar.xz}"
|
||||
KEYWORDS="amd64 ~x86"
|
||||
fi
|
||||
S="${WORKDIR}/${P%_rc*}"
|
||||
|
||||
DESCRIPTION="C toolkit to manipulate virtual machines"
|
||||
HOMEPAGE="http://www.libvirt.org/"
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
IUSE="audit avahi +caps firewalld fuse iscsi +libvirtd lvm lxc +macvtap nfs \
|
||||
nls numa openvz parted pcap phyp policykit python +qemu rbd sasl \
|
||||
selinux +udev uml +vepa virtualbox virt-network xen elibc_glibc \
|
||||
systemd"
|
||||
REQUIRED_USE="libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) )
|
||||
lxc? ( caps libvirtd )
|
||||
openvz? ( libvirtd )
|
||||
qemu? ( libvirtd )
|
||||
uml? ( libvirtd )
|
||||
vepa? ( macvtap )
|
||||
virtualbox? ( libvirtd )
|
||||
xen? ( libvirtd )
|
||||
virt-network? ( libvirtd )
|
||||
firewalld? ( virt-network )
|
||||
python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
# gettext.sh command is used by the libvirt command wrappers, and it's
|
||||
# non-optional, so put it into RDEPEND.
|
||||
# We can use both libnl:1.1 and libnl:3, but if you have both installed, the
|
||||
# package will use 3 by default. Since we don't have slot pinning in an API,
|
||||
# we must go with the most recent
|
||||
RDEPEND="sys-libs/readline
|
||||
sys-libs/ncurses
|
||||
>=net-misc/curl-7.18.0
|
||||
dev-libs/libgcrypt
|
||||
>=dev-libs/libxml2-2.7.6
|
||||
dev-libs/libnl:3
|
||||
>=net-libs/gnutls-1.0.25
|
||||
net-libs/libssh2
|
||||
sys-apps/dmidecode
|
||||
>=sys-apps/util-linux-2.17
|
||||
sys-devel/gettext
|
||||
>=net-analyzer/netcat6-1.0-r2
|
||||
app-misc/scrub
|
||||
audit? ( sys-process/audit )
|
||||
avahi? ( >=net-dns/avahi-0.6[dbus] )
|
||||
caps? ( sys-libs/libcap-ng )
|
||||
fuse? ( >=sys-fs/fuse-2.8.6 )
|
||||
iscsi? ( sys-block/open-iscsi )
|
||||
lxc? ( sys-power/pm-utils )
|
||||
lvm? ( >=sys-fs/lvm2-2.02.48-r2 )
|
||||
nfs? ( net-fs/nfs-utils )
|
||||
numa? (
|
||||
>sys-process/numactl-2.0.2
|
||||
sys-process/numad
|
||||
)
|
||||
openvz? ( sys-kernel/openvz-sources )
|
||||
parted? (
|
||||
>=sys-block/parted-1.8[device-mapper]
|
||||
sys-fs/lvm2
|
||||
)
|
||||
pcap? ( >=net-libs/libpcap-1.0.0 )
|
||||
policykit? ( >=sys-auth/polkit-0.9 )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
qemu? (
|
||||
>=app-emulation/qemu-0.13.0
|
||||
dev-libs/yajl
|
||||
sys-power/pm-utils
|
||||
)
|
||||
rbd? ( sys-cluster/ceph )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
selinux? ( >=sys-libs/libselinux-2.0.85 )
|
||||
virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) )
|
||||
xen? ( app-emulation/xen-tools app-emulation/xen )
|
||||
udev? ( virtual/udev >=x11-libs/libpciaccess-0.10.9 )
|
||||
virt-network? ( net-dns/dnsmasq
|
||||
>=net-firewall/iptables-1.4.10
|
||||
net-misc/radvd
|
||||
net-firewall/ebtables
|
||||
sys-apps/iproute2[-minimal]
|
||||
firewalld? ( net-firewall/firewalld )
|
||||
)
|
||||
elibc_glibc? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) )"
|
||||
# one? ( dev-libs/xmlrpc-c )
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
app-text/xhtml1
|
||||
dev-lang/perl
|
||||
dev-libs/libxslt"
|
||||
|
||||
DOC_CONTENTS="For the basic networking support (bridged and routed networks)
|
||||
you don't need any extra software. For more complex network modes
|
||||
including but not limited to NATed network, you can enable the
|
||||
'virt-network' USE flag.\n\n
|
||||
If you are using dnsmasq on your system, you will have
|
||||
to configure /etc/dnsmasq.conf to enable the following settings:\n\n
|
||||
bind-interfaces\n
|
||||
interface or except-interface\n\n
|
||||
Otherwise you might have issues with your existing DNS server."
|
||||
|
||||
LXC_CONFIG_CHECK="
|
||||
~CGROUPS
|
||||
~CGROUP_FREEZER
|
||||
~CGROUP_DEVICE
|
||||
~CGROUP_CPUACCT
|
||||
~CGROUP_SCHED
|
||||
~CGROUP_PERF
|
||||
~BLK_CGROUP
|
||||
~NET_CLS_CGROUP
|
||||
~NETPRIO_CGROUP
|
||||
~CPUSETS
|
||||
~RESOURCE_COUNTERS
|
||||
~NAMESPACES
|
||||
~UTS_NS
|
||||
~IPC_NS
|
||||
~PID_NS
|
||||
~NET_NS
|
||||
~USER_NS
|
||||
~DEVPTS_MULTIPLE_INSTANCES
|
||||
~VETH
|
||||
~MACVLAN
|
||||
~POSIX_MQUEUE
|
||||
~SECURITYFS
|
||||
~!GRKERNSEC_CHROOT_MOUNT
|
||||
~!GRKERNSEC_CHROOT_DOUBLE
|
||||
~!GRKERNSEC_CHROOT_PIVOT
|
||||
~!GRKERNSEC_CHROOT_CHMOD
|
||||
~!GRKERNSEC_CHROOT_CAPS
|
||||
"
|
||||
|
||||
VIRTNET_CONFIG_CHECK="
|
||||
~BRIDGE_NF_EBTABLES
|
||||
~BRIDGE_EBT_MARK_T
|
||||
~NETFILTER_ADVANCED
|
||||
~NETFILTER_XT_TARGET_CHECKSUM
|
||||
~NETFILTER_XT_CONNMARK
|
||||
~NETFILTER_XT_MARK
|
||||
"
|
||||
|
||||
MACVTAP_CONFIG_CHECK=" ~MACVTAP"
|
||||
|
||||
LVM_CONFIG_CHECK=" ~BLK_DEV_DM ~DM_SNAPSHOT ~DM_MULTIPATH"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup qemu 77
|
||||
enewuser qemu 77 -1 -1 qemu kvm
|
||||
|
||||
# Some people used the masked ebuild which was not adding the qemu
|
||||
# user to the kvm group originally. This results in VMs failing to
|
||||
# start for some users. bug #430808
|
||||
egetent group kvm | grep -q qemu
|
||||
if [[ $? -ne 0 ]]; then
|
||||
gpasswd -a qemu kvm
|
||||
fi
|
||||
|
||||
python-single-r1_pkg_setup
|
||||
|
||||
# Handle specific kernel versions for different features
|
||||
kernel_is lt 3 6 && LXC_CONFIG_CHECK+=" ~CGROUP_MEM_RES_CTLR"
|
||||
kernel_is ge 3 6 && LXC_CONFIG_CHECK+=" ~MEMCG ~MEMCG_SWAP ~MEMCG_KMEM"
|
||||
|
||||
CONFIG_CHECK=""
|
||||
use fuse && CONFIG_CHECK+=" ~FUSE_FS"
|
||||
use lvm && CONFIG_CHECK+="${LVM_CONFIG_CHECK}"
|
||||
use lxc && CONFIG_CHECK+="${LXC_CONFIG_CHECK}"
|
||||
use macvtap && CONFIG_CHECK+="${MACVTAP_CONFIG_CHECK}"
|
||||
use virt-network && CONFIG_CHECK+="${VIRTNET_CONFIG_CHECK}"
|
||||
if [[ -n ${CONFIG_CHECK} ]]; then
|
||||
linux-info_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
touch "${S}/.mailmap"
|
||||
[[ -n ${BACKPORTS} ]] && \
|
||||
EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \
|
||||
epatch
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
|
||||
# git checkouts require bootstrapping to create the configure script.
|
||||
# Additionally the submodules must be cloned to the right locations
|
||||
# bug #377279
|
||||
./bootstrap || die "bootstrap failed"
|
||||
(
|
||||
git submodule status | sed 's/^[ +-]//;s/ .*//'
|
||||
git hash-object bootstrap.conf
|
||||
) >.git-module-status
|
||||
fi
|
||||
|
||||
epatch_user
|
||||
|
||||
[[ -n ${AUTOTOOLIZE} ]] && eautoreconf
|
||||
|
||||
# Tweak the init script
|
||||
local avahi_init=
|
||||
local iscsi_init=
|
||||
local rbd_init=
|
||||
local firewalld_init=
|
||||
cp "${FILESDIR}/libvirtd.init-r13" "${S}/libvirtd.init"
|
||||
use avahi && avahi_init='avahi-daemon'
|
||||
use iscsi && iscsi_init='iscsid'
|
||||
use rbd && rbd_init='ceph'
|
||||
use firewalld && firewalld_init='need firewalld'
|
||||
|
||||
sed -e "s/USE_FLAG_FIREWALLD/${firewalld_init}/" -i "${S}/libvirtd.init"
|
||||
sed -e "s/USE_FLAG_AVAHI/${avahi_init}/" -i "${S}/libvirtd.init"
|
||||
sed -e "s/USE_FLAG_ISCSI/${iscsi_init}/" -i "${S}/libvirtd.init"
|
||||
sed -e "s/USE_FLAG_RBD/${rbd_init}/" -i "${S}/libvirtd.init"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=""
|
||||
|
||||
## enable/disable daemon, otherwise client only utils
|
||||
myconf="${myconf} $(use_with libvirtd)"
|
||||
|
||||
## enable/disable the daemon using avahi to find VMs
|
||||
myconf="${myconf} $(use_with avahi)"
|
||||
|
||||
## hypervisors on the local host
|
||||
myconf="${myconf} $(use_with xen) $(use_with xen xen-inotify)"
|
||||
myconf+=" --without-xenapi"
|
||||
if use xen && has_version ">=app-emulation/xen-tools-4.2.0"; then
|
||||
myconf+=" --with-libxl"
|
||||
else
|
||||
myconf+=" --without-libxl"
|
||||
fi
|
||||
myconf="${myconf} $(use_with openvz)"
|
||||
myconf="${myconf} $(use_with lxc)"
|
||||
if use virtualbox && has_version app-emulation/virtualbox-ose; then
|
||||
myconf="${myconf} --with-vbox=/usr/lib/virtualbox-ose/"
|
||||
else
|
||||
myconf="${myconf} $(use_with virtualbox vbox)"
|
||||
fi
|
||||
myconf="${myconf} $(use_with uml)"
|
||||
myconf="${myconf} $(use_with qemu)"
|
||||
myconf="${myconf} $(use_with qemu yajl)" # Use QMP over HMP
|
||||
myconf="${myconf} $(use_with phyp)"
|
||||
myconf="${myconf} --with-esx"
|
||||
myconf="${myconf} --with-vmware"
|
||||
|
||||
## additional host drivers
|
||||
myconf="${myconf} $(use_with virt-network network)"
|
||||
myconf="${myconf} --with-storage-fs"
|
||||
myconf="${myconf} $(use_with lvm storage-lvm)"
|
||||
myconf="${myconf} $(use_with iscsi storage-iscsi)"
|
||||
myconf="${myconf} $(use_with parted storage-disk)"
|
||||
myconf="${myconf} $(use_with lvm storage-mpath)"
|
||||
myconf="${myconf} $(use_with rbd storage-rbd)"
|
||||
myconf="${myconf} $(use_with numa numactl)"
|
||||
myconf="${myconf} $(use_with numa numad)"
|
||||
myconf="${myconf} $(use_with selinux)"
|
||||
myconf="${myconf} $(use_with fuse)"
|
||||
|
||||
# udev for device support details
|
||||
myconf="${myconf} $(use_with udev)"
|
||||
|
||||
# linux capability support so we don't need privileged accounts
|
||||
myconf="${myconf} $(use_with caps capng)"
|
||||
|
||||
## auth stuff
|
||||
myconf="${myconf} $(use_with policykit polkit)"
|
||||
myconf="${myconf} $(use_with sasl)"
|
||||
|
||||
# network bits
|
||||
myconf="${myconf} $(use_with macvtap)"
|
||||
myconf="${myconf} $(use_with pcap libpcap)"
|
||||
myconf="${myconf} $(use_with vepa virtualport)"
|
||||
myconf="${myconf} $(use_with firewalld)"
|
||||
|
||||
## other
|
||||
myconf="${myconf} $(use_enable nls)"
|
||||
myconf="${myconf} $(use_with python)"
|
||||
|
||||
# user privilege bits fir qemu/kvm
|
||||
if use caps; then
|
||||
myconf="${myconf} --with-qemu-user=qemu"
|
||||
myconf="${myconf} --with-qemu-group=qemu"
|
||||
else
|
||||
myconf="${myconf} --with-qemu-user=root"
|
||||
myconf="${myconf} --with-qemu-group=root"
|
||||
fi
|
||||
|
||||
# audit support
|
||||
myconf="${myconf} $(use_with audit)"
|
||||
|
||||
## stuff we don't yet support
|
||||
myconf="${myconf} --without-netcf"
|
||||
|
||||
# we use udev over hal
|
||||
myconf="${myconf} --without-hal"
|
||||
|
||||
# locking support
|
||||
myconf="${myconf} --without-sanlock"
|
||||
|
||||
# systemd unit files
|
||||
use systemd && myconf="${myconf} --with-init-script=systemd"
|
||||
|
||||
# this is a nasty trick to work around the problem in bug
|
||||
# #275073. The reason why we don't solve this properly is that
|
||||
# it'll require us to rebuild autotools (and we don't really want
|
||||
# to do that right now). The proper solution has been sent
|
||||
# upstream and should hopefully land in 0.7.7, in the mean time,
|
||||
# mime the same functionality with this.
|
||||
case ${CHOST} in
|
||||
*cygwin* | *mingw* )
|
||||
;;
|
||||
*)
|
||||
ac_cv_prog_WINDRES=no
|
||||
;;
|
||||
esac
|
||||
|
||||
econf \
|
||||
${myconf} \
|
||||
--disable-static \
|
||||
--docdir=/usr/share/doc/${PF} \
|
||||
--with-remote \
|
||||
--localstatedir=/var
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
# Restore gnulib's config.sub and config.guess
|
||||
# bug #377279
|
||||
(cd .gnulib && git reset --hard > /dev/null)
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Explicitly allow parallel build of tests
|
||||
export VIR_TEST_DEBUG=1
|
||||
HOME="${T}" emake check || die "tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake install \
|
||||
DESTDIR="${D}" \
|
||||
HTML_DIR=/usr/share/doc/${PF}/html \
|
||||
DOCS_DIR=/usr/share/doc/${PF} \
|
||||
EXAMPLE_DIR=/usr/share/doc/${PF}/examples \
|
||||
SYSTEMD_UNIT_DIR="$(systemd_get_unitdir)" \
|
||||
|| die "emake install failed"
|
||||
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
|
||||
use libvirtd || return 0
|
||||
# From here, only libvirtd-related instructions, be warned!
|
||||
|
||||
newinitd "${S}/libvirtd.init" libvirtd || die
|
||||
newconfd "${FILESDIR}/libvirtd.confd-r4" libvirtd || die
|
||||
newinitd "${FILESDIR}/virtlockd.init" virtlockd || die
|
||||
|
||||
keepdir /var/lib/libvirt/images
|
||||
|
||||
use python && python_optimize
|
||||
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# we only ever want to generate this once
|
||||
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
||||
rm -rf "${D}"/etc/libvirt/qemu/networks/default.xml
|
||||
fi
|
||||
|
||||
# We really don't want to use or support old PolicyKit cause it
|
||||
# screws with the new polkit integration
|
||||
if has_version sys-auth/policykit; then
|
||||
rm -rf "${D}"/usr/share/PolicyKit/policy/org.libvirt.unix.policy
|
||||
fi
|
||||
|
||||
# Only sysctl files ending in .conf work
|
||||
dodir /etc/sysctl.d
|
||||
mv "${D}"/usr/lib/sysctl.d/libvirtd.conf "${D}"/etc/sysctl.d/libvirtd.conf
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
||||
touch "${ROOT}"/etc/libvirt/qemu/networks/default.xml
|
||||
fi
|
||||
|
||||
# support for dropped privileges
|
||||
if use qemu; then
|
||||
fperms 0750 "${EROOT}/var/lib/libvirt/qemu"
|
||||
fperms 0750 "${EROOT}/var/cache/libvirt/qemu"
|
||||
fi
|
||||
|
||||
if use caps && use qemu; then
|
||||
fowners -R qemu:qemu "${EROOT}/var/lib/libvirt/qemu"
|
||||
fowners -R qemu:qemu "${EROOT}/var/cache/libvirt/qemu"
|
||||
elif use qemu; then
|
||||
fowners -R root:root "${EROOT}/var/lib/libvirt/qemu"
|
||||
fowners -R root:root "${EROOT}/var/cache/libvirt/qemu"
|
||||
fi
|
||||
|
||||
if ! use policykit; then
|
||||
elog "To allow normal users to connect to libvirtd you must change the"
|
||||
elog "unix sock group and/or perms in /etc/libvirt/libvirtd.conf"
|
||||
fi
|
||||
|
||||
use libvirtd || return 0
|
||||
# From here, only libvirtd-related instructions, be warned!
|
||||
|
||||
readme.gentoo_print_elog
|
||||
|
||||
if use caps && use qemu; then
|
||||
elog "libvirt will now start qemu/kvm VMs with non-root privileges."
|
||||
elog "Ensure any resources your VMs use are accessible by qemu:qemu"
|
||||
fi
|
||||
}
|
@ -1,426 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/libvirt-1.2.0-r1.ebuild,v 1.3 2014/01/22 18:27:36 ago Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
BACKPORTS=36378d1a
|
||||
AUTOTOOLIZE=yes
|
||||
|
||||
MY_P="${P/_rc/-rc}"
|
||||
|
||||
inherit eutils user autotools linux-info systemd readme.gentoo
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
inherit git-2
|
||||
EGIT_REPO_URI="git://libvirt.org/libvirt.git"
|
||||
AUTOTOOLIZE=yes
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="http://libvirt.org/sources/${MY_P}.tar.gz
|
||||
ftp://libvirt.org/libvirt/${MY_P}.tar.gz
|
||||
${BACKPORTS:+
|
||||
http://dev.gentoo.org/~cardoe/distfiles/${MY_P}-${BACKPORTS}.tar.xz}"
|
||||
KEYWORDS="amd64 x86"
|
||||
fi
|
||||
S="${WORKDIR}/${P%_rc*}"
|
||||
|
||||
DESCRIPTION="C toolkit to manipulate virtual machines"
|
||||
HOMEPAGE="http://www.libvirt.org/"
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0/${PV}"
|
||||
IUSE="audit avahi +caps firewalld fuse iscsi +libvirtd lvm lxc +macvtap nfs \
|
||||
nls numa openvz parted pcap phyp policykit +qemu rbd sasl \
|
||||
selinux +udev uml +vepa virtualbox virt-network xen elibc_glibc \
|
||||
systemd"
|
||||
REQUIRED_USE="libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) )
|
||||
lxc? ( caps libvirtd )
|
||||
openvz? ( libvirtd )
|
||||
qemu? ( libvirtd )
|
||||
uml? ( libvirtd )
|
||||
vepa? ( macvtap )
|
||||
virtualbox? ( libvirtd )
|
||||
xen? ( libvirtd )
|
||||
virt-network? ( libvirtd )
|
||||
firewalld? ( virt-network )"
|
||||
|
||||
# gettext.sh command is used by the libvirt command wrappers, and it's
|
||||
# non-optional, so put it into RDEPEND.
|
||||
# We can use both libnl:1.1 and libnl:3, but if you have both installed, the
|
||||
# package will use 3 by default. Since we don't have slot pinning in an API,
|
||||
# we must go with the most recent
|
||||
RDEPEND="sys-libs/readline
|
||||
sys-libs/ncurses
|
||||
>=net-misc/curl-7.18.0
|
||||
dev-libs/libgcrypt
|
||||
>=dev-libs/libxml2-2.7.6
|
||||
dev-libs/libnl:3
|
||||
>=net-libs/gnutls-1.0.25
|
||||
net-libs/libssh2
|
||||
sys-apps/dmidecode
|
||||
>=sys-apps/util-linux-2.17
|
||||
sys-devel/gettext
|
||||
>=net-analyzer/netcat6-1.0-r2
|
||||
app-misc/scrub
|
||||
audit? ( sys-process/audit )
|
||||
avahi? ( >=net-dns/avahi-0.6[dbus] )
|
||||
caps? ( sys-libs/libcap-ng )
|
||||
fuse? ( >=sys-fs/fuse-2.8.6 )
|
||||
iscsi? ( sys-block/open-iscsi )
|
||||
lxc? ( sys-power/pm-utils )
|
||||
lvm? ( >=sys-fs/lvm2-2.02.48-r2 )
|
||||
nfs? ( net-fs/nfs-utils )
|
||||
numa? (
|
||||
>sys-process/numactl-2.0.2
|
||||
sys-process/numad
|
||||
)
|
||||
openvz? ( sys-kernel/openvz-sources )
|
||||
parted? (
|
||||
>=sys-block/parted-1.8[device-mapper]
|
||||
sys-fs/lvm2
|
||||
)
|
||||
pcap? ( >=net-libs/libpcap-1.0.0 )
|
||||
policykit? ( >=sys-auth/polkit-0.9 )
|
||||
qemu? (
|
||||
>=app-emulation/qemu-0.13.0
|
||||
dev-libs/yajl
|
||||
sys-power/pm-utils
|
||||
)
|
||||
rbd? ( sys-cluster/ceph )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
selinux? ( >=sys-libs/libselinux-2.0.85 )
|
||||
virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) )
|
||||
xen? ( app-emulation/xen-tools app-emulation/xen )
|
||||
udev? ( virtual/udev >=x11-libs/libpciaccess-0.10.9 )
|
||||
virt-network? ( net-dns/dnsmasq
|
||||
>=net-firewall/iptables-1.4.10
|
||||
net-misc/radvd
|
||||
net-firewall/ebtables
|
||||
sys-apps/iproute2[-minimal]
|
||||
firewalld? ( net-firewall/firewalld )
|
||||
)
|
||||
elibc_glibc? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) )"
|
||||
# one? ( dev-libs/xmlrpc-c )
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
app-text/xhtml1
|
||||
dev-lang/perl
|
||||
dev-libs/libxslt"
|
||||
|
||||
DOC_CONTENTS="For the basic networking support (bridged and routed networks)
|
||||
you don't need any extra software. For more complex network modes
|
||||
including but not limited to NATed network, you can enable the
|
||||
'virt-network' USE flag.\n\n
|
||||
If you are using dnsmasq on your system, you will have
|
||||
to configure /etc/dnsmasq.conf to enable the following settings:\n\n
|
||||
bind-interfaces\n
|
||||
interface or except-interface\n\n
|
||||
Otherwise you might have issues with your existing DNS server."
|
||||
|
||||
LXC_CONFIG_CHECK="
|
||||
~CGROUPS
|
||||
~CGROUP_FREEZER
|
||||
~CGROUP_DEVICE
|
||||
~CGROUP_CPUACCT
|
||||
~CGROUP_SCHED
|
||||
~CGROUP_PERF
|
||||
~BLK_CGROUP
|
||||
~NET_CLS_CGROUP
|
||||
~NETPRIO_CGROUP
|
||||
~CPUSETS
|
||||
~RESOURCE_COUNTERS
|
||||
~NAMESPACES
|
||||
~UTS_NS
|
||||
~IPC_NS
|
||||
~PID_NS
|
||||
~NET_NS
|
||||
~USER_NS
|
||||
~DEVPTS_MULTIPLE_INSTANCES
|
||||
~VETH
|
||||
~MACVLAN
|
||||
~POSIX_MQUEUE
|
||||
~SECURITYFS
|
||||
~!GRKERNSEC_CHROOT_MOUNT
|
||||
~!GRKERNSEC_CHROOT_DOUBLE
|
||||
~!GRKERNSEC_CHROOT_PIVOT
|
||||
~!GRKERNSEC_CHROOT_CHMOD
|
||||
~!GRKERNSEC_CHROOT_CAPS
|
||||
"
|
||||
|
||||
VIRTNET_CONFIG_CHECK="
|
||||
~BRIDGE_NF_EBTABLES
|
||||
~BRIDGE_EBT_MARK_T
|
||||
~NETFILTER_ADVANCED
|
||||
~NETFILTER_XT_TARGET_CHECKSUM
|
||||
~NETFILTER_XT_CONNMARK
|
||||
~NETFILTER_XT_MARK
|
||||
"
|
||||
|
||||
MACVTAP_CONFIG_CHECK=" ~MACVTAP"
|
||||
|
||||
LVM_CONFIG_CHECK=" ~BLK_DEV_DM ~DM_SNAPSHOT ~DM_MULTIPATH"
|
||||
|
||||
ERROR_USER_NS="Optional depending on LXC configuration."
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup qemu 77
|
||||
enewuser qemu 77 -1 -1 qemu kvm
|
||||
|
||||
# Some people used the masked ebuild which was not adding the qemu
|
||||
# user to the kvm group originally. This results in VMs failing to
|
||||
# start for some users. bug #430808
|
||||
egetent group kvm | grep -q qemu
|
||||
if [[ $? -ne 0 ]]; then
|
||||
gpasswd -a qemu kvm
|
||||
fi
|
||||
|
||||
# Handle specific kernel versions for different features
|
||||
kernel_is lt 3 6 && LXC_CONFIG_CHECK+=" ~CGROUP_MEM_RES_CTLR"
|
||||
kernel_is ge 3 6 && LXC_CONFIG_CHECK+=" ~MEMCG ~MEMCG_SWAP ~MEMCG_KMEM"
|
||||
|
||||
CONFIG_CHECK=""
|
||||
use fuse && CONFIG_CHECK+=" ~FUSE_FS"
|
||||
use lvm && CONFIG_CHECK+="${LVM_CONFIG_CHECK}"
|
||||
use lxc && CONFIG_CHECK+="${LXC_CONFIG_CHECK}"
|
||||
use macvtap && CONFIG_CHECK+="${MACVTAP_CONFIG_CHECK}"
|
||||
use virt-network && CONFIG_CHECK+="${VIRTNET_CONFIG_CHECK}"
|
||||
if [[ -n ${CONFIG_CHECK} ]]; then
|
||||
linux-info_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
touch "${S}/.mailmap"
|
||||
[[ -n ${BACKPORTS} ]] && \
|
||||
EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \
|
||||
epatch
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
|
||||
# git checkouts require bootstrapping to create the configure script.
|
||||
# Additionally the submodules must be cloned to the right locations
|
||||
# bug #377279
|
||||
./bootstrap || die "bootstrap failed"
|
||||
(
|
||||
git submodule status | sed 's/^[ +-]//;s/ .*//'
|
||||
git hash-object bootstrap.conf
|
||||
) >.git-module-status
|
||||
fi
|
||||
|
||||
epatch_user
|
||||
|
||||
[[ -n ${AUTOTOOLIZE} ]] && eautoreconf
|
||||
|
||||
# Tweak the init script
|
||||
local avahi_init=
|
||||
local iscsi_init=
|
||||
local rbd_init=
|
||||
local firewalld_init=
|
||||
cp "${FILESDIR}/libvirtd.init-r13" "${S}/libvirtd.init"
|
||||
use avahi && avahi_init='avahi-daemon'
|
||||
use iscsi && iscsi_init='iscsid'
|
||||
use rbd && rbd_init='ceph'
|
||||
use firewalld && firewalld_init='need firewalld'
|
||||
|
||||
sed -e "s/USE_FLAG_FIREWALLD/${firewalld_init}/" -i "${S}/libvirtd.init"
|
||||
sed -e "s/USE_FLAG_AVAHI/${avahi_init}/" -i "${S}/libvirtd.init"
|
||||
sed -e "s/USE_FLAG_ISCSI/${iscsi_init}/" -i "${S}/libvirtd.init"
|
||||
sed -e "s/USE_FLAG_RBD/${rbd_init}/" -i "${S}/libvirtd.init"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=""
|
||||
|
||||
## enable/disable daemon, otherwise client only utils
|
||||
myconf="${myconf} $(use_with libvirtd)"
|
||||
|
||||
## enable/disable the daemon using avahi to find VMs
|
||||
myconf="${myconf} $(use_with avahi)"
|
||||
|
||||
## hypervisors on the local host
|
||||
myconf="${myconf} $(use_with xen) $(use_with xen xen-inotify)"
|
||||
myconf+=" --without-xenapi"
|
||||
if use xen && has_version ">=app-emulation/xen-tools-4.2.0"; then
|
||||
myconf+=" --with-libxl"
|
||||
else
|
||||
myconf+=" --without-libxl"
|
||||
fi
|
||||
myconf="${myconf} $(use_with openvz)"
|
||||
myconf="${myconf} $(use_with lxc)"
|
||||
if use virtualbox && has_version app-emulation/virtualbox-ose; then
|
||||
myconf="${myconf} --with-vbox=/usr/lib/virtualbox-ose/"
|
||||
else
|
||||
myconf="${myconf} $(use_with virtualbox vbox)"
|
||||
fi
|
||||
myconf="${myconf} $(use_with uml)"
|
||||
myconf="${myconf} $(use_with qemu)"
|
||||
myconf="${myconf} $(use_with qemu yajl)" # Use QMP over HMP
|
||||
myconf="${myconf} $(use_with phyp)"
|
||||
myconf="${myconf} --with-esx"
|
||||
myconf="${myconf} --with-vmware"
|
||||
|
||||
## additional host drivers
|
||||
myconf="${myconf} $(use_with virt-network network)"
|
||||
myconf="${myconf} --with-storage-fs"
|
||||
myconf="${myconf} $(use_with lvm storage-lvm)"
|
||||
myconf="${myconf} $(use_with iscsi storage-iscsi)"
|
||||
myconf="${myconf} $(use_with parted storage-disk)"
|
||||
myconf="${myconf} $(use_with lvm storage-mpath)"
|
||||
myconf="${myconf} $(use_with rbd storage-rbd)"
|
||||
myconf="${myconf} $(use_with numa numactl)"
|
||||
myconf="${myconf} $(use_with numa numad)"
|
||||
myconf="${myconf} $(use_with selinux)"
|
||||
myconf="${myconf} $(use_with fuse)"
|
||||
|
||||
# udev for device support details
|
||||
myconf="${myconf} $(use_with udev)"
|
||||
|
||||
# linux capability support so we don't need privileged accounts
|
||||
myconf="${myconf} $(use_with caps capng)"
|
||||
|
||||
## auth stuff
|
||||
myconf="${myconf} $(use_with policykit polkit)"
|
||||
myconf="${myconf} $(use_with sasl)"
|
||||
|
||||
# network bits
|
||||
myconf="${myconf} $(use_with macvtap)"
|
||||
myconf="${myconf} $(use_with pcap libpcap)"
|
||||
myconf="${myconf} $(use_with vepa virtualport)"
|
||||
myconf="${myconf} $(use_with firewalld)"
|
||||
|
||||
## other
|
||||
myconf="${myconf} $(use_enable nls)"
|
||||
|
||||
# user privilege bits fir qemu/kvm
|
||||
if use caps; then
|
||||
myconf="${myconf} --with-qemu-user=qemu"
|
||||
myconf="${myconf} --with-qemu-group=qemu"
|
||||
else
|
||||
myconf="${myconf} --with-qemu-user=root"
|
||||
myconf="${myconf} --with-qemu-group=root"
|
||||
fi
|
||||
|
||||
# audit support
|
||||
myconf="${myconf} $(use_with audit)"
|
||||
|
||||
## stuff we don't yet support
|
||||
myconf="${myconf} --without-netcf"
|
||||
|
||||
# we use udev over hal
|
||||
myconf="${myconf} --without-hal"
|
||||
|
||||
# locking support
|
||||
myconf="${myconf} --without-sanlock"
|
||||
|
||||
# systemd unit files
|
||||
use systemd && myconf="${myconf} --with-init-script=systemd"
|
||||
|
||||
# this is a nasty trick to work around the problem in bug
|
||||
# #275073. The reason why we don't solve this properly is that
|
||||
# it'll require us to rebuild autotools (and we don't really want
|
||||
# to do that right now). The proper solution has been sent
|
||||
# upstream and should hopefully land in 0.7.7, in the mean time,
|
||||
# mime the same functionality with this.
|
||||
case ${CHOST} in
|
||||
*cygwin* | *mingw* )
|
||||
;;
|
||||
*)
|
||||
ac_cv_prog_WINDRES=no
|
||||
;;
|
||||
esac
|
||||
|
||||
econf \
|
||||
${myconf} \
|
||||
--disable-static \
|
||||
--docdir=/usr/share/doc/${PF} \
|
||||
--with-remote \
|
||||
--localstatedir=/var
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
# Restore gnulib's config.sub and config.guess
|
||||
# bug #377279
|
||||
(cd .gnulib && git reset --hard > /dev/null)
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Explicitly allow parallel build of tests
|
||||
export VIR_TEST_DEBUG=1
|
||||
HOME="${T}" emake check || die "tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake install \
|
||||
DESTDIR="${D}" \
|
||||
HTML_DIR=/usr/share/doc/${PF}/html \
|
||||
DOCS_DIR=/usr/share/doc/${PF} \
|
||||
EXAMPLE_DIR=/usr/share/doc/${PF}/examples \
|
||||
SYSTEMD_UNIT_DIR="$(systemd_get_unitdir)" \
|
||||
|| die "emake install failed"
|
||||
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
|
||||
use libvirtd || return 0
|
||||
# From here, only libvirtd-related instructions, be warned!
|
||||
|
||||
newinitd "${S}/libvirtd.init" libvirtd || die
|
||||
newconfd "${FILESDIR}/libvirtd.confd-r4" libvirtd || die
|
||||
newinitd "${FILESDIR}/virtlockd.init" virtlockd || die
|
||||
|
||||
keepdir /var/lib/libvirt/images
|
||||
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# we only ever want to generate this once
|
||||
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
||||
rm -rf "${D}"/etc/libvirt/qemu/networks/default.xml
|
||||
fi
|
||||
|
||||
# We really don't want to use or support old PolicyKit cause it
|
||||
# screws with the new polkit integration
|
||||
if has_version sys-auth/policykit; then
|
||||
rm -rf "${D}"/usr/share/PolicyKit/policy/org.libvirt.unix.policy
|
||||
fi
|
||||
|
||||
# Only sysctl files ending in .conf work
|
||||
dodir /etc/sysctl.d
|
||||
mv "${D}"/usr/lib/sysctl.d/libvirtd.conf "${D}"/etc/sysctl.d/libvirtd.conf
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
||||
touch "${ROOT}"/etc/libvirt/qemu/networks/default.xml
|
||||
fi
|
||||
|
||||
# support for dropped privileges
|
||||
if use qemu; then
|
||||
fperms 0750 "${EROOT}/var/lib/libvirt/qemu"
|
||||
fperms 0750 "${EROOT}/var/cache/libvirt/qemu"
|
||||
fi
|
||||
|
||||
if use caps && use qemu; then
|
||||
fowners -R qemu:qemu "${EROOT}/var/lib/libvirt/qemu"
|
||||
fowners -R qemu:qemu "${EROOT}/var/cache/libvirt/qemu"
|
||||
elif use qemu; then
|
||||
fowners -R root:root "${EROOT}/var/lib/libvirt/qemu"
|
||||
fowners -R root:root "${EROOT}/var/cache/libvirt/qemu"
|
||||
fi
|
||||
|
||||
if ! use policykit; then
|
||||
elog "To allow normal users to connect to libvirtd you must change the"
|
||||
elog "unix sock group and/or perms in /etc/libvirt/libvirtd.conf"
|
||||
fi
|
||||
|
||||
use libvirtd || return 0
|
||||
# From here, only libvirtd-related instructions, be warned!
|
||||
|
||||
readme.gentoo_print_elog
|
||||
|
||||
if use caps && use qemu; then
|
||||
elog "libvirt will now start qemu/kvm VMs with non-root privileges."
|
||||
elog "Ensure any resources your VMs use are accessible by qemu:qemu"
|
||||
fi
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST xmind-icons.tar.xz 5024 SHA256 6a5e087c5c66aa6f36b7822268b486922157e3b75a091b6fbdeec905607b8aa5 SHA512 3ee6b8e42b75305bec8f97f733575f10ca3d08e1c5a76a10700776cb7740ae6f8a0f3dfbc4112d60ab2499915ca4ea0e3d56fd49e55bec00fccdc8710d9f9f0d WHIRLPOOL 590571a8b950ff6200d92417ab7eede2a8856263bc07c00fb129d751d9a00ae9bab69d916aab2f04d8270eadb0466723e99570032eacabd7350afd3cca4b8f23
|
||||
DIST xmind-portable-3.3.1.201212250029.zip 87936800 SHA256 5cbb9ad6d0e25ef350738fcd781818add76e36694fa0ede00d725658126cb810 SHA512 ffca509f86182c1693a4ab01cd36e7e8e1642813880db8afbd11b4ca6fb78fc7015b8aca5e5add9e3d8e430897a24a981361fb14fe406f30229180dfa0009016 WHIRLPOOL 5357ac3c9042086d8cd0f2746341dbb888e112e3becb9e5ae1371900f610a008f7a1c41fbb0597b40ada75fc3b33d0a4814c4868f54fd71b305eee66f868f940
|
||||
DIST xmind-portable-3.4.0.201311050558.zip 138263189 SHA256 5ab6a2b5d4e445e9e373f9807c8616de4537911862397fe99eb9dafd5a4cf70f SHA512 1fd31a0842ffcdc967b2277e2d7d4da73d501e11ab3596d1af86ac934981f931215d725c60af6a43a10345c134f611b430a920b957ef27fe1ce51aaa49269a91 WHIRLPOOL a6a28104bbe30b8fb259f8217cc2f767d00820368a02520583687862d11db6b284635ddaf8c94b57542d3b0a3741660ba74969b08a9eb18f11702eb6cf0432bb
|
||||
DIST xmind-portable-3.4.1.201401221918.zip 138440913 SHA256 f70b8317ec0fe512e507bc26cc7fed70348af3c1d8c17603a78359175fc01261 SHA512 06d6473b26a0eef97d6651d14c13d7fd28fda19b33b2aea4f924d2e0f0d3131f19d5b64e081ba0d537c44eb09e27a83596aca91156bd32c5377903fbb7da9804 WHIRLPOOL 2601e8f293ef97d12576a461bb3b7a8e68bf6a4f807f780b9e6b7a12c20030bc979f61cf1f76f6deb617c57aa2c16e8d35621e66c5df825f8800ca38304d8ee0
|
||||
|
@ -0,0 +1,89 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/xmind/xmind-3.4.1.201401221918.ebuild,v 1.1 2014/01/27 23:42:07 creffett Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils multilib gnome2-utils
|
||||
|
||||
MY_PN="${PN}-portable"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="A brainstorming and mind mapping software tool"
|
||||
HOMEPAGE="http://www.xmind.net"
|
||||
SRC_URI="http://dl2.xmind.net/xmind-downloads/${MY_P}.zip
|
||||
http://dev.gentoo.org/~creffett/distfiles/xmind-icons.tar.xz"
|
||||
LICENSE="EPL-1.0 LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
>=virtual/jre-1.5
|
||||
x11-libs/gtk+:2
|
||||
"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
QA_PRESTRIPPED="opt/xmind/XMind/libcairo-swt.so"
|
||||
QA_FLAGS_IGNORED="
|
||||
opt/xmind/Commons/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120522-1813/eclipse_1502.so
|
||||
opt/xmind/Commons/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.v20120522-1813/eclipse_1502.so
|
||||
opt/xmind/XMind/libcairo-swt.so
|
||||
opt/xmind/XMind/XMind
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
if use amd64; then
|
||||
XDIR="XMind_Linux_64bit"
|
||||
else
|
||||
XDIR="XMind_Linux"
|
||||
fi
|
||||
mv "$XDIR" XMind || die
|
||||
mv XMind/.eclipseproduct Commons || die
|
||||
cp "${FILESDIR}"/${PN}-3.4.0-config.ini Commons/configuration || die #Combined common+linux config.ini
|
||||
# force data instance & config area to be at home/.xmind directory
|
||||
sed -i -e '/-configuration/d' \
|
||||
-e '/\.\/configuration/d' \
|
||||
-e '/-data/d' \
|
||||
-e '/\.\.\/Commons\/data\/workspace-cathy/d' \
|
||||
-e 's/\.\.\/Commons/\/opt\/xmind\/Commons/g' XMind/XMind.ini || die
|
||||
echo '-Dosgi.instance.area=@user.home/.xmind/workspace-cathy' >> XMind/XMind.ini || die
|
||||
echo '-Dosgi.configuration.area=@user.home/.xmind/configuration-cathy' >> XMind/XMind.ini || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
:
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /opt/xmind
|
||||
doins -r Commons XMind || die
|
||||
fperms a+rx "/opt/xmind/XMind/XMind"
|
||||
|
||||
dodir /opt/bin
|
||||
exeinto /opt/bin
|
||||
newexe "${FILESDIR}/xmind-wrapper" xmind
|
||||
|
||||
# install icons
|
||||
local res
|
||||
for res in 16 32 48; do
|
||||
newicon -s ${res} "${WORKDIR}/xmind-icons/xmind.${res}.png" xmind.png
|
||||
done
|
||||
|
||||
# make desktop entry
|
||||
make_desktop_entry "xmind %F" XMind xmind Office "MimeType=application/x-xmind;"
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_icon_cache_update
|
||||
elog "For audio notes support, install media-sound/lame"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
}
|
@ -1,12 +1,24 @@
|
||||
DIST amd64-debug-libreoffice-4.1.3.2-r3.tar.xz 953429084 SHA256 1848b0171040b8c1f41d0dbf7a601dafa1cc17368e2d1dc8a3250ea93b6ccd82 SHA512 febc024ed3a8998f1e42ff2d12787c3c23612c7716f4d83884eb4b3e39ec380700e2f4f5e25313993c1d7bae2999c656fd3c67982ba7d7291fc790d9fde0ac23 WHIRLPOOL 8bc4e005c76ef33507b54802d46e96248ad137328c52c0411b65bf1f2895c7ff3c23cf71b16bff6483988734d6958b31fec018eff8e91685630c312020691502
|
||||
DIST amd64-debug-libreoffice-4.1.3.2-r3.tar.xz 953429084 SHA256 1848b0171040b8c1f41d0dbf7a601dafa1cc17368e2d1dc8a3250ea93b6ccd82 SHA512 febc024ed3a8998f1e42ff2d12787c3c23612c7716f4d83884eb4b3e39ec380700e2f4f5e25313993c1d7bae2999c656fd3c67982ba7d7291fc790d9fde0ac23 WHIRLPOOL 57d5e3233c53517b862f987851ee503b61414774426566f9d945dd42792520a062855d0319bc10dfe2a24fd5583c455142c1be4fff7c8369969b0f2578d7a62d
|
||||
DIST amd64-debug-libreoffice-4.1.4.2.tar.xz 953584944 SHA256 d3f0efc1c6f1e5257f908bbf01ca32ed98a33cb8a6a6c017f43d4b0339d4c899 SHA512 f7fee68c905a51cd60c948abe02c7640ec0c67e83459652535a2c43f906494dcd5cd5e1f64fa1c7d87d2249d9963f68722461a43975ac469d3496c05852739fe WHIRLPOOL ea7d07643eb3416e9c7f1a7eb2222795dd5c27bb5d236f07c8b181191909dbd39635cc2d00e7f9d657c5453fd0767fb6cccc7dbc8f19dc87fadaaeaa5f39c6e4
|
||||
DIST amd64-debug-libreoffice-gnome-4.1.3.2-r3.xd3 245058778 SHA256 bc1b7570b9a2b640a618999de88bf1dee49a055dfa666badd71de9eeea051fac SHA512 c1c180abeaf9221b20fe642be94c6446001511463ce12d5457886c1cdc8914864e76294d21e6ad7c9a6e0ef54e8fbf9627f71b160a083a36dbf4b51581d429a4 WHIRLPOOL 80c6d23bf8f268f2082dab243a7746d4ce0fb6018d59b34072461e45df51b8086fdaa3d16149cfb6a8d4ebe4075012b8b1e0a5ff52dae08fd75b789ba83bb31b
|
||||
DIST amd64-debug-libreoffice-gnome-java-4.1.3.2-r3.xd3 641166772 SHA256 175e9392a5e24478aa083c4148783680740289a95b352b7624748721c36b0a62 SHA512 99c7537414a4e7e56aec3249c62df30d630a660fc9ea8654a1c28824fd3e50585011d51002dfd6211ecad2422a9cd0a42e7a9978252e4d4992bbaa6c283f0633 WHIRLPOOL 564e48c48438158d22efea1ded6d5044e3e75af0e4b4ea40eab186b47c7d48f4f0b3939cea4117bb7242300683c3fd5ecca17d6e31338af6c9e7842489c0dcd7
|
||||
DIST amd64-debug-libreoffice-java-4.1.3.2-r3.xd3 638572430 SHA256 ccaf6f26275f0e707b1adc3c7539d2a60f64e8ce23a35fc25ef48b3351a39e6a SHA512 2a22a034436d25f993617bbf01109c98ef8853ab76ab3516335bd2163c7120e0a3f22386f0a6cbf5a3709e19844cabdaade24a2e75f09cd57c311d5d4087ed5f WHIRLPOOL dc9b78a40b779f9b2e5f69db3442369a8fe4452d27e9650a99022c0e5b505c9a066ee3df448bc9558a2a1fd9287363ef44bdd1376fa894cd63ceff9a9b463aeb
|
||||
DIST amd64-debug-libreoffice-gnome-4.1.4.2.xd3 244880120 SHA256 76829716c34ce966778d326844dc829c2ce788ea7cadb3614491b1191f0b34e3 SHA512 af01b288c1e5d01f575498294fad2311992b6666ad73f075d8c574055017439e1c002873c5688ad5e4a2ccf23e96160f5177bd0502fc0d05465753a89557af82 WHIRLPOOL fc2e67988658036f21ea5173f3e3a63fa59e2461496e0a44540dfeb47fceef75f866e64ed9db146605577c2e0c8cb25cc09e0d1cb7e3b0d76178f3bddc146a0b
|
||||
DIST amd64-debug-libreoffice-gnome-java-4.1.3.2-r3.xd3 641166772 SHA256 175e9392a5e24478aa083c4148783680740289a95b352b7624748721c36b0a62 SHA512 99c7537414a4e7e56aec3249c62df30d630a660fc9ea8654a1c28824fd3e50585011d51002dfd6211ecad2422a9cd0a42e7a9978252e4d4992bbaa6c283f0633 WHIRLPOOL 26d838891b25f4660ad9d4dc33452ee285799809f4e904c115265bd01305b6bfa177219df9284efda13906a4fbd3507445dbbe08a16fd38c046f7a31d814a468
|
||||
DIST amd64-debug-libreoffice-gnome-java-4.1.4.2.xd3 644389298 SHA256 73253f968159f1f93e904e0af76c2231aa03b0204318032d89b76e995c4b3f35 SHA512 90ba5880d03b50037f6610c386a827004cf67af64b4ee57c01569fbe6126f37064d9beaa6470235b74cdf6b9ff2fe96bb41ac81d6b6fadcbbb94f77aeea487b5 WHIRLPOOL 8805e2bc307c07a902aeba83ef1f59f758c2e112d56e477be0af8dc3749172294636e0cae4949682c47cd2d4151e20cb989ea53782a8d6a6aa2017a5ba6d72e3
|
||||
DIST amd64-debug-libreoffice-java-4.1.3.2-r3.xd3 638572430 SHA256 ccaf6f26275f0e707b1adc3c7539d2a60f64e8ce23a35fc25ef48b3351a39e6a SHA512 2a22a034436d25f993617bbf01109c98ef8853ab76ab3516335bd2163c7120e0a3f22386f0a6cbf5a3709e19844cabdaade24a2e75f09cd57c311d5d4087ed5f WHIRLPOOL ef796526bca20909bdf43acc9b7e0d747e09e7fc5ba099031de81207810f036c15f6c814afe3fcb0c3feaa0d4f12cfa5e65902bd1171ba7e4dc40c26a5cbff13
|
||||
DIST amd64-debug-libreoffice-java-4.1.4.2.xd3 641828100 SHA256 b6251c84f9223c6cabcce6f6a7f12d70b1ef3583fdb198aa9a589e8b6f469f5d SHA512 a75c78ab97ad60f8274a633a6cf57129672fbe1e798547553f53bc9f7db8b7c7ad784ec4c4c4cd3b1487b2594bba679608962fd0cbd84b8fe1433e5ab8c74844 WHIRLPOOL 3ba5f8d102fb09457d6382e34de7e16bf578acfc1b9992b2a56747de86aa03d3c6544f3e73a5d77af5a1da7da9f59d2bcb13e1820124a0ae13e9a445e9e7e1c8
|
||||
DIST amd64-debug-libreoffice-kde-4.1.3.2-r3.xd3 259442335 SHA256 bdb00cbd7ff302ecc46370386064d20a8a3e1a35bdd6c81b82539396c7572701 SHA512 f5f1c80930fde50b11cce49237c365fafc64bd20312601ae8249d5c29460b2e910bf8061f16f6116844c202470909e28f01c25d6c8fde3777e53df815f56852f WHIRLPOOL 17b0720bc946cdf6ddf4baf853edca81532d8562c01e09eb8c3df9509ad757d20181036a27a26352e04e60e5bd4060faadb2c443055f12db6e42c76e9effef95
|
||||
DIST amd64-debug-libreoffice-kde-java-4.1.3.2-r3.xd3 640100567 SHA256 113aed13332baf4d40f181b8554eebaccabc950e506c4a786397aed6ffdf4f02 SHA512 d946b810064771f153c87e1d32f5c747560897322a79c8eca0879986bff214bf0b95884ab31523b84e1c15f11a431c1eba4177bcf5a198773ffbac60c400c3be WHIRLPOOL 00947ebf8b8978bba5598b0d43a556a7e522ad20f28d383e91ba17b21942e3b170437487cd591d8bffe5f58e1a6e25fd2dfb3f7f1bfd44c9d1f329b01251008e
|
||||
DIST x86-debug-libreoffice-4.1.3.2-r3.tar.xz 887536136 SHA256 21f95ca96134bc35c7cbd52c232f3c916fdc0405ee4661077fdf75c31bab3fa8 SHA512 b0407a61c0a48cbe9b51f1d86139fbbaaafacd08847393fefe817163cd94786df27865e9ac0b9c472e36f5b0368948d3dd04b1342172231cf651e49bff6e18b1 WHIRLPOOL 1de3a1837f12f95b0a0024cd78bba82f3494cf6793dd01a67833eb2fd1f1551276d5452fd65e12de7cf427f0ee603be05a611284e387b946d986c62e768f1a30
|
||||
DIST amd64-debug-libreoffice-kde-4.1.4.2.xd3 258096949 SHA256 fe1355ab0b774b70aeb08784e0825a283cbce812ee53258ecda10ef616230708 SHA512 e5e49d7bd75b6d28b4c1de450e6ab3c7b25db4195ce6bf42cc743af3714b36c000fca7ddfd7847167e79fcf0c0cd46c9d8eae4ed5a99918491527cdd269b9438 WHIRLPOOL efcc68a96db356f9f5ea47b4120a5b25a52bbe7eefc35ee84e089ef8960dd756fbd6fd6f06b7ad371bb64e02513697c29d7b8f0814b6f3d26f9345690054760c
|
||||
DIST amd64-debug-libreoffice-kde-java-4.1.3.2-r3.xd3 640100567 SHA256 113aed13332baf4d40f181b8554eebaccabc950e506c4a786397aed6ffdf4f02 SHA512 d946b810064771f153c87e1d32f5c747560897322a79c8eca0879986bff214bf0b95884ab31523b84e1c15f11a431c1eba4177bcf5a198773ffbac60c400c3be WHIRLPOOL 3ee9aadc6f7765db694d0ded17158cc5f84f73c953ac9f0b7482bf58e77298f2421207311517f0002ad53063a6835cbbb3a0799d0b2ac8680d274ae3e6e864a9
|
||||
DIST amd64-debug-libreoffice-kde-java-4.1.4.2.xd3 643469919 SHA256 7b9e0fe7d1b955dc30e337cdf589b50ea19f6fc026217d7aeb73dfc30774e628 SHA512 e23d80f7ab314e6005ac0c65b5049a8ac453357919d31a41b33291bac286efaf383367187e071d74cd1030888d9e340c6a91614dbc20d88ff6286f2727e3c89f WHIRLPOOL af20903714710f04a1b9ec09306dea0144eaf3b9f276869a526a65338ba8248d45fedbb4e72acfbc64538e86605f48efadba13edb4313c814a8c59a4a596b25e
|
||||
DIST x86-debug-libreoffice-4.1.3.2-r3.tar.xz 887536136 SHA256 21f95ca96134bc35c7cbd52c232f3c916fdc0405ee4661077fdf75c31bab3fa8 SHA512 b0407a61c0a48cbe9b51f1d86139fbbaaafacd08847393fefe817163cd94786df27865e9ac0b9c472e36f5b0368948d3dd04b1342172231cf651e49bff6e18b1 WHIRLPOOL 3324f7bdffd7b80ee49a01e02c71562f135cb3c15d6331cccb817c2098cd3a49a91cab1d2fe3869aef692d31e3ad90882f4134f5119254fde0061036d5bd4106
|
||||
DIST x86-debug-libreoffice-4.1.4.2.tar.xz 887608708 SHA256 b4d89de8bc7b23e527161e67b86137b0c7af9b0501daaed36d8d8913ef3bde2e SHA512 0e74c96c1bce135346a3c9ee929d201197216e221784e6ec2a11a5942af8792ed452f154df14cb73ee6e75917498cb807facf0d3f1e2658d700a9401ae0e02cb WHIRLPOOL 9d5bc4eae92f2548cd717d40ba7d227479f8a1ef168919ff3e5361818ab5f4f5198404b1e59e7675d06af1636e73e1016a5a3d7da8321c1d7f579d2bd0e35efa
|
||||
DIST x86-debug-libreoffice-gnome-4.1.3.2-r3.xd3 224807453 SHA256 d9f2f7633d6d050e1fcdbfe7ebd6f196956a96aa4fd69d584496c2af564a5e1b SHA512 ec791f59d36c3e56b05274cf88684baeeb4cbbd9faf812b05bba173a09059fb47a813cc120bf7243cc3d18694887f9fbefb7db49eee248fbbfe95504bdac68d8 WHIRLPOOL 3a7a727f47097135ac6bf0395b6716710967fce2ae68f2967de9658ca218dfc35ece519e47afa72e3dddaae9e9729867f9fbec8957bb2b7070fea72fd6ee75c4
|
||||
DIST x86-debug-libreoffice-gnome-java-4.1.3.2-r3.xd3 585798915 SHA256 77be104c39859ab002a87315761af0a7702b7c73f0c7c2a94fd4961f35b6772e SHA512 e88738ce1df96ac1bcf3c5ae5ee2d6ee7ee8cdecc253a99da451a4c3a5fa7b60d76b7006a9489391d214469dfbcfd068a562014817c80a4e10187e254b5cdd49 WHIRLPOOL 42de2cd3862f73ee96e4ed38022ca7d268d5d39b0c44cfe5db4db3a671467a8a40fea3f576f9aa46bea54f3e86d0af44d27948886858c6631efc44383001c3bc
|
||||
DIST x86-debug-libreoffice-java-4.1.3.2-r3.xd3 583349643 SHA256 cee849cda0ea495090986653594d3a641e4ac1bec528806957685613618254fc SHA512 bd5eeb0720fbd66691b77ab86ca1f6e66f45add9eaa714527187d281103b39ca018bea45b7d3db6e7a9027cc7bac2675e0999b53da0b0868b46c58e65c84e4e0 WHIRLPOOL cfea1cc49e9d5c852c9ea044a965fb31175db4f1899f2660981b887cff360064cb8fbe8fe855bbe5916295aa16a7945a815bb3b53662d68f57c21fe8d0949b0a
|
||||
DIST x86-debug-libreoffice-gnome-4.1.4.2.xd3 223476102 SHA256 ef299925bb30776b969680fae8058753a8b5e81667bf227eb14c2d0cf4c7c04f SHA512 34fcd564618d87f40db347a695b3a1c363fccee1a36fde3ac942256686b81d3f61250acc08cf52486863e8ec3b83104ec9c34372f0cd6285cf111066c4c645c7 WHIRLPOOL 3ac7b1d52c112712f40df7890bf4b16d3002552a1b006943c137c1ff045df2916d7e5e60bf860ae92831aaa1d05d06bebe59cfd536ab8852e047c2638cac9b8b
|
||||
DIST x86-debug-libreoffice-gnome-java-4.1.3.2-r3.xd3 585798915 SHA256 77be104c39859ab002a87315761af0a7702b7c73f0c7c2a94fd4961f35b6772e SHA512 e88738ce1df96ac1bcf3c5ae5ee2d6ee7ee8cdecc253a99da451a4c3a5fa7b60d76b7006a9489391d214469dfbcfd068a562014817c80a4e10187e254b5cdd49 WHIRLPOOL e873cf633be051a15f4f798c63667a08a626795bcda33bef1e5e45716aa47c00139c9c5e39fda00a1e756f71e3ea9d6df668160857469f1eb6e68b566a474a8f
|
||||
DIST x86-debug-libreoffice-gnome-java-4.1.4.2.xd3 585776254 SHA256 0eb6e39d34c96da0507266592ab77358f0288835c9da17cdf419048ede959adc SHA512 9184746cf01ddb0c102ffa29a80d810699c3079c358b7223c85e7097b208854d603133f113f8231f9495b5c6208fbbb60b4093abd9fab495ff828c5897568059 WHIRLPOOL f929b43dc6a445d4179ea2fc7a21d4defc505ad7b778a0d63d9bc057044ec38cc7465e643231285c466b53a127ffc9118821458d6f585b060162c479574c6684
|
||||
DIST x86-debug-libreoffice-java-4.1.3.2-r3.xd3 583349643 SHA256 cee849cda0ea495090986653594d3a641e4ac1bec528806957685613618254fc SHA512 bd5eeb0720fbd66691b77ab86ca1f6e66f45add9eaa714527187d281103b39ca018bea45b7d3db6e7a9027cc7bac2675e0999b53da0b0868b46c58e65c84e4e0 WHIRLPOOL 373052d0bd23ed5b9b17e0eeeaf598218480b8b38eb6d968e39fee671a43f1781f435405ecdd3f318edf1eee412d933d15bf9513802b1ff8dd14fcc7f3bd7626
|
||||
DIST x86-debug-libreoffice-java-4.1.4.2.xd3 583350054 SHA256 65d03132c7d70681a10200dd609ba5bd0799cec38824aaa4abfdf2f254b18784 SHA512 f3abcad3bca7711a774e30cca2a8f838b0c60d7f36354d1100e6a9f96ccd09bfc1f750d9c0cb5e80d61fc0eee587722ab9606300d56001ea0ecebab3aee20a5d WHIRLPOOL 7751b2785204d56f89ffdf2663191c93249c10c9896de866cb0f12bd7a88f2690777124ff50263700e2d990f53d134f64c8cda8e4d8dbce4807abf185bcc6536
|
||||
DIST x86-debug-libreoffice-kde-4.1.3.2-r3.xd3 237064920 SHA256 5e9ba3d118fe3b613dbf88a15b49c4dc0dac0b293a7bc9c0af1b77f7449de4e5 SHA512 54d27657c9846121450a56c9da2c8703b4a5aa5672a604150e3072baea95ddcc2cbbc4c177484c37ec350495fad43cf422f7d0ab9f2b637d2d1a7063cdc0a59c WHIRLPOOL a28b25873bfe775755600db5cb8cb2884df0157c265f992eb3a0f177d8a8c3c6784b2f0889825efd4f169b82514eb376d8d0fd2284bf5393424eac54c19fdb2d
|
||||
DIST x86-debug-libreoffice-kde-java-4.1.3.2-r3.xd3 584815082 SHA256 97a2124866165bf72a41e5758bf1b428bb1dab75c79ea0075a3201f74cb9eb3c SHA512 f1a7f024a3e6fc508fb9205a54709c41b15bc3f0a28db14f620d2e19c8f2d75d607c46284f0fef323a7de3355a95d7897426047d58925ca27bbe8e8f2696907d WHIRLPOOL 06ffe98340d260a2008261f8152c457be42d4795870c254a19f21e8857eebff53bd10c2fe9e84b687958b99243c12f8efdaed1b914d05e70ae94d371128fbe52
|
||||
DIST x86-debug-libreoffice-kde-4.1.4.2.xd3 235680620 SHA256 e54dff2a67f8ce58e7a50365fd184947e8d5c6d3b608ab04775acb25f76c08c4 SHA512 ff2da2b02d84c4afba963da6c802cc27e48ab429c445a5a37196fbbcae911457fbeabbacdd594ba7b6559e6631c7f2d047d54fd54b458f55fd0f32540c30d541 WHIRLPOOL 9954bbeb4fd354776bbe0da624ae2e7a3aaa83f44047e0efe4b0157d7ae06a366c05d5e41ea332f8abf77c98df6550b6cf012d7a0b5f00f0492a1e8ffa4deeb4
|
||||
DIST x86-debug-libreoffice-kde-java-4.1.3.2-r3.xd3 584815082 SHA256 97a2124866165bf72a41e5758bf1b428bb1dab75c79ea0075a3201f74cb9eb3c SHA512 f1a7f024a3e6fc508fb9205a54709c41b15bc3f0a28db14f620d2e19c8f2d75d607c46284f0fef323a7de3355a95d7897426047d58925ca27bbe8e8f2696907d WHIRLPOOL 2dc198b7a68dd40cede7508a64d44333fbd5dcc74b04a62540876ae7372488a25eb0cbe7b5481e1aca3974b20265e51b3182c136aca3ef011275f9549d29029c
|
||||
DIST x86-debug-libreoffice-kde-java-4.1.4.2.xd3 584803018 SHA256 1f3d146a6b288d20bd4e2abd4ca909d95e7cceca012938f271c4838c00a68b4f SHA512 fa384865ce9bdd96f677385db5f980703c40b48906a20ec11c4dbf60e1b0f9414cd2f924725d7bd3a71046ce4303e6d81a3fb531eb45953af4576e47df183d33 WHIRLPOOL 0cbfc0402afedb853f9642e43f8d865034dadd992611f1a64acf97d5077a18e3e2b65b3a609cfc9d2daff91629fddb34b5d6157423712bbbd3edeb3dfedbb9ef
|
||||
|
@ -0,0 +1,86 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin-debug/libreoffice-bin-debug-4.1.4.2.ebuild,v 1.1 2014/01/27 23:40:57 dilfridge Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
BASE_PACKAGENAME="debug"
|
||||
BASE_AMD64_URI="http://packages.gentooexperimental.org/packages/amd64-libreoffice/amd64-${BASE_PACKAGENAME}-"
|
||||
BASE_X86_URI="http://packages.gentooexperimental.org/packages/x86-libreoffice/x86-${BASE_PACKAGENAME}-"
|
||||
|
||||
DESCRIPTION="LibreOffice, a full office productivity suite. Binary package, debug info."
|
||||
HOMEPAGE="http://www.libreoffice.org"
|
||||
SRC_URI_AMD64="
|
||||
${BASE_AMD64_URI}libreoffice-${PVR}.tar.xz
|
||||
kde? (
|
||||
!java? ( ${BASE_AMD64_URI}libreoffice-kde-${PVR}.xd3 )
|
||||
java? ( ${BASE_AMD64_URI}libreoffice-kde-java-${PVR}.xd3 )
|
||||
)
|
||||
gnome? (
|
||||
!java? ( ${BASE_AMD64_URI}libreoffice-gnome-${PVR}.xd3 )
|
||||
java? ( ${BASE_AMD64_URI}libreoffice-gnome-java-${PVR}.xd3 )
|
||||
)
|
||||
!kde? ( !gnome? (
|
||||
java? ( ${BASE_AMD64_URI}libreoffice-java-${PVR}.xd3 )
|
||||
) )
|
||||
"
|
||||
SRC_URI_X86="
|
||||
${BASE_X86_URI}libreoffice-${PVR}.tar.xz
|
||||
kde? (
|
||||
!java? ( ${BASE_X86_URI}libreoffice-kde-${PVR}.xd3 )
|
||||
java? ( ${BASE_X86_URI}libreoffice-kde-java-${PVR}.xd3 )
|
||||
)
|
||||
gnome? (
|
||||
!java? ( ${BASE_X86_URI}libreoffice-gnome-${PVR}.xd3 )
|
||||
java? ( ${BASE_X86_URI}libreoffice-gnome-java-${PVR}.xd3 )
|
||||
)
|
||||
!kde? ( !gnome? (
|
||||
java? ( ${BASE_X86_URI}libreoffice-java-${PVR}.xd3 )
|
||||
) )
|
||||
"
|
||||
|
||||
SRC_URI="
|
||||
amd64? ( ${SRC_URI_AMD64} )
|
||||
x86? ( ${SRC_URI_X86} )
|
||||
"
|
||||
|
||||
IUSE="gnome java kde"
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64 ~x86"
|
||||
|
||||
RDEPEND="=app-office/${PN/-debug}-${PVR}[gnome=,java=,kde=]"
|
||||
|
||||
DEPEND="dev-util/xdelta:3"
|
||||
|
||||
RESTRICT="test strip"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_unpack() {
|
||||
elog "Uncompressing distfile ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar.xz"
|
||||
xz -cd "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar.xz" > "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" || die
|
||||
|
||||
local patchname
|
||||
use kde && patchname="-kde"
|
||||
use gnome && patchname="-gnome"
|
||||
use java && patchname="${patchname}-java"
|
||||
|
||||
if [ -n "${patchname}" ]; then
|
||||
elog "Patching distfile ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar using ${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PVR}.xd3"
|
||||
xdelta3 -d -s "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PVR}.xd3" "${WORKDIR}/tmpdist.tar" || die
|
||||
mv "${WORKDIR}/tmpdist.tar" "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" || die
|
||||
fi
|
||||
|
||||
elog "Unpacking new ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar"
|
||||
unpack "./${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar"
|
||||
}
|
||||
|
||||
src_configure() { :; }
|
||||
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
dodir /usr
|
||||
cp -aR "${S}"/usr/* "${ED}"/usr/ || die
|
||||
}
|
@ -1,12 +1,24 @@
|
||||
DIST amd64-bin-libreoffice-4.1.3.2-r3.tar.xz 77845428 SHA256 68d944f540099d3a9863608799c0316d38010966c4d3b8a1b04b60263ff45fe9 SHA512 eddd1478636b29e1f303657e07a0b898ced3c69617faa016966170e8f2622de247de43a09127380002d9877f4671dfd2be35128b8f881195beea63a0fa25f5fe WHIRLPOOL 43c4584cad95b1fdcb262be533eba4c38cef5fcf62a5aa2d65e6752e24cd04ad803340c09a8916fd254dcbb6c3aef1011ee0cfe1901729d0a44c5c26a84a8264
|
||||
DIST amd64-bin-libreoffice-4.1.4.2.tar.xz 77848892 SHA256 f39030d30590bb37852417676036ec4a5f1870e78d0c10f58069421e6d361035 SHA512 7b36b71d1e0444d4cb7e94bd8d21e3234f6ec729e64ea654b9c6fe7d310267a1ebe140151652eadae47513b4e9cac90f46ec71b3abaec857c2988122e44b3d2f WHIRLPOOL a4ec8587b2a5a1948cece52480a9a6226cd894c5f8a0270850f18ab1131eb4c7fb93cd34bedfc28caf36da6f5b1447c834afd71a2d153f694af9d5c176f5a1df
|
||||
DIST amd64-bin-libreoffice-gnome-4.1.3.2-r3.xd3 6619284 SHA256 95d9a6dcee8cc0cb9d7387fe5a4a47c9aa51ef065d44706ffba928a93defa9e2 SHA512 7c6be5d0432c16dc0daa4b93b32b4575acc4096825e4d73ccf7c4fc7fd7a95a668c0141c8f5345e885dbbeebcfb7552bedc1d3bb917eb48493419cd1d9080d4d WHIRLPOOL 263a9ed49d8d89ad94b43bd15f5d9b19c66a795c87fb7040e6594789630de501e29b52436c32a3f8b5c645fb17d3a919a01052e907a2e0b213b3c43d1d16ca6b
|
||||
DIST amd64-bin-libreoffice-gnome-4.1.4.2.xd3 6619851 SHA256 ce4c8c86d8412d25324bf28da95b36a04ba6678eb75c239569dddab5ff166ec2 SHA512 5d89dced26b0c21b38f170482b733a89c88ab771f191c8a7722836e15a9cc8b48c16a199b141a8aec6058a19c3a72309837fdeb2237627cfdd9c00d469b38446 WHIRLPOOL 23622fceb2fc64aec8f7b98cf343bbb48761f53d3df5ba1faba4512fb6783d78335b95f9ebddd7df19b42d9f316833d725d24a04015a08cd626267bfb28c5fc9
|
||||
DIST amd64-bin-libreoffice-gnome-java-4.1.3.2-r3.xd3 22712874 SHA256 3993e0a70ce005ebe130fcd810c38b73a246345d393563351436d05db1b8e3b5 SHA512 4f6de9f45f299862eed2238ca097b33fcf9c1c3cb174fb3a0093ff01d3170c1694454a8331612448efde3c514f41c1cc2b2a1dc286a6e6fa4abb55dfd6a6eaad WHIRLPOOL 831cee1e55db1303cd41f7e1acb9acc78d1ba7cd71bd445bb4d8e3c1c2fd9c05fe9069043b349374dcee9037dda64ae3e2d885d6ab7ef2e5ee97834cd09d97c8
|
||||
DIST amd64-bin-libreoffice-gnome-java-4.1.4.2.xd3 22761361 SHA256 9b6a4922b314ccff58c3e4edb4698d5a282f3db18a308751af432204819848c9 SHA512 771770f0f35bbe1aad69422aec15d12d3414fe32a6ea9e830deefa4e23299abbfb1959e5f30df983b461ed4fd61e81a69a754708e85680e0ea30ebded3ba2756 WHIRLPOOL 4fdbfc99222e6d395674033d937e8b7faadc24cc457ed98e10320f818973d0a8a8a3109697bbab9008e3efcd2a2a42c1206d9ebbef96626eebea2077d0ffda42
|
||||
DIST amd64-bin-libreoffice-java-4.1.3.2-r3.xd3 22416990 SHA256 63a1e7fa3d8150ec4ad8b5c559393865a87eacea853453ddb10273993a9f2231 SHA512 a363e14474c220abae03ad33933c9adf076b08d0bb1dd7ff46bc4e1196c480c72843dce8b45b784c5283ebfd5b6345bdb103fd53bb7c64e17a60c1e3309f5aa0 WHIRLPOOL db586356bb0e1c10ba55c52fa10ecae4b6d4eebe5372c9a4efb8dca8f7c68d6f4e8df031ddd64f89bf7ff5a1f991cfc155007c469537277f30a948bd6a43a843
|
||||
DIST amd64-bin-libreoffice-java-4.1.4.2.xd3 22403295 SHA256 021b98f44c6b31f1053459563690e10e13f97543920cbbac49bed23ba499b729 SHA512 74980628132286c124646fc57ab4426ef042b24ead220a7fa37d60a580ec31d28a62b3e1b46b2a9bf8de10c674e120b53bdf2914d7bfbcdf012eb92956f0e476 WHIRLPOOL 40129fee918ee5d7e3f8f309456116c3a5a00952f047a01cd5cda415ea58f98132d028055b5053ca9691a21074129158594469ca29249a8f19a8522e2d8d2969
|
||||
DIST amd64-bin-libreoffice-kde-4.1.3.2-r3.xd3 7033674 SHA256 f7930b8b31f130e123910706030950bce12eb40d0ab4d7268aaa0554ff359fe0 SHA512 dab1a6735a12b58d9700dbef7a8f2f02aa98f96da9233cf9beb4fffc0351ea2fa8fce7a9dfa74793a41b9b62e394faaf9fe7d89affb429fe826017dc635fe572 WHIRLPOOL 635d11652c609c20a15f8c4a27926f7ed38324ea0f740945c9b47274f0413efc7b09fa24b8b844833744090e9830dd49129d4bbe8b95e68b2f394957aa345b90
|
||||
DIST amd64-bin-libreoffice-kde-4.1.4.2.xd3 7041850 SHA256 52997b24d639c9ddd8630c6c747d5c75feac2cba039ed3d64d0a8094817eccf0 SHA512 277a8ec04b53231df7867176752785435ff3f159b21038a3ca51e927ad163a7dd15472349276a2543f2dd7af420a952d10d92daefc625302e6e5259c906bd0ca WHIRLPOOL 994f698b1e70e0518ed9a0d40e0a6ed20a2ce2bceb1a2c7db5bc580b525ffb3198de2ae0c39a2a76774945e74ccc873f592c3039664ebfb99e47d5a24d8cc888
|
||||
DIST amd64-bin-libreoffice-kde-java-4.1.3.2-r3.xd3 22450325 SHA256 5867ca408f1065a0ff01423a44ea53be8d186305b21e44b2382b994634be1fee SHA512 ef4f956139cdf203fdf4b3adf6691eae5b2076ec2b194eb90ff8769a0b5a65cf0dd6635e55fc07a1b362b369e498458c1706bd7d5a2ad884f5150d1c81c8a4e0 WHIRLPOOL 6504dcf7cf04ea8e807aba6de6dec1b1a78cac53545d1226d8e1b0759bae977018cbfcfb9f090fab100d7a1d93d7a8974866834d0f228fed1d5ec25d9013df55
|
||||
DIST amd64-bin-libreoffice-kde-java-4.1.4.2.xd3 22504801 SHA256 6432b5368b61671700d73915d9930a2d169b0ab073a01019e7907ff275fa11f1 SHA512 e55750306341e9024b71181aab01ebd30634a56af1d6fdbb950087ec233358a28fc2343dd0dfe27d2abf7a2e83ba4d89ec0934ab20dceff39078174db23d437d WHIRLPOOL d9af73dd64882d1b769403a9f019ad29bca9fb4705cda97635c50355c7eb133b4822aa3c8c98cf810ed9185a2f1f6ba7f67f9c50adeb1216932ca8c234395c66
|
||||
DIST x86-bin-libreoffice-4.1.3.2-r3.tar.xz 77226156 SHA256 70916ad7eb33cc37651f826f363f655129c6e03855df297f000a308cfa539bd5 SHA512 92f500ce240beafdf093cd82bc06f32dd8c97ea7b96fe7bdf127a8f68d28ab03886707927598ee4a8cf7856775fe108dd08cc145367f4d5673e390e6e4ae39e0 WHIRLPOOL c3645ecc423ede019181c4fb6ee62e27596000431065916a608ade571bbc63609df03434e5d6ef29827206e89ca344b955dab41839a2b76882859c37571f3774
|
||||
DIST x86-bin-libreoffice-4.1.4.2.tar.xz 77232920 SHA256 347e2cee453f727f2bebbdeb8e6ce1fce38e5fc6222e85bf917f6c62393f3756 SHA512 4b80a2ac250e7910c6a3e3523771915a210c3f394cd3879d6f40572dc900ed8433e83157e9050f2a5c7583e70cb154ec6827932fbf056b48022c82617d0742c8 WHIRLPOOL 12930fee2f5ea0a7840cbd34f1332c505b09e37ec35b15b119a05bcaf04f8c676a78cc3cb2887d2ab1c3a6e6afb50ba233142b9d8de7c3338ce7cf48c9fa4685
|
||||
DIST x86-bin-libreoffice-gnome-4.1.3.2-r3.xd3 5916008 SHA256 f2d703a532985e4050d7d53701902ea4a5177fad24eac72827d71412e50d7060 SHA512 4324ecdc4ce90838602575de657d9f5054e61762dc54333c9d7658b63b139f4aefeff77fbdff25ae5e1d1ee2cf7edbdd06c8605f1d12578578c7bb88861b090e WHIRLPOOL 625d7287d93f4e739794e7a51d3467d27d21f38d9bb055ce7dd15abf2753f3d615696fcd322cf5aaddd427b4644e9679d75f4b697e06b6f2090cb32eb676c9a6
|
||||
DIST x86-bin-libreoffice-gnome-4.1.4.2.xd3 4240754 SHA256 dd775b7980a48604858e5f4e79639fdd1a83a1a588b9691c699eb9d1022af881 SHA512 dc76a7fc08f9779595c7b47e2805181b3156f4544649de32354e56a4179e0acff32b63466a3d9889c02b568ec9584a445b39cfa3a15bb525cce58f3a46f6a5c6 WHIRLPOOL b363746a1549e678b5dbe779f5fca61a09d57f0aa9bf6d434b9c3f0af7e73e1d5e3f2033e6f38df0dd73b831c8fbd2017cb6d1d118d6fc6cbc76bacd446f940c
|
||||
DIST x86-bin-libreoffice-gnome-java-4.1.3.2-r3.xd3 20352526 SHA256 3de5a21f735377c418e1736ce13a31f64396efe27c7753e13bb4b0380971fe80 SHA512 579c51cb330cb3b4c76bd1a6bee3e1debb3640ec5e24481b29e97da71cf1697086ce0a24603ff127d81ada70e2a4f0cf927b0a08835b4e12fd6ab8149a05f604 WHIRLPOOL f81ef3b9b3bb5d2adfc0128839145096300b08668a5cf68bd147c21b2c190fe1deb88f6ef2440fbaa29aa62d8dbd428854471e7d13812cc4fea273d18d224641
|
||||
DIST x86-bin-libreoffice-gnome-java-4.1.4.2.xd3 20359509 SHA256 1affd3a3195a82c46b1c20a64a3d4db932e844974e3f9a316c24f859a53fd63f SHA512 28f85818946e34cfe08bfebfd73001ecdd1cf1d1915c01e0ad3a2cca6c60341b437f279dce71affd5d5ef1c82beabb54756dd55393d0705795cc8991f61e574b WHIRLPOOL ba80683ba71ebe6e530ea3910d6f6a340fccd19713a7922401eb2090003e0d6e0fb36e1ac9278f753de86f803eb44eb0fd69a9453004e49ec4df7bab7217ecdc
|
||||
DIST x86-bin-libreoffice-java-4.1.3.2-r3.xd3 19999133 SHA256 5d49c2e669d93ee76e80f930a904ad5008f9f6e949a0cf18c35d26b5ed4430ff SHA512 be17f39cf7938af5ff461319e8d5fe866d82aa06fe0dc3268fac39d84c8ae7f1479ca027b5b67ff37101e0de4db7b55b072a836c412a2cdc4fd989aaa7dd55c4 WHIRLPOOL 30d060bb2379293a5d1f92a3b29558734571807fd9b9702b8bac5570fd31121c1b7e8070a78c50e12b525caf812d782c530d0a980eef688c3e219fb905351eab
|
||||
DIST x86-bin-libreoffice-java-4.1.4.2.xd3 20026560 SHA256 201c1371f9352fecdadd46fc65c1f316030fed99e7e52c529988bb81105d4605 SHA512 d8063ec5f57713919969318542378d3d5de2d6d8d3cdf1b86896f448b3d2a4d0bc7bcdcb7a84f8583e18417a2e2ddbe094781cb2d495f012761e0ad4920b1d63 WHIRLPOOL bbbb21e82da80b72b19b423d4ec4aafe9771c9f3aa9f66b77cc22f499738b2430c70abd4658e988c08415fbad51c7006dd16f499bfcb4b127978120d864eac66
|
||||
DIST x86-bin-libreoffice-kde-4.1.3.2-r3.xd3 8366422 SHA256 3e9b909e0b69e160ae8f9ea0c7bf98aa2d44c8ab9afd79f9963e3e0e0db274e9 SHA512 aab140f89d11208e2d558703c43ae26fa3aeac66ba0a9a6fc602679606a03c9f04c2f634f763d3e31c8ef74204fa9dbf5ce0c4da99f2acb612988bcc1a1e977b WHIRLPOOL 873b1181dbf6664a43b9f222584e4c901f7d35c878d3d29b8bd1598f82825d80fd12bf93d8063fb32508710e47c0e0413d97b53cf392182228d7d53581ca8c21
|
||||
DIST x86-bin-libreoffice-kde-4.1.4.2.xd3 7616390 SHA256 c583760c28f6770377bb1118c2c37be8b6a64cd7134e34acfc99f06eb43771af SHA512 2e4135cdc4c04069de5b1820f76a86608c1993ce621062bd961c21580c7f871a0de43d9373332e0b1323b7cb16c4ecd5b1f939a527e1b48803487badd7bb405f WHIRLPOOL 57a27b53d245540197e3041e0bb426e52ae86445a66285fb3efb9ada6a5b3026e4ebd414c9dc0d2339fb951e3c2e9be58c5027bc6708b0c635050cf76ec4a3b3
|
||||
DIST x86-bin-libreoffice-kde-java-4.1.3.2-r3.xd3 20638259 SHA256 2bd19d857b9f35ec3d3fd9d44491c495f05564567e481f7ed73747344f9c06b3 SHA512 a40f6ba7f3f193439fadcbd875f4d68d9c42b197e638b135d169b9d2107eb5c26ea04b15a90e6c2ff34f18378eeefc349303134d82a1e4e984df90182e0ec554 WHIRLPOOL 708cee429c128ae4033153dd9031ecf9c3687775f9341da33915d2900ea17610bb1ec25cbf8abad7eb38bc5d32bb6d660bd2d66473a24e491b9fce402794cd95
|
||||
DIST x86-bin-libreoffice-kde-java-4.1.4.2.xd3 20677137 SHA256 123232e47aaa45ed6430f6a1b58daf862d390fd17b4319e4418326cd4ffb05c4 SHA512 f0176eca7825cfc42b664f010027dba154a257fd071b6688ba6cd4b4eb50b64f3359e1091d052beb668cb9a7ecf44fd064075704e49ee88b9df6ad08e8964423 WHIRLPOOL 559241680a657a64de333b0c9680e769d16e6c07b9b9f05f03f0a194b8c8c2cfc75c6a25826b6bc9526feea9d1d565fffc6f1e235878a86d32d6611bf6ec1189
|
||||
|
@ -0,0 +1,224 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/libreoffice-bin-4.1.4.2.ebuild,v 1.1 2014/01/27 23:39:43 dilfridge Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
KDE_REQUIRED="optional"
|
||||
CMAKE_REQUIRED="never"
|
||||
|
||||
BASE_PACKAGENAME="bin"
|
||||
BASE_AMD64_URI="http://packages.gentooexperimental.org/packages/amd64-libreoffice/amd64-${BASE_PACKAGENAME}-"
|
||||
BASE_X86_URI="http://packages.gentooexperimental.org/packages/x86-libreoffice/x86-${BASE_PACKAGENAME}-"
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_3 )
|
||||
PYTHON_REQ_USE="threads,xml"
|
||||
|
||||
inherit kde4-base java-pkg-opt-2 python-single-r1 pax-utils prefix versionator
|
||||
|
||||
DESCRIPTION="LibreOffice, a full office productivity suite. Binary package."
|
||||
HOMEPAGE="http://www.libreoffice.org"
|
||||
SRC_URI_AMD64="
|
||||
${BASE_AMD64_URI}libreoffice-${PVR}.tar.xz
|
||||
kde? (
|
||||
!java? ( ${BASE_AMD64_URI}libreoffice-kde-${PVR}.xd3 )
|
||||
java? ( ${BASE_AMD64_URI}libreoffice-kde-java-${PVR}.xd3 )
|
||||
)
|
||||
gnome? (
|
||||
!java? ( ${BASE_AMD64_URI}libreoffice-gnome-${PVR}.xd3 )
|
||||
java? ( ${BASE_AMD64_URI}libreoffice-gnome-java-${PVR}.xd3 )
|
||||
)
|
||||
!kde? ( !gnome? (
|
||||
java? ( ${BASE_AMD64_URI}libreoffice-java-${PVR}.xd3 )
|
||||
) )
|
||||
"
|
||||
SRC_URI_X86="
|
||||
${BASE_X86_URI}libreoffice-${PVR}.tar.xz
|
||||
kde? (
|
||||
!java? ( ${BASE_X86_URI}libreoffice-kde-${PVR}.xd3 )
|
||||
java? ( ${BASE_X86_URI}libreoffice-kde-java-${PVR}.xd3 )
|
||||
)
|
||||
gnome? (
|
||||
!java? ( ${BASE_X86_URI}libreoffice-gnome-${PVR}.xd3 )
|
||||
java? ( ${BASE_X86_URI}libreoffice-gnome-java-${PVR}.xd3 )
|
||||
)
|
||||
!kde? ( !gnome? (
|
||||
java? ( ${BASE_X86_URI}libreoffice-java-${PVR}.xd3 )
|
||||
) )
|
||||
"
|
||||
|
||||
SRC_URI="
|
||||
amd64? ( ${SRC_URI_AMD64} )
|
||||
x86? ( ${SRC_URI_X86} )
|
||||
"
|
||||
|
||||
IUSE="gnome java kde"
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64 ~x86"
|
||||
|
||||
BIN_COMMON_DEPEND="
|
||||
=app-text/libexttextcat-3.4*
|
||||
app-text/poppler:0/44
|
||||
dev-libs/boost:0/1.52
|
||||
dev-libs/icu:0/51.2
|
||||
=media-gfx/graphite2-1.2*
|
||||
=media-libs/harfbuzz-0.9.23[icu]
|
||||
media-libs/libpng:0/16
|
||||
>=sys-libs/glibc-2.17
|
||||
virtual/jpeg:62
|
||||
kde? ( >=kde-base/kdelibs-4.11.2-r1:4 >=dev-qt/qtcore-4.8.5-r1:4 )
|
||||
"
|
||||
|
||||
# PLEASE place any restrictions that are specific to the binary builds
|
||||
# into the BIN_COMMON_DEPEND block above.
|
||||
# All dependencies below this point should remain identical to those in
|
||||
# the source ebuilds.
|
||||
|
||||
COMMON_DEPEND="
|
||||
${BIN_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
|
||||
>=x11-libs/cairo-1.10.0[X]
|
||||
x11-libs/libXinerama
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libXrender
|
||||
net-print/cups
|
||||
>=dev-libs/dbus-glib-0.92
|
||||
gnome? ( gnome-extra/evolution-data-server )
|
||||
gnome? ( gnome-base/gconf:2 )
|
||||
x11-libs/gdk-pixbuf[X]
|
||||
>=x11-libs/gtk+-2.24:2
|
||||
media-libs/gstreamer:1.0
|
||||
media-libs/gst-plugins-base:1.0
|
||||
virtual/glu
|
||||
virtual/opengl
|
||||
net-libs/neon
|
||||
"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
!app-office/libreoffice
|
||||
!<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 )
|
||||
"
|
||||
|
||||
PDEPEND="
|
||||
=app-office/libreoffice-l10n-${PV}*
|
||||
"
|
||||
|
||||
DEPEND="dev-util/xdelta:3"
|
||||
|
||||
# only one flavor at a time
|
||||
REQUIRED_USE="kde? ( !gnome ) gnome? ( !kde )"
|
||||
|
||||
RESTRICT="test strip"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
PYTHON_UPDATER_IGNORE="1"
|
||||
|
||||
pkg_pretend() {
|
||||
[[ $(gcc-major-version) -lt 4 ]] || \
|
||||
( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 4 ]] ) \
|
||||
&& die "Sorry, but gcc-4.4 and earlier won't work for libreoffice-bin package (see bug #387515)."
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
kde4-base_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
elog "Uncompressing distfile ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar.xz"
|
||||
xz -cd "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar.xz" > "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" || die
|
||||
|
||||
local patchname
|
||||
use kde && patchname="-kde"
|
||||
use gnome && patchname="-gnome"
|
||||
use java && patchname="${patchname}-java"
|
||||
|
||||
if [ -n "${patchname}" ]; then
|
||||
elog "Patching distfile ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar using ${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PVR}.xd3"
|
||||
xdelta3 -d -s "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PVR}.xd3" "${WORKDIR}/tmpdist.tar" || die
|
||||
mv "${WORKDIR}/tmpdist.tar" "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" || die
|
||||
fi
|
||||
|
||||
elog "Unpacking new ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar"
|
||||
unpack "./${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
cp "${FILESDIR}"/50-${PN} "${T}"
|
||||
eprefixify "${T}"/50-${PN}
|
||||
}
|
||||
|
||||
src_configure() { :; }
|
||||
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
dodir /usr
|
||||
cp -aR "${S}"/usr/* "${ED}"/usr/
|
||||
|
||||
# prevent revdep-rebuild from attempting to rebuild all the time
|
||||
insinto /etc/revdep-rebuild && doins "${T}/50-${PN}"
|
||||
}
|
||||
|
||||
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 @@
|
||||
DIST libabw-0.0.1.tar.xz 307964 SHA256 5a2f3197350a96bd4e8f37f2d060fca2a7af830aa0804ce07ba32b7725d73503 SHA512 2be660d20adbc4bb81550116b482a2d2462a1110c4bbaea4e1318010a46f1080bcecc6d4623ec034e01a2b9d08eb3d13022ce1608b311705e351f75a99acc0dd WHIRLPOOL d02064fbc8aede71117e568fecc8233c39a98ac63e7f28dc634e0ccedbb240ecb0472ad0cd660792253e7f13a13fe9839bdca8a0f1c0339bbdff44d3e6099e34
|
@ -0,0 +1,42 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/libabw/libabw-0.0.1.ebuild,v 1.1 2014/01/27 15:32:41 scarabeus Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit base eutils
|
||||
|
||||
DESCRIPTION="Library parsing abiword documents"
|
||||
HOMEPAGE="http://www.freedesktop.org/wiki/Software/libabw/"
|
||||
SRC_URI="http://dev-www.libreoffice.org/src//${P}.tar.xz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~x86"
|
||||
IUSE="doc static-libs"
|
||||
|
||||
RDEPEND="
|
||||
app-text/libwpd:0.9
|
||||
>=app-text/libwpg-0.2.2:0.2
|
||||
dev-libs/libxml2
|
||||
sys-libs/zlib
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-libs/boost-1.46
|
||||
sys-devel/libtool
|
||||
virtual/pkgconfig
|
||||
doc? ( app-doc/doxygen )
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--docdir="${EPREFIX}/usr/share/doc/${PF}" \
|
||||
--disable-werror \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_with doc docs)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
prune_libtool_files --all
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>ruby</herd>
|
||||
<herd>openoffice</herd>
|
||||
</pkgmetadata>
|
@ -1,3 +1 @@
|
||||
DIST pgadmin3-1.16.1.tar.gz 13783723 SHA256 d4ba243dc24dc28e6d0db4104baec373ab3bec11c6dc0e6cfa4bd665a5b7c28e SHA512 f5f110f99d15801dc2b2253c803cf038871461909cb63f114ee769ff0977183d6825f3bf13f378822f874fc15aa593f52cd999ccb97370b786b6e02f45ce4a81 WHIRLPOOL 375f444147e2ff850d1fdffe8d88bbd9296aff652f1008447242e7cbe5995ad1ba37822fafe5012d09bf963cf4485183f72087c3ade3740c2eab974e931fb5b1
|
||||
DIST pgadmin3-1.18.0.tar.gz 14257838 SHA256 58f29f5a380a49065e4b97bd9c8effd12ae99f464fa8834ba403baa2a658278d SHA512 dbf052269e4c0478239f111bca2e09b430a590778d19460f24b1f39c0204dad4a182ee93df06675c5640fd532ad289f5425468e5c08d11d833429e3076e2ed7b WHIRLPOOL 30a07cfb3a6fd0525fe1677186f9cb95f232c65e7851807abf0e929ccc4e34a36ec7fcb4f9f0df8ff5e1fdcc93b8f67ee9acb4c90a8ce33337bcb8ae15c5999f
|
||||
DIST pgadmin3-1.18.1.tar.gz 14265392 SHA256 27ac3e296a6ca3da9da8ee22ed98eabfe1377be507877ffc26048fc2a9c6cbc0 SHA512 e292aaf95159eda98fe5f5112aad758cc08c38fe325ef92c698009defeb3891d9e0d485c00a0cbb82b70a95f54755eeb7f90b82a34354e77b485f738b5458c99 WHIRLPOOL 1f1af18a721c2c99b0dc52ec571e5831aac89eb998d9917e82134f9a900fce5b5a8edcc55640c962bd9b14de1ebae42cf9d896e1a3f84a05402674252dfeeb17
|
||||
|
@ -1,12 +0,0 @@
|
||||
diff -Naur a/acinclude.m4 b/acinclude.m4
|
||||
--- a/acinclude.m4 2010-09-01 09:30:36.000000000 -0400
|
||||
+++ b/acinclude.m4 2011-07-09 23:57:49.734641040 -0400
|
||||
@@ -805,8 +805,6 @@
|
||||
AC_DEFUN([CLEANUP],
|
||||
[
|
||||
# CFLAGS/CXXFLAGS may well contain unwanted settings, so clear them.
|
||||
- CFLAGS=""
|
||||
- CXXFLAGS=""
|
||||
])
|
||||
|
||||
#########################
|
@ -1,64 +0,0 @@
|
||||
--- pgadmin3-1.14.0-rc1.orig/acinclude.m4 2011-06-28 13:44:29.000000000 +0000
|
||||
+++ pgadmin3-1.14.0-rc1/acinclude.m4 2011-09-05 21:10:03.222953210 +0000
|
||||
@@ -406,6 +406,13 @@
|
||||
PGSQL_OLD_LDFLAGS="$LDFLAGS"
|
||||
PGSQL_OLD_CPPFLAGS="$CPPFLAGS"
|
||||
|
||||
+ PG_INCLUDE=`${PG_CONFIG} --includedir`
|
||||
+ PG_SVRINCLUDE=`${PG_CONFIG} --includedir-server`
|
||||
+ PG_PKGINCLUDE=`${PG_CONFIG} --pkgincludedir`
|
||||
+ CPPFLAGS="$CPPFLAGS -I${PG_INCLUDE} -I${PG_SVRINCLUDE} -I${PG_PKGINCLUDE}"
|
||||
+
|
||||
+ PG_VERSION=`${PG_CONFIG} --version`
|
||||
+
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_C
|
||||
AC_CHECK_LIB(ssl, SSL_library_init, [LIB_SSL=yes], [LIB_SSL=no])
|
||||
@@ -477,33 +484,7 @@
|
||||
if test "$LIB_SSL" = "yes"
|
||||
then
|
||||
# Check for SSL support
|
||||
- if test "$BUILD_STATIC" = "yes"
|
||||
- then
|
||||
- AC_MSG_CHECKING(for SSL_connect in libpq.a)
|
||||
- if test "$(nm ${PG_LIB}/libpq.a | grep -c SSL_connect)" -gt 0
|
||||
- then
|
||||
- AC_MSG_RESULT(present)
|
||||
- PG_SSL="yes"
|
||||
- else
|
||||
- AC_MSG_RESULT(not present)
|
||||
- PG_SSL="no"
|
||||
- fi
|
||||
- else
|
||||
- if test "$build_cpu-$build_vendor" = "powerpc-apple" -o "$build_cpu-$build_vendor" = "i386-apple" -o "$build_cpu-$build_vendor" = "i686-apple"
|
||||
- then
|
||||
- AC_MSG_CHECKING(for SSL_connect in -lpq)
|
||||
- if test "$(otool -L ${PG_LIB}/libpq.?.dylib | grep -c libssl)" -gt 0
|
||||
- then
|
||||
- AC_MSG_RESULT(present)
|
||||
- PG_SSL="yes"
|
||||
- else
|
||||
- AC_MSG_RESULT(not present)
|
||||
- PG_SSL="no"
|
||||
- fi
|
||||
- else
|
||||
- AC_CHECK_LIB(pq, SSL_connect, [PG_SSL=yes], [PG_SSL=no])
|
||||
- fi
|
||||
- fi
|
||||
+ AC_CHECK_DECL([USE_SSL], [PG_SSL=yes], [PG_SSL=no], [[#include <pg_config.h>]])
|
||||
else
|
||||
PG_SSL="no"
|
||||
fi
|
||||
@@ -547,12 +528,6 @@
|
||||
|
||||
AC_LANG_RESTORE
|
||||
|
||||
- PG_INCLUDE=`${PG_CONFIG} --includedir`
|
||||
- PG_SVRINCLUDE=`${PG_CONFIG} --includedir-server`
|
||||
- PG_PKGINCLUDE=`${PG_CONFIG} --pkgincludedir`
|
||||
- CPPFLAGS="$CPPFLAGS -I${PG_INCLUDE} -I${PG_SVRINCLUDE} -I${PG_PKGINCLUDE}"
|
||||
-
|
||||
- PG_VERSION=`${PG_CONFIG} --version`
|
||||
|
||||
if test "$build_os" = "mingw32"
|
||||
then
|
@ -1,43 +0,0 @@
|
||||
diff -Naur a/acinclude.m4 b/acinclude.m4
|
||||
--- a/acinclude.m4 2011-04-15 09:12:01.000000000 -0400
|
||||
+++ b/acinclude.m4 2011-07-10 16:09:46.405593411 -0400
|
||||
@@ -476,19 +476,7 @@
|
||||
|
||||
if test "$LIB_SSL" = "yes"
|
||||
then
|
||||
- # Check for SSL support
|
||||
- if test "$BUILD_STATIC" = "yes"
|
||||
- then
|
||||
- AC_MSG_CHECKING(for SSL_connect in libpq.a)
|
||||
- if test "$(nm ${PG_LIB}/libpq.a | grep -c SSL_connect)" -gt 0
|
||||
- then
|
||||
- AC_MSG_RESULT(present)
|
||||
- PG_SSL="yes"
|
||||
- else
|
||||
- AC_MSG_RESULT(not present)
|
||||
- PG_SSL="no"
|
||||
- fi
|
||||
- else
|
||||
+ # Check for SSL support
|
||||
if test "$build_cpu-$build_vendor" = "powerpc-apple" -o "$build_cpu-$build_vendor" = "i386-apple" -o "$build_cpu-$build_vendor" = "i686-apple"
|
||||
then
|
||||
AC_MSG_CHECKING(for SSL_connect in -lpq)
|
||||
@@ -501,9 +489,16 @@
|
||||
PG_SSL="no"
|
||||
fi
|
||||
else
|
||||
- AC_CHECK_LIB(pq, SSL_connect, [PG_SSL=yes], [PG_SSL=no])
|
||||
+ AC_MSG_CHECKING(for SSL_connect in libpq.a)
|
||||
+ if test "$(nm ${PG_LIB}/libpq.a | grep -c SSL_connect)" -gt 0
|
||||
+ then
|
||||
+ AC_MSG_RESULT(present)
|
||||
+ PG_SSL="yes"
|
||||
+ else
|
||||
+ AC_MSG_RESULT(not present)
|
||||
+ PG_SSL="no"
|
||||
+ fi
|
||||
fi
|
||||
- fi
|
||||
else
|
||||
PG_SSL="no"
|
||||
fi
|
@ -1,55 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/pgadmin3/pgadmin3-1.16.1-r1.ebuild,v 1.4 2013/02/20 15:57:12 ago Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
WX_GTK_VER="2.8"
|
||||
|
||||
inherit multilib versionator wxwidgets
|
||||
|
||||
DESCRIPTION="wxWidgets GUI for PostgreSQL."
|
||||
HOMEPAGE="http://www.pgadmin.org/"
|
||||
SRC_URI="mirror://postgresql/${PN}/release/v${PV}/src/${P}.tar.gz"
|
||||
|
||||
LICENSE="POSTGRESQL"
|
||||
KEYWORDS="amd64 ppc x86 ~x86-fbsd"
|
||||
SLOT="0"
|
||||
IUSE="debug +databasedesigner"
|
||||
|
||||
DEPEND="x11-libs/wxGTK:2.8[X,debug=]
|
||||
>=dev-db/postgresql-base-8.4.0
|
||||
>=dev-libs/libxml2-2.6.18
|
||||
>=dev-libs/libxslt-1.1"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
pkg_setup() {
|
||||
local pgslot=$(postgresql-config show)
|
||||
|
||||
if [[ ${pgslot//.} < 84 ]] ; then
|
||||
eerror "PostgreSQL slot must be set to 8.4 or higher."
|
||||
eerror " postgresql-config set 8.4"
|
||||
die "PostgreSQL slot is not set to 8.4 or higher."
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf --with-wx-version=2.8 \
|
||||
$(use_enable debug) \
|
||||
$(use_enable databasedesigner)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
newicon "${S}/pgadmin/include/images/pgAdmin3.png" ${PN}.png
|
||||
|
||||
# icon location for the desktop file provided in pkg folder
|
||||
insinto /usr/share/pgadmin3
|
||||
doins "${S}/pgadmin/include/images/pgAdmin3.png"
|
||||
|
||||
domenu "${S}/pkg/pgadmin3.desktop"
|
||||
|
||||
# Fixing world-writable files
|
||||
fperms -R go-w /usr/share
|
||||
}
|
@ -1,59 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/pgadmin3/pgadmin3-1.18.0.ebuild,v 1.1 2013/09/25 17:37:46 titanofold Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
WX_GTK_VER="2.8"
|
||||
|
||||
inherit multilib versionator wxwidgets
|
||||
|
||||
DESCRIPTION="wxWidgets GUI for PostgreSQL."
|
||||
HOMEPAGE="http://www.pgadmin.org/"
|
||||
SRC_URI="mirror://postgresql/${PN}/release/v${PV}/src/${P}.tar.gz"
|
||||
|
||||
LICENSE="POSTGRESQL"
|
||||
KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
|
||||
SLOT="0"
|
||||
IUSE="debug +databasedesigner"
|
||||
|
||||
DEPEND="x11-libs/wxGTK:2.8[X,debug=]
|
||||
>=dev-db/postgresql-base-8.4.0
|
||||
>=dev-libs/libxml2-2.6.18
|
||||
>=dev-libs/libxslt-1.1"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
pkg_setup() {
|
||||
local pgslot=$(postgresql-config show)
|
||||
|
||||
if [[ ${pgslot//.} < 84 ]] ; then
|
||||
eerror "PostgreSQL slot must be set to 8.4 or higher."
|
||||
eerror " postgresql-config set 8.4"
|
||||
die "PostgreSQL slot is not set to 8.4 or higher."
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/pgadmin3-desktop.patch"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf --with-wx-version=2.8 \
|
||||
$(use_enable debug) \
|
||||
$(use_enable databasedesigner)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
newicon "${S}/pgadmin/include/images/pgAdmin3.png" ${PN}.png
|
||||
|
||||
# icon location for the desktop file provided in pkg folder
|
||||
insinto /usr/share/pgadmin3
|
||||
doins "${S}/pgadmin/include/images/pgAdmin3.png"
|
||||
|
||||
domenu "${S}/pkg/pgadmin3.desktop"
|
||||
|
||||
# Fixing world-writable files
|
||||
fperms -R go-w /usr/share
|
||||
}
|
@ -1,3 +1 @@
|
||||
DIST PyGreSQL-3.8.1.tgz 81186 SHA256 5638e1f12c8dd4f1ea8c9db4f92a98d19e66dbef2e25ab45ede190c3fcac816d SHA512 041381dbf60d277d0ad87f9d1975c4d5301ebe084fdbacbf7697013cf62cfebf29f5482f0bd9338c42cf2014f8fd8615dd38c87a0bdc6428daa7afe65c906fec WHIRLPOOL 34ea465a957d486b3e16453d92b4516288f255ba8eb92583de2c866bb3a1ae4dd112319e22fd35de476d145e8deeb3d99245d9fbdf3aa0a5e0fa6e08862986e9
|
||||
DIST PyGreSQL-4.0.tgz 89528 SHA256 c57e93835de8a881e714baf217d7ab012297d6f0450454e3cde508937bf6bc9b SHA512 da5b3ffd304533ce92b0cce8c80aa86aaf7514499d7b7b87b0794470bdc9c09b4397ee8d59c714269a0e52ded817b30e26214c84a32f353c57f01315144dede8 WHIRLPOOL 0d3a372a96a0f3bb2003075db13755ebe1a66216df009c4185ee16d7504dfc3589963748f98cde1147dd99a156405830d1d98b9e7d36999867777ce9233afb4d
|
||||
DIST PyGreSQL-4.1.1.tgz 100883 SHA256 bb14092f97c66ed13b8faf71471b8c156c6b46d915858447f3a63e9abe48eef7 SHA512 4b37c56f2112471aa5f3003a1d867382ce1b7510afa0963f0ceeb2f8175ca601bb5bade9ea2038d44a1041f12233e364f138a635bb7b353d0a82aeb7d9d49b7f WHIRLPOOL 323bfd1b72341be6b14d71fd4f05f5005a0f8a387f9b050ef3c786531ea19e057aa67fb5737b5aa0c4ca0912ad697a39d8957d70bb6bb4056e81f406ade5a6b9
|
||||
|
@ -1,40 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/pygresql/pygresql-3.8.1.ebuild,v 1.17 2012/11/28 21:07:38 titanofold Exp $
|
||||
|
||||
EAPI="3"
|
||||
PYTHON_DEPEND="2"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*"
|
||||
|
||||
inherit distutils
|
||||
|
||||
MY_P="PyGreSQL-${PV}"
|
||||
|
||||
DESCRIPTION="A Python interface for the PostgreSQL database."
|
||||
HOMEPAGE="http://www.pygresql.org/"
|
||||
SRC_URI="ftp://ftp.pygresql.org/pub/distrib/${MY_P}.tgz"
|
||||
|
||||
LICENSE="POSTGRESQL"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 hppa ia64 ppc sparc x86"
|
||||
IUSE="doc"
|
||||
|
||||
DEPEND="dev-db/postgresql-base"
|
||||
RDEPEND="${DEPEND}
|
||||
dev-python/egenix-mx-base"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
DOCS="docs/*.txt"
|
||||
PYTHON_MODNAME="pg.py pgdb.py"
|
||||
|
||||
src_install() {
|
||||
distutils_src_install
|
||||
|
||||
if use doc; then
|
||||
insinto /usr/share/doc/${PF}/tutorial
|
||||
doins tutorial/* || die "doins failed"
|
||||
dohtml docs/*.{html,css} || die "dohtml failed"
|
||||
fi
|
||||
}
|
@ -1,39 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/pygresql/pygresql-4.0.ebuild,v 1.8 2014/01/16 20:17:22 ago Exp $
|
||||
|
||||
EAPI="3"
|
||||
PYTHON_DEPEND="2"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*"
|
||||
|
||||
inherit distutils
|
||||
|
||||
MY_P="PyGreSQL-${PV}"
|
||||
|
||||
DESCRIPTION="A Python interface for the PostgreSQL database."
|
||||
HOMEPAGE="http://www.pygresql.org/"
|
||||
SRC_URI="ftp://ftp.pygresql.org/pub/distrib/${MY_P}.tgz"
|
||||
|
||||
LICENSE="POSTGRESQL"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 ~hppa ~ia64 ~ppc ~sparc x86"
|
||||
IUSE="doc"
|
||||
|
||||
DEPEND="dev-db/postgresql-base"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
DOCS="docs/*.txt"
|
||||
PYTHON_MODNAME="pg.py pgdb.py"
|
||||
|
||||
src_install() {
|
||||
distutils_src_install
|
||||
|
||||
if use doc; then
|
||||
insinto /usr/share/doc/${PF}/tutorial
|
||||
doins tutorial/* || die "doins failed"
|
||||
dohtml docs/*.{html,css} || die "dohtml failed"
|
||||
fi
|
||||
}
|
@ -1,125 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/swi-prolog/swi-prolog-7.1.3.ebuild,v 1.1 2013/12/16 15:15:37 keri Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit eutils flag-o-matic java-pkg-opt-2 multilib
|
||||
|
||||
PATCHSET_VER="0"
|
||||
|
||||
DESCRIPTION="free, small, and standard compliant Prolog compiler"
|
||||
HOMEPAGE="http://www.swi-prolog.org/"
|
||||
SRC_URI="http://www.swi-prolog.org/download/devel/src/pl-${PV}.tar.gz
|
||||
mirror://gentoo/${P}-gentoo-patchset-${PATCHSET_VER}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
||||
IUSE="archive debug doc +gmp hardened java minimal odbc +readline ssl static-libs test zlib X"
|
||||
|
||||
RDEPEND="sys-libs/ncurses
|
||||
archive? ( app-arch/libarchive )
|
||||
zlib? ( sys-libs/zlib )
|
||||
odbc? ( dev-db/unixODBC )
|
||||
readline? ( sys-libs/readline )
|
||||
gmp? ( dev-libs/gmp )
|
||||
ssl? ( dev-libs/openssl )
|
||||
java? ( >=virtual/jdk-1.4 )
|
||||
X? (
|
||||
virtual/jpeg
|
||||
x11-libs/libX11
|
||||
x11-libs/libXft
|
||||
x11-libs/libXpm
|
||||
x11-libs/libXt
|
||||
x11-libs/libICE
|
||||
x11-libs/libSM )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
X? ( x11-proto/xproto )
|
||||
java? ( test? ( =dev-java/junit-3.8* ) )"
|
||||
|
||||
S="${WORKDIR}/pl-${PV}"
|
||||
|
||||
src_prepare() {
|
||||
EPATCH_FORCE=yes
|
||||
EPATCH_SUFFIX=patch
|
||||
epatch "${WORKDIR}"/${PV}
|
||||
|
||||
# OSX/Intel ld doesn't like an archive without table of contents
|
||||
sed -i -e 's/-cru/-scru/' packages/nlp/libstemmer_c/Makefile.pl || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
append-flags -fno-strict-aliasing
|
||||
use ppc && append-flags -mno-altivec
|
||||
use hardened && append-flags -fno-unit-at-a-time
|
||||
use debug && append-flags -DO_DEBUG
|
||||
|
||||
# ARCH is used in the configure script to figure out host and target
|
||||
# specific stuff
|
||||
export ARCH=${CHOST}
|
||||
|
||||
export CC_FOR_BUILD=$(tc-getBUILD_CC)
|
||||
|
||||
cd "${S}"/src || die
|
||||
econf \
|
||||
--libdir="${EPREFIX}"/usr/$(get_libdir) \
|
||||
$(use_enable gmp) \
|
||||
$(use_enable readline) \
|
||||
$(use_enable static-libs static) \
|
||||
--enable-shared \
|
||||
--enable-custom-flags COFLAGS="${CFLAGS}"
|
||||
|
||||
if ! use minimal ; then
|
||||
local jpltestconf
|
||||
if use java && use test ; then
|
||||
jpltestconf="--with-junit=$(java-config --classpath junit)"
|
||||
fi
|
||||
|
||||
cd "${S}/packages" || die
|
||||
econf \
|
||||
--libdir="${EPREFIX}"/usr/$(get_libdir) \
|
||||
$(use_with archive) \
|
||||
$(use_with java jpl) \
|
||||
${jpltestconf} \
|
||||
$(use_with odbc) \
|
||||
$(use_with ssl) \
|
||||
$(use_with X xpce) \
|
||||
$(use_with zlib) \
|
||||
COFLAGS='"${CFLAGS}"'
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cd "${S}"/src || die
|
||||
emake
|
||||
|
||||
if ! use minimal ; then
|
||||
cd "${S}/packages" || die
|
||||
emake
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cd "${S}/src" || die
|
||||
emake check
|
||||
|
||||
if ! use minimal ; then
|
||||
cd "${S}/packages" || die
|
||||
emake check
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake -C src DESTDIR="${D}" install
|
||||
|
||||
if ! use minimal ; then
|
||||
emake -C packages DESTDIR="${D}" install
|
||||
if use doc ; then
|
||||
emake -C packages DESTDIR="${D}" html-install
|
||||
fi
|
||||
fi
|
||||
|
||||
dodoc ReleaseNotes/relnotes-5.10 INSTALL README VERSION
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/swi-prolog/swi-prolog-7.1.2.ebuild,v 1.1 2013/12/10 10:16:45 keri Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/swi-prolog/swi-prolog-7.1.5.ebuild,v 1.1 2014/01/27 11:45:19 keri Exp $
|
||||
|
||||
EAPI=4
|
||||
|
@ -1,7 +1,3 @@
|
||||
DIST nss-3.14.1-add_spi+cacerts_ca_certs.patch 25018 SHA256 82ca25982828fd7153ad15fc6e81408c115476eeeb4045d3a71469380b56824b SHA512 2aafbd972b073061bfd66a66a4b50060691957f2910f716f7a69d22d655c499f186f05db2101bea5248a00949f339327ba8bfffec024c61c8ee908766201ae00 WHIRLPOOL c9fe397e316dac7983b187acf7227078ebd8f8da5df53f77f2564489e85f123c4d2afb88d56e8dc14b9ebfffe8a71ade4724b3c1ea683c5c4c487cb3a64eda43
|
||||
DIST nss-3.15-pem-support-20130617.patch.xz 27800 SHA256 01885877f12b0460798760617c9b0a1f8ed05ad0130e924211bd73fc344535cc SHA512 ebf0633e1683b3b9efe340d1117e02f1ced7e8381c7e867fff77efc3c41df1a32f017b18816ae6a04b35b5006c83e557c47a13ae576f50a84f9770c321dfa34b WHIRLPOOL 88f5edc621ca7862dc2e433836e11caa60752dc8f95bc7f49bcf07cdd0b3d8f2d7642ee02b018b8429a3e358e252ecdf3de40a1b12fab1f0fa13ca360e02a53c
|
||||
DIST nss-3.15.2.tar.gz 6288669 SHA256 7b2c80d18c49581edbdb509cbf7afd61d8c53658f2a38ff20e224c1909faeddc SHA512 f19889115ebd9f3214ee4faef11764d30936522c55aebe31bbed22073a39ca025559aa90ed96c973384b4f404c7179cffd212a63406e79f50213c0c991bb1c9e WHIRLPOOL 4464f0e56415871f22d89bd9c97c750088066d454d4d643f8475379e6372fa4f3a0839f49949d4024babfe1500250ef60d40358fca52e5133ee45ddc02bc2efd
|
||||
DIST nss-3.15.3.1.tar.gz 6289657 SHA256 607a913882540df81f74152e8aa492e0dd09c5d3f2c7321f18c69ee501fc6ba5 SHA512 a6b93df711a5af32afc29629132c72b3b93b880c0072916d892840088d23c0cf1c8db211a2f0ced9a97b5f80be2c9debdce9829a2a428be7bb4a7b62a91d9ab7 WHIRLPOOL 77a907ff069ff432e1aecf56ebcb37821310bde8628d949178e3f90483b16248b85a283db9dd19fe76934543b7ad48c495682cd5bcf035a7548aaa6b69489179
|
||||
DIST nss-3.15.3.tar.gz 6288990 SHA256 ec5f01f7d9f42cf8ad3f95c7f8921bde583df9297c83dc9062930462e3717a18 SHA512 54ad1ab7c589a7a9f866a8e6d9ef2827321a03959f9ea28c6a931d17594f433e951cc253950f205bc19dde457562ccd91e6c412fa02fb6a96611b392341f87ba WHIRLPOOL 4d5336d8a745587f70249a06958f56787ec731dc1eab7ba6db57b177cb51eae3c2028f2094b98cecdfbd789e6e80e43ffba8f2d2c20dbbbb5066fd2636d5c6d1
|
||||
DIST nss-3.15.4-pem-support-20140109.patch.xz 28400 SHA256 bcdd3decd9a7e33e240af899ead32fb92c9bf623bc99fc4b60ca4e08bcf92b82 SHA512 59066b73357ae96d3f18749b8f3bd07548d8f5e6a7b8b1f2bf227ac95ee6d3ad8ccfa60471de41f7b73f37db8e80e948c34109c69e96e958be094140e026504e WHIRLPOOL b08f463a6f699957737f3d7dda8e25e15658097d8a538c2596b94c55777afdf6526ab041e617c54ae709bdce4f1acc2aa19da619eb98e128a1d0cd0dc1de230d
|
||||
DIST nss-3.15.4.tar.gz 6366271 SHA256 14d69a0735c5af6b3cc12591f7ebf272203e889f09104182148091d0af682d7c SHA512 21ca81b636f7e230715556bc874d5c1c4f370c6fe57a39cb12fa349d0414a88e13aa931060613a793f7267868e026eaf167cbab5f2a5e8759e7a4b176d97fc6a WHIRLPOOL 7ebf8a60e7db5ee8e90137430f1b97d591fc11d02771aac027a1ff702f17ff74a8c78f4f77fb92aab1d10d6e0ff63d2e72e4bbf3d489ba60d778cb02868c2ec6
|
||||
|
@ -1,10 +0,0 @@
|
||||
--- nss-3.12.6b/mozilla/security/coreconf/Linux.mk-old 2010-02-11 12:43:26.000000000 -0600
|
||||
+++ nss-3.12.6b/mozilla/security/coreconf/Linux.mk 2010-02-14 09:13:53.962449644 -0600
|
||||
@@ -120,6 +120,7 @@
|
||||
ifdef MOZ_DEBUG_SYMBOLS
|
||||
OPTIMIZER += -gstabs+
|
||||
endif
|
||||
+OPTIMIZER += -fno-strict-aliasing
|
||||
endif
|
||||
|
||||
|
@ -1,243 +0,0 @@
|
||||
diff -urN a/mozilla/security/nss/config/Makefile b/mozilla/security/nss/config/Makefile
|
||||
--- a/mozilla/security/nss/config/Makefile 1969-12-31 18:00:00.000000000 -0600
|
||||
+++ b/mozilla/security/nss/config/Makefile 2012-12-15 07:27:20.650148987 -0600
|
||||
@@ -0,0 +1,40 @@
|
||||
+CORE_DEPTH = ../..
|
||||
+DEPTH = ../..
|
||||
+
|
||||
+include $(CORE_DEPTH)/coreconf/config.mk
|
||||
+
|
||||
+NSS_MAJOR_VERSION = `grep "NSS_VMAJOR" ../lib/nss/nss.h | awk '{print $$3}'`
|
||||
+NSS_MINOR_VERSION = `grep "NSS_VMINOR" ../lib/nss/nss.h | awk '{print $$3}'`
|
||||
+NSS_PATCH_VERSION = `grep "NSS_VPATCH" ../lib/nss/nss.h | awk '{print $$3}'`
|
||||
+PREFIX = /usr
|
||||
+
|
||||
+all: export libs
|
||||
+
|
||||
+export:
|
||||
+ # Create the nss.pc file
|
||||
+ mkdir -p $(DIST)/lib/pkgconfig
|
||||
+ sed -e "s,@prefix@,$(PREFIX)," \
|
||||
+ -e "s,@exec_prefix@,\$${prefix}," \
|
||||
+ -e "s,@libdir@,\$${prefix}/gentoo/nss," \
|
||||
+ -e "s,@includedir@,\$${prefix}/include/nss," \
|
||||
+ -e "s,@NSS_MAJOR_VERSION@,$(NSS_MAJOR_VERSION),g" \
|
||||
+ -e "s,@NSS_MINOR_VERSION@,$(NSS_MINOR_VERSION)," \
|
||||
+ -e "s,@NSS_PATCH_VERSION@,$(NSS_PATCH_VERSION)," \
|
||||
+ nss.pc.in > nss.pc
|
||||
+ chmod 0644 nss.pc
|
||||
+ ln -sf ../../../../../security/nss/config/nss.pc $(DIST)/lib/pkgconfig
|
||||
+
|
||||
+ # Create the nss-config script
|
||||
+ mkdir -p $(DIST)/bin
|
||||
+ sed -e "s,@prefix@,$(PREFIX)," \
|
||||
+ -e "s,@NSS_MAJOR_VERSION@,$(NSS_MAJOR_VERSION)," \
|
||||
+ -e "s,@NSS_MINOR_VERSION@,$(NSS_MINOR_VERSION)," \
|
||||
+ -e "s,@NSS_PATCH_VERSION@,$(NSS_PATCH_VERSION)," \
|
||||
+ nss-config.in > nss-config
|
||||
+ chmod 0755 nss-config
|
||||
+ ln -sf ../../../../security/nss/config/nss-config $(DIST)/bin
|
||||
+
|
||||
+libs:
|
||||
+
|
||||
+dummy: all export libs
|
||||
+
|
||||
diff -urN a/mozilla/security/nss/config/nss-config.in b/mozilla/security/nss/config/nss-config.in
|
||||
--- a/mozilla/security/nss/config/nss-config.in 1969-12-31 18:00:00.000000000 -0600
|
||||
+++ b/mozilla/security/nss/config/nss-config.in 2012-12-15 07:27:20.651148959 -0600
|
||||
@@ -0,0 +1,145 @@
|
||||
+#!/bin/sh
|
||||
+
|
||||
+prefix=@prefix@
|
||||
+
|
||||
+major_version=@NSS_MAJOR_VERSION@
|
||||
+minor_version=@NSS_MINOR_VERSION@
|
||||
+patch_version=@NSS_PATCH_VERSION@
|
||||
+
|
||||
+usage()
|
||||
+{
|
||||
+ cat <<EOF
|
||||
+Usage: nss-config [OPTIONS] [LIBRARIES]
|
||||
+Options:
|
||||
+ [--prefix[=DIR]]
|
||||
+ [--exec-prefix[=DIR]]
|
||||
+ [--includedir[=DIR]]
|
||||
+ [--libdir[=DIR]]
|
||||
+ [--version]
|
||||
+ [--libs]
|
||||
+ [--cflags]
|
||||
+Dynamic Libraries:
|
||||
+ nss
|
||||
+ ssl
|
||||
+ smime
|
||||
+ nssutil
|
||||
+EOF
|
||||
+ exit $1
|
||||
+}
|
||||
+
|
||||
+if test $# -eq 0; then
|
||||
+ usage 1 1>&2
|
||||
+fi
|
||||
+
|
||||
+lib_ssl=yes
|
||||
+lib_smime=yes
|
||||
+lib_nss=yes
|
||||
+lib_nssutil=yes
|
||||
+
|
||||
+while test $# -gt 0; do
|
||||
+ case "$1" in
|
||||
+ -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
||||
+ *) optarg= ;;
|
||||
+ esac
|
||||
+
|
||||
+ case $1 in
|
||||
+ --prefix=*)
|
||||
+ prefix=$optarg
|
||||
+ ;;
|
||||
+ --prefix)
|
||||
+ echo_prefix=yes
|
||||
+ ;;
|
||||
+ --exec-prefix=*)
|
||||
+ exec_prefix=$optarg
|
||||
+ ;;
|
||||
+ --exec-prefix)
|
||||
+ echo_exec_prefix=yes
|
||||
+ ;;
|
||||
+ --includedir=*)
|
||||
+ includedir=$optarg
|
||||
+ ;;
|
||||
+ --includedir)
|
||||
+ echo_includedir=yes
|
||||
+ ;;
|
||||
+ --libdir=*)
|
||||
+ libdir=$optarg
|
||||
+ ;;
|
||||
+ --libdir)
|
||||
+ echo_libdir=yes
|
||||
+ ;;
|
||||
+ --version)
|
||||
+ echo ${major_version}.${minor_version}.${patch_version}
|
||||
+ ;;
|
||||
+ --cflags)
|
||||
+ echo_cflags=yes
|
||||
+ ;;
|
||||
+ --libs)
|
||||
+ echo_libs=yes
|
||||
+ ;;
|
||||
+ ssl)
|
||||
+ lib_ssl=yes
|
||||
+ ;;
|
||||
+ smime)
|
||||
+ lib_smime=yes
|
||||
+ ;;
|
||||
+ nss)
|
||||
+ lib_nss=yes
|
||||
+ ;;
|
||||
+ nssutil)
|
||||
+ lib_nssutil=yes
|
||||
+ ;;
|
||||
+ *)
|
||||
+ usage 1 1>&2
|
||||
+ ;;
|
||||
+ esac
|
||||
+ shift
|
||||
+done
|
||||
+
|
||||
+# Set variables that may be dependent upon other variables
|
||||
+if test -z "$exec_prefix"; then
|
||||
+ exec_prefix=`pkg-config --variable=exec_prefix nss`
|
||||
+fi
|
||||
+if test -z "$includedir"; then
|
||||
+ includedir=`pkg-config --variable=includedir nss`
|
||||
+fi
|
||||
+if test -z "$libdir"; then
|
||||
+ libdir=`pkg-config --variable=libdir nss`
|
||||
+fi
|
||||
+
|
||||
+if test "$echo_prefix" = "yes"; then
|
||||
+ echo $prefix
|
||||
+fi
|
||||
+
|
||||
+if test "$echo_exec_prefix" = "yes"; then
|
||||
+ echo $exec_prefix
|
||||
+fi
|
||||
+
|
||||
+if test "$echo_includedir" = "yes"; then
|
||||
+ echo $includedir
|
||||
+fi
|
||||
+
|
||||
+if test "$echo_libdir" = "yes"; then
|
||||
+ echo $libdir
|
||||
+fi
|
||||
+
|
||||
+if test "$echo_cflags" = "yes"; then
|
||||
+ echo -I$includedir
|
||||
+fi
|
||||
+
|
||||
+if test "$echo_libs" = "yes"; then
|
||||
+ libdirs=""
|
||||
+ if test -n "$lib_ssl"; then
|
||||
+ libdirs="$libdirs -lssl${major_version}"
|
||||
+ fi
|
||||
+ if test -n "$lib_smime"; then
|
||||
+ libdirs="$libdirs -lsmime${major_version}"
|
||||
+ fi
|
||||
+ if test -n "$lib_nss"; then
|
||||
+ libdirs="$libdirs -lnss${major_version}"
|
||||
+ fi
|
||||
+ if test -n "$lib_nssutil"; then
|
||||
+ libdirs="$libdirs -lnssutil${major_version}"
|
||||
+ fi
|
||||
+ echo $libdirs
|
||||
+fi
|
||||
+
|
||||
diff -urN a/mozilla/security/nss/config/nss.pc.in b/mozilla/security/nss/config/nss.pc.in
|
||||
--- a/mozilla/security/nss/config/nss.pc.in 1969-12-31 18:00:00.000000000 -0600
|
||||
+++ b/mozilla/security/nss/config/nss.pc.in 2012-12-15 07:27:20.651148959 -0600
|
||||
@@ -0,0 +1,12 @@
|
||||
+prefix=@prefix@
|
||||
+exec_prefix=@exec_prefix@
|
||||
+libdir=@libdir@
|
||||
+includedir=@includedir@
|
||||
+
|
||||
+Name: NSS
|
||||
+Description: Network Security Services
|
||||
+Version: @NSS_MAJOR_VERSION@.@NSS_MINOR_VERSION@.@NSS_PATCH_VERSION@
|
||||
+Requires: nspr >= 4.8
|
||||
+Libs: -lssl3 -lsmime3 -lnss3 -lnssutil3
|
||||
+Cflags: -I${includedir}
|
||||
+
|
||||
diff -urN a/mozilla/security/nss/Makefile b/mozilla/security/nss/Makefile
|
||||
--- a/mozilla/security/nss/Makefile 2012-11-13 19:14:07.000000000 -0600
|
||||
+++ b/mozilla/security/nss/Makefile 2012-12-15 07:27:57.235162137 -0600
|
||||
@@ -44,7 +44,7 @@
|
||||
# (7) Execute "local" rules. (OPTIONAL). #
|
||||
#######################################################################
|
||||
|
||||
-nss_build_all: build_coreconf build_nspr build_dbm all
|
||||
+nss_build_all: build_coreconf build_dbm all
|
||||
|
||||
nss_clean_all: clobber_coreconf clobber_nspr clobber_dbm clobber
|
||||
|
||||
@@ -106,12 +106,6 @@
|
||||
--with-dist-prefix='$(NSPR_PREFIX)' \
|
||||
--with-dist-includedir='$(NSPR_PREFIX)/include'
|
||||
|
||||
-build_nspr: $(NSPR_CONFIG_STATUS)
|
||||
- $(MAKE) -C $(CORE_DEPTH)/../nsprpub/$(OBJDIR_NAME)
|
||||
-
|
||||
-clobber_nspr: $(NSPR_CONFIG_STATUS)
|
||||
- $(MAKE) -C $(CORE_DEPTH)/../nsprpub/$(OBJDIR_NAME) clobber
|
||||
-
|
||||
build_dbm:
|
||||
ifdef NSS_DISABLE_DBM
|
||||
@echo "skipping the build of DBM"
|
||||
diff -urN a/mozilla/security/nss/manifest.mn b/mozilla/security/nss/manifest.mn
|
||||
--- a/mozilla/security/nss/manifest.mn 2012-03-20 09:46:49.000000000 -0500
|
||||
+++ b/mozilla/security/nss/manifest.mn 2012-12-15 07:27:20.652148933 -0600
|
||||
@@ -10,6 +10,6 @@
|
||||
|
||||
RELEASE = nss
|
||||
|
||||
-DIRS = lib cmd
|
||||
+DIRS = lib cmd config
|
@ -1,66 +0,0 @@
|
||||
--- nss-3.14.2/mozilla/security/coreconf/Linux.mk
|
||||
+++ nss-3.14.2/mozilla/security/coreconf/Linux.mk
|
||||
@@ -50,21 +50,28 @@
|
||||
else
|
||||
ifeq ($(OS_TEST),alpha)
|
||||
OS_REL_CFLAGS = -D_ALPHA_
|
||||
CPU_ARCH = alpha
|
||||
else
|
||||
ifeq ($(OS_TEST),x86_64)
|
||||
ifeq ($(USE_64),1)
|
||||
CPU_ARCH = x86_64
|
||||
+ ARCHFLAG = -m64
|
||||
+else
|
||||
+ifeq ($(USE_x32),1)
|
||||
+ OS_REL_CFLAGS = -Di386
|
||||
+ CPU_ARCH = x86
|
||||
+ ARCHFLAG = -mx32
|
||||
else
|
||||
OS_REL_CFLAGS = -Di386
|
||||
CPU_ARCH = x86
|
||||
ARCHFLAG = -m32
|
||||
endif
|
||||
+endif
|
||||
else
|
||||
ifeq ($(OS_TEST),sparc64)
|
||||
CPU_ARCH = sparc
|
||||
else
|
||||
ifeq (,$(filter-out arm% sa110,$(OS_TEST)))
|
||||
CPU_ARCH = arm
|
||||
else
|
||||
ifeq (,$(filter-out parisc%,$(OS_TEST)))
|
||||
--- nss-3.14.2/mozilla/security/nss/lib/freebl/Makefile
|
||||
+++ nss-3.14.2/mozilla/security/nss/lib/freebl/Makefile
|
||||
@@ -188,22 +188,26 @@
|
||||
# comment the next two lines to turn off intel HW accelleration
|
||||
DEFINES += -DUSE_HW_AES
|
||||
ASFILES += intel-aes.s intel-gcm.s
|
||||
EXTRA_SRCS += intel-gcm-wrap.c
|
||||
INTEL_GCM = 1
|
||||
MPI_SRCS += mpi_amd64.c mp_comba.c
|
||||
endif
|
||||
ifeq ($(CPU_ARCH),x86)
|
||||
- ASFILES = mpi_x86.s
|
||||
- DEFINES += -DMP_ASSEMBLY_MULTIPLY -DMP_ASSEMBLY_SQUARE
|
||||
- DEFINES += -DMP_ASSEMBLY_DIV_2DX1D
|
||||
- DEFINES += -DMP_CHAR_STORE_SLOW -DMP_IS_LITTLE_ENDIAN
|
||||
- # The floating point ECC code doesn't work on Linux x86 (bug 311432).
|
||||
- #ECL_USE_FP = 1
|
||||
+ ifeq ($(USE_x32),1)
|
||||
+ DEFINES += -DMP_CHAR_STORE_SLOW -DMP_IS_LITTLE_ENDIAN
|
||||
+ else
|
||||
+ ASFILES = mpi_x86.s
|
||||
+ DEFINES += -DMP_ASSEMBLY_MULTIPLY -DMP_ASSEMBLY_SQUARE
|
||||
+ DEFINES += -DMP_ASSEMBLY_DIV_2DX1D
|
||||
+ DEFINES += -DMP_CHAR_STORE_SLOW -DMP_IS_LITTLE_ENDIAN
|
||||
+ # The floating point ECC code doesn't work on Linux x86 (bug 311432).
|
||||
+ #ECL_USE_FP = 1
|
||||
+ endif
|
||||
endif
|
||||
ifeq ($(CPU_ARCH),arm)
|
||||
DEFINES += -DMP_ASSEMBLY_MULTIPLY -DMP_ASSEMBLY_SQUARE
|
||||
DEFINES += -DMP_USE_UINT_DIGIT
|
||||
DEFINES += -DSHA_NO_LONG_LONG # avoid 64-bit arithmetic in SHA512
|
||||
MPI_SRCS += mpi_arm.c
|
||||
endif
|
||||
endif # Linux
|
@ -1,407 +0,0 @@
|
||||
From d6dbecfea317a468be12423595e584f43d84d8ec Mon Sep 17 00:00:00 2001
|
||||
From: Elio Maldonado <emaldona@redhat.com>
|
||||
Date: Sat, 9 Feb 2013 17:11:00 -0500
|
||||
Subject: [PATCH] Sync up with upstream softokn changes
|
||||
|
||||
- Disable RSA OEP case in FormatBlock, RSA_OAEP support is experimental and in a state of flux
|
||||
- Numerous change upstream due to the work for TLS/DTLS 'Lucky 13' vulnerability CVE-2013-0169
|
||||
- It now compiles with the NSS_3_14_3_BETA1 source
|
||||
---
|
||||
mozilla/security/nss/lib/ckfw/pem/rsawrapr.c | 338 +++++++-------------------
|
||||
1 files changed, 82 insertions(+), 256 deletions(-)
|
||||
|
||||
diff --git a/mozilla/security/nss/lib/ckfw/pem/rsawrapr.c b/mozilla/security/nss/lib/ckfw/pem/rsawrapr.c
|
||||
index 5ac4f39..3780d30 100644
|
||||
--- a/mozilla/security/nss/lib/ckfw/pem/rsawrapr.c
|
||||
+++ b/mozilla/security/nss/lib/ckfw/pem/rsawrapr.c
|
||||
@@ -46,6 +46,7 @@
|
||||
#include "sechash.h"
|
||||
#include "base.h"
|
||||
|
||||
+#include "lowkeyi.h"
|
||||
#include "secerr.h"
|
||||
|
||||
#define RSA_BLOCK_MIN_PAD_LEN 8
|
||||
@@ -54,9 +55,8 @@
|
||||
#define RSA_BLOCK_PRIVATE_PAD_OCTET 0xff
|
||||
#define RSA_BLOCK_AFTER_PAD_OCTET 0x00
|
||||
|
||||
-#define OAEP_SALT_LEN 8
|
||||
-#define OAEP_PAD_LEN 8
|
||||
-#define OAEP_PAD_OCTET 0x00
|
||||
+/* Needed for RSA-PSS functions */
|
||||
+static const unsigned char eightZeros[] = { 0, 0, 0, 0, 0, 0, 0, 0 };
|
||||
|
||||
#define FLAT_BUFSIZE 512 /* bytes to hold flattened SHA1Context. */
|
||||
|
||||
@@ -78,127 +78,39 @@ pem_PublicModulusLen(NSSLOWKEYPublicKey *pubk)
|
||||
return 0;
|
||||
}
|
||||
|
||||
-static SHA1Context *SHA1_CloneContext(SHA1Context * original)
|
||||
-{
|
||||
- SHA1Context *clone = NULL;
|
||||
- unsigned char *pBuf;
|
||||
- int sha1ContextSize = SHA1_FlattenSize(original);
|
||||
- SECStatus frv;
|
||||
- unsigned char buf[FLAT_BUFSIZE];
|
||||
-
|
||||
- PORT_Assert(sizeof buf >= sha1ContextSize);
|
||||
- if (sizeof buf >= sha1ContextSize) {
|
||||
- pBuf = buf;
|
||||
- } else {
|
||||
- pBuf = nss_ZAlloc(NULL, sha1ContextSize);
|
||||
- if (!pBuf)
|
||||
- goto done;
|
||||
- }
|
||||
-
|
||||
- frv = SHA1_Flatten(original, pBuf);
|
||||
- if (frv == SECSuccess) {
|
||||
- clone = SHA1_Resurrect(pBuf, NULL);
|
||||
- memset(pBuf, 0, sha1ContextSize);
|
||||
- }
|
||||
- done:
|
||||
- if (pBuf != buf)
|
||||
- nss_ZFreeIf(pBuf);
|
||||
- return clone;
|
||||
+/* Constant time comparison of a single byte.
|
||||
+ * Returns 1 iff a == b, otherwise returns 0.
|
||||
+ * Note: For ranges of bytes, use constantTimeCompare.
|
||||
+ */
|
||||
+static unsigned char constantTimeEQ8(unsigned char a, unsigned char b) {
|
||||
+ unsigned char c = ~(a - b | b - a);
|
||||
+ c >>= 7;
|
||||
+ return c;
|
||||
}
|
||||
|
||||
-/*
|
||||
- * Modify data by XORing it with a special hash of salt.
|
||||
+/* Constant time comparison of a range of bytes.
|
||||
+ * Returns 1 iff len bytes of a are identical to len bytes of b, otherwise
|
||||
+ * returns 0.
|
||||
*/
|
||||
-static SECStatus
|
||||
-oaep_xor_with_h1(unsigned char *data, unsigned int datalen,
|
||||
- unsigned char *salt, unsigned int saltlen)
|
||||
-{
|
||||
- SHA1Context *sha1cx;
|
||||
- unsigned char *dp, *dataend;
|
||||
- unsigned char end_octet;
|
||||
-
|
||||
- sha1cx = SHA1_NewContext();
|
||||
- if (sha1cx == NULL) {
|
||||
- return SECFailure;
|
||||
- }
|
||||
-
|
||||
- /*
|
||||
- * Get a hash of salt started; we will use it several times,
|
||||
- * adding in a different end octet (x00, x01, x02, ...).
|
||||
- */
|
||||
- SHA1_Begin(sha1cx);
|
||||
- SHA1_Update(sha1cx, salt, saltlen);
|
||||
- end_octet = 0;
|
||||
-
|
||||
- dp = data;
|
||||
- dataend = data + datalen;
|
||||
-
|
||||
- while (dp < dataend) {
|
||||
- SHA1Context *sha1cx_h1;
|
||||
- unsigned int sha1len, sha1off;
|
||||
- unsigned char sha1[SHA1_LENGTH];
|
||||
-
|
||||
- /*
|
||||
- * Create hash of (salt || end_octet)
|
||||
- */
|
||||
- sha1cx_h1 = SHA1_CloneContext(sha1cx);
|
||||
- SHA1_Update(sha1cx_h1, &end_octet, 1);
|
||||
- SHA1_End(sha1cx_h1, sha1, &sha1len, sizeof(sha1));
|
||||
- SHA1_DestroyContext(sha1cx_h1, PR_TRUE);
|
||||
- PORT_Assert(sha1len == SHA1_LENGTH);
|
||||
-
|
||||
- /*
|
||||
- * XOR that hash with the data.
|
||||
- * When we have fewer than SHA1_LENGTH octets of data
|
||||
- * left to xor, use just the low-order ones of the hash.
|
||||
- */
|
||||
- sha1off = 0;
|
||||
- if ((dataend - dp) < SHA1_LENGTH)
|
||||
- sha1off = SHA1_LENGTH - (dataend - dp);
|
||||
- while (sha1off < SHA1_LENGTH)
|
||||
- *dp++ ^= sha1[sha1off++];
|
||||
-
|
||||
- /*
|
||||
- * Bump for next hash chunk.
|
||||
- */
|
||||
- end_octet++;
|
||||
- }
|
||||
-
|
||||
- SHA1_DestroyContext(sha1cx, PR_TRUE);
|
||||
- return SECSuccess;
|
||||
+static unsigned char constantTimeCompare(const unsigned char *a,
|
||||
+ const unsigned char *b,
|
||||
+ unsigned int len) {
|
||||
+ unsigned char tmp = 0;
|
||||
+ unsigned int i;
|
||||
+ for (i = 0; i < len; ++i, ++a, ++b)
|
||||
+ tmp |= *a ^ *b;
|
||||
+ return constantTimeEQ8(0x00, tmp);
|
||||
}
|
||||
|
||||
-/*
|
||||
- * Modify salt by XORing it with a special hash of data.
|
||||
+/* Constant time conditional.
|
||||
+ * Returns a if c is 1, or b if c is 0. The result is undefined if c is
|
||||
+ * not 0 or 1.
|
||||
*/
|
||||
-static SECStatus
|
||||
-oaep_xor_with_h2(unsigned char *salt, unsigned int saltlen,
|
||||
- unsigned char *data, unsigned int datalen)
|
||||
+static unsigned int constantTimeCondition(unsigned int c,
|
||||
+ unsigned int a,
|
||||
+ unsigned int b)
|
||||
{
|
||||
- unsigned char sha1[SHA1_LENGTH];
|
||||
- unsigned char *psalt, *psha1, *saltend;
|
||||
- SECStatus rv;
|
||||
-
|
||||
- /*
|
||||
- * Create a hash of data.
|
||||
- */
|
||||
- rv = SHA1_HashBuf(sha1, data, datalen);
|
||||
- if (rv != SECSuccess) {
|
||||
- return rv;
|
||||
- }
|
||||
-
|
||||
- /*
|
||||
- * XOR the low-order octets of that hash with salt.
|
||||
- */
|
||||
- PORT_Assert(saltlen <= SHA1_LENGTH);
|
||||
- saltend = salt + saltlen;
|
||||
- psalt = salt;
|
||||
- psha1 = sha1 + SHA1_LENGTH - saltlen;
|
||||
- while (psalt < saltend) {
|
||||
- *psalt++ ^= *psha1++;
|
||||
- }
|
||||
-
|
||||
- return SECSuccess;
|
||||
+ return (~(c - 1) & a) | ((c - 1) & b);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -212,7 +124,7 @@ static unsigned char *rsa_FormatOneBlock(unsigned modulusLen,
|
||||
unsigned char *block;
|
||||
unsigned char *bp;
|
||||
int padLen;
|
||||
- int i;
|
||||
+ int i, j;
|
||||
SECStatus rv;
|
||||
|
||||
block = (unsigned char *) nss_ZAlloc(NULL, modulusLen);
|
||||
@@ -260,124 +172,58 @@ static unsigned char *rsa_FormatOneBlock(unsigned modulusLen,
|
||||
*/
|
||||
case RSA_BlockPublic:
|
||||
|
||||
- /*
|
||||
- * 0x00 || BT || Pad || 0x00 || ActualData
|
||||
- * 1 1 padLen 1 data->len
|
||||
- * Pad is all non-zero random bytes.
|
||||
- */
|
||||
- padLen = modulusLen - data->len - 3;
|
||||
- PORT_Assert(padLen >= RSA_BLOCK_MIN_PAD_LEN);
|
||||
- if (padLen < RSA_BLOCK_MIN_PAD_LEN) {
|
||||
- nss_ZFreeIf(block);
|
||||
- return NULL;
|
||||
- }
|
||||
- for (i = 0; i < padLen; i++) {
|
||||
- /* Pad with non-zero random data. */
|
||||
- do {
|
||||
- rv = RNG_GenerateGlobalRandomBytes(bp + i, 1);
|
||||
- } while (rv == SECSuccess
|
||||
- && bp[i] == RSA_BLOCK_AFTER_PAD_OCTET);
|
||||
- if (rv != SECSuccess) {
|
||||
- nss_ZFreeIf(block);
|
||||
- return NULL;
|
||||
- }
|
||||
- }
|
||||
- bp += padLen;
|
||||
- *bp++ = RSA_BLOCK_AFTER_PAD_OCTET;
|
||||
- nsslibc_memcpy(bp, data->data, data->len);
|
||||
-
|
||||
- break;
|
||||
-
|
||||
- /*
|
||||
- * Blocks intended for public-key operation, using
|
||||
- * Optimal Asymmetric Encryption Padding (OAEP).
|
||||
- */
|
||||
- case RSA_BlockOAEP:
|
||||
- /*
|
||||
- * 0x00 || BT || Modified2(Salt) || Modified1(PaddedData)
|
||||
- * 1 1 OAEP_SALT_LEN OAEP_PAD_LEN + data->len [+ N]
|
||||
- *
|
||||
- * where:
|
||||
- * PaddedData is "Pad1 || ActualData [|| Pad2]"
|
||||
- * Salt is random data.
|
||||
- * Pad1 is all zeros.
|
||||
- * Pad2, if present, is random data.
|
||||
- * (The "modified" fields are all the same length as the original
|
||||
- * unmodified values; they are just xor'd with other values.)
|
||||
- *
|
||||
- * Modified1 is an XOR of PaddedData with a special octet
|
||||
- * string constructed of iterated hashing of Salt (see below).
|
||||
- * Modified2 is an XOR of Salt with the low-order octets of
|
||||
- * the hash of Modified1 (see farther below ;-).
|
||||
- *
|
||||
- * Whew!
|
||||
- */
|
||||
-
|
||||
-
|
||||
- /*
|
||||
- * Salt
|
||||
- */
|
||||
- rv = RNG_GenerateGlobalRandomBytes(bp, OAEP_SALT_LEN);
|
||||
- if (rv != SECSuccess) {
|
||||
- nss_ZFreeIf(block);
|
||||
- return NULL;
|
||||
- }
|
||||
- bp += OAEP_SALT_LEN;
|
||||
-
|
||||
- /*
|
||||
- * Pad1
|
||||
- */
|
||||
- nsslibc_memset(bp, OAEP_PAD_OCTET, OAEP_PAD_LEN);
|
||||
- bp += OAEP_PAD_LEN;
|
||||
-
|
||||
- /*
|
||||
- * Data
|
||||
- */
|
||||
- nsslibc_memcpy(bp, data->data, data->len);
|
||||
- bp += data->len;
|
||||
-
|
||||
- /*
|
||||
- * Pad2
|
||||
- */
|
||||
- if (bp < (block + modulusLen)) {
|
||||
- rv = RNG_GenerateGlobalRandomBytes(bp,
|
||||
- block - bp + modulusLen);
|
||||
- if (rv != SECSuccess) {
|
||||
- nss_ZFreeIf(block);
|
||||
- return NULL;
|
||||
- }
|
||||
- }
|
||||
-
|
||||
- /*
|
||||
- * Now we have the following:
|
||||
- * 0x00 || BT || Salt || PaddedData
|
||||
- * (From this point on, "Pad1 || Data [|| Pad2]" is treated
|
||||
- * as the one entity PaddedData.)
|
||||
- *
|
||||
- * We need to turn PaddedData into Modified1.
|
||||
- */
|
||||
- if (oaep_xor_with_h1(block + 2 + OAEP_SALT_LEN,
|
||||
- modulusLen - 2 - OAEP_SALT_LEN,
|
||||
- block + 2, OAEP_SALT_LEN) != SECSuccess) {
|
||||
- nss_ZFreeIf(block);
|
||||
- return NULL;
|
||||
- }
|
||||
-
|
||||
- /*
|
||||
- * Now we have:
|
||||
- * 0x00 || BT || Salt || Modified1(PaddedData)
|
||||
- *
|
||||
- * The remaining task is to turn Salt into Modified2.
|
||||
- */
|
||||
- if (oaep_xor_with_h2(block + 2, OAEP_SALT_LEN,
|
||||
- block + 2 + OAEP_SALT_LEN,
|
||||
- modulusLen - 2 - OAEP_SALT_LEN) !=
|
||||
- SECSuccess) {
|
||||
- nss_ZFreeIf(block);
|
||||
- return NULL;
|
||||
- }
|
||||
-
|
||||
- break;
|
||||
+ /*
|
||||
+ * 0x00 || BT || Pad || 0x00 || ActualData
|
||||
+ * 1 1 padLen 1 data->len
|
||||
+ * Pad is all non-zero random bytes.
|
||||
+ *
|
||||
+ * Build the block left to right.
|
||||
+ * Fill the entire block from Pad to the end with random bytes.
|
||||
+ * Use the bytes after Pad as a supply of extra random bytes from
|
||||
+ * which to find replacements for the zero bytes in Pad.
|
||||
+ * If we need more than that, refill the bytes after Pad with
|
||||
+ * new random bytes as necessary.
|
||||
+ */
|
||||
+ padLen = modulusLen - (data->len + 3);
|
||||
+ PORT_Assert (padLen >= RSA_BLOCK_MIN_PAD_LEN);
|
||||
+ if (padLen < RSA_BLOCK_MIN_PAD_LEN) {
|
||||
+ nss_ZFreeIf (block);
|
||||
+ return NULL;
|
||||
+ }
|
||||
+ j = modulusLen - 2;
|
||||
+ rv = RNG_GenerateGlobalRandomBytes(bp, j);
|
||||
+ if (rv == SECSuccess) {
|
||||
+ for (i = 0; i < padLen; ) {
|
||||
+ unsigned char repl;
|
||||
+ /* Pad with non-zero random data. */
|
||||
+ if (bp[i] != RSA_BLOCK_AFTER_PAD_OCTET) {
|
||||
+ ++i;
|
||||
+ continue;
|
||||
+ }
|
||||
+ if (j <= padLen) {
|
||||
+ rv = RNG_GenerateGlobalRandomBytes(bp + padLen,
|
||||
+ modulusLen - (2 + padLen));
|
||||
+ if (rv != SECSuccess)
|
||||
+ break;
|
||||
+ j = modulusLen - 2;
|
||||
+ }
|
||||
+ do {
|
||||
+ repl = bp[--j];
|
||||
+ } while (repl == RSA_BLOCK_AFTER_PAD_OCTET && j > padLen);
|
||||
+ if (repl != RSA_BLOCK_AFTER_PAD_OCTET) {
|
||||
+ bp[i++] = repl;
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+ if (rv != SECSuccess) {
|
||||
+ /*sftk_fatalError = PR_TRUE;*/
|
||||
+ nss_ZFreeIf (block);
|
||||
+ return NULL;
|
||||
+ }
|
||||
+ bp += padLen;
|
||||
+ *bp++ = RSA_BLOCK_AFTER_PAD_OCTET;
|
||||
+ nsslibc_memcpy(bp, data->data, data->len);
|
||||
+ break;
|
||||
|
||||
default:
|
||||
PORT_Assert(0);
|
||||
@@ -427,26 +273,6 @@ rsa_FormatBlock(SECItem * result, unsigned modulusLen,
|
||||
|
||||
break;
|
||||
|
||||
- case RSA_BlockOAEP:
|
||||
- /*
|
||||
- * 0x00 || BT || M1(Salt) || M2(Pad1||ActualData[||Pad2])
|
||||
- *
|
||||
- * The "2" below is the first octet + the second octet.
|
||||
- * (The other fields do not contain the clear values, but are
|
||||
- * the same length as the clear values.)
|
||||
- */
|
||||
- PORT_Assert(data->len <= (modulusLen - (2 + OAEP_SALT_LEN
|
||||
- + OAEP_PAD_LEN)));
|
||||
-
|
||||
- result->data = rsa_FormatOneBlock(modulusLen, blockType, data);
|
||||
- if (result->data == NULL) {
|
||||
- result->len = 0;
|
||||
- return SECFailure;
|
||||
- }
|
||||
- result->len = modulusLen;
|
||||
-
|
||||
- break;
|
||||
-
|
||||
case RSA_BlockRaw:
|
||||
/*
|
||||
* Pad || ActualData
|
||||
--
|
||||
1.7.1
|
||||
|
||||
|
@ -1,26 +0,0 @@
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=920899
|
||||
|
||||
diff -r 279078670022 security/nss/cmd/fipstest/fipstest.c
|
||||
--- a/security/nss/cmd/fipstest/fipstest.c Wed Mar 27 17:03:34 2013 -0400
|
||||
+++ b/security/nss/cmd/fipstest/fipstest.c Thu Sep 26 00:58:04 2013 -0400
|
||||
@@ -3616,10 +3616,10 @@ void hmac_test(char *reqfn)
|
||||
goto loser;
|
||||
}
|
||||
msg = PORT_ZAlloc(msgLen);
|
||||
- memset(msg, 0, msgLen);
|
||||
if (msg == NULL) {
|
||||
goto loser;
|
||||
}
|
||||
+ memset(msg, 0, msgLen);
|
||||
|
||||
req = fopen(reqfn, "r");
|
||||
resp = stdout;
|
||||
@@ -3677,7 +3677,7 @@ void hmac_test(char *reqfn)
|
||||
keyLen = 0;
|
||||
TLen = 0;
|
||||
memset(key, 0, sizeof key);
|
||||
- memset(msg, 0, sizeof msg);
|
||||
+ memset(msg, 0, msgLen);
|
||||
memset(HMAC, 0, sizeof HMAC);
|
||||
continue;
|
||||
}
|
@ -1,264 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/nss-3.15.2.ebuild,v 1.10 2013/10/09 17:10:05 ago Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils flag-o-matic multilib toolchain-funcs
|
||||
|
||||
NSPR_VER="4.10"
|
||||
RTM_NAME="NSS_${PV//./_}_RTM"
|
||||
|
||||
DESCRIPTION="Mozilla's Network Security Services library that implements PKI support"
|
||||
HOMEPAGE="http://www.mozilla.org/projects/security/pki/nss/"
|
||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/${P}.tar.gz
|
||||
http://dev.gentoo.org/~anarchy/patches/${PN}-3.14.1-add_spi+cacerts_ca_certs.patch
|
||||
http://dev.gentoo.org/~anarchy/patches/${PN}-3.15-pem-support-20130617.patch.xz"
|
||||
|
||||
LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="utils"
|
||||
|
||||
DEPEND="virtual/pkgconfig
|
||||
>=dev-libs/nspr-${NSPR_VER}"
|
||||
|
||||
RDEPEND=">=dev-libs/nspr-${NSPR_VER}
|
||||
>=dev-db/sqlite-3.5
|
||||
sys-libs/zlib"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
S="${WORKDIR}/${P}/${PN}"
|
||||
|
||||
src_setup() {
|
||||
export LC_ALL="C"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Custom changes for gentoo
|
||||
epatch "${FILESDIR}/${PN}-3.15-gentoo-fixups.patch"
|
||||
epatch "${FILESDIR}/${PN}-3.15-gentoo-fixup-warnings.patch"
|
||||
epatch "${DISTDIR}/${PN}-3.14.1-add_spi+cacerts_ca_certs.patch"
|
||||
epatch "${DISTDIR}/${PN}-3.15-pem-support-20130617.patch.xz"
|
||||
epatch "${FILESDIR}/${PN}-3.15-x32.patch"
|
||||
epatch "${FILESDIR}/${PN}-3.15.1-fipstest-warnings.patch"
|
||||
cd coreconf
|
||||
# hack nspr paths
|
||||
echo 'INCLUDES += -I$(DIST)/include/dbm' \
|
||||
>> headers.mk || die "failed to append include"
|
||||
|
||||
# modify install path
|
||||
sed -e 's:SOURCE_PREFIX = $(CORE_DEPTH)/\.\./dist:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' \
|
||||
-i source.mk
|
||||
|
||||
# Respect LDFLAGS
|
||||
sed -i -e 's/\$(MKSHLIB) -o/\$(MKSHLIB) \$(LDFLAGS) -o/g' rules.mk
|
||||
|
||||
# Ensure we stay multilib aware
|
||||
sed -i -e "/@libdir@/ s:lib64:$(get_libdir):" "${S}"/config/Makefile
|
||||
|
||||
# Fix pkgconfig file for Prefix
|
||||
sed -i -e "/^PREFIX =/s:= /usr:= ${EPREFIX}/usr:" \
|
||||
"${S}"/config/Makefile
|
||||
|
||||
epatch "${FILESDIR}/nss-3.14.2-solaris-gcc.patch"
|
||||
|
||||
# use host shlibsign if need be #436216
|
||||
if tc-is-cross-compiler ; then
|
||||
sed -i \
|
||||
-e 's:"${2}"/shlibsign:shlibsign:' \
|
||||
"${S}"/cmd/shlibsign/sign.sh
|
||||
fi
|
||||
|
||||
# dirty hack
|
||||
cd "${S}"
|
||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../freebl/\$(OBJDIR):" \
|
||||
lib/ssl/config.mk
|
||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../../lib/freebl/\$(OBJDIR):" \
|
||||
cmd/platlibs.mk
|
||||
}
|
||||
|
||||
nssarch() {
|
||||
# Most of the arches are the same as $ARCH
|
||||
local t=${1:-${CHOST}}
|
||||
case ${t} in
|
||||
hppa*) echo "parisc";;
|
||||
i?86*) echo "i686";;
|
||||
x86_64*) echo "x86_64";;
|
||||
*) tc-arch ${t};;
|
||||
esac
|
||||
}
|
||||
|
||||
nssbits() {
|
||||
local cc="${1}CC" cppflags="${1}CPPFLAGS" cflags="${1}CFLAGS"
|
||||
echo > "${T}"/test.c || die
|
||||
${!cc} ${!cppflags} ${!cflags} -c "${T}"/test.c -o "${T}"/test.o || die
|
||||
case $(file "${T}"/test.o) in
|
||||
*32-bit*x86-64*) echo USE_x32=1;;
|
||||
*64-bit*|*ppc64*|*x86_64*) echo USE_64=1;;
|
||||
*32-bit*|*ppc*|*i386*) ;;
|
||||
*) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
|
||||
esac
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
strip-flags
|
||||
|
||||
tc-export AR RANLIB {BUILD_,}{CC,PKG_CONFIG}
|
||||
local makeargs=(
|
||||
CC="${CC}"
|
||||
AR="${AR} rc \$@"
|
||||
RANLIB="${RANLIB}"
|
||||
OPTIMIZER=
|
||||
$(nssbits)
|
||||
)
|
||||
|
||||
# Take care of nspr settings #436216
|
||||
append-cppflags $(${PKG_CONFIG} nspr --cflags)
|
||||
append-ldflags $(${PKG_CONFIG} nspr --libs-only-L)
|
||||
unset NSPR_INCLUDE_DIR
|
||||
export NSPR_LIB_DIR=${T}/fake-dir
|
||||
|
||||
# Do not let `uname` be used.
|
||||
if use kernel_linux ; then
|
||||
makeargs+=(
|
||||
OS_TARGET=Linux
|
||||
OS_RELEASE=2.6
|
||||
OS_TEST="$(nssarch)"
|
||||
)
|
||||
fi
|
||||
|
||||
export BUILD_OPT=1
|
||||
export NSS_USE_SYSTEM_SQLITE=1
|
||||
export NSDISTMODE=copy
|
||||
export NSS_ENABLE_ECC=1
|
||||
export XCFLAGS="${CFLAGS} ${CPPFLAGS}"
|
||||
export FREEBL_NO_DEPEND=1
|
||||
export ASFLAGS=""
|
||||
|
||||
local d
|
||||
|
||||
# Build the host tools first.
|
||||
LDFLAGS="${BUILD_LDFLAGS}" \
|
||||
XCFLAGS="${BUILD_CFLAGS}" \
|
||||
emake -j1 -C coreconf \
|
||||
CC="${BUILD_CC}" \
|
||||
$(nssbits BUILD_) \
|
||||
|| die
|
||||
makeargs+=( NSINSTALL="${PWD}/$(find -type f -name nsinstall)" )
|
||||
|
||||
# Then build the target tools.
|
||||
for d in . lib/dbm ; do
|
||||
emake -j1 "${makeargs[@]}" -C ${d} || die "${d} make failed"
|
||||
done
|
||||
}
|
||||
|
||||
# Altering these 3 libraries breaks the CHK verification.
|
||||
# All of the following cause it to break:
|
||||
# - stripping
|
||||
# - prelink
|
||||
# - ELF signing
|
||||
# http://www.mozilla.org/projects/security/pki/nss/tech-notes/tn6.html
|
||||
# Either we have to NOT strip them, or we have to forcibly resign after
|
||||
# stripping.
|
||||
#local_libdir="$(get_libdir)"
|
||||
#export STRIP_MASK="
|
||||
# */${local_libdir}/libfreebl3.so*
|
||||
# */${local_libdir}/libnssdbm3.so*
|
||||
# */${local_libdir}/libsoftokn3.so*"
|
||||
|
||||
export NSS_CHK_SIGN_LIBS="freebl3 nssdbm3 softokn3"
|
||||
|
||||
generate_chk() {
|
||||
local shlibsign="$1"
|
||||
local libdir="$2"
|
||||
einfo "Resigning core NSS libraries for FIPS validation"
|
||||
shift 2
|
||||
local i
|
||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
local libname=lib${i}.so
|
||||
local chkname=lib${i}.chk
|
||||
"${shlibsign}" \
|
||||
-i "${libdir}"/${libname} \
|
||||
-o "${libdir}"/${chkname}.tmp \
|
||||
&& mv -f \
|
||||
"${libdir}"/${chkname}.tmp \
|
||||
"${libdir}"/${chkname} \
|
||||
|| die "Failed to sign ${libname}"
|
||||
done
|
||||
}
|
||||
|
||||
cleanup_chk() {
|
||||
local libdir="$1"
|
||||
shift 1
|
||||
local i
|
||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
local libfname="${libdir}/lib${i}.so"
|
||||
# If the major version has changed, then we have old chk files.
|
||||
[ ! -f "${libfname}" -a -f "${libfname}.chk" ] \
|
||||
&& rm -f "${libfname}.chk"
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd "${S}"/dist
|
||||
|
||||
dodir /usr/$(get_libdir)
|
||||
cp -L */lib/*$(get_libname) "${ED}"/usr/$(get_libdir) || die "copying shared libs failed"
|
||||
# We generate these after stripping the libraries, else they don't match.
|
||||
#cp -L */lib/*.chk "${ED}"/usr/$(get_libdir) || die "copying chk files failed"
|
||||
cp -L */lib/libcrmf.a "${ED}"/usr/$(get_libdir) || die "copying libs failed"
|
||||
|
||||
# Install nss-config and pkgconfig file
|
||||
dodir /usr/bin
|
||||
cp -L */bin/nss-config "${ED}"/usr/bin
|
||||
dodir /usr/$(get_libdir)/pkgconfig
|
||||
cp -L */lib/pkgconfig/nss.pc "${ED}"/usr/$(get_libdir)/pkgconfig
|
||||
|
||||
# all the include files
|
||||
insinto /usr/include/nss
|
||||
doins public/nss/*.h
|
||||
|
||||
local f nssutils
|
||||
# Always enabled because we need it for chk generation.
|
||||
nssutils="shlibsign"
|
||||
if use utils; then
|
||||
# The tests we do not need to install.
|
||||
#nssutils_test="bltest crmftest dbtest dertimetest
|
||||
#fipstest remtest sdrtest"
|
||||
nssutils="addbuiltin atob baddbdir btoa certcgi certutil checkcert
|
||||
cmsutil conflict crlutil derdump digest makepqg mangle modutil multinit
|
||||
nonspr10 ocspclnt oidcalc p7content p7env p7sign p7verify pk11mode
|
||||
pk12util pp rsaperf selfserv shlibsign signtool signver ssltap strsclnt
|
||||
symkeyutil tstclnt vfychain vfyserv"
|
||||
fi
|
||||
cd "${S}"/dist/*/bin/
|
||||
for f in ${nssutils}; do
|
||||
dobin ${f}
|
||||
done
|
||||
|
||||
# Prelink breaks the CHK files. We don't have any reliable way to run
|
||||
# shlibsign after prelink.
|
||||
local l libs=() liblist
|
||||
for l in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
libs+=("${EPREFIX}/usr/$(get_libdir)/lib${l}.so")
|
||||
done
|
||||
liblist=$(printf '%s:' "${libs[@]}")
|
||||
echo -e "PRELINK_PATH_MASK=${liblist%:}" > "${T}/90nss"
|
||||
doenvd "${T}/90nss"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# We must re-sign the libraries AFTER they are stripped.
|
||||
local shlibsign="${EROOT}/usr/bin/shlibsign"
|
||||
# See if we can execute it (cross-compiling & such). #436216
|
||||
"${shlibsign}" -h >&/dev/null
|
||||
if [[ $? -gt 1 ]] ; then
|
||||
shlibsign="shlibsign"
|
||||
fi
|
||||
generate_chk "${shlibsign}" "${EROOT}"/usr/$(get_libdir)
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
cleanup_chk "${EROOT}"/usr/$(get_libdir)
|
||||
}
|
@ -1,264 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/nss-3.15.3.1.ebuild,v 1.2 2013/12/13 14:11:07 jer Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils flag-o-matic multilib toolchain-funcs
|
||||
|
||||
NSPR_VER="4.10"
|
||||
RTM_NAME="NSS_${PV//./_}_RTM"
|
||||
|
||||
DESCRIPTION="Mozilla's Network Security Services library that implements PKI support"
|
||||
HOMEPAGE="http://www.mozilla.org/projects/security/pki/nss/"
|
||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/${P}.tar.gz
|
||||
http://dev.gentoo.org/~anarchy/patches/${PN}-3.14.1-add_spi+cacerts_ca_certs.patch
|
||||
http://dev.gentoo.org/~anarchy/patches/${PN}-3.15-pem-support-20130617.patch.xz"
|
||||
|
||||
LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="utils"
|
||||
|
||||
DEPEND="virtual/pkgconfig
|
||||
>=dev-libs/nspr-${NSPR_VER}"
|
||||
|
||||
RDEPEND=">=dev-libs/nspr-${NSPR_VER}
|
||||
>=dev-db/sqlite-3.5
|
||||
sys-libs/zlib"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
S="${WORKDIR}/${P}/${PN}"
|
||||
|
||||
src_setup() {
|
||||
export LC_ALL="C"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Custom changes for gentoo
|
||||
epatch "${FILESDIR}/${PN}-3.15-gentoo-fixups.patch"
|
||||
epatch "${FILESDIR}/${PN}-3.15-gentoo-fixup-warnings.patch"
|
||||
epatch "${DISTDIR}/${PN}-3.14.1-add_spi+cacerts_ca_certs.patch"
|
||||
epatch "${DISTDIR}/${PN}-3.15-pem-support-20130617.patch.xz"
|
||||
epatch "${FILESDIR}/${PN}-3.15-x32.patch"
|
||||
epatch "${FILESDIR}/${PN}-3.15.1-fipstest-warnings.patch"
|
||||
cd coreconf
|
||||
# hack nspr paths
|
||||
echo 'INCLUDES += -I$(DIST)/include/dbm' \
|
||||
>> headers.mk || die "failed to append include"
|
||||
|
||||
# modify install path
|
||||
sed -e 's:SOURCE_PREFIX = $(CORE_DEPTH)/\.\./dist:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' \
|
||||
-i source.mk
|
||||
|
||||
# Respect LDFLAGS
|
||||
sed -i -e 's/\$(MKSHLIB) -o/\$(MKSHLIB) \$(LDFLAGS) -o/g' rules.mk
|
||||
|
||||
# Ensure we stay multilib aware
|
||||
sed -i -e "/@libdir@/ s:lib64:$(get_libdir):" "${S}"/config/Makefile
|
||||
|
||||
# Fix pkgconfig file for Prefix
|
||||
sed -i -e "/^PREFIX =/s:= /usr:= ${EPREFIX}/usr:" \
|
||||
"${S}"/config/Makefile
|
||||
|
||||
epatch "${FILESDIR}/nss-3.14.2-solaris-gcc.patch"
|
||||
|
||||
# use host shlibsign if need be #436216
|
||||
if tc-is-cross-compiler ; then
|
||||
sed -i \
|
||||
-e 's:"${2}"/shlibsign:shlibsign:' \
|
||||
"${S}"/cmd/shlibsign/sign.sh
|
||||
fi
|
||||
|
||||
# dirty hack
|
||||
cd "${S}"
|
||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../freebl/\$(OBJDIR):" \
|
||||
lib/ssl/config.mk
|
||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../../lib/freebl/\$(OBJDIR):" \
|
||||
cmd/platlibs.mk
|
||||
}
|
||||
|
||||
nssarch() {
|
||||
# Most of the arches are the same as $ARCH
|
||||
local t=${1:-${CHOST}}
|
||||
case ${t} in
|
||||
hppa*) echo "parisc";;
|
||||
i?86*) echo "i686";;
|
||||
x86_64*) echo "x86_64";;
|
||||
*) tc-arch ${t};;
|
||||
esac
|
||||
}
|
||||
|
||||
nssbits() {
|
||||
local cc="${1}CC" cppflags="${1}CPPFLAGS" cflags="${1}CFLAGS"
|
||||
echo > "${T}"/test.c || die
|
||||
${!cc} ${!cppflags} ${!cflags} -c "${T}"/test.c -o "${T}"/test.o || die
|
||||
case $(file "${T}"/test.o) in
|
||||
*32-bit*x86-64*) echo USE_x32=1;;
|
||||
*64-bit*|*ppc64*|*x86_64*) echo USE_64=1;;
|
||||
*32-bit*|*ppc*|*i386*) ;;
|
||||
*) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
|
||||
esac
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
strip-flags
|
||||
|
||||
tc-export AR RANLIB {BUILD_,}{CC,PKG_CONFIG}
|
||||
local makeargs=(
|
||||
CC="${CC}"
|
||||
AR="${AR} rc \$@"
|
||||
RANLIB="${RANLIB}"
|
||||
OPTIMIZER=
|
||||
$(nssbits)
|
||||
)
|
||||
|
||||
# Take care of nspr settings #436216
|
||||
append-cppflags $(${PKG_CONFIG} nspr --cflags)
|
||||
append-ldflags $(${PKG_CONFIG} nspr --libs-only-L)
|
||||
unset NSPR_INCLUDE_DIR
|
||||
export NSPR_LIB_DIR=${T}/fake-dir
|
||||
|
||||
# Do not let `uname` be used.
|
||||
if use kernel_linux ; then
|
||||
makeargs+=(
|
||||
OS_TARGET=Linux
|
||||
OS_RELEASE=2.6
|
||||
OS_TEST="$(nssarch)"
|
||||
)
|
||||
fi
|
||||
|
||||
export BUILD_OPT=1
|
||||
export NSS_USE_SYSTEM_SQLITE=1
|
||||
export NSDISTMODE=copy
|
||||
export NSS_ENABLE_ECC=1
|
||||
export XCFLAGS="${CFLAGS} ${CPPFLAGS}"
|
||||
export FREEBL_NO_DEPEND=1
|
||||
export ASFLAGS=""
|
||||
|
||||
local d
|
||||
|
||||
# Build the host tools first.
|
||||
LDFLAGS="${BUILD_LDFLAGS}" \
|
||||
XCFLAGS="${BUILD_CFLAGS}" \
|
||||
emake -j1 -C coreconf \
|
||||
CC="${BUILD_CC}" \
|
||||
$(nssbits BUILD_) \
|
||||
|| die
|
||||
makeargs+=( NSINSTALL="${PWD}/$(find -type f -name nsinstall)" )
|
||||
|
||||
# Then build the target tools.
|
||||
for d in . lib/dbm ; do
|
||||
emake -j1 "${makeargs[@]}" -C ${d} || die "${d} make failed"
|
||||
done
|
||||
}
|
||||
|
||||
# Altering these 3 libraries breaks the CHK verification.
|
||||
# All of the following cause it to break:
|
||||
# - stripping
|
||||
# - prelink
|
||||
# - ELF signing
|
||||
# http://www.mozilla.org/projects/security/pki/nss/tech-notes/tn6.html
|
||||
# Either we have to NOT strip them, or we have to forcibly resign after
|
||||
# stripping.
|
||||
#local_libdir="$(get_libdir)"
|
||||
#export STRIP_MASK="
|
||||
# */${local_libdir}/libfreebl3.so*
|
||||
# */${local_libdir}/libnssdbm3.so*
|
||||
# */${local_libdir}/libsoftokn3.so*"
|
||||
|
||||
export NSS_CHK_SIGN_LIBS="freebl3 nssdbm3 softokn3"
|
||||
|
||||
generate_chk() {
|
||||
local shlibsign="$1"
|
||||
local libdir="$2"
|
||||
einfo "Resigning core NSS libraries for FIPS validation"
|
||||
shift 2
|
||||
local i
|
||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
local libname=lib${i}.so
|
||||
local chkname=lib${i}.chk
|
||||
"${shlibsign}" \
|
||||
-i "${libdir}"/${libname} \
|
||||
-o "${libdir}"/${chkname}.tmp \
|
||||
&& mv -f \
|
||||
"${libdir}"/${chkname}.tmp \
|
||||
"${libdir}"/${chkname} \
|
||||
|| die "Failed to sign ${libname}"
|
||||
done
|
||||
}
|
||||
|
||||
cleanup_chk() {
|
||||
local libdir="$1"
|
||||
shift 1
|
||||
local i
|
||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
local libfname="${libdir}/lib${i}.so"
|
||||
# If the major version has changed, then we have old chk files.
|
||||
[ ! -f "${libfname}" -a -f "${libfname}.chk" ] \
|
||||
&& rm -f "${libfname}.chk"
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd "${S}"/dist
|
||||
|
||||
dodir /usr/$(get_libdir)
|
||||
cp -L */lib/*$(get_libname) "${ED}"/usr/$(get_libdir) || die "copying shared libs failed"
|
||||
# We generate these after stripping the libraries, else they don't match.
|
||||
#cp -L */lib/*.chk "${ED}"/usr/$(get_libdir) || die "copying chk files failed"
|
||||
cp -L */lib/libcrmf.a "${ED}"/usr/$(get_libdir) || die "copying libs failed"
|
||||
|
||||
# Install nss-config and pkgconfig file
|
||||
dodir /usr/bin
|
||||
cp -L */bin/nss-config "${ED}"/usr/bin
|
||||
dodir /usr/$(get_libdir)/pkgconfig
|
||||
cp -L */lib/pkgconfig/nss.pc "${ED}"/usr/$(get_libdir)/pkgconfig
|
||||
|
||||
# all the include files
|
||||
insinto /usr/include/nss
|
||||
doins public/nss/*.h
|
||||
|
||||
local f nssutils
|
||||
# Always enabled because we need it for chk generation.
|
||||
nssutils="shlibsign"
|
||||
if use utils; then
|
||||
# The tests we do not need to install.
|
||||
#nssutils_test="bltest crmftest dbtest dertimetest
|
||||
#fipstest remtest sdrtest"
|
||||
nssutils="addbuiltin atob baddbdir btoa certcgi certutil checkcert
|
||||
cmsutil conflict crlutil derdump digest makepqg mangle modutil multinit
|
||||
nonspr10 ocspclnt oidcalc p7content p7env p7sign p7verify pk11mode
|
||||
pk12util pp rsaperf selfserv shlibsign signtool signver ssltap strsclnt
|
||||
symkeyutil tstclnt vfychain vfyserv"
|
||||
fi
|
||||
cd "${S}"/dist/*/bin/
|
||||
for f in ${nssutils}; do
|
||||
dobin ${f}
|
||||
done
|
||||
|
||||
# Prelink breaks the CHK files. We don't have any reliable way to run
|
||||
# shlibsign after prelink.
|
||||
local l libs=() liblist
|
||||
for l in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
libs+=("${EPREFIX}/usr/$(get_libdir)/lib${l}.so")
|
||||
done
|
||||
liblist=$(printf '%s:' "${libs[@]}")
|
||||
echo -e "PRELINK_PATH_MASK=${liblist%:}" > "${T}/90nss"
|
||||
doenvd "${T}/90nss"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# We must re-sign the libraries AFTER they are stripped.
|
||||
local shlibsign="${EROOT}/usr/bin/shlibsign"
|
||||
# See if we can execute it (cross-compiling & such). #436216
|
||||
"${shlibsign}" -h >&/dev/null
|
||||
if [[ $? -gt 1 ]] ; then
|
||||
shlibsign="shlibsign"
|
||||
fi
|
||||
generate_chk "${shlibsign}" "${EROOT}"/usr/$(get_libdir)
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
cleanup_chk "${EROOT}"/usr/$(get_libdir)
|
||||
}
|
@ -1,264 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/nss-3.15.3.ebuild,v 1.9 2013/12/15 19:27:41 ago Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils flag-o-matic multilib toolchain-funcs
|
||||
|
||||
NSPR_VER="4.10"
|
||||
RTM_NAME="NSS_${PV//./_}_RTM"
|
||||
|
||||
DESCRIPTION="Mozilla's Network Security Services library that implements PKI support"
|
||||
HOMEPAGE="http://www.mozilla.org/projects/security/pki/nss/"
|
||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/${P}.tar.gz
|
||||
http://dev.gentoo.org/~anarchy/patches/${PN}-3.14.1-add_spi+cacerts_ca_certs.patch
|
||||
http://dev.gentoo.org/~anarchy/patches/${PN}-3.15-pem-support-20130617.patch.xz"
|
||||
|
||||
LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ~ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="utils"
|
||||
|
||||
DEPEND="virtual/pkgconfig
|
||||
>=dev-libs/nspr-${NSPR_VER}"
|
||||
|
||||
RDEPEND=">=dev-libs/nspr-${NSPR_VER}
|
||||
>=dev-db/sqlite-3.5
|
||||
sys-libs/zlib"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
S="${WORKDIR}/${P}/${PN}"
|
||||
|
||||
src_setup() {
|
||||
export LC_ALL="C"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Custom changes for gentoo
|
||||
epatch "${FILESDIR}/${PN}-3.15-gentoo-fixups.patch"
|
||||
epatch "${FILESDIR}/${PN}-3.15-gentoo-fixup-warnings.patch"
|
||||
epatch "${DISTDIR}/${PN}-3.14.1-add_spi+cacerts_ca_certs.patch"
|
||||
epatch "${DISTDIR}/${PN}-3.15-pem-support-20130617.patch.xz"
|
||||
epatch "${FILESDIR}/${PN}-3.15-x32.patch"
|
||||
epatch "${FILESDIR}/${PN}-3.15.1-fipstest-warnings.patch"
|
||||
cd coreconf
|
||||
# hack nspr paths
|
||||
echo 'INCLUDES += -I$(DIST)/include/dbm' \
|
||||
>> headers.mk || die "failed to append include"
|
||||
|
||||
# modify install path
|
||||
sed -e 's:SOURCE_PREFIX = $(CORE_DEPTH)/\.\./dist:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' \
|
||||
-i source.mk
|
||||
|
||||
# Respect LDFLAGS
|
||||
sed -i -e 's/\$(MKSHLIB) -o/\$(MKSHLIB) \$(LDFLAGS) -o/g' rules.mk
|
||||
|
||||
# Ensure we stay multilib aware
|
||||
sed -i -e "/@libdir@/ s:lib64:$(get_libdir):" "${S}"/config/Makefile
|
||||
|
||||
# Fix pkgconfig file for Prefix
|
||||
sed -i -e "/^PREFIX =/s:= /usr:= ${EPREFIX}/usr:" \
|
||||
"${S}"/config/Makefile
|
||||
|
||||
epatch "${FILESDIR}/nss-3.14.2-solaris-gcc.patch"
|
||||
|
||||
# use host shlibsign if need be #436216
|
||||
if tc-is-cross-compiler ; then
|
||||
sed -i \
|
||||
-e 's:"${2}"/shlibsign:shlibsign:' \
|
||||
"${S}"/cmd/shlibsign/sign.sh
|
||||
fi
|
||||
|
||||
# dirty hack
|
||||
cd "${S}"
|
||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../freebl/\$(OBJDIR):" \
|
||||
lib/ssl/config.mk
|
||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../../lib/freebl/\$(OBJDIR):" \
|
||||
cmd/platlibs.mk
|
||||
}
|
||||
|
||||
nssarch() {
|
||||
# Most of the arches are the same as $ARCH
|
||||
local t=${1:-${CHOST}}
|
||||
case ${t} in
|
||||
hppa*) echo "parisc";;
|
||||
i?86*) echo "i686";;
|
||||
x86_64*) echo "x86_64";;
|
||||
*) tc-arch ${t};;
|
||||
esac
|
||||
}
|
||||
|
||||
nssbits() {
|
||||
local cc="${1}CC" cppflags="${1}CPPFLAGS" cflags="${1}CFLAGS"
|
||||
echo > "${T}"/test.c || die
|
||||
${!cc} ${!cppflags} ${!cflags} -c "${T}"/test.c -o "${T}"/test.o || die
|
||||
case $(file "${T}"/test.o) in
|
||||
*32-bit*x86-64*) echo USE_x32=1;;
|
||||
*64-bit*|*ppc64*|*x86_64*) echo USE_64=1;;
|
||||
*32-bit*|*ppc*|*i386*) ;;
|
||||
*) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
|
||||
esac
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
strip-flags
|
||||
|
||||
tc-export AR RANLIB {BUILD_,}{CC,PKG_CONFIG}
|
||||
local makeargs=(
|
||||
CC="${CC}"
|
||||
AR="${AR} rc \$@"
|
||||
RANLIB="${RANLIB}"
|
||||
OPTIMIZER=
|
||||
$(nssbits)
|
||||
)
|
||||
|
||||
# Take care of nspr settings #436216
|
||||
append-cppflags $(${PKG_CONFIG} nspr --cflags)
|
||||
append-ldflags $(${PKG_CONFIG} nspr --libs-only-L)
|
||||
unset NSPR_INCLUDE_DIR
|
||||
export NSPR_LIB_DIR=${T}/fake-dir
|
||||
|
||||
# Do not let `uname` be used.
|
||||
if use kernel_linux ; then
|
||||
makeargs+=(
|
||||
OS_TARGET=Linux
|
||||
OS_RELEASE=2.6
|
||||
OS_TEST="$(nssarch)"
|
||||
)
|
||||
fi
|
||||
|
||||
export BUILD_OPT=1
|
||||
export NSS_USE_SYSTEM_SQLITE=1
|
||||
export NSDISTMODE=copy
|
||||
export NSS_ENABLE_ECC=1
|
||||
export XCFLAGS="${CFLAGS} ${CPPFLAGS}"
|
||||
export FREEBL_NO_DEPEND=1
|
||||
export ASFLAGS=""
|
||||
|
||||
local d
|
||||
|
||||
# Build the host tools first.
|
||||
LDFLAGS="${BUILD_LDFLAGS}" \
|
||||
XCFLAGS="${BUILD_CFLAGS}" \
|
||||
emake -j1 -C coreconf \
|
||||
CC="${BUILD_CC}" \
|
||||
$(nssbits BUILD_) \
|
||||
|| die
|
||||
makeargs+=( NSINSTALL="${PWD}/$(find -type f -name nsinstall)" )
|
||||
|
||||
# Then build the target tools.
|
||||
for d in . lib/dbm ; do
|
||||
emake -j1 "${makeargs[@]}" -C ${d} || die "${d} make failed"
|
||||
done
|
||||
}
|
||||
|
||||
# Altering these 3 libraries breaks the CHK verification.
|
||||
# All of the following cause it to break:
|
||||
# - stripping
|
||||
# - prelink
|
||||
# - ELF signing
|
||||
# http://www.mozilla.org/projects/security/pki/nss/tech-notes/tn6.html
|
||||
# Either we have to NOT strip them, or we have to forcibly resign after
|
||||
# stripping.
|
||||
#local_libdir="$(get_libdir)"
|
||||
#export STRIP_MASK="
|
||||
# */${local_libdir}/libfreebl3.so*
|
||||
# */${local_libdir}/libnssdbm3.so*
|
||||
# */${local_libdir}/libsoftokn3.so*"
|
||||
|
||||
export NSS_CHK_SIGN_LIBS="freebl3 nssdbm3 softokn3"
|
||||
|
||||
generate_chk() {
|
||||
local shlibsign="$1"
|
||||
local libdir="$2"
|
||||
einfo "Resigning core NSS libraries for FIPS validation"
|
||||
shift 2
|
||||
local i
|
||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
local libname=lib${i}.so
|
||||
local chkname=lib${i}.chk
|
||||
"${shlibsign}" \
|
||||
-i "${libdir}"/${libname} \
|
||||
-o "${libdir}"/${chkname}.tmp \
|
||||
&& mv -f \
|
||||
"${libdir}"/${chkname}.tmp \
|
||||
"${libdir}"/${chkname} \
|
||||
|| die "Failed to sign ${libname}"
|
||||
done
|
||||
}
|
||||
|
||||
cleanup_chk() {
|
||||
local libdir="$1"
|
||||
shift 1
|
||||
local i
|
||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
local libfname="${libdir}/lib${i}.so"
|
||||
# If the major version has changed, then we have old chk files.
|
||||
[ ! -f "${libfname}" -a -f "${libfname}.chk" ] \
|
||||
&& rm -f "${libfname}.chk"
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd "${S}"/dist
|
||||
|
||||
dodir /usr/$(get_libdir)
|
||||
cp -L */lib/*$(get_libname) "${ED}"/usr/$(get_libdir) || die "copying shared libs failed"
|
||||
# We generate these after stripping the libraries, else they don't match.
|
||||
#cp -L */lib/*.chk "${ED}"/usr/$(get_libdir) || die "copying chk files failed"
|
||||
cp -L */lib/libcrmf.a "${ED}"/usr/$(get_libdir) || die "copying libs failed"
|
||||
|
||||
# Install nss-config and pkgconfig file
|
||||
dodir /usr/bin
|
||||
cp -L */bin/nss-config "${ED}"/usr/bin
|
||||
dodir /usr/$(get_libdir)/pkgconfig
|
||||
cp -L */lib/pkgconfig/nss.pc "${ED}"/usr/$(get_libdir)/pkgconfig
|
||||
|
||||
# all the include files
|
||||
insinto /usr/include/nss
|
||||
doins public/nss/*.h
|
||||
|
||||
local f nssutils
|
||||
# Always enabled because we need it for chk generation.
|
||||
nssutils="shlibsign"
|
||||
if use utils; then
|
||||
# The tests we do not need to install.
|
||||
#nssutils_test="bltest crmftest dbtest dertimetest
|
||||
#fipstest remtest sdrtest"
|
||||
nssutils="addbuiltin atob baddbdir btoa certcgi certutil checkcert
|
||||
cmsutil conflict crlutil derdump digest makepqg mangle modutil multinit
|
||||
nonspr10 ocspclnt oidcalc p7content p7env p7sign p7verify pk11mode
|
||||
pk12util pp rsaperf selfserv shlibsign signtool signver ssltap strsclnt
|
||||
symkeyutil tstclnt vfychain vfyserv"
|
||||
fi
|
||||
cd "${S}"/dist/*/bin/
|
||||
for f in ${nssutils}; do
|
||||
dobin ${f}
|
||||
done
|
||||
|
||||
# Prelink breaks the CHK files. We don't have any reliable way to run
|
||||
# shlibsign after prelink.
|
||||
local l libs=() liblist
|
||||
for l in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
libs+=("${EPREFIX}/usr/$(get_libdir)/lib${l}.so")
|
||||
done
|
||||
liblist=$(printf '%s:' "${libs[@]}")
|
||||
echo -e "PRELINK_PATH_MASK=${liblist%:}" > "${T}/90nss"
|
||||
doenvd "${T}/90nss"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# We must re-sign the libraries AFTER they are stripped.
|
||||
local shlibsign="${EROOT}/usr/bin/shlibsign"
|
||||
# See if we can execute it (cross-compiling & such). #436216
|
||||
"${shlibsign}" -h >&/dev/null
|
||||
if [[ $? -gt 1 ]] ; then
|
||||
shlibsign="shlibsign"
|
||||
fi
|
||||
generate_chk "${shlibsign}" "${EROOT}"/usr/$(get_libdir)
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
cleanup_chk "${EROOT}"/usr/$(get_libdir)
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST HTML_Template_Sigma-1.2.0.tgz 29040 SHA256 b8b5e9b08b29a13dd317fdf9d121d70020809962a7aacf24d0e0bc06a05e222e SHA512 a76ffb002bb464a957c05387e5bbefa9a6f9436aaa97de0b457d4b6753169eebca35840dce130a0713ac33931ceae6d86194b5b3e94df1583d40b33e47f7a6b7 WHIRLPOOL 0d3bc7171dca35b8792bd9bbc3ea7203e5ae12a9b7a64c9e96828e674d97aad3ea0920cc63e2a0c6ca626fe5ce1cd19d81f32778ad84b8ea5ca5877fd81c5d7e
|
||||
DIST HTML_Template_Sigma-1.3.0.tgz 30185 SHA256 24aaf04e84f806a894abbc1fc236e47d7d51c0a5064a67b5f7e29e97c6381a6f SHA512 586068325a3320e2778131c1da98d6179d2385d2d73308b0ea1e8df3e0de23f869e03d74454752631998ef3411d8e8b37feab93c6c7b9f51ae4bedb48155e3ed WHIRLPOOL b102d9de52dfd92a94e037b661869be1e4e94beb5de8ffcf3ea7b167286fa7af74ddbb08504e3592fd595725710ce528f0dce385a7f242af82aabc5fc6ec2b62
|
||||
|
@ -0,0 +1,15 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-php/PEAR-HTML_Template_Sigma/PEAR-HTML_Template_Sigma-1.3.0.ebuild,v 1.1 2014/01/27 21:37:12 mabi Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit php-pear-r1
|
||||
|
||||
DESCRIPTION="An implementation of Integrated Templates API with template 'compilation' added"
|
||||
LICENSE="PHP-3.01"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-lang/php[ctype]"
|
@ -1,2 +1,3 @@
|
||||
DIST HTTP_Request2-2.0.0.tgz 97476 SHA256 39697e6059db1f1fcf8f45bbd9cf157e9f7e037565a235c2f1a28c9875af14bf SHA512 e77010002741e5dde07d84f03ac05b65c77812bdee624e464e7e787b2b706b20fae50fe145ea268b62b051facbcaf00da57562cada990fd98ae71bad4e6ca9bf WHIRLPOOL feaa45c75ab38c015b9f554363f994a02e320304518a047ccc2fa4a62cc12603d3439a282915c1d5db2b9b1b896e1a156d88a6164d6dfb963a01cbb559d647fa
|
||||
DIST HTTP_Request2-2.1.1.tgz 99151 SHA256 6f809dcdf3912847d43068791a0565b9e69f2bf41200aa23aad436498c665918 SHA512 b01f4dfbad090e26fb0457f9ffdb857c804b15aa25a94296b064b2cc25dc7878dfd99788dc0fc161bb53cb4c506e3f9db13cdbf307edd41d8cb91db63910bb47 WHIRLPOOL 5b8dfbf7f55a05bad79cf78646656c9a2badc7434340adf133032b360d7c05d789e1ab9ddf2aeb1dbbb885cbb99345956769d62033f148bba10cc7540051dee1
|
||||
DIST HTTP_Request2-2.2.1.tgz 107339 SHA256 1cb082560db3344a1189cd33a354091bd55ad1944a5c9152a2573b031d960704 SHA512 377421f521184b3dc4f28b1d37a1f673ee2b40b8786e39c3803ed6c60f57a2aa8353018ea588598b7ef23a1345227a41481519932998dd01958df623d00dcd82 WHIRLPOOL c70f8f159546f2fc0464ce4a199aa9ad14555a77ed2bf7a0ec0f9110b824fc72c0c4267e20dab021ee10489ba476b011ff6a64c5276535514d6b7f675f67787c
|
||||
|
@ -0,0 +1,17 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-php/PEAR-HTTP_Request2/PEAR-HTTP_Request2-2.2.1.ebuild,v 1.1 2014/01/27 21:46:53 mabi Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit php-pear-r1
|
||||
|
||||
DESCRIPTION="Provides an easy way to perform HTTP requests"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
|
||||
IUSE="+curl +fileinfo +ssl +zlib"
|
||||
|
||||
RDEPEND="dev-lang/php[curl?,fileinfo?,ssl?,zlib?]
|
||||
>=dev-php/PEAR-Net_URL2-2.0.0"
|
@ -1,3 +1,2 @@
|
||||
DIST Text_CAPTCHA-0.3.1.tgz 13965 SHA256 ff57266b98be81ee3b4be970cf6c0ffb73e091fa54781490c9661e2607b6df89 SHA512 2f40e51cd1b05d332073be73c6463702d809de6fe243980f212d852af1fc0dabf185ce97492377ce62e3392eac578a01ddbde82bbcfd203f0447f97af1405fb8 WHIRLPOOL aded2384476383c3a6b58f813c8131a5469c945b1236843ee99240c158158c36fb64b1cf1b97c5fe86e7b3450b1acb617ec5699f1dd3754311e6b6ae2e447dde
|
||||
DIST Text_CAPTCHA-0.4.0.tgz 14833 SHA256 704f98385f6e43f0915110c429db5ea172ee9365892350c03b6228e104f135e2 SHA512 022b9da641df4cada46368ca2bc7b4d053c286fd5e8b44838e4086c81973d5494c4ad3a68f03ba1294aac58a068ff036cfbf58eab3a90cd82510c40de8f7f36b WHIRLPOOL b447bb5b3986bfb9693d8d2d3fc0cdbabb5b2900412c1bf1158ccf6177e1146aaa5893474965b36d5bcc80289cd0e54b20c090cb0ad04b29b122cfc020ea14d6
|
||||
DIST Text_CAPTCHA-0.4.3.tgz 13213 SHA256 a097d273a06be16c1f0d09ec938718fc7ef1e64bdd6d1c59393cff5412e64a4a SHA512 66cee1bb6f6f3ed2846bade00a6a826cb9855c9792afec658977b41d6607e4ea34251ccb6e721ad8476036c19a076a2b0d1d64f3dedf64008418e38b0eb46113 WHIRLPOOL 6168244262743c85eb23a68f970f96aee4600ed317d3dd63330d50f21256915274512800bdac1069f1e6d20aba3d294df8dc7dc33a157b6fb18231700e992fe2
|
||||
DIST Text_CAPTCHA-0.5.0.tgz 196145 SHA256 76b8e3fc39b80d8e0c11da7f4f03cfeb0cde61aeee01d8a9328347dbb86cad45 SHA512 e56da70309f6baf79b8856ee912c24f768745347f0dbb021af4cde9290ffb328a2cf7cbce7bf480a5977755b9a129f8f2fae8ccaa85310e9b716c348fe1efaef WHIRLPOOL f06b0b134514ef1cfc9f8aed28c61a73f729154d36089c4837afb70766e8b111a86f5457c0096919312f324580d2154fb2020504510426b5de8effaa910f97fa
|
||||
|
@ -1,21 +0,0 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-php/PEAR-Text_CAPTCHA/PEAR-Text_CAPTCHA-0.4.0.ebuild,v 1.4 2010/08/12 08:49:54 maekke Exp $
|
||||
|
||||
EAPI=2
|
||||
|
||||
inherit php-pear-r1
|
||||
|
||||
DESCRIPTION="Generation of CAPTCHAs."
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="minimal"
|
||||
|
||||
RDEPEND="dev-php/PEAR-Text_Password
|
||||
dev-lang/php[truetype]
|
||||
|| ( dev-lang/php[gd] dev-lang/php[gd-external] )
|
||||
!minimal? ( dev-php/PEAR-Numbers_Words
|
||||
dev-php/PEAR-Text_Figlet
|
||||
dev-php/PEAR-Image_Text )"
|
@ -1,17 +1,20 @@
|
||||
# Copyright 1999-2007 Gentoo Foundation
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-php/PEAR-Text_CAPTCHA/PEAR-Text_CAPTCHA-0.3.1.ebuild,v 1.2 2007/12/06 00:53:55 jokey Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-php/PEAR-Text_CAPTCHA/PEAR-Text_CAPTCHA-0.5.0.ebuild,v 1.1 2014/01/27 21:52:38 mabi Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit php-pear-r1
|
||||
|
||||
DESCRIPTION="Generation of CAPTCHAs."
|
||||
LICENSE="PHP-3 BSD"
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="minimal"
|
||||
|
||||
RDEPEND="dev-php/PEAR-Text_Password
|
||||
RDEPEND=">=dev-php/PEAR-Text_Password-1.1.1
|
||||
dev-lang/php[gd,truetype]
|
||||
!minimal? ( dev-php/PEAR-Numbers_Words
|
||||
dev-php/PEAR-Text_Figlet
|
||||
dev-php/PEAR-Image_Text )"
|
||||
>=dev-php/PEAR-Image_Text-0.7.0 )"
|
@ -0,0 +1 @@
|
||||
DIST autobahn-0.7.4.zip 143447 SHA256 b0c3900bab665638c6c3e117815c4ef8cf563beda059c102e4b6a6d4496be8d7 SHA512 51233127dced6a32d6e7ed7bbcede54c3afb47c4a729f154bb35cafd74b8913387ac85ec3d9fa6d09e808160efcb6c4f18086a51fbf8cfcb9142c7168939bfcf WHIRLPOOL b578b27df01dd0b880a46cffbf51203daf0f55fadae792237bfe954c109cf91939ba1276a5c89bedb15ee358afd77b31117e8475335628644b916800225d7ce6
|
@ -0,0 +1,31 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/autobahn/autobahn-0.7.4.ebuild,v 1.1 2014/01/27 16:38:01 jlec Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="WebSocket and WAMP for Twisted and Asyncio"
|
||||
HOMEPAGE="https://pypi.python.org/pypi/autobahn http://autobahn.ws/python/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="Apache-2.0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
# running on Twisted and asyncio,
|
||||
# for python < 3.4
|
||||
RDEPEND="
|
||||
dev-python/snappy
|
||||
dev-python/lz4
|
||||
dev-python/msgpack
|
||||
dev-python/twisted-core
|
||||
dev-python/ujson
|
||||
dev-python/wsaccel
|
||||
net-zope/zope-interface
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>python</herd>
|
||||
<maintainer>
|
||||
<email>jlec@gentoo.org</email>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -1 +1,2 @@
|
||||
DIST Epsilon-0.6.0.tar.gz 96243 SHA256 2be3a6ef877c4e17ca9dadd6b484fe31bdf16c20b949ec6a8b15677e08c512fa SHA512 0ce7ba2eb86811dc50a0e86b9f3d85be1a4f930f86659c2381a1d80455e1e86362b8719c92ae2ad951a34264e5d0649ec5de96f1179734c7fab6c3abc6fb037b WHIRLPOOL 6aa363b44a42f29ec836cf46b2fdfe3bb57541a9fe282b57ea888f4906b9c438c9eb99d5a0876cb11108b7337a0691c45810a3e44579023f0b660e8752952120
|
||||
DIST Epsilon-0.7.0.tar.gz 81218 SHA256 81419d50b17a20efd75440d43e4b07fe3c2a5e6d619f39318dab9031a0680032 SHA512 d1927ca431df3233a94296ca9e1f5dd70d6d61091d23f77df2222c6472d9a5f7b55c5c8dd2a75d0fead41af862c9e3a6a0ea9a31e21447459d5182f0d677d9b2 WHIRLPOOL 8cbab28e5e05b44b521c5f66494de1e2f4bee7713487cfb9d87bfcc108dc05b6534919934fd53cb1b0dc7aee633187351973b78cfdabf0584d6b294104a05a57
|
||||
|
@ -0,0 +1,56 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/epsilon/epsilon-0.7.0.ebuild,v 1.1 2014/01/28 03:48:16 idella4 Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit twisted-r1 eutils
|
||||
|
||||
DESCRIPTION="Epsilon is a Python utilities package, most famous for its Time class"
|
||||
HOMEPAGE="http://divmod.org/trac/wiki/DivmodEpsilon http://pypi.python.org/pypi/Epsilon"
|
||||
SRC_URI="mirror://pypi/${TWISTED_PN:0:1}/${TWISTED_PN}/${TWISTED_P}.tar.gz"
|
||||
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND=">=dev-python/twisted-core-13.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}]"
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? ( dev-python/nose[${PYTHON_USEDEP}] )
|
||||
${DEPEND}"
|
||||
|
||||
PATCHES=( "${FILESDIR}/epsilon_plugincache_portagesandbox.patch" )
|
||||
|
||||
# epsilon doesn't install any plugins, so override the default
|
||||
TWISTED_PLUGINS=()
|
||||
|
||||
python_prepare_all() {
|
||||
# Rename to avoid file-collisions
|
||||
mv bin/benchmark bin/epsilon-benchmark
|
||||
sed -i \
|
||||
-e "s#bin/benchmark#bin/epsilon-benchmark#" \
|
||||
setup.py || die "sed failed"
|
||||
|
||||
#These test are removed upstream
|
||||
rm -f epsilon/test/test_sslverify.py epsilon/sslverify.py || die
|
||||
#See bug 357157 comment 5 for Ian Delaney's explanation of this fix
|
||||
sed -e 's:month) 2004 9:month) 2004 14:' \
|
||||
-i epsilon/test/test_extime.py || die
|
||||
# Release tests need DivmodCombinator.
|
||||
rm -f epsilon/test/test_release.py* epsilon/release.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
dodoc NAME.txt NEWS.txt
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
#Lets run some tests, having prepped them
|
||||
python_test() {
|
||||
# No testrunner seems stipulated within the source; pytest and nosetests both work
|
||||
nosetests ${PN}/test || die "testsuite failed under ${EPYTHON}"
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST lz4-0.6.0_p20140104.tar.xz 14608 SHA256 35f33a23fc0833f57439366074a625ac62859d9f58c3439cf6c0978565376e4f SHA512 40edd29d0bdbb6773c3217a39f1ae6823dbaf30e112702809cb034296e245f522831fa9667ec90038507b450872a26e979c318f5ee952ee623dfb2687b1ad28f WHIRLPOOL 9e6de8c720bc1a587d96829af0c5d8cb9686433660b227e76d8249d90dfe3f82c7ad96077dce255e3be44a7f90e04ee4ea42cc7e3424b2710f84d2953ce8effa
|
@ -0,0 +1,28 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/lz4/lz4-0.6.0_p20140104.ebuild,v 1.1 2014/01/27 16:28:33 jlec Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="LZ4 Bindings for Python"
|
||||
HOMEPAGE="https://pypi.python.org/pypi/lz4 https://github.com/steeve/python-lz4"
|
||||
#SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
SRC_URI="http://dev.gentoo.org/~jlec/distfiles/${P}.tar.xz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="BSD"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="
|
||||
test? ( dev-python/nose )"
|
||||
|
||||
python_test() {
|
||||
cd tests || die
|
||||
nosetests || die
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>python</herd>
|
||||
<maintainer>
|
||||
<email>jlec@gentoo.org</email>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -0,0 +1 @@
|
||||
DIST wsaccel-0.6.2.tar.gz 35773 SHA256 425706acf0724d2f6bfa391ec37b4ef121d3432c956029de3cea4e101c218e0c SHA512 fbc59803cbb6b113a3e412390eb02f41a68513b9fda6e4408d5e2e3c976a3f62eacc6bf87adf9295a63238390cce00f4abe13daf397a28ce8f3ed3e3bff622ee WHIRLPOOL 2c66ff720fcaecaa8c7fe29d93bb8f32e620898b0ccf31d3dc3f4dbfe4b1623dde6484e3c347649cd4140ec51b52c9a8c0e81b0c24e6135481ebae7a26c09063
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>python</herd>
|
||||
<maintainer>
|
||||
<email>jlec@gentoo.org</email>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -0,0 +1,27 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/wsaccel/wsaccel-0.6.2.ebuild,v 1.1 2014/01/27 16:34:53 jlec Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Accelerator for ws4py, AutobahnPython and tornado"
|
||||
HOMEPAGE="https://pypi.python.org/pypi/wsaccel https://github.com/methane/wsaccel"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="Apache-2.0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="test"
|
||||
|
||||
#RDEPEND=""
|
||||
#DEPEND="
|
||||
# test? ( dev-python/nose )"
|
||||
|
||||
_python_test() {
|
||||
cd tests || die
|
||||
nosetests || die
|
||||
}
|
@ -1,11 +1,9 @@
|
||||
DIST wxPython-demo-2.8.12.1.tar.bz2 3906851 SHA256 252282193a80590b9eab436bef322701b21d35ad03b4b6ebb4824241ff947b5a SHA512 aab71cf4e4fb6632afd4607cbe5cdef6785c4ed3f1c7f67d6cef5487d1caee2f7652bfd974ba95a6a03e8d7809c94e291aca00c2fdf74ea29e118e1e30c947d5 WHIRLPOOL e9eb0803350e3dac8c5f2228a3f4d54a26ae4c4307c924729bbdff712747419fdfaa155d83ef1bea7dcb849dbacf9f48c323bf7997ed1df85f182ba3878d1324
|
||||
DIST wxPython-demo-2.9.3.1.tar.bz2 3959076 SHA256 6e26ead8c780ecbcebb68593a72cd28432b2e756a42e019286d970d6a92ac340 SHA512 98dc98f3332b93fc11c8c302e1aa07295a218b96dbad6a353498893935c1e206bab41bf429a262142c07999803be865c2ac3bb7630467861e76544733672c336 WHIRLPOOL ff75d7ad362afba2e79d6b2250a7d21721f135630e1cf63fdcca72241e8d407881a7e19db0e59dda94150d2cf80ed9b86ed1d303e5deb70781f902d6fd1ddc3d
|
||||
DIST wxPython-demo-2.9.4.0.tar.bz2 3992754 SHA256 c1a57ef7c71ea1a332df98b80cfa7ba178ef6dcd24a31393dff905a145ba8b7b SHA512 dac61d9bb09deffd54c89c1a09803968a4c4b2951a00ebb4d618a2a1b48775c62e3ddf2c642e9005d7362fdeab44c07bc2a38bc96dc94a5c891982847d0c19fe WHIRLPOOL 2093d3d0f81c15b7ca1a346fae29429952d299f8e33d5c2e356846bd98df890b731fe4ef0311ec32b7a913a4038aa8881396d9878dde98322136ccb5244a867b
|
||||
DIST wxPython-demo-3.0.0.0.tar.bz2 3991989 SHA256 426aaf20c7b01f5e9fbd7bd41455441bb126585f5544a848a5fa060e07f7b443 SHA512 4fe8a87faacac99c54c4fcbdb707c9790b49f485186e1741cc1ba05e955e474ca4ea31ff704a57e73b32b4fad310ef490066743d1c6ad4339191cde2daec255d WHIRLPOOL c6a2b12111572164474083f66dd0e2eff12e4faea5ce880767bfba3de493e8d56e6747c659ff1a3d533d0f6bcde1d5c9daabb9bccb2148278cdce074f5ddcbae
|
||||
DIST wxPython-docs-2.8.12.1.tar.bz2 2331363 SHA256 1dfae3a74b91e2003856eed51698c51094f1a4e6688633ae61af7a22fa8a0ddb SHA512 88591ef4f61bcbac29050d7dfecc230f7338cc006e7c3abc072b15da478e4fd994ab73ee5d072cb8b84f9de62ce182f1774354b0a7a4502ea639e59fdf965358 WHIRLPOOL 97bc66c8f781b5092e2274edc0b9bac35c21c91a66e4c0da75d543dc471f25d02334b28a5afe4ad0681b7a018a93f08b6ef5d3c6afd127ccfc24da208252cd89
|
||||
DIST wxPython-newdocs-2.8.9.2.tar.bz2 1503913 SHA256 890b6b7ca37ba7aaa27f9716ea9992ac75ed8150e83939506e3c47f86e7f37a8 SHA512 e114b2b44a7fd3ac292ca9735fb2e075459211384bc98d62ff2ba49e45111825101e74abd4af2ab0e5e52ede7b831641367c11a5c80e79f2da6ada3442463bfc WHIRLPOOL 91ccbe19e8311f0404fb0096efff68750fa0c3b505d05c9278e0488e138788dc399ff2345e13c712126475957a1c1fcc53556d70cd9c835524207be5758a6e2b
|
||||
DIST wxPython-src-2.8.12.1.tar.bz2 31311482 SHA256 1f3f153d9f1504c6ce2d2c4b23e940b8f58b81f4cba35cda1a5bb31142243cd0 SHA512 4f826ccb57d5f4fc03fe7cae67499be70c727a99aebf9d153ea1060a21641642606d44d079ba897c38b176846336aeaebc21d30d5c7a0abec3934d65cf4529f3 WHIRLPOOL 94f91d359f755a0f805588303e8507b2f1404a7f4af73777f85366265df9f76ca89ac29bff491cffd752b707645952a4f7f2bb12fa7e30f3e7d3728147a9c99d
|
||||
DIST wxPython-src-2.9.3.1.tar.bz2 49131100 SHA256 7bae5bf45e98eba836472bdb358330f867c69de3a347860edd48fcb53690040d SHA512 16e5be3a2a98d64637866ecae7afb3a2835d21684077bb8a1b87d3c0cf37b75eb1169f3b8e16e38c5b85c04cce974dbfd5ba25d3d0a3016a47c005a05e5dbfc5 WHIRLPOOL ccae768ff87a95ee88d6259821be5e2073928278155743c0c16c75dd9b2262ac49ccb322dd4aa77ccfdac12d7de0e874a92b41171adacfa26ffb216f170751a7
|
||||
DIST wxPython-src-2.9.4.0.tar.bz2 50827671 SHA256 78c35c19e85a17cb9c730b86b49d6a479198d76d19e0b13e86db0b55707004be SHA512 100dd4474bc2508e9a80aed6f08d295e2697926e29c5789e1f6aa7c303921e1c5de2574c3eddde568804da8fc670d0214ef225d46f34a3006d0a947423d01fbf WHIRLPOOL feff68600a40a8f02492e91049ecdd1a1865ee6db8024112aa3a85a7eff616f26653c418a8ffde77121e2bf7d2c7090c5b91896f9a2de8eb980573af2ca65507
|
||||
DIST wxPython-src-2.9.4.1.patch 3768 SHA256 075e3a7b1cf69dd2bb20010717505d2508c74bc81658540f3e6d8c4fbf0a6b85 SHA512 4a5254a5bb9c246b75095e3cc0b849073e3cc71ff15ab7fb1db6ecfe71359800b9e1a5493bc39ce5b1f338cdc1d142ce84641611d458a8da4315f3c8a6aef3ba WHIRLPOOL 9bec06da4824fe56c172f4f417966681d1ffbf173dcb54f1579e9a484377bc76c45b4f2389911bbb17eff2476cfca786d68d9524856b21accc64b4dffafb1811
|
||||
DIST wxPython-src-3.0.0.0.tar.bz2 57831792 SHA256 af88695e820dd914e8375dc91ecb736f6fb605979bb38460ace61bbea494dc11 SHA512 9328f46817e0c1670a6be5d10347c8a7110c42a5332c5c35eb11ed0412d8dddeb15727d98606bb6c699af961cee171c41b82b1f24f3de25463259106660f7387 WHIRLPOOL 7865997e22db366a41bae8a5d5c47e4f46b20d17871377243abced3a6550c46588ea1d5a426d826ccf011c62898f87d6a55a14ac9b4153af4e0795d5f180a647
|
||||
|
@ -1,179 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/wxpython/wxpython-2.8.12.1.ebuild,v 1.19 2013/12/12 12:57:30 jlec Exp $
|
||||
|
||||
EAPI="4"
|
||||
PYTHON_DEPEND="2"
|
||||
WX_GTK_VER="2.8"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*"
|
||||
|
||||
inherit alternatives distutils eutils fdo-mime wxwidgets
|
||||
|
||||
MY_P="${P/wxpython-/wxPython-src-}"
|
||||
|
||||
DESCRIPTION="A blending of the wxWindows C++ class library with Python"
|
||||
HOMEPAGE="http://www.wxpython.org/"
|
||||
SRC_URI="
|
||||
mirror://sourceforge/wxpython/${MY_P}.tar.bz2
|
||||
doc? (
|
||||
mirror://sourceforge/wxpython/wxPython-docs-${PV}.tar.bz2
|
||||
mirror://sourceforge/wxpython/wxPython-newdocs-2.8.9.2.tar.bz2 )
|
||||
examples? ( mirror://sourceforge/wxpython/wxPython-demo-${PV}.tar.bz2 )"
|
||||
|
||||
LICENSE="wxWinLL-3"
|
||||
SLOT="2.8"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd"
|
||||
IUSE="cairo doc examples opengl"
|
||||
|
||||
RDEPEND="
|
||||
>=x11-libs/wxGTK-${PV}:${WX_GTK_VER}[opengl?,tiff,X]
|
||||
dev-libs/glib:2
|
||||
dev-python/setuptools
|
||||
media-libs/libpng:0
|
||||
media-libs/tiff:0
|
||||
virtual/jpeg
|
||||
x11-libs/gtk+:2
|
||||
x11-libs/pango[X]
|
||||
cairo? ( >=dev-python/pycairo-1.8.4 )
|
||||
opengl? ( dev-python/pyopengl )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
S="${WORKDIR}/${MY_P}/wxPython"
|
||||
DOC_S="${WORKDIR}/wxPython-${PV}"
|
||||
|
||||
PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
|
||||
PYTHON_CXXFLAGS=("2.* + -fno-strict-aliasing")
|
||||
|
||||
PYTHON_MODNAME="wx-${SLOT}-gtk2-unicode wxversion.py"
|
||||
|
||||
src_prepare() {
|
||||
sed -i "s:cflags.append('-O3'):pass:" config.py || die "sed failed"
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-2.8.9-wxversion-scripts.patch
|
||||
# drop editra - we have it as a separate package now
|
||||
epatch "${FILESDIR}"/${PN}-2.8.12-drop-editra.patch
|
||||
|
||||
if use doc; then
|
||||
cd "${DOC_S}"
|
||||
epatch "${FILESDIR}"/${PN}-${SLOT}-cache-writable.patch
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
cd "${DOC_S}"
|
||||
epatch "${FILESDIR}"/${PN}-${SLOT}-wxversion-demo.patch
|
||||
fi
|
||||
|
||||
python_copy_sources
|
||||
|
||||
# Workaround, buildsystem uses CFLAGS as CXXFLAGS
|
||||
export CFLAGS="${CXXFLAGS}"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
need-wxwidgets unicode
|
||||
|
||||
DISTUTILS_GLOBAL_OPTIONS=(
|
||||
"* WX_CONFIG=${WX_CONFIG}"
|
||||
"* WXPORT=gtk2"
|
||||
"* UNICODE=1"
|
||||
"* BUILD_GLCANVAS=$(use opengl && echo 1 || echo 0)"
|
||||
)
|
||||
}
|
||||
|
||||
distutils_src_install_post_hook() {
|
||||
# Collision protection.
|
||||
local file
|
||||
for file in "$(distutils_get_intermediate_installation_image)${EPREFIX}/usr/bin/"*; do
|
||||
mv "${file}" "${file}-${SLOT}"
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local docdir file
|
||||
|
||||
distutils_src_install
|
||||
|
||||
# Collision protection.
|
||||
rename_files() {
|
||||
for file in "${D}$(python_get_sitedir)/"wx{version.*,.pth}; do
|
||||
mv "${file}" "${file}-${SLOT}" || return 1
|
||||
done
|
||||
}
|
||||
python_execute_function -q rename_files
|
||||
|
||||
dodoc "${S}"/docs/{CHANGES,PyManual,README,wxPackage,wxPythonManual}.txt
|
||||
|
||||
domenu "${S}"/distrib/{Py{AlaMode,Crust,Shell},XRCed}.desktop
|
||||
newicon "${S}"/wx/py/PyCrust_32.png PyCrust.png
|
||||
newicon "${S}"/wx/tools/XRCed/XRCed_32.png XRCed.png
|
||||
|
||||
docdir=${D}usr/share/doc/${PF}
|
||||
|
||||
if use doc; then
|
||||
dodir /usr/share/doc/${PF}/docs
|
||||
cp -R "${DOC_S}"/docs/* "${docdir}"/docs/
|
||||
# For some reason newer API docs aren't available so use 2.8.9.2's
|
||||
cp -R "${WORKDIR}"/wxPython-2.8.9.2/docs/* "${docdir}"/docs/
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
dodir /usr/share/doc/${PF}/demo
|
||||
cp -R "${DOC_S}"/demo/* "${docdir}"/demo
|
||||
dodir /usr/share/doc/${PF}/samples
|
||||
cp -R "${DOC_S}"/samples/* "${docdir}"/samples
|
||||
[[ -e ${docdir}/samples/embedded/embedded ]] \
|
||||
&& rm -f "${docdir}"/samples/embedded/embedded
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fdo-mime_desktop_database_update
|
||||
|
||||
create_symlinks() {
|
||||
alternatives_auto_makesym "$(python_get_sitedir)/wx.pth" "$(python_get_sitedir)/wx.pth-[0-9].[0-9]"
|
||||
alternatives_auto_makesym "$(python_get_sitedir)/wxversion.py" "$(python_get_sitedir)/wxversion.py-[0-9].[0-9]"
|
||||
}
|
||||
python_execute_function -q create_symlinks
|
||||
|
||||
distutils_pkg_postinst
|
||||
|
||||
echo
|
||||
elog "Gentoo uses the Multi-version method for SLOT'ing."
|
||||
elog "Developers, see this site for instructions on using"
|
||||
elog "2.6 or 2.8 with your apps:"
|
||||
elog "http://wiki.wxpython.org/index.cgi/MultiVersionInstalls"
|
||||
if use doc; then
|
||||
echo
|
||||
elog "To access the general wxWidgets documentation, run"
|
||||
elog "/usr/share/doc/${PF}/docs/viewdocs.py"
|
||||
echo
|
||||
elog "wxPython documentation is available by pointing a browser"
|
||||
elog "at /usr/share/doc/${PF}/docs/api/index.html"
|
||||
fi
|
||||
if use examples; then
|
||||
echo
|
||||
elog "The demo.py app which contains hundreds of demo modules"
|
||||
elog "with documentation and source code has been installed at"
|
||||
elog "/usr/share/doc/${PF}/demo/demo.py"
|
||||
echo
|
||||
elog "Many more example apps and modules can be found in"
|
||||
elog "/usr/share/doc/${PF}/samples/"
|
||||
fi
|
||||
echo
|
||||
elog "Editra is not packaged with wxpython in Gentoo."
|
||||
elog "You can find it in the tree as app-editors/editra"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
distutils_pkg_postrm
|
||||
fdo-mime_desktop_database_update
|
||||
|
||||
create_symlinks() {
|
||||
alternatives_auto_makesym "$(python_get_sitedir)/wx.pth" "$(python_get_sitedir)/wx.pth-[0-9].[0-9]"
|
||||
alternatives_auto_makesym "$(python_get_sitedir)/wxversion.py" "$(python_get_sitedir)/wxversion.py-[0-9].[0-9]"
|
||||
}
|
||||
python_execute_function -q create_symlinks
|
||||
}
|
@ -1,154 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/wxpython/wxpython-2.9.3.1.ebuild,v 1.6 2013/03/26 03:23:52 dirtyepic Exp $
|
||||
|
||||
EAPI="4"
|
||||
PYTHON_DEPEND="2:2.6"
|
||||
WX_GTK_VER="2.9"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="2.[45] 3.* *-jython 2.7-pypy-*"
|
||||
|
||||
inherit alternatives distutils eutils fdo-mime wxwidgets
|
||||
|
||||
MY_P="${P/wxpython-/wxPython-src-}"
|
||||
|
||||
DESCRIPTION="A blending of the wxWindows C++ class library with Python"
|
||||
HOMEPAGE="http://www.wxpython.org/"
|
||||
SRC_URI="mirror://sourceforge/wxpython/${MY_P}.tar.bz2
|
||||
examples? ( mirror://sourceforge/wxpython/wxPython-demo-${PV}.tar.bz2 )"
|
||||
|
||||
LICENSE="wxWinLL-3"
|
||||
SLOT="2.9"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
|
||||
IUSE="cairo examples opengl"
|
||||
|
||||
RDEPEND="
|
||||
>=x11-libs/wxGTK-${PV}:${WX_GTK_VER}[opengl?,tiff,X]
|
||||
dev-libs/glib:2
|
||||
dev-python/setuptools
|
||||
media-libs/libpng:0
|
||||
media-libs/tiff:0
|
||||
virtual/jpeg
|
||||
x11-libs/gtk+:2
|
||||
x11-libs/pango[X]
|
||||
cairo? ( >=dev-python/pycairo-1.8.4 )
|
||||
opengl? ( dev-python/pyopengl )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
S="${WORKDIR}/${MY_P}/wxPython"
|
||||
DOC_S="${WORKDIR}/wxPython-${PV}"
|
||||
|
||||
PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
|
||||
PYTHON_CXXFLAGS=("2.* + -fno-strict-aliasing")
|
||||
|
||||
PYTHON_MODNAME="wx-${PV%.*}-gtk2 wxversion.py"
|
||||
|
||||
src_prepare() {
|
||||
sed -i "s:cflags.append('-O3'):pass:" config.py || die "sed failed"
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-${SLOT}-wxversion-scripts.patch
|
||||
# drop editra - we have it as a separate package now
|
||||
epatch "${FILESDIR}"/${PN}-2.8.11-drop-editra.patch
|
||||
epatch "${FILESDIR}"/${PN}-2.8-no-preservatives-added.patch
|
||||
|
||||
if use examples; then
|
||||
cd "${DOC_S}"
|
||||
epatch "${FILESDIR}"/${PN}-${SLOT}-wxversion-demo.patch
|
||||
fi
|
||||
|
||||
python_copy_sources
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
need-wxwidgets unicode
|
||||
|
||||
DISTUTILS_GLOBAL_OPTIONS=(
|
||||
"* WX_CONFIG=${WX_CONFIG}"
|
||||
"* WXPORT=gtk2"
|
||||
"* UNICODE=1"
|
||||
"* BUILD_GLCANVAS=$(use opengl && echo 1 || echo 0)"
|
||||
)
|
||||
}
|
||||
|
||||
distutils_src_install_post_hook() {
|
||||
# Collision protection.
|
||||
local file
|
||||
for file in "$(distutils_get_intermediate_installation_image)${EPREFIX}/usr/bin/"*; do
|
||||
mv "${file}" "${file}-${SLOT}"
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local file x
|
||||
|
||||
distutils_src_install
|
||||
|
||||
# this should be temporary
|
||||
dobin "${S}"/scripts/pyslices || die
|
||||
dobin "${S}"/scripts/pysliceshell || die
|
||||
|
||||
# Collision protection.
|
||||
rename_files() {
|
||||
for file in "${D}$(python_get_sitedir)/"wx{version.*,.pth}; do
|
||||
mv "${file}" "${file}-${SLOT}" || return 1
|
||||
done
|
||||
}
|
||||
python_execute_function -q rename_files
|
||||
|
||||
dodoc "${S}"/docs/{CHANGES,PyManual,README,wxPackage,wxPythonManual}.txt
|
||||
|
||||
for x in {Py{AlaMode,Crust,Shell,Slices{,Shell}},XRCed}; do
|
||||
newmenu "${S}"/distrib/${x}.desktop ${x}-${SLOT}.desktop
|
||||
done
|
||||
newicon "${S}"/wx/py/PyCrust_32.png PyCrust-${SLOT}.png
|
||||
newicon "${S}"/wx/py/PySlices_32.png PySlices-${SLOT}.png
|
||||
newicon "${S}"/wx/tools/XRCed/XRCed_32.png XRCed-${SLOT}.png
|
||||
|
||||
if use examples; then
|
||||
dodir /usr/share/doc/${PF}/demo
|
||||
dodir /usr/share/doc/${PF}/samples
|
||||
cp -R "${DOC_S}"/demo/* "${D}"/usr/share/doc/${PF}/demo/ || die
|
||||
cp -R "${DOC_S}"/samples/* "${D}"/usr/share/doc/${PF}/samples/ || die
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fdo-mime_desktop_database_update
|
||||
|
||||
create_symlinks() {
|
||||
alternatives_auto_makesym "$(python_get_sitedir)/wx.pth" "$(python_get_sitedir)/wx.pth-[0-9].[0-9]"
|
||||
alternatives_auto_makesym "$(python_get_sitedir)/wxversion.py" "$(python_get_sitedir)/wxversion.py-[0-9].[0-9]"
|
||||
}
|
||||
python_execute_function -q create_symlinks
|
||||
|
||||
distutils_pkg_postinst
|
||||
|
||||
echo
|
||||
elog "Gentoo uses the Multi-version method for SLOT'ing."
|
||||
elog "Developers, see this site for instructions on using"
|
||||
elog "2.8 or 2.9 with your apps:"
|
||||
elog "http://wiki.wxpython.org/index.cgi/MultiVersionInstalls"
|
||||
elog
|
||||
if use examples; then
|
||||
elog "The demo.py app which contains demo modules with"
|
||||
elog "documentation and source code has been installed at"
|
||||
elog "/usr/share/doc/${PF}/demo/demo.py"
|
||||
elog
|
||||
elog "More example apps and modules can be found in"
|
||||
elog "/usr/share/doc/${PF}/samples/"
|
||||
fi
|
||||
echo
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
distutils_pkg_postrm
|
||||
fdo-mime_desktop_database_update
|
||||
|
||||
create_symlinks() {
|
||||
alternatives_auto_makesym "$(python_get_sitedir)/wx.pth" "$(python_get_sitedir)/wx.pth-[0-9].[0-9]"
|
||||
alternatives_auto_makesym "$(python_get_sitedir)/wxversion.py" "$(python_get_sitedir)/wxversion.py-[0-9].[0-9]"
|
||||
}
|
||||
python_execute_function -q create_symlinks
|
||||
}
|
@ -1,172 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/wxpython/wxpython-2.9.4.1-r1.ebuild,v 1.8 2013/12/12 12:57:30 jlec Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
WX_GTK_VER="2.9"
|
||||
|
||||
inherit alternatives distutils-r1 eutils fdo-mime flag-o-matic wxwidgets
|
||||
|
||||
MY_PN="wxPython-src"
|
||||
|
||||
DESCRIPTION="A blending of the wxWindows C++ class library with Python"
|
||||
HOMEPAGE="http://www.wxpython.org/"
|
||||
SRC_URI="mirror://sourceforge/wxpython/${MY_PN}-2.9.4.0.tar.bz2
|
||||
examples? ( mirror://sourceforge/wxpython/wxPython-demo-2.9.4.0.tar.bz2 )
|
||||
mirror://sourceforge/wxpython/${MY_PN}-2.9.4.1.patch"
|
||||
|
||||
LICENSE="wxWinLL-3"
|
||||
SLOT="2.9"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
|
||||
IUSE="cairo examples opengl"
|
||||
|
||||
RDEPEND="
|
||||
>=x11-libs/wxGTK-${PV}:${WX_GTK_VER}[opengl?,tiff,X]
|
||||
dev-libs/glib:2
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
media-libs/libpng:0=
|
||||
media-libs/tiff:0
|
||||
virtual/jpeg
|
||||
x11-libs/gtk+:2
|
||||
x11-libs/pango[X]
|
||||
cairo? ( >=dev-python/pycairo-1.8.4[${PYTHON_USEDEP}] )
|
||||
opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
dev-lang/python-exec:0[${PYTHON_USEDEP}]
|
||||
virtual/pkgconfig"
|
||||
|
||||
S="${WORKDIR}/${MY_PN}-2.9.4.0/wxPython"
|
||||
DOC_S="${WORKDIR}/wxPython-2.9.4.0"
|
||||
|
||||
# The hacky build system seems to be broken with out-of-source builds,
|
||||
# and installs 'wx' package globally.
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
# Force python-exec:0 due to the hackery in the ebuild, bug #484420.
|
||||
_PYTHON_WANT_PYTHON_EXEC2=0
|
||||
|
||||
python_prepare_all() {
|
||||
sed -i "s:cflags.append('-O3'):pass:" config.py || die "sed failed"
|
||||
|
||||
cd .. || die
|
||||
epatch "${DISTDIR}"/${MY_PN}-${PV}.patch
|
||||
|
||||
if use examples; then
|
||||
cd "${DOC_S}"
|
||||
epatch "${FILESDIR}"/${PN}-${SLOT}-wxversion-demo.patch
|
||||
fi
|
||||
|
||||
cd "${S}" || die
|
||||
local PATCHES=(
|
||||
"${FILESDIR}"/${P}-wxversion-scripts.patch
|
||||
# drop editra - we have it as a separate package now
|
||||
"${FILESDIR}"/${PN}-2.8.11-drop-editra.patch
|
||||
"${FILESDIR}"/${PN}-2.8-no-preservatives-added.patch
|
||||
# fix handling egg_info command
|
||||
"${FILESDIR}"/${PN}-2.8.12.1-disable-egging-mode.patch
|
||||
)
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
append-flags -fno-strict-aliasing
|
||||
need-wxwidgets unicode
|
||||
|
||||
mydistutilsargs=(
|
||||
WX_CONFIG="${WX_CONFIG}"
|
||||
WXPORT=gtk2
|
||||
UNICODE=1
|
||||
BUILD_GLCANVAS=$(usex opengl 1 0)
|
||||
)
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
# We need to have separate libdirs due to hackery, bug #455332.
|
||||
distutils-r1_python_compile \
|
||||
build --build-purelib "${BUILD_DIR}"/lib.common
|
||||
}
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install \
|
||||
build --build-purelib "${BUILD_DIR}"/lib.common
|
||||
|
||||
# adjust the filenames for wxPython slots.
|
||||
local file
|
||||
for file in "${D}$(python_get_sitedir)"/wx{version.*,.pth}; do
|
||||
mv "${file}" "${file}-${SLOT}" || die
|
||||
done
|
||||
cd "${ED}"usr/bin || die
|
||||
for file in *-"${EPYTHON}"; do
|
||||
local wrapper=${file%-${EPYTHON}}
|
||||
|
||||
mv "${file}" "${file/-/-${SLOT}-}" || die
|
||||
|
||||
# wrappers are common to all impls, so a parallel run may
|
||||
# move it for us. ln+rm is more failure-proof.
|
||||
ln -fs python-exec "${wrapper}-${SLOT}" || die
|
||||
rm -f "${wrapper}"
|
||||
done
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
dodoc docs/{CHANGES,PyManual,README,wxPackage,wxPythonManual}.txt
|
||||
|
||||
for x in {Py{AlaMode,Crust,Shell},XRCed}; do
|
||||
newmenu distrib/${x}.desktop ${x}-${SLOT}.desktop
|
||||
done
|
||||
newicon wx/py/PyCrust_32.png PyCrust-${SLOT}.png
|
||||
newicon wx/py/PySlices_32.png PySlices-${SLOT}.png
|
||||
newicon wx/tools/XRCed/XRCed_32.png XRCed-${SLOT}.png
|
||||
|
||||
if use examples; then
|
||||
docinto demo
|
||||
dodoc -r "${DOC_S}"/demo/.
|
||||
docinto samples
|
||||
dodoc -r "${DOC_S}"/samples/.
|
||||
|
||||
[[ -e ${docdir}/samples/embedded/embedded ]] \
|
||||
&& rm -f "${docdir}"/samples/embedded/embedded
|
||||
|
||||
docompress -x /usr/share/doc/${PF}/{demo,samples}
|
||||
fi
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fdo-mime_desktop_database_update
|
||||
|
||||
create_symlinks() {
|
||||
alternatives_auto_makesym "$(python_get_sitedir)/wx.pth" "$(python_get_sitedir)/wx.pth-[0-9].[0-9]"
|
||||
alternatives_auto_makesym "$(python_get_sitedir)/wxversion.py" "$(python_get_sitedir)/wxversion.py-[0-9].[0-9]"
|
||||
}
|
||||
python_foreach_impl create_symlinks
|
||||
|
||||
echo
|
||||
elog "Gentoo uses the Multi-version method for SLOT'ing."
|
||||
elog "Developers, see this site for instructions on using"
|
||||
elog "2.8 or 2.9 with your apps:"
|
||||
elog "http://wiki.wxpython.org/index.cgi/MultiVersionInstalls"
|
||||
if use examples; then
|
||||
echo
|
||||
elog "The demo.py app which contains demo modules with"
|
||||
elog "documentation and source code has been installed at"
|
||||
elog "/usr/share/doc/${PF}/demo/demo.py"
|
||||
echo
|
||||
elog "More example apps and modules can be found in"
|
||||
elog "/usr/share/doc/${PF}/samples/"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
fdo-mime_desktop_database_update
|
||||
|
||||
update_symlinks() {
|
||||
alternatives_auto_makesym "$(python_get_sitedir)/wx.pth" "$(python_get_sitedir)/wx.pth-[0-9].[0-9]"
|
||||
alternatives_auto_makesym "$(python_get_sitedir)/wxversion.py" "$(python_get_sitedir)/wxversion.py-[0-9].[0-9]"
|
||||
}
|
||||
python_foreach_impl update_symlinks
|
||||
}
|
@ -1 +0,0 @@
|
||||
DIST arrayfields-4.7.4.gem 14336 SHA256 f81994b5da2964e78fc6a8fdb841af01c7062424f550054e54f0f0c9eca82bcd SHA512 06103d36b781051da8498f6128adbb183b7f271f8dbdda416a4f2235d11c3f187a413b6388b242f5d58c729a68de4df99a1a8e4e5487291f16dd3bb18c245a90 WHIRLPOOL 7d8eb4484e2e74467df8fcf61ce92269484f1c11cc9387c5cbdada2fa1a4577e0f656c8e778c338c299309e73438cbde1749d2170edacb0b962dd34decd96b06
|
@ -1,35 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/arrayfields/arrayfields-4.7.4-r1.ebuild,v 1.3 2012/07/29 07:24:56 graaff Exp $
|
||||
|
||||
EAPI="2"
|
||||
|
||||
# ruby19 → fails tests
|
||||
USE_RUBY="ruby18 ree18 jruby"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_TASK_TEST=""
|
||||
RUBY_FAKEGEM_EXTRADOC="README"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Allow keyword access to array instances."
|
||||
HOMEPAGE="http://rubyforge.org/projects/codeforpeople/"
|
||||
|
||||
LICENSE="Ruby"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~x86-fbsd"
|
||||
IUSE="examples"
|
||||
|
||||
each_ruby_test() {
|
||||
${RUBY} test/arrayfields.rb || die "Test failed."
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
all_fakegem_install
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r sample || die "Installing examples failed."
|
||||
fi
|
||||
}
|
@ -0,0 +1,73 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/kde-base/kdepim-common-libs/kdepim-common-libs-4.12.1-r1.ebuild,v 1.1 2014/01/27 23:24:51 dilfridge Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
KMNAME="kdepim"
|
||||
KMNOMODULE="true"
|
||||
inherit kde4-meta
|
||||
|
||||
DESCRIPTION="Common libraries for KDE PIM apps"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="debug"
|
||||
|
||||
DEPEND="
|
||||
app-crypt/gpgme
|
||||
>=app-office/akonadi-server-1.10.43
|
||||
dev-libs/grantlee
|
||||
>=dev-libs/shared-desktop-ontologies-0.11.0
|
||||
$(add_kdebase_dep kdepimlibs)
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
!kde-base/akonadi:4
|
||||
!kde-base/libkdepim:4
|
||||
!kde-base/libkleo:4
|
||||
!kde-base/libkpgp:4
|
||||
!<kde-base/kaddressbook-4.11.50:4
|
||||
!kde-base/kdepim-wizards:4
|
||||
!<kde-base/kmail-4.4.80:4
|
||||
!=kde-base/kmail-4.12.0
|
||||
!=kde-base/kmail-4.12.1
|
||||
!=kde-base/kmail-4.11*
|
||||
!<kde-base/korganizer-4.5.67:4
|
||||
app-crypt/gnupg
|
||||
$(add_kdebase_dep kdepim-runtime)
|
||||
"
|
||||
|
||||
RESTRICT="test"
|
||||
# bug 393131
|
||||
|
||||
KMEXTRA="
|
||||
agents/
|
||||
akonadi_next/
|
||||
calendarsupport/
|
||||
calendarviews/
|
||||
composereditor-ng/
|
||||
grantleetheme/
|
||||
kaddressbookgrantlee/
|
||||
incidenceeditor-ng/
|
||||
libkdepim/
|
||||
libkdepimdbusinterfaces/
|
||||
libkleo/
|
||||
libkpgp/
|
||||
kdgantt2/
|
||||
messagecomposer/
|
||||
messagecore/
|
||||
messagelist/
|
||||
messageviewer/
|
||||
ontologies/
|
||||
pimcommon/
|
||||
templateparser/
|
||||
"
|
||||
KMEXTRACTONLY="
|
||||
kleopatra/
|
||||
kmail/
|
||||
knode/org.kde.knode.xml
|
||||
korgac/org.kde.korganizer.KOrgac.xml
|
||||
korganizer/org.kde.korganizer.Korganizer.xml
|
||||
mailcommon/
|
||||
"
|
||||
KMSAVELIBS="true"
|
||||
|
||||
PATCHES=( "${FILESDIR}/install-composereditorng.patch" )
|
@ -0,0 +1,104 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/kde-base/kmail/kmail-4.12.1-r1.ebuild,v 1.1 2014/01/27 23:26:25 dilfridge Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
KDE_HANDBOOK="optional"
|
||||
KMNAME="kdepim"
|
||||
VIRTUALX_REQUIRED=test
|
||||
inherit flag-o-matic kde4-meta
|
||||
|
||||
DESCRIPTION="KMail is the email component of Kontact, the integrated personal information manager of KDE."
|
||||
HOMEPAGE="http://www.kde.org/applications/internet/kmail/"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="debug"
|
||||
|
||||
DEPEND="
|
||||
$(add_kdebase_dep kdepimlibs)
|
||||
$(add_kdebase_dep korganizer)
|
||||
$(add_kdebase_dep kdepim-common-libs "" 4.12.1-r1)
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
RESTRICT="test"
|
||||
# bug 393147
|
||||
|
||||
KMEXTRACTONLY="
|
||||
agents/
|
||||
akonadi_next/
|
||||
calendarsupport/
|
||||
korganizer/
|
||||
kresources/
|
||||
libkleo/
|
||||
libkpgp/
|
||||
libkdepimdbusinterfaces/
|
||||
kdgantt2/
|
||||
"
|
||||
KMCOMPILEONLY="
|
||||
grantleetheme/
|
||||
kaddressbookgrantlee/
|
||||
messagecomposer/
|
||||
messagecore/
|
||||
messagelist/
|
||||
messageviewer/
|
||||
pimcommon/
|
||||
templateparser/
|
||||
incidenceeditor-ng/
|
||||
calendarsupport/
|
||||
"
|
||||
KMEXTRA="
|
||||
grantleethemeeditor/
|
||||
headerthemeeditor/
|
||||
kmailcvt/
|
||||
ksendemail/
|
||||
importwizard/
|
||||
libksieve/
|
||||
mailcommon/
|
||||
mailimporter/
|
||||
ontologies/
|
||||
pimsettingexporter/
|
||||
plugins/messageviewer/
|
||||
"
|
||||
|
||||
KMLOADLIBS="kdepim-common-libs"
|
||||
|
||||
src_configure() {
|
||||
# Bug 308903
|
||||
use ppc64 && append-flags -mminimal-toc
|
||||
|
||||
kde4-meta_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
kde4-meta_src_compile kmail_xml
|
||||
kde4-meta_src_compile
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
kde4-meta_pkg_postinst
|
||||
|
||||
if ! has_version kde-base/kdepim-kresources:${SLOT}; then
|
||||
echo
|
||||
elog "For groupware functionality, please install kde-base/kdepim-kresources:${SLOT}"
|
||||
echo
|
||||
fi
|
||||
if ! has_version kde-base/kleopatra:${SLOT}; then
|
||||
echo
|
||||
elog "For certificate management and the gnupg log viewer, please install kde-base/kleopatra:${SLOT}"
|
||||
echo
|
||||
fi
|
||||
|
||||
if has_version "app-office/akonadi-server[sqlite]"; then
|
||||
ewarn
|
||||
ewarn "We strongly recommend you set your Akonadi database backend to QMYSQL in your"
|
||||
ewarn "user configuration. This is the backend recommended by KDE upstream."
|
||||
ewarn "Reports indicate that kde-base/kmail-4.10 does not work properly with the sqlite"
|
||||
ewarn "backend anymore."
|
||||
if has_version "app-office/akonadi-server[-mysql]"; then
|
||||
ewarn "FOR THAT, YOU WILL HAVE TO RE-BUILD app-office/akonadi-server WITH mysql USEFLAG ENABLED."
|
||||
fi
|
||||
ewarn "You can select the backend in your ~/.config/akonadi/akonadiserverrc."
|
||||
ewarn
|
||||
fi
|
||||
}
|
@ -0,0 +1,49 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/kde-base/knode/knode-4.12.1-r1.ebuild,v 1.1 2014/01/27 23:27:44 dilfridge Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
KDE_HANDBOOK="optional"
|
||||
KMNAME="kdepim"
|
||||
inherit kde4-meta
|
||||
|
||||
DESCRIPTION="A newsreader for KDE"
|
||||
HOMEPAGE="http://www.kde.org/applications/internet/knode/"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="debug"
|
||||
|
||||
# test fails, last checked for 4.2.96
|
||||
RESTRICT=test
|
||||
|
||||
DEPEND="
|
||||
$(add_kdebase_dep kdepimlibs)
|
||||
$(add_kdebase_dep kdepim-common-libs "" 4.12.1-r1)
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
KMEXTRACTONLY="
|
||||
agents/
|
||||
libkleo/
|
||||
libkpgp/
|
||||
messagecomposer/
|
||||
messageviewer/
|
||||
messagecore/
|
||||
"
|
||||
KMCOMPILEONLY="
|
||||
grantleetheme/
|
||||
kaddressbookgrantlee/
|
||||
pimcommon/
|
||||
"
|
||||
|
||||
KMLOADLIBS="kdepim-common-libs"
|
||||
|
||||
src_unpack() {
|
||||
if use handbook; then
|
||||
KMEXTRA="
|
||||
doc/kioslave/news
|
||||
"
|
||||
fi
|
||||
|
||||
kde4-meta_src_unpack
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST 98925-cwp-1.10.0.tar.bz2 204828 SHA256 a8384162759337dbc2a8bb1c3d94adfe5f8e34882e0326b9e66fbd6b6f62ce5b SHA512 ac21db58a6c83c00837d4487ff4f591694d591f796dfdd1bc4830b3f19edb2d533c5f2c5fa1fd5dafa3f1b8b903c4d3321e6c55613d65ee53e4964dc6695741f WHIRLPOOL 622d00549a8d38801049da93ae8b13b8274bd7cb2cf5118114ee74395ad0a511854479287c3d4fd8fab7e32d9978108261c96fa10ab47d701686ee6a851e445b
|
||||
DIST 98925-cwp-1.8.3.tar.bz2 203825 SHA256 45bce33be0957eba620b0ae0d4e170a9e27ef51fb9821574a8fbb65e70672480 SHA512 54568f76e8cb9bda547e0172d40f751401cf2bd1254d70253564ccf032f1e3e68758084147ee88a2d15c5eb4174e70d0be034a68edc60ae5faf45dd16466b5e5 WHIRLPOOL dc6ca2a8813035e6ec894e5d64bff1d6477367f0a3c89361142fe34ffa554479d1a1b506a5f5aef246da56821c38f114c0e46c57a31d356644a02bd776f88156
|
||||
DIST 98925-cwp-1.9.1.tar.bz2 204569 SHA256 90ec23c50c5c1aeca81d29be6e4c2b41dc800f5ebd43eed14941a43b3c7109f2 SHA512 1af015a1ad6d28b454f0bab7fad259b30cbb502ffefc5309a668f40ba64a12bfd66af375aa17fafbedc08b8015b354d8d5870e16f331ebef3b7abaf6186d6265 WHIRLPOOL 200a4bb8068a29faba44931f588243ad401ee2186035d4daa8d511ec3b19c9496da26a96f99752cdabf2aa154d57117eb22427ff0460ac30fe2bf7e095aa2a87
|
||||
|
@ -0,0 +1,26 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/kde-misc/customizable-weather/customizable-weather-1.10.0.ebuild,v 1.1 2014/01/27 13:45:03 mrueg Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
KDE_LINGUAS="br de el es fr hu it nb nl pl ro ru sr sr@Latn tr zh_CN"
|
||||
inherit kde4-base
|
||||
|
||||
MY_P="cwp-${PV}"
|
||||
|
||||
DESCRIPTION="KDE4 weather plasmoid. It aims to be highly customizable, but is a little harder to setup."
|
||||
HOMEPAGE="http://www.kde-look.org/content/show.php/Customizable+Weather+Plasmoid?content=98925"
|
||||
SRC_URI="http://www.kde-look.org/CONTENT/content-files/98925-${MY_P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SLOT="4"
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND="
|
||||
$(add_kdebase_dep plasma-workspace)
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
@ -0,0 +1,37 @@
|
||||
diff -ur iscan-2.26.2/configure.ac iscan-2.26.2.new/configure.ac
|
||||
--- iscan-2.26.2/configure.ac 2014-01-27 13:37:26.782024452 -0500
|
||||
+++ iscan-2.26.2.new/configure.ac 2014-01-27 13:36:47.738024120 -0500
|
||||
@@ -274,6 +274,9 @@
|
||||
AC_HELP_STRING([--enable-$1],
|
||||
[ensure support for the $3 file format]),
|
||||
[if test "x$enable_$1" != xno; then
|
||||
+ if test "x$4" != xno; then
|
||||
+ PKG_CHECK_MODULES($3,[$4])
|
||||
+ fi
|
||||
iff_header="`echo $2 | $as_tr_sh`"
|
||||
AC_CHECK_HEADERS([$2])
|
||||
if test `eval echo '$ac_cv_header_'$iff_header` \
|
||||
@@ -284,9 +287,9 @@
|
||||
[AC_CHECK_HEADERS([$2])])
|
||||
])
|
||||
|
||||
-ISCAN_FILE_FORMAT(jpeg,jpeglib.h,JPEG)
|
||||
-ISCAN_FILE_FORMAT(png,png.h,PNG)
|
||||
-ISCAN_FILE_FORMAT(tiff,tiffio.h,TIFF)
|
||||
+ISCAN_FILE_FORMAT(jpeg,jpeglib.h,JPEG,no)
|
||||
+ISCAN_FILE_FORMAT(png,png.h,PNG,libpng)
|
||||
+ISCAN_FILE_FORMAT(tiff,tiffio.h,TIFF,no)
|
||||
|
||||
|
||||
dnl Support for performance measurements.
|
||||
diff -ur iscan-2.26.2/frontend/Makefile.am iscan-2.26.2.new/frontend/Makefile.am
|
||||
--- iscan-2.26.2/frontend/Makefile.am 2014-01-27 13:31:09.488021241 -0500
|
||||
+++ iscan-2.26.2.new/frontend/Makefile.am 2014-01-27 13:37:50.065024650 -0500
|
||||
@@ -37,6 +37,7 @@
|
||||
-lltdl \
|
||||
@GTK_LIBS@ \
|
||||
@GDK_IMLIB_LIBS@ \
|
||||
+ @PNG_LIBS@ \
|
||||
$(top_builddir)/non-free/libesmod.so
|
||||
iscan_SOURCES = \
|
||||
$(iscan_source_files)
|
@ -0,0 +1,37 @@
|
||||
diff -ur iscan-2.29.1/configure.ac iscan-2.29.1.new/configure.ac
|
||||
--- iscan-2.29.1/configure.ac 2014-01-27 14:15:28.139043864 -0500
|
||||
+++ iscan-2.29.1.new/configure.ac 2014-01-27 14:17:10.608044736 -0500
|
||||
@@ -279,6 +279,9 @@
|
||||
AC_HELP_STRING([--enable-$1],
|
||||
[ensure support for the $3 file format]),
|
||||
[if test "x$enable_$1" != xno; then
|
||||
+ if test "x$4" != xno; then
|
||||
+ PKG_CHECK_MODULES($3,[$4])
|
||||
+ fi
|
||||
iff_header="`echo $2 | $as_tr_sh`"
|
||||
AC_CHECK_HEADERS([$2])
|
||||
if test `eval echo '$ac_cv_header_'$iff_header` \
|
||||
@@ -289,9 +292,9 @@
|
||||
[AC_CHECK_HEADERS([$2])])
|
||||
])
|
||||
|
||||
-ISCAN_FILE_FORMAT(jpeg,jpeglib.h,JPEG)
|
||||
-ISCAN_FILE_FORMAT(png,png.h,PNG)
|
||||
-ISCAN_FILE_FORMAT(tiff,tiffio.h,TIFF)
|
||||
+ISCAN_FILE_FORMAT(jpeg,jpeglib.h,JPEG,no)
|
||||
+ISCAN_FILE_FORMAT(png,png.h,PNG,libpng)
|
||||
+ISCAN_FILE_FORMAT(tiff,tiffio.h,TIFF,no)
|
||||
|
||||
|
||||
dnl Support for performance measurements.
|
||||
diff -ur iscan-2.29.1/frontend/Makefile.am iscan-2.29.1.new/frontend/Makefile.am
|
||||
--- iscan-2.29.1/frontend/Makefile.am 2014-01-27 14:15:28.123043864 -0500
|
||||
+++ iscan-2.29.1.new/frontend/Makefile.am 2014-01-27 14:17:43.628045017 -0500
|
||||
@@ -37,6 +37,7 @@
|
||||
-lltdl \
|
||||
@GTK_LIBS@ \
|
||||
@GDK_IMLIB_LIBS@ \
|
||||
+ @PNG_LIBS@ \
|
||||
$(top_builddir)/non-free/libesmod.so
|
||||
iscan_SOURCES = \
|
||||
$(iscan_source_files)
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue