parent
21481c15d4
commit
2a203fb2b0
@ -0,0 +1,92 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/glance/glance-2013.2.9999.ebuild,v 1.1 2013/10/22 18:24:34 prometheanfire Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit git-2 distutils-r1
|
||||
|
||||
DESCRIPTION="Provides services for discovering, registering, and retrieving
|
||||
virtual machine images with Openstack"
|
||||
HOMEPAGE="https://launchpad.net/glance"
|
||||
EGIT_REPO_URI="https://github.com/openstack/glance.git"
|
||||
EGIT_BRANCH="stable/havana"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
IUSE="mysql postgres +sqlite +swift"
|
||||
REQUIRED_USE="|| ( mysql postgres sqlite )"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=dev-python/pbr-0.5.21[${PYTHON_USEDEP}]
|
||||
<dev-python/pbr-1.0[${PYTHON_USEDEP}]"
|
||||
#note to self, wsgiref is a python builtin, no need to package it
|
||||
#>=dev-python/wsgiref-0.1.2[${PYTHON_USEDEP}]
|
||||
RDEPEND="${DEPEND}
|
||||
>=dev-python/greenlet-0.3.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/eventlet-0.13.0[${PYTHON_USEDEP}]
|
||||
sqlite? ( >=dev-python/sqlalchemy-0.7.8[sqlite,${PYTHON_USEDEP}]
|
||||
<dev-python/sqlalchemy-0.7.99[sqlite,${PYTHON_USEDEP}] )
|
||||
mysql? ( >=dev-python/sqlalchemy-0.7.8[mysql,${PYTHON_USEDEP}]
|
||||
<dev-python/sqlalchemy-0.7.99[mysql,${PYTHON_USEDEP}] )
|
||||
postgres? ( >=dev-python/sqlalchemy-0.7.8[postgres,${PYTHON_USEDEP}]
|
||||
<dev-python/sqlalchemy-0.7.99[postgres,${PYTHON_USEDEP}] )
|
||||
>=dev-python/anyjson-0.3.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/pastedeploy-1.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/routes-1.12.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/webob-1.2.3[${PYTHON_USEDEP}]
|
||||
<dev-python/webob-1.3[${PYTHON_USEDEP}]
|
||||
virtual/python-argparse[${PYTHON_USEDEP}]
|
||||
>=dev-python/boto-2.4.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/sqlalchemy-migrate-0.7.2[${PYTHON_USEDEP}]
|
||||
dev-python/httplib2[${PYTHON_USEDEP}]
|
||||
>=dev-python/kombu-2.4.8[${PYTHON_USEDEP}]
|
||||
>=dev-python/pycrypto-2.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/iso8601-0.1.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-config-1.2.0[${PYTHON_USEDEP}]
|
||||
swift? (
|
||||
>=dev-python/python-swiftclient-1.5[${PYTHON_USEDEP}]
|
||||
<dev-python/python-swiftclient-2[${PYTHON_USEDEP}]
|
||||
)
|
||||
>=dev-python/lxml-2.3[${PYTHON_USEDEP}]
|
||||
dev-python/paste[${PYTHON_USEDEP}]
|
||||
dev-python/passlib[${PYTHON_USEDEP}]
|
||||
>=dev-python/jsonschema-1.3.0[${PYTHON_USEDEP}]
|
||||
!~dev-python/jsonschema-1.4.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-cinderclient-1.0.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-keystoneclient-0.3.0[${PYTHON_USEDEP}]
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]"
|
||||
|
||||
PATCHES=(
|
||||
)
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
newconfd "${FILESDIR}/glance.confd" glance
|
||||
newinitd "${FILESDIR}/glance-2.initd" glance
|
||||
|
||||
for function in api registry scrubber; do
|
||||
dosym /etc/init.d/glance /etc/init.d/glance-${function}
|
||||
done
|
||||
|
||||
diropts -m 0750
|
||||
dodir /var/run/glance /var/log/glance /var/lib/glance/images /var/lib/glance/scrubber
|
||||
keepdir /etc/glance
|
||||
keepdir /var/log/glance
|
||||
keepdir /var/lib/glance/images
|
||||
keepdir /var/lib/glance/scrubber
|
||||
insinto /etc/glance
|
||||
|
||||
doins "etc/glance-api-paste.ini"
|
||||
doins "etc/glance-api.conf"
|
||||
doins "etc/glance-cache.conf"
|
||||
doins "etc/glance-registry-paste.ini"
|
||||
doins "etc/glance-registry.conf"
|
||||
doins "etc/glance-scrubber.conf"
|
||||
doins "etc/logging.cnf.sample"
|
||||
doins "etc/policy.json"
|
||||
doins "etc/schema-image.json"
|
||||
}
|
@ -1,2 +1,4 @@
|
||||
DIST KeePass-2.21-Source.zip 3386515 SHA256 e079bb09432d1efb0528fc186c77b092153b86809bb9ff6a00f5dbdd77740efe SHA512 7a228896ad6bd9710664e23e3a48fd6d0608dc3059863871893acf76fbfc45c73429138d317d960a00b877327bff0b8546148b8f635930628292e0e6856a13e2 WHIRLPOOL 9f6b05210e6eb44550135df2d796b76a374dd5e04809c87667912d9b4030214e378e75daee0fea07df8c94b2646ef0ffc3314e8717f8e6ee121a6ccea630ddd3
|
||||
DIST KeePass-2.22-Source.zip 3403139 SHA256 975f1f8c6c7b76fbf283d2c798152890088afb9455988d200ae6e5cd8b0aff25 SHA512 cf875fbcdc080b0e4fb696561aea312ebf32d4027fdc3b75af157ed4ca06aeb18832a18f7dfa7ccc8e71449ce16d46d97fbda3a0cfdd68323b930e10b704052d WHIRLPOOL 626dc94514110d0d844560eff9a58f368b87b2f1c3532d5cbe1909664c50f9ea44e490b46047ca789ab7304190a41b65522a5fa655ce39029f22316f1c24a6be
|
||||
DIST KeePass-2.23-Source.zip 3443624 SHA256 d9de023285228a3e1b7f5ad6f28086dcf7ddb0814ac28803774fdd9ad9efffba SHA512 7baa72ecbd6fb1b44f76c28ca11e18e67b59a6b2aca45135ae57a892e1a4346ca09e8a3a793ac5c53afea282d939b5f7bb94e4771d4ba6f9da9d19522e5c5f67 WHIRLPOOL c45fc54071efe597c88a0d8c5ad414fe06293da5a203dd7a0f090055552e895a8304960957b218902e9d0992acd0235d145597fe8cea443ab90bd9e425925256
|
||||
DIST Resources_131022.zip 422443 SHA256 8fc86bbb46db3251b6aaba23a48743cdabb9217c9fc7a00db41e16dccf19d54f SHA512 d21f9e178a1a7de831868763e69b0d7ef3021c9c3dcee54c5c7d2558e75b73d51bd1d27c3eac45781656e48c51c2bbd2d2e3615bd05c5297c96cc52dbf18193f WHIRLPOOL f81d7cfafb23a5578cf33a1f9feb0b9e2bc0e2ce6e626a5658efb0afe6e44522c06891314c68f035fb8be1adf09ee605657aca5e130414a8419e3569011e2acc
|
||||
|
@ -0,0 +1,112 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/keepass/keepass-2.23.ebuild,v 1.2 2013/10/23 11:36:19 tomwij Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils fdo-mime gnome2-utils mono-env multilib
|
||||
|
||||
MY_PN="KeePass"
|
||||
DESCRIPTION="A free, open source, light-weight and easy-to-use password manager"
|
||||
HOMEPAGE="http://keepass.info/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${MY_PN}-${PV}-Source.zip
|
||||
http://keepass.info/filepool/Resources_131022.zip"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="aot"
|
||||
|
||||
COMMON_DEPEND=">=dev-lang/mono-2.10.5"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
dev-dotnet/libgdiplus[cairo]"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
app-arch/unzip"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
src_unpack() {
|
||||
unpack "${MY_PN}-${PV}-Source.zip"
|
||||
|
||||
# Use fixed version of the images, see #472764
|
||||
pushd "${S}/KeePass/Resources" > /dev/null || die
|
||||
unpack "Resources_131022.zip"
|
||||
popd > /dev/null || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Remove Windows-specific things
|
||||
pushd Build > /dev/null || die
|
||||
. PrepMonoDev.sh || die
|
||||
popd > /dev/null || die
|
||||
|
||||
# KeePass looks for some XSL files in the same folder as the executable,
|
||||
# we prefer to have it in /usr/share/KeePass
|
||||
epatch "${FILESDIR}/${PN}-2.20-xsl-path-detection.patch"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Build with Release target
|
||||
xbuild /target:KeePass /property:Configuration=Release || die
|
||||
|
||||
# Run Ahead Of Time compiler on the binary
|
||||
if use aot; then
|
||||
cp Ext/KeePass.exe.config Build/KeePass/Release/
|
||||
mono --aot -O=all Build/KeePass/Release/KeePass.exe || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Wrapper script to launch mono
|
||||
make_wrapper ${PN} "mono /usr/$(get_libdir)/${PN}/KeePass.exe"
|
||||
|
||||
# Some XSL files
|
||||
insinto /usr/share/${PN}/XSL
|
||||
doins Ext/XSL/*
|
||||
|
||||
insinto /usr/$(get_libdir)/${PN}/
|
||||
exeinto /usr/$(get_libdir)/${PN}/
|
||||
doins Ext/KeePass.exe.config
|
||||
# Default configuration, simply says to use user-specific configuration
|
||||
doins Ext/KeePass.config.xml
|
||||
|
||||
# The actual executable
|
||||
doexe Build/KeePass/Release/KeePass.exe
|
||||
|
||||
# Copy the AOT compilation result
|
||||
if use aot; then
|
||||
doexe Build/KeePass/Release/KeePass.exe.so
|
||||
fi
|
||||
|
||||
# Prepare the icons
|
||||
newicon -s 256 Ext/Icons/Finals/plockb.png "${PN}.png"
|
||||
newicon -s 256 -t gnome -c mimetypes Ext/Icons/Finals/plockb.png "application-x-${PN}2.png"
|
||||
|
||||
# Create a desktop entry and associate it with the KeePass mime type
|
||||
make_desktop_entry ${PN} ${MY_PN} ${PN} "System;Security" "MimeType=application/x-keepass2;"
|
||||
|
||||
# MIME descriptor for .kdbx files
|
||||
insinto /usr/share/mime/packages/
|
||||
doins "${FILESDIR}/${PN}.xml"
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_icon_cache_update
|
||||
fdo-mime_mime_database_update
|
||||
fdo-mime_desktop_database_update
|
||||
|
||||
if ! has_version x11-misc/xdotool ; then
|
||||
elog "Optional dependencies:"
|
||||
elog " x11-misc/xdotool (enables autotype)"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
fdo-mime_mime_database_update
|
||||
fdo-mime_desktop_database_update
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST mcelog-1.0_pre3_p20120918.tar.gz 284893 SHA256 21c3cfa2d4a5998495a50705124af452ef92d2ddf909c2b00c87a37cead8179a SHA512 fcb97a2b5fb13f9a161b9a5e9c85947baa41f61ec9f04e32d09f4ffa4e0f1854a449e73661bdf0eabb568f6721727fcf3ed3fdfabe69c8e2a6133159d862e594 WHIRLPOOL c6e85b652cc756729df29dd7be00351573cafebd18c01ee01c9b38f5a39de93e380f0e6d1a37b1f56db34993fec5564bde0591346a98b88c997664f07495c469
|
||||
DIST mcelog-1.0_pre3_p20130621.tar.gz 287524 SHA256 688306b877f70bc9406434b9cf497799fc7ac0a2e2793742b4bccd0a806d8bb9 SHA512 75d3628dde144f95400cadd1e1085a78c5e6c12761279780363aae402fddd1700dcfa6736ec4c44331569ab2a06c48fd87b5bbdfd03e937c0a5dc9eb89a4f5ab WHIRLPOOL 2ca1c98114283afa9f02036bfa928086b7de4ca1fefc5184c334e317e6e313042bbbe46ef8468f71d79fb28c0983ba52bedb59f49783b83771446068e3631f41
|
||||
DIST mcelog-1.0pre3.tar.gz 176649 SHA256 0782e0aa952fa4bd641071e6b501774a63993a813a4f494ffd7819521a13c50c SHA512 ef571cde8ce170d2003e6789116ff88fedfd5aeeb75d09bc5f9cafcb30eb081ca572e2604ba160e83ad927433d963d3bcbae06bca4c499a1bebcb8cc632355b0 WHIRLPOOL 3627567c42bf8685fb355f84e9405b5f7e36df57e2b73f8b40df52d12a4d2e37ef3a8d03311ab48068b76ac03cbbe0dea9acc24a001274544321b76f42f78c66
|
||||
DIST mcelog-100.tar.gz 288423 SHA256 b18f029ec9f498b6249b3a3dfef7753ac9d45ebf3382af452cb3e14d49274bab SHA512 efd7864daaafe5d149fc27259d4fa72221372842d41ad57c046c967fd1eb710ef921f45111e95bfe76df119276b3b9af1bf1094a9411037eb1f5ac06e319e87d WHIRLPOOL 9f2f7fdbb3c94b7740f486005641a90529e240c34f3709989e6e0d448c96369f4562408aa678ea992f47f396cdfb60c71eadf75475c52ff0cd6318a99c4ad2eb
|
||||
|
@ -0,0 +1,59 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/mcelog/mcelog-100.ebuild,v 1.1 2013/10/23 17:16:55 hasufell Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit linux-info eutils systemd toolchain-funcs
|
||||
|
||||
DESCRIPTION="A tool to log and decode Machine Check Exceptions"
|
||||
HOMEPAGE="http://mcelog.org/"
|
||||
SRC_URI="https://github.com/andikleen/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="selinux"
|
||||
|
||||
RDEPEND="selinux? ( sec-policy/selinux-mcelog )"
|
||||
|
||||
CONFIG_CHECK="~X86_MCE"
|
||||
|
||||
# TODO: add mce-inject to the tree to support test phase
|
||||
RESTRICT="test"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-0.8_pre1-timestamp-${PN}.patch \
|
||||
"${FILESDIR}"/${PN}-1.0_pre3_p20120918-build.patch \
|
||||
"${FILESDIR}"/${PN}-1.0_pre3_p20120918-bashism.patch
|
||||
tc-export CC
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dosbin ${PN}
|
||||
|
||||
insinto /etc/cron.daily
|
||||
newins ${PN}.cron ${PN}
|
||||
|
||||
insinto /etc/logrotate.d/
|
||||
newins ${PN}.logrotate ${PN}
|
||||
|
||||
newinitd "${FILESDIR}"/${PN}.init ${PN}
|
||||
systemd_dounit "${FILESDIR}"/${PN}.service
|
||||
|
||||
insinto /etc/${PN}
|
||||
doins mcelog.conf
|
||||
exeinto /etc/${PN}
|
||||
doexe triggers/*
|
||||
|
||||
dodoc CHANGES README TODO *.pdf
|
||||
doman ${PN}.8
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "The default configuration set is now installed in /etc/${PN}"
|
||||
einfo "you might want to edit those files."
|
||||
einfo
|
||||
einfo "A sample cronjob is installed into /etc/cron.daily"
|
||||
einfo "without executable bit (system service is the preferred method now)"
|
||||
}
|
@ -1 +1 @@
|
||||
DIST ckpass-0.1.tar.gz 89129 SHA256 2bf19b9214127d5772fc70777e2db147ed58c809fa003fe3cbd23c361336d12e SHA512 0253d49e1e6863745636786b63142eeda71d3aa4518045029a87a461caee0970aef69d93c7f98046853cf250f1ff9e93b4367b8e51885d57d7a229b2f70b8e6f WHIRLPOOL 38d08f5466a8e226213a6535cda31857c2751b7e2caf8e7363960f7f93ea23831425089927fc205350d0b27df9e9af00830863b5c35c895ce33f956156abe758
|
||||
DIST ckpass-0.2.tar.gz 95921 SHA256 4027708b9518e7d320958f186f6b932001a3501c88773a88191fe5c976fe0686 SHA512 aca439caea2e3736539f5ec6bb235e51c59fed627eb9b414e629ad246c301e6f1dc90594826f6d95be9963aa4af0dae64419d08a44beb0a02d16a9fdf42a9a0b WHIRLPOOL 462fa8b7a82176ce01d1801525cf2b06ba6702cc2a7bf6e2d38d15a2879366e22524721f990ae36ba7a1c004eeab103ac23490faea9b6fd20a682dc70cf85afa
|
||||
|
@ -1,243 +0,0 @@
|
||||
diff --git a/vmblock-only/linux/dentry.c b/vmblock-only/linux/dentry.c
|
||||
index 66537c8..05ea95a 100644
|
||||
--- a/vmblock-only/linux/dentry.c
|
||||
+++ b/vmblock-only/linux/dentry.c
|
||||
@@ -104,7 +104,7 @@ DentryOpRevalidate(struct dentry *dentry, // IN: dentry revalidating
|
||||
return actualDentry->d_op->d_revalidate(actualDentry, nd);
|
||||
}
|
||||
|
||||
- if (path_lookup(iinfo->name, 0, &actualNd)) {
|
||||
+ if (compat_path_lookup(iinfo->name, 0, &actualNd)) {
|
||||
LOG(4, "DentryOpRevalidate: [%s] no longer exists\n", iinfo->name);
|
||||
return 0;
|
||||
}
|
||||
diff --git a/vmblock-only/linux/filesystem.c b/vmblock-only/linux/filesystem.c
|
||||
index 53840fd..bc117c5 100644
|
||||
--- a/vmblock-only/linux/filesystem.c
|
||||
+++ b/vmblock-only/linux/filesystem.c
|
||||
@@ -66,7 +66,6 @@ static size_t fsRootLen;
|
||||
static struct file_system_type fsType = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = VMBLOCK_FS_NAME,
|
||||
- .get_sb = FsOpGetSb,
|
||||
.kill_sb = kill_anon_super,
|
||||
};
|
||||
|
||||
@@ -553,7 +552,7 @@ FsOpReadSuper(struct super_block *sb, // OUT: Superblock object
|
||||
*-----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
-static int
|
||||
+/*static int
|
||||
FsOpGetSb(struct file_system_type *fs_type, // IN: file system type of mount
|
||||
int flags, // IN: mount flags
|
||||
const char *dev_name, // IN: device mounting on
|
||||
@@ -561,7 +560,7 @@ FsOpGetSb(struct file_system_type *fs_type, // IN: file system type of mount
|
||||
struct vfsmount *mnt) // IN: vfs mount
|
||||
{
|
||||
return get_sb_nodev(fs_type, flags, rawData, FsOpReadSuper, mnt);
|
||||
-}
|
||||
+}*/
|
||||
#else
|
||||
/*
|
||||
*-----------------------------------------------------------------------------
|
||||
diff --git a/vmblock-only/shared/compat_namei.h b/vmblock-only/shared/compat_namei.h
|
||||
index 28d72c8..4214247 100644
|
||||
--- a/vmblock-only/shared/compat_namei.h
|
||||
+++ b/vmblock-only/shared/compat_namei.h
|
||||
@@ -40,8 +40,11 @@
|
||||
#define compat_path_release(nd) path_release(nd)
|
||||
#endif
|
||||
|
||||
+/* path_lookup was removed in 2.6.39 merge window VFS merge */
|
||||
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 39)
|
||||
+#define compat_path_lookup(name, flags, nd) kern_path(name, flags, &((nd)->path))
|
||||
/* path_lookup was exported in 2.4.25 */
|
||||
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 4, 25)
|
||||
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 4, 25)
|
||||
#define compat_path_lookup(path, flags, nd) path_lookup(path, flags, nd)
|
||||
#else
|
||||
#define compat_path_lookup(path, flags, nd) \
|
||||
diff --git a/vmci-only/linux/driver.c b/vmci-only/linux/driver.c
|
||||
index a0f5498..49795e1 100644
|
||||
--- a/vmci-only/linux/driver.c
|
||||
+++ b/vmci-only/linux/driver.c
|
||||
@@ -42,7 +42,6 @@ sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg);
|
||||
#include <linux/miscdevice.h>
|
||||
#include <linux/poll.h>
|
||||
#include <linux/smp.h>
|
||||
-#include <linux/smp_lock.h>
|
||||
|
||||
#include "compat_file.h"
|
||||
#include "compat_highmem.h"
|
||||
diff --git a/vmmon-only/linux/driver.c b/vmmon-only/linux/driver.c
|
||||
index a33c983..89f8827 100644
|
||||
--- a/vmmon-only/linux/driver.c
|
||||
+++ b/vmmon-only/linux/driver.c
|
||||
@@ -781,7 +781,7 @@ LinuxDriver_Close(struct inode *inode, // IN
|
||||
|
||||
|
||||
#define POLLQUEUE_MAX_TASK 1000
|
||||
-static spinlock_t pollQueueLock __attribute__((unused)) = SPIN_LOCK_UNLOCKED;
|
||||
+static DEFINE_SPINLOCK(pollQueueLock);
|
||||
static void *pollQueue[POLLQUEUE_MAX_TASK];
|
||||
static unsigned int pollQueueCount = 0;
|
||||
|
||||
@@ -1042,7 +1042,8 @@ LinuxDriverPoll(struct file *filp,
|
||||
* but unfortunately there is no way how to detect that
|
||||
* we are building for RedHat's kernel...
|
||||
*/
|
||||
- static spinlock_t timerLock = SPIN_LOCK_UNLOCKED;
|
||||
+
|
||||
+ static DEFINE_SPINLOCK(timerLock);
|
||||
|
||||
spin_lock(&timerLock);
|
||||
mod_timer(&linuxState.pollTimer, jiffies + 1);
|
||||
diff --git a/vmmon-only/linux/hostif.c b/vmmon-only/linux/hostif.c
|
||||
index 6c7b34d..fabb44d 100644
|
||||
--- a/vmmon-only/linux/hostif.c
|
||||
+++ b/vmmon-only/linux/hostif.c
|
||||
@@ -46,7 +46,6 @@
|
||||
#include <linux/mman.h>
|
||||
|
||||
#include <linux/smp.h>
|
||||
-#include <linux/smp_lock.h>
|
||||
|
||||
#include <asm/io.h>
|
||||
#include <linux/mc146818rtc.h>
|
||||
diff --git a/vmmon-only/linux/iommu.c b/vmmon-only/linux/iommu.c
|
||||
index f64e80a..b0ee013 100644
|
||||
--- a/vmmon-only/linux/iommu.c
|
||||
+++ b/vmmon-only/linux/iommu.c
|
||||
@@ -44,7 +44,7 @@ typedef struct PassthruDevice {
|
||||
|
||||
|
||||
static LIST_HEAD(passthruDeviceList);
|
||||
-static spinlock_t passthruDeviceListLock = SPIN_LOCK_UNLOCKED;
|
||||
+static DEFINE_SPINLOCK(passthruDeviceListLock);
|
||||
static void *pciHolePage = NULL;
|
||||
|
||||
/*
|
||||
diff --git a/vmnet-only/driver.c b/vmnet-only/driver.c
|
||||
index c91a1dc..4c195e1 100644
|
||||
--- a/vmnet-only/driver.c
|
||||
+++ b/vmnet-only/driver.c
|
||||
@@ -28,7 +28,6 @@
|
||||
#include <linux/poll.h>
|
||||
|
||||
#include <linux/smp.h>
|
||||
-#include <linux/smp_lock.h>
|
||||
|
||||
#include <linux/netdevice.h>
|
||||
#include <linux/etherdevice.h>
|
||||
@@ -105,7 +104,7 @@ const uint8 broadcast[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
|
||||
* not have vnetStructureMutex already acquired,
|
||||
* it is most certainly a bug.
|
||||
*/
|
||||
-static rwlock_t vnetPeerLock = RW_LOCK_UNLOCKED;
|
||||
+static DEFINE_RWLOCK(vnetPeerLock);
|
||||
|
||||
/*
|
||||
* All concurrent changes to the network structure are
|
||||
@@ -115,6 +114,7 @@ static rwlock_t vnetPeerLock = RW_LOCK_UNLOCKED;
|
||||
* vnetStructureMutex and vnetPeerLock for write.
|
||||
*/
|
||||
compat_define_mutex(vnetStructureMutex);
|
||||
+compat_define_mutex(vnetMutex);
|
||||
|
||||
#if defined(VM_X86_64) && !defined(HAVE_COMPAT_IOCTL)
|
||||
/*
|
||||
@@ -264,11 +264,11 @@ LinuxDriver_Ioctl32_Handler(unsigned int fd, // IN: (unused)
|
||||
struct file * filp) // IN:
|
||||
{
|
||||
int ret = -ENOTTY;
|
||||
- lock_kernel();
|
||||
+ compat_mutex_lock(&vnetMutex);
|
||||
if (filp && filp->f_op && filp->f_op->ioctl == VNetFileOpIoctl) {
|
||||
ret = VNetFileOpIoctl(filp->f_dentry->d_inode, filp, iocmd, ioarg);
|
||||
}
|
||||
- unlock_kernel();
|
||||
+ compat_mutex_unlock(&vnetMutex);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -1134,9 +1134,9 @@ VNetFileOpUnlockedIoctl(struct file *filp, // IN:
|
||||
if (filp && filp->f_dentry) {
|
||||
inode = filp->f_dentry->d_inode;
|
||||
}
|
||||
- lock_kernel();
|
||||
+ compat_mutex_lock(&vnetMutex);
|
||||
err = VNetFileOpIoctl(inode, filp, iocmd, ioarg);
|
||||
- unlock_kernel();
|
||||
+ compat_mutex_unlock(&vnetMutex);
|
||||
return err;
|
||||
}
|
||||
#endif
|
||||
diff --git a/vmnet-only/filter.c b/vmnet-only/filter.c
|
||||
index 34b7d3d..b0017d7 100644
|
||||
--- a/vmnet-only/filter.c
|
||||
+++ b/vmnet-only/filter.c
|
||||
@@ -85,7 +85,7 @@ static compat_define_mutex(filterIoctlMutex); /* serialize ioctl()s from user sp
|
||||
* callbacks can be concurrently executing on multiple threads on multiple
|
||||
* CPUs, so we should revisit locking for allowing for that in the future.
|
||||
*/
|
||||
-spinlock_t activeRuleLock = SPIN_LOCK_UNLOCKED;
|
||||
+DEFINE_SPINLOCK(activeRuleLock);
|
||||
|
||||
/*
|
||||
* Logging.
|
||||
diff --git a/vmnet-only/hub.c b/vmnet-only/hub.c
|
||||
index b05efea..38d9aef 100644
|
||||
--- a/vmnet-only/hub.c
|
||||
+++ b/vmnet-only/hub.c
|
||||
@@ -81,7 +81,7 @@ static VNetHub *vnetHub = NULL;
|
||||
* so we use __attribute__((unused)) to quiet the compiler.
|
||||
*/
|
||||
|
||||
-static spinlock_t vnetHubLock __attribute__((unused)) = SPIN_LOCK_UNLOCKED;
|
||||
+static DEFINE_SPINLOCK(vnetHubLock);
|
||||
|
||||
|
||||
/*
|
||||
diff --git a/vsock-only/linux/af_vsock.c b/vsock-only/linux/af_vsock.c
|
||||
index ecd057e..d565ec0 100644
|
||||
--- a/vsock-only/linux/af_vsock.c
|
||||
+++ b/vsock-only/linux/af_vsock.c
|
||||
@@ -102,7 +102,6 @@
|
||||
#include <linux/miscdevice.h>
|
||||
#include <linux/poll.h>
|
||||
#include <linux/smp.h>
|
||||
-#include <linux/smp_lock.h>
|
||||
#include <asm/io.h>
|
||||
#if defined(__x86_64__) && LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 12)
|
||||
# if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0)
|
||||
diff --git a/vsock-only/linux/util.c b/vsock-only/linux/util.c
|
||||
index 53f2edb..32a7da7 100644
|
||||
--- a/vsock-only/linux/util.c
|
||||
+++ b/vsock-only/linux/util.c
|
||||
@@ -34,7 +34,7 @@
|
||||
struct list_head vsockBindTable[VSOCK_HASH_SIZE + 1];
|
||||
struct list_head vsockConnectedTable[VSOCK_HASH_SIZE];
|
||||
|
||||
-spinlock_t vsockTableLock = SPIN_LOCK_UNLOCKED;
|
||||
+DEFINE_SPINLOCK(vsockTableLock);
|
||||
|
||||
/*
|
||||
* snprintf() wasn't exported until 2.4.10: fall back on sprintf in those
|
||||
diff --git a/vsock-only/shared/compat_namei.h b/vsock-only/shared/compat_namei.h
|
||||
index 28d72c8..4214247 100644
|
||||
--- a/vsock-only/shared/compat_namei.h
|
||||
+++ b/vsock-only/shared/compat_namei.h
|
||||
@@ -40,8 +40,11 @@
|
||||
#define compat_path_release(nd) path_release(nd)
|
||||
#endif
|
||||
|
||||
+/* path_lookup was removed in 2.6.39 merge window VFS merge */
|
||||
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 39)
|
||||
+#define compat_path_lookup(name, flags, nd) kern_path(name, flags, &((nd)->path))
|
||||
/* path_lookup was exported in 2.4.25 */
|
||||
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 4, 25)
|
||||
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 4, 25)
|
||||
#define compat_path_lookup(path, flags, nd) path_lookup(path, flags, nd)
|
||||
#else
|
||||
#define compat_path_lookup(path, flags, nd) \
|
@ -1,103 +0,0 @@
|
||||
diff --git a/vmmon-only/linux/iommu.c b/vmmon-only/linux/iommu.c
|
||||
index b0ee013..f0f5c9a 100644
|
||||
--- a/vmmon-only/linux/iommu.c
|
||||
+++ b/vmmon-only/linux/iommu.c
|
||||
@@ -36,6 +36,12 @@
|
||||
#define PCI_BDF_SLOTFUNC(bdf) PCI_DEVFN(PCI_SLOT(bdf), PCI_FUNC(bdf))
|
||||
#define PCI_BDF_BUS(bdf) (((bdf) >> 8) & 0xff)
|
||||
|
||||
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0)
|
||||
+#include <linux/pci.h>
|
||||
+#define iommu_found() iommu_present(&pci_bus_type)
|
||||
+#define iommu_domain_alloc() iommu_domain_alloc(&pci_bus_type)
|
||||
+#endif
|
||||
+
|
||||
typedef struct PassthruDevice {
|
||||
struct pci_dev *pdev;
|
||||
VMLinux *vmLinux;
|
||||
diff --git a/vmnet-only/filter.c b/vmnet-only/filter.c
|
||||
index b0017d7..6c0687f 100644
|
||||
--- a/vmnet-only/filter.c
|
||||
+++ b/vmnet-only/filter.c
|
||||
@@ -41,6 +41,10 @@
|
||||
#include "vnetInt.h"
|
||||
#include "vmnetInt.h"
|
||||
|
||||
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0)
|
||||
+#include <linux/export.h>
|
||||
+#endif
|
||||
+
|
||||
// VNet_FilterLogPacket.action for dropped packets
|
||||
#define VNET_FILTER_ACTION_DRP (1)
|
||||
#define VNET_FILTER_ACTION_DRP_SHORT (2)
|
||||
diff --git a/vmnet-only/netif.c b/vmnet-only/netif.c
|
||||
index b3c752b..79d4896 100644
|
||||
--- a/vmnet-only/netif.c
|
||||
+++ b/vmnet-only/netif.c
|
||||
@@ -62,7 +62,9 @@ static int VNetNetifClose(struct net_device *dev);
|
||||
static int VNetNetifStartXmit(struct sk_buff *skb, struct net_device *dev);
|
||||
static struct net_device_stats *VNetNetifGetStats(struct net_device *dev);
|
||||
static int VNetNetifSetMAC(struct net_device *dev, void *addr);
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 2, 0)
|
||||
static void VNetNetifSetMulticast(struct net_device *dev);
|
||||
+#endif
|
||||
#if 0
|
||||
static void VNetNetifTxTimeout(struct net_device *dev);
|
||||
#endif
|
||||
@@ -131,7 +133,9 @@ VNetNetIfSetup(struct net_device *dev) // IN:
|
||||
.ndo_stop = VNetNetifClose,
|
||||
.ndo_get_stats = VNetNetifGetStats,
|
||||
.ndo_set_mac_address = VNetNetifSetMAC,
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 2, 0)
|
||||
.ndo_set_multicast_list = VNetNetifSetMulticast,
|
||||
+#endif
|
||||
/*
|
||||
* We cannot stuck... If someone will report problems under
|
||||
* low memory conditions or some such, we should enable it.
|
||||
@@ -152,7 +156,9 @@ VNetNetIfSetup(struct net_device *dev) // IN:
|
||||
dev->stop = VNetNetifClose;
|
||||
dev->get_stats = VNetNetifGetStats;
|
||||
dev->set_mac_address = VNetNetifSetMAC;
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 2, 0)
|
||||
dev->set_multicast_list = VNetNetifSetMulticast;
|
||||
+#endif
|
||||
/*
|
||||
* We cannot stuck... If someone will report problems under
|
||||
* low memory conditions or some such, we should enable it.
|
||||
@@ -621,11 +627,12 @@ VNetNetifSetMAC(struct net_device *dev, // IN:
|
||||
*----------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 2, 0)
|
||||
void
|
||||
VNetNetifSetMulticast(struct net_device *dev) // IN: unused
|
||||
{
|
||||
}
|
||||
-
|
||||
+#endif
|
||||
|
||||
/*
|
||||
*----------------------------------------------------------------------
|
||||
diff --git a/vmnet-only/userif.c b/vmnet-only/userif.c
|
||||
index 4e65c76..fd12aa9 100644
|
||||
--- a/vmnet-only/userif.c
|
||||
+++ b/vmnet-only/userif.c
|
||||
@@ -572,10 +572,18 @@ VNetCsumCopyDatagram(const struct sk_buff *skb, // IN: skb to copy
|
||||
unsigned int tmpCsum;
|
||||
const void *vaddr;
|
||||
|
||||
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0)
|
||||
+ vaddr = kmap(skb_frag_page(frag));
|
||||
+#else
|
||||
vaddr = kmap(frag->page);
|
||||
+#endif
|
||||
tmpCsum = csum_and_copy_to_user(vaddr + frag->page_offset,
|
||||
curr, frag->size, 0, &err);
|
||||
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0)
|
||||
+ kunmap(skb_frag_page(frag));
|
||||
+#else
|
||||
kunmap(frag->page);
|
||||
+#endif
|
||||
if (err) {
|
||||
return err;
|
||||
}
|
@ -1,14 +0,0 @@
|
||||
--- a/vmblock-only/linux/filesystem.c 2012-05-23 20:08:00.632051396 -0500
|
||||
+++ b/vmblock-only/linux/filesystem.c 2012-05-23 20:17:00.896297163 -0500
|
||||
@@ -517,7 +517,11 @@
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 4, 0)
|
||||
rootDentry = d_alloc_root(rootInode);
|
||||
+#else
|
||||
+ rootDentry = d_make_root(rootInode);
|
||||
+#endif
|
||||
if (!rootDentry) {
|
||||
iput(rootInode);
|
||||
return -ENOMEM;
|
@ -1,75 +0,0 @@
|
||||
diff -ru a/work/vmblock-only/Makefile b/work/vmblock-only/Makefile
|
||||
--- a/work/vmblock-only/Makefile 2011-01-22 08:59:15.907152002 -0500
|
||||
+++ b/work/vmblock-only/Makefile 2011-01-22 09:13:55.894938002 -0500
|
||||
@@ -123,9 +123,9 @@
|
||||
postbuild:: ;
|
||||
|
||||
$(DRIVER_KO): prebuild
|
||||
- make -C $(BUILD_DIR) SUBDIRS=$$PWD SRCROOT=$$PWD/$(SRCROOT) \
|
||||
+ $(MAKE) -C $(BUILD_DIR) SUBDIRS=$$PWD SRCROOT=$$PWD/$(SRCROOT) \
|
||||
MODULEBUILDDIR=$(MODULEBUILDDIR) modules
|
||||
- make -C $$PWD SRCROOT=$$PWD/$(SRCROOT) \
|
||||
+ $(MAKE) -C $$PWD SRCROOT=$$PWD/$(SRCROOT) \
|
||||
MODULEBUILDDIR=$(MODULEBUILDDIR) postbuild
|
||||
endif
|
||||
|
||||
diff -ru a/work/vmci-only/Makefile b/work/vmci-only/Makefile
|
||||
--- a/work/vmci-only/Makefile 2011-01-22 08:59:15.907152002 -0500
|
||||
+++ b/work/vmci-only/Makefile 2011-01-22 09:13:55.898936002 -0500
|
||||
@@ -123,9 +123,9 @@
|
||||
postbuild:: ;
|
||||
|
||||
$(DRIVER_KO): prebuild
|
||||
- make -C $(BUILD_DIR) SUBDIRS=$$PWD SRCROOT=$$PWD/$(SRCROOT) \
|
||||
+ $(MAKE) -C $(BUILD_DIR) SUBDIRS=$$PWD SRCROOT=$$PWD/$(SRCROOT) \
|
||||
MODULEBUILDDIR=$(MODULEBUILDDIR) modules
|
||||
- make -C $$PWD SRCROOT=$$PWD/$(SRCROOT) \
|
||||
+ $(MAKE) -C $$PWD SRCROOT=$$PWD/$(SRCROOT) \
|
||||
MODULEBUILDDIR=$(MODULEBUILDDIR) postbuild
|
||||
endif
|
||||
|
||||
diff -ru a/work/vmmon-only/Makefile b/work/vmmon-only/Makefile
|
||||
--- a/work/vmmon-only/Makefile 2011-01-22 08:59:15.907152002 -0500
|
||||
+++ b/work/vmmon-only/Makefile 2011-01-22 09:13:55.894938002 -0500
|
||||
@@ -123,9 +123,9 @@
|
||||
postbuild:: ;
|
||||
|
||||
$(DRIVER_KO): prebuild
|
||||
- make -C $(BUILD_DIR) SUBDIRS=$$PWD SRCROOT=$$PWD/$(SRCROOT) \
|
||||
+ $(MAKE) -C $(BUILD_DIR) SUBDIRS=$$PWD SRCROOT=$$PWD/$(SRCROOT) \
|
||||
MODULEBUILDDIR=$(MODULEBUILDDIR) modules
|
||||
- make -C $$PWD SRCROOT=$$PWD/$(SRCROOT) \
|
||||
+ $(MAKE) -C $$PWD SRCROOT=$$PWD/$(SRCROOT) \
|
||||
MODULEBUILDDIR=$(MODULEBUILDDIR) postbuild
|
||||
endif
|
||||
|
||||
diff -ru a/work/vmnet-only/Makefile b/work/vmnet-only/Makefile
|
||||
--- a/work/vmnet-only/Makefile 2011-01-22 08:59:15.911150002 -0500
|
||||
+++ b/work/vmnet-only/Makefile 2011-01-22 09:13:55.898936002 -0500
|
||||
@@ -123,9 +123,9 @@
|
||||
postbuild:: ;
|
||||
|
||||
$(DRIVER_KO): prebuild
|
||||
- make -C $(BUILD_DIR) SUBDIRS=$$PWD SRCROOT=$$PWD/$(SRCROOT) \
|
||||
+ $(MAKE) -C $(BUILD_DIR) SUBDIRS=$$PWD SRCROOT=$$PWD/$(SRCROOT) \
|
||||
MODULEBUILDDIR=$(MODULEBUILDDIR) modules
|
||||
- make -C $$PWD SRCROOT=$$PWD/$(SRCROOT) \
|
||||
+ $(MAKE) -C $$PWD SRCROOT=$$PWD/$(SRCROOT) \
|
||||
MODULEBUILDDIR=$(MODULEBUILDDIR) postbuild
|
||||
endif
|
||||
|
||||
diff -ru a/work/vsock-only/Makefile b/work/vsock-only/Makefile
|
||||
--- a/work/vsock-only/Makefile 2011-01-22 08:59:15.911150002 -0500
|
||||
+++ b/work/vsock-only/Makefile 2011-01-22 09:13:55.894938002 -0500
|
||||
@@ -123,9 +123,9 @@
|
||||
postbuild:: ;
|
||||
|
||||
$(DRIVER_KO): prebuild
|
||||
- make -C $(BUILD_DIR) SUBDIRS=$$PWD SRCROOT=$$PWD/$(SRCROOT) \
|
||||
+ $(MAKE) -C $(BUILD_DIR) SUBDIRS=$$PWD SRCROOT=$$PWD/$(SRCROOT) \
|
||||
MODULEBUILDDIR=$(MODULEBUILDDIR) modules
|
||||
- make -C $$PWD SRCROOT=$$PWD/$(SRCROOT) \
|
||||
+ $(MAKE) -C $$PWD SRCROOT=$$PWD/$(SRCROOT) \
|
||||
MODULEBUILDDIR=$(MODULEBUILDDIR) postbuild
|
||||
endif
|
||||
|
@ -1,65 +0,0 @@
|
||||
diff --git a/work/vmblock-only/Makefile.kernel b/work/vmblock-only/Makefile.kernel
|
||||
index 9d7c5ca..92cefff 100644
|
||||
--- a/work/vmblock-only/Makefile.kernel
|
||||
+++ b/work/vmblock-only/Makefile.kernel
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
INCLUDE += -I$(SRCROOT)/include
|
||||
|
||||
-EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE)
|
||||
+EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) $(LINUXINCLUDE)
|
||||
|
||||
EXTRA_CFLAGS += $(call vm_check_build, $(AUTOCONF_DIR)/setnice.c, -DVMW_HAVE_SET_USER_NICE, )
|
||||
EXTRA_CFLAGS += $(call vm_check_build, $(AUTOCONF_DIR)/epoll.c, -DVMW_HAVE_EPOLL, )
|
||||
diff --git a/work/vmci-only/Makefile.kernel b/work/vmci-only/Makefile.kernel
|
||||
index 22dc232..67e709f 100644
|
||||
--- a/work/vmci-only/Makefile.kernel
|
||||
+++ b/work/vmci-only/Makefile.kernel
|
||||
@@ -21,7 +21,7 @@ CC_OPTS += -DVMCI
|
||||
|
||||
INCLUDE := -I$(SRCROOT)/include -I$(SRCROOT)/common -I$(SRCROOT)/linux
|
||||
|
||||
-EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE)
|
||||
+EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) $(LINUXINCLUDE)
|
||||
|
||||
EXTRA_CFLAGS += $(call vm_check_build, $(SRCROOT)/autoconf/epoll.c, -DVMW_HAVE_EPOLL, )
|
||||
|
||||
diff --git a/work/vmmon-only/Makefile.kernel b/work/vmmon-only/Makefile.kernel
|
||||
index a7e26ea..befaca7 100644
|
||||
--- a/work/vmmon-only/Makefile.kernel
|
||||
+++ b/work/vmmon-only/Makefile.kernel
|
||||
@@ -22,7 +22,7 @@ CC_OPTS += -DVMMON -DVMCORE
|
||||
INCLUDE := -I$(SRCROOT)/include -I$(SRCROOT)/common -I$(SRCROOT)/linux \
|
||||
-I$(SRCROOT)/vmcore
|
||||
|
||||
-EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE)
|
||||
+EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) $(LINUXINCLUDE)
|
||||
|
||||
EXTRA_CFLAGS += $(call vm_check_build, $(SRCROOT)/autoconf/nopage1.c, -DVMW_NOPAGE_261, )
|
||||
EXTRA_CFLAGS += $(call vm_check_build, $(SRCROOT)/autoconf/skas1.c, -DVMW_SKAS_MMAP, )
|
||||
diff --git a/work/vmnet-only/Makefile.kernel b/work/vmnet-only/Makefile.kernel
|
||||
index 4b16d06..0e252a6 100644
|
||||
--- a/work/vmnet-only/Makefile.kernel
|
||||
+++ b/work/vmnet-only/Makefile.kernel
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
INCLUDE := -I$(SRCROOT)
|
||||
|
||||
-EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE)
|
||||
+EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) $(LINUXINCLUDE)
|
||||
EXTRA_CFLAGS += $(call vm_check_build, $(SRCROOT)/epoll.c, -DVMW_HAVE_EPOLL, )
|
||||
EXTRA_CFLAGS += $(call vm_check_build, $(SRCROOT)/sk_alloc.c,-DVMW_HAVE_SK_ALLOC_WITH_PROTO, )
|
||||
EXTRA_CFLAGS += $(call vm_check_build, $(SRCROOT)/netdev_has_net.c,-DVMW_NETDEV_HAS_NET, )
|
||||
diff --git a/work/vsock-only/Makefile.kernel b/work/vsock-only/Makefile.kernel
|
||||
index 47ef5f3..b3539ef 100644
|
||||
--- a/work/vsock-only/Makefile.kernel
|
||||
+++ b/work/vsock-only/Makefile.kernel
|
||||
@@ -25,7 +25,7 @@ INCLUDE += -I$(SRCROOT)/include
|
||||
INCLUDE += -I$(SRCROOT)/linux
|
||||
INCLUDE += -I$(SRCROOT)/common
|
||||
|
||||
-EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE)
|
||||
+EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) $(LINUXINCLUDE)
|
||||
EXTRA_CFLAGS += $(call vm_check_build, $(AUTOCONF_DIR)/epoll.c, -DVMW_HAVE_EPOLL, )
|
||||
EXTRA_CFLAGS += $(call vm_check_build, $(AUTOCONF_DIR)/setnice.c, -DVMW_HAVE_SET_USER_NICE, )
|
||||
|
@ -1,80 +0,0 @@
|
||||
diff --git a/work/vmblock-only/Makefile b/work/vmblock-only/Makefile
|
||||
index 0bd0e74..27c3ede 100644
|
||||
--- a/work/vmblock-only/Makefile
|
||||
+++ b/work/vmblock-only/Makefile
|
||||
@@ -46,9 +46,9 @@ endif
|
||||
VM_UNAME = $(shell uname -r)
|
||||
|
||||
# Header directory for the running kernel
|
||||
-HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include
|
||||
+HEADER_DIR = $(KERNEL_DIR)
|
||||
|
||||
-BUILD_DIR = $(HEADER_DIR)/..
|
||||
+BUILD_DIR = $(KBUILD_OUTPUT)
|
||||
|
||||
DRIVER := vmblock
|
||||
PRODUCT := tools
|
||||
diff --git a/work/vmci-only/Makefile b/work/vmci-only/Makefile
|
||||
index 7babb8a..fbc5878 100644
|
||||
--- a/work/vmci-only/Makefile
|
||||
+++ b/work/vmci-only/Makefile
|
||||
@@ -46,9 +46,9 @@ endif
|
||||
VM_UNAME = $(shell uname -r)
|
||||
|
||||
# Header directory for the running kernel
|
||||
-HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include
|
||||
+HEADER_DIR = $(KERNEL_DIR)
|
||||
|
||||
-BUILD_DIR = $(HEADER_DIR)/..
|
||||
+BUILD_DIR = $(KBUILD_OUTPUT)
|
||||
|
||||
DRIVER := vmci
|
||||
PRODUCT := @@PRODUCT@@
|
||||
diff --git a/work/vmmon-only/Makefile b/work/vmmon-only/Makefile
|
||||
index 4b4eb3e..1bb35ef 100644
|
||||
--- a/work/vmmon-only/Makefile
|
||||
+++ b/work/vmmon-only/Makefile
|
||||
@@ -46,9 +46,9 @@ endif
|
||||
VM_UNAME = $(shell uname -r)
|
||||
|
||||
# Header directory for the running kernel
|
||||
-HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include
|
||||
+HEADER_DIR = $(KERNEL_DIR)
|
||||
|
||||
-BUILD_DIR = $(HEADER_DIR)/..
|
||||
+BUILD_DIR = $(KBUILD_OUTPUT)
|
||||
|
||||
DRIVER := vmmon
|
||||
PRODUCT := @@PRODUCT@@
|
||||
diff --git a/work/vmnet-only/Makefile b/work/vmnet-only/Makefile
|
||||
index 06856e7..fd53bf8 100644
|
||||
--- a/work/vmnet-only/Makefile
|
||||
+++ b/work/vmnet-only/Makefile
|
||||
@@ -46,9 +46,9 @@ endif
|
||||
VM_UNAME = $(shell uname -r)
|
||||
|
||||
# Header directory for the running kernel
|
||||
-HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include
|
||||
+HEADER_DIR = $(KERNEL_DIR)
|
||||
|
||||
-BUILD_DIR = $(HEADER_DIR)/..
|
||||
+BUILD_DIR = $(KBUILD_OUTPUT)
|
||||
|
||||
DRIVER := vmnet
|
||||
PRODUCT := @@PRODUCT@@
|
||||
diff --git a/work/vsock-only/Makefile b/work/vsock-only/Makefile
|
||||
index e02adb0..210e502 100644
|
||||
--- a/work/vsock-only/Makefile
|
||||
+++ b/work/vsock-only/Makefile
|
||||
@@ -46,9 +46,9 @@ endif
|
||||
VM_UNAME = $(shell uname -r)
|
||||
|
||||
# Header directory for the running kernel
|
||||
-HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include
|
||||
+HEADER_DIR = $(KERNEL_DIR)
|
||||
|
||||
-BUILD_DIR = $(HEADER_DIR)/..
|
||||
+BUILD_DIR = $(KBUILD_OUTPUT)
|
||||
|
||||
DRIVER := vsock
|
||||
PRODUCT := ws
|
@ -1,24 +0,0 @@
|
||||
diff --git a/vmnet-only/compat_netdevice.h b/vmnet-only/compat_netdevice.h
|
||||
index 7a56304..9ff4548 100644
|
||||
--- a/vmnet-only/compat_netdevice.h
|
||||
+++ b/vmnet-only/compat_netdevice.h
|
||||
@@ -47,6 +47,19 @@
|
||||
# define net_device device
|
||||
#endif
|
||||
|
||||
+/* it looks like these have been removed from the kernel 3.1
|
||||
+ * probably because the "transition" is considered complete.
|
||||
+ * so to keep this source compatible we just redefine them like they were
|
||||
+ * previously
|
||||
+ */
|
||||
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 1, 0)
|
||||
+#define HAVE_ALLOC_NETDEV /* feature macro: alloc_xxxdev
|
||||
+ functions are available. */
|
||||
+#define HAVE_FREE_NETDEV /* free_netdev() */
|
||||
+#define HAVE_NETDEV_PRIV /* netdev_priv() */
|
||||
+#define HAVE_NETIF_QUEUE
|
||||
+#define HAVE_NET_DEVICE_OPS
|
||||
+#endif
|
||||
|
||||
/*
|
||||
* SET_MODULE_OWNER appeared sometime during 2.3.x. It was setting
|
@ -1,83 +0,0 @@
|
||||
diff -ru original//vmci-only/include/compat_semaphore.h patched//vmci-only/include/compat_semaphore.h
|
||||
--- original//vmci-only/include/compat_semaphore.h 2010-11-11 15:37:25.000000000 -0500
|
||||
+++ patched//vmci-only/include/compat_semaphore.h 2010-11-20 10:11:56.000000000 -0500
|
||||
@@ -28,7 +28,7 @@
|
||||
#endif
|
||||
|
||||
|
||||
-#if defined CONFIG_PREEMPT_RT && LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 31)
|
||||
+#if (defined CONFIG_PREEMPT_RT && LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 31)) || LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)
|
||||
/*
|
||||
* The -rt patch series changes the name of semaphore/mutex initialization
|
||||
* routines (across the entire kernel). Probably to identify locations that
|
||||
@@ -41,7 +41,7 @@
|
||||
#define DECLARE_MUTEX(_m) DEFINE_SEMAPHORE(_m)
|
||||
#endif
|
||||
#ifndef init_MUTEX
|
||||
- #define init_MUTEX(_m) semaphore_init(_m)
|
||||
+ #define init_MUTEX(_m) sema_init(_m,1)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
diff -ru original//vmmon-only/linux/driver.c patched//vmmon-only/linux/driver.c
|
||||
--- original//vmmon-only/linux/driver.c 2010-11-11 15:37:22.000000000 -0500
|
||||
+++ patched//vmmon-only/linux/driver.c 2010-11-29 23:09:16.000000000 -0500
|
||||
@@ -145,7 +145,7 @@
|
||||
#endif
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) && \
|
||||
(defined(CONFIG_SMP) || defined(CONFIG_PREEMPT))
|
||||
-# define kernel_locked_by_current() kernel_locked()
|
||||
+# define kernel_locked_by_current() (current->lock_depth >= 0)
|
||||
#else
|
||||
# define kernel_locked_by_current() 0
|
||||
#endif
|
||||
@@ -170,6 +170,7 @@
|
||||
static int LinuxDriver_Ioctl(struct inode *inode, struct file *filp,
|
||||
u_int iocmd, unsigned long ioarg);
|
||||
#if defined(HAVE_UNLOCKED_IOCTL) || defined(HAVE_COMPAT_IOCTL)
|
||||
+#define VMW_HAVE_UNLOCKED_IOCTL
|
||||
static long LinuxDriver_UnlockedIoctl(struct file *filp,
|
||||
u_int iocmd, unsigned long ioarg);
|
||||
#endif
|
||||
diff -ru original//vmnet-only/compat_semaphore.h patched//vmnet-only/compat_semaphore.h
|
||||
--- original//vmnet-only/compat_semaphore.h 2010-11-11 15:37:23.000000000 -0500
|
||||
+++ patched//vmnet-only/compat_semaphore.h 2010-11-20 10:11:56.000000000 -0500
|
||||
@@ -28,7 +28,7 @@
|
||||
#endif
|
||||
|
||||
|
||||
-#if defined CONFIG_PREEMPT_RT && LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 31)
|
||||
+#if (defined CONFIG_PREEMPT_RT && LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 31)) || LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)
|
||||
/*
|
||||
* The -rt patch series changes the name of semaphore/mutex initialization
|
||||
* routines (across the entire kernel). Probably to identify locations that
|
||||
@@ -41,7 +41,7 @@
|
||||
#define DECLARE_MUTEX(_m) DEFINE_SEMAPHORE(_m)
|
||||
#endif
|
||||
#ifndef init_MUTEX
|
||||
- #define init_MUTEX(_m) semaphore_init(_m)
|
||||
+ #define init_MUTEX(_m) sema_init(_m,1)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
diff -ru original//vsock-only/shared/compat_semaphore.h patched//vsock-only/shared/compat_semaphore.h
|
||||
--- original//vsock-only/shared/compat_semaphore.h 2010-11-11 13:04:44.000000000 -0500
|
||||
+++ patched//vsock-only/shared/compat_semaphore.h 2010-11-20 10:11:56.000000000 -0500
|
||||
@@ -28,7 +28,7 @@
|
||||
#endif
|
||||
|
||||
|
||||
-#if defined CONFIG_PREEMPT_RT && LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 31)
|
||||
+#if (defined CONFIG_PREEMPT_RT && LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 31)) || LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)
|
||||
/*
|
||||
* The -rt patch series changes the name of semaphore/mutex initialization
|
||||
* routines (across the entire kernel). Probably to identify locations that
|
||||
@@ -41,7 +41,7 @@
|
||||
#define DECLARE_MUTEX(_m) DEFINE_SEMAPHORE(_m)
|
||||
#endif
|
||||
#ifndef init_MUTEX
|
||||
- #define init_MUTEX(_m) semaphore_init(_m)
|
||||
+ #define init_MUTEX(_m) sema_init(_m,1)
|
||||
#endif
|
||||
#endif
|
||||
|
@ -1,33 +0,0 @@
|
||||
diff --git a/vmmon-only/linux/driver.c b/vmmon-only/linux/driver.c
|
||||
index 1a0e753..089aba3 100644
|
||||
--- a/vmmon-only/linux/driver.c
|
||||
+++ b/vmmon-only/linux/driver.c
|
||||
@@ -170,6 +170,7 @@ static int LinuxDriver_Open(struct inode *inode, struct file *filp);
|
||||
static int LinuxDriver_Ioctl(struct inode *inode, struct file *filp,
|
||||
u_int iocmd, unsigned long ioarg);
|
||||
#if defined(HAVE_UNLOCKED_IOCTL) || defined(HAVE_COMPAT_IOCTL)
|
||||
+#define VMW_HAVE_UNLOCKED_IOCTL
|
||||
static long LinuxDriver_UnlockedIoctl(struct file *filp,
|
||||
u_int iocmd, unsigned long ioarg);
|
||||
#endif
|
||||
diff --git a/vmmon-only/linux/hostif.c b/vmmon-only/linux/hostif.c
|
||||
index 5847323..9042b97 100644
|
||||
--- a/vmmon-only/linux/hostif.c
|
||||
+++ b/vmmon-only/linux/hostif.c
|
||||
@@ -3702,7 +3702,7 @@ HostIFDoIoctl(struct file *filp,
|
||||
if (filp->f_op->unlocked_ioctl) {
|
||||
return filp->f_op->unlocked_ioctl(filp, iocmd, ioarg);
|
||||
}
|
||||
-#endif
|
||||
+#else
|
||||
if (filp->f_op->ioctl) {
|
||||
long err;
|
||||
|
||||
@@ -3712,6 +3712,7 @@ HostIFDoIoctl(struct file *filp,
|
||||
|
||||
return err;
|
||||
}
|
||||
+#endif
|
||||
|
||||
return -ENOIOCTLCMD;
|
||||
}
|
@ -1,84 +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/vmware-modules/vmware-modules-238.6.ebuild,v 1.3 2013/06/21 20:44:01 dilfridge Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit eutils flag-o-matic linux-info linux-mod user versionator udev
|
||||
|
||||
PV_MAJOR=$(get_major_version)
|
||||
PV_MINOR=$(get_version_component_range 2)
|
||||
|
||||
DESCRIPTION="VMware kernel modules"
|
||||
HOMEPAGE="http://www.vmware.com/"
|
||||
|
||||
SRC_URI=""
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND}
|
||||
|| ( =app-emulation/vmware-player-3.1.${PV_MINOR}*
|
||||
=app-emulation/vmware-workstation-7.1.${PV_MINOR}* )"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
pkg_setup() {
|
||||
CONFIG_CHECK="~HIGH_RES_TIMERS"
|
||||
if kernel_is ge 2 6 37 && kernel_is lt 2 6 39; then
|
||||
CONFIG_CHECK="${CONFIG_CHECK} BKL"
|
||||
fi
|
||||
|
||||
linux-info_pkg_setup
|
||||
|
||||
linux-mod_pkg_setup
|
||||
|
||||
VMWARE_GROUP=${VMWARE_GROUP:-vmware}
|
||||
|
||||
VMWARE_MODULE_LIST="vmblock vmci vmmon vmnet vsock"
|
||||
VMWARE_MOD_DIR="${PN}-${PVR}"
|
||||
|
||||
BUILD_TARGETS="auto-build KERNEL_DIR=${KERNEL_DIR} KBUILD_OUTPUT=${KV_OUT_DIR}"
|
||||
|
||||
enewgroup "${VMWARE_GROUP}"
|
||||
filter-flags -mfpmath=sse
|
||||
|
||||
for mod in ${VMWARE_MODULE_LIST}; do
|
||||
MODULE_NAMES="${MODULE_NAMES} ${mod}(misc:${S}/${mod}-only)"
|
||||
done
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
cd "${S}"
|
||||
for mod in ${VMWARE_MODULE_LIST}; do
|
||||
tar -xf /opt/vmware/lib/vmware/modules/source/${mod}.tar
|
||||
done
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${PV_MAJOR}-makefile-kernel-dir.patch"
|
||||
epatch "${FILESDIR}/${PV_MAJOR}-makefile-include.patch"
|
||||
epatch "${FILESDIR}/${PV_MAJOR}-jobserver.patch"
|
||||
kernel_is ge 2 6 37 && epatch "${FILESDIR}/${PV_MAJOR}-sema.patch"
|
||||
kernel_is ge 2 6 39 && epatch "${FILESDIR}/${PV_MAJOR}-2.6.39.patch"
|
||||
epatch "${FILESDIR}/${PV_MAJOR}-netdevice.patch"
|
||||
epatch "${FILESDIR}/${PV_MAJOR}-3.2.0.patch"
|
||||
epatch "${FILESDIR}/${PV_MAJOR}-d-make-root.patch"
|
||||
|
||||
# Allow user patches so they can support RC kernels and whatever else
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_install() {
|
||||
linux-mod_src_install
|
||||
local udevrules="${T}/60-vmware.rules"
|
||||
cat > "${udevrules}" <<-EOF
|
||||
KERNEL=="vmci", GROUP="vmware", MODE=660
|
||||
KERNEL=="vmmon", GROUP="vmware", MODE=660
|
||||
KERNEL=="vsock", GROUP="vmware", MODE=660
|
||||
EOF
|
||||
udev_dorules "${udevrules}"
|
||||
}
|
@ -1,33 +0,0 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/files/vmware-7.0.rc,v 1.1 2011/03/27 15:25:47 vadimk Exp $
|
||||
|
||||
depend() {
|
||||
need localmount
|
||||
use net
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin Starting VMware USB Arbitrator
|
||||
#start-stop-daemon --start --exec @@BINDIR@@/vmware-usbarbitrator
|
||||
@@BINDIR@@/vmware-usbarbitrator
|
||||
eend $?
|
||||
ebegin Starting VMware services
|
||||
modprobe -a vmmon vmci vsock vmblock vmnet
|
||||
eend $?
|
||||
@@BINDIR@@/vmware-networks --start
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin Stopping VMware USB Arbitrator
|
||||
#start-stop-daemon --stop --exec @@BINDIR@@/vmware-usbarbitrator
|
||||
killall --wait @@BINDIR@@/vmware-usbarbitrator
|
||||
eend $?
|
||||
@@BINDIR@@/vmware-networks --stop
|
||||
eend $?
|
||||
ebegin Stopping VMware services
|
||||
modprobe -r vsock vmci vmmon vmblock vmnet
|
||||
eend $?
|
||||
}
|
@ -1,308 +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/vmware-workstation/vmware-workstation-7.1.6.744570.ebuild,v 1.3 2013/06/22 22:44:06 dilfridge Exp $
|
||||
|
||||
EAPI="2"
|
||||
|
||||
inherit eutils versionator fdo-mime gnome2-utils vmware-bundle
|
||||
|
||||
MY_PN="VMware-Workstation"
|
||||
MY_PV="$(replace_version_separator 3 - $PV)"
|
||||
MY_P="${MY_PN}-${MY_PV}"
|
||||
PV_MINOR=$(get_version_component_range 3)
|
||||
|
||||
DESCRIPTION="Emulate a complete PC on your PC without the usual performance overhead of most emulators"
|
||||
HOMEPAGE="http://www.vmware.com/products/workstation/"
|
||||
SRC_URI="
|
||||
x86? ( ${MY_P}.i386.bundle )
|
||||
amd64? ( ${MY_P}.x86_64.bundle )
|
||||
"
|
||||
|
||||
LICENSE="vmware GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64 ~x86"
|
||||
IUSE="doc vix +vmware-tools"
|
||||
RESTRICT="fetch mirror strip"
|
||||
|
||||
# vmware-workstation should not use virtual/libc as this is a
|
||||
# precompiled binary package thats linked to glibc.
|
||||
RDEPEND="dev-cpp/cairomm
|
||||
dev-cpp/glibmm:2
|
||||
dev-cpp/gtkmm:2.4
|
||||
dev-cpp/libgnomecanvasmm
|
||||
dev-cpp/libsexymm
|
||||
dev-cpp/pangomm
|
||||
dev-libs/atk
|
||||
dev-libs/glib:2
|
||||
dev-libs/libaio
|
||||
dev-libs/libsigc++
|
||||
dev-libs/libxml2
|
||||
=dev-libs/openssl-0.9.8*
|
||||
dev-libs/xmlrpc-c
|
||||
gnome-base/libgnomecanvas
|
||||
gnome-base/libgtop:2
|
||||
gnome-base/librsvg:2
|
||||
gnome-base/orbit
|
||||
media-libs/fontconfig
|
||||
media-libs/freetype
|
||||
media-libs/libart_lgpl
|
||||
=media-libs/libpng-1.2*
|
||||
net-misc/curl
|
||||
sys-devel/gcc
|
||||
sys-fs/fuse
|
||||
sys-libs/glibc
|
||||
sys-libs/zlib
|
||||
x11-libs/cairo
|
||||
x11-libs/gtk+:2
|
||||
x11-libs/libgksu
|
||||
x11-libs/libICE
|
||||
x11-libs/libsexy
|
||||
x11-libs/libSM
|
||||
>=x11-libs/libview-0.6.6
|
||||
x11-libs/libX11
|
||||
x11-libs/libXau
|
||||
x11-libs/libxcb
|
||||
x11-libs/libXcomposite
|
||||
x11-libs/libXcursor
|
||||
x11-libs/libXdamage
|
||||
x11-libs/libXdmcp
|
||||
x11-libs/libXext
|
||||
x11-libs/libXfixes
|
||||
x11-libs/libXft
|
||||
x11-libs/libXi
|
||||
x11-libs/libXinerama
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libXrender
|
||||
x11-libs/libXtst
|
||||
x11-libs/pango
|
||||
x11-libs/startup-notification
|
||||
x11-themes/hicolor-icon-theme
|
||||
!app-emulation/vmware-server
|
||||
!app-emulation/vmware-player"
|
||||
PDEPEND="~app-emulation/vmware-modules-238.${PV_MINOR}
|
||||
vmware-tools? ( app-emulation/vmware-tools )"
|
||||
|
||||
S=${WORKDIR}
|
||||
VM_INSTALL_DIR="/opt/vmware"
|
||||
|
||||
pkg_nofetch() {
|
||||
local bundle
|
||||
|
||||
if use x86; then
|
||||
bundle="${MY_P}.i386.bundle"
|
||||
elif use amd64; then
|
||||
bundle="${MY_P}.x86_64.bundle"
|
||||
fi
|
||||
|
||||
einfo "Please download ${bundle}"
|
||||
einfo "from ${HOMEPAGE}"
|
||||
einfo "and place it in ${DISTDIR}"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
vmware-bundle_extract-bundle-component "${DISTDIR}/${A}" vmware-player-app
|
||||
vmware-bundle_extract-bundle-component "${DISTDIR}/${A}" vmware-player-setup
|
||||
vmware-bundle_extract-bundle-component "${DISTDIR}/${A}" vmware-workstation
|
||||
if use vix; then
|
||||
vmware-bundle_extract-bundle-component "${DISTDIR}/${A}" vmware-vix
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
rm -rf "${S}"/vmware-player-app/bin/vmware-modconfig
|
||||
rm -rf "${S}"/vmware-player-app/lib/modules/binary
|
||||
|
||||
# remove superfluous libraries
|
||||
ebegin 'Removing superfluous libraries'
|
||||
cd vmware-player-app/lib/lib || die
|
||||
# exclude OpenSSL from unbundling until the AES-NI patch gets into the tree
|
||||
# see http://forums.gentoo.org/viewtopic-t-835867.html
|
||||
ldconfig -p | sed 's:^\s\+\([^(]*[^( ]\).*=> /.*$:\1:g;t;d' | fgrep -vx 'libcrypto.so.0.9.8
|
||||
libssl.so.0.9.8' | xargs -d'\n' -r rm -rf
|
||||
cd ../../../vmware-workstation/lib/lib || die
|
||||
ldconfig -p | sed 's:^\s\+\([^(]*[^( ]\).*=> /.*$:\1:g;t;d' | fgrep -vx 'libcrypto.so.0.9.8
|
||||
libssl.so.0.9.8' | xargs -d'\n' -r rm -rf
|
||||
eend
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local major_minor_revision=$(get_version_component_range 1-3 "${PV}")
|
||||
local build=$(get_version_component_range 4 "${PV}")
|
||||
|
||||
cd "${S}"/vmware-player-app
|
||||
|
||||
# install the binaries
|
||||
into "${VM_INSTALL_DIR}"
|
||||
dobin bin/*
|
||||
dosbin sbin/*
|
||||
|
||||
# install the libraries
|
||||
insinto "${VM_INSTALL_DIR}"/lib/vmware
|
||||
doins -r lib/*
|
||||
|
||||
# install the ancillaries
|
||||
insinto /usr
|
||||
doins -r share
|
||||
|
||||
# commented out until Portage gets OpenSSL 0.9.8 with AES-NI support
|
||||
# see http://forums.gentoo.org/viewtopic-t-835867.html
|
||||
## these two libraries do not like to load from /usr/lib*
|
||||
#local each ; for each in libcrypto.so.0.9.8 libssl.so.0.9.8 ; do
|
||||
# if [[ ! -f "${VM_INSTALL_DIR}/lib/vmware/lib/${each}" ]] ; then
|
||||
# dosym "/usr/$(get_libdir)/${each}" \
|
||||
# "${VM_INSTALL_DIR}/lib/vmware/lib/${each}/${each}"
|
||||
# fi
|
||||
#done
|
||||
|
||||
# install vmware-config
|
||||
cd "${S}"/vmware-player-setup
|
||||
insinto "${VM_INSTALL_DIR}"/lib/vmware/setup
|
||||
doins vmware-config
|
||||
|
||||
# install vmware-workstation
|
||||
cd "${S}"/vmware-workstation
|
||||
|
||||
# install the binaries
|
||||
into "${VM_INSTALL_DIR}"
|
||||
dobin bin/*
|
||||
|
||||
# install the libraries
|
||||
insinto "${VM_INSTALL_DIR}"/lib/vmware
|
||||
doins -r lib/*
|
||||
|
||||
# install the ancillaries
|
||||
insinto /usr
|
||||
doins -r share
|
||||
|
||||
# install documentation
|
||||
doman man/man1/vmware.1.gz
|
||||
|
||||
if use doc; then
|
||||
dodoc doc/open_source_licenses.txt
|
||||
dodoc doc/vmware-vmci/samples/*
|
||||
fi
|
||||
|
||||
# install vmware-vix
|
||||
if use vix; then
|
||||
cd "${S}"/vmware-vix
|
||||
|
||||
# install the binary
|
||||
into "${VM_INSTALL_DIR}"
|
||||
dobin bin/*
|
||||
|
||||
# install the libraries
|
||||
insinto "${VM_INSTALL_DIR}"/lib/vmware-vix
|
||||
doins -r lib/*
|
||||
|
||||
dosym vmware-vix/libvixAllProducts.so "${VM_INSTALL_DIR}"/lib/libbvixAllProducts.so
|
||||
|
||||
# install headers
|
||||
insinto /usr/include/vmware-vix
|
||||
doins include/*
|
||||
|
||||
if use doc; then
|
||||
dohtml -r doc/*
|
||||
fi
|
||||
fi
|
||||
|
||||
# create symlinks for the various tools
|
||||
local tool ; for tool in vmware vmplayer{,-daemon} \
|
||||
vmware-{acetool,gksu,fuseUI,modconfig{,-console},netcfg,tray,unity-helper} ; do
|
||||
dosym appLoader "${VM_INSTALL_DIR}"/lib/vmware/bin/"${tool}"
|
||||
done
|
||||
dosym "${VM_INSTALL_DIR}"/lib/vmware/bin/vmplayer "${VM_INSTALL_DIR}"/bin/vmplayer
|
||||
dosym "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware "${VM_INSTALL_DIR}"/bin/vmware
|
||||
|
||||
# fix up permissions
|
||||
chmod 0755 "${D}${VM_INSTALL_DIR}"/lib/vmware/{bin/*,lib/wrapper-gtk24.sh,setup/*}
|
||||
chmod 04711 "${D}${VM_INSTALL_DIR}"/sbin/vmware-authd
|
||||
chmod 04711 "${D}${VM_INSTALL_DIR}"/lib/vmware/bin/vmware-vmx*
|
||||
if use vix; then
|
||||
chmod 0755 "${D}${VM_INSTALL_DIR}"/lib/vmware-vix/setup/*
|
||||
fi
|
||||
|
||||
# create the environment
|
||||
local envd="${T}/90vmware"
|
||||
cat > "${envd}" <<-EOF
|
||||
PATH='${VM_INSTALL_DIR}/bin'
|
||||
ROOTPATH='${VM_INSTALL_DIR}/bin'
|
||||
EOF
|
||||
doenvd "${envd}"
|
||||
|
||||
# create the configuration
|
||||
dodir /etc/vmware
|
||||
|
||||
cat > "${D}"/etc/vmware/bootstrap <<-EOF
|
||||
BINDIR='${VM_INSTALL_DIR}/bin'
|
||||
LIBDIR='${VM_INSTALL_DIR}/lib'
|
||||
EOF
|
||||
|
||||
cat > "${D}"/etc/vmware/config <<-EOF
|
||||
bindir = "${VM_INSTALL_DIR}/bin"
|
||||
libdir = "${VM_INSTALL_DIR}/lib/vmware"
|
||||
initscriptdir = "/etc/init.d"
|
||||
authd.fullpath = "${VM_INSTALL_DIR}/sbin/vmware-authd"
|
||||
gksu.rootMethod = "su"
|
||||
VMCI_CONFED = "yes"
|
||||
VMBLOCK_CONFED = "yes"
|
||||
VSOCK_CONFED = "yes"
|
||||
NETWORKING = "yes"
|
||||
player.product.version = "${major_minor_revision}"
|
||||
product.buildNumber = "${build}"
|
||||
product.name = "VMware Workstation"
|
||||
workstation.product.version = "${major_minor_revision}"
|
||||
EOF
|
||||
|
||||
if use vix; then
|
||||
cat >> "${D}"/etc/vmware/config <<-EOF
|
||||
vmware.fullpath = "${VM_INSTALL_DIR}/bin/vmware"
|
||||
vix.libdir = "${VM_INSTALL_DIR}/lib/vmware-vix"
|
||||
vix.config.version = "1"
|
||||
EOF
|
||||
fi
|
||||
|
||||
# install the init.d script
|
||||
local initscript="${T}/vmware.rc"
|
||||
sed -e "s:@@BINDIR@@:${VM_INSTALL_DIR}/bin:g" \
|
||||
"${FILESDIR}/vmware-7.0.rc" > ${initscript}
|
||||
newinitd "${initscript}" vmware
|
||||
|
||||
# fill in variable placeholders
|
||||
sed -e "s:@@LIBCONF_DIR@@:${VM_INSTALL_DIR}/lib/vmware/libconf:g" \
|
||||
-i "${D}${VM_INSTALL_DIR}"/lib/vmware/libconf/etc/{gtk-2.0/{gdk-pixbuf.loaders,gtk.immodules},pango/pango{.modules,rc}}
|
||||
sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmware:g" \
|
||||
-i "${D}/usr/share/applications/${PN}.desktop"
|
||||
sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmplayer:g" \
|
||||
-i "${D}/usr/share/applications/vmware-player.desktop"
|
||||
sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmware-netcfg:g" \
|
||||
-i "${D}/usr/share/applications/vmware-netcfg.desktop"
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
"${VM_INSTALL_DIR}"/bin/vmware-networks --postinstall ${PN},old,new
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fdo-mime_desktop_database_update
|
||||
gnome2_icon_cache_update
|
||||
|
||||
ewarn "/etc/env.d was updated. Please run:"
|
||||
ewarn "env-update && source /etc/profile"
|
||||
ewarn ""
|
||||
ewarn "Before you can use vmware-player, you must configure a default network setup."
|
||||
ewarn "You can do this by running 'emerge --config ${PN}'."
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
einfo "Stopping ${PN} for safe unmerge"
|
||||
/etc/init.d/vmware stop
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
fdo-mime_desktop_database_update
|
||||
gnome2_icon_cache_update
|
||||
}
|
@ -1,483 +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/vmware-workstation/vmware-workstation-9.0.2.1031769.ebuild,v 1.2 2013/06/22 22:44:06 dilfridge Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit eutils versionator fdo-mime gnome2-utils pam vmware-bundle
|
||||
|
||||
MY_PN="VMware-Workstation"
|
||||
MY_PV=$(get_version_component_range 1-3)
|
||||
PV_MINOR=$(get_version_component_range 3)
|
||||
PV_BUILD=$(get_version_component_range 4)
|
||||
MY_P="${MY_PN}-${MY_PV}-${PV_BUILD}"
|
||||
|
||||
DESCRIPTION="Emulate a complete PC on your PC without the usual performance overhead of most emulators"
|
||||
HOMEPAGE="http://www.vmware.com/products/workstation/"
|
||||
BASE_URI="https://softwareupdate.vmware.com/cds/vmw-desktop/ws/${MY_PV}/${PV_BUILD}/linux/core/"
|
||||
SRC_URI="
|
||||
x86? ( ${BASE_URI}${MY_P}.i386.bundle.tar )
|
||||
amd64? ( ${BASE_URI}${MY_P}.x86_64.bundle.tar )
|
||||
"
|
||||
LICENSE="vmware GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64 ~x86"
|
||||
IUSE="cups doc ovftool server vix vmware-tools"
|
||||
RESTRICT="mirror strip"
|
||||
|
||||
# vmware-workstation should not use virtual/libc as this is a
|
||||
# precompiled binary package thats linked to glibc.
|
||||
RDEPEND="dev-cpp/cairomm
|
||||
dev-cpp/glibmm:2
|
||||
dev-cpp/gtkmm:2.4
|
||||
dev-cpp/libgnomecanvasmm
|
||||
dev-cpp/pangomm
|
||||
dev-libs/atk
|
||||
dev-libs/glib:2
|
||||
dev-libs/icu
|
||||
dev-libs/expat
|
||||
dev-libs/libaio
|
||||
dev-libs/libsigc++
|
||||
dev-libs/libxml2
|
||||
=dev-libs/openssl-0.9.8*
|
||||
dev-libs/xmlrpc-c
|
||||
gnome-base/libgnomecanvas
|
||||
gnome-base/libgtop:2
|
||||
gnome-base/librsvg:2
|
||||
gnome-base/orbit
|
||||
media-libs/fontconfig
|
||||
media-libs/freetype
|
||||
media-libs/libart_lgpl
|
||||
=media-libs/libpng-1.2*
|
||||
media-libs/libpng
|
||||
net-misc/curl
|
||||
cups? ( net-print/cups )
|
||||
sys-devel/gcc
|
||||
sys-fs/fuse
|
||||
sys-libs/glibc
|
||||
sys-libs/zlib
|
||||
x11-libs/cairo
|
||||
x11-libs/gtk+:2
|
||||
x11-libs/libgksu
|
||||
x11-libs/libICE
|
||||
x11-libs/libSM
|
||||
x11-libs/libX11
|
||||
x11-libs/libXau
|
||||
x11-libs/libxcb
|
||||
x11-libs/libXcomposite
|
||||
x11-libs/libXcursor
|
||||
x11-libs/libXdamage
|
||||
x11-libs/libXdmcp
|
||||
x11-libs/libXext
|
||||
x11-libs/libXfixes
|
||||
x11-libs/libXft
|
||||
x11-libs/libXi
|
||||
x11-libs/libXinerama
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libXrender
|
||||
x11-libs/libXtst
|
||||
x11-libs/pango
|
||||
x11-libs/startup-notification
|
||||
x11-themes/hicolor-icon-theme
|
||||
!app-emulation/vmware-player"
|
||||
PDEPEND="~app-emulation/vmware-modules-271.${PV_MINOR}
|
||||
vmware-tools? ( app-emulation/vmware-tools )"
|
||||
|
||||
S=${WORKDIR}
|
||||
VM_INSTALL_DIR="/opt/vmware"
|
||||
VM_DATA_STORE_DIR="/var/lib/vmware/Shared VMs"
|
||||
VM_HOSTD_USER="root"
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
local bundle=${A%.tar}
|
||||
local component; for component in \
|
||||
vmware-vmx \
|
||||
vmware-player-app \
|
||||
vmware-player-setup \
|
||||
vmware-workstation \
|
||||
vmware-network-editor \
|
||||
vmware-network-editor-ui \
|
||||
vmware-usbarbitrator \
|
||||
vmware-vprobe
|
||||
do
|
||||
vmware-bundle_extract-bundle-component "${bundle}" "${component}" "${S}"
|
||||
done
|
||||
|
||||
if use server; then
|
||||
vmware-bundle_extract-bundle-component "${bundle}" vmware-workstation-server #"${S}"
|
||||
fi
|
||||
|
||||
if use vix; then
|
||||
vmware-bundle_extract-bundle-component "${bundle}" vmware-vix-core vmware-vix
|
||||
vmware-bundle_extract-bundle-component "${bundle}" vmware-vix-lib-Workstation900andvSphere510 vmware-vix
|
||||
fi
|
||||
if use ovftool; then
|
||||
vmware-bundle_extract-bundle-component "${bundle}" vmware-ovftool
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
rm -f bin/vmware-modconfig
|
||||
rm -rf lib/modules/binary
|
||||
# Bug 459566
|
||||
mv lib/libvmware-netcfg.so lib/lib/
|
||||
|
||||
if use server; then
|
||||
rm -f vmware-workstation-server/bin/{openssl,configure-hostd.sh}
|
||||
fi
|
||||
|
||||
find "${S}" -name '*.a' -delete
|
||||
|
||||
# clean_bundled_libs
|
||||
}
|
||||
|
||||
clean_bundled_libs() {
|
||||
ebegin 'Removing superfluous libraries'
|
||||
cd lib/lib || die
|
||||
ldconfig -p | \
|
||||
sed 's:^\s\+\([^(]*[^( ]\).*=> /.*$:\1:g;t;d' | \
|
||||
fgrep -vx 'libcrypto.so.0.9.8
|
||||
libssl.so.0.9.8i
|
||||
libgcr.so.0
|
||||
libglib-2.0.so.0' |
|
||||
xargs -d'\n' -r rm -rf
|
||||
eend
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local major_minor=$(get_version_component_range 1-2 "${PV}")
|
||||
local major_minor_revision=$(get_version_component_range 1-3 "${PV}")
|
||||
local build=$(get_version_component_range 4 "${PV}")
|
||||
|
||||
# install the binaries
|
||||
into "${VM_INSTALL_DIR}"
|
||||
dobin bin/*
|
||||
|
||||
# install the libraries
|
||||
insinto "${VM_INSTALL_DIR}"/lib/vmware
|
||||
doins -r lib/*
|
||||
|
||||
# Bug 432918
|
||||
dosym "${VM_INSTALL_DIR}"/lib/vmware/lib/libcrypto.so.0.9.8/libcrypto.so.0.9.8 \
|
||||
"${VM_INSTALL_DIR}"/lib/vmware/lib/libvmwarebase.so.0/libcrypto.so.0.9.8
|
||||
dosym "${VM_INSTALL_DIR}"/lib/vmware/lib/libssl.so.0.9.8/libssl.so.0.9.8 \
|
||||
"${VM_INSTALL_DIR}"/lib/vmware/lib/libvmwarebase.so.0/libssl.so.0.9.8
|
||||
|
||||
# install the ancillaries
|
||||
insinto /usr
|
||||
doins -r share
|
||||
|
||||
if use cups; then
|
||||
exeinto $(cups-config --serverbin)/filter
|
||||
doexe extras/thnucups
|
||||
|
||||
insinto /etc/cups
|
||||
doins -r etc/cups/*
|
||||
fi
|
||||
|
||||
insinto /etc/xdg
|
||||
doins -r etc/xdg/*
|
||||
|
||||
# install documentation
|
||||
doman man/man1/vmware.1.gz
|
||||
|
||||
if use doc; then
|
||||
dodoc doc/*
|
||||
fi
|
||||
|
||||
insinto "${VM_INSTALL_DIR}"/lib/vmware/setup
|
||||
doins vmware-config
|
||||
|
||||
# install vmware workstation server
|
||||
if use server; then
|
||||
dosbin sbin/*
|
||||
|
||||
cd "${S}"/vmware-workstation-server
|
||||
|
||||
# install binaries
|
||||
into "${VM_INSTALL_DIR}"/lib/vmware
|
||||
dobin bin/*
|
||||
|
||||
dobin "${FILESDIR}"/configure-hostd.sh
|
||||
|
||||
dobin "${FILESDIR}"/configure-hostd.sh
|
||||
|
||||
# install the libraries
|
||||
insinto "${VM_INSTALL_DIR}"/lib/vmware/lib
|
||||
doins -r lib/*
|
||||
|
||||
into "${VM_INSTALL_DIR}"
|
||||
for tool in vmware-{hostd,wssc-adminTool} ; do
|
||||
cat > "${T}/${tool}" <<-EOF
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
. /etc/vmware/bootstrap
|
||||
|
||||
exec "${VM_INSTALL_DIR}/lib/vmware/lib/wrapper-gtk24.sh" \\
|
||||
"${VM_INSTALL_DIR}/lib/vmware/lib" \\
|
||||
"${VM_INSTALL_DIR}/lib/vmware/bin/${tool}" \\
|
||||
"${VM_INSTALL_DIR}/lib/vmware/libconf" "\$@"
|
||||
EOF
|
||||
dobin "${T}/${tool}"
|
||||
done
|
||||
|
||||
insinto "${VM_INSTALL_DIR}"/lib/vmware
|
||||
doins -r hostd
|
||||
|
||||
# create the configuration
|
||||
insinto /etc/vmware/hostd
|
||||
doins -r config/etc/vmware/hostd/*
|
||||
doins -r etc/vmware/hostd/*
|
||||
|
||||
insinto /etc/vmware/ssl
|
||||
doins etc/vmware/ssl/*
|
||||
|
||||
# pam
|
||||
pamd_mimic_system vmware-authd auth account
|
||||
|
||||
# create directory for shared virtual machines.
|
||||
keepdir "${VM_DATA_STORE_DIR}"
|
||||
keepdir /var/log/vmware
|
||||
fi
|
||||
|
||||
# install vmware-vix
|
||||
if use vix; then
|
||||
cd "${S}"/vmware-vix
|
||||
|
||||
# install the binary
|
||||
into "${VM_INSTALL_DIR}"
|
||||
dobin bin/*
|
||||
|
||||
# install the libraries
|
||||
insinto "${VM_INSTALL_DIR}"/lib/vmware-vix
|
||||
doins -r lib/*
|
||||
|
||||
dosym vmware-vix/libvixAllProducts.so "${VM_INSTALL_DIR}"/lib/libbvixAllProducts.so
|
||||
|
||||
# install headers
|
||||
insinto /usr/include/vmware-vix
|
||||
doins include/*
|
||||
|
||||
if use doc; then
|
||||
dohtml -r doc/*
|
||||
fi
|
||||
fi
|
||||
|
||||
# install ovftool
|
||||
if use ovftool; then
|
||||
cd "${S}"
|
||||
|
||||
insinto "${VM_INSTALL_DIR}"/lib/vmware-ovftool
|
||||
doins -r vmware-ovftool/*
|
||||
|
||||
chmod 0755 "${D}${VM_INSTALL_DIR}"/lib/vmware-ovftool/{ovftool,ovftool.bin}
|
||||
dosym "${D}${VM_INSTALL_DIR}"/lib/vmware-ovftool/ovftool "${VM_INSTALL_DIR}"/bin/ovftool
|
||||
fi
|
||||
|
||||
# create symlinks for the various tools
|
||||
local tool ; for tool in thnuclnt vmware vmplayer{,-daemon} \
|
||||
vmware-{acetool,enter-serial,gksu,fuseUI,modconfig{,-console},netcfg,tray,unity-helper} ; do
|
||||
dosym appLoader "${VM_INSTALL_DIR}"/lib/vmware/bin/"${tool}"
|
||||
done
|
||||
dosym "${VM_INSTALL_DIR}"/lib/vmware/bin/vmplayer "${VM_INSTALL_DIR}"/bin/vmplayer
|
||||
dosym "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware "${VM_INSTALL_DIR}"/bin/vmware
|
||||
dosym "${VM_INSTALL_DIR}"/lib/vmware/icu /etc/vmware/icu
|
||||
|
||||
# fix permissions
|
||||
fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/bin/{appLoader,fusermount,launcher.sh,mkisofs,vmware-remotemks}
|
||||
fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/lib/{wrapper-gtk24.sh,libgksu2.so.0/gksu-run-helper}
|
||||
fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/setup/vmware-config
|
||||
fperms 4711 "${VM_INSTALL_DIR}"/bin/vmware-mount
|
||||
fperms 4711 "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware-vmx{,-debug,-stats}
|
||||
if use server; then
|
||||
fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware-{hostd,wssc-adminTool}
|
||||
fperms 4711 "${VM_INSTALL_DIR}"/sbin/vmware-authd
|
||||
fperms 1777 "${VM_DATA_STORE_DIR}"
|
||||
fi
|
||||
if use vix; then
|
||||
fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware-vix/setup/vmware-config
|
||||
fi
|
||||
|
||||
# create the environment
|
||||
local envd="${T}/90vmware"
|
||||
cat > "${envd}" <<-EOF
|
||||
PATH='${VM_INSTALL_DIR}/bin'
|
||||
ROOTPATH='${VM_INSTALL_DIR}/bin'
|
||||
EOF
|
||||
doenvd "${envd}"
|
||||
|
||||
# create the configuration
|
||||
dodir /etc/vmware
|
||||
|
||||
cat > "${D}"/etc/vmware/bootstrap <<-EOF
|
||||
BINDIR='${VM_INSTALL_DIR}/bin'
|
||||
LIBDIR='${VM_INSTALL_DIR}/lib'
|
||||
EOF
|
||||
|
||||
cat > "${D}"/etc/vmware/config <<-EOF
|
||||
bindir = "${VM_INSTALL_DIR}/bin"
|
||||
libdir = "${VM_INSTALL_DIR}/lib/vmware"
|
||||
initscriptdir = "/etc/init.d"
|
||||
authd.fullpath = "${VM_INSTALL_DIR}/sbin/vmware-authd"
|
||||
gksu.rootMethod = "su"
|
||||
VMCI_CONFED = "yes"
|
||||
VMBLOCK_CONFED = "yes"
|
||||
VSOCK_CONFED = "yes"
|
||||
NETWORKING = "yes"
|
||||
player.product.version = "${major_minor_revision}"
|
||||
product.version = "${major_minor_revision}"
|
||||
product.buildNumber = "${build}"
|
||||
product.name = "VMware Workstation"
|
||||
workstation.product.version = "${major_minor_revision}"
|
||||
EOF
|
||||
|
||||
if use vix; then
|
||||
cat >> "${D}"/etc/vmware/config <<-EOF
|
||||
vmware.fullpath = "${VM_INSTALL_DIR}/bin/vmware"
|
||||
vix.libdir = "${VM_INSTALL_DIR}/lib/vmware-vix"
|
||||
vix.config.version = "1"
|
||||
EOF
|
||||
fi
|
||||
|
||||
if use server; then
|
||||
cat >> "${D}"/etc/vmware/config <<-EOF
|
||||
authd.client.port = "902"
|
||||
authd.proxy.nfc = "vmware-hostd:ha-nfc"
|
||||
authd.soapserver = "TRUE"
|
||||
EOF
|
||||
fi
|
||||
|
||||
# install the init.d script
|
||||
local initscript="${T}/vmware.rc"
|
||||
sed -e "s:@@BINDIR@@:${VM_INSTALL_DIR}/bin:g" \
|
||||
"${FILESDIR}/vmware-${major_minor}.rc" > ${initscript}
|
||||
newinitd "${initscript}" vmware
|
||||
|
||||
if use server; then
|
||||
# install the init.d script
|
||||
local initscript="${T}/vmware-workstation-server.rc"
|
||||
sed -e "s:@@ETCDIR@@:/etc/vmware:g" \
|
||||
-e "s:@@PREFIX@@:${VM_INSTALL_DIR}:g" \
|
||||
-e "s:@@BINDIR@@:${VM_INSTALL_DIR}/bin:g" \
|
||||
-e "s:@@LIBDIR@@:${VM_INSTALL_DIR}/lib/vmware:g" \
|
||||
"${FILESDIR}/vmware-server-${major_minor}.rc" > ${initscript}
|
||||
newinitd "${initscript}" vmware-workstation-server
|
||||
fi
|
||||
|
||||
# fill in variable placeholders
|
||||
sed -e "s:@@LIBCONF_DIR@@:${VM_INSTALL_DIR}/lib/vmware/libconf:g" \
|
||||
-i "${D}${VM_INSTALL_DIR}"/lib/vmware/libconf/etc/{gtk-2.0/{gdk-pixbuf.loaders,gtk.immodules},pango/pango{.modules,rc}}
|
||||
sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmware:g" \
|
||||
-e "/^Encoding/d" \
|
||||
-i "${D}/usr/share/applications/${PN}.desktop"
|
||||
sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmplayer:g" \
|
||||
-e "/^Encoding/d" \
|
||||
-i "${D}/usr/share/applications/vmware-player.desktop"
|
||||
sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmware-netcfg:g" \
|
||||
-e "/^Encoding/d" \
|
||||
-i "${D}/usr/share/applications/vmware-netcfg.desktop"
|
||||
|
||||
if use server; then
|
||||
# Configuration for vmware-workstation-server
|
||||
local hostdUser="${VM_HOSTD_USER:-root}"
|
||||
sed -e "/ACEDataUser/s:root:${hostdUser}:g" \
|
||||
-i "${D}/etc/vmware/hostd/authorization.xml" || die
|
||||
|
||||
# Shared VMs Path: [standard].
|
||||
sed -e "s:##{DS_NAME}##:standard:g" \
|
||||
-e "s:##{DS_PATH}##:${VM_DATA_STORE_DIR}:g" \
|
||||
-i "${D}/etc/vmware/hostd/datastores.xml" || die
|
||||
|
||||
sed -e "s:##{HTTP_PORT}##:-1:g" \
|
||||
-e "s:##{HTTPS_PORT}##:443:g" \
|
||||
-e "s:##{PIPE_PREFIX}##:/var/run/vmware/:g" \
|
||||
-i "${D}/etc/vmware/hostd/proxy.xml" || die
|
||||
|
||||
# See vmware-workstation-server.py for more details.
|
||||
sed -e "s:##{BUILD_CFGDIR}##:/etc/vmware/hostd/:g" \
|
||||
-e "s:##{CFGALTDIR}##:/etc/vmware/hostd/:g" \
|
||||
-e "s:##{CFGDIR}##:/etc/vmware/:g" \
|
||||
-e "s:##{ENABLE_AUTH}##:true:g" \
|
||||
-e "s:##{HOSTDMODE}##:ws:g" \
|
||||
-e "s:##{HOSTD_CFGDIR}##:/etc/vmware/hostd/:g" \
|
||||
-e "s:##{HOSTD_MOCKUP}##:false:g" \
|
||||
-e "s:##{LIBDIR}##:${VM_INSTALL_DIR}/lib/vmware:g" \
|
||||
-e "s:##{LIBDIR_INSTALLED}##:${VM_INSTALL_DIR}/lib/vmware/:g" \
|
||||
-e "s:##{LOGDIR}##:/var/log/vmware/:g" \
|
||||
-e "s:##{LOGLEVEL}##:verbose:g" \
|
||||
-e "s:##{MOCKUP}##:mockup-host-config.xml:g" \
|
||||
-e "s:##{PLUGINDIR}##:./:g" \
|
||||
-e "s:##{SHLIB_PREFIX}##:lib:g" \
|
||||
-e "s:##{SHLIB_SUFFIX}##:.so:g" \
|
||||
-e "s:##{USE_BLKLISTSVC}##:false:g" \
|
||||
-e "s:##{USE_CBRCSVC}##:false:g" \
|
||||
-e "s:##{USE_CIMSVC}##:false:g" \
|
||||
-e "s:##{USE_DIRECTORYSVC}##:false:g" \
|
||||
-e "s:##{USE_DIRECTORYSVC_MOCKUP}##:false:g" \
|
||||
-e "s:##{USE_DYNAMIC_PLUGIN_LOADING}##:false:g" \
|
||||
-e "s:##{USE_DYNAMO}##:false:g" \
|
||||
-e "s:##{USE_DYNSVC}##:false:g" \
|
||||
-e "s:##{USE_GUESTSVC}##:false:g" \
|
||||
-e "s:##{USE_HBRSVC}##:false:g" \
|
||||
-e "s:##{USE_HBRSVC_MOCKUP}##:false:g" \
|
||||
-e "s:##{USE_HOSTSVC_MOCKUP}##:false:g" \
|
||||
-e "s:##{USE_HTTPNFCSVC}##:false:g" \
|
||||
-e "s:##{USE_HTTPNFCSVC_MOCKUP}##:false:g" \
|
||||
-e "s:##{USE_LICENSESVC_MOCKUP}##:false:g" \
|
||||
-e "s:##{USE_NFCSVC}##:true:g" \
|
||||
-e "s:##{USE_NFCSVC_MOCKUP}##:false:g" \
|
||||
-e "s:##{USE_OVFMGRSVC}##:true:g" \
|
||||
-e "s:##{USE_PARTITIONSVC}##:false:g" \
|
||||
-e "s:##{USE_SECURESOAP}##:false:g" \
|
||||
-e "s:##{USE_SNMPSVC}##:false:g" \
|
||||
-e "s:##{USE_SOLO_MOCKUP}##:false:g" \
|
||||
-e "s:##{USE_STATSSVC_MOCKUP}##:false:g" \
|
||||
-e "s:##{USE_VCSVC_MOCKUP}##:false:g" \
|
||||
-e "s:##{USE_VDISKSVC}##:false:g" \
|
||||
-e "s:##{USE_VDISKSVC_MOCKUP}##:false:g" \
|
||||
-e "s:##{USE_VMSVC_MOCKUP}##:false:g" \
|
||||
-e "s:##{VM_INVENTORY}##:vmInventory.xml:g" \
|
||||
-e "s:##{VM_RESOURCES}##:vmResources.xml:g" \
|
||||
-e "s:##{WEBSERVER_PORT_ENTRY}##::g" \
|
||||
-e "s:##{WORKINGDIR}##:./:g" \
|
||||
-i "${D}/etc/vmware/hostd/config.xml" || die
|
||||
|
||||
sed -e "s:##{ENV_LOCATION}##:/etc/vmware/hostd/env/:g" \
|
||||
-i "${D}/etc/vmware/hostd/environments.xml" || die
|
||||
|
||||
# @@VICLIENT_URL@@=XXX
|
||||
sed -e "s:@@AUTHD_PORT@@:902:g" \
|
||||
-i "${D}${VM_INSTALL_DIR}/lib/vmware/hostd/docroot/client/clients.xml" || die
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
"${VM_INSTALL_DIR}"/bin/vmware-networks --postinstall ${PN},old,new
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fdo-mime_desktop_database_update
|
||||
gnome2_icon_cache_update
|
||||
|
||||
ewarn "/etc/env.d was updated. Please run:"
|
||||
ewarn "env-update && source /etc/profile"
|
||||
ewarn ""
|
||||
ewarn "Before you can use vmware workstation, you must configure a default network setup."
|
||||
ewarn "You can do this by running 'emerge --config ${PN}'."
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
einfo "Stopping ${PN} for safe unmerge"
|
||||
/etc/init.d/vmware stop
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
fdo-mime_desktop_database_update
|
||||
gnome2_icon_cache_update
|
||||
}
|
@ -1,4 +1 @@
|
||||
DIST cdb-0.75.tar.gz 54162 SHA256 1919577799a50c080a8a05a1cbfa5fa7e7abc823d8d7df2eeb181e624b7952c5 SHA512 6faeab91a77457348b58f685e81000b83fb609691317198a06284c5c62dee1e4d6138f90be1e727021f279d740169c175a21b23c96adb39a654e3f7fafdf36c0 WHIRLPOOL 51e1783c3f5c7c44846e370075ca53593cf5cbf82bcdf39e3882b49205058844d7403c571ce007eaba987b23848dcc87e3c4ad3cc7b622389bb2f532bafb4912
|
||||
DIST multiskkserv-20020201.tar.bz2 159412 SHA256 3bec276a3cd1831b9075eb61510f10b84c4605448bac4af7fa4d8b3af0612347 SHA512 8c4ee031f91ff1d12f07113fc8cc7f2660ce5db23664ebde72ef25692cf0bd069b88ac4623f148bdb7e26ef940d048db7c76e663cf79c7398a2fdfca76daad93 WHIRLPOOL 5f363a3fa348ea02e11d6941649fc4cdd03e704bf5a02ca561c4ef8c3e42e6c4abf78ca95c811cd3ad3c80add98b2848121cfcd253076efefc3eb7616b071055
|
||||
DIST multiskkserv-20051220.tar.bz2 244023 SHA256 c77ec5ec597cc6ff8f40fb63dcf4c470f61d2530a87846d8e4d6466eb5a490ec SHA512 1810e88b670d5503949a01f12486d24cfac9ed5aeb479e156b6fa6482b3cc5951546ca0d94b6e122fefce77fbe16efb32a43c4472c9e478a105d026149acee94 WHIRLPOOL ca3a8f28c7b80fe65a2b9bd9055001d5652ebba2ec2643a3d21e9e8045e5fbf4b6c82a8bcd4843e32f842998de876e9a446a967fd1dc1226243f80abc428189f
|
||||
DIST multiskkserv-20100128.tar.xz 250004 SHA256 e216026891af86b5ce17d5103bdce25d7aac923e53306728fafa7ed7863681bc SHA512 27409600f549317dd2e2fcd0f0a35406a5d445c74e0ba266ed3c19cec849b6d508a30edd65bf72931b0222f003d934a802e5c3c979d5b52ab30da473cabbf5a5 WHIRLPOOL 8cc5ffb53b143b936462bac7b1d2a4021744199f3b151127fb22c1706ca22f25bcd8ccdb4a2b0f7b4208d488c475e8661daff4b16c3fef65b7d7519e224ca327
|
||||
|
@ -1,11 +0,0 @@
|
||||
--- error.h.orig 2003-03-29 04:18:26.000000000 -0800
|
||||
+++ error.h 2003-03-29 04:19:00.000000000 -0800
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef ERROR_H
|
||||
#define ERROR_H
|
||||
|
||||
-extern int errno;
|
||||
+#include <errno.h>
|
||||
|
||||
extern int error_intr;
|
||||
extern int error_nomem;
|
@ -1,11 +0,0 @@
|
||||
--- multiskkserv-ctl.c.orig 2002-01-13 06:10:13.000000000 +0900
|
||||
+++ multiskkserv-ctl.c 2004-11-23 18:19:27.670353257 +0900
|
||||
@@ -168,7 +168,7 @@
|
||||
char rbuf[SKKSERV_REQUEST_SIZE];
|
||||
|
||||
if ((sock = socket_connect(remote, &sstr, port, (char *)SKKSERV_SERVICE, family)) < 0) {
|
||||
- fprintf(stderr, __FUNCTION__ ": cannot make a connection.\n");
|
||||
+ fprintf(stderr, "%s: cannot make a connection.\n", __FUNCTION__);
|
||||
return;
|
||||
}
|
||||
|
@ -1,70 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-i18n/multiskkserv/multiskkserv-20020201.ebuild,v 1.16 2011/04/13 15:17:32 ulm Exp $
|
||||
|
||||
EAPI="2"
|
||||
|
||||
inherit eutils fixheadtails
|
||||
|
||||
CDB_PV=0.75
|
||||
CDB_PN=cdb
|
||||
CDB_P=${CDB_PN}-${CDB_PV}
|
||||
|
||||
DESCRIPTION="SKK server that handles multiple dictionaries"
|
||||
HOMEPAGE="http://www3.big.or.jp/~sian/linux/products/"
|
||||
SRC_URI="http://www3.big.or.jp/~sian/linux/products/${P}.tar.bz2
|
||||
http://cr.yp.to/cdb/${CDB_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="ppc x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
|| (
|
||||
>=app-i18n/skk-jisyo-200705[cdb]
|
||||
app-i18n/skk-jisyo-cdb
|
||||
)"
|
||||
|
||||
src_prepare() {
|
||||
cd "${WORKDIR}/${CDB_P}" || die
|
||||
epatch "${FILESDIR}/${CDB_P}-errno.diff"
|
||||
ht_fix_all
|
||||
|
||||
cd "${S}" || die
|
||||
ht_fix_all
|
||||
|
||||
cd "${S}/src" || die
|
||||
epatch "${FILESDIR}/${P}-gcc34.diff"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
cd "${WORKDIR}/${CDB_P}"
|
||||
emake || die
|
||||
cd - || die
|
||||
|
||||
cd /usr/share/skk || die
|
||||
echo "# Available SKK-JISYO files are:" >> "${S}/multiskkserv.conf"
|
||||
for i in *.cdb ; do
|
||||
echo "# ${i}" >> "${S}/multiskkserv.conf"
|
||||
done
|
||||
cd -
|
||||
|
||||
econf --with-cdb="${WORKDIR}/${CDB_P}" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die
|
||||
|
||||
newconfd "${FILESDIR}/multiskkserv.conf" multiskkserv || die
|
||||
|
||||
newinitd "${FILESDIR}/multiskkserv.initd" multiskkserv || die
|
||||
|
||||
dodoc AUTHORS ChangeLog INSTALL NEWS README* || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "By default, multiskkserv will look up only SKK-JISYO.L."
|
||||
elog "If you want to use more dictionaries,"
|
||||
elog "edit /etc/conf.d/multiskkserv manually."
|
||||
}
|
@ -1,45 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-i18n/multiskkserv/multiskkserv-20051220.ebuild,v 1.5 2011/04/13 15:17:32 ulm Exp $
|
||||
|
||||
EAPI="2"
|
||||
|
||||
inherit eutils fixheadtails
|
||||
|
||||
DESCRIPTION="SKK server that handles multiple dictionaries"
|
||||
HOMEPAGE="http://www3.big.or.jp/~sian/linux/products/"
|
||||
SRC_URI="http://www3.big.or.jp/~sian/linux/products/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-db/cdb"
|
||||
RDEPEND="|| (
|
||||
>=app-i18n/skk-jisyo-200705[cdb]
|
||||
app-i18n/skk-jisyo-cdb
|
||||
)"
|
||||
|
||||
src_prepare() {
|
||||
ht_fix_all
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf --with-cdb=yes || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die
|
||||
|
||||
newconfd "${FILESDIR}"/multiskkserv.conf multiskkserv || die
|
||||
newinitd "${FILESDIR}"/multiskkserv.initd multiskkserv || die
|
||||
|
||||
dodoc AUTHORS ChangeLog NEWS README* || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "By default, multiskkserv will look up only SKK-JISYO.L.cdb."
|
||||
elog "If you want to use more dictionaries,"
|
||||
elog "edit /etc/conf.d/multiskkserv manually."
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST anki-2.0.12.tgz 3074413 SHA256 f9c6ff6393efde64591ce73baa808e8628c2c4e905de5e7aebfeba9787e68cdd SHA512 d251d2af5235e71371e12c7908c3d7813d71ef630e8e48dc924de03073daebc42724bc8d58b8bc9fedf12d83aad5a2789b983f0b3d0e9e1317bbf1df3f9596e0 WHIRLPOOL 1efede0ea52faebbc8cc0b1008cae861835d7a16ecdcd2971ed0d36bdbee1dca0ab120533412d17744e82d1b85e187d0df53e287ca8f94a1ea6cf20b5c59d337
|
||||
DIST anki-2.0.14.tgz 3148810 SHA256 5ef027808693e28eee824343df5b1a0a7fdfa98ef74d2f0d7402d8858e88fc9c SHA512 75e30df515f1eaf681e38d14236ebc5ece91673dcc3f92cc7cfc34a021bca37608a9d8123d6b2e45e16174d350523133e1086a2068ad99df8241094cb4bd1f2e WHIRLPOOL 6c54a71f00955d0f7e627a35a3ad0d2653e123966439c4de4d215b0a93db1d48ed66d81032beb79f169c8a933bf12bac8a66707cddb96cb4fbddd039d00f89a1
|
||||
DIST anki-2.0.15.tgz 3155764 SHA256 bc91a5d9e6d977b10be7bd600a83cd33da88c1ef3a4be4c5851f1c45d0ef6e09 SHA512 d91ee6536560c476cf9a5dbf543a975d8a97cc185cf0d995a12f67d35de3c368f832d8698b245f8a4b8652775063aa20bb8099b5cdf96d83c717b12b64d5b690 WHIRLPOOL 83cbe4d83cccccab17d922152219846d11a26f6c1b19979f98cdbec02dc5274a9eeaef02fd2fa455de7fcc056f608d2ba118718df5c625b9747ad900a8d53173
|
||||
|
@ -0,0 +1,70 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/anki/anki-2.0.15.ebuild,v 1.1 2013/10/23 14:57:28 tomka Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_6 python2_7 )
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
|
||||
inherit eutils python-single-r1
|
||||
|
||||
DESCRIPTION="A spaced-repetition memory training program (flash cards)"
|
||||
HOMEPAGE="http://ichi2.net/anki/"
|
||||
SRC_URI="http://ankisrs.net/download/mirror/${P}.tgz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="latex +recording +sound"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
dev-python/PyQt4[X,svg,webkit]
|
||||
>=dev-python/httplib2-0.7.4
|
||||
dev-python/beautifulsoup:python-2
|
||||
dev-python/send2trash
|
||||
recording? ( media-sound/lame
|
||||
>=dev-python/pyaudio-0.2.4 )
|
||||
sound? ( media-video/mplayer )
|
||||
latex? ( app-text/texlive
|
||||
app-text/dvipng )"
|
||||
DEPEND=""
|
||||
|
||||
pkg_setup(){
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
rm -r thirdparty || die
|
||||
sed -i -e "s/suppressUpdate=False/suppressUpdate=True/" \
|
||||
aqt/profiles.py
|
||||
}
|
||||
|
||||
# Nothing to configure or compile
|
||||
src_configure() {
|
||||
true;
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
true;
|
||||
}
|
||||
|
||||
src_install() {
|
||||
doicon ${PN}.png
|
||||
domenu ${PN}.desktop
|
||||
doman ${PN}.1
|
||||
|
||||
dodoc README README.development
|
||||
python_domodule aqt anki
|
||||
python_doscript anki/anki
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if has_version "<app-misc/anki-2" ; then
|
||||
elog "Anki 2 is a rewrite of Anki with many new features and"
|
||||
elog "a new database format. On the first run your decks are"
|
||||
elog "converted to the new format and a backup of your Anki-1"
|
||||
elog "decks is created. Please read the following:"
|
||||
elog "http://ankisrs.net/anki2.html"
|
||||
fi
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST case-insensitive-1.0.0.2.tar.gz 4803 SHA256 c2952ea7e2fe052c5f8fc07d2cded328c50cb3282006d9a276d7f8101eff8c85 SHA512 101ab558b4359da40320293c5ffafaf2f69bf9289ea0fde1ea9775847ef7e31959b71c2c86c7d150d1ed6e0c71209c10d7c83bd416e170f233fad31f81ff7e7f WHIRLPOOL a0b3ee9a02b66290f4d5b94b11c90927d9dc22692ae1ffc1b78d69acb40e6997a25910a3673c550d9057db7d4b6f5d9169c9c40eea7411c1aa639f289420e7f1
|
||||
DIST case-insensitive-1.1.0.1.tar.gz 5186 SHA256 f7aaef113aba83ab594b3f484e41740c7dae6ee0ba068ed8d1232394ef6c93c3 SHA512 0721c55008ea62121d41c0dc2685b115322cee8c98332b807a4a6bdb08804b356170fd99474e566ba52a1c6147ce07340ae0b9de9cc18939ef12bb8a693a2b1c WHIRLPOOL 0a88bb7f37a366227097d6373fb80853131445b3721fa80bc8a1b61aafe1fc7dfaef2217afc56e035d6eb9702e04894c64ccb08465adc3a0dd9d54f09bd89b68
|
||||
DIST case-insensitive-1.1.tar.gz 5185 SHA256 9296f67c72c6597de8619c486808f4bd4b49547ac51e84343a732d481b6633d2 SHA512 091a5137cf3fdb94de73ea7000e06163233a3290085b12ee1a9686b2df28c977d347663c5f2a62ed724eb93a98b09e25c8fb48911031eb4ae4e9d5fd4455d3fb WHIRLPOOL 822cf0a62c647497610c406006f8b287a32216106edd8797a5e23b13f7e01707bd47d4f8f6c416c7fa1877810d127f49bb8adfa2ebd741739fc1ecbd22c3ab2c
|
||||
|
@ -0,0 +1,37 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/case-insensitive/case-insensitive-1.1.0.1.ebuild,v 1.1 2013/10/23 05:05:54 gienah Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
# ebuild generated by hackport 0.3.4.9999
|
||||
|
||||
CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
|
||||
inherit haskell-cabal
|
||||
|
||||
DESCRIPTION="Case insensitive string comparison"
|
||||
HOMEPAGE="https://github.com/basvandijk/case-insensitive"
|
||||
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=dev-haskell/deepseq-1.1:=[profile?] <dev-haskell/deepseq-1.4:=[profile?]
|
||||
>=dev-haskell/hashable-1.0:=[profile?] <dev-haskell/hashable-1.3:=[profile?]
|
||||
>=dev-haskell/text-0.3:=[profile?] <dev-haskell/text-0.12:=[profile?]
|
||||
>=dev-lang/ghc-6.10.4:=
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-haskell/cabal-1.8
|
||||
test? ( >=dev-haskell/hunit-1.2.2 <dev-haskell/hunit-1.3
|
||||
>=dev-haskell/test-framework-0.2.4 <dev-haskell/test-framework-0.9
|
||||
>=dev-haskell/test-framework-hunit-0.2.4 <dev-haskell/test-framework-hunit-0.4 )
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
cabal_chdeps \
|
||||
'base >= 3 && < 4.8' 'base >= 3' \
|
||||
'base >= 3 && < 4.8' 'base >= 3'
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/monad-control/monad-control-0.3.2.2.ebuild,v 1.1 2013/10/23 05:07:09 gienah Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
# ebuild generated by hackport 0.3.4.9999
|
||||
|
||||
CABAL_FEATURES="lib profile haddock hoogle hscolour"
|
||||
inherit haskell-cabal
|
||||
|
||||
DESCRIPTION="Lift control operations, like exception catching, through monad transformers"
|
||||
HOMEPAGE="https://github.com/basvandijk/monad-control"
|
||||
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux"
|
||||
IUSE="+instancest"
|
||||
|
||||
RDEPEND=">=dev-haskell/base-unicode-symbols-0.1.1:=[profile?] <dev-haskell/base-unicode-symbols-0.3:=[profile?]
|
||||
>=dev-haskell/transformers-0.2:=[profile?] <dev-haskell/transformers-0.4:=[profile?]
|
||||
>=dev-haskell/transformers-base-0.4.1:=[profile?] <dev-haskell/transformers-base-0.5:=[profile?]
|
||||
>=dev-lang/ghc-6.10.4:=
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-haskell/cabal-1.6.0.3
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
haskell-cabal_src_configure \
|
||||
$(cabal_flag instancest instancest)
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST path-pieces-0.1.2.tar.gz 2485 SHA256 4aada5c3651017f28f0f9676f9b79868aba8b23dc1991d0d7252b8802952bab3 SHA512 19e9a1643c885cac702af8cbb9ccb5fa3cc65fea6a6951fe72da808920451b4373dc64f9c32b6a753898ee2dd3a273daa23d2544ef50e6350142ebaee48f652d WHIRLPOOL fcf77b788295f3800d92849f09581c80baa958ed52cef8e9d91398b43d0a21b5cd745b5d580abfd5aababec05e5150ba7271a203ab81c7bac3cf4a925459bebb
|
||||
DIST path-pieces-0.1.3.tar.gz 2478 SHA256 94ec4090356a515d7cec484b41f5730e920d0165b700fddb6dfa87af989ba90f SHA512 3da1665db26b9c4a0a20e0a55368f8fcad7bed0116211c00006023b414c9d5378df0401d78107d9a4fbc06bf9d6efff0059a651cd691dd67df5c09b871326bd2 WHIRLPOOL f906d58bcf891b876b47bc058f1951388e43a389a195e84d744905e5736b4863896fc1ad3cbae733c4805dd42120c0c48b33e6b50828e561108bf8c88782ab68
|
||||
|
@ -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-haskell/path-pieces/path-pieces-0.1.3.ebuild,v 1.1 2013/10/23 05:08:11 gienah Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
# ebuild generated by hackport 0.3.4.9999
|
||||
|
||||
CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
|
||||
inherit haskell-cabal
|
||||
|
||||
DESCRIPTION="Components of paths."
|
||||
HOMEPAGE="http://hackage.haskell.org/package/path-pieces"
|
||||
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=dev-haskell/text-0.5:=[profile?] <dev-haskell/text-0.12:=[profile?]
|
||||
>=dev-lang/ghc-6.12.1:=
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-haskell/cabal-1.8.0.2
|
||||
test? ( >=dev-haskell/hspec-1.3
|
||||
dev-haskell/hunit
|
||||
dev-haskell/quickcheck )
|
||||
"
|
@ -0,0 +1 @@
|
||||
DIST glassfish-ejb-api-3.2.tar.xz 37052 SHA256 99ca1715de72ca845d371ea80734ce8de649ec45b8a5cc43d856c74cdd900cc8 SHA512 1692bbff05242b0af5141b35151ff65f029e19f45c5dac07ed9b706635e3f42d8d512819f38a49b564c9dee51be33c36fb871ea5267000536a0fb1e1b5d6a00a WHIRLPOOL eab989e055f6befcff812ab52f46a2855ddcd80bdbe90f2737bf4b9d5072cdf609dcb53a06a4330918afe7bb13bc970e04ba28e84d060ada65350bdcfa6787e3
|
@ -0,0 +1,39 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/glassfish-ejb-api/glassfish-ejb-api-3.2.ebuild,v 1.2 2013/10/23 17:50:52 tomwij Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
TOMEE_PV="1.5.2"
|
||||
|
||||
DESCRIPTION="Project GlassFish Enterprise JavaBean API"
|
||||
HOMEPAGE="https://glassfish.java.net/"
|
||||
SRC_URI="http://dev.gentoo.org/~tomwij/files/dist/${P}.tar.xz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
CDEPEND="java-virtuals/xmlrpc-api:0
|
||||
java-virtuals/transaction-api:0"
|
||||
|
||||
DEPEND=">=virtual/jdk-1.7
|
||||
${CDEPEND}"
|
||||
|
||||
RDEPEND=">=virtual/jre-1.7
|
||||
${CDEPEND}"
|
||||
|
||||
JAVA_ANT_REWRITE_CLASSPATH="true"
|
||||
EANT_GENTOO_CLASSPATH="xmlrpc-api,transaction-api"
|
||||
JAVA_PKG_BSFIX_NAME="maven-build.xml"
|
||||
|
||||
src_install() {
|
||||
java-pkg_newjar target/javax.ejb-api-${PV}.jar
|
||||
|
||||
use doc && java-pkg_dojavadoc target/site/apidocs
|
||||
use source && java-pkg_dosrc src/main/java/javax
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>java</herd>
|
||||
</pkgmetadata>
|
@ -0,0 +1 @@
|
||||
DIST glassfish-interceptor-api-3.1.tar.xz 14600 SHA256 b64285dbc80bc6418458927735c7dc7df74f6635d86cdb9a70b0c869f2f4a662 SHA512 674f53d53afb63799c579b0ec177a009178315fb62f027441da14ceb5d6fa07408840ad82aa8fa7be31b53d43b53ff28ffb1617d644c989bc4ac17ce5e626563 WHIRLPOOL f20b4abefab8f9d7c55f3a12e6a41fb60644a8ca580bc6c9ea1772d9c919a8d99bbc86b928af82d7ce279919019107164760bd1e144af8ff4c4b4119fd2fdbb7
|
@ -0,0 +1,10 @@
|
||||
--- a/maven-build.xml
|
||||
+++ b/maven-build.xml
|
||||
@@ -166,7 +166,6 @@
|
||||
<jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar"
|
||||
compress="true"
|
||||
index="false"
|
||||
- manifest="/tmp/glassfish-interceptor-api-3.1/target/classes/META-INF/MANIFEST.MF"
|
||||
basedir="${maven.build.outputDir}"
|
||||
excludes="**/package.html"/>
|
||||
</target>
|
@ -0,0 +1,42 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/glassfish-interceptor-api/glassfish-interceptor-api-3.1.ebuild,v 1.1 2013/10/23 18:02:25 tomwij Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
TOMEE_PV="1.5.2"
|
||||
|
||||
DESCRIPTION="Project GlassFish Interceptor API"
|
||||
HOMEPAGE="https://glassfish.java.net/"
|
||||
SRC_URI="http://dev.gentoo.org/~tomwij/files/dist/${P}.tar.xz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
CDEPEND=""
|
||||
|
||||
DEPEND=">=virtual/jdk-1.7
|
||||
${CDEPEND}"
|
||||
|
||||
RDEPEND=">=virtual/jre-1.7
|
||||
${CDEPEND}"
|
||||
|
||||
JAVA_ANT_REWRITE_CLASSPATH="true"
|
||||
EANT_GENTOO_CLASSPATH=""
|
||||
JAVA_PKG_BSFIX_NAME="maven-build.xml"
|
||||
|
||||
java_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-build.xml.patch
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_newjar target/javax.interceptor-api-${PV}.jar
|
||||
|
||||
use doc && java-pkg_dojavadoc target/site/apidocs
|
||||
use source && java-pkg_dosrc src/main/java/javax
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>java</herd>
|
||||
</pkgmetadata>
|
@ -0,0 +1 @@
|
||||
DIST glassfish-xmlrpc-api-1.1.1.tar.xz 35180 SHA256 ca8531a5d39b80ba94e13e048fb2bf9e2441910ccc992af6c0d3dd738892fc89 SHA512 7de8d5959c0f9f09cca6a169d4e4293fca378aa497389e9a9a0af953b698322b9bbae6288b8cba2cd34abf58a0d0f4272294dcdf201a84ba5cc14d426843daa8 WHIRLPOOL 830df242d38e29a8a3eade55d5d80f683ac610d355db2725a8a6b7fd74e19d566ea868a90dcb6e824f758a5c163f36d7d053c6759c896b953279ba2c48628475
|
@ -0,0 +1,38 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/glassfish-xmlrpc-api/glassfish-xmlrpc-api-1.1.1.ebuild,v 1.2 2013/10/23 17:21:57 tomwij Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
TOMEE_PV="1.5.2"
|
||||
|
||||
DESCRIPTION="Project GlassFish XML RPC API"
|
||||
HOMEPAGE="https://glassfish.java.net/"
|
||||
SRC_URI="http://dev.gentoo.org/~tomwij/files/dist/${P}.tar.xz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
CDEPEND="java-virtuals/servlet-api:3.0"
|
||||
|
||||
DEPEND=">=virtual/jdk-1.7
|
||||
${CDEPEND}"
|
||||
|
||||
RDEPEND=">=virtual/jre-1.7
|
||||
${CDEPEND}"
|
||||
|
||||
JAVA_ANT_REWRITE_CLASSPATH="true"
|
||||
EANT_GENTOO_CLASSPATH="servlet-api-3.0"
|
||||
JAVA_PKG_BSFIX_NAME="maven-build.xml"
|
||||
|
||||
src_install() {
|
||||
java-pkg_newjar target/javax.xml.rpc-api-${PV}.jar
|
||||
|
||||
use doc && java-pkg_dojavadoc target/site/apidocs
|
||||
use source && java-pkg_dosrc src/main/java/javax
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>java</herd>
|
||||
</pkgmetadata>
|
@ -0,0 +1,124 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/groovy/groovy-1.8.5-r1.ebuild,v 1.1 2013/10/23 18:49:46 tomwij Exp $
|
||||
|
||||
# Groovy's build system is Ant based, but they use Maven for fetching the dependencies.
|
||||
# We just have to remove the fetch dependencies target, and then we can use Ant for this ebuild.
|
||||
|
||||
# We currently do not build the embeddable jar (which is created using JarJar).
|
||||
# We could provide that via an USE flag.
|
||||
# We also don't use automatic build rewriting as there seems to be already some level of support
|
||||
# in the upstream build system
|
||||
|
||||
# TODO: Install all 3 documentation packages. Currently only the Groovy GDK documentation is installed
|
||||
# as our java-pkg_dojavadoc function does not support multiple Javadoc installations.
|
||||
|
||||
EAPI="3"
|
||||
WANT_ANT_TASKS="ant-antlr"
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit base versionator java-pkg-2 java-ant-2
|
||||
|
||||
MY_PV=${PV/_rc/-RC-}
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
|
||||
DESCRIPTION="Groovy is a high-level dynamic language for the JVM"
|
||||
HOMEPAGE="http://groovy.codehaus.org/"
|
||||
|
||||
SRC_URI="http://dist.groovy.codehaus.org/distributions/${PN}-src-${PV}.zip"
|
||||
LICENSE="codehaus-groovy"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
||||
IUSE="test"
|
||||
RESTRICT="test"
|
||||
|
||||
CDEPEND=">=dev-java/asm-3.2:3
|
||||
>=dev-java/ant-core-1.8.0:0
|
||||
>=dev-java/junit-4.6:4
|
||||
dev-java/antlr:0
|
||||
dev-java/xstream:0
|
||||
dev-java/jline:0
|
||||
dev-java/commons-cli:1
|
||||
dev-java/jansi:0
|
||||
java-virtuals/servlet-api:2.4
|
||||
>=dev-java/bsf-2.4:2.3
|
||||
java-virtuals/jmx:0"
|
||||
|
||||
RDEPEND=">=virtual/jre-1.5
|
||||
${CDEPEND}"
|
||||
|
||||
DEPEND=">=virtual/jdk-1.5
|
||||
dev-java/ant-ivy:2
|
||||
doc? (
|
||||
dev-java/qdox:1.12
|
||||
dev-java/commons-logging:0
|
||||
)
|
||||
test? (
|
||||
dev-java/jmock:1.0
|
||||
dev-java/xmlunit:1
|
||||
dev-db/hsqldb:0
|
||||
dev-java/commons-logging:0
|
||||
dev-java/ant-junit:0
|
||||
dev-java/ant-trax:0
|
||||
)
|
||||
${CDEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-1.8-build-pref-locking-fix.patch" )
|
||||
|
||||
JAVA_PKG_BSFIX=""
|
||||
|
||||
src_prepare() {
|
||||
base_src_prepare
|
||||
sed -i -e 's/fullQualifiedName/fullyQualifiedName/g' \
|
||||
src/tools/org/codehaus/groovy/tools/DocGenerator.groovy
|
||||
|
||||
rm -rf bootstrap
|
||||
# security directory is needed for tests, but they currently don't pass
|
||||
#rm -rf security
|
||||
mkdir -p target/lib && cd target/lib
|
||||
mkdir compile && mkdir runtime && mkdir tools
|
||||
cd compile
|
||||
|
||||
java-pkg_jar-from commons-cli-1,ant-core,antlr,asm-3,xstream,jansi
|
||||
java-pkg_jar-from jline,junit,servlet-api-2.4,bsf-2.3
|
||||
java-pkg_jar-from --virtual jmx
|
||||
java-pkg_jar-from --build-only ant-ivy:2
|
||||
use doc && java-pkg_jar-from --build-only qdox-1.12,ant-antlr,commons-logging
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
eant -DskipTests="true" -DruntimeLibDirectory="target/lib/compile" \
|
||||
-DtoolsLibDirectory="target/lib/compile" -DskipFetch="true" -DskipEmbeddable="true"
|
||||
|
||||
use doc && ANT_TASKS="ant-antlr" ANT_OPTS="-Duser.home=${T}" eant -Dno.grammars="true" -DruntimeLibDirectory="target/lib/compile" \
|
||||
-DtoolsLibDirectory="target/lib/compile" -DtestLibDirectory="target/lib/compile" -DskipFetch="true" doc
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cd "${S}/target/lib" && mkdir test && mkdir extras && cd compile
|
||||
|
||||
java-pkg_jar-from --build-only ant-junit,jmock-1.0,xmlunit-1,hsqldb,commons-logging,cglib-2.1
|
||||
|
||||
cd "${S}"
|
||||
ANT_TASKS="ant-junit ant-antlr ant-trax" ANT_OPTS="-Duser.home=${T}" eant \
|
||||
-DruntimeLibDirectory="target/lib/compile" -DtestLibDirectory="target/lib/compile" -DskipFetch="true" test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_newjar "target/dist/${PN}.jar"
|
||||
use doc && java-pkg_dojavadoc "target/html/groovy-jdk/"
|
||||
|
||||
# FIXME: install those two later
|
||||
#
|
||||
#use doc && java-pkg_dojavadoc "target/html/api/"
|
||||
#use doc && java-pkg_dojavadoc "target/html/gapi/"
|
||||
|
||||
use source && java-pkg_dosrc "src/main/groovy" "src/main/org"
|
||||
java-pkg_dolauncher "groovyc" --main org.codehaus.groovy.tools.FileSystemCompiler
|
||||
java-pkg_dolauncher "groovy" --main groovy.ui.GroovyMain
|
||||
java-pkg_dolauncher "groovysh" --main groovy.ui.InteractiveShell
|
||||
java-pkg_dolauncher "groovyConsole" --main groovy.ui.Console
|
||||
java-pkg_dolauncher "grape" --main org.codehaus.groovy.tools.GrapeMain
|
||||
}
|
@ -0,0 +1,2 @@
|
||||
DIST spring-framework-3.2.4-buildscripts.tar.bz2 2894 SHA256 5a18b76fd55ffca6fbd8957436641287eeead9765de8fe07443fc5d52f03e043 SHA512 003551ffd37501c8b8dceba7ca484709cdf05f96c893d35c33161288770d72f70c092917f79216aa71742e045cb71ddcb17e6b58a2221fe2c153a70e5e0346b9 WHIRLPOOL ae8edd73bf272c3e92e07e5c341110d824703bbb8393a7f4af3ea9b0f306516a025888b2c3433ac0b7a2c3eedaf4236c3e201710e3fd77620290f5c6e28891c7
|
||||
DIST spring-framework-3.2.4.tar.gz 8925304 SHA256 0e0ad9631ea17a90fd8bc2565a7fb5b29ad12c1bf9ec9582f77019b5b041d08d SHA512 6a8fe58213f105deaa982b188e7b49a5bd9e0cf32917c568423509fed6b7c708cb5ca42ee7b3818327d673e59e7af7c67c13707e8a635329540b2febddda0f1b WHIRLPOOL f3dba92202402a676d8ad37c0b80d3a7616eecd780477ff21865305e2e2e5048b525ad9d14d36c0c0def96da305e3067e02617e10b949600ba819612f9edf48b
|
@ -0,0 +1,109 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<project name="spring-instrument" default="jar" basedir=".">
|
||||
|
||||
<property name="src.dir" value="${basedir}/src/main/java" />
|
||||
<property name="resources.dir" value="${basedir}/src/main/resources" />
|
||||
|
||||
<property name="test.src.dir" value="${basedir}/src/test/java" />
|
||||
<property name="test.resources.dir" value="${basedir}/src/test/resources" />
|
||||
|
||||
<property name="reports.tests" value="${basedir}/test-output" />
|
||||
<property name="classes.dir" value="${basedir}/classes" />
|
||||
<property name="classes.dir.test" value="${basedir}/classes-test" />
|
||||
<property name="dist.dir" value="${basedir}/dist" />
|
||||
|
||||
<property name="jar.file" value="${dist.dir}/${ant.project.name}.jar" />
|
||||
|
||||
<target name="clean" description="Clean the output directory">
|
||||
<delete dir="${classes.dir}" />
|
||||
</target>
|
||||
|
||||
<target name="compile" depends="clean">
|
||||
<mkdir dir="${classes.dir}" />
|
||||
|
||||
<javac destdir="${classes.dir}" nowarn="false" debug="true" optimize="true" deprecation="false" target="1.5" verbose="false" fork="false" source="1.5">
|
||||
<src>
|
||||
<pathelement location="${src.dir}" />
|
||||
</src>
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<!-- this target gets called from the other spring-* build.xml files to compile the required test utils -->
|
||||
<target name="compile-instrument-testutils">
|
||||
<mkdir dir="${classes.dir.test}" />
|
||||
<javac destdir="${classes.dir.test}" nowarn="false" debug="true" optimize="true" deprecation="false" target="1.5" verbose="false" fork="false" source="1.5">
|
||||
<src path="${test.src.dir}" />
|
||||
|
||||
<!-- these excludes are a little bit fuzzy, but they should work -->
|
||||
<exclude name="org/springframework/**/*Tests.java"/>
|
||||
<exclude name="org/springframework/**/*TestCase.java"/>
|
||||
|
||||
<classpath>
|
||||
<pathelement location="${classes.dir}" />
|
||||
</classpath>
|
||||
</javac>
|
||||
|
||||
<copy todir="${classes.dir.test}" verbose="true">
|
||||
<fileset dir="${test.resources.dir}"/>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<target name="compile-tests" depends="compile-instrument-testutils">
|
||||
<ant antfile="${basedir}/../spring-core/build.xml" target="compile-core-testutils" dir="${basedir}/../spring-core/" inheritall="false" />
|
||||
|
||||
<mkdir dir="${classes.dir.test}" />
|
||||
<javac destdir="${classes.dir.test}" nowarn="false" debug="true" optimize="true" deprecation="false" target="1.5" verbose="false" fork="false" source="1.5">
|
||||
<src path="${test.src.dir}" />
|
||||
<exclude name="**/DirectFieldAccessorTests.java"/> <!-- tries to instantiate a JPanel which needs an X-Server -->
|
||||
|
||||
<classpath>
|
||||
<pathelement location="${classes.dir}" />
|
||||
|
||||
<pathelement location="${basedir}/../spring-core/classes-test" />
|
||||
</classpath>
|
||||
</javac>
|
||||
|
||||
<copy todir="${classes.dir.test}" verbose="true">
|
||||
<fileset dir="${test.resources.dir}"/>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<target name="test" depends="jar, compile-tests">
|
||||
<mkdir dir="${reports.tests}" />
|
||||
<junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
|
||||
<sysproperty key="log4j.configuration" value="log4j.xml"/>
|
||||
|
||||
<classpath>
|
||||
<pathelement location="${jar.file}" />
|
||||
<pathelement location="${classes.dir.test}" />
|
||||
<pathelement location="${test.src.dir}" />
|
||||
|
||||
<pathelement location="${basedir}/../spring-core/classes-test" />
|
||||
</classpath>
|
||||
|
||||
<sysproperty key="basedir" value="." />
|
||||
|
||||
<formatter type="xml" />
|
||||
<formatter type="plain" usefile="false" />
|
||||
|
||||
<batchtest todir="${reports.tests}">
|
||||
<fileset dir="${classes.dir.test}">
|
||||
<include name="**/*Tests.class" />
|
||||
<exclude name="**/*Abstract*.*" />
|
||||
<exclude name="**/*$*.class" />
|
||||
|
||||
<exclude name="**/org/springframework/beans/factory/support/security/CallbacksSecurityTests*" />
|
||||
</fileset>
|
||||
</batchtest>
|
||||
</junit>
|
||||
</target>
|
||||
|
||||
<target name="javadoc">
|
||||
<javadoc sourcepath="${src.dir}" packagenames="*" destdir="${dist.dir}/apidocs" />
|
||||
</target>
|
||||
|
||||
<target name="jar" depends="compile">
|
||||
<jar jarfile="${jar.file}" compress="true" index="false" basedir="${classes.dir}" excludes="**/package.html" />
|
||||
</target>
|
||||
</project>
|
@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>java</herd>
|
||||
<longdescription>
|
||||
The Spring Framework provides a comprehensive programming and configuration model for
|
||||
modern Java-based enterprise applications - on any kind of deployment platform. A key
|
||||
element of Spring is infrastructural support at the application level: Spring focuses
|
||||
on the "plumbing" of enterprise applications so that teams can focus on application-level
|
||||
business logic, without unnecessary ties to specific deployment environments.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">SpringSource/spring-framework</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
@ -0,0 +1,62 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/spring-instrument/spring-instrument-3.2.4.ebuild,v 1.1 2013/10/23 17:42:21 tomwij Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
JAVA_PKG_IUSE="doc source test"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="A comprehensive programming and configuration model for modern Java-based enterprise applications"
|
||||
HOMEPAGE="http://www.springsource.org/spring-framework"
|
||||
SRC_URI="https://github.com/SpringSource/spring-framework/archive/v${PV}.RELEASE.tar.gz -> spring-framework-${PV}.tar.gz
|
||||
http://dev.gentoo.org/~ercpe/distfiles/dev-java/spring-framework/spring-framework-${PV}-buildscripts.tar.bz2"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="3.2"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DEPEND=">=virtual/jdk-1.7
|
||||
test? (
|
||||
dev-java/ant-junit4:0
|
||||
dev-java/hamcrest-core:1.3
|
||||
dev-java/hamcrest-library:1.3
|
||||
dev-java/junit:4
|
||||
dev-java/mockito:0
|
||||
dev-java/spring-core:${SLOT}
|
||||
dev-java/xmlunit:1
|
||||
)"
|
||||
|
||||
RDEPEND=">=virtual/jre-1.7"
|
||||
|
||||
S="${WORKDIR}/spring-framework-${PV}.RELEASE/"
|
||||
|
||||
EANT_BUILD_XML=${S}/${PN}/build.xml
|
||||
|
||||
JAVA_ANT_REWRITE_CLASSPATH="true"
|
||||
EANT_GENTOO_CLASSPATH=""
|
||||
EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH}
|
||||
hamcrest-library-1.3
|
||||
hamcrest-core-1.3
|
||||
junit-4
|
||||
mockito
|
||||
spring-core-${SLOT}
|
||||
xmlunit-1"
|
||||
|
||||
java_prepare() {
|
||||
find . -name '*.jar' -print -delete || die
|
||||
|
||||
cp "${FILESDIR}"/${P}-build.xml "${EANT_BUILD_XML}" || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
java-pkg-2_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar "${S}"/${PN}/dist/${PN}.jar
|
||||
|
||||
use source && java-pkg_dosrc "${S}"/${PN}/src/main/java/org/
|
||||
use doc && java-pkg_dojavadoc "${S}"/${PN}/dist/apidocs/
|
||||
}
|
@ -1 +1 @@
|
||||
DIST libkpass-3.tar.gz 313707 SHA256 390ebca29040ae1a015f4c067de16fe585693d2b4f95caca24529917bdb2dfec SHA512 2e3a16aedcd666f2cc1c71148d734d4d25ebc462f55221977daf9545cf7cf64381915052198e65a0945f1e03feb79b9fcea97d29315138d98a5cf4b8f3078450 WHIRLPOOL 130989c3b034f0186100cd71c897d419a64e32356fb88b48abf6db5aaa10e10e2045f644605b0976ed624afcc8c1c50bbca4f5f771a464bf85d512386105aac5
|
||||
DIST libkpass-6.tar.gz 407412 SHA256 901f94961e017e13bb763245d5304d4f487e16dc586c820a90241c6f3a8b8b0a SHA512 506e642dbbd1295fe9f46e31d80d151df4428373b191cc98340d9bd2f5e06c31e53b45a35e843d8cbb1ef2b2c4fee36a54032e7ced6dead789082c4a174443de WHIRLPOOL cbb933924b1546b9d8b0267d679c8026da89b1bee7e92b2ec4635541902a4d0f06dc6fe7a494a695cdb514f06df0bcd4fcfc5f359aea757ef33122b5b5f13259
|
||||
|
@ -0,0 +1,67 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libnl/libnl-3.2.9999.ebuild,v 1.1 2013/10/23 10:58:30 jer Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_{6,7} python3_{2,3} )
|
||||
DISTUTILS_OPTIONAL=1
|
||||
inherit autotools distutils-r1 eutils git-r3 libtool multilib
|
||||
|
||||
DESCRIPTION="A collection of libraries providing APIs to netlink protocol based Linux kernel interfaces"
|
||||
HOMEPAGE="http://www.infradead.org/~tgr/libnl/"
|
||||
EGIT_REPO_URI="
|
||||
https://github.com/tgraf/libnl.git
|
||||
"
|
||||
LICENSE="LGPL-2.1 doc? ( GPL-3 ) utils? ( GPL-2 )"
|
||||
SLOT="3"
|
||||
KEYWORDS=""
|
||||
IUSE="doc static-libs python utils"
|
||||
|
||||
RDEPEND="python? ( ${PYTHON_DEPS} )"
|
||||
DEPEND="${RDEPEND}
|
||||
python? ( dev-lang/swig )
|
||||
sys-devel/flex
|
||||
sys-devel/bison
|
||||
"
|
||||
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
DOCS=( ChangeLog )
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-1.1-vlan-header.patch
|
||||
epatch "${FILESDIR}"/${PN}-3.2.20-rtnl_tc_get_ops.patch
|
||||
epatch "${FILESDIR}"/${PN}-3.2.20-cache-api.patch
|
||||
epatch "${FILESDIR}"/${PN}-3.2.22-python.patch
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--disable-silent-rules \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable utils cli)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
|
||||
if use python; then
|
||||
cd "${S}"/python || die
|
||||
distutils-r1_src_compile
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
if use python; then
|
||||
# Unset DOCS= since distutils-r1.eclass interferes
|
||||
DOCS=''
|
||||
cd "${S}"/python || die
|
||||
distutils-r1_src_install
|
||||
fi
|
||||
|
||||
prune_libtool_files $(usex static-libs --modules --all)
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
https://bugs.gentoo.org/472584
|
||||
http://rt.openssl.org/Ticket/Display.html?id=2387&user=guest&pass=guest
|
||||
|
||||
fix verification handling in s_client. when loading paths, make sure
|
||||
we properly fallback to setting the default paths.
|
||||
|
||||
--- a/apps/s_client.c
|
||||
+++ b/apps/s_client.c
|
||||
@@ -899,7 +899,7 @@
|
||||
if (!set_cert_key_stuff(ctx,cert,key))
|
||||
goto end;
|
||||
|
||||
- if ((!SSL_CTX_load_verify_locations(ctx,CAfile,CApath)) ||
|
||||
+ if ((!SSL_CTX_load_verify_locations(ctx,CAfile,CApath)) &&
|
||||
(!SSL_CTX_set_default_verify_paths(ctx)))
|
||||
{
|
||||
/* BIO_printf(bio_err,"error setting default verify locations\n"); */
|
||||
|
@ -0,0 +1,239 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-1.0.1e-r2.ebuild,v 1.1 2013/10/23 16:10:35 vapier Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit eutils flag-o-matic toolchain-funcs multilib
|
||||
|
||||
REV="1.7"
|
||||
DESCRIPTION="full-strength general purpose cryptography library (including SSL and TLS)"
|
||||
HOMEPAGE="http://www.openssl.org/"
|
||||
SRC_URI="mirror://openssl/source/${P}.tar.gz
|
||||
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/${PN}/${PN}-c_rehash.sh?rev=${REV} -> ${PN}-c_rehash.sh.${REV}"
|
||||
|
||||
LICENSE="openssl"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~arm-linux ~x86-linux"
|
||||
IUSE="bindist gmp kerberos rfc3779 sse2 static-libs test +tls-heartbeat vanilla zlib"
|
||||
|
||||
# Have the sub-libs in RDEPEND with [static-libs] since, logically,
|
||||
# our libssl.a depends on libz.a/etc... at runtime.
|
||||
LIB_DEPEND="gmp? ( dev-libs/gmp[static-libs(+)] )
|
||||
zlib? ( sys-libs/zlib[static-libs(+)] )
|
||||
kerberos? ( app-crypt/mit-krb5 )"
|
||||
# The blocks are temporary just to make sure people upgrade to a
|
||||
# version that lack runtime version checking. We'll drop them in
|
||||
# the future.
|
||||
RDEPEND="static-libs? ( ${LIB_DEPEND} )
|
||||
!static-libs? ( ${LIB_DEPEND//\[static-libs(+)]} )
|
||||
!<net-misc/openssh-5.9_p1-r4
|
||||
!<net-libs/neon-0.29.6-r1"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-apps/diffutils
|
||||
>=dev-lang/perl-5
|
||||
test? ( sys-devel/bc )"
|
||||
PDEPEND="app-misc/ca-certificates"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${P}.tar.gz
|
||||
SSL_CNF_DIR="/etc/ssl"
|
||||
sed \
|
||||
-e "/^DIR=/s:=.*:=${EPREFIX}${SSL_CNF_DIR}:" \
|
||||
-e "s:SSL_CMD=/usr:SSL_CMD=${EPREFIX}/usr:" \
|
||||
"${DISTDIR}"/${PN}-c_rehash.sh.${REV} \
|
||||
> "${WORKDIR}"/c_rehash || die #416717
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Make sure we only ever touch Makefile.org and avoid patching a file
|
||||
# that gets blown away anyways by the Configure script in src_configure
|
||||
rm -f Makefile
|
||||
|
||||
if ! use vanilla ; then
|
||||
epatch "${FILESDIR}"/${PN}-1.0.0a-ldflags.patch #327421
|
||||
epatch "${FILESDIR}"/${PN}-1.0.0d-windres.patch #373743
|
||||
epatch "${FILESDIR}"/${PN}-1.0.0h-pkg-config.patch
|
||||
epatch "${FILESDIR}"/${PN}-1.0.1-parallel-build.patch
|
||||
epatch "${FILESDIR}"/${PN}-1.0.1-x32.patch
|
||||
epatch "${FILESDIR}"/${PN}-1.0.1e-ipv6.patch
|
||||
epatch "${FILESDIR}"/${P}-bad-mac-aes-ni.patch #463444
|
||||
epatch "${FILESDIR}"/${PN}-1.0.1e-perl-5.18.patch #483820
|
||||
epatch "${FILESDIR}"/${PN}-1.0.1e-s_client-verify.patch #472584
|
||||
epatch_user #332661
|
||||
fi
|
||||
|
||||
# disable fips in the build
|
||||
# make sure the man pages are suffixed #302165
|
||||
# don't bother building man pages if they're disabled
|
||||
sed -i \
|
||||
-e '/DIRS/s: fips : :g' \
|
||||
-e '/^MANSUFFIX/s:=.*:=ssl:' \
|
||||
-e '/^MAKEDEPPROG/s:=.*:=$(CC):' \
|
||||
-e $(has noman FEATURES \
|
||||
&& echo '/^install:/s:install_docs::' \
|
||||
|| echo '/^MANDIR=/s:=.*:='${EPREFIX}'/usr/share/man:') \
|
||||
Makefile.org \
|
||||
|| die
|
||||
# show the actual commands in the log
|
||||
sed -i '/^SET_X/s:=.*:=set -x:' Makefile.shared
|
||||
|
||||
# allow openssl to be cross-compiled
|
||||
cp "${FILESDIR}"/gentoo.config-1.0.1 gentoo.config || die
|
||||
chmod a+rx gentoo.config
|
||||
|
||||
append-flags -fno-strict-aliasing
|
||||
append-flags $(test-flags-CC -Wa,--noexecstack)
|
||||
|
||||
sed -i '1s,^:$,#!'${EPREFIX}'/usr/bin/perl,' Configure #141906
|
||||
# The config script does stupid stuff to prompt the user. Kill it.
|
||||
sed -i '/stty -icanon min 0 time 50; read waste/d' config || die
|
||||
./config --test-sanity || die "I AM NOT SANE"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
unset APPS #197996
|
||||
unset SCRIPTS #312551
|
||||
unset CROSS_COMPILE #311473
|
||||
|
||||
tc-export CC AR RANLIB RC
|
||||
|
||||
# Clean out patent-or-otherwise-encumbered code
|
||||
# Camellia: Royalty Free http://en.wikipedia.org/wiki/Camellia_(cipher)
|
||||
# IDEA: Expired http://en.wikipedia.org/wiki/International_Data_Encryption_Algorithm
|
||||
# EC: ????????? ??/??/2015 http://en.wikipedia.org/wiki/Elliptic_Curve_Cryptography
|
||||
# MDC2: Expired http://en.wikipedia.org/wiki/MDC-2
|
||||
# RC5: 5,724,428 03/03/2015 http://en.wikipedia.org/wiki/RC5
|
||||
|
||||
use_ssl() { usex $1 "enable-${2:-$1}" "no-${2:-$1}" " ${*:3}" ; }
|
||||
echoit() { echo "$@" ; "$@" ; }
|
||||
|
||||
local krb5=$(has_version app-crypt/mit-krb5 && echo "MIT" || echo "Heimdal")
|
||||
|
||||
# See if our toolchain supports __uint128_t. If so, it's 64bit
|
||||
# friendly and can use the nicely optimized code paths. #460790
|
||||
local ec_nistp_64_gcc_128
|
||||
# Disable it for now though #469976
|
||||
#if ! use bindist ; then
|
||||
# echo "__uint128_t i;" > "${T}"/128.c
|
||||
# if ${CC} ${CFLAGS} -c "${T}"/128.c -o /dev/null >&/dev/null ; then
|
||||
# ec_nistp_64_gcc_128="enable-ec_nistp_64_gcc_128"
|
||||
# fi
|
||||
#fi
|
||||
|
||||
local sslout=$(./gentoo.config)
|
||||
einfo "Use configuration ${sslout:-(openssl knows best)}"
|
||||
local config="Configure"
|
||||
[[ -z ${sslout} ]] && config="config"
|
||||
echoit \
|
||||
./${config} \
|
||||
${sslout} \
|
||||
$(use sse2 || echo "no-sse2") \
|
||||
enable-camellia \
|
||||
$(use_ssl !bindist ec) \
|
||||
${ec_nistp_64_gcc_128} \
|
||||
enable-idea \
|
||||
enable-mdc2 \
|
||||
$(use_ssl !bindist rc5) \
|
||||
enable-tlsext \
|
||||
$(use_ssl gmp gmp -lgmp) \
|
||||
$(use_ssl kerberos krb5 --with-krb5-flavor=${krb5}) \
|
||||
$(use_ssl rfc3779) \
|
||||
$(use_ssl tls-heartbeat heartbeats) \
|
||||
$(use_ssl zlib) \
|
||||
--prefix="${EPREFIX}"/usr \
|
||||
--openssldir="${EPREFIX}"${SSL_CNF_DIR} \
|
||||
--libdir=$(get_libdir) \
|
||||
shared threads \
|
||||
|| die
|
||||
|
||||
# Clean out hardcoded flags that openssl uses
|
||||
local CFLAG=$(grep ^CFLAG= Makefile | LC_ALL=C sed \
|
||||
-e 's:^CFLAG=::' \
|
||||
-e 's:-fomit-frame-pointer ::g' \
|
||||
-e 's:-O[0-9] ::g' \
|
||||
-e 's:-march=[-a-z0-9]* ::g' \
|
||||
-e 's:-mcpu=[-a-z0-9]* ::g' \
|
||||
-e 's:-m[a-z0-9]* ::g' \
|
||||
)
|
||||
sed -i \
|
||||
-e "/^CFLAG/s|=.*|=${CFLAG} ${CFLAGS}|" \
|
||||
-e "/^SHARED_LDFLAGS=/s|$| ${LDFLAGS}|" \
|
||||
Makefile || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# depend is needed to use $confopts; it also doesn't matter
|
||||
# that it's -j1 as the code itself serializes subdirs
|
||||
emake -j1 depend
|
||||
emake all
|
||||
# rehash is needed to prep the certs/ dir; do this
|
||||
# separately to avoid parallel build issues.
|
||||
emake rehash
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -j1 test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake INSTALL_PREFIX="${D}" install
|
||||
dobin "${WORKDIR}"/c_rehash #333117
|
||||
dodoc CHANGES* FAQ NEWS README doc/*.txt doc/c-indentation.el
|
||||
dohtml -r doc/*
|
||||
use rfc3779 && dodoc engines/ccgost/README.gost
|
||||
|
||||
# This is crappy in that the static archives are still built even
|
||||
# when USE=static-libs. But this is due to a failing in the openssl
|
||||
# build system: the static archives are built as PIC all the time.
|
||||
# Only way around this would be to manually configure+compile openssl
|
||||
# twice; once with shared lib support enabled and once without.
|
||||
use static-libs || rm -f "${ED}"/usr/lib*/lib*.a
|
||||
|
||||
# create the certs directory
|
||||
dodir ${SSL_CNF_DIR}/certs
|
||||
cp -RP certs/* "${ED}"${SSL_CNF_DIR}/certs/ || die
|
||||
rm -r "${ED}"${SSL_CNF_DIR}/certs/{demo,expired}
|
||||
|
||||
# Namespace openssl programs to prevent conflicts with other man pages
|
||||
cd "${ED}"/usr/share/man
|
||||
local m d s
|
||||
for m in $(find . -type f | xargs grep -L '#include') ; do
|
||||
d=${m%/*} ; d=${d#./} ; m=${m##*/}
|
||||
[[ ${m} == openssl.1* ]] && continue
|
||||
[[ -n $(find -L ${d} -type l) ]] && die "erp, broken links already!"
|
||||
mv ${d}/{,ssl-}${m}
|
||||
# fix up references to renamed man pages
|
||||
sed -i '/^[.]SH "SEE ALSO"/,/^[.]/s:\([^(, ]*(1)\):ssl-\1:g' ${d}/ssl-${m}
|
||||
ln -s ssl-${m} ${d}/openssl-${m}
|
||||
# locate any symlinks that point to this man page ... we assume
|
||||
# that any broken links are due to the above renaming
|
||||
for s in $(find -L ${d} -type l) ; do
|
||||
s=${s##*/}
|
||||
rm -f ${d}/${s}
|
||||
ln -s ssl-${m} ${d}/ssl-${s}
|
||||
ln -s ssl-${s} ${d}/openssl-${s}
|
||||
done
|
||||
done
|
||||
[[ -n $(find -L ${d} -type l) ]] && die "broken manpage links found :("
|
||||
|
||||
dodir /etc/sandbox.d #254521
|
||||
echo 'SANDBOX_PREDICT="/dev/crypto"' > "${ED}"/etc/sandbox.d/10openssl
|
||||
|
||||
diropts -m0700
|
||||
keepdir ${SSL_CNF_DIR}/private
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
has_version ${CATEGORY}/${PN}:0.9.8 && return 0
|
||||
preserve_old_lib /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ebegin "Running 'c_rehash ${EROOT%/}${SSL_CNF_DIR}/certs/' to rebuild hashes #333069"
|
||||
c_rehash "${EROOT%/}${SSL_CNF_DIR}/certs" >/dev/null
|
||||
eend $?
|
||||
|
||||
has_version ${CATEGORY}/${PN}:0.9.8 && return 0
|
||||
preserve_old_lib_notify /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST camlimages-4.0.1.tar.bz2 2010729 SHA256 b6a5e79abcfba1316a516f2e0290e6f06c90fa1ed94d8dcd5533a2e3d51c0c89 SHA512 1d80e6b1ab7f48e4219b7bcf6287b8403b6ad56f88d39fb8d9403b5e6f8c4b346c98112874094824ed001c71605e73fd0f4ca044669a07bcf6965619c5ff4811 WHIRLPOOL 22107c7d96995e0e2d68688c5eaa502db21e493a59a9361a59f413fa27349a3f82186d21ea4e17df12bb428d7316c5c4ccaedf0bb03d192671e187b1e5ef6410
|
||||
DIST camlimages-4.1.1.tar.bz2 1098450 SHA256 22c4485f69ddda6fa94fcb62c1f996756c93ceb59d6d61962d41df59fa27e346 SHA512 79dc5680ef632968d39513cac161f0e5daf4faecec12f100d56755051d257b1c0e4e45990d4215c4b95596b5d94cebc93b6d828953450b15a4e48993013637b2 WHIRLPOOL f18c3b7046c39c7ae05c91845cd4bd7f8cc52043180be6e21d9f19cfd055aba630cc7f9fc839d2caaba47946269008e952ee31e27aee5e0f184366ab2a183f7c
|
||||
|
@ -0,0 +1,65 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ml/camlimages/camlimages-4.1.1.ebuild,v 1.1 2013/10/22 20:45:45 aballier Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils vcs-snapshot findlib multilib
|
||||
|
||||
DESCRIPTION="An image manipulation library for ocaml"
|
||||
HOMEPAGE="http://gallium.inria.fr/camlimages/"
|
||||
SRC_URI="http://bitbucket.org/camlspotter/camlimages/get/${PV}.tar.bz2 -> ${P}.tar.bz2"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="doc exif gif gtk jpeg png postscript tiff truetype X xpm"
|
||||
|
||||
RDEPEND=">=dev-lang/ocaml-3.10.2:=[X?,ocamlopt]
|
||||
exif? ( media-libs/libexif )
|
||||
gif? ( media-libs/giflib )
|
||||
gtk? ( dev-ml/lablgtk )
|
||||
jpeg? ( virtual/jpeg )
|
||||
tiff? ( media-libs/tiff )
|
||||
png? ( >=media-libs/libpng-1.4:0 )
|
||||
postscript? ( app-text/ghostscript-gpl )
|
||||
truetype? ( >=media-libs/freetype-2 )
|
||||
xpm? ( x11-libs/libXpm )
|
||||
X? ( x11-apps/rgb )
|
||||
sys-libs/zlib
|
||||
"
|
||||
DEPEND="${DEPEND}
|
||||
doc? ( dev-python/sphinx[latex] )
|
||||
dev-util/omake
|
||||
virtual/pkgconfig
|
||||
dev-ml/findlib"
|
||||
|
||||
camlimages_arg_want() {
|
||||
echo "ARG_WANT_${2}=$(usex $1 1 0)"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
omake \
|
||||
$(camlimages_arg_want exif EXIF ) \
|
||||
$(camlimages_arg_want gif GIF ) \
|
||||
$(camlimages_arg_want png PNG ) \
|
||||
$(camlimages_arg_want jpeg JPEG ) \
|
||||
$(camlimages_arg_want tiff TIFF ) \
|
||||
$(camlimages_arg_want xpm XPM ) \
|
||||
$(camlimages_arg_want postscript GS ) \
|
||||
$(camlimages_arg_want gtk LABLGTK2) \
|
||||
$(camlimages_arg_want X GRAPHICS) \
|
||||
$(camlimages_arg_want truetype FREETYPE) \
|
||||
--force-dotomake || die
|
||||
|
||||
if use doc ; then
|
||||
sphinx-build doc/sphinx sphinxdoc || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
findlib_src_preinst
|
||||
omake --force-dotomake DESTDIR="${D}" install || die
|
||||
dodoc README.rst
|
||||
use doc && dohtml -r sphinxdoc/*
|
||||
}
|
@ -1,4 +1,3 @@
|
||||
DIST PyQt-x11-gpl-4.10.1.tar.gz 11279330 SHA256 623586f6dcb8a3ac5af688015dfb721b76498242081e3e331c882dd38798fa16 SHA512 997421d80ad6915cbff672bcb60ae4d7a361912d7be03bc4fcaa8c36747f04464a8acc452c235cb0c5c498135fb3a2cc4d945de02f6d2ad2014cce48726e3af4 WHIRLPOOL 23f256882917a5b5cfb3683074c107501fcdd32739c60110585783947885445441649869eb4645854eef3c2181f596afc3ec7cce6c3449f717e5d3d27de3f9a9
|
||||
DIST PyQt-x11-gpl-4.10.2.tar.gz 11280941 SHA256 747cf2fe285ef050d891bbbbfa213a380583d464a085906ef525058c154be6fe SHA512 6600b87e55f5a8fa0e41549f08d7639baec3ac9ffe14d6b141d808b14f672676abf872a48a300491a9b24eb5a14299f636a71bda246bb63cdb38d5afcd64b6d1 WHIRLPOOL e6822894d68e22be16600bd1c9f1d1d7a04a2170d31651cacd04f184754f2f050aeed8eb8c0c797282334751f488786b17c361871d0580ca222796064c16c5ca
|
||||
DIST PyQt-x11-gpl-4.10.3.tar.gz 11187362 SHA256 a713bebef394213b2c9e1fe0cad5699b869dc356bba50766e069013eba8bf630 SHA512 4edd3539e1855bc3358dcba866433e53d4b9444b867c14cc27115cf5a6c123b0af3bb0bae3085f6d71a31f0b6716da40809ac4ffcaaff415673ed7462f1a0420 WHIRLPOOL 675e324993e8f9a3b2a0a8975c9f1e2af9cd315073a68e6649a8de04e8e8a905d756be2c138a8c19b4ec16a75c7b118b32a3ffc27f8399953599a1b88ac76fad
|
||||
DIST PyQt-x11-gpl-4.9.6.tar.gz 9349834 SHA256 a350f9e5c6d8062671c0f29bf1a70824719b18175ce8372c29bf7c1eda44b18d SHA512 1d0ca00d529f67d33e51b947b9e2c49a64611a842f1a78220c9390afd1657e909451d9b758d0c008b6efbba7ed047f18ca41323e4db2269d685b9d2400a604aa WHIRLPOOL fd9e2339014e2cce9c4106f92593abca3d71881c57a90e6084a08fdc55213cd640723b988fa792bf4e20e448fb7f6fc43fb72bb45fb7c81bf5819684620ad4ae
|
||||
|
@ -1,3 +1,3 @@
|
||||
DIST autopep8-0.5.2.tar.gz 10049 SHA256 a9a808bac49605036bdeaa4bf5b50a9bbf87088a54b9a2e54e18c85abcecb70f SHA512 9d27a9b2c7cf90a7ea420732ac13675c6bc93435d9d9dc4e437e3e2e121d4b2931b995da77d751e2dbcf4c2c5379fda6c4c3c0f6cc222b461d4daa95e9ec2564 WHIRLPOOL 5b4f6ca08695da516f6579399de1decb3a1be6b2520a636812f1b68cb6ee7e05cb546fe7537513deb3f9a3f914808ffeaa956d1daa2c4e0bcf14f22071e9e7c8
|
||||
DIST autopep8-0.9.3.tar.gz 54727 SHA256 3d4ead82fb5954ceb4f548bddbdacb7bf04043062cd9153807bfe2b0fa393fb6 SHA512 6739ca5bf0ba716af3be1ecfc35b11a96483962367642b6751cde153c500ea36cc901be76da6b033bf6141c28a87ec75a4f6f568bb77a3278d8e7f1fe92b0941 WHIRLPOOL 31f9e38da6be88f1385b4d42aa50b646cd1f52aff6e32ec3615a731899caf823f3abf37004fcfc95c6fbfa4997aea009722646221799e1b2903d1fe51357a9d1
|
||||
DIST autopep8-0.9.4.tar.gz 70382 SHA256 4f1204c319eebdcc761131f832fcf38131f955a7db456a094942086c0d6ede10 SHA512 2704ec20927b77e18c273513d4a74a46196d9e5df809da833b814def3efab5afe105f9519c76d6c1fff2f7de8d9c533fde67192f2a56d29480aa5a32ff0f3da2 WHIRLPOOL 4f117c759a26e4c78395a456dbaeed057efa0a353dc9f16935c9391c36ea4a47085002341f63db056ab0d558ae9e3c37c15d14a6c0aef925f07657979d633352
|
||||
DIST autopep8-0.9.5.tar.gz 71000 SHA256 d6610d683d02a1a487cc3f7d8ef6dd8e436c897f97b64ea2dcfc384767429670 SHA512 daef04cf3d2085fd59af3d8603e14e36e8d2673b783055971212438014b74e6732d8309a870285a2a8f8915cffdf27bd63631ddf6dfd1bb07c2e19b92ed32dae WHIRLPOOL 40d5d0b07c88a85075fed6742528f277d0592f88849bc9d1d1816bcc97c0744726570c8af44f0b1ed3b2840b73286496fe969dc7a0b9020a9f9f87d1f771d1e0
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/autopep8/autopep8-0.9.3.ebuild,v 1.2 2013/09/05 18:46:12 mgorny Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/autopep8/autopep8-0.9.5.ebuild,v 1.1 2013/10/23 13:32:57 xarthisius Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
|
@ -1 +1,2 @@
|
||||
DIST cliff-1.4.5.tar.gz 121371 SHA256 0ec2c40e899cbb4d478aa946e1430600bf596ca2a3f12162a9514e9d580935ec SHA512 5c46bf5c15e542c9fb4734113c37d5b6ebaf38f586a2eeedf3281085904f99014de6e4da01937485ca9b533b26f58226987ab7356d2f4b70e083802d773ab099 WHIRLPOOL 2ff5d4f898eb9a3c3ab7aa99b4ede7417582e692218b5f2073c7c168b1c47dfad31e3c48ab410d2336638135391d5197835e9da956b04542c92d1a9742b26610
|
||||
DIST cliff-1.4.tar.gz 124342 SHA256 e5650c92bdd7917f850fc3ac11bd3ad4abd0cb0be4654770b29b63f288bea316 SHA512 764fa34d8eb4775360912f2dfbccb262a34ee693e76d62d66b848a60fbc260dd2240ac4be7991d77118d4af7152aa3e08cf9b98566391fe574dbfdeb8f59a97b WHIRLPOOL 3e767a4614bd4cdbe4b595c7949605715cee3e88fdd23f89d74cd6ab4dc00dd32a834e2b7bc2c583444d753a1181ec321a5d52c3ccb0c56a6ed02feb4fb6e0d3
|
||||
|
@ -0,0 +1,35 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/cliff/cliff-1.4.5.ebuild,v 1.1 2013/10/23 03:23:26 prometheanfire Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_7,3_2,3_3} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Command Line Interface Formulation Framework"
|
||||
HOMEPAGE="https://github.com/dreamhost/cliff"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyparsing-2.0.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/prettytable-0.6[${PYTHON_USEDEP}]
|
||||
<dev-python/prettytable-0.8[${PYTHON_USEDEP}]
|
||||
>=dev-python/cmd2-0.6.7[${PYTHON_USEDEP}]
|
||||
virtual/python-argparse[${PYTHON_USEDEP}]
|
||||
test? ( dev-python/nose[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/coverage[${PYTHON_USEDEP}]
|
||||
dev-python/pep8[${PYTHON_USEDEP}]
|
||||
dev-python/cmd2[${PYTHON_USEDEP}] )"
|
||||
|
||||
python_test() {
|
||||
nosetests tests || die "Tests fail with ${EPYTHON}"
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST cmd2-0.6.4.tar.gz 21147 SHA256 ff52cb800d931bbd0ce4b05bac0b024cf34ec3a04f66eadcb7d3f7dda42429ba SHA512 3c5c043c6ff1249a7804a6c1be67101e4bb236e3be86a642df0b0fe89601935100a7e2a3ba9c43d55be1019103546df98347ca98fa3003aa62e4fdeaf6586607 WHIRLPOOL 1a2a9597ec675afdacd294112021b472c035af48d2cdc12fe734ad1c858c9327001155426b51c7ab1916f8748e6a1adc1b2944cfe78f7083cd08601748fa5337
|
||||
DIST cmd2-0.6.6.1.tar.gz 20538 SHA256 0b051e6b5f4500f823f996c77991363fe1d5c0b790002eb9922c7b39921cd981 SHA512 f1369ec748079eb2adb02805ad35cc18d2e6e708362e8cb0f0a1ab5efcbf49ec55ded3fecd47974f91b8d72000a236b90427f717c104d666380aadb83b86b47c WHIRLPOOL b6ccece6897567d41fc31d68406ab2ad2ff3ff9abbf5d5a014f9c781790f5196c11fa654cd0c71e6e84b79bfafe729cefd93a41c54bca8ca18580ae39e96bd95
|
||||
DIST cmd2-0.6.7.tar.gz 20558 SHA256 8e98c7a1cfd106183559240b269e7cd9fe97e8342b5c05295f591aab6fd2f4f0 SHA512 a37393bd9ef6c3ece02249b5a4293a25889ebd68120ee592d2ccd77a8e3e4ab3ba724e0be7f3c98a453dbba30c1851c7f690fbe69711df8a723545f8dbe38607 WHIRLPOOL 9da375c5ab0e1cd0f13e67b1b168b5f87be7f56bc758589b1e41959f3e14b07ad1e055fc2fce6d44ded77f806217b6bbe590009fec27c9179922ea764db0b86d
|
||||
|
@ -0,0 +1,34 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/cmd2/cmd2-0.6.7.ebuild,v 1.1 2013/10/23 03:22:56 prometheanfire Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} pypy2_0 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Extra features for standard library's cmd module"
|
||||
HOMEPAGE="https://bitbucket.org/catherinedevlin/cmd2"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=dev-python/pyparsing-2.0.1[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
|
||||
#python_prepare_all() {
|
||||
# # Remove broken pyparsing dep.
|
||||
# # https://bitbucket.org/catherinedevlin/cmd2/pull-request/3
|
||||
# sed -i -e '/= install_requires/d' setup.py || die
|
||||
#
|
||||
# distutils-r1_python_prepare_all
|
||||
#}
|
||||
|
||||
python_test() {
|
||||
cd "${BUILD_DIR}"/lib || die
|
||||
"${PYTHON}" -m cmd2 -v || die "Tests fail with ${EPYTHON}"
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST django_openstack_auth-1.0.10.tar.gz 18209 SHA256 a5b5ce9005ededf6f5de946c9f53a1263ea886e2b802dd4af1df6c521e7b9a04 SHA512 d38da0ce962b92e2039443a3b856df918b90a55fcd87ac9f4dc4bbdb12f39acfb126899b9529f682d1b19007d61490aa1d89da4d7d914ed57cdba93d5644a1c8 WHIRLPOOL db9e751ed3b48e00577ebe269a80af5b62d76c52e898ed8d04c39c73187da4a54e04229f743153596d383ec2e86b43e1c17027162fe768173a1d5601a7f99acd
|
||||
DIST django_openstack_auth-1.0.7.tar.gz 21857 SHA256 6486f7da5f5b49c669d81204be133ca3c6181fea8b8a2f4142b1dc823c1dc198 SHA512 62449f1eea8a77fcc1c11197da073e0925e4d4a705506c92cd22896cd00d4eff22dbe35cc4b6f4529c79a9184fe5fc6a5462f32ae24d68b6c21c0bf123723dc9 WHIRLPOOL c4e6c89a0948082e36359860882f0595809e15208f3f972397230f9e1f80d32182bcbc02d7d4473fd01d0ede73a479a35c090f1ecc985d334b7c56c2b9f073c6
|
||||
DIST django_openstack_auth-1.1.3.tar.gz 45687 SHA256 565a4b322e1eb2d0cf8df59ae58b49b2e324c414a6dd0ba4a6aa3459600314da SHA512 a313e0660d92c1e135fa5c956622fb9328ca5ba185e11a76f5c59a23fb059c7c0af44e08bfef7f236aa23aec744458cd64c93e7a2724669878f3088465ade321 WHIRLPOOL 3ac089e13e1dc29dc4a097e83d8b8af40221287d688653f8265805520f0c2a864ec31b50c40f4dd72d95d1847905806b843277726fa0f3c8753fc20561ef93a8
|
||||
|
@ -0,0 +1,37 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/django-openstack-auth/django-openstack-auth-1.1.3.ebuild,v 1.1 2013/10/23 05:25:17 prometheanfire Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A Django authentication backend for use with the OpenStack Keystone
|
||||
Identity backend."
|
||||
HOMEPAGE="http://django_openstack_auth.readthedocs.org/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/django_openstack_auth/django_openstack_auth-${PV}.tar.gz"
|
||||
S="${WORKDIR}/django_openstack_auth-${PV}"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=dev-python/pbr-0.5.21[${PYTHON_USEDEP}]
|
||||
<dev-python/pbr-1.0[${PYTHON_USEDEP}]
|
||||
test? ( >=dev-python/hacking-0.5.6[${PYTHON_USEDEP}]
|
||||
<dev-python/hacking-0.8[${PYTHON_USEDEP}]
|
||||
>=dev-python/Babel-0.8[${PYTHON_USEDEP}]
|
||||
>=dev-python/coverage-3.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/mox-0.5.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}]
|
||||
dev-python/oslo-sphinx[${PYTHON_USEDEP}] )"
|
||||
RDEPEND=">=dev-python/python-keystoneclient-0.3.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/django-1.4[${PYTHON_USEDEP}]
|
||||
<dev-python/django-1.6[${PYTHON_USEDEP}]"
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" -m openstack_auth.tests.run_tests || die "Testsuite failed"
|
||||
}
|
@ -0,0 +1,205 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/ipython/ipython-1.1.0.ebuild,v 1.1 2013/10/23 10:33:53 xarthisius Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
|
||||
PYTHON_REQ_USE='readline,sqlite'
|
||||
|
||||
inherit distutils-r1 elisp-common eutils virtualx
|
||||
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
DESCRIPTION="Advanced interactive shell for Python"
|
||||
HOMEPAGE="http://ipython.org/"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/releases/download/rel-${PV}/${P}.tar.gz"
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="doc emacs examples matplotlib mongodb notebook nbconvert octave
|
||||
qt4 +smp test wxwidgets"
|
||||
|
||||
PY2_USEDEP=$(python_gen_usedep 'python2*')
|
||||
|
||||
CDEPEND="
|
||||
dev-python/decorator[${PYTHON_USEDEP}]
|
||||
dev-python/pexpect[${PY2_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
dev-python/simplegeneric[${PYTHON_USEDEP}]
|
||||
dev-python/pyparsing[${PYTHON_USEDEP}]
|
||||
virtual/python-argparse[${PYTHON_USEDEP}]
|
||||
emacs? ( app-emacs/python-mode virtual/emacs )
|
||||
matplotlib? ( dev-python/matplotlib[${PYTHON_USEDEP}] )
|
||||
mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] )
|
||||
octave? ( dev-python/oct2py[${PY2_USEDEP}] )
|
||||
smp? ( dev-python/pyzmq[${PYTHON_USEDEP}] )
|
||||
wxwidgets? ( dev-python/wxpython[${PY2_USEDEP}] )"
|
||||
RDEPEND="${CDEPEND}
|
||||
notebook? (
|
||||
>=www-servers/tornado-2.1[${PY2_USEDEP}]
|
||||
dev-python/pygments[${PYTHON_USEDEP}]
|
||||
dev-python/pyzmq[${PYTHON_USEDEP}]
|
||||
dev-libs/mathjax
|
||||
dev-python/jinja[${PYTHON_USEDEP}]
|
||||
)
|
||||
nbconvert? (
|
||||
app-text/pandoc
|
||||
dev-python/pygments[${PYTHON_USEDEP}]
|
||||
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
dev-python/jinja[${PYTHON_USEDEP}]
|
||||
)
|
||||
qt4? ( || ( dev-python/PyQt4[${PYTHON_USEDEP}] dev-python/pyside[${PYTHON_USEDEP}] )
|
||||
dev-python/pygments[${PYTHON_USEDEP}]
|
||||
dev-python/pyzmq[${PYTHON_USEDEP}] )"
|
||||
DEPEND="${CDEPEND}
|
||||
test? ( dev-python/nose[${PYTHON_USEDEP}] )"
|
||||
|
||||
PY2_REQUSE="|| ( $(python_gen_useflags python2* ) )"
|
||||
REQUIRED_USE="
|
||||
mongodb? ( ${PY2_REQUSE} )
|
||||
notebook? ( ${PY2_REQUSE} )
|
||||
octave? ( ${PY2_REQUSE} )
|
||||
wxwidgets? ( ${PY2_REQUSE} )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/ipython-1.0.0-setuptools.patch"
|
||||
)
|
||||
|
||||
python_prepare_all() {
|
||||
# fix for gentoo python scripts
|
||||
sed -i \
|
||||
-e "/ipython_cmd/s/ipython3/ipython/g" \
|
||||
IPython/terminal/console/tests/test_console.py \
|
||||
IPython/lib/irunner.py \
|
||||
IPython/testing/tools.py || die
|
||||
|
||||
sed -i \
|
||||
-e "s/find_scripts(True, suffix='3')/find_scripts(True)/" \
|
||||
setup.py || die
|
||||
|
||||
# fix gentoo installation directory for documentation
|
||||
sed -i \
|
||||
-e "/docdirbase = pjoin/s/ipython/${PF}/" \
|
||||
-e "/pjoin(docdirbase,'manual')/s/manual/html/" \
|
||||
setupbase.py || die "sed failed"
|
||||
|
||||
if ! use doc; then
|
||||
sed -i \
|
||||
-e "/(pjoin(docdirbase, 'extensions'), igridhelpfiles),/d" \
|
||||
-e 's/ + manual_files//' \
|
||||
setupbase.py || die
|
||||
fi
|
||||
|
||||
if ! use examples; then
|
||||
sed -i \
|
||||
-e 's/+ example_files//' \
|
||||
setupbase.py || die
|
||||
fi
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use emacs && elisp-compile docs/emacs/ipython.el
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# virtualx has trouble with parallel runs.
|
||||
local DISTUTILS_NO_PARALLEL_BUILD=1
|
||||
distutils-r1_src_test
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# https://github.com/ipython/ipython/issues/2083
|
||||
unset PYTHONWARNINGS
|
||||
|
||||
# ipython skips mongodb tests only if it's not running.
|
||||
# since we want the widest test range, and don't want it to fiddle
|
||||
# with user-running mongodb, we always run it if it's available.
|
||||
|
||||
local DB_IP=127.0.0.1
|
||||
local DB_PORT=-1 # disable
|
||||
|
||||
pushd "${BUILD_DIR}"/../IPython/scripts/ > /dev/null
|
||||
|
||||
if has_version dev-db/mongodb; then
|
||||
# please keep in sync with dev-python/pymongo
|
||||
|
||||
local dbpath=${TMPDIR}/mongo.db
|
||||
local logpath=${TMPDIR}/mongod.log
|
||||
|
||||
# prefer starting with non-default one
|
||||
DB_PORT=27018
|
||||
|
||||
mkdir -p "${dbpath}" || die
|
||||
while true; do
|
||||
ebegin "Trying to start mongod on port ${DB_PORT}"
|
||||
|
||||
LC_ALL=C \
|
||||
mongod --dbpath "${dbpath}" --smallfiles --nojournal \
|
||||
--bind_ip ${DB_IP} --port ${DB_PORT} \
|
||||
--unixSocketPrefix "${TMPDIR}" \
|
||||
--logpath "${logpath}" --fork \
|
||||
&& sleep 2
|
||||
|
||||
# Now we need to check if the server actually started...
|
||||
if [[ ${?} -eq 0 && -S "${TMPDIR}"/mongodb-${DB_PORT}.sock ]]; then
|
||||
# yay!
|
||||
eend 0
|
||||
break
|
||||
elif grep -q 'Address already in use' "${logpath}"; then
|
||||
# ay, someone took our port!
|
||||
eend 1
|
||||
: $(( DB_PORT += 1 ))
|
||||
continue
|
||||
else
|
||||
eend 1
|
||||
ewarn "Unable to start mongod for tests."
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# No support for DB_IP and DB_PORT.
|
||||
# https://github.com/ipython/ipython/pull/2910
|
||||
sed -i -e "s:Connection(:&host='${DB_IP}', port=${DB_PORT}:" \
|
||||
"${BUILD_DIR}"/lib/IPython/parallel/tests/test_mongodb.py \
|
||||
|| die "Unable to sed mongod port into tests"
|
||||
|
||||
local fail
|
||||
run_tests() {
|
||||
# Initialize ~/.ipython directory.
|
||||
"${EPYTHON}" ipython </dev/null >/dev/null || fail=1
|
||||
# Run tests (-v for more verbosity).
|
||||
PYTHONPATH=${PYTHONPATH}:. "${EPYTHON}" iptest -v || fail=1
|
||||
}
|
||||
|
||||
VIRTUALX_COMMAND=run_tests virtualmake
|
||||
|
||||
[[ ${DB_PORT} != -1 ]] && mongod --dbpath "${dbpath}" --shutdown
|
||||
[[ ${fail} ]] && die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
ln -snf "${EPREFIX}"/usr/share/mathjax \
|
||||
"${D}$(python_get_sitedir)"/IPython/html/static/mathjax || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
if use emacs; then
|
||||
cd docs/emacs || die
|
||||
elisp-install ${PN} ${PN}.el*
|
||||
elisp-site-file-install "${FILESDIR}"/62ipython-gentoo.el
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use emacs && elisp-site-regen
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use emacs && elisp-site-regen
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST keyring-1.0.zip 61370 SHA256 628070bfb2daa080c98ddb3057a2f802cd1d15720ca40e54bdb2aa39d97485f9 SHA512 6b5002b06c5aa420786e4114c3fdaa75eb79ff72af460dcefba5909224bded2ccd9bd19a7a3847395403283f29d2108ba7679adbc97af5717a539c9f14439dd0 WHIRLPOOL 670e6420001defecbf17f1430fd62b48196d89d5ac4f5bf585c5116fec06bc028ca0c18f64fcf5d0c4dcc10e77674d17e75ce3ba29fb5e14877fa61c4f05ffd0
|
||||
DIST keyring-1.5.zip 80478 SHA256 e7065e8584d3b9724413eaa42198f0b6433a3c097b620bb176fd1e340cfb9dda SHA512 4c283bf7ae64bd38d846b7ff8c74cae6ad59f684c65c130b7dda726e337295cf9c31ad51ad2ef1bd4011e5f92cbd96f7dfd9606f62bcdf6a61e36ee6b3385606 WHIRLPOOL 58c751504e55c40eaea93cdc6abf64ea0c9791f72efef239da3904762d4022f3f993f3816e293a548da58a5c091da18f5eba50e39ef85344b90fa6fa9fa81b2a
|
||||
DIST keyring-3.1.zip 84216 SHA256 4aa49fa03e6d7b79e1490278c7610f6ff224f58ea8dd90b07541b69d0d178fa0 SHA512 79cb5b6932a7c9d0952893286f2c3e817fde3bfadcd42119a72adf2514d628f78aa0b5f13157c4eea31b49928b44dd1b646f62dc6b6da8958c3b95203a21a27f WHIRLPOOL 1cf8556f24e1c0b078914023ed9670eea879ab85f149d0ca4f9189642e18be5f4e5ac7a7f7ccf464fd87e1bd21bf3dd3715249b8959993899f0af2b446a3038f
|
||||
|
@ -0,0 +1,40 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/keyring/keyring-3.1.ebuild,v 1.1 2013/10/23 05:22:25 prometheanfire Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_6,2_7} python{3_2,3_3} pypy2_0 )
|
||||
#tests restricted due to unpackaged dependancies
|
||||
RESTRICT="test"
|
||||
|
||||
inherit distutils-r1
|
||||
DESCRIPTION="Provides access to the system keyring service"
|
||||
HOMEPAGE="https://bitbucket.org/kang/python-keyring-lib"
|
||||
SRC_URI="mirror://pypi/k/${PN}/${P}.zip"
|
||||
|
||||
LICENSE="PSF-2"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SLOT="0"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-runner[${PYTHON_USEDEP}]
|
||||
app-arch/unzip
|
||||
test? ( virtual/python-unittest2[${PYTHON_USEDEP}] )"
|
||||
RDEPEND=""
|
||||
|
||||
PATCHES=(
|
||||
)
|
||||
# "${FILESDIR}/setup-1.0.patch"
|
||||
|
||||
python_test() {
|
||||
# test_backend.py and test_core.py access keyring backends
|
||||
# which may spawn password prompts and do other damage.
|
||||
|
||||
# XXX: leave out the harmless tests (dummy backends?)
|
||||
|
||||
for t in test_{cli,util}.py; do
|
||||
"${PYTHON}" "${BUILD_DIR}"/lib/${PN}/tests/${t} \
|
||||
|| die "${t} fails with ${EPYTHON}"
|
||||
done
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST lesscpy-0.9j.tar.gz 32061 SHA256 fa01d435a1ab3abafba683519bdc7aca5e19399e96225e1a8bc1d660b566364d SHA512 9063b89a1ca8dc8424b3b1989bdf7c31de74e26ab8ab5ede1664f53d1ff1946308d9add65236cd5fabc58efcaf1cb5789fa73f0775a83cb70ea9a73d25207a73 WHIRLPOOL 3e885dc03138a2b693c94af775e4386bc8c2bcecb8b6202a5f80ec5b8435798cb0d06934d7e9eb39e0a54c9861c009a673d6ee7990050f1164e239157047140a
|
@ -0,0 +1,24 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/lesscpy/lesscpy-0.9j.ebuild,v 1.1 2013/10/23 05:45:59 prometheanfire Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A compiler written in Python for the LESS language."
|
||||
HOMEPAGE="https://pypi.python.org/pypi/lesscpy"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
RDEPEND="dev-python/ply[${PYTHON_USEDEP}]"
|
||||
|
||||
python_test() {
|
||||
${PYTHON} lesscpy/test/__main__.py || die "test failed under ${EPYTHON}"
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>python</herd>
|
||||
<maintainer>
|
||||
<email>prometheanfire@gentoo.org</email>
|
||||
<name>Matthew Thode</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
A compiler written in Python for the LESS language.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue