parent
9b260db2b2
commit
fde0733176
@ -0,0 +1,37 @@
|
||||
From: "Daniel P. Berrange" <berrange@redhat.com>
|
||||
Date: Fri, 28 Jun 2013 10:48:37 +0100
|
||||
Subject: [PATCH] CVE-2013-2218: Fix crash listing network interfaces with
|
||||
filters
|
||||
|
||||
The virConnectListAllInterfaces method has a double-free of the
|
||||
'struct netcf_if' object when any of the filtering flags cause
|
||||
an interface to be skipped over. For example when running the
|
||||
command 'virsh iface-list --inactive'
|
||||
|
||||
This is a regression introduced in release 1.0.6 by
|
||||
|
||||
commit 7ac2c4fe624f30f2c8270116513fa2ddab07631f
|
||||
Author: Guannan Ren <gren@redhat.com>
|
||||
Date: Tue May 21 21:29:38 2013 +0800
|
||||
|
||||
interface: list all interfaces with flags == 0
|
||||
|
||||
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
|
||||
---
|
||||
src/interface/interface_backend_netcf.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/interface/interface_backend_netcf.c b/src/interface/interface_backend_netcf.c
|
||||
index a995816..9aa673d 100644
|
||||
--- a/src/interface/interface_backend_netcf.c
|
||||
+++ b/src/interface/interface_backend_netcf.c
|
||||
@@ -412,6 +412,7 @@ netcfConnectListAllInterfaces(virConnectPtr conn,
|
||||
(MATCH(VIR_CONNECT_LIST_INTERFACES_INACTIVE) &&
|
||||
(status & NETCF_IFACE_INACTIVE)))) {
|
||||
ncf_if_free(iface);
|
||||
+ iface = NULL;
|
||||
continue;
|
||||
}
|
||||
|
||||
--
|
||||
1.8.2.1
|
@ -0,0 +1,24 @@
|
||||
commit 027a7707bea5ba455212715278e3ae486f97eacb
|
||||
Author: Doug Goldstein <cardoe@cardoe.com>
|
||||
Date: Thu Jun 27 20:43:00 2013 -0500
|
||||
|
||||
Allow RO connections to interface udev backend
|
||||
|
||||
The udev based interface backend did not allow querying data over a
|
||||
read-only connection which is different than how the netcf backend
|
||||
operates. This brings the behavior inline with the default, netcf
|
||||
backend.
|
||||
|
||||
diff --git a/src/interface/interface_backend_udev.c b/src/interface/interface_backend_udev.c
|
||||
index 68e1e2f..95034bf 100644
|
||||
--- a/src/interface/interface_backend_udev.c
|
||||
+++ b/src/interface/interface_backend_udev.c
|
||||
@@ -139,7 +139,7 @@ udevInterfaceOpen(virConnectPtr conn,
|
||||
{
|
||||
struct udev_iface_driver *driverState = NULL;
|
||||
|
||||
- virCheckFlags(0, VIR_DRV_OPEN_ERROR);
|
||||
+ virCheckFlags(VIR_CONNECT_RO, VIR_DRV_OPEN_ERROR);
|
||||
|
||||
if (VIR_ALLOC(driverState) < 0) {
|
||||
virReportOOMError();
|
@ -0,0 +1,429 @@
|
||||
# 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.0.6-r1.ebuild,v 1.1 2013/07/01 14:07:41 cardoe Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
BACKPORTS=9eea7e71
|
||||
AUTOTOOLIZE=yes
|
||||
|
||||
MY_P="${P/_rc/-rc}"
|
||||
|
||||
PYTHON_COMPAT=( python{2_5,2_6,2_7} )
|
||||
|
||||
inherit eutils python-single-r1 user autotools linux-info systemd
|
||||
|
||||
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-libs/libxslt"
|
||||
|
||||
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
|
||||
~DEVPTS_MULTIPLE_INSTANCES
|
||||
~VETH
|
||||
~MACVLAN
|
||||
~POSIX_MQUEUE
|
||||
~!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"
|
||||
|
||||
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 lxc && CONFIG_CHECK+="${LXC_CONFIG_CHECK}"
|
||||
use macvtap && CONFIG_CHECK+="${MACVTAP}"
|
||||
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 "${FILESDIR}/libvirt-1.0.6-CVE-2013-2218.patch"
|
||||
epatch "${FILESDIR}/libvirt-1.0.6-virinterface-udev-backend-ro.patch"
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
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
|
||||
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!
|
||||
|
||||
elog
|
||||
elog "For the basic networking support (bridged and routed networks)"
|
||||
elog "you don't need any extra software. For more complex network modes"
|
||||
elog "including but not limited to NATed network, you can enable the"
|
||||
elog "'virt-network' USE flag."
|
||||
elog
|
||||
if has_version net-dns/dnsmasq; then
|
||||
ewarn "If you have a DNS server setup on your machine, you will have"
|
||||
ewarn "to configure /etc/dnsmasq.conf to enable the following settings: "
|
||||
ewarn " bind-interfaces"
|
||||
ewarn " interface or except-interface"
|
||||
ewarn
|
||||
ewarn "Otherwise you might have issues with your existing DNS server."
|
||||
fi
|
||||
|
||||
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,10 +1,10 @@
|
||||
# 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.0.6.ebuild,v 1.2 2013/06/04 21:46:22 cardoe Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/libvirt-1.1.0.ebuild,v 1.1 2013/07/01 21:10:38 cardoe Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
BACKPORTS=9eea7e71
|
||||
#BACKPORTS=9eea7e71
|
||||
AUTOTOOLIZE=yes
|
||||
|
||||
MY_P="${P/_rc/-rc}"
|
@ -1,2 +1,3 @@
|
||||
DIST CRF++-0.53.tar.gz 805150 SHA256 8a909ed9bd2495c82389a5325f9c50a0dd6232f67150b0ddb89c73633ab32dea SHA512 ebb75ee3e1f32900e57ce6007e4a4910daa12c172eac675b19d878e99ff56ffb3702d36488b5bdc3d81e20ef45ad7f2a09a3203d82013689e85dfbe03da638e9 WHIRLPOOL 85c1888c58eb24f52333365c899487378bb21176abf40f9687d24a0fed1712c9b71904bf90dac969de256dc680f3253a850c17a4e3f964493fb263141b70e6a0
|
||||
DIST CRF++-0.54.tar.gz 809008 SHA256 8dab6e9ab71212b3d223588f6855384f2b29dada0a30d450266f8990ced63354 SHA512 4198ad9423776a44d02db51a655a35f36db767ec623f55de426b3415179ac7187b91d23c6ef9a2cf3d1c38e14507fc7681006ff2ba50dcfc771a7d5e9d1c5760 WHIRLPOOL 6e09affc37cee8bda9df1b7a919f386e026f4218a5ccda7e677b7a172887aba7af85db2357ea1ec51c8122115bb558183e242315d2991b4745df6ce90835cda4
|
||||
DIST CRF++-0.58.tar.gz 790570 SHA256 9d1c0a994f25a5025cede5e1d3a687ec98cd4949bfb2aae13f2a873a13259cb2 SHA512 676b3e9ed89b5fb2f246175b58c384f10cab09fff8329c07311fed3832f55dbad26a25d2946c9efaa75cd8026517cb9e1742bb70ca26187367747852073e4eb9 WHIRLPOOL 87f642639c0d670a7926d99630f2230fffbbea1e02976fc8f47dc580dcbfffdca6e2e066445e7bd28fb517dd5f3798af9fda6549c54fd5278f3570befc155ee6
|
||||
|
@ -0,0 +1,56 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/crf++/crf++-0.58.ebuild,v 1.1 2013/07/02 02:08:16 naota Exp $
|
||||
|
||||
EAPI="3"
|
||||
inherit autotools eutils
|
||||
|
||||
MY_P="${P/crf/CRF}"
|
||||
DESCRIPTION="Yet Another CRF toolkit for segmenting/labelling sequential data"
|
||||
HOMEPAGE="http://crfpp.googlecode.com/svn/trunk/doc/index.html"
|
||||
SRC_URI="http://crfpp.googlecode.com/files/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="|| ( BSD LGPL-2.1 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~x86-fbsd"
|
||||
IUSE="examples static-libs"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_prepare() {
|
||||
sed -i \
|
||||
-e "/CFLAGS/s/-O3/${CFLAGS}/" \
|
||||
-e "/CXXFLAGS/s/-O3/${CXXFLAGS}/" \
|
||||
configure.in || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf $(use_enable static-libs static) || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
for task in example/* ; do
|
||||
(
|
||||
cd "${task}"
|
||||
./exec.sh || die "failed test in ${task}"
|
||||
)
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die
|
||||
|
||||
if ! use static-libs ; then
|
||||
find "${ED}" -name "*.la" -type f -delete || die
|
||||
fi
|
||||
|
||||
dodoc AUTHORS README || die
|
||||
dohtml -r doc/* || die
|
||||
|
||||
if use examples ; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r example || die
|
||||
fi
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
DIST libzdb-2.10.5.tar.gz 597491 SHA256 2ed89c57bab95cb52a9a8d54b46453b1e4d95b0e8e23e4faf2a7337fb4de631d SHA512 60f041175ec3b4ac5c6d90c422b384ca07e6077bf93e6bd6777bd7680fefe65a2061048528a63b1ad5ae84654a35a7a0635d2da8b42a1b380f64d8e555854472 WHIRLPOOL 5505ff0dd79117ef5bce3de0c403867e3ea486578bbfef23d0e08829fd7ff238a4e20550b86d98a19181ebe04d2235b3824257f6aa46e290a5f6303c4f5fb522
|
||||
DIST libzdb-2.11.1.tar.gz 599354 SHA256 390cdee70dcdd77f4ae113949564056b7a0648a931a918c0b626fa7e6d820c8c SHA512 b630c8ce8ee9eaee53cd801cca08af543faaf7f945c9bfd2721bba0a5569980949ab8212c4bf17fec56b5c5c107cef17cfa893e293444a39bd32116d47edb2c5 WHIRLPOOL 1fca845c84c7f5a867f6de7e5e3cae28e73a2ff0b7f261d385a87893c716b8640a60d262aaaedc5cd36f91dfbabfb818f820906d3e1eefcebc9e20928d3b66c7
|
||||
DIST libzdb-2.11.2.tar.gz 603149 SHA256 23d8cc201f4d4417963a440005bf3a93fc2010032a275056b0970c060910a298 SHA512 482510fcf382e3b235ae7a5615f175d46f2d0244ed2d06c6c2df14ea5cebff5dbf6ac855aedc28a7981b77f3662c505049c5439c33e29a762af2d2a793d959c9 WHIRLPOOL a04cd2c25bfaf7fd899c8d334e8836a3d574b033ba2c5e43986f1d915e3090d1f9b0bb9a3bb7a6f4b6897fda028f143492156081c331b11ad51df3582ff6cfba
|
||||
DIST libzdb-2.11.3.tar.gz 604720 SHA256 3ad2ffa8533b8b4524104a66345659235cec56211664906eba83134e3b305028 SHA512 89305e5ecfc6a630936268f2b70f417c9a66bcc37063f4d87fcc0d1e6b106f0fec0b299da9c7375087e77de07abf3ae81fb48027fd741f150cffef7027930c66 WHIRLPOOL 449924b519cd84904b72aa9d5a3557489f0c0c62d024ee2cd23b978ea26b2323ee58faa0a55388c48de5bfadb2a5d6a6cdbe9ae5abe69d7190a65329e267689f
|
||||
|
@ -0,0 +1,25 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/kaa-display/kaa-display-0.1.0-r1.ebuild,v 1.1 2013/07/02 01:51:50 idella4 Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python API providing Low level support for various displays, such as X11 or framebuffer."
|
||||
HOMEPAGE="http://freevo.sourceforge.net/kaa/"
|
||||
SRC_URI="mirror://sourceforge/freevo/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=dev-python/kaa-base-0.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/kaa-imlib2-0.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pygame-1.6.0[${PYTHON_USEDEP}]
|
||||
media-libs/imlib2[X]
|
||||
>=x11-libs/libX11-1.0.0"
|
||||
RDEPEND="${DEPEND}"
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
@ -0,0 +1,25 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/kaa-imlib2/kaa-imlib2-0.2.3-r2.ebuild,v 1.1 2013/07/01 15:26:58 idella4 Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Imlib2 wrapper for Python."
|
||||
HOMEPAGE="http://freevo.sourceforge.net/kaa/"
|
||||
SRC_URI="mirror://sourceforge/freevo/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=dev-python/kaa-base-0.3.0[${PYTHON_USEDEP}]
|
||||
dev-libs/libxml2[python]
|
||||
media-libs/imlib2"
|
||||
RDEPEND="${DEPEND}"
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
PATCHES=( "${FILESDIR}/kaa-imlib2-remove-png-dep.patch" )
|
@ -0,0 +1,29 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/kaa-metadata/kaa-metadata-0.7.7-r1.ebuild,v 1.1 2013/07/02 02:01:14 idella4 Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
PYTHON_REQ_USE="threads"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Powerful media metadata parser for media files in Python, successor of MMPython"
|
||||
HOMEPAGE="http://freevo.sourceforge.net/kaa/"
|
||||
SRC_URI="mirror://sourceforge/freevo/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="css dvd"
|
||||
|
||||
DEPEND=">=dev-python/kaa-base-0.3.0[${PYTHON_USEDEP}]
|
||||
css? ( media-libs/libdvdcss )
|
||||
dvd? ( media-libs/libdvdread )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
python_prepare_all() {
|
||||
# Disable experimental exiv2 parser which fails to build.
|
||||
sed -e "s/-lexiv2/&_nonexistent/" -i setup.py || die "sed setup.py failed"
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
@ -0,0 +1,51 @@
|
||||
diff --git a/mwlib/nslave.py b/mwlib/nslave.py
|
||||
index d3f8fc0..cccfc7a 100755
|
||||
--- a/mwlib/nslave.py
|
||||
+++ b/mwlib/nslave.py
|
||||
@@ -184,7 +184,7 @@ class commands(object):
|
||||
return doit(**params)
|
||||
|
||||
|
||||
-def start_serving_files(cachedir, port):
|
||||
+def start_serving_files(cachedir, address, port):
|
||||
from gevent.pywsgi import WSGIServer
|
||||
from bottle import route, static_file, default_app
|
||||
cachedir = os.path.abspath(cachedir)
|
||||
@@ -195,7 +195,7 @@ def start_serving_files(cachedir, port):
|
||||
if filename.endswith(".rl"):
|
||||
response.headers["Content-Disposition"] = "inline; filename=collection.pdf"
|
||||
return response
|
||||
- s = WSGIServer(("", port), default_app())
|
||||
+ s = WSGIServer((address, port), default_app())
|
||||
s.start()
|
||||
return s
|
||||
|
||||
@@ -212,10 +212,11 @@ def make_cachedir(cachedir):
|
||||
def main():
|
||||
global cachedir, cacheurl
|
||||
numgreenlets = 10
|
||||
+ http_address = 'localhost'
|
||||
http_port = 8898
|
||||
serve_files = True
|
||||
from mwlib import argv
|
||||
- opts, args = argv.parse(sys.argv[1:], "--no-serve-files --serve-files-port= --serve-files --cachedir= --url= --numprocs=")
|
||||
+ opts, args = argv.parse(sys.argv[1:], "--no-serve-files --serve-files-port= --serve-files-address= --serve-files --cachedir= --url= --numprocs=")
|
||||
for o, a in opts:
|
||||
if o == "--cachedir":
|
||||
cachedir = a
|
||||
@@ -227,12 +228,14 @@ def main():
|
||||
serve_files = False
|
||||
elif o == "--serve-files-port":
|
||||
http_port = int(a)
|
||||
+ elif o == "--serve-files-address":
|
||||
+ http_address = str(a)
|
||||
|
||||
if cachedir is None:
|
||||
sys.exit("nslave: missing --cachedir argument")
|
||||
|
||||
if serve_files:
|
||||
- wsgi_server = start_serving_files(cachedir, http_port)
|
||||
+ wsgi_server = start_serving_files(cachedir, http_address, http_port)
|
||||
port = wsgi_server.socket.getsockname()[1]
|
||||
if not cacheurl:
|
||||
cacheurl = "http://%s:%s/cache" % (find_ip(), port)
|
@ -0,0 +1,14 @@
|
||||
# The port to listen to
|
||||
MW_QSERVE_PORT=14311
|
||||
|
||||
# The interface to listen to (for example: 127.0.0.1)
|
||||
MW_QSERVE_INTERFACE="127.0.0.1"
|
||||
|
||||
# The user running the mw-qserve service, defaults to 'mwlib'
|
||||
# MW_QSERVE_USER="mwlib"
|
||||
|
||||
# The group running the mq-qserve service, defaults to 'mwlib'
|
||||
# MW_QSERVE_GROUP="mwlib"
|
||||
|
||||
# The logfile collecting all output from stdout and stderr, comment out for no logging
|
||||
MW_QSERVE_LOGFILE="/var/log/mwlib/mw-qserve.log"
|
@ -0,0 +1,21 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/mwlib/files/mw-qserve.initd,v 1.1 2013/07/01 13:56:29 dev-zero Exp $
|
||||
|
||||
description="mw-qserve is a job queue server used to distribute and manage jobs"
|
||||
|
||||
command="/usr/bin/mw-qserve"
|
||||
command_args="--interface=${MW_QSERVE_INTERFACE} --port=${MW_QSERVE_PORT}"
|
||||
|
||||
pidfile="/var/run/${SVCNAME}.pid"
|
||||
command_background="yes"
|
||||
|
||||
start_stop_daemon_args="--user ${MW_QSERVE_USER:-mwlib} \
|
||||
--group ${MW_QSERVE_GROUP:-mwlib} \
|
||||
${MW_QSERVE_LOGFILE:+--stderr ${MW_QSERVE_LOGFILE}} \
|
||||
${MW_QSERVE_LOGFILE:+--stdout ${MW_QSERVE_LOGFILE}}"
|
||||
|
||||
depend() {
|
||||
need net localmount
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
/var/log/mwlib/mw-qserve.log {
|
||||
su mwlib mwlib
|
||||
missingok
|
||||
postrotate
|
||||
/etc/init.d/mw-qserve restart > /dev/null 2>&1
|
||||
endscript
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
# purge mw-serve cache directory
|
||||
# --cache-dir=DIR: the NSLAVE_CACHEDIR directory specified in /etc/conf.d/nslave
|
||||
# --purge-cache=HOURS: remove cache files that have not been touched for at east HOURS hours
|
||||
00 23 * * * sudo -u mwlib mw-serve-ctl --cache-dir=/var/cache/mw-serve --purge-cache=24
|
@ -0,0 +1,20 @@
|
||||
# The port on which the mw-qserve service is listening
|
||||
MW_QSERVE_PORT=14311
|
||||
|
||||
# The interface on which the mw-qserve is listening (for example: 127.0.0.1)
|
||||
MW_QSERVE_INTERFACE="127.0.0.1"
|
||||
|
||||
# The port to listen to
|
||||
NSERVE_PORT=8899
|
||||
|
||||
# The interface to listen to (for example: 127.0.0.1)
|
||||
NSERVE_INTERFACE="127.0.0.1"
|
||||
|
||||
# The user running the nserve service, defaults to 'mwlib'
|
||||
# NSERVE_USER="mwlib"
|
||||
|
||||
# The group running the nserve service, defaults to 'mwlib'
|
||||
# NSERVE_GROUP="mwlib"
|
||||
|
||||
# The logfile collecting all output from stdout and stderr, comment out for no logging
|
||||
NSERVE_LOGFILE="/var/log/mwlib/nserve.log"
|
@ -0,0 +1,24 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/mwlib/files/nserve.initd,v 1.1 2013/07/01 13:56:29 dev-zero Exp $
|
||||
|
||||
description="nserve is a HTTP server which distributes received jobs to a mw-qserve instance"
|
||||
|
||||
command="/usr/bin/nserve"
|
||||
command_args="--port=${NSERVE_PORT} \
|
||||
--interface=${NSERVE_INTERFACE} \
|
||||
--qserve=${MW_QSERVE_INTERFACE}:${MW_QSERVE_PORT}"
|
||||
|
||||
pidfile="/var/run/${SVCNAME}.pid"
|
||||
command_background="yes"
|
||||
|
||||
start_stop_daemon_args="--user ${NSERVE_USER:-mwlib} \
|
||||
--group ${NSERVE_GROUP:-mwlib} \
|
||||
${NSERVE_LOGFILE:+--stderr ${NSERVE_LOGFILE}} \
|
||||
${NSERVE_LOGFILE:+--stdout ${NSERVE_LOGFILE}}"
|
||||
|
||||
depend() {
|
||||
need net localmount
|
||||
use mw-qserve
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
/var/log/mwlib/nserve.log {
|
||||
su mwlib mwlib
|
||||
missingok
|
||||
postrotate
|
||||
/etc/init.d/nserve restart > /dev/null 2>&1
|
||||
endscript
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
# The address to serve the rendered files to the wiki
|
||||
NSLAVE_ADDRESS="localhost"
|
||||
|
||||
# The port to serve the rendered files to the wiki
|
||||
NSLAVE_PORT=8898
|
||||
|
||||
# The url to serve the rendered files to the wiki
|
||||
NSLAVE_URL="http://${NSLAVE_ADDRESS}:${NSLAVE_PORT}"
|
||||
|
||||
# The directory to save the rendered PDFs to
|
||||
NSLAVE_CACHEDIR="/var/cache/mwlib/"
|
||||
|
||||
# The umask to create files in NSLAVE_CACHEDIR
|
||||
NSLAVE_UMASK=027
|
||||
|
||||
# How many greenlets are allowed to run in parallel
|
||||
NSLAVE_NUMPROCS=10
|
||||
|
||||
# The user running the nserve service, defaults to 'mwlib'
|
||||
# NSLAVE_USER="mwlib"
|
||||
|
||||
# The group running the nserve service, defaults to 'mwlib'
|
||||
# NSLAVE_GROUP="mwlib"
|
||||
|
||||
# The logfile collecting all output from stdout and stderr, comment out for no logging
|
||||
NSLAVE_LOGFILE="/var/log/mwlib/nslave.log"
|
@ -0,0 +1,27 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/mwlib/files/nslave.initd,v 1.1 2013/07/01 13:56:29 dev-zero Exp $
|
||||
|
||||
description="nslave pulls new jobs from a mw-qserve instance"
|
||||
|
||||
command="/usr/bin/nslave"
|
||||
command_args="--cachedir=${NSLAVE_CACHEDIR} \
|
||||
--serve-files-address=${NSLAVE_ADDRESS} \
|
||||
--serve-files-port=${NSLAVE_PORT} \
|
||||
--url=${NSLAVE_URL} \
|
||||
--numprocs=${NSLAVE_NUMPROCS}"
|
||||
|
||||
pidfile="/var/run/${SVCNAME}.pid"
|
||||
command_background="yes"
|
||||
|
||||
start_stop_daemon_args="--user ${NSLAVE_USER:-mwlib} \
|
||||
--group ${NSLAVE_GROUP:-mwlib} \
|
||||
${NSLAVE_LOGFILE-:+-stderr ${NSLAVE_LOGFILE}} \
|
||||
${NSLAVE_LOGFILE:+--stdout ${NSLAVE_LOGFILE}} \
|
||||
--umask ${NSLAVE_UMASK}"
|
||||
|
||||
depend() {
|
||||
need net localmount
|
||||
use mw-qserve
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
/var/log/mwlib/nslave.log {
|
||||
su mwlib mwlib
|
||||
missingok
|
||||
postrotate
|
||||
/etc/init.d/nslave restart > /dev/null 2>&1
|
||||
endscript
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
# The cache-directory to which the collections are saved, make sure you enter
|
||||
# the same directory as in /etc/conf.d/nslave
|
||||
POSTMAN_CACHEDIR="/var/cache/mwlib/"
|
||||
|
||||
# The user running the postman service, defaults to 'mwlib'
|
||||
# POSTMAN_USER="mwlib"
|
||||
|
||||
# The group running the postman service, defaults to 'mwlib'
|
||||
# POSTMAN_GROUP="mwlib"
|
||||
|
||||
# The logfile collecting all output from stdout and stderr, comment out for no logging
|
||||
POSTMAN_LOGFILE="/var/log/mwlib/postman.log"
|
@ -0,0 +1,21 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/mwlib/files/postman.initd,v 1.1 2013/07/01 13:56:29 dev-zero Exp $
|
||||
|
||||
description="postman uploads zip collections to pediapress in case someone likes to order printed books"
|
||||
|
||||
command="/usr/bin/postman"
|
||||
command_args="--cachedir=${POSTMAN_CACHDIR}"
|
||||
|
||||
pidfile="/var/run/${SVCNAME}.pid"
|
||||
command_background="yes"
|
||||
|
||||
start_stop_daemon_args="--user ${POSTMAN_USER:-mwlib} \
|
||||
--group ${POSTMAN_GROUP:-mwlib} \
|
||||
${POSTMAN_LOGFILE:+--stderr ${POSTMAN_LOGFILE}} \
|
||||
${POSTMAN_LOGFILE:+--stdout ${POSTMAN_LOGFILE}}"
|
||||
|
||||
depend() {
|
||||
need net localmount
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
/var/log/mwlib/postman.log {
|
||||
su mwlib mwlib
|
||||
missingok
|
||||
postrotate
|
||||
/etc/init.d/postman restart > /dev/null 2>&1
|
||||
endscript
|
||||
}
|
@ -0,0 +1,121 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/mwlib/mwlib-0.15.8-r2.ebuild,v 1.1 2013/07/01 13:56:29 dev-zero Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
|
||||
inherit distutils-r1 user eutils
|
||||
|
||||
DESCRIPTION="Tools for parsing Mediawiki content to other formats"
|
||||
HOMEPAGE="http://code.pediapress.com/wiki/wiki http://pypi.python.org/pypi/mwlib"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc server"
|
||||
|
||||
RDEPEND="dev-python/lxml[${PYTHON_USEDEP}]
|
||||
=dev-python/odfpy-0.9*[${PYTHON_USEDEP}]
|
||||
dev-python/pyPdf[${PYTHON_USEDEP}]
|
||||
virtual/pyparsing[${PYTHON_USEDEP}]
|
||||
dev-python/timelib[${PYTHON_USEDEP}]
|
||||
virtual/latex-base
|
||||
>=dev-python/simplejson-2.5[${PYTHON_USEDEP}]
|
||||
dev-python/gevent[${PYTHON_USEDEP}]
|
||||
>=dev-python/bottle-0.11.6[${PYTHON_USEDEP}]
|
||||
dev-python/apipkg[${PYTHON_USEDEP}]
|
||||
dev-python/qserve[${PYTHON_USEDEP}]
|
||||
dev-python/roman[${PYTHON_USEDEP}]
|
||||
dev-python/py[${PYTHON_USEDEP}]
|
||||
dev-python/sqlite3dbm[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
server? ( app-admin/sudo )"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
app-arch/unzip
|
||||
doc? ( dev-python/sphinx )"
|
||||
|
||||
# TODO: requires ploticus to generate timelines
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PV}-fix-tests.patch" "${FILESDIR}/${PV}-nslave-add-address-parameter.patch" )
|
||||
|
||||
DOCS=(changelog.rst)
|
||||
|
||||
pkg_setup() {
|
||||
if use server ; then
|
||||
enewgroup mwlib
|
||||
enewuser mwlib -1 -1 -1 mwlib
|
||||
fi
|
||||
}
|
||||
|
||||
python_prepare_all() {
|
||||
# mwlib.apipkg is actually used.
|
||||
sed -e 's/, "apipkg"//' -i setup.py || die
|
||||
|
||||
# Execute odflint script.
|
||||
sed \
|
||||
-e "/def _get_odflint_module():/,/odflint = _get_odflint_module()/d" \
|
||||
-e "s/odflint.lint(path)/os.system('odflint %s' % path)/" \
|
||||
-i tests/test_odfwriter.py || die
|
||||
|
||||
# Disable test which requires installed mw-zip script.
|
||||
rm -f tests/test_{nuwiki,redirect,zipwiki}.py
|
||||
# Disable render test that fails for no apparent reason
|
||||
rm -f tests/test_render.py
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
if [[ ${EPYTHON} == python2* ]] ; then
|
||||
local CFLAGS="${CFLAGS} -fno-strict-aliasing"
|
||||
export CFLAGS
|
||||
fi
|
||||
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
py.test || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( docs/_build/html/. )
|
||||
distutils-r1_python_install_all
|
||||
|
||||
if use server ; then
|
||||
keepdir /var/log/mwlib
|
||||
keepdir /var/cache/mwlib
|
||||
|
||||
fowners mwlib:mwlib /var/log/mwlib /var/cache/mwlib
|
||||
fperms 0750 /var/log/mwlib /var/cache/mwlib
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
for d in mw-qserve nserve nslave postman ; do
|
||||
newins "${FILESDIR}/${d}.logrotate" "${d}"
|
||||
newinitd "${FILESDIR}/${d}.initd" "${d}"
|
||||
newconfd "${FILESDIR}/${d}.confd" "${d}"
|
||||
done
|
||||
|
||||
insinto /etc/cron.d
|
||||
newins "${FILESDIR}/mwlib-purge-cache.cron" "mwlib-purge-cache"
|
||||
else
|
||||
rm "${D}"/usr/bin/{mw-qserve,nserve,nslave,postman}* || die "removing binaries failed"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Please enable required image formats for dev-python/pillow"
|
||||
if use server ; then
|
||||
elog "A cronjob to cleanup the cache files got installed to"
|
||||
elog " /etc/cron.d/mwlib-purge-cache"
|
||||
elog "Default parameters are to clean every 24h, adjust it to your needs."
|
||||
fi
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST tables-2.4.0.tar.gz 8947724 SHA256 6a2ab6037ccde0636ce47e4475e671c45505029ebded333d403d7252cde18d57 SHA512 12e2b184434807d615ae6b50fc7a2a2daf9dfc94e19474e16fcd9801e0c7f92432dd0772d70657c75f8895d36991965647edcf2560abdad0c2b02c14c6b6cc7f WHIRLPOOL 4fc5dd7bc6d5244df19eb008aeae7806a181cfd5efd7cbcadd216d663dd7a3d942c329dfad04aac4c14bcc118c7150b8dcda2d29f8ed10ae68e2faa2f893c43f
|
||||
DIST tables-3.0.0.tar.gz 6191726 SHA256 53532a59c8f03c3c5ef3c73c04f5bfd8384d6a3d508683cb87fc17af4c71dfe1 SHA512 3486393e2bcf9b4a45787dae030a5399fbda90aba9d49cb6bd681a6fd4ed3d3fa84033f63c600e83e26cffb0f961025cf6e3479d3cf7e96877bc333ef12fad12 WHIRLPOOL 2376eaf0cc08cf3910c2449f2df6881d81a8bca8aaf0e10a41f54327665171b2985a91ceb9ac1e8e077c259ed882644ee7ab69ba6cfc924dd6e5e60fd4d062d1
|
||||
|
@ -1,61 +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/pytables/pytables-2.4.0-r1.ebuild,v 1.1 2013/05/04 10:31:49 jlec Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_5,2_6,2_7} )
|
||||
|
||||
MY_PN=tables
|
||||
MY_P=${MY_PN}-${PV}
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A package for managing hierarchical datasets built on top of the HDF5 library"
|
||||
HOMEPAGE="http://www.pytables.org http://pypi.python.org/pypi/tables"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${PV}/${MY_P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
LICENSE="BSD"
|
||||
IUSE="doc contrib examples"
|
||||
|
||||
RDEPEND="
|
||||
sci-libs/hdf5:=
|
||||
>=dev-python/numpy-1.6.0
|
||||
dev-python/numexpr
|
||||
dev-libs/lzo:2
|
||||
app-arch/bzip2"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/cython"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
DOCS=( ANNOUNCE.txt RELEASE_NOTES.txt THANKS doc/usersguide-${PV}.pdf )
|
||||
|
||||
python_prepare_all() {
|
||||
export HDF5_DIR="${EPREFIX}"/usr
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
${PYTHON} tables/tests/test_all.py || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
if use doc; then
|
||||
HTML_DOCS=( doc/html/. )
|
||||
DOCS+=( doc/scripts )
|
||||
fi
|
||||
distutils-r1_python_install_all
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r examples
|
||||
fi
|
||||
|
||||
if use contrib; then
|
||||
insinto /usr/share/${PF}
|
||||
doins -r contrib
|
||||
fi
|
||||
}
|
@ -1,67 +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/pytables/pytables-2.4.0.ebuild,v 1.2 2013/02/28 10:04:29 xarthisius Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_DEPEND="2"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="3.* 2.7-pypy-* *-jython"
|
||||
|
||||
MY_PN=tables
|
||||
MY_P=${MY_PN}-${PV}
|
||||
|
||||
inherit distutils
|
||||
|
||||
DESCRIPTION="A package for managing hierarchical datasets built on top of the HDF5 library."
|
||||
HOMEPAGE="http://www.pytables.org http://pypi.python.org/pypi/tables"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${PV}/${MY_P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
LICENSE="BSD"
|
||||
IUSE="doc contrib examples"
|
||||
|
||||
RDEPEND="
|
||||
sci-libs/hdf5:=
|
||||
>=dev-python/numpy-1.6.0
|
||||
dev-python/numexpr
|
||||
dev-libs/lzo:2
|
||||
app-arch/bzip2"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/cython"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
DOCS="ANNOUNCE.txt RELEASE_NOTES.txt THANKS doc/usersguide-${PV}.pdf"
|
||||
|
||||
src_compile() {
|
||||
export HDF5_DIR="${EPREFIX}"/usr
|
||||
distutils_src_compile
|
||||
}
|
||||
|
||||
src_test() {
|
||||
testing() {
|
||||
PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" tables/tests/test_all.py
|
||||
}
|
||||
python_execute_function testing
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils_src_install
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r examples
|
||||
fi
|
||||
|
||||
pushd doc > /dev/null
|
||||
use doc && dohtml -r html/*
|
||||
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r scripts
|
||||
popd > /dev/null
|
||||
|
||||
insinto /usr/share/${PF}
|
||||
use contrib && doins -r contrib
|
||||
}
|
@ -1,6 +1,4 @@
|
||||
DIST luatex-beta-0.70.1-doc.tar.bz2 1048489 SHA256 4f1d24777725a606efbf5d7a59064245c46fb29b8066236c6b48fb423a595606 SHA512 eb4de91a80a6afccf5cca5cb05d5c1378a60ec35763e5ef5e9dbadaa2a276758a446e01d66e76a78e91442274778c10c73458b513af903e7221d90beb644afa9 WHIRLPOOL 97142a3a3c23d01f3b21963690f7362edf0c7f0de1ad77295361122a81c92459cb2ecd36baaea3588b7ad4f8b81c5dfa81d22df7a5529cb5b8b2b39fe6ce84be
|
||||
DIST luatex-beta-0.70.1.tar.bz2 8181155 SHA256 c641a4ba1535ede6ee8e2a958d8c4b436f5979c5be6f3f51d3dec5b4df6bb6ed SHA512 e04a9b96f349bf9036ef4c01746dee96ebf245cd4da6b719f546223e05cb98fb844e20878a64f80f42c77e220fac01ee2d97ad56939c1fb3af44faab53c603cb WHIRLPOOL 63dfdf182d3f1aadd6fc802e424b3791eda4df7eb8d707ad719d2ad0f97946b365316f6b9caed2362d5827280e9ddf2e750c8beeb61277dac72bffaed06a4fc9
|
||||
DIST luatex-beta-0.74.0-doc.tar.bz2 990978 SHA256 e77aeb3dc7bc00cac080c483f0e9930b6d5479063dc58d014160ce327c2ef284 SHA512 bf446b9fbd6792cf84b29de10f0437e4ead84183a9a17bbd3538dd3b26a4ed68246149e5987228b95ef8ad9f9b662d54c1505191cc18d6c757ab59464bd586a2 WHIRLPOOL fbdef40858a360b032c242ab831c498e42e9460b0388f84ec34cdf8557028e1a8d70ab90f6878cfd14f762b664db527f0fc67b8cc0e8fe3ddc993a342fd9eae2
|
||||
DIST luatex-beta-0.74.0-source.tar.bz2 10852125 SHA256 e8125e4f5d7ad90422a1c9e952a2f1c37daff485a4c40ade343a4011d872680e SHA512 e515347576d4385e3e42729e87370637786f77d5eaabe9aa92cf4ce291dda94908201864695d593ba29e349911c9e79967a768c32da14fca72c38b000689eb81 WHIRLPOOL 7cf3e3e5caa14f552b4102dfe5182ea77a7298154288a2fcd22501a4249e1e8b939eab1f1b6cb57bdce78903f976b0c09dd36b5c58e2611e76272118a19bbac5
|
||||
DIST luatex-beta-0.76.0-doc.tar.bz2 995143 SHA256 746b8e8092e017b8b2a32dd80981d0ff6731520f49f6b1caa60519c441809638 SHA512 cd64e1fea3f631c7c6e268d01285f96966325fd16971d8840eef178ccc11b001b40ae5cfcc6c7c3bb026a3f04c04a16b90813f0b6818383bb80686a89ea48596 WHIRLPOOL 215a8dec04a91805fe449ee99e8e210298124261258f8a92fb33850dc52695fc1215be3369de52fcb6a078baf52e1f812b4cac7d8611c3565f356d8a3f188c58
|
||||
DIST luatex-beta-0.76.0-source.tar.bz2 11748576 SHA256 71a96c927c9d9032e0126f0bc6c679191f0850a4611cd395de69e69a4d3b7716 SHA512 71ea789a95d419bf177f7f9f8d24d00a9d5639665feadac93cc30c86531e4942d29d848ef39ca3698de3efb1b8da9eb19890b1a06b45664641c7e47a79dd80b0 WHIRLPOOL abfa833b2d0457408d3a38a9229d7fd21d8380eb0743b574a318b6bea1d513e51c84367f5f773ef7c965517840735b43210d62c988bbbb6f7ec6293cdcc4e348
|
||||
|
@ -1,102 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-tex/luatex/luatex-0.74.0.ebuild,v 1.2 2013/04/14 15:37:36 dilfridge Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit libtool eutils texlive-common
|
||||
|
||||
MY_P=${PN}-beta-${PV}
|
||||
DESCRIPTION="An extended version of pdfTeX using Lua as an embedded scripting language."
|
||||
HOMEPAGE="http://www.luatex.org/"
|
||||
SRC_URI="http://foundry.supelec.fr/gf/download/frsrelease/396/1876/${MY_P}-source.tar.bz2
|
||||
http://foundry.supelec.fr/gf/download/frsrelease/396/1878/${MY_P}-doc.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="doc"
|
||||
|
||||
RDEPEND="dev-libs/zziplib
|
||||
>=media-libs/libpng-1.4
|
||||
x11-libs/cairo
|
||||
x11-libs/pixman
|
||||
app-text/poppler:=[xpdf-headers(+)]
|
||||
sys-libs/zlib
|
||||
>=dev-libs/kpathsea-6.0.1_p20110627"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
S="${WORKDIR}/${MY_P}/source"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/remove-zlib-version-check.patch" \
|
||||
"${FILESDIR}/includes.patch"
|
||||
S="${S}/build-aux" elibtoolize --shallow
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Too many regexps use A-Z a-z constructs, what causes problems with locales
|
||||
# that don't have the same alphabetical order than ascii. Bug #244619
|
||||
# So we set LC_ALL to C in order to avoid problems.
|
||||
export LC_ALL=C
|
||||
|
||||
cd "${S}/texk/web2c"
|
||||
econf \
|
||||
--disable-cxx-runtime-hack \
|
||||
--disable-all-pkgs \
|
||||
--disable-mp \
|
||||
--disable-ptex \
|
||||
--disable-tex \
|
||||
--disable-mf \
|
||||
--disable-largefile \
|
||||
--disable-ipc \
|
||||
--disable-shared \
|
||||
--enable-luatex \
|
||||
--enable-dump-share \
|
||||
--without-mf-x-toolkit \
|
||||
--without-x \
|
||||
--with-system-kpathsea \
|
||||
--with-kpathsea-includes="${EPREFIX}"/usr/include \
|
||||
--with-system-cairo \
|
||||
--with-system-pixman \
|
||||
--with-system-gd \
|
||||
--with-system-libpng \
|
||||
--with-system-teckit \
|
||||
--with-system-zlib \
|
||||
--with-system-t1lib \
|
||||
--with-system-xpdf \
|
||||
--with-system-poppler \
|
||||
--with-system-zziplib \
|
||||
--with-system-ptexenc \
|
||||
--disable-multiplatform
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
texk/web2c/luatexdir/getluatexsvnversion.sh || die
|
||||
cd "${WORKDIR}/${MY_P}/source/texk/web2c"
|
||||
emake luatex
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd "${WORKDIR}/${MY_P}/source/texk/web2c"
|
||||
emake DESTDIR="${D}" bin_PROGRAMS="luatex" SUBDIRS="" nodist_man_MANS="" \
|
||||
install-exec-am
|
||||
|
||||
dodoc "${WORKDIR}/${MY_P}/README" luatexdir/NEWS
|
||||
cp source/texk/web2c/man
|
||||
cp man/luatex.man "${T}/luatex.1"
|
||||
doman "${T}/luatex.1"
|
||||
use doc && dodoc "${WORKDIR}/${MY_P}/manual/"*.pdf
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if ! has_version '>=dev-texlive/texlive-basic-2008' ; then
|
||||
elog "Note that this package does not install many files, mainly just the"
|
||||
elog "${PN} executable, which needs other files in order to be"
|
||||
elog "useful. Please consider installing a recent TeX distribution such as"
|
||||
elog "TeX Live 2008 or later to take advantage of the full power of"
|
||||
elog "${PN} ."
|
||||
fi
|
||||
efmtutil-sys
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
DIST opensmtpd-201306071637p1.tar.gz 759740 SHA256 2ce7d8c12ae1686fb19fe7439c1ebb599ab2f4a97a367ed4b74c51c9572e598a SHA512 ac823a6add9a702c927206a51cf71b6bd87465e56977a09a6dbc7603d5e9b6d3350de0e4efc8c55f1b9e5fe48e02ee0657791da7138de14cc2ed6d55825d500e WHIRLPOOL f14f86f5f0137b40ca09f0c94471987ed899fd2dfac23f4c51e60d66ef3b3d445cb63b19c0778c38ff2db1f16908f1d0582ff26d6efa75e3e6731662158499ec
|
||||
DIST opensmtpd-201306271531p1.tar.gz 771055 SHA256 4c831a87b0d6834410b01a0ef13adeca9539391b341b50648aca1a53f6df062c SHA512 6e76838042ad219d623274bf97eb315cdc561d4221ec6e427f37ada3ddaf51e1fc876910bb13a9c048a79760db949f87d737d201182fb623d22aa089da4c4e2b WHIRLPOOL fcb6c5b59e5fe3b926741dc03b71fc3dcaea7eed2e3101913ce9ae5e9882cd5f1675412e43ea06475aff729bf4639b839f6fe06965941517c6c0d5ed4958ed7d
|
||||
DIST opensmtpd-5.3.3p1.tar.gz 343733 SHA256 34f0e208e6fdde5c5c25bb11f468436c4d6148a8b640c32117869cad140b823c SHA512 8ea72773dca4f907d2b8285fc7abcd5c4c19ceb50b547cc4a217ec296a222f8134bfc4bc7707439b0c5d58b5354f92ebed65966179d7598c4793cad4370b087b WHIRLPOOL 1df185264da3edae4a1a1a56251af2a7e81dd1b4deabaf8d68f043beb16ca22488f775ff656dc8b84c3a3d024c0e4e67240f0c248edfb85bb2835290a28f12fe
|
||||
|
@ -1,12 +0,0 @@
|
||||
diff -ru opensmtpd-201306071637p1/smtpd/smtpd.h opensmtpd-201306071637p1-modified/smtpd/smtpd.h
|
||||
--- opensmtpd-201306071637p1/smtpd/smtpd.h 2013-06-07 16:37:02.000000000 +0200
|
||||
+++ opensmtpd-201306071637p1-modified/smtpd/smtpd.h 2013-06-11 00:54:00.218211581 +0200
|
||||
@@ -1194,6 +1194,7 @@
|
||||
void mfa_filter(uint64_t, int);
|
||||
void mfa_filter_event(uint64_t, int);
|
||||
void mfa_filter_data(uint64_t, const char *);
|
||||
+void mfa_filter_prepare(void);
|
||||
|
||||
/* mproc.c */
|
||||
int mproc_fork(struct mproc *, const char*, const char *);
|
||||
|
@ -1,2 +1,3 @@
|
||||
DIST exempi-2.1.1.tar.gz 3401564 RMD160 e79500f804e162df340e669deea620408e4926b4 SHA1 f05a4c1d609c0e3cafdf839c16ec46afae1b160d SHA256 b06b67472ff673e2d4257ae0b687ba421af1f9952428e7caead870868c2a4dd3
|
||||
DIST exempi-2.2.0.tar.gz 3555957 RMD160 cb6a3a5f1f61108ff0cc569dd36ad6eda335514a SHA1 d91610c685e6f6df64a2a560be9ace87b06fda27 SHA256 710a01a4e879c3a58304021d8a9624cf8b65f79b2b949951a873c91f6d64d102
|
||||
DIST exempi-2.1.1.tar.gz 3401564 SHA256 b06b67472ff673e2d4257ae0b687ba421af1f9952428e7caead870868c2a4dd3
|
||||
DIST exempi-2.2.0.tar.gz 3555957 SHA256 710a01a4e879c3a58304021d8a9624cf8b65f79b2b949951a873c91f6d64d102 SHA512 bb477787204bdc2cc8e9949c8407beb5af2aeab8f3e769ce814ee7eaf7476336b68635d6301cfbd600da34b1003c371e624866ec6c3b426d06076ec90c663f82 WHIRLPOOL 4c4b9a69f24c0ea792062e27a25688cc70a58baa6853a7b2a078732e33281c5ee9d9e21488d90a86a1fe28b6f227cfeb64a7e1524a815fa7a30a955fde2e4983
|
||||
DIST exempi-2.2.1.tar.gz 3566843 SHA256 a99e1569047988200e4935cf4395667341a5bd8d6067847a08df4304546cc362 SHA512 f4b97ec7af89924755a0695464bad5081de6a5d6a6f28c06984c051d677f8771c39df12951761ecd28d6ff520ddec4e21179dcba8b58f0ef649bbdad1a53aa9c WHIRLPOOL 622d23cb519f2dda988b7d13dd26be55dd207bfe8ec2f2c0b8b568974571780b51b5284d871a310e461041f1054265efb199cf5c21fcf6eee6619cb85dc335e9
|
||||
|
@ -0,0 +1,49 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-libs/exempi/exempi-2.2.1.ebuild,v 1.1 2013/07/01 17:06:50 ssuominen Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit autotools eutils
|
||||
|
||||
DESCRIPTION="Exempi is a port of the Adobe XMP SDK to work on UNIX"
|
||||
HOMEPAGE="http://libopenraw.freedesktop.org/wiki/Exempi"
|
||||
SRC_URI="http://libopenraw.freedesktop.org/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="2"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
|
||||
IUSE="examples static-libs"
|
||||
|
||||
RDEPEND=">=dev-libs/expat-2:=
|
||||
virtual/libiconv
|
||||
sys-libs/zlib:="
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/gettext"
|
||||
|
||||
RESTRICT="test" #295875
|
||||
|
||||
DOCS="AUTHORS ChangeLog NEWS README TODO"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-2.1.1-iconv.patch
|
||||
cp /usr/share/gettext/config.rpath . || die
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable static-libs static) \
|
||||
--disable-unittest
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
prune_libtool_files --all
|
||||
|
||||
if use examples; then
|
||||
emake -C samples/source distclean
|
||||
rm -f samples/{,source,testfiles}/Makefile*
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins -r samples/*
|
||||
fi
|
||||
}
|
@ -0,0 +1,419 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-libs/mesa/mesa-9.1.4.ebuild,v 1.1 2013/07/01 23:20:00 chithanh Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
EGIT_REPO_URI="git://anongit.freedesktop.org/mesa/mesa"
|
||||
|
||||
if [[ ${PV} = 9999* ]]; then
|
||||
GIT_ECLASS="git-2"
|
||||
EXPERIMENTAL="true"
|
||||
fi
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
|
||||
inherit base autotools multilib flag-o-matic python-single-r1 toolchain-funcs ${GIT_ECLASS}
|
||||
|
||||
OPENGL_DIR="xorg-x11"
|
||||
|
||||
MY_PN="${PN/m/M}"
|
||||
MY_P="${MY_PN}-${PV/_rc/-rc}"
|
||||
MY_SRC_P="${MY_PN}Lib-${PV/_rc/-rc}"
|
||||
|
||||
FOLDER="${PV/_rc*/}"
|
||||
|
||||
DESCRIPTION="OpenGL-like graphic library for Linux"
|
||||
HOMEPAGE="http://mesa3d.sourceforge.net/"
|
||||
|
||||
#SRC_PATCHES="mirror://gentoo/${PN}-9.1-gentoo-patches-05.tar.bz2"
|
||||
if [[ $PV = 9999* ]]; then
|
||||
SRC_URI="${SRC_PATCHES}"
|
||||
else
|
||||
SRC_URI="ftp://ftp.freedesktop.org/pub/mesa/${FOLDER}/${MY_SRC_P}.tar.bz2
|
||||
${SRC_PATCHES}"
|
||||
fi
|
||||
|
||||
# The code is MIT/X11.
|
||||
# GLES[2]/gl[2]{,ext,platform}.h are SGI-B-2.0
|
||||
LICENSE="MIT SGI-B-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
|
||||
INTEL_CARDS="i915 i965 intel"
|
||||
RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi"
|
||||
VIDEO_CARDS="${INTEL_CARDS} ${RADEON_CARDS} nouveau vmware"
|
||||
for card in ${VIDEO_CARDS}; do
|
||||
IUSE_VIDEO_CARDS+=" video_cards_${card}"
|
||||
done
|
||||
|
||||
IUSE="${IUSE_VIDEO_CARDS}
|
||||
bindist +classic debug +egl +gallium gbm gles1 gles2 +llvm +nptl
|
||||
openvg osmesa pax_kernel pic r600-llvm-compiler selinux +shared-glapi vdpau
|
||||
wayland xvmc xa xorg kernel_FreeBSD"
|
||||
|
||||
REQUIRED_USE="
|
||||
llvm? ( gallium )
|
||||
openvg? ( egl gallium )
|
||||
gbm? ( shared-glapi )
|
||||
gles1? ( egl )
|
||||
gles2? ( egl )
|
||||
r600-llvm-compiler? ( gallium llvm || ( video_cards_r600 video_cards_radeon ) )
|
||||
wayland? ( egl )
|
||||
xa? ( gallium )
|
||||
xorg? ( gallium )
|
||||
video_cards_intel? ( || ( classic gallium ) )
|
||||
video_cards_i915? ( || ( classic gallium ) )
|
||||
video_cards_i965? ( classic )
|
||||
video_cards_nouveau? ( || ( classic gallium ) )
|
||||
video_cards_radeon? ( || ( classic gallium ) )
|
||||
video_cards_r100? ( classic )
|
||||
video_cards_r200? ( classic )
|
||||
video_cards_r300? ( gallium )
|
||||
video_cards_r600? ( gallium )
|
||||
video_cards_radeonsi? ( gallium llvm )
|
||||
video_cards_vmware? ( gallium )
|
||||
"
|
||||
|
||||
LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.42"
|
||||
# keep correct libdrm and dri2proto dep
|
||||
# keep blocks in rdepend for binpkg
|
||||
RDEPEND="
|
||||
!<x11-base/xorg-server-1.7
|
||||
!<=x11-proto/xf86driproto-2.0.3
|
||||
classic? ( app-admin/eselect-mesa )
|
||||
gallium? ( app-admin/eselect-mesa )
|
||||
>=app-admin/eselect-opengl-1.2.7
|
||||
dev-libs/expat
|
||||
gbm? ( virtual/udev )
|
||||
>=x11-libs/libX11-1.3.99.901
|
||||
x11-libs/libXdamage
|
||||
x11-libs/libXext
|
||||
x11-libs/libXxf86vm
|
||||
>=x11-libs/libxcb-1.8.1
|
||||
vdpau? ( >=x11-libs/libvdpau-0.4.1 )
|
||||
wayland? ( >=dev-libs/wayland-1.0.3 )
|
||||
xorg? (
|
||||
x11-base/xorg-server:=[-minimal]
|
||||
x11-libs/libdrm[libkms]
|
||||
)
|
||||
xvmc? ( >=x11-libs/libXvMC-1.0.6 )
|
||||
${LIBDRM_DEPSTRING}[video_cards_nouveau?,video_cards_vmware?]
|
||||
"
|
||||
for card in ${INTEL_CARDS}; do
|
||||
RDEPEND="${RDEPEND}
|
||||
video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
|
||||
"
|
||||
done
|
||||
|
||||
for card in ${RADEON_CARDS}; do
|
||||
RDEPEND="${RDEPEND}
|
||||
video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] )
|
||||
"
|
||||
done
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
llvm? (
|
||||
>=sys-devel/llvm-2.9
|
||||
r600-llvm-compiler? ( sys-devel/llvm[video_cards_radeon] )
|
||||
video_cards_radeonsi? ( sys-devel/llvm[video_cards_radeon] )
|
||||
)
|
||||
${PYTHON_DEPS}
|
||||
dev-libs/libxml2[python,${PYTHON_USEDEP}]
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
virtual/pkgconfig
|
||||
>=x11-proto/dri2proto-2.6
|
||||
>=x11-proto/glproto-1.4.15-r1
|
||||
>=x11-proto/xextproto-7.0.99.1
|
||||
x11-proto/xf86driproto
|
||||
x11-proto/xf86vidmodeproto
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
# It is slow without texrels, if someone wants slow
|
||||
# mesa without texrels +pic use is worth the shot
|
||||
QA_EXECSTACK="usr/lib*/opengl/xorg-x11/lib/libGL.so*"
|
||||
QA_WX_LOAD="usr/lib*/opengl/xorg-x11/lib/libGL.so*"
|
||||
|
||||
# Think about: ggi, fbcon, no-X configs
|
||||
|
||||
pkg_setup() {
|
||||
# workaround toc-issue wrt #386545
|
||||
use ppc64 && append-flags -mminimal-toc
|
||||
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
[[ $PV = 9999* ]] && git-2_src_unpack
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# apply patches
|
||||
if [[ ${PV} != 9999* && -n ${SRC_PATCHES} ]]; then
|
||||
EPATCH_FORCE="yes" \
|
||||
EPATCH_SOURCE="${WORKDIR}/patches" \
|
||||
EPATCH_SUFFIX="patch" \
|
||||
epatch
|
||||
fi
|
||||
|
||||
# relax the requirement that r300 must have llvm, bug 380303
|
||||
epatch "${FILESDIR}"/${PN}-8.1-dont-require-llvm-for-r300.patch
|
||||
|
||||
# fix for hardened pax_kernel, bug 240956
|
||||
[[ ${PV} != 9999* ]] && epatch "${FILESDIR}"/glx_ro_text_segm.patch
|
||||
|
||||
# Solaris needs some recent POSIX stuff in our case
|
||||
if [[ ${CHOST} == *-solaris* ]] ; then
|
||||
sed -i -e "s/-DSVR4/-D_POSIX_C_SOURCE=200112L/" configure.ac || die
|
||||
fi
|
||||
|
||||
# Tests fail against python-3, bug #407887
|
||||
sed -i 's|/usr/bin/env python|/usr/bin/env python2|' src/glsl/tests/compare_ir || die
|
||||
|
||||
base_src_prepare
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
|
||||
if use classic; then
|
||||
# Configurable DRI drivers
|
||||
driver_enable swrast
|
||||
|
||||
# Intel code
|
||||
driver_enable video_cards_i915 i915
|
||||
driver_enable video_cards_i965 i965
|
||||
if ! use video_cards_i915 && \
|
||||
! use video_cards_i965; then
|
||||
driver_enable video_cards_intel i915 i965
|
||||
fi
|
||||
|
||||
# Nouveau code
|
||||
driver_enable video_cards_nouveau nouveau
|
||||
|
||||
# ATI code
|
||||
driver_enable video_cards_r100 radeon
|
||||
driver_enable video_cards_r200 r200
|
||||
if ! use video_cards_r100 && \
|
||||
! use video_cards_r200; then
|
||||
driver_enable video_cards_radeon radeon r200
|
||||
fi
|
||||
fi
|
||||
|
||||
if use egl; then
|
||||
myconf+="
|
||||
--with-egl-platforms=x11$(use wayland && echo ",wayland")$(use gbm && echo ",drm")
|
||||
$(use_enable gallium gallium-egl)
|
||||
"
|
||||
fi
|
||||
|
||||
if use gallium; then
|
||||
myconf+="
|
||||
$(use_enable llvm gallium-llvm)
|
||||
$(use_enable openvg)
|
||||
$(use_enable r600-llvm-compiler)
|
||||
$(use_enable vdpau)
|
||||
$(use_enable xvmc)
|
||||
"
|
||||
gallium_enable swrast
|
||||
gallium_enable video_cards_vmware svga
|
||||
gallium_enable video_cards_nouveau nouveau
|
||||
gallium_enable video_cards_i915 i915
|
||||
if ! use video_cards_i915; then
|
||||
gallium_enable video_cards_intel i915
|
||||
fi
|
||||
|
||||
gallium_enable video_cards_r300 r300
|
||||
gallium_enable video_cards_r600 r600
|
||||
gallium_enable video_cards_radeonsi radeonsi
|
||||
if ! use video_cards_r300 && \
|
||||
! use video_cards_r600; then
|
||||
gallium_enable video_cards_radeon r300 r600
|
||||
fi
|
||||
fi
|
||||
|
||||
# x86 hardened pax_kernel needs glx-rts, bug 240956
|
||||
if use pax_kernel; then
|
||||
myconf+="
|
||||
$(use_enable x86 glx-rts)
|
||||
"
|
||||
fi
|
||||
|
||||
# build fails with BSD indent, bug #428112
|
||||
use userland_GNU || export INDENT=cat
|
||||
|
||||
econf \
|
||||
--enable-dri \
|
||||
--enable-glx \
|
||||
$(use_enable !bindist texture-float) \
|
||||
$(use_enable debug) \
|
||||
$(use_enable egl) \
|
||||
$(use_enable gbm) \
|
||||
$(use_enable gles1) \
|
||||
$(use_enable gles2) \
|
||||
$(use_enable nptl glx-tls) \
|
||||
$(use_enable osmesa) \
|
||||
$(use_enable !pic asm) \
|
||||
$(use_enable shared-glapi) \
|
||||
$(use_enable xa) \
|
||||
$(use_enable xorg) \
|
||||
--with-dri-drivers=${DRI_DRIVERS} \
|
||||
--with-gallium-drivers=${GALLIUM_DRIVERS} \
|
||||
PYTHON2="${PYTHON}" \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
base_src_install
|
||||
|
||||
find "${ED}" -name '*.la' -exec rm -f {} + || die
|
||||
|
||||
if use !bindist; then
|
||||
dodoc docs/patents.txt
|
||||
fi
|
||||
|
||||
# Install config file for eselect mesa
|
||||
insinto /usr/share/mesa
|
||||
newins "${FILESDIR}/eselect-mesa.conf.8.1" eselect-mesa.conf
|
||||
|
||||
# Move libGL and others from /usr/lib to /usr/lib/opengl/blah/lib
|
||||
# because user can eselect desired GL provider.
|
||||
ebegin "Moving libGL and friends for dynamic switching"
|
||||
local x
|
||||
local gl_dir="/usr/$(get_libdir)/opengl/${OPENGL_DIR}/"
|
||||
dodir ${gl_dir}/{lib,extensions,include/GL}
|
||||
for x in "${ED}"/usr/$(get_libdir)/lib{EGL,GL*,OpenVG}.{la,a,so*}; do
|
||||
if [ -f ${x} -o -L ${x} ]; then
|
||||
mv -f "${x}" "${ED}${gl_dir}"/lib \
|
||||
|| die "Failed to move ${x}"
|
||||
fi
|
||||
done
|
||||
for x in "${ED}"/usr/include/GL/{gl.h,glx.h,glext.h,glxext.h}; do
|
||||
if [ -f ${x} -o -L ${x} ]; then
|
||||
mv -f "${x}" "${ED}${gl_dir}"/include/GL \
|
||||
|| die "Failed to move ${x}"
|
||||
fi
|
||||
done
|
||||
for x in "${ED}"/usr/include/{EGL,GLES*,VG,KHR}; do
|
||||
if [ -d ${x} ]; then
|
||||
mv -f "${x}" "${ED}${gl_dir}"/include \
|
||||
|| die "Failed to move ${x}"
|
||||
fi
|
||||
done
|
||||
eend $?
|
||||
|
||||
if use classic || use gallium; then
|
||||
ebegin "Moving DRI/Gallium drivers for dynamic switching"
|
||||
local gallium_drivers=( i915_dri.so i965_dri.so r300_dri.so r600_dri.so swrast_dri.so )
|
||||
keepdir /usr/$(get_libdir)/dri
|
||||
dodir /usr/$(get_libdir)/mesa
|
||||
for x in ${gallium_drivers[@]}; do
|
||||
if [ -f "${S}/$(get_libdir)/gallium/${x}" ]; then
|
||||
mv -f "${ED}/usr/$(get_libdir)/dri/${x}" "${ED}/usr/$(get_libdir)/dri/${x/_dri.so/g_dri.so}" \
|
||||
|| die "Failed to move ${x}"
|
||||
insinto "/usr/$(get_libdir)/dri/"
|
||||
if [ -f "${S}/$(get_libdir)/${x}" ]; then
|
||||
insopts -m0755
|
||||
doins "${S}/$(get_libdir)/${x}"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
for x in "${ED}"/usr/$(get_libdir)/dri/*.so; do
|
||||
if [ -f ${x} -o -L ${x} ]; then
|
||||
mv -f "${x}" "${x/dri/mesa}" \
|
||||
|| die "Failed to move ${x}"
|
||||
fi
|
||||
done
|
||||
pushd "${ED}"/usr/$(get_libdir)/dri || die "pushd failed"
|
||||
ln -s ../mesa/*.so . || die "Creating symlink failed"
|
||||
# remove symlinks to drivers known to eselect
|
||||
for x in ${gallium_drivers[@]}; do
|
||||
if [ -f ${x} -o -L ${x} ]; then
|
||||
rm "${x}" || die "Failed to remove ${x}"
|
||||
fi
|
||||
done
|
||||
popd
|
||||
eend $?
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Switch to the xorg implementation.
|
||||
echo
|
||||
eselect opengl set --use-old ${OPENGL_DIR}
|
||||
|
||||
# switch to xorg-x11 and back if necessary, bug #374647 comment 11
|
||||
OLD_IMPLEM="$(eselect opengl show)"
|
||||
if [[ ${OPENGL_DIR}x != ${OLD_IMPLEM}x ]]; then
|
||||
eselect opengl set ${OPENGL_DIR}
|
||||
eselect opengl set ${OLD_IMPLEM}
|
||||
fi
|
||||
|
||||
# Select classic/gallium drivers
|
||||
if use classic || use gallium; then
|
||||
eselect mesa set --auto
|
||||
fi
|
||||
|
||||
# warn about patent encumbered texture-float
|
||||
if use !bindist; then
|
||||
elog "USE=\"bindist\" was not set. Potentially patent encumbered code was"
|
||||
elog "enabled. Please see patents.txt for an explanation."
|
||||
fi
|
||||
|
||||
local using_radeon r_flag
|
||||
for r_flag in ${RADEON_CARDS}; do
|
||||
if use video_cards_${r_flag}; then
|
||||
using_radeon=1
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
if [[ ${using_radeon} = 1 ]] && ! has_version media-libs/libtxc_dxtn; then
|
||||
elog "Note that in order to have full S3TC support, it is necessary to install"
|
||||
elog "media-libs/libtxc_dxtn as well. This may be necessary to get nice"
|
||||
elog "textures in some apps, and some others even require this to run."
|
||||
fi
|
||||
}
|
||||
|
||||
# $1 - VIDEO_CARDS flag
|
||||
# other args - names of DRI drivers to enable
|
||||
# TODO: avoid code duplication for a more elegant implementation
|
||||
driver_enable() {
|
||||
case $# in
|
||||
# for enabling unconditionally
|
||||
1)
|
||||
DRI_DRIVERS+=",$1"
|
||||
;;
|
||||
*)
|
||||
if use $1; then
|
||||
shift
|
||||
for i in $@; do
|
||||
DRI_DRIVERS+=",${i}"
|
||||
done
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
gallium_enable() {
|
||||
case $# in
|
||||
# for enabling unconditionally
|
||||
1)
|
||||
GALLIUM_DRIVERS+=",$1"
|
||||
;;
|
||||
*)
|
||||
if use $1; then
|
||||
shift
|
||||
for i in $@; do
|
||||
GALLIUM_DRIVERS+=",${i}"
|
||||
done
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
}
|
@ -1 +1 @@
|
||||
Mon, 01 Jul 2013 11:37:02 +0000
|
||||
Tue, 02 Jul 2013 03:06:57 +0000
|
||||
|
@ -1 +1 @@
|
||||
Mon, 01 Jul 2013 11:37:02 +0000
|
||||
Tue, 02 Jul 2013 03:06:58 +0000
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue