parent
1d732f9eb2
commit
a9088da9e8
@ -1 +1,2 @@
|
||||
DIST cgmanager-0.36.tar.gz 428374 SHA256 f4707f0130efb50ccd8a1900e7ae626c0631947528ce921a63b15ef848fb2a0d SHA512 3325c03e25b7bd7b8dcfb68bb3dedccf9367ce80c23ac8df3f1af6cdb9ee706eafc0f95fcea055cc1fe9b31acb5bb66c61b16b21dfa057e661fdace3ff207f43 WHIRLPOOL dcaad06e6281f89e672b843f9903473cb1ee5d1b938c72d1b806f7bc7a1014144dd9e6e304e9ce6e2b941a1b224177747dacc7affa122f9a17a14598969a4779
|
||||
DIST cgmanager-0.37.tar.gz 430522 SHA256 8309e7f2ae5f4a6b52cc2fca62c098b18ecfe90bca2c9c034ba80f68aa427b6e SHA512 fbe96af36d556c988351f1136f4382d907b8fb6d4098a90b17f4abfbdf182060d8ba059878455a8842597e7ad33ff12b91bddf68a6c42b02ad9549a2ad900a89 WHIRLPOOL 9a78226ec2a6a84c7fb84f3bb2622df159a4b857d990b2d4f22a1d8c7d02d071c0ed046e5d17ea9d2bd4b970a0a6ad9bf59ba68401248db318b89e16010c720a
|
||||
|
@ -0,0 +1,41 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/cgmanager/cgmanager-0.37.ebuild,v 1.1 2015/06/13 14:20:22 hwoarang Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
DESCRIPTION="Control Group manager daemon"
|
||||
HOMEPAGE="https://linuxcontainers.org/cgmanager/introduction/"
|
||||
SRC_URI="https://linuxcontainers.org/downloads/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
|
||||
RDEPEND="
|
||||
sys-libs/libnih[dbus]
|
||||
sys-apps/dbus"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
# systemd expects files in /sbin but we will have them in /usr/sbin
|
||||
pushd config/init/systemd > /dev/null || die
|
||||
sed -i -e "s@sbin@usr/&@" {${PN},cgproxy}.service || \
|
||||
die "Failed to fix paths in systemd service files"
|
||||
popd > /dev/null || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--with-distro=gentoo \
|
||||
--with-init-script=systemd
|
||||
}
|
||||
|
||||
src_install () {
|
||||
default
|
||||
# I see no reason to have the tests in the filesystem. Drop them
|
||||
rm -r "${D}"/usr/share/${PN}/tests || die "Failed to remove ${PN} tests"
|
||||
# FIXME: openRC init scripts are not well tested
|
||||
newinitd "${FILESDIR}"/${PN}.initd ${PN}
|
||||
newinitd "${FILESDIR}"/cgproxy.initd cgproxy
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
DIST sysstat-11.0.2.tar.xz 291256 SHA256 acd87fdfbe7c796480f14fc26119d8f785d26827d74a0f5bced6c492a91f1b96 SHA512 4bb5f2ee14346d83c59bd4da36ae8fc6c13197eabb808b1b5db84b593f07d8b366b1f6329abed8d43e2a8497a89de0f89a398b741d4ca23b4a3a95973b5f0f54 WHIRLPOOL 98daee288e22f803f19bbe423eb999f527e8997f2ffd3fe1fe784363260365ee833dd33b755f44d6bfcc685f70b47cb8fd70fdd9a3fa679829c1e608bd65f8e2
|
||||
DIST sysstat-11.0.3.tar.xz 291344 SHA256 b59ea4bf1a46a248cc04b575c09dd194a7871cf4c9a8d914cf9f32de8455087c SHA512 db0ad6d67742d45f4d03fd43c213a14a681c546681cdef47a6a4abd261603146b00a6cb4af8f0fc5e3400470d2ab2fd78f977b9ef838b7ee6c4a4dcb88fb4250 WHIRLPOOL 1d0cff47d6631fd64f17e13c978279e64adcb5d5d93143f692eef6964e8e142ed1ba73d69ee4f778e52386dfdf341fb51773a162af88de38a00d19e0a38902b9
|
||||
DIST sysstat-11.0.4.tar.xz 293944 SHA256 9a721992e70883c1b9a09d9977501662587b909a014ac0eaa397d30a963acc53 SHA512 99d1015a2216c1a9a4867a2f4874381511f82a82b03b557ba9b32ba096cf1a62a2acfcffa2382ccc4f50be6d047f7fab77a49296875190b1145ceef653df0ef4 WHIRLPOOL 7f374437e5c4a3d9ddaddb3c80ab3641402e4873b4594cef158dc786b2777ce5bc92d7d1de7da677c6585bfbd28ad0f650c4b6847f15369aa054687478ce28c6
|
||||
DIST sysstat-11.1.3.tar.xz 304368 SHA256 ddbd07dfac47bcf0a6c2ae503bd80ad84dbed80c939d3dd333eb8453c38c337b SHA512 96581e31ebd2065ca8f767ec2d9ba362cba707996adda0e0d1f81ff5f77a4709f37f91ae6c4d4e480e9ec8ac63b613c2a2e9249b87df5b4c589e4ce9cf4cc1f8 WHIRLPOOL b303bec7ee9183be09c73badf8fa6a8ea604419da7516a2cccefed2853dbfe7b6cacdcbad90c4aa18ebdb4b3032454f380813542497308dd01111b7ef97199b0
|
||||
DIST sysstat-11.0.5.tar.xz 294020 SHA256 6b165d1664d192a897d0b53ae6db9b279048ed377ed23765d0d4a1b4d21386d6 SHA512 cac99950ffdf04eac18f4d0e9ac14ceac2d57938231dbdbfd1f980b7c656bee8991d96d560595034da874955dc06b207d8041f0a6414b8fd51ee79d859f0ed73 WHIRLPOOL 4debcc810c87663794292cf6c7ba89aa7ee1139019c7e81c69b5f6bd2ae0c195a848e0c87c4baf3182fdfefc40003aac607a022e689b765c3ea7b5d1731015bd
|
||||
DIST sysstat-11.1.4.tar.xz 309656 SHA256 b5d160bacc57a2e89873dee2ea3382b8811f0036520bf2e5789443797c4be46f SHA512 85e48636d8fe766a19bddbef4735175c43de6e4304ef6b17eb70b11143f8757744c2d17c6c818a938db3c0e904367d9d3313f876ce13ae2bce314d4a18a82d61 WHIRLPOOL 95ce9891c608632b46cfd57c440bdf902ab87d953ea9923af916c40c566e74590458f0fb3ab5c3d9a7bf53364393f623c120de8c1a2d07a468a10473e5b154ee
|
||||
DIST sysstat-11.1.5.tar.xz 312436 SHA256 feb3a90d86ffd69cf5b88144a8876ae05bd42384f559676f08100671589fa2bb SHA512 07d4570628cd565f2a7d8f6f3631d9581e5f0c6866af2d1ba56ac2f2484541701e12b6c736631611f2588ba81638ad0a9860d6c4f5edc43296dc7200fac87cca WHIRLPOOL bf3da3b2722267d5980a8ddede370542f149e47eaf70dcbd82f7f300b8e6428e566efdc6f76d9474af9404d885780818a9270d76c725b06a713e0930182a8d33
|
||||
|
@ -1,3 +1,4 @@
|
||||
DIST ltp-20130503.tar.bz2 3819156 SHA256 afdb1479e73d4da7f0d4d5d3fe1570bc5fc96e3317d4a5c10c59c046d3dfa4a0 SHA512 efe7c3e5ffba51b03f01ee66d940d400f4f007dcc42ca45f9597fc1a325950ee14f663762280d63004080c717f16f39bc0d53b5905290470952ef5af3725f089 WHIRLPOOL 924cdc730e85d66d8d7655461e0a59a563b7a9039133b4e991a115d20453f46dda158ac82f474fc8d9ea720a4d03fc67d4d55c231c11d35dc3bfdc5b10a7258b
|
||||
DIST ltp-20140828.tar.bz2 3914567 SHA256 046069523f04d8be8689c9e3f7f475e11d21c3d97506189a4a5e23c80b77492a SHA512 4963184624c8d6686dd9bda171bb2917a16b782f575e73ac18641ee66070b72f34c1e222936c52e529038854bd8d67d05b286d5f1319fd73098823ddbfe29545 WHIRLPOOL 32ec59ccd3cea3e4cfe8f73c4eb2bf8f8a86fd2fd0f82df8afabe8b62fd8e92fc9d3dbde52875d2be241542a6e3608ea5507d5f6495b11c92bcda475f6a69302
|
||||
DIST ltp-20150119.tar.bz2 3920104 SHA256 e0433cb184c57bf4e5493bfbceef3e9ee51a1a9778990fe4e74e62b17b94232f SHA512 ab7a76d700279895442a35507c58d2d1d2e727f3f7dfec067109a8f04bd23d18d0466c20bb1a37af8691bab9260353431e642b493a218b4317357ba8f6aace3a WHIRLPOOL 69c3e79ca8ceb68197ac8905fa7251a31207465d3992c997b4feb4bbd175657b71f667960aed5658aa5e477edf8388ded34a75476d827fb0fa337f4210975f54
|
||||
DIST ltp-20150420.tar.bz2 3893685 SHA256 483a6896b526a2972bc76598c8f1c17f7bc875df2dcb239ad5433a6d5977b79d SHA512 ffdf86a0bd63bb08f59c09e41ccf9b5aa2ac1d407fe39fa37dc3874b9cd60fcea9bf8bbe9481bdf1be4f08973e36b35027463db7da686abaf6233c82865f8215 WHIRLPOOL dd78a04c9084894277f56461992fbe118f20fa8b93b0d5452962eb803d71c611c90f3de2187bdc4fbe80b1078b9602f3e8044e0e6312672020c35a998f492edf
|
||||
|
@ -0,0 +1,84 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/ltp/ltp-20150420.ebuild,v 1.1 2015/06/13 18:55:44 hwoarang Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit autotools eutils readme.gentoo
|
||||
|
||||
MY_PN="${PN}-full"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="A testsuite for the linux kernel"
|
||||
HOMEPAGE="http://ltp.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/ltp/LTP%20Source/${P}/${MY_P}.tar.bz2 -> ${P}.tar.bz2"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="~amd64 ~hppa ~ppc ~x86"
|
||||
IUSE="expect perl pm open-posix python rt"
|
||||
|
||||
DEPEND="expect? ( dev-tcltk/expect )
|
||||
perl? ( dev-lang/perl )
|
||||
python? ( dev-lang/python )"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
S="${WORKDIR}"/${MY_P}
|
||||
|
||||
pkg_setup() {
|
||||
# Don't create groups
|
||||
export CREATE=0
|
||||
|
||||
DOC_CONTENTS="LTP requires root access to run the tests.
|
||||
The LTP root directory is located in /opt/${PN}.
|
||||
For more information please read the ltp-howto located in
|
||||
/usr/share/doc/${PF}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# regenerate
|
||||
AT_M4DIR="m4" eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# FIXME: improve me
|
||||
local myconf=
|
||||
use open-posix && myconf+="--with-open-posix-testsuite "
|
||||
use pm && mytconf+="--with-power-management-testsuite "
|
||||
use rt && myconf+="--with-realtime-testsuite "
|
||||
use perl && myconf+="--with-perl "
|
||||
use python && myconf+="--with-python "
|
||||
use expect && myconf+="--with-expect "
|
||||
# Prevent any kernel stuff for now as it leads to sandbox violations
|
||||
myconf+="--without-modules --with-linux-dir=/dev/null"
|
||||
|
||||
# Better put it into /opt/${PN} as everything needs to
|
||||
# be under the same directory..
|
||||
|
||||
econf --prefix=/opt/${PN} ${myconf}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Posix testsuite does not seem to build with -j>1
|
||||
# Is this maintained anymore?
|
||||
if use open-posix; then
|
||||
export MAKEOPTS="-j1"
|
||||
fi
|
||||
emake
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
dosym /usr/libexec/${PN}/runltp /usr/bin/runltp
|
||||
# install docs
|
||||
dodoc doc/MaintNotes
|
||||
for txt in doc/*.txt; do
|
||||
dodoc ${txt}
|
||||
done
|
||||
dodoc -r doc/testcases
|
||||
dohtml -r doc/automation-*.html
|
||||
doman doc/man1/*.1
|
||||
doman doc/man3/*.3
|
||||
readme.gentoo_create_doc
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/gnupg-2.1.4.ebuild,v 1.3 2015/06/01 19:10:08 grobian Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/gnupg-2.1.5.ebuild,v 1.1 2015/06/12 16:23:41 k_f Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
@ -1,3 +1,4 @@
|
||||
DIST ssdeep-2.10.tar.gz 377718 SHA256 5b893b8059941476352fa1794c2839b2cc13bc2a09e2f2bb6dea4184217beddc SHA512 971eb681ac6e94fee4cf81c4036a652f196297874ed8e547523a6d104323a4fb08385c2aa9a735e9fe49048a822ab538adfaf3bfe2238cc7520bad83ac700753 WHIRLPOOL b05cab9f8d1d9405e2b6e20738aa0642e317dd8e06cd01b93bf6aa0a582badef99d6c3e392a37a174901631ec76192110e243c10fbccd21a85bdca02d908c469
|
||||
DIST ssdeep-2.11.1.tar.gz 376592 SHA256 a632ac30fca29ad5627e1bf5fae05d9a8873e6606314922479259531e0c19608 SHA512 383639f30ee4728898b33f82865188e5b66edcbac4f9f6c39a990154375d286cccfe6fe3112e555cefb9c1e5f7a3e5644e6d9edcde00ddf91d5ac3d59c07348f WHIRLPOOL f46e553a1fa4d0e4a37f6ca1945477c4fc7b2654672db12020ab156e60e190562d141d76fb4b55959c6dcf942ed7fc0e4ab9df62855ce9bcc7312c45fc3214ad
|
||||
DIST ssdeep-2.12.tar.gz 375241 SHA256 89049e87adfd16b51bd8601d01cf02251df7513c4e0eb12576541bcb2e1e4bde SHA512 caf423b816a98b89bbffc6e1c789deb7fd3675efd92543eba779c8a054c4ffa48b87a3fa4d5479f15e300b6ba532dc6f6bf636d3704847f31e3e01b63cc7267f WHIRLPOOL 1b8b64a7f499e8633c3308d0c49e9561fe8a6d97dce12404cdda688df630f682dbdc90b976b041e907d62bba9857fa0b6ac74bc2032b6fbe5d655fe852149328
|
||||
DIST ssdeep-2.13.tar.gz 380712 SHA256 6e4ca94457cb50ff3343d4dd585473817a461a55a666da1c5a74667924f0f8c5 SHA512 26473f1b8801398534c674d7fdd6e87cf4d7862ed91454bb22865f8b6cf885c777250d0d1cdf2c20a28fdf4961c3b21e505e82f37fb75486a9442902d96f5186 WHIRLPOOL 14d5665835f614aa01cfb4607bab5586b5d3469482aff47f88957b4308cff65de7beb01fb423caf071b98593ee72e19cb41f73222ba0ce43d6360865de055a02
|
||||
|
@ -0,0 +1,21 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-crypt/ssdeep/ssdeep-2.13.ebuild,v 1.1 2015/06/13 20:13:05 radhermit Exp $
|
||||
|
||||
EAPI=5
|
||||
AUTOTOOLS_AUTORECONF=1
|
||||
|
||||
inherit autotools-multilib
|
||||
|
||||
DESCRIPTION="Computes context triggered piecewise hashes (fuzzy hashes)"
|
||||
HOMEPAGE="http://ssdeep.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="static-libs"
|
||||
|
||||
DOCS=( AUTHORS ChangeLog FILEFORMAT NEWS README TODO )
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-2.10-shared.patch )
|
@ -0,0 +1,195 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/lxc/lxc-1.1.2-r2.ebuild,v 1.1 2015/06/13 11:54:25 hwoarang Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
MY_P="${P/_/-}"
|
||||
PYTHON_COMPAT=( python{3_3,3_4} )
|
||||
DISTUTILS_OPTIONAL=1
|
||||
|
||||
inherit autotools bash-completion-r1 distutils-r1 eutils linux-info versionator flag-o-matic systemd
|
||||
|
||||
DESCRIPTION="LinuX Containers userspace utilities"
|
||||
HOMEPAGE="https://linuxcontainers.org/"
|
||||
SRC_URI="https://github.com/lxc/lxc/archive/${MY_P}.tar.gz"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64"
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
IUSE="cgmanager doc examples lua python seccomp"
|
||||
|
||||
RDEPEND="net-libs/gnutls
|
||||
sys-libs/libcap
|
||||
cgmanager? ( app-admin/cgmanager )
|
||||
lua? ( >=dev-lang/lua-5.1:= )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
seccomp? ( sys-libs/libseccomp )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( app-text/docbook-sgml-utils )
|
||||
>=sys-kernel/linux-headers-3.2"
|
||||
|
||||
RDEPEND="${RDEPEND}
|
||||
sys-process/criu
|
||||
sys-apps/util-linux
|
||||
app-misc/pax-utils
|
||||
virtual/awk"
|
||||
|
||||
CONFIG_CHECK="~CGROUPS ~CGROUP_DEVICE
|
||||
~CPUSETS ~CGROUP_CPUACCT
|
||||
~CGROUP_SCHED
|
||||
|
||||
~NAMESPACES
|
||||
~IPC_NS ~USER_NS ~PID_NS
|
||||
|
||||
~NETLINK_DIAG ~PACKET_DIAG
|
||||
~INET_UDP_DIAG ~INET_TCP_DIAG
|
||||
~UNIX_DIAG ~CHECKPOINT_RESTORE
|
||||
|
||||
~DEVPTS_MULTIPLE_INSTANCES
|
||||
~CGROUP_FREEZER
|
||||
~UTS_NS ~NET_NS
|
||||
~VETH ~MACVLAN
|
||||
|
||||
~POSIX_MQUEUE
|
||||
~!NETPRIO_CGROUP
|
||||
|
||||
~!GRKERNSEC_CHROOT_MOUNT
|
||||
~!GRKERNSEC_CHROOT_DOUBLE
|
||||
~!GRKERNSEC_CHROOT_PIVOT
|
||||
~!GRKERNSEC_CHROOT_CHMOD
|
||||
~!GRKERNSEC_CHROOT_CAPS
|
||||
"
|
||||
|
||||
ERROR_DEVPTS_MULTIPLE_INSTANCES="CONFIG_DEVPTS_MULTIPLE_INSTANCES: needed for pts inside container"
|
||||
|
||||
ERROR_CGROUP_FREEZER="CONFIG_CGROUP_FREEZER: needed to freeze containers"
|
||||
|
||||
ERROR_UTS_NS="CONFIG_UTS_NS: needed to unshare hostnames and uname info"
|
||||
ERROR_NET_NS="CONFIG_NET_NS: needed for unshared network"
|
||||
|
||||
ERROR_VETH="CONFIG_VETH: needed for internal (host-to-container) networking"
|
||||
ERROR_MACVLAN="CONFIG_MACVLAN: needed for internal (inter-container) networking"
|
||||
|
||||
ERROR_NETLINK_DIAG="CONFIG_NETLINK_DIAG: needed for lxc-checkpoint"
|
||||
ERROR_PACKET_DIAG="CONFIG_PACKET_DIAG: needed for lxc-checkpoint"
|
||||
ERROR_INET_UDP_DIAG="CONFIG_INET_UDP_DIAG: needed for lxc-checkpoint"
|
||||
ERROR_INET_TCP_DIAG="CONFIG_INET_TCP_DIAG: needed for lxc-checkpoint"
|
||||
ERROR_UNIX_DIAG="CONFIG_UNIX_DIAG: needed for lxc-checkpoint"
|
||||
ERROR_CHECKPOINT_RESTORE="CONFIG_CHECKPOINT_RESTORE: needed for lxc-checkpoint"
|
||||
|
||||
ERROR_POSIX_MQUEUE="CONFIG_POSIX_MQUEUE: needed for lxc-execute command"
|
||||
|
||||
ERROR_NETPRIO_CGROUP="CONFIG_NETPRIO_CGROUP: as of kernel 3.3 and lxc 0.8.0_rc1 this causes LXCs to fail booting."
|
||||
|
||||
ERROR_GRKERNSEC_CHROOT_MOUNT="CONFIG_GRKERNSEC_CHROOT_MOUNT: some GRSEC features make LXC unusable see postinst notes"
|
||||
ERROR_GRKERNSEC_CHROOT_DOUBLE="CONFIG_GRKERNSEC_CHROOT_DOUBLE: some GRSEC features make LXC unusable see postinst notes"
|
||||
ERROR_GRKERNSEC_CHROOT_PIVOT="CONFIG_GRKERNSEC_CHROOT_PIVOT: some GRSEC features make LXC unusable see postinst notes"
|
||||
ERROR_GRKERNSEC_CHROOT_CHMOD="CONFIG_GRKERNSEC_CHROOT_CHMOD: some GRSEC features make LXC unusable see postinst notes"
|
||||
ERROR_GRKERNSEC_CHROOT_CAPS="CONFIG_GRKERNSEC_CHROOT_CAPS: some GRSEC features make LXC unusable see postinst notes"
|
||||
|
||||
DOCS=(AUTHORS CONTRIBUTING MAINTAINERS NEWS README doc/FAQ.txt)
|
||||
|
||||
S="${WORKDIR}/${PN}-${MY_P}"
|
||||
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
src_prepare() {
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-1.0.6-bash-completion.patch
|
||||
epatch "${FILESDIR}"/${P}-fix-gentoo-moresecure-template.patch
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
append-flags -fno-strict-aliasing
|
||||
|
||||
if use python; then
|
||||
#541932
|
||||
python_setup "python3*"
|
||||
export PKG_CONFIG_PATH="${T}/${EPYTHON}/pkgconfig:${PKG_CONFIG_PATH}"
|
||||
fi
|
||||
|
||||
# I am not sure about the --with-rootfs-path
|
||||
# /var/lib/lxc is probably more appropriate than
|
||||
# /usr/lib/lxc.
|
||||
econf \
|
||||
--localstatedir=/var \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/bin \
|
||||
--docdir=/usr/share/doc/${PF} \
|
||||
--with-config-path=/var/lib/lxc \
|
||||
--with-rootfs-path=/var/lib/lxc/rootfs \
|
||||
--with-distro=gentoo \
|
||||
--with-runtime-path=/run \
|
||||
--disable-apparmor \
|
||||
$(use_enable cgmanager) \
|
||||
$(use_enable doc) \
|
||||
$(use_enable examples) \
|
||||
$(use_enable lua) \
|
||||
$(use_enable python) \
|
||||
$(use_enable seccomp)
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
distutils-r1_python_compile build_ext -I ../ -L ../${PN}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
|
||||
if use python; then
|
||||
pushd "${S}/src/python-${PN}" > /dev/null
|
||||
distutils-r1_src_compile
|
||||
popd > /dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
mv "${ED}"/usr/share/bash-completion/completions/${PN} "${ED}"/$(get_bashcompdir)/${PN}-start || die
|
||||
bashcomp_alias ${PN}-start \
|
||||
${PN}-{attach,cgroup,clone,console,create,destroy,device,execute,freeze,info,monitor,snapshot,start-ephemeral,stop,unfreeze,wait}
|
||||
|
||||
if use python; then
|
||||
pushd "${S}/src/python-lxc" > /dev/null
|
||||
# Unset DOCS. This has been handled by the default target
|
||||
unset DOCS
|
||||
distutils-r1_src_install
|
||||
popd > /dev/null
|
||||
fi
|
||||
|
||||
keepdir /etc/lxc /var/lib/lxc/rootfs /var/log/lxc
|
||||
|
||||
find "${D}" -name '*.la' -delete
|
||||
|
||||
# Gentoo-specific additions!
|
||||
# Use initd.3 per #517144
|
||||
newinitd "${FILESDIR}/${PN}.initd.3" ${PN}
|
||||
|
||||
# lxc-devsetup script
|
||||
exeinto /usr/libexec/${PN}
|
||||
doexe config/init/systemd/${PN}-devsetup
|
||||
# Remember to compare our systemd unit file with the upstream one
|
||||
# config/init/systemd/lxc.service.in
|
||||
systemd_newunit "${FILESDIR}"/${PN}_at.service.2 "lxc@.service"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog ""
|
||||
elog "Starting from version ${PN}-1.1.0-r3, the default lxc path has been"
|
||||
elog "moved from /etc/lxc to /var/lib/lxc. If you still want to use /etc/lxc"
|
||||
elog "please add the following to your /etc/lxc/default.conf"
|
||||
elog "lxc.lxcpath = /etc/lxc"
|
||||
elog ""
|
||||
elog "There is an init script provided with the package now; no documentation"
|
||||
elog "is currently available though, so please check out /etc/init.d/lxc ."
|
||||
elog "You _should_ only need to symlink it to /etc/init.d/lxc.configname"
|
||||
elog "to start the container defined into /etc/lxc/configname.conf ."
|
||||
elog "For further information about LXC development see"
|
||||
elog "http://blog.flameeyes.eu/tag/lxc" # remove once proper doc is available
|
||||
elog ""
|
||||
}
|
@ -0,0 +1,51 @@
|
||||
https://bugs.gentoo.org/551752
|
||||
|
||||
From 9f7c594c006289ad41169b854d70f5da6e400a2a Mon Sep 17 00:00:00 2001
|
||||
From: Petr Matousek <pmatouse@redhat.com>
|
||||
Date: Sun, 24 May 2015 10:53:44 +0200
|
||||
Subject: [PATCH] pcnet: force the buffer access to be in bounds during tx
|
||||
|
||||
4096 is the maximum length per TMD and it is also currently the size of
|
||||
the relay buffer pcnet driver uses for sending the packet data to QEMU
|
||||
for further processing. With packet spanning multiple TMDs it can
|
||||
happen that the overall packet size will be bigger than sizeof(buffer),
|
||||
which results in memory corruption.
|
||||
|
||||
Fix this by only allowing to queue maximum sizeof(buffer) bytes.
|
||||
|
||||
This is CVE-2015-3209.
|
||||
|
||||
[Fixed 3-space indentation to QEMU's 4-space coding standard.
|
||||
--Stefan]
|
||||
|
||||
Signed-off-by: Petr Matousek <pmatouse@redhat.com>
|
||||
Reported-by: Matt Tait <matttait@google.com>
|
||||
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
|
||||
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
|
||||
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
|
||||
---
|
||||
hw/net/pcnet.c | 8 ++++++++
|
||||
1 file changed, 8 insertions(+)
|
||||
|
||||
diff --git a/hw/net/pcnet.c b/hw/net/pcnet.c
|
||||
index bdfd38f..68b9981 100644
|
||||
--- a/hw/net/pcnet.c
|
||||
+++ b/hw/net/pcnet.c
|
||||
@@ -1241,6 +1241,14 @@ static void pcnet_transmit(PCNetState *s)
|
||||
}
|
||||
|
||||
bcnt = 4096 - GET_FIELD(tmd.length, TMDL, BCNT);
|
||||
+
|
||||
+ /* if multi-tmd packet outsizes s->buffer then skip it silently.
|
||||
+ Note: this is not what real hw does */
|
||||
+ if (s->xmit_pos + bcnt > sizeof(s->buffer)) {
|
||||
+ s->xmit_pos = -1;
|
||||
+ goto txdone;
|
||||
+ }
|
||||
+
|
||||
s->phys_mem_read(s->dma_opaque, PHYSADDR(s, tmd.tbadr),
|
||||
s->buffer + s->xmit_pos, bcnt, CSR_BSWP(s));
|
||||
s->xmit_pos += bcnt;
|
||||
--
|
||||
2.2.0.rc0.207.ga3a616c
|
||||
|
@ -0,0 +1,602 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu/qemu-2.3.0-r2.ebuild,v 1.1 2015/06/12 14:19:29 vapier Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
PYTHON_REQ_USE="ncurses,readline"
|
||||
|
||||
inherit eutils flag-o-matic linux-info toolchain-funcs multilib python-r1 \
|
||||
user udev fcaps readme.gentoo pax-utils
|
||||
|
||||
BACKPORTS=
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
EGIT_REPO_URI="git://git.qemu.org/qemu.git"
|
||||
inherit git-2
|
||||
SRC_URI=""
|
||||
else
|
||||
SRC_URI="http://wiki.qemu-project.org/download/${P}.tar.bz2
|
||||
${BACKPORTS:+
|
||||
http://dev.gentoo.org/~cardoe/distfiles/${P}-${BACKPORTS}.tar.xz}"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
|
||||
fi
|
||||
|
||||
DESCRIPTION="QEMU + Kernel-based Virtual Machine userland tools"
|
||||
HOMEPAGE="http://www.qemu.org http://www.linux-kvm.org"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2 BSD-2"
|
||||
SLOT="0"
|
||||
IUSE="accessibility +aio alsa bluetooth +caps +curl debug +fdt glusterfs \
|
||||
gtk gtk2 infiniband iscsi +jpeg \
|
||||
kernel_linux kernel_FreeBSD lzo ncurses nfs nls numa opengl +pin-upstream-blobs
|
||||
+png pulseaudio python \
|
||||
rbd sasl +seccomp sdl selinux smartcard snappy spice ssh static static-softmmu \
|
||||
static-user systemtap tci test +threads tls usb usbredir +uuid vde +vhost-net \
|
||||
virtfs +vnc xattr xen xfs"
|
||||
|
||||
COMMON_TARGETS="aarch64 alpha arm cris i386 m68k microblaze microblazeel mips
|
||||
mips64 mips64el mipsel or32 ppc ppc64 s390x sh4 sh4eb sparc sparc64 unicore32
|
||||
x86_64"
|
||||
IUSE_SOFTMMU_TARGETS="${COMMON_TARGETS} lm32 moxie ppcemb xtensa xtensaeb"
|
||||
IUSE_USER_TARGETS="${COMMON_TARGETS} armeb mipsn32 mipsn32el ppc64abi32 sparc32plus"
|
||||
|
||||
use_softmmu_targets=$(printf ' qemu_softmmu_targets_%s' ${IUSE_SOFTMMU_TARGETS})
|
||||
use_user_targets=$(printf ' qemu_user_targets_%s' ${IUSE_USER_TARGETS})
|
||||
IUSE+=" ${use_softmmu_targets} ${use_user_targets}"
|
||||
|
||||
# Require at least one softmmu or user target.
|
||||
# Block USE flag configurations known to not work.
|
||||
REQUIRED_USE="|| ( ${use_softmmu_targets} ${use_user_targets} )
|
||||
${PYTHON_REQUIRED_USE}
|
||||
gtk2? ( gtk )
|
||||
qemu_softmmu_targets_arm? ( fdt )
|
||||
qemu_softmmu_targets_microblaze? ( fdt )
|
||||
qemu_softmmu_targets_ppc? ( fdt )
|
||||
qemu_softmmu_targets_ppc64? ( fdt )
|
||||
static? ( static-softmmu static-user )
|
||||
static-softmmu? ( !alsa !pulseaudio !bluetooth !opengl !gtk !gtk2 )
|
||||
virtfs? ( xattr )"
|
||||
|
||||
# Yep, you need both libcap and libcap-ng since virtfs only uses libcap.
|
||||
#
|
||||
# The attr lib isn't always linked in (although the USE flag is always
|
||||
# respected). This is because qemu supports using the C library's API
|
||||
# when available rather than always using the extranl library.
|
||||
COMMON_LIB_DEPEND=">=dev-libs/glib-2.0[static-libs(+)]
|
||||
sys-libs/zlib[static-libs(+)]
|
||||
xattr? ( sys-apps/attr[static-libs(+)] )"
|
||||
SOFTMMU_LIB_DEPEND="${COMMON_LIB_DEPEND}
|
||||
>=x11-libs/pixman-0.28.0[static-libs(+)]
|
||||
aio? ( dev-libs/libaio[static-libs(+)] )
|
||||
caps? ( sys-libs/libcap-ng[static-libs(+)] )
|
||||
curl? ( >=net-misc/curl-7.15.4[static-libs(+)] )
|
||||
fdt? ( >=sys-apps/dtc-1.4.0[static-libs(+)] )
|
||||
glusterfs? ( >=sys-cluster/glusterfs-3.4.0[static-libs(+)] )
|
||||
infiniband? ( sys-infiniband/librdmacm:=[static-libs(+)] )
|
||||
jpeg? ( virtual/jpeg:=[static-libs(+)] )
|
||||
lzo? ( dev-libs/lzo:2[static-libs(+)] )
|
||||
ncurses? ( sys-libs/ncurses[static-libs(+)] )
|
||||
nfs? ( >=net-fs/libnfs-1.9.3[static-libs(+)] )
|
||||
numa? ( sys-process/numactl[static-libs(+)] )
|
||||
png? ( media-libs/libpng:0=[static-libs(+)] )
|
||||
rbd? ( sys-cluster/ceph[static-libs(+)] )
|
||||
sasl? ( dev-libs/cyrus-sasl[static-libs(+)] )
|
||||
sdl? ( >=media-libs/libsdl-1.2.11[static-libs(+)] )
|
||||
seccomp? ( >=sys-libs/libseccomp-2.1.0[static-libs(+)] )
|
||||
snappy? ( app-arch/snappy[static-libs(+)] )
|
||||
spice? ( >=app-emulation/spice-0.12.0[static-libs(+)] )
|
||||
ssh? ( >=net-libs/libssh2-1.2.8[static-libs(+)] )
|
||||
tls? ( net-libs/gnutls[static-libs(+)] )
|
||||
usb? ( >=dev-libs/libusb-1.0.18[static-libs(+)] )
|
||||
uuid? ( >=sys-apps/util-linux-2.16.0[static-libs(+)] )
|
||||
vde? ( net-misc/vde[static-libs(+)] )
|
||||
xfs? ( sys-fs/xfsprogs[static-libs(+)] )"
|
||||
USER_LIB_DEPEND="${COMMON_LIB_DEPEND}"
|
||||
X86_FIRMWARE_DEPEND="
|
||||
>=sys-firmware/ipxe-1.0.0_p20130624
|
||||
pin-upstream-blobs? (
|
||||
~sys-firmware/seabios-1.7.5
|
||||
~sys-firmware/sgabios-0.1_pre8
|
||||
~sys-firmware/vgabios-0.7a
|
||||
)
|
||||
!pin-upstream-blobs? (
|
||||
sys-firmware/seabios
|
||||
sys-firmware/sgabios
|
||||
sys-firmware/vgabios
|
||||
)"
|
||||
CDEPEND="
|
||||
!static-softmmu? ( $(printf "%s? ( ${SOFTMMU_LIB_DEPEND//\[static-libs(+)]} ) " ${use_softmmu_targets}) )
|
||||
!static-user? ( $(printf "%s? ( ${USER_LIB_DEPEND//\[static-libs(+)]} ) " ${use_user_targets}) )
|
||||
qemu_softmmu_targets_i386? ( ${X86_FIRMWARE_DEPEND} )
|
||||
qemu_softmmu_targets_x86_64? ( ${X86_FIRMWARE_DEPEND} )
|
||||
accessibility? ( app-accessibility/brltty )
|
||||
alsa? ( >=media-libs/alsa-lib-1.0.13 )
|
||||
bluetooth? ( net-wireless/bluez )
|
||||
gtk? (
|
||||
gtk2? ( x11-libs/gtk+:2 )
|
||||
!gtk2? ( x11-libs/gtk+:3 )
|
||||
x11-libs/vte:2.90
|
||||
)
|
||||
iscsi? ( net-libs/libiscsi )
|
||||
opengl? ( virtual/opengl )
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
sdl? ( media-libs/libsdl[X] )
|
||||
smartcard? ( dev-libs/nss !app-emulation/libcacard )
|
||||
spice? ( >=app-emulation/spice-protocol-0.12.3 )
|
||||
systemtap? ( dev-util/systemtap )
|
||||
usbredir? ( >=sys-apps/usbredir-0.6 )
|
||||
virtfs? ( sys-libs/libcap )
|
||||
xen? ( app-emulation/xen-tools )"
|
||||
DEPEND="${CDEPEND}
|
||||
dev-lang/perl
|
||||
=dev-lang/python-2*
|
||||
sys-apps/texinfo
|
||||
virtual/pkgconfig
|
||||
kernel_linux? ( >=sys-kernel/linux-headers-2.6.35 )
|
||||
gtk? ( nls? ( sys-devel/gettext ) )
|
||||
static-softmmu? ( $(printf "%s? ( ${SOFTMMU_LIB_DEPEND} ) " ${use_softmmu_targets}) )
|
||||
static-user? ( $(printf "%s? ( ${USER_LIB_DEPEND} ) " ${use_user_targets}) )
|
||||
test? (
|
||||
dev-libs/glib[utils]
|
||||
sys-devel/bc
|
||||
)"
|
||||
RDEPEND="${CDEPEND}
|
||||
selinux? ( sec-policy/selinux-qemu )
|
||||
"
|
||||
|
||||
STRIP_MASK="/usr/share/qemu/palcode-clipper"
|
||||
|
||||
QA_PREBUILT="
|
||||
usr/share/qemu/openbios-ppc
|
||||
usr/share/qemu/openbios-sparc64
|
||||
usr/share/qemu/openbios-sparc32
|
||||
usr/share/qemu/palcode-clipper
|
||||
usr/share/qemu/s390-ccw.img
|
||||
usr/share/qemu/u-boot.e500
|
||||
"
|
||||
|
||||
QA_WX_LOAD="usr/bin/qemu-i386
|
||||
usr/bin/qemu-x86_64
|
||||
usr/bin/qemu-alpha
|
||||
usr/bin/qemu-arm
|
||||
usr/bin/qemu-cris
|
||||
usr/bin/qemu-m68k
|
||||
usr/bin/qemu-microblaze
|
||||
usr/bin/qemu-microblazeel
|
||||
usr/bin/qemu-mips
|
||||
usr/bin/qemu-mipsel
|
||||
usr/bin/qemu-or32
|
||||
usr/bin/qemu-ppc
|
||||
usr/bin/qemu-ppc64
|
||||
usr/bin/qemu-ppc64abi32
|
||||
usr/bin/qemu-sh4
|
||||
usr/bin/qemu-sh4eb
|
||||
usr/bin/qemu-sparc
|
||||
usr/bin/qemu-sparc64
|
||||
usr/bin/qemu-armeb
|
||||
usr/bin/qemu-sparc32plus
|
||||
usr/bin/qemu-s390x
|
||||
usr/bin/qemu-unicore32"
|
||||
|
||||
DOC_CONTENTS="If you don't have kvm compiled into the kernel, make sure
|
||||
you have the kernel module loaded before running kvm. The easiest way to
|
||||
ensure that the kernel module is loaded is to load it on boot.\n
|
||||
For AMD CPUs the module is called 'kvm-amd'\n
|
||||
For Intel CPUs the module is called 'kvm-intel'\n
|
||||
Please review /etc/conf.d/modules for how to load these\n\n
|
||||
Make sure your user is in the 'kvm' group\n
|
||||
Just run 'gpasswd -a <USER> kvm', then have <USER> re-login."
|
||||
|
||||
qemu_support_kvm() {
|
||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386 \
|
||||
use qemu_softmmu_targets_ppc || use qemu_softmmu_targets_ppc64 \
|
||||
use qemu_softmmu_targets_s390x; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
return 1
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
if use kernel_linux && kernel_is lt 2 6 25; then
|
||||
eerror "This version of KVM requres a host kernel of 2.6.25 or higher."
|
||||
elif use kernel_linux; then
|
||||
if ! linux_config_exists; then
|
||||
eerror "Unable to check your kernel for KVM support"
|
||||
else
|
||||
CONFIG_CHECK="~KVM ~TUN ~BRIDGE"
|
||||
ERROR_KVM="You must enable KVM in your kernel to continue"
|
||||
ERROR_KVM_AMD="If you have an AMD CPU, you must enable KVM_AMD in"
|
||||
ERROR_KVM_AMD+=" your kernel configuration."
|
||||
ERROR_KVM_INTEL="If you have an Intel CPU, you must enable"
|
||||
ERROR_KVM_INTEL+=" KVM_INTEL in your kernel configuration."
|
||||
ERROR_TUN="You will need the Universal TUN/TAP driver compiled"
|
||||
ERROR_TUN+=" into your kernel or loaded as a module to use the"
|
||||
ERROR_TUN+=" virtual network device if using -net tap."
|
||||
ERROR_BRIDGE="You will also need support for 802.1d"
|
||||
ERROR_BRIDGE+=" Ethernet Bridging for some network configurations."
|
||||
use vhost-net && CONFIG_CHECK+=" ~VHOST_NET"
|
||||
ERROR_VHOST_NET="You must enable VHOST_NET to have vhost-net"
|
||||
ERROR_VHOST_NET+=" support"
|
||||
|
||||
if use amd64 || use x86 || use amd64-linux || use x86-linux; then
|
||||
CONFIG_CHECK+=" ~KVM_AMD ~KVM_INTEL"
|
||||
fi
|
||||
|
||||
use python && CONFIG_CHECK+=" ~DEBUG_FS"
|
||||
ERROR_DEBUG_FS="debugFS support required for kvm_stat"
|
||||
|
||||
# Now do the actual checks setup above
|
||||
check_extra_config
|
||||
fi
|
||||
fi
|
||||
|
||||
if grep -qs '/usr/bin/qemu-kvm' "${EROOT}"/etc/libvirt/qemu/*.xml; then
|
||||
eerror "The kvm/qemu-kvm wrappers no longer exist, but your libvirt"
|
||||
eerror "instances are still pointing to it. Please update your"
|
||||
eerror "configs in /etc/libvirt/qemu/ to use the -enable-kvm flag"
|
||||
eerror "and the right system binary (e.g. qemu-system-x86_64)."
|
||||
die "update your virt configs to not use qemu-kvm"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup kvm 78
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Alter target makefiles to accept CFLAGS set via flag-o
|
||||
sed -i -r \
|
||||
-e 's/^(C|OP_C|HELPER_C)FLAGS=/\1FLAGS+=/' \
|
||||
Makefile Makefile.target || die
|
||||
|
||||
# Cheap hack to disable gettext .mo generation.
|
||||
use nls || rm -f po/*.po
|
||||
|
||||
epatch "${FILESDIR}"/qemu-1.7.0-cflags.patch
|
||||
epatch "${FILESDIR}"/${P}-CVE-2015-3456.patch #549404
|
||||
epatch "${FILESDIR}"/${P}-CVE-2015-3209.patch #551752
|
||||
[[ -n ${BACKPORTS} ]] && \
|
||||
EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \
|
||||
epatch
|
||||
|
||||
# Fix ld and objcopy being called directly
|
||||
tc-export AR LD OBJCOPY
|
||||
|
||||
# Verbose builds
|
||||
MAKEOPTS+=" V=1"
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
##
|
||||
# configures qemu based on the build directory and the build type
|
||||
# we are using.
|
||||
#
|
||||
qemu_src_configure() {
|
||||
debug-print-function ${FUNCNAME} "$@"
|
||||
|
||||
local buildtype=$1
|
||||
local builddir=$2
|
||||
local static_flag="static-${buildtype}"
|
||||
|
||||
# audio options
|
||||
local audio_opts="oss"
|
||||
use alsa && audio_opts="alsa,${audio_opts}"
|
||||
use sdl && audio_opts="sdl,${audio_opts}"
|
||||
use pulseaudio && audio_opts="pa,${audio_opts}"
|
||||
|
||||
local conf_opts=(
|
||||
--prefix=/usr
|
||||
--sysconfdir=/etc
|
||||
--libdir=/usr/$(get_libdir)
|
||||
--docdir=/usr/share/doc/${PF}/html
|
||||
--disable-bsd-user
|
||||
--disable-guest-agent
|
||||
--disable-strip
|
||||
--disable-werror
|
||||
--python="${PYTHON}"
|
||||
--cc="$(tc-getCC)"
|
||||
--cxx="$(tc-getCXX)"
|
||||
--host-cc="$(tc-getBUILD_CC)"
|
||||
$(use_enable debug debug-info)
|
||||
$(use_enable debug debug-tcg)
|
||||
--enable-docs
|
||||
$(use_enable tci tcg-interpreter)
|
||||
$(use_enable xattr attr)
|
||||
)
|
||||
|
||||
# Disable options not used by user targets as the default configure
|
||||
# options will autoprobe and try to link in a bunch of unused junk.
|
||||
conf_softmmu() {
|
||||
if [[ ${buildtype} == "user" ]] ; then
|
||||
echo "--disable-${2:-$1}"
|
||||
else
|
||||
use_enable "$@"
|
||||
fi
|
||||
}
|
||||
conf_opts+=(
|
||||
$(conf_softmmu accessibility brlapi)
|
||||
$(conf_softmmu aio linux-aio)
|
||||
$(conf_softmmu bluetooth bluez)
|
||||
$(conf_softmmu caps cap-ng)
|
||||
$(conf_softmmu curl)
|
||||
$(conf_softmmu fdt)
|
||||
$(conf_softmmu glusterfs)
|
||||
$(conf_softmmu gtk)
|
||||
$(conf_softmmu infiniband rdma)
|
||||
$(conf_softmmu iscsi libiscsi)
|
||||
$(conf_softmmu jpeg vnc-jpeg)
|
||||
$(conf_softmmu kernel_linux kvm)
|
||||
$(conf_softmmu lzo)
|
||||
$(conf_softmmu ncurses curses)
|
||||
$(conf_softmmu nfs libnfs)
|
||||
$(conf_softmmu numa)
|
||||
$(conf_softmmu opengl)
|
||||
$(conf_softmmu png vnc-png)
|
||||
$(conf_softmmu rbd)
|
||||
$(conf_softmmu sasl vnc-sasl)
|
||||
$(conf_softmmu sdl)
|
||||
$(conf_softmmu seccomp)
|
||||
$(conf_softmmu smartcard smartcard-nss)
|
||||
$(conf_softmmu snappy)
|
||||
$(conf_softmmu spice)
|
||||
$(conf_softmmu ssh libssh2)
|
||||
$(conf_softmmu tls quorum)
|
||||
$(conf_softmmu tls vnc-tls)
|
||||
$(conf_softmmu tls vnc-ws)
|
||||
$(conf_softmmu usb libusb)
|
||||
$(conf_softmmu usbredir usb-redir)
|
||||
$(conf_softmmu uuid)
|
||||
$(conf_softmmu vde)
|
||||
$(conf_softmmu vhost-net)
|
||||
$(conf_softmmu virtfs)
|
||||
$(conf_softmmu vnc)
|
||||
$(conf_softmmu xen)
|
||||
$(conf_softmmu xen xen-pci-passthrough)
|
||||
$(conf_softmmu xfs xfsctl)
|
||||
)
|
||||
|
||||
case ${buildtype} in
|
||||
user)
|
||||
conf_opts+=(
|
||||
--enable-linux-user
|
||||
--disable-system
|
||||
--target-list="${user_targets}"
|
||||
--disable-blobs
|
||||
--disable-tools
|
||||
)
|
||||
;;
|
||||
softmmu)
|
||||
conf_opts+=(
|
||||
--disable-linux-user
|
||||
--enable-system
|
||||
--target-list="${softmmu_targets}"
|
||||
--with-system-pixman
|
||||
--audio-drv-list="${audio_opts}"
|
||||
)
|
||||
use gtk && conf_opts+=( --with-gtkabi=$(usex gtk2 2.0 3.0) )
|
||||
;;
|
||||
esac
|
||||
|
||||
# Add support for SystemTAP
|
||||
use systemtap && conf_opts+=( --enable-trace-backend=dtrace )
|
||||
|
||||
# We always want to attempt to build with PIE support as it results
|
||||
# in a more secure binary. But it doesn't work with static or if
|
||||
# the current GCC doesn't have PIE support.
|
||||
if use ${static_flag}; then
|
||||
conf_opts+=( --static --disable-pie )
|
||||
else
|
||||
gcc-specs-pie && conf_opts+=( --enable-pie )
|
||||
fi
|
||||
|
||||
einfo "../configure ${conf_opts[*]}"
|
||||
cd "${builddir}"
|
||||
../configure "${conf_opts[@]}" || die "configure failed"
|
||||
|
||||
# FreeBSD's kernel does not support QEMU assigning/grabbing
|
||||
# host USB devices yet
|
||||
use kernel_FreeBSD && \
|
||||
sed -i -E -e "s|^(HOST_USB=)bsd|\1stub|" "${S}"/config-host.mak
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local target
|
||||
|
||||
python_setup
|
||||
|
||||
softmmu_targets= softmmu_bins=()
|
||||
user_targets= user_bins=()
|
||||
|
||||
for target in ${IUSE_SOFTMMU_TARGETS} ; do
|
||||
if use "qemu_softmmu_targets_${target}"; then
|
||||
softmmu_targets+=",${target}-softmmu"
|
||||
softmmu_bins+=( "qemu-system-${target}" )
|
||||
fi
|
||||
done
|
||||
|
||||
for target in ${IUSE_USER_TARGETS} ; do
|
||||
if use "qemu_user_targets_${target}"; then
|
||||
user_targets+=",${target}-linux-user"
|
||||
user_bins+=( "qemu-${target}" )
|
||||
fi
|
||||
done
|
||||
|
||||
[[ -n ${softmmu_targets} ]] && \
|
||||
einfo "Building the following softmmu targets: ${softmmu_targets}"
|
||||
|
||||
[[ -n ${user_targets} ]] && \
|
||||
einfo "Building the following user targets: ${user_targets}"
|
||||
|
||||
if [[ -n ${softmmu_targets} ]]; then
|
||||
mkdir "${S}/softmmu-build"
|
||||
qemu_src_configure "softmmu" "${S}/softmmu-build"
|
||||
fi
|
||||
|
||||
if [[ -n ${user_targets} ]]; then
|
||||
mkdir "${S}/user-build"
|
||||
qemu_src_configure "user" "${S}/user-build"
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if [[ -n ${user_targets} ]]; then
|
||||
cd "${S}/user-build"
|
||||
default
|
||||
fi
|
||||
|
||||
if [[ -n ${softmmu_targets} ]]; then
|
||||
cd "${S}/softmmu-build"
|
||||
default
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
if [[ -n ${softmmu_targets} ]]; then
|
||||
cd "${S}/softmmu-build"
|
||||
pax-mark m */qemu-system-* #515550
|
||||
emake -j1 check
|
||||
emake -j1 check-report.html
|
||||
fi
|
||||
}
|
||||
|
||||
qemu_python_install() {
|
||||
python_domodule "${S}/scripts/qmp/qmp.py"
|
||||
|
||||
python_doscript "${S}/scripts/kvm/kvm_stat"
|
||||
python_doscript "${S}/scripts/kvm/vmxcap"
|
||||
python_doscript "${S}/scripts/qmp/qmp-shell"
|
||||
python_doscript "${S}/scripts/qmp/qemu-ga-client"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if [[ -n ${user_targets} ]]; then
|
||||
cd "${S}/user-build"
|
||||
emake DESTDIR="${ED}" install
|
||||
|
||||
# Install binfmt handler init script for user targets
|
||||
newinitd "${FILESDIR}/qemu-binfmt.initd-r1" qemu-binfmt
|
||||
fi
|
||||
|
||||
if [[ -n ${softmmu_targets} ]]; then
|
||||
cd "${S}/softmmu-build"
|
||||
emake DESTDIR="${ED}" install
|
||||
|
||||
# This might not exist if the test failed. #512010
|
||||
[[ -e check-report.html ]] && dohtml check-report.html
|
||||
|
||||
if use kernel_linux; then
|
||||
udev_dorules "${FILESDIR}"/65-kvm.rules
|
||||
fi
|
||||
|
||||
if use python; then
|
||||
python_foreach_impl qemu_python_install
|
||||
fi
|
||||
fi
|
||||
|
||||
# Disable mprotect on the qemu binaries as they use JITs to be fast #459348
|
||||
pushd "${ED}"/usr/bin >/dev/null
|
||||
pax-mark m "${softmmu_bins[@]}" "${user_bins[@]}"
|
||||
popd >/dev/null
|
||||
|
||||
# Install config file example for qemu-bridge-helper
|
||||
insinto "/etc/qemu"
|
||||
doins "${FILESDIR}/bridge.conf"
|
||||
|
||||
# Remove the docdir placed qmp-commands.txt
|
||||
mv "${ED}/usr/share/doc/${PF}/html/qmp-commands.txt" "${S}/docs/qmp/"
|
||||
|
||||
cd "${S}"
|
||||
dodoc Changelog MAINTAINERS docs/specs/pci-ids.txt
|
||||
newdoc pc-bios/README README.pc-bios
|
||||
dodoc docs/qmp/*.txt
|
||||
|
||||
# Remove SeaBIOS since we're using the SeaBIOS packaged one
|
||||
rm "${ED}/usr/share/qemu/bios.bin"
|
||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386; then
|
||||
dosym ../seabios/bios.bin /usr/share/qemu/bios.bin
|
||||
fi
|
||||
|
||||
# Remove vgabios since we're using the vgabios packaged one
|
||||
if [[ -n ${softmmu_targets} ]]; then
|
||||
rm "${ED}/usr/share/qemu/vgabios.bin"
|
||||
rm "${ED}/usr/share/qemu/vgabios-cirrus.bin"
|
||||
rm "${ED}/usr/share/qemu/vgabios-qxl.bin"
|
||||
rm "${ED}/usr/share/qemu/vgabios-stdvga.bin"
|
||||
rm "${ED}/usr/share/qemu/vgabios-vmware.bin"
|
||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386; then
|
||||
dosym ../vgabios/vgabios.bin /usr/share/qemu/vgabios.bin
|
||||
dosym ../vgabios/vgabios-cirrus.bin /usr/share/qemu/vgabios-cirrus.bin
|
||||
dosym ../vgabios/vgabios-qxl.bin /usr/share/qemu/vgabios-qxl.bin
|
||||
dosym ../vgabios/vgabios-stdvga.bin /usr/share/qemu/vgabios-stdvga.bin
|
||||
dosym ../vgabios/vgabios-vmware.bin /usr/share/qemu/vgabios-vmware.bin
|
||||
fi
|
||||
|
||||
# Remove sgabios since we're using the sgabios packaged one
|
||||
rm "${ED}/usr/share/qemu/sgabios.bin"
|
||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386; then
|
||||
dosym ../sgabios/sgabios.bin /usr/share/qemu/sgabios.bin
|
||||
fi
|
||||
|
||||
# Remove iPXE since we're using the iPXE packaged one
|
||||
rm "${ED}"/usr/share/qemu/pxe-*.rom
|
||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386; then
|
||||
dosym ../ipxe/8086100e.rom /usr/share/qemu/pxe-e1000.rom
|
||||
dosym ../ipxe/80861209.rom /usr/share/qemu/pxe-eepro100.rom
|
||||
dosym ../ipxe/10500940.rom /usr/share/qemu/pxe-ne2k_pci.rom
|
||||
dosym ../ipxe/10222000.rom /usr/share/qemu/pxe-pcnet.rom
|
||||
dosym ../ipxe/10ec8139.rom /usr/share/qemu/pxe-rtl8139.rom
|
||||
dosym ../ipxe/1af41000.rom /usr/share/qemu/pxe-virtio.rom
|
||||
fi
|
||||
fi
|
||||
|
||||
qemu_support_kvm && readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if qemu_support_kvm; then
|
||||
readme.gentoo_print_elog
|
||||
ewarn "Migration from qemu-kvm instances and loading qemu-kvm created"
|
||||
ewarn "save states has been removed starting with the 1.6.2 release"
|
||||
ewarn
|
||||
ewarn "It is recommended that you migrate any VMs that may be running"
|
||||
ewarn "on qemu-kvm to a host with a newer qemu and regenerate"
|
||||
ewarn "any saved states with a newer qemu."
|
||||
ewarn
|
||||
ewarn "qemu-kvm was the primary qemu provider in Gentoo through 1.2.x"
|
||||
|
||||
if use x86 || use amd64; then
|
||||
ewarn
|
||||
ewarn "The /usr/bin/kvm and /usr/bin/qemu-kvm wrappers are no longer"
|
||||
ewarn "installed. In order to use kvm acceleration, pass the flag"
|
||||
ewarn "-enable-kvm when running your system target."
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ -n ${softmmu_targets} ]] && use kernel_linux; then
|
||||
udev_reload
|
||||
fi
|
||||
|
||||
fcaps cap_net_admin /usr/libexec/qemu-bridge-helper
|
||||
if use virtfs && [ -n "${softmmu_targets}" ]; then
|
||||
local virtfs_caps="cap_chown,cap_dac_override,cap_fowner,cap_fsetid,cap_setgid,cap_mknod,cap_setuid"
|
||||
fcaps ${virtfs_caps} /usr/bin/virtfs-proxy-helper
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_info() {
|
||||
echo "Using:"
|
||||
echo " $(best_version app-emulation/spice-protocol)"
|
||||
echo " $(best_version sys-firmware/ipxe)"
|
||||
echo " $(best_version sys-firmware/seabios)"
|
||||
if has_version sys-firmware/seabios[binary]; then
|
||||
echo " USE=binary"
|
||||
else
|
||||
echo " USE=''"
|
||||
fi
|
||||
echo " $(best_version sys-firmware/vgabios)"
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST screen-4.0.3.tar.gz 840602 SHA256 78f0d5b1496084a5902586304d4a73954b2bfe33ea13edceecf21615c39e6c77 SHA512 24c1f598972f3dc9ed49cd2c05852190a0190d22fa01401eee8484627c8dd2815f0a422d9b2697faa8aaa0b3efc6730a94e2d5aa787dbe5e9ec719143176c338 WHIRLPOOL 6774786126eb05749d432593bc2c1febdc57896959220a609feb138bdc16b8da278aea63af1ccfd5c7d38ccaa9e7d28980e9e14d0009d36a54cdbd9e4cb0fca7
|
||||
DIST screen-4.2.1.tar.gz 1062485 SHA256 5468545047e301d2b3579f9d9ce00466d14a7eec95ce806e3834a3d6b0b9b080 SHA512 30826b2a2fc436483276b90cc4c6679470f7ccb7098c9bb8457d0e534998cd12da02882cf80678465f6540cade170c3fdc6bdfa31b07359ff0d3ffe2d6063710 WHIRLPOOL 7d4209651a016a9ab91aec385532c6ebd7a6d96a60342721f3a53752924c3fb72aa3d648ad665b67fab0a78d6019396abe13e04f556c7e5e9f71bf3238e64cc5
|
||||
DIST screen-4.3.0.tar.gz 845838 SHA256 5164e89bcc60d7193177e6e02885cc42411d1d815c839e174fb9abafb9658c46 SHA512 35997a2763be739bd74eaafbb22ede0ac909de7111281b2350b281c846fc04c777a75dd4eab2a63e00653285aaa7b0950f901bf2a03af7cf3c38e17c52964269 WHIRLPOOL dba11a06587c506145a57efe188c6b18e71d28892fe0a1dc640ac113f565c72b964a795f57a939b83a902d3b4eab459d573542f5badea483724d6f655335a182
|
||||
|
@ -0,0 +1,14 @@
|
||||
--- screen-4.3.0/configure.ac
|
||||
+++ screen-4.3.0/configure.ac
|
||||
@@ -878,11 +878,6 @@
|
||||
#include <utmp.h>
|
||||
#endif
|
||||
],[struct utmp u; u.ut_host[0] = 0;], AC_DEFINE(UTHOST))
|
||||
-AC_CHECK_HEADER(utempter.h, have_utempter=yes, have_utempter=no)
|
||||
-if test "$have_utempter" = yes; then
|
||||
- AC_DEFINE(HAVE_UTEMPTER)
|
||||
- LIBS="$LIBS -lutempter"
|
||||
-fi
|
||||
|
||||
dnl
|
||||
dnl **** loadav ****
|
@ -0,0 +1,145 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/screen/screen-4.3.0.ebuild,v 1.1 2015/06/13 23:29:25 polynomial-c Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit autotools eutils flag-o-matic pam toolchain-funcs user
|
||||
|
||||
DESCRIPTION="Full-screen window manager that multiplexes physical terminals between several processes"
|
||||
HOMEPAGE="http://www.gnu.org/software/screen/"
|
||||
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS=" ~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~hppa-hpux ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="debug nethack pam selinux multiuser"
|
||||
|
||||
CDEPEND=">=sys-libs/ncurses-5.2
|
||||
pam? ( virtual/pam )"
|
||||
RDEPEND="${CDEPEND}
|
||||
selinux? ( sec-policy/selinux-screen )"
|
||||
DEPEND="${CDEPEND}
|
||||
sys-apps/texinfo"
|
||||
|
||||
pkg_setup() {
|
||||
# Make sure utmp group exists, as it's used later on.
|
||||
enewgroup utmp 406
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Don't use utempter even if it is found on the system
|
||||
epatch "${FILESDIR}"/${PN}-4.3.0-no-utempter.patch
|
||||
|
||||
# sched.h is a system header and causes problems with some C libraries
|
||||
mv sched.h _sched.h || die
|
||||
sed -i '/include/ s:sched.h:_sched.h:' screen.h || die
|
||||
|
||||
# Fix manpage.
|
||||
sed -i \
|
||||
-e "s:/usr/local/etc/screenrc:${EPREFIX}/etc/screenrc:g" \
|
||||
-e "s:/usr/local/screens:${EPREFIX}/tmp/screen:g" \
|
||||
-e "s:/local/etc/screenrc:${EPREFIX}/etc/screenrc:g" \
|
||||
-e "s:/etc/utmp:${EPREFIX}/var/run/utmp:g" \
|
||||
-e "s:/local/screens/S-:${EPREFIX}/tmp/screen/S-:g" \
|
||||
doc/screen.1 \
|
||||
|| die
|
||||
|
||||
# reconfigure
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
append-cppflags "-DMAXWIN=${MAX_SCREEN_WINDOWS:-100}"
|
||||
|
||||
if [[ ${CHOST} == *-solaris* ]] ; then
|
||||
# https://lists.gnu.org/archive/html/screen-devel/2014-04/msg00095.html
|
||||
append-cppflags -D_XOPEN_SOURCE \
|
||||
-D_XOPEN_SOURCE_EXTENDED=1 \
|
||||
-D__EXTENSIONS__
|
||||
append-libs -lsocket -lnsl
|
||||
fi
|
||||
|
||||
use nethack || append-cppflags "-DNONETHACK"
|
||||
use debug && append-cppflags "-DDEBUG"
|
||||
|
||||
econf \
|
||||
--with-socket-dir="${EPREFIX}/tmp/screen" \
|
||||
--with-sys-screenrc="${EPREFIX}/etc/screenrc" \
|
||||
--with-pty-mode=0620 \
|
||||
--with-pty-group=5 \
|
||||
--enable-rxvt_osc \
|
||||
--enable-telnet \
|
||||
--enable-colors256 \
|
||||
$(use_enable pam)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
LC_ALL=POSIX emake comm.h term.h
|
||||
emake osdef.h
|
||||
|
||||
emake -C doc screen.info
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local tmpfiles_perms tmpfiles_group
|
||||
|
||||
dobin screen
|
||||
|
||||
if use multiuser || use prefix
|
||||
then
|
||||
fperms 4755 /usr/bin/screen
|
||||
tmpfiles_perms="0755"
|
||||
tmpfiles_group="root"
|
||||
else
|
||||
fowners root:utmp /usr/bin/screen
|
||||
fperms 2755 /usr/bin/screen
|
||||
tmpfiles_perms="0775"
|
||||
tmpfiles_group="utmp"
|
||||
fi
|
||||
|
||||
dodir /etc/tmpfiles.d
|
||||
echo "d /tmp/screen ${tmpfiles_perms} root ${tmpfiles_group}" \
|
||||
> "${ED}"/etc/tmpfiles.d/screen.conf
|
||||
|
||||
insinto /usr/share/screen
|
||||
doins terminfo/{screencap,screeninfo.src}
|
||||
insinto /usr/share/screen/utf8encodings
|
||||
doins utf8encodings/??
|
||||
insinto /etc
|
||||
doins "${FILESDIR}"/screenrc
|
||||
|
||||
pamd_mimic_system screen auth
|
||||
|
||||
dodoc \
|
||||
README ChangeLog INSTALL TODO NEWS* patchlevel.h \
|
||||
doc/{FAQ,README.DOTSCREEN,fdpat.ps,window_to_display.ps}
|
||||
|
||||
doman doc/screen.1
|
||||
doinfo doc/screen.info
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -z ${REPLACING_VERSIONS} ]]
|
||||
then
|
||||
elog "Some dangerous key bindings have been removed or changed to more safe values."
|
||||
elog "We enable some xterm hacks in our default screenrc, which might break some"
|
||||
elog "applications. Please check /etc/screenrc for information on these changes."
|
||||
fi
|
||||
|
||||
# Add /tmp/screen in case it doesn't exist yet. This should solve
|
||||
# problems like bug #508634 where tmpfiles.d isn't in effect.
|
||||
local rundir="${EROOT%/}/tmp/screen"
|
||||
if [[ ! -d ${rundir} ]] ; then
|
||||
if use multiuser || use prefix ; then
|
||||
tmpfiles_group="root"
|
||||
else
|
||||
tmpfiles_group="utmp"
|
||||
fi
|
||||
mkdir -m 0775 "${rundir}"
|
||||
chgrp ${tmpfiles_group} "${rundir}"
|
||||
fi
|
||||
|
||||
ewarn "This revision changes the screen socket location to ${rundir}"
|
||||
}
|
@ -0,0 +1,96 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/gammu/gammu-1.33.0-r1.ebuild,v 1.1 2015/06/12 19:02:47 mgorny Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit eutils cmake-utils python-single-r1
|
||||
|
||||
DESCRIPTION="A tool to handle your cellular phone"
|
||||
HOMEPAGE="http://www.wammu.eu/"
|
||||
SRC_URI="http://dl.cihar.com/${PN}/releases/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="bluetooth curl dbi debug irda mysql nls postgres python usb"
|
||||
|
||||
# TODO: figure out a way to disable gudev
|
||||
RDEPEND="dev-libs/glib:2=
|
||||
virtual/libgudev:=
|
||||
bluetooth? ( net-wireless/bluez:= )
|
||||
curl? ( net-misc/curl:= )
|
||||
dbi? ( >=dev-db/libdbi-0.8.3:= )
|
||||
mysql? ( virtual/mysql:= )
|
||||
postgres? ( dev-db/postgresql:=[server] )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
usb? ( virtual/libusb:1= )
|
||||
dev-util/dialog"
|
||||
DEPEND="${RDEPEND}
|
||||
irda? ( virtual/os-headers )
|
||||
nls? ( sys-devel/gettext )"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
# sys-devel/gettext is needed for creating .mo files
|
||||
# Supported languages and translated documentation
|
||||
# Be sure all languages are prefixed with a single space!
|
||||
MY_AVAILABLE_LINGUAS=" af ar bg ca cs da de el en_GB es et fi fr gl he hu id it ko nl pl pt_BR ru sk sv sw tr zh_CN zh_TW"
|
||||
IUSE="${IUSE} ${MY_AVAILABLE_LINGUAS// / linguas_}"
|
||||
|
||||
pkg_setup() {
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${PN}-skip-locktest.patch"
|
||||
epatch "${FILESDIR}/${PN}-1.32.0-bashcompdir.patch"
|
||||
|
||||
local lang support_linguas=no
|
||||
for lang in ${MY_AVAILABLE_LINGUAS} ; do
|
||||
if use linguas_${lang} ; then
|
||||
support_linguas=yes
|
||||
break
|
||||
fi
|
||||
done
|
||||
# install all languages when all selected LINGUAS aren't supported
|
||||
if [ "${support_linguas}" = "yes" ]; then
|
||||
for lang in ${MY_AVAILABLE_LINGUAS} ; do
|
||||
if ! use linguas_${lang} ; then
|
||||
rm -rf locale/${lang} || die
|
||||
fi
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# debug flag is used inside cmake-utils.eclass
|
||||
local mycmakeargs=(
|
||||
$(cmake-utils_use_with bluetooth Bluez)
|
||||
$(cmake-utils_use_with irda IRDA)
|
||||
$(cmake-utils_use_with curl CURL)
|
||||
$(cmake-utils_use_with usb USB)
|
||||
$(cmake-utils_use_with python PYTHON)
|
||||
$(cmake-utils_use_with mysql MySQL)
|
||||
$(cmake-utils_use_with postgres Postgres)
|
||||
$(cmake-utils_use_with dbi LibDBI)
|
||||
$(cmake-utils_use_with nls GettextLibs)
|
||||
$(cmake-utils_use_with nls Iconv)
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
-DINSTALL_DOC_DIR="share/doc/${PF}"
|
||||
)
|
||||
if use python; then
|
||||
mycmakeargs+=( -DBUILD_PYTHON="${PYTHON}" )
|
||||
fi
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
LD_LIBRARY_PATH="${WORKDIR}/${PN}_build/common" cmake-utils_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
use python && python_optimize
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
From 286688cb68c9989f697203ca779b08fad23366db Mon Sep 17 00:00:00 2001
|
||||
From: Mike Frysinger <vapier@gentoo.org>
|
||||
Date: Fri, 12 Jun 2015 05:05:41 -0400
|
||||
Subject: [PATCH] tests: force TZ to UTC for everyone
|
||||
|
||||
This should make test outputs more stable across systems.
|
||||
|
||||
URL: https://bugs.gentoo.org/551806
|
||||
Reported-by: Nikoli <nikoli@gmx.us>
|
||||
---
|
||||
tests/init.sh | 2 ++
|
||||
tests/qlop/list01.good | 4 ++--
|
||||
2 files changed, 4 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/tests/init.sh b/tests/init.sh
|
||||
index b3f634e..11fd379 100644
|
||||
--- a/tests/init.sh
|
||||
+++ b/tests/init.sh
|
||||
@@ -33,6 +33,8 @@ setup_env
|
||||
unset ROOT PORTAGE_CONFIGROOT PORTAGE_QUIET
|
||||
# but make sure we don't implicitly rely on user's setup
|
||||
export PORTAGE_CONFIGROOT="${ab}/not/a/real/path"
|
||||
+# Always use UTC for timestamps to keep tests stable. #551806
|
||||
+export TZ='UTC 0'
|
||||
|
||||
q -i -q
|
||||
|
||||
diff --git a/tests/qlop/list01.good b/tests/qlop/list01.good
|
||||
index 458c751..fc8683c 100644
|
||||
--- a/tests/qlop/list01.good
|
||||
+++ b/tests/qlop/list01.good
|
||||
@@ -1,2 +1,2 @@
|
||||
-Thu Jan 27 00:42:17 2005 >>> rsync://192.168.0.5/gentoo-portage
|
||||
-Sat May 16 04:21:00 2015 >>> gentoo
|
||||
+Thu Jan 27 05:42:17 2005 >>> rsync://192.168.0.5/gentoo-portage
|
||||
+Sat May 16 08:21:00 2015 >>> gentoo
|
||||
--
|
||||
2.4.1
|
||||
|
@ -1,226 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/acroread/acroread-9.5.5-r2.ebuild,v 1.2 2014/12/16 13:25:37 pacho Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils gnome2-utils nsplugins
|
||||
|
||||
DESCRIPTION="Adobe's PDF reader"
|
||||
SRC_URI="http://ardownload.adobe.com/pub/adobe/reader/unix/9.x/${PV}/enu/AdbeRdr${PV}-1_i486linux_enu.tar.bz2"
|
||||
HOMEPAGE="http://www.adobe.com/products/reader/"
|
||||
|
||||
LICENSE="Adobe"
|
||||
KEYWORDS="-* amd64 x86 ~amd64-linux ~x86-linux"
|
||||
SLOT="0"
|
||||
IUSE="html ldap nsplugin"
|
||||
# asian fonts from separate package:
|
||||
IUSE+=" linguas_zh_CN linguas_zh_TW linguas_ja linguas_ko"
|
||||
|
||||
RESTRICT="strip mirror"
|
||||
|
||||
DEPEND="dev-util/bsdiff"
|
||||
RDEPEND="|| ( (
|
||||
dev-libs/atk[abi_x86_32(-)]
|
||||
dev-libs/glib:2[abi_x86_32(-)]
|
||||
dev-libs/libxml2[abi_x86_32(-)]
|
||||
dev-libs/openssl:0.9.8[abi_x86_32(-)]
|
||||
media-libs/fontconfig[abi_x86_32(-)]
|
||||
virtual/glu[abi_x86_32(-)]
|
||||
>=net-dns/libidn-1.28[abi_x86_32(-)]
|
||||
sys-libs/zlib[abi_x86_32(-)]
|
||||
x11-libs/gdk-pixbuf:2[abi_x86_32(-)]
|
||||
>=x11-libs/gtk+-2.24.23:2[abi_x86_32(-)]
|
||||
x11-libs/libX11[abi_x86_32(-)]
|
||||
x11-libs/libXext[abi_x86_32(-)]
|
||||
x11-libs/pango[abi_x86_32(-)]
|
||||
|| (
|
||||
>=x11-libs/pangox-compat-0.0.2[abi_x86_32(-)]
|
||||
<x11-libs/pango-1.31[X]
|
||||
)
|
||||
) (
|
||||
app-emulation/emul-linux-x86-gtklibs[-abi_x86_32(-)]
|
||||
app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
|
||||
app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
|
||||
app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
) )
|
||||
nsplugin? ( || (
|
||||
x11-libs/libXt[abi_x86_32(-)]
|
||||
app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
|
||||
) )
|
||||
ldap? ( || (
|
||||
>=net-nds/openldap-2.4.38-r1[abi_x86_32(-)]
|
||||
app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
) )
|
||||
x86? ( html? (
|
||||
|| (
|
||||
www-client/firefox-bin
|
||||
www-client/firefox
|
||||
www-client/seamonkey-bin
|
||||
www-client/seamonkey
|
||||
)
|
||||
) )
|
||||
linguas_zh_CN? ( media-fonts/acroread-asianfonts[linguas_zh_CN] )
|
||||
linguas_ja? ( media-fonts/acroread-asianfonts[linguas_ja] )
|
||||
linguas_zh_TW? ( media-fonts/acroread-asianfonts[linguas_zh_TW] )
|
||||
linguas_ko? ( media-fonts/acroread-asianfonts[linguas_ko] )"
|
||||
|
||||
QA_EXECSTACK="
|
||||
opt/Adobe/Reader9/Reader/intellinux/bin/acroread
|
||||
opt/Adobe/Reader9/Reader/intellinux/lib/libauthplay.so.0.0.0
|
||||
opt/Adobe/Reader9/Reader/intellinux/lib/libsccore.so
|
||||
opt/Adobe/Reader9/Reader/intellinux/lib/libcrypto.so.0.9.8
|
||||
opt/Adobe/Reader9/Reader/intellinux/plug_ins/PPKLite.api
|
||||
"
|
||||
QA_FLAGS_IGNORED="
|
||||
opt/Adobe/Reader9/Reader/intellinux/plug_ins3d/.*.x3d
|
||||
opt/Adobe/Reader9/Reader/intellinux/lib/lib.*
|
||||
opt/Adobe/Reader9/Reader/intellinux/bin/SynchronizerApp-binary
|
||||
opt/Adobe/Reader9/Reader/intellinux/bin/acroread
|
||||
opt/Adobe/Reader9/Reader/intellinux/bin/xdg-user-dirs-update
|
||||
opt/Adobe/Reader9/Reader/intellinux/SPPlugins/ADMPlugin.apl
|
||||
opt/Adobe/Reader9/Reader/intellinux/plug_ins/AcroForm/PMP/.*.pmp
|
||||
opt/Adobe/Reader9/Reader/intellinux/plug_ins/Multimedia/MPP/.*.mpp
|
||||
opt/Adobe/Reader9/Reader/intellinux/plug_ins/.*.api
|
||||
opt/Adobe/Reader9/Reader/intellinux/sidecars/.*.DEU
|
||||
opt/Adobe/Reader9/Browser/intellinux/nppdf.so
|
||||
opt/netscape/plugins/nppdf.so
|
||||
"
|
||||
QA_TEXTRELS="
|
||||
opt/Adobe/Reader9/Reader/intellinux/lib/libextendscript.so
|
||||
opt/Adobe/Reader9/Reader/intellinux/lib/libsccore.so
|
||||
"
|
||||
|
||||
INSTALLDIR=/opt
|
||||
|
||||
S="${WORKDIR}/AdobeReader"
|
||||
|
||||
# remove bundled libs to force use of system version, bug 340527
|
||||
REMOVELIBS="libcrypto libssl"
|
||||
|
||||
pkg_setup() {
|
||||
# x86 binary package, ABI=x86
|
||||
has_multilib_profile && ABI="x86"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
# lowercase tar extension required for unpack, bug 476734
|
||||
mv ./ILINXR.TAR ./ILINXR.tar || die
|
||||
mv ./COMMON.TAR ./COMMON.tar || die
|
||||
unpack ./ILINXR.tar ./COMMON.tar
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# remove cruft
|
||||
rm "${S}"/Adobe/Reader9/bin/UNINSTALL
|
||||
rm "${S}"/Adobe/Reader9/Browser/install_browser_plugin
|
||||
rm "${S}"/Adobe/Reader9/Resource/Support/vnd.*.desktop
|
||||
|
||||
# replace some configuration sections
|
||||
for binfile in "${S}"/Adobe/Reader9/bin/* ; do
|
||||
sed -i -e '/Font-config/,+9d' \
|
||||
-e "/acrogre.conf/r ${FILESDIR}/gentoo_config" -e //N \
|
||||
"${binfile}" || die "sed configuration settings failed."
|
||||
done
|
||||
|
||||
# fix erroneous Exec entry in .desktop
|
||||
sed -i \
|
||||
-e 's/^Exec=acroread[[:space:]]*$/Exec=acroread %U/' \
|
||||
"${S}"/Adobe/Reader9/Resource/Support/AdobeReader.desktop \
|
||||
||die "sed .desktop fix failed"
|
||||
|
||||
# fix braindead error in nppdf.so (bug 412051)
|
||||
base64 -d > "${WORKDIR}/nppdf.so.patch" << ENDOFFILE
|
||||
QlNESUZGNDBIAAAAAAAAAC8AAAAAAAAAYL0CAAAAAABCWmg5MUFZJlNZFBL6EAAAFvBh+DwgDAgQ
|
||||
QAAAEABAIAAgACICaGjJtQoaaYAFPzpGDIjiUXSFYEuGy1ix8XckU4UJAUEvoQBCWmg5MUFZJlNZ
|
||||
jrYrlQABYGAAwAAIAAAIIAAwzAUppgKbECni7kinChIR1sVyoEJaaDkxQVkmU1kzGPRGAAAAEYAA
|
||||
AIYFAwAgACIHqbUIYAdBF8XckU4UJAzGPRGA
|
||||
ENDOFFILE
|
||||
einfo "Patching nppdf.so"
|
||||
mv Adobe/Reader9/Browser/intellinux/nppdf.so Adobe/Reader9/Browser/intellinux/nppdf.so.orig || die
|
||||
bspatch Adobe/Reader9/Browser/intellinux/nppdf.so.orig Adobe/Reader9/Browser/intellinux/nppdf.so "${WORKDIR}/nppdf.so.patch" || die
|
||||
rm Adobe/Reader9/Browser/intellinux/nppdf.so.orig || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local LAUNCHER="Adobe/Reader9/bin/acroread"
|
||||
|
||||
# Install desktop files
|
||||
domenu Adobe/Reader9/Resource/Support/AdobeReader.desktop
|
||||
|
||||
# Install commonly used icon sizes
|
||||
for res in 16x16 22x22 32x32 48x48 64x64 128x128 ; do
|
||||
insinto /usr/share/icons/hicolor/${res}/apps
|
||||
doins Adobe/Reader9/Resource/Icons/${res}/*
|
||||
done
|
||||
|
||||
dodir /opt
|
||||
chown -R --dereference -L root:0 Adobe
|
||||
cp -dpR Adobe "${ED}"opt/ || die
|
||||
|
||||
# remove some bundled libs
|
||||
for mylib in ${REMOVELIBS}; do
|
||||
einfo Removing bundled ${mylib}
|
||||
rm -v "${ED}"/opt/Adobe/Reader9/Reader/intellinux/lib/${mylib}*
|
||||
done
|
||||
|
||||
doman Adobe/Reader9/Resource/Shell/acroread.1.gz
|
||||
|
||||
if use nsplugin; then
|
||||
inst_plugin /opt/Adobe/Reader9/Browser/intellinux/nppdf.so
|
||||
else
|
||||
rm -v "${ED}"/opt/Adobe/Reader9/Browser/intellinux/nppdf.so
|
||||
fi
|
||||
|
||||
dodir /opt/bin
|
||||
dosym /opt/${LAUNCHER} /opt/bin/${LAUNCHER/*bin\/}
|
||||
|
||||
# NOTE -- this is likely old and broken and should be removed...
|
||||
# We need to set a MOZILLA_COMP_PATH for seamonkey and firefox since
|
||||
# they don't install a configuration file for libgtkembedmoz.so
|
||||
# detection in /etc/gre.d/ like xulrunner did.
|
||||
if use x86 && use html; then
|
||||
for lib in /opt/{seamonkey,firefox} /usr/lib/{seamonkey,firefox,mozilla-firefox}; do
|
||||
if [[ -f ${lib}/libgtkembedmoz.so ]] ; then
|
||||
echo "MOZILLA_COMP_PATH=${lib}" >> "${ED}"${INSTALLDIR}/Adobe/Reader9/Reader/GlobalPrefs/mozilla_config
|
||||
elog "Adobe Reader depends on libgtkembedmoz.so, which I've found on"
|
||||
elog "your system in ${lib}, and configured in ${INSTALLDIR}/Adobe/Reader9/Reader/GlobalPrefs/mozilla_config."
|
||||
break # don't search any more libraries
|
||||
fi
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst () {
|
||||
if use x86 && ! use html; then
|
||||
echo
|
||||
ewarn "If you want html support and/or view the Adobe Reader help you have"
|
||||
ewarn "to re-emerge acroread with USE=\"html\"."
|
||||
echo
|
||||
fi
|
||||
|
||||
if use amd64; then
|
||||
if use nsplugin && ! has_version www-plugins/nspluginwrapper; then
|
||||
echo
|
||||
elog "If you're running a 64bit browser you may also want to install"
|
||||
elog "\"www-plugins/nspluginwrapper\" to be able to use the Adobe Reader"
|
||||
elog "browser plugin."
|
||||
fi
|
||||
elog ""
|
||||
elog "If you find that Adobe Reader doesn't match your desktop's theme, you"
|
||||
elog "may want to re-emerge the relevant gtk theme package with"
|
||||
elog "USE=\"abi_x86_32\" enabled."
|
||||
fi
|
||||
|
||||
gnome2_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
}
|
@ -0,0 +1,2 @@
|
||||
DIST JabRef-2.10.jar 15223054 SHA256 bb8f001043079bd12f7f8867d725723fca33b03889af864a100d0cf5c4364ce4 SHA512 833ec41bf8d5a76892ec82f0726c5dcf6382de8b05a949b1d697dbdbb79ba727557069f3267827a7febe6ec4ead996c8de273479b8e3d0363467ec6b91e6bd3a WHIRLPOOL a8026762ae934e680f24698e5c658c03a8f6e1c0ec6d48a0ee4b3eaee9ceb93b1831777009627c02f0377333b7f96b34da4e8e36481a859a63bd3d799f5cb03e
|
||||
DIST JabRef-2.11b2.jar 15817749 SHA256 f811eb98bdef938c9aaeee5e9807c6ea28a8b4d7270df93cb6ac2cf405dc6f8c SHA512 045f33632f5aa6ef6c61cb8e16dae69f2d91f2b4b85bfce5e51bd9492ad80d41c92b093d8f6b0d67972f18fa787d626b8c6fd419c7cd4cd3249d3e40d7025bf4 WHIRLPOOL 01e9c89b644a110ec2fc1e222ff996f69a0210520cb5c2dc0f7b4c8bb16d91bb4d37358e8e76bd2cfe7630cd664ad925b62c0a46e041da2949c4655b8326250d
|
@ -0,0 +1,31 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/jabref-bin/jabref-bin-2.10.ebuild,v 1.2 2015/06/14 03:38:30 nicolasbock Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils java-pkg-2
|
||||
|
||||
MY_PV_1="${PV/_beta/b}"
|
||||
MY_PV="${MY_PV_1/_rc/}"
|
||||
|
||||
DESCRIPTION="Java GUI for managing BibTeX and other bibliographies"
|
||||
HOMEPAGE="http://jabref.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/jabref/JabRef-${MY_PV}.jar"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND=">=virtual/jre-1.6"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_unpack() {
|
||||
cp -v "${DISTDIR}/${A}" . || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_newjar JabRef-${MY_PV}.jar
|
||||
java-pkg_dolauncher ${PN} --jar ${PN}.jar
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/jabref-bin/jabref-bin-2.11_beta_rc2.ebuild,v 1.2 2015/06/14 03:38:30 nicolasbock Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils java-pkg-2
|
||||
|
||||
MY_PV_1="${PV/_beta/b}"
|
||||
MY_PV="${MY_PV_1/_rc/}"
|
||||
MY_URI_PV_1="${PV/rc/}"
|
||||
MY_URI_PV="${MY_URI_PV_1//_/%20}"
|
||||
|
||||
DESCRIPTION="Java GUI for managing BibTeX and other bibliographies"
|
||||
HOMEPAGE="http://jabref.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/jabref/JabRef-${MY_PV}.jar"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND=">=virtual/jre-1.6"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_unpack() {
|
||||
cp -v "${DISTDIR}/${A}" . || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_newjar JabRef-${MY_PV}.jar
|
||||
java-pkg_dolauncher ${PN} --jar ${PN}.jar
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>java</herd>
|
||||
<herd>sci</herd>
|
||||
<maintainer>
|
||||
<email>nicolasbock@gentoo.org</email>
|
||||
<name>Nicolas Bock</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
JabRef is an open source bibliography reference manager. The native
|
||||
file format used by JabRef is BibTeX, the standard LaTeX bibliography
|
||||
format.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="sourceforge">jabref</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1,81 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/txt2tags/txt2tags-2.6-r1.ebuild,v 1.1 2015/06/12 20:30:10 mgorny Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
PYTHON_REQ_USE="tk?"
|
||||
|
||||
inherit eutils elisp-common python-single-r1
|
||||
|
||||
DESCRIPTION="A tool for generating marked up documents (HTML, SGML, ...) from a plain text file with markup"
|
||||
HOMEPAGE="http://txt2tags.org/"
|
||||
SRC_URI="http://${PN}.googlecode.com/files/${P}.tgz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris"
|
||||
IUSE="emacs tk vim-syntax"
|
||||
|
||||
DEPEND="${PYTHON_DEPS}
|
||||
tk? ( dev-lang/tk )
|
||||
vim-syntax? (
|
||||
|| (
|
||||
app-editors/vim
|
||||
app-editors/gvim
|
||||
)
|
||||
)
|
||||
emacs? ( virtual/emacs )"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
SITEFILE="51${PN}-gentoo.el"
|
||||
|
||||
src_compile() {
|
||||
if use emacs; then
|
||||
elisp-compile extras/txt2tags-mode.el || die "elisp-compile failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin txt2tags
|
||||
|
||||
dodoc README ChangeLog*
|
||||
dodoc doc/*.{pdf,t2t}
|
||||
dodoc -r samples extras
|
||||
newman doc/manpage.man txt2tags.1
|
||||
|
||||
# make .po files
|
||||
for pofile in "${S}"/po/*.po; do
|
||||
msgfmt -o ${pofile%%.po}.mo ${pofile}
|
||||
done
|
||||
domo po/*.mo
|
||||
|
||||
# emacs support
|
||||
if use emacs; then
|
||||
elisp-install ${PN} extras/txt2tags-mode.{el,elc}
|
||||
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
|
||||
fi
|
||||
|
||||
if use vim-syntax; then
|
||||
insinto /usr/share/vim/vimfiles/syntax/
|
||||
doins extras/txt2tags.vim || die
|
||||
|
||||
echo 'au BufNewFile,BufRead *.t2t set ft=txt2tags' > "${T}/${PN}.vim"
|
||||
insinto /usr/share/vim/vimfiles/ftdetect
|
||||
doins "${T}/${PN}.vim" || die
|
||||
fi
|
||||
|
||||
python_fix_shebang "${D}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use emacs && elisp-site-regen
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use emacs && elisp-site-regen
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST yodl_3.04.00.orig.tar.gz 296554 SHA256 66b317877906e165506796f9342a1adf931376f7d8b6990b2d2ff12107685893 SHA512 d9e67c0dd15987fde2047bd5deb4e3a3d752e3ba5d398d4f5c4b7d02cc165a2500f7715eccefa8456d104ece5e42ca8e2b0b4746ad582fbf2100f6849c4a69a6 WHIRLPOOL c7a6cec7379372c8e6fb211c3178377e1d0639389c51032cc6e63c2968a39c474998f946db6464882ea096ac388dbd0ecbe380531a364a950e6bb4e281c9717e
|
||||
DIST yodl_3.05.00.orig.tar.gz 301612 SHA256 2f360062a85f9359207088b2586da863e2b111428f3e12486cd34c9de12b1b8a SHA512 45eccfb59853f57ffe2219b6de26e9851a28c59049b6165cc5dbd7201b5078b5930a286c0b2c61f534483b80f7c8c5de79925784ac6c29843d8c3842b508f7a8 WHIRLPOOL 31905df64082237f0aa91101bdf775164997fb467261ae156b012924c6e8c93eed9679b0fc45142520e1d2360239ec003abd41e811db3827cb530a6ba9cd0a74
|
||||
DIST yodl_3.05.01.orig.tar.gz 302038 SHA256 5a3d0e1b2abbba87217cfdc6cd354a00df8d782572495bbddbdfbd4f47fe0d3e SHA512 d2e8216511f50f053809d7b4c50c733ea72b62ef987608381c2583f008347f889e897b7104eaa63a040c4290909d681971a8a0624b15f204dc8ad47a4f2ceb1b WHIRLPOOL fa2dc18eab78af022d945eeb7436483a1d0cf0a947a450cbf045a763348378ebe2d192297c462b3c6fc30756f283d1186b4f3c1d9e9d5bc707aaace9ebc9e09b
|
||||
|
@ -0,0 +1,44 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/yodl/yodl-3.05.01.ebuild,v 1.1 2015/06/13 20:19:21 radhermit Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Your Own Document Language: a pre-document language and tools to process it"
|
||||
HOMEPAGE="http://yodl.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P/-/_}.orig.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc"
|
||||
|
||||
DEPEND="dev-util/icmake"
|
||||
|
||||
src_prepare() {
|
||||
sed -e "/DOC.* =/s/yodl\(-doc\)\?/${PF}/" \
|
||||
-e "/COMPILER =/s/gcc/$(tc-getCC)/" \
|
||||
-e "/CXX =/s/g++/$(tc-getCXX)/" \
|
||||
-i INSTALL.im || die
|
||||
|
||||
sed -e "s/ar ru/$(tc-getAR) ru/" \
|
||||
-e "s/ranlib/$(tc-getRANLIB)/" \
|
||||
-i icmake/stdcompile || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
./build programs || die
|
||||
./build macros || die
|
||||
./build man || die
|
||||
use doc && { ./build manual || die ; }
|
||||
}
|
||||
|
||||
src_install() {
|
||||
./build install programs "${ED}" || die
|
||||
./build install macros "${ED}" || die
|
||||
./build install man "${ED}" || die
|
||||
./build install docs "${ED}" || die
|
||||
use doc && { ./build install manual "${ED}" || die ; }
|
||||
}
|
@ -1,15 +1,20 @@
|
||||
DIST postgresql-9.0.19.tar.bz2 15019406 SHA256 53ad12bca99ba8ff0e002e39e50634c4dba1035232be1475cb77b3f6579385c0 SHA512 06ab2e9fa155ea9c51626f36c72f0690312405304a2461733435af795158522f1a166c78c03cf18bb9aa51bcb46a255829105bd58e3928fc90168f4afb41dd56 WHIRLPOOL d1b9f324817e3a2bb795a19093b353f5120c5913f1baf3a7ed1fc92b312d3004c3dec170bb27282c8e4ae6b8d38bd4539cd5d6027b47b9fd94a8c973dc690e1e
|
||||
DIST postgresql-9.0.20.tar.bz2 15043555 SHA256 02fc42026dc3b9440f4626354d30dd505d3fb5a8bb4fc3c8db66c3171a48aa6f SHA512 9642a3e782c84281f7bfc202a78b18858842572fd9bce180201092e18b2b1b812a74bf4456272853c94c70d01118b15baf3a4df77eb59fdbf76b81a2b45d38a9 WHIRLPOOL 36f6ca88d1ed74e8c12112c42af3faa2fc132f0f9a10104fc6494cc2ff437ab3e0ded0d7fcc754a829c28c6f300e9b109bca9711e4ff33c2981450e9a6aec41b
|
||||
DIST postgresql-9.0.21.tar.bz2 15044880 SHA256 6ed313dd4b12650fc5fc667cfef9f3f53c0f7664a6c2ecfba8d45e2b01709cb8 SHA512 86fcf1e59964b842c413e526a92f7d9042416d32d783f7bef63317ce5497ad3326c389267b217f3d3fb247d387f68c452c9083804823bfbbd0d2ea1237f3b83d WHIRLPOOL c031ff71739681a97a0f9df5f2ad1ccb4a6da91153efc0aaac99ef23a98e7093f9c980049e551d9b3f483b5dd32d84ebcc6ee11a1ab6765357c37120dc30c38f
|
||||
DIST postgresql-9.0.22.tar.bz2 15046629 SHA256 94d4b20d854cd7fa4c9c322c0b602751edbc5ca0d4f29fe92f996e28bb32f8a5 SHA512 19e7888f92c0cc6c948dd78831768fd7184fc4bc25ca1950a76f5175ed1763b8a34949e90eebbb063b072fbcac64c9fdf6072f5a22eaaae0c33e93cf6c49955b WHIRLPOOL 8b785c90a40fc32975cb81a9d8bf22bdd8667fd26710a962cecbf81c25f6348b3c49f30a91066ad8bb1bffce55658bab50181a2a82e217a7e71d7d361f2e5d92
|
||||
DIST postgresql-9.1.15.tar.bz2 15768092 SHA256 67d6deaf15cdc35fcdff2c319234d0577a86bce6f363e4f0e4e987e419e0de5f SHA512 c4ec158713f2398efd7d89cbdd387680da4323d848045639be33b6fb43960f356be651cbbdcf51380ecec4c8c75a181cf216ef5f84b6aa261ea1de19f7d00140 WHIRLPOOL b73723f890eb825a4578a9c0d7d3e1ed6264ac4095f3c517a2192dc9f73611b3119a0aea4633bc0c9b2a623df85017602d302a495d3f6c178d549ad04119e564
|
||||
DIST postgresql-9.1.16.tar.bz2 15814306 SHA256 2b65e2f7d6171107b96d3e92f42b869ec21f3b4e920d8941e511111372909456 SHA512 9b0e9202e0a3c4df2d37f3659ac8336db120d82d2f46651e4cace2cdc5303be415e67cd85b606c7be20c774b0732580cb8c81364d10d2257330a27e19df86109 WHIRLPOOL 19a603834d46d767537623f92abce07f770dfdcdaf36f8ae04debf6c299e8b16d9a523e1d3ca1f60fdda0ac059f54bf87bbd74185542af95c9c33bbc53c19182
|
||||
DIST postgresql-9.1.17.tar.bz2 15817867 SHA256 ddddd0a250c4b415d2edbf90671808276f29d81ee01971806f8ec5f2beae16aa SHA512 75a3382a70ba673a8ef4a48377acb494d508cb567cfb432f2bc1cf964332facb45d45f501b0b1127e952433a5fa9fbcc70d3823de25579e9624554045d4a207a WHIRLPOOL e428e3633f7478b914dd0ad187cdfa89a66796b45529098d2724ff50992ebc95324fc6e668f4fb4fbdf0fb2004dce4005611dc0002c0b25f58bb68b7faffecc5
|
||||
DIST postgresql-9.1.18.tar.bz2 15822081 SHA256 2726d526666904b454f87fe2ae54357c2ab9eb8aba299a4c904829b7598584a8 SHA512 ba51e431c947b749c6522fd887ecbf50bf50cc08f2323b122a35fb18fccceb46d50f0e632a5b19df9855b5a29c98534d19f241d31e5bc235b0b06e8fb210210e WHIRLPOOL 59b5e6fb5626d630e41a8c0497480948d5bb0751fffbe1602dc62009948bad047c2ddc805caa3510157924c0fc74ead2fb2a71d0569d5c1b56eae753d9dbcd1a
|
||||
DIST postgresql-9.2.10.tar.bz2 16353487 SHA256 35545bbfead46f70936a7f3f39ccef13e02cdb79c2b3ef3688888df5b18d73ad SHA512 3af55b9f0e14e4669db7b145e9af5a4729323da7598b580552b4dac016fc643f1d665de3d6d88eaf71aa146f470289f872b232776e0b0db9ffc77b4dd1d4fa03 WHIRLPOOL acf5a93bcd10d283aafda9a8dc8db90df43fb361f63b10fc5cd768409198649c15971d2dc506f97f3eca36d977cd54b9743998ad4ce1f51fb4be561862c9786b
|
||||
DIST postgresql-9.2.11.tar.bz2 16387018 SHA256 65b2f5f4fe5c1bfc3247dd84cc3f188e2b5ca45406c4fbbf39df631bed38b1cc SHA512 ad343861a366c70af921e8803a4ac1ebdaf6bfd687fb5ee30dfa57ab8561fd32a245c1e66c43b93b554475abf6c9b1e1a5a7d56b82575453c27c62f1dfca4d2c WHIRLPOOL d3c56067bb990e03388394379cdb3f207e5c3a94eb118833c3790e73cc5287f20f22ceb48020f5d4037c11602c2559f37332b3645a9161e6cdfa757ea4711b9f
|
||||
DIST postgresql-9.2.12.tar.bz2 16396804 SHA256 5f381b15fb63f7aa6b221ee56677b6029db0ae4f84bc78768ff9e753063b6d03 SHA512 6b4ee661fc979d33b373f759f936bd823616b31c45d4a670500e15a1265e05c06a45888033256bc38ea8bda139147461cbb1f2d5b2aff4f7a6b8939fb6286a1e WHIRLPOOL 2883c1744246af0063605117d4699c6c55448520783eec1042ee1b613f0c37ab2dd06451c1a3633f042461036a5dac041414088ccdce499c2e6a0f4b818327e1
|
||||
DIST postgresql-9.2.13.tar.bz2 16401289 SHA256 5dcbd6209a8c0f508504fa433486583a42caaa240c823e1b3576db8a72db6a44 SHA512 0bcf8284aad756a70cd5e6d34a9f2cc17825151740da1c90a459edbf188a9a366831b71999803d301f0de35a5778f524b72779818b89599ffeb41cf1c2140077 WHIRLPOOL 3859e3e5c994441bc931ee92042a08eeb7b1196301b603f311372c2c2c65083b38713f4eac3e06c243703c2446a260b1ae861b7690f1fea03184d0518b10b486
|
||||
DIST postgresql-9.3.6.tar.bz2 16889913 SHA256 2368cb61e68d9581da7bfdb61bdf39ffbe59d2d95609b0e93adb3b6b8fd6ca14 SHA512 057d8cc43de445cbc31c08fd056fffb049605fc2eb5ade1d2dcbf61fe8ba26597cb9205a1a61e085d6a02a3a2fe6536dc18aab7f2cb7ea5ea83bd30ccdf498fb WHIRLPOOL c786e26f2c46b0c98bd4910d0174e26ea335b5ec184fea2a14f3ce72ea9645c8fba2f1b3c25be3180b36cce05d3e323238495776f289b4337f149edbdaef8e78
|
||||
DIST postgresql-9.3.7.tar.bz2 16958172 SHA256 8b746ab3f7e84db9ba0c9fa0d9865f458fe4e43d5ae1d4ff2860db1f5204ff3d SHA512 c7291484dac7a943d381bfd49cdcd841212fd031211416ab234bdf7b50cb9ef00d22c4d4ad62c4289a3a216b93cabb153c3e83f5408eed5fd395c136bde74e4d WHIRLPOOL 2708ec966f991f81a8b0cdd0eb890a3a7f3cb1a5f80d05a02fad54e3fbc0d17c01a4593e40a1ae2b0b5d2be4d4994a6f97dfce588c042c830806ad7acedfcc52
|
||||
DIST postgresql-9.3.8.tar.bz2 16960398 SHA256 bc5c3ce755dfc5f6fbc0186a564f97abac3c2914f9a5d5a47f22f4fd354aadfa SHA512 43bb0bac23a8e6908d73739a63562a167c3a043462e40ccbbd7ee478cb7d8e546c8e035a040bba896102c6a3476f3b778571e269d89484ab7b654f230f753e95 WHIRLPOOL ac0d8e0485961d940b4ed6a6f373c580ffb320e9d8b9c938de39935e487448eee48496b3ba0fdd4b8bfea4076ff3d6dc0fa82a0e400b2e4ac088e7b903ca0d40
|
||||
DIST postgresql-9.3.9.tar.bz2 16959310 SHA256 f73bd0ec2028511732430beb22414a022d2114231366e8cbe78c149793910549 SHA512 c6a9cae07968c99039910bb98d3e365fc285d2cdef02dd594128bd69ae65926392b18b65b0e13c3f17c366413bffbe226b6e8ce3453774b0439745b18ea129a8 WHIRLPOOL bcbc66a7b846b42c2d17d187e8b2c751afda8e5cdc7fa385ba1145f84e34950fad3b82fc1d04ae7ff9b7de01fd5705d9e507aa841880b97df2edb2ac8749a5fd
|
||||
DIST postgresql-9.4.1.tar.bz2 17549976 SHA256 29ddb77c820095b8f52e5455e9c6c6c20cf979b0834ed1986a8857b84888c3a6 SHA512 a97ff354a9c1e8238b8220542d665cee7707370eddedd3d990e17755feadd0e22148b502724ebb0b355496649d5de7efe598b346bc570a1c9ca885314d8fe873 WHIRLPOOL 6126b11b794d2db470308e37e5dfad061291ea8754f49b6d6e0f6d05ac92f7ebacdfbc400283a53325b4fb434e7f2c66c988b60f9b6a3b39c2e56f5277d047ef
|
||||
DIST postgresql-9.4.2.tar.bz2 17611143 SHA256 81fda191c165ba1d25d75cd0166ece5abdcb4a7f5eca01b349371e279ebb4d11 SHA512 b32e1dc6a7f4ed938dafd4c8bfeb1ff5c40d41cf9ca6a4fddff5dbe74f3e56dddd823445a385bcaba4da1714e087d4f8c17e5daa0adc4e1c2be1ac469c2ec933 WHIRLPOOL de948e763ccd243fb1b43450d29717e3166be8bfe90f5bb18af3863dde4af880f13601ab6eddb6eb30b075d9cdbcfdbebcf8e5cca9138f744b50ca0597cc0fbd
|
||||
DIST postgresql-9.4.3.tar.bz2 17618524 SHA256 734acfd2ac352dd0cd353d226f3199c2e1a2730200998aea5b38cf685136d755 SHA512 8d860c982f3cf62c9f9ef4aad7c2d637e1cf8285338d57fca833051d66747660ecbf46b351a2a1f81ba3fe150c8700e76dcc5219adbf07e9adccfde9f52ae9f1 WHIRLPOOL cf09a4c7445ad77352bf4fc8fb6cbdaef28b4c592e2a3c963f228d1ece962ed454c6025aec0210e07d7ba07a5e2d070ebe285d9c660c2f08637a4f52f74b9356
|
||||
DIST postgresql-9.4.4.tar.bz2 17616272 SHA256 538ed99688d6fdbec6fd166d1779cf4588bf2f16c52304e5ef29f904c43b0013 SHA512 e0f0efc2e3a01c93dad98796476808d60be243841104ceb496d2227214a9b4c5a32c5f550f0a456b0c64f2458aae32026960b63f68188269d367d900683a6061 WHIRLPOOL 9041b4b4e1b53bc97345fe587bc874df1185ef76fe105bfb54e9c882f3fd51841448e92deb12e1415ce76158da0683fcff333e08b9e54a8be565562ebfec6175
|
||||
|
@ -0,0 +1,371 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-9.0.22.ebuild,v 1.1 2015/06/12 14:01:40 titanofold Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
# Testing within Portage's environment is broken, and the patch no
|
||||
# longer applies cleanly.
|
||||
RESTRICT="test"
|
||||
|
||||
PYTHON_COMPAT=( python{2_{6,7},3_{2,3,4}} )
|
||||
|
||||
inherit eutils flag-o-matic linux-info multilib pam prefix python-single-r1 \
|
||||
systemd user versionator
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris"
|
||||
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
|
||||
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
|
||||
|
||||
LICENSE="POSTGRESQL GPL-2"
|
||||
DESCRIPTION="PostgreSQL RDBMS"
|
||||
HOMEPAGE="http://www.postgresql.org/"
|
||||
|
||||
LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr
|
||||
zh_CN zh_TW"
|
||||
IUSE="doc kerberos kernel_linux ldap nls pam perl -pg_legacytimestamp python
|
||||
+readline selinux +server ssl static-libs tcl threads uuid xml zlib"
|
||||
|
||||
for lingua in ${LINGUAS}; do
|
||||
IUSE+=" linguas_${lingua}"
|
||||
done
|
||||
|
||||
wanted_languages() {
|
||||
local enable_langs
|
||||
|
||||
for lingua in ${LINGUAS} ; do
|
||||
use linguas_${lingua} && enable_langs+="${lingua} "
|
||||
done
|
||||
|
||||
echo -n ${enable_langs}
|
||||
}
|
||||
|
||||
CDEPEND="
|
||||
>=app-eselect/eselect-postgresql-1.2.0
|
||||
sys-apps/less
|
||||
virtual/libintl
|
||||
kerberos? ( virtual/krb5 )
|
||||
ldap? ( net-nds/openldap )
|
||||
pam? ( virtual/pam )
|
||||
perl? ( >=dev-lang/perl-5.8 )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
readline? ( sys-libs/readline:0= )
|
||||
ssl? ( >=dev-libs/openssl-0.9.6-r1:0= )
|
||||
tcl? ( >=dev-lang/tcl-8:0= )
|
||||
uuid? ( dev-libs/ossp-uuid )
|
||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
||||
zlib? ( sys-libs/zlib )
|
||||
"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
!!<sys-apps/sandbox-2.0
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
nls? ( sys-devel/gettext )
|
||||
xml? ( virtual/pkgconfig )
|
||||
"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
!dev-db/postgresql-docs:${SLOT}
|
||||
!dev-db/postgresql-base:${SLOT}
|
||||
!dev-db/postgresql-server:${SLOT}
|
||||
selinux? ( sec-policy/selinux-postgresql )
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
use server && CONFIG_CHECK="~SYSVIPC" linux-info_pkg_setup
|
||||
|
||||
enewgroup postgres 70
|
||||
enewuser postgres 70 /bin/bash /var/lib/postgresql postgres
|
||||
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Work around PPC{,64} compilation bug where bool is already defined
|
||||
sed '/#ifndef __cplusplus/a #undef bool' -i src/include/c.h || die
|
||||
|
||||
# Set proper run directory
|
||||
sed "s|\(PGSOCKET_DIR\s\+\)\"/tmp\"|\1\"${EPREFIX}/run/postgresql\"|" \
|
||||
-i src/include/pg_config_manual.h || die
|
||||
|
||||
epatch "${FILESDIR}/pg_ctl-exit-status.patch"
|
||||
|
||||
use server || epatch "${FILESDIR}/${PN}-${SLOT}-no-server.patch"
|
||||
|
||||
if use pam ; then
|
||||
sed -e "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \
|
||||
-i src/backend/libpq/auth.c || \
|
||||
die 'PGSQL_PAM_SERVICE rename failed.'
|
||||
fi
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
case ${CHOST} in
|
||||
*-darwin*|*-solaris*)
|
||||
use nls && append-libs intl
|
||||
;;
|
||||
esac
|
||||
|
||||
export LDFLAGS_SL="${LDFLAGS}"
|
||||
export LDFLAGS_EX="${LDFLAGS}"
|
||||
|
||||
local PO="${EPREFIX%/}"
|
||||
|
||||
econf \
|
||||
--prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \
|
||||
--datadir="${PO}/usr/share/postgresql-${SLOT}" \
|
||||
--docdir="${PO}/usr/share/doc/${PF}" \
|
||||
--includedir="${PO}/usr/include/postgresql-${SLOT}" \
|
||||
--mandir="${PO}/usr/share/postgresql-${SLOT}/man" \
|
||||
--sysconfdir="${PO}/etc/postgresql-${SLOT}" \
|
||||
--with-system-tzdata="${PO}/usr/share/zoneinfo" \
|
||||
$(use_enable !pg_legacytimestamp integer-datetimes) \
|
||||
$(use_enable threads thread-safety) \
|
||||
$(use_with kerberos gssapi) \
|
||||
$(use_with kerberos krb5) \
|
||||
$(use_with ldap) \
|
||||
$(use_with pam) \
|
||||
$(use_with perl) \
|
||||
$(use_with python) \
|
||||
$(use_with readline) \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_with tcl) \
|
||||
$(use_with uuid ossp-uuid) \
|
||||
$(use_with xml libxml) \
|
||||
$(use_with xml libxslt) \
|
||||
$(use_with zlib) \
|
||||
"$(use_enable nls nls "$(wanted_languages)")"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
emake -C contrib
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
emake DESTDIR="${D}" install -C contrib
|
||||
|
||||
dodoc README HISTORY doc/{TODO,bug.template}
|
||||
|
||||
# man pages are already built, but if we have the target make them,
|
||||
# they'll be generated from source before being installed so we
|
||||
# manually install man pages.
|
||||
# We use ${SLOT} instead of doman for postgresql.eselect
|
||||
insinto /usr/share/postgresql-${SLOT}/man/
|
||||
doins -r doc/src/sgml/man{1,3,7}
|
||||
if ! use server; then
|
||||
# Remove man pages for non-existent binaries
|
||||
for m in {initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}; do
|
||||
rm "${ED}/usr/share/postgresql-${SLOT}/man/man1/${m}.1"
|
||||
done
|
||||
fi
|
||||
docompress /usr/share/postgresql-${SLOT}/man/man{1,3,7}
|
||||
|
||||
insinto /etc/postgresql-${SLOT}
|
||||
newins src/bin/psql/psqlrc.sample psqlrc
|
||||
|
||||
dodir /etc/eselect/postgresql/slots/${SLOT}
|
||||
echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \
|
||||
"${ED}/etc/eselect/postgresql/slots/${SLOT}/base"
|
||||
|
||||
use static-libs || find "${ED}" -name '*.a' -delete
|
||||
|
||||
if use doc ; then
|
||||
docinto html
|
||||
dodoc doc/src/sgml/html/*
|
||||
|
||||
docinto sgml
|
||||
dodoc doc/src/sgml/*.{sgml,dsl}
|
||||
fi
|
||||
|
||||
if use server; then
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.confd" | newconfd - ${PN}-${SLOT}
|
||||
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.init-pre_9.2" | newinitd - ${PN}-${SLOT}
|
||||
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.service" | \
|
||||
systemd_newunit - ${PN}-${SLOT}.service
|
||||
|
||||
systemd_newtmpfilesd "${FILESDIR}"/${PN}.tmpfilesd ${PN}-${SLOT}.conf
|
||||
|
||||
newbin "${FILESDIR}"/${PN}-check-db-dir ${PN}-${SLOT}-check-db-dir
|
||||
|
||||
use pam && pamd_mimic system-auth ${PN}-${SLOT} auth account session
|
||||
|
||||
if use prefix ; then
|
||||
keepdir /run/postgresql
|
||||
fperms 0775 /run/postgresql
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
postgresql-config update
|
||||
|
||||
elog "If you need a global psqlrc-file, you can place it in:"
|
||||
elog " ${EROOT%/}/etc/postgresql-${SLOT}/"
|
||||
|
||||
if use server ; then
|
||||
elog
|
||||
elog "Gentoo specific documentation:"
|
||||
elog "https://wiki.gentoo.org/wiki/PostgreSQL"
|
||||
elog
|
||||
elog "Official documentation:"
|
||||
elog "http://www.postgresql.org/docs/${SLOT}/static/index.html"
|
||||
elog
|
||||
elog "The default location of the Unix-domain socket is:"
|
||||
elog " ${EROOT%/}/run/postgresql/"
|
||||
elog
|
||||
elog "Before initializing the database, you may want to edit PG_INITDB_OPTS"
|
||||
elog "so that it contains your preferred locale in:"
|
||||
elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
||||
elog
|
||||
elog "Then, execute the following command to setup the initial database"
|
||||
elog "environment:"
|
||||
elog " emerge --config =${CATEGORY}/${PF}"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
if use server && [[ -z ${REPLACED_BY_VERSION} ]] ; then
|
||||
ewarn "Have you dumped and/or migrated the ${SLOT} database cluster?"
|
||||
ewarn "\thttps://wiki.gentoo.org/wiki/PostgreSQL/QuickStart#Migrating_PostgreSQL"
|
||||
|
||||
ebegin "Resuming removal in 10 seconds (Control-C to cancel)"
|
||||
sleep 10
|
||||
eend 0
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
postgresql-config update
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
use server || die "USE flag 'server' not enabled. Nothing to configure."
|
||||
|
||||
[[ -f "${EROOT%/}/etc/conf.d/postgresql-${SLOT}" ]] \
|
||||
&& source "${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
||||
[[ -z "${PGDATA}" ]] && PGDATA="${EROOT%/}/etc/postgresql-${SLOT}/"
|
||||
[[ -z "${DATA_DIR}" ]] \
|
||||
&& DATA_DIR="${EROOT%/}/var/lib/postgresql/${SLOT}/data"
|
||||
|
||||
# environment.bz2 may not contain the same locale as the current system
|
||||
# locale. Unset and source from the current system locale.
|
||||
if [ -f "${EROOT%/}/etc/env.d/02locale" ]; then
|
||||
unset LANG
|
||||
unset LC_CTYPE
|
||||
unset LC_NUMERIC
|
||||
unset LC_TIME
|
||||
unset LC_COLLATE
|
||||
unset LC_MONETARY
|
||||
unset LC_MESSAGES
|
||||
unset LC_ALL
|
||||
source "${EROOT%/}/etc/env.d/02locale"
|
||||
[ -n "${LANG}" ] && export LANG
|
||||
[ -n "${LC_CTYPE}" ] && export LC_CTYPE
|
||||
[ -n "${LC_NUMERIC}" ] && export LC_NUMERIC
|
||||
[ -n "${LC_TIME}" ] && export LC_TIME
|
||||
[ -n "${LC_COLLATE}" ] && export LC_COLLATE
|
||||
[ -n "${LC_MONETARY}" ] && export LC_MONETARY
|
||||
[ -n "${LC_MESSAGES}" ] && export LC_MESSAGES
|
||||
[ -n "${LC_ALL}" ] && export LC_ALL
|
||||
fi
|
||||
|
||||
einfo "You can modify the paths and options passed to initdb by editing:"
|
||||
einfo " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
||||
einfo
|
||||
einfo "Information on options that can be passed to initdb are found at:"
|
||||
einfo " http://www.postgresql.org/docs/${SLOT}/static/creating-cluster.html"
|
||||
einfo " http://www.postgresql.org/docs/${SLOT}/static/app-initdb.html"
|
||||
einfo
|
||||
einfo "PG_INITDB_OPTS is currently set to:"
|
||||
if [[ -z "${PG_INITDB_OPTS}" ]] ; then
|
||||
einfo " (none)"
|
||||
else
|
||||
einfo " ${PG_INITDB_OPTS}"
|
||||
fi
|
||||
einfo
|
||||
einfo "Configuration files will be installed to:"
|
||||
einfo " ${PGDATA}"
|
||||
einfo
|
||||
einfo "The database cluster will be created in:"
|
||||
einfo " ${DATA_DIR}"
|
||||
einfo
|
||||
while [ "$correct" != "true" ] ; do
|
||||
einfo "Are you ready to continue? (y/n)"
|
||||
read answer
|
||||
if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then
|
||||
correct="true"
|
||||
elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then
|
||||
die "Aborting initialization."
|
||||
else
|
||||
echo "Answer not recognized"
|
||||
fi
|
||||
done
|
||||
|
||||
if [ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ] ; then
|
||||
eerror "The given directory, '${DATA_DIR}', is not empty."
|
||||
eerror "Modify DATA_DIR to point to an empty directory."
|
||||
die "${DATA_DIR} is not empty."
|
||||
fi
|
||||
|
||||
einfo "Creating the data directory ..."
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
mkdir -p "${DATA_DIR}"
|
||||
chown -Rf postgres:postgres "${DATA_DIR}"
|
||||
chmod 0700 "${DATA_DIR}"
|
||||
fi
|
||||
|
||||
einfo "Initializing the database ..."
|
||||
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
su postgres -c "${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -D \"${DATA_DIR}\" ${PG_INITDB_OPTS}"
|
||||
else
|
||||
"${EROOT%/}"/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -U postgres -D "${DATA_DIR}" ${PG_INITDB_OPTS}
|
||||
fi
|
||||
|
||||
if [[ "${DATA_DIR%/}" != "${PGDATA%/}" ]] ; then
|
||||
mv "${DATA_DIR%/}"/{pg_{hba,ident},postgresql}.conf "${PGDATA}"
|
||||
ln -s "${PGDATA%/}"/{pg_{hba,ident},postgresql}.conf "${DATA_DIR%/}"
|
||||
fi
|
||||
|
||||
cat <<- EOF >> "${PGDATA%/}"/postgresql.conf
|
||||
# This is here because of https://bugs.gentoo.org/show_bug.cgi?id=518522
|
||||
# On the off-chance that you might need to work with UTF-8 encoded
|
||||
# characters in PL/Perl
|
||||
plperl.on_init = 'use utf8; use re; package utf8; require "utf8_heavy.pl";'
|
||||
EOF
|
||||
|
||||
einfo "The autovacuum function, which was in contrib, has been moved to the main"
|
||||
einfo "PostgreSQL functions starting with 8.1, and starting with 8.4 is now enabled"
|
||||
einfo "by default. You can disable it in the cluster's:"
|
||||
einfo " ${PGDATA%/}/postgresql.conf"
|
||||
einfo
|
||||
einfo "The PostgreSQL server, by default, will log events to:"
|
||||
einfo " ${DATA_DIR%/}/postmaster.log"
|
||||
einfo
|
||||
if use prefix ; then
|
||||
einfo "The location of the configuration files have moved to:"
|
||||
einfo " ${PGDATA}"
|
||||
einfo "To start the server:"
|
||||
einfo " pg_ctl start -D ${DATA_DIR} -o '-D ${PGDATA} --data-directory=${DATA_DIR}'"
|
||||
einfo "To stop:"
|
||||
einfo " pg_ctl stop -D ${DATA_DIR}"
|
||||
einfo
|
||||
einfo "Or move the configuration files back:"
|
||||
einfo "mv ${PGDATA}*.conf ${DATA_DIR}"
|
||||
else
|
||||
einfo "You should use the '${EROOT%/}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL"
|
||||
einfo "instead of 'pg_ctl'."
|
||||
fi
|
||||
}
|
@ -0,0 +1,375 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-9.1.18.ebuild,v 1.1 2015/06/12 14:01:40 titanofold Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
# Testing within Portage's environment is broken, and the patch no
|
||||
# longer applies cleanly.
|
||||
RESTRICT="test"
|
||||
|
||||
PYTHON_COMPAT=( python{2_{6,7},3_{2,3,4}} )
|
||||
|
||||
inherit eutils flag-o-matic linux-info multilib pam prefix python-single-r1 \
|
||||
systemd user versionator
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris"
|
||||
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
|
||||
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
|
||||
|
||||
LICENSE="POSTGRESQL GPL-2"
|
||||
DESCRIPTION="PostgreSQL RDBMS"
|
||||
HOMEPAGE="http://www.postgresql.org/"
|
||||
|
||||
LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr
|
||||
zh_CN zh_TW"
|
||||
IUSE="doc kerberos kernel_linux ldap nls pam perl -pg_legacytimestamp python
|
||||
+readline selinux +server ssl static-libs tcl threads uuid xml zlib"
|
||||
|
||||
for lingua in ${LINGUAS}; do
|
||||
IUSE+=" linguas_${lingua}"
|
||||
done
|
||||
|
||||
wanted_languages() {
|
||||
local enable_langs
|
||||
|
||||
for lingua in ${LINGUAS} ; do
|
||||
use linguas_${lingua} && enable_langs+="${lingua} "
|
||||
done
|
||||
|
||||
echo -n ${enable_langs}
|
||||
}
|
||||
|
||||
CDEPEND="
|
||||
>=app-eselect/eselect-postgresql-1.2.0
|
||||
sys-apps/less
|
||||
virtual/libintl
|
||||
kerberos? ( virtual/krb5 )
|
||||
ldap? ( net-nds/openldap )
|
||||
pam? ( virtual/pam )
|
||||
perl? ( >=dev-lang/perl-5.8 )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
readline? ( sys-libs/readline:0= )
|
||||
ssl? ( >=dev-libs/openssl-0.9.6-r1:0= )
|
||||
tcl? ( >=dev-lang/tcl-8:0= )
|
||||
uuid? ( dev-libs/ossp-uuid )
|
||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
||||
zlib? ( sys-libs/zlib )
|
||||
"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
!!<sys-apps/sandbox-2.0
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
nls? ( sys-devel/gettext )
|
||||
xml? ( virtual/pkgconfig )
|
||||
"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
!dev-db/postgresql-docs:${SLOT}
|
||||
!dev-db/postgresql-base:${SLOT}
|
||||
!dev-db/postgresql-server:${SLOT}
|
||||
selinux? ( sec-policy/selinux-postgresql )
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
use server && CONFIG_CHECK="~SYSVIPC" linux-info_pkg_setup
|
||||
|
||||
enewgroup postgres 70
|
||||
enewuser postgres 70 /bin/bash /var/lib/postgresql postgres
|
||||
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Work around PPC{,64} compilation bug where bool is already defined
|
||||
sed '/#ifndef __cplusplus/a #undef bool' -i src/include/c.h || die
|
||||
|
||||
# Set proper run directory
|
||||
sed "s|\(PGSOCKET_DIR\s\+\)\"/tmp\"|\1\"${EPREFIX}/run/postgresql\"|" \
|
||||
-i src/include/pg_config_manual.h || die
|
||||
|
||||
epatch "${FILESDIR}/pg_ctl-exit-status.patch"
|
||||
|
||||
use server || epatch "${FILESDIR}/${PN}-${SLOT}-no-server.patch"
|
||||
|
||||
# Fix bug 486556 where the server would crash at start up because of
|
||||
# an infinite loop caused by a self-referencing symlink.
|
||||
epatch "${FILESDIR}/postgresql-9.1-tz-dir-overflow.patch"
|
||||
|
||||
if use pam ; then
|
||||
sed -e "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \
|
||||
-i src/backend/libpq/auth.c || \
|
||||
die 'PGSQL_PAM_SERVICE rename failed.'
|
||||
fi
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
case ${CHOST} in
|
||||
*-darwin*|*-solaris*)
|
||||
use nls && append-libs intl
|
||||
;;
|
||||
esac
|
||||
|
||||
export LDFLAGS_SL="${LDFLAGS}"
|
||||
export LDFLAGS_EX="${LDFLAGS}"
|
||||
|
||||
local PO="${EPREFIX%/}"
|
||||
|
||||
econf \
|
||||
--prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \
|
||||
--datadir="${PO}/usr/share/postgresql-${SLOT}" \
|
||||
--docdir="${PO}/usr/share/doc/${PF}" \
|
||||
--includedir="${PO}/usr/include/postgresql-${SLOT}" \
|
||||
--mandir="${PO}/usr/share/postgresql-${SLOT}/man" \
|
||||
--sysconfdir="${PO}/etc/postgresql-${SLOT}" \
|
||||
--with-system-tzdata="${PO}/usr/share/zoneinfo" \
|
||||
$(use_enable !pg_legacytimestamp integer-datetimes) \
|
||||
$(use_enable threads thread-safety) \
|
||||
$(use_with kerberos gssapi) \
|
||||
$(use_with kerberos krb5) \
|
||||
$(use_with ldap) \
|
||||
$(use_with pam) \
|
||||
$(use_with perl) \
|
||||
$(use_with python) \
|
||||
$(use_with readline) \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_with tcl) \
|
||||
$(use_with uuid ossp-uuid) \
|
||||
$(use_with xml libxml) \
|
||||
$(use_with xml libxslt) \
|
||||
$(use_with zlib) \
|
||||
"$(use_enable nls nls "$(wanted_languages)")"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
emake -C contrib
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
emake DESTDIR="${D}" install -C contrib
|
||||
|
||||
dodoc README HISTORY doc/{TODO,bug.template}
|
||||
|
||||
# man pages are already built, but if we have the target make them,
|
||||
# they'll be generated from source before being installed so we
|
||||
# manually install man pages.
|
||||
# We use ${SLOT} instead of doman for postgresql.eselect
|
||||
insinto /usr/share/postgresql-${SLOT}/man/
|
||||
doins -r doc/src/sgml/man{1,3,7}
|
||||
if ! use server; then
|
||||
# Remove man pages for non-existent binaries
|
||||
for m in {initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}; do
|
||||
rm "${ED}/usr/share/postgresql-${SLOT}/man/man1/${m}.1"
|
||||
done
|
||||
fi
|
||||
docompress /usr/share/postgresql-${SLOT}/man/man{1,3,7}
|
||||
|
||||
insinto /etc/postgresql-${SLOT}
|
||||
newins src/bin/psql/psqlrc.sample psqlrc
|
||||
|
||||
dodir /etc/eselect/postgresql/slots/${SLOT}
|
||||
echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \
|
||||
"${ED}/etc/eselect/postgresql/slots/${SLOT}/base"
|
||||
|
||||
use static-libs || find "${ED}" -name '*.a' -delete
|
||||
|
||||
if use doc ; then
|
||||
docinto html
|
||||
dodoc doc/src/sgml/html/*
|
||||
|
||||
docinto sgml
|
||||
dodoc doc/src/sgml/*.{sgml,dsl}
|
||||
fi
|
||||
|
||||
if use server; then
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.confd" | newconfd - ${PN}-${SLOT}
|
||||
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.init-pre_9.2" | newinitd - ${PN}-${SLOT}
|
||||
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.service" | \
|
||||
systemd_newunit - ${PN}-${SLOT}.service
|
||||
|
||||
systemd_newtmpfilesd "${FILESDIR}"/${PN}.tmpfilesd ${PN}-${SLOT}.conf
|
||||
|
||||
newbin "${FILESDIR}"/${PN}-check-db-dir ${PN}-${SLOT}-check-db-dir
|
||||
|
||||
use pam && pamd_mimic system-auth ${PN}-${SLOT} auth account session
|
||||
|
||||
if use prefix ; then
|
||||
keepdir /run/postgresql
|
||||
fperms 0775 /run/postgresql
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
postgresql-config update
|
||||
|
||||
elog "If you need a global psqlrc-file, you can place it in:"
|
||||
elog " ${EROOT%/}/etc/postgresql-${SLOT}/"
|
||||
|
||||
if use server ; then
|
||||
elog
|
||||
elog "Gentoo specific documentation:"
|
||||
elog "https://wiki.gentoo.org/wiki/PostgreSQL"
|
||||
elog
|
||||
elog "Official documentation:"
|
||||
elog "http://www.postgresql.org/docs/${SLOT}/static/index.html"
|
||||
elog
|
||||
elog "The default location of the Unix-domain socket is:"
|
||||
elog " ${EROOT%/}/run/postgresql/"
|
||||
elog
|
||||
elog "Before initializing the database, you may want to edit PG_INITDB_OPTS"
|
||||
elog "so that it contains your preferred locale in:"
|
||||
elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
||||
elog
|
||||
elog "Then, execute the following command to setup the initial database"
|
||||
elog "environment:"
|
||||
elog " emerge --config =${CATEGORY}/${PF}"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
if use server && [[ -z ${REPLACED_BY_VERSION} ]] ; then
|
||||
ewarn "Have you dumped and/or migrated the ${SLOT} database cluster?"
|
||||
ewarn "\thttps://wiki.gentoo.org/wiki/PostgreSQL/QuickStart#Migrating_PostgreSQL"
|
||||
|
||||
ebegin "Resuming removal in 10 seconds (Control-C to cancel)"
|
||||
sleep 10
|
||||
eend 0
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
postgresql-config update
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
use server || die "USE flag 'server' not enabled. Nothing to configure."
|
||||
|
||||
[[ -f "${EROOT%/}/etc/conf.d/postgresql-${SLOT}" ]] \
|
||||
&& source "${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
||||
[[ -z "${PGDATA}" ]] && PGDATA="${EROOT%/}/etc/postgresql-${SLOT}/"
|
||||
[[ -z "${DATA_DIR}" ]] \
|
||||
&& DATA_DIR="${EROOT%/}/var/lib/postgresql/${SLOT}/data"
|
||||
|
||||
# environment.bz2 may not contain the same locale as the current system
|
||||
# locale. Unset and source from the current system locale.
|
||||
if [ -f "${EROOT%/}/etc/env.d/02locale" ]; then
|
||||
unset LANG
|
||||
unset LC_CTYPE
|
||||
unset LC_NUMERIC
|
||||
unset LC_TIME
|
||||
unset LC_COLLATE
|
||||
unset LC_MONETARY
|
||||
unset LC_MESSAGES
|
||||
unset LC_ALL
|
||||
source "${EROOT%/}/etc/env.d/02locale"
|
||||
[ -n "${LANG}" ] && export LANG
|
||||
[ -n "${LC_CTYPE}" ] && export LC_CTYPE
|
||||
[ -n "${LC_NUMERIC}" ] && export LC_NUMERIC
|
||||
[ -n "${LC_TIME}" ] && export LC_TIME
|
||||
[ -n "${LC_COLLATE}" ] && export LC_COLLATE
|
||||
[ -n "${LC_MONETARY}" ] && export LC_MONETARY
|
||||
[ -n "${LC_MESSAGES}" ] && export LC_MESSAGES
|
||||
[ -n "${LC_ALL}" ] && export LC_ALL
|
||||
fi
|
||||
|
||||
einfo "You can modify the paths and options passed to initdb by editing:"
|
||||
einfo " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
||||
einfo
|
||||
einfo "Information on options that can be passed to initdb are found at:"
|
||||
einfo " http://www.postgresql.org/docs/${SLOT}/static/creating-cluster.html"
|
||||
einfo " http://www.postgresql.org/docs/${SLOT}/static/app-initdb.html"
|
||||
einfo
|
||||
einfo "PG_INITDB_OPTS is currently set to:"
|
||||
if [[ -z "${PG_INITDB_OPTS}" ]] ; then
|
||||
einfo " (none)"
|
||||
else
|
||||
einfo " ${PG_INITDB_OPTS}"
|
||||
fi
|
||||
einfo
|
||||
einfo "Configuration files will be installed to:"
|
||||
einfo " ${PGDATA}"
|
||||
einfo
|
||||
einfo "The database cluster will be created in:"
|
||||
einfo " ${DATA_DIR}"
|
||||
einfo
|
||||
while [ "$correct" != "true" ] ; do
|
||||
einfo "Are you ready to continue? (y/n)"
|
||||
read answer
|
||||
if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then
|
||||
correct="true"
|
||||
elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then
|
||||
die "Aborting initialization."
|
||||
else
|
||||
echo "Answer not recognized"
|
||||
fi
|
||||
done
|
||||
|
||||
if [ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ] ; then
|
||||
eerror "The given directory, '${DATA_DIR}', is not empty."
|
||||
eerror "Modify DATA_DIR to point to an empty directory."
|
||||
die "${DATA_DIR} is not empty."
|
||||
fi
|
||||
|
||||
einfo "Creating the data directory ..."
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
mkdir -p "${DATA_DIR}"
|
||||
chown -Rf postgres:postgres "${DATA_DIR}"
|
||||
chmod 0700 "${DATA_DIR}"
|
||||
fi
|
||||
|
||||
einfo "Initializing the database ..."
|
||||
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
su postgres -c "${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -D \"${DATA_DIR}\" ${PG_INITDB_OPTS}"
|
||||
else
|
||||
"${EROOT%/}"/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -U postgres -D "${DATA_DIR}" ${PG_INITDB_OPTS}
|
||||
fi
|
||||
|
||||
if [[ "${DATA_DIR%/}" != "${PGDATA%/}" ]] ; then
|
||||
mv "${DATA_DIR%/}"/{pg_{hba,ident},postgresql}.conf "${PGDATA}"
|
||||
ln -s "${PGDATA%/}"/{pg_{hba,ident},postgresql}.conf "${DATA_DIR%/}"
|
||||
fi
|
||||
|
||||
cat <<- EOF >> "${PGDATA%/}"/postgresql.conf
|
||||
# This is here because of https://bugs.gentoo.org/show_bug.cgi?id=518522
|
||||
# On the off-chance that you might need to work with UTF-8 encoded
|
||||
# characters in PL/Perl
|
||||
plperl.on_init = 'use utf8; use re; package utf8; require "utf8_heavy.pl";'
|
||||
EOF
|
||||
|
||||
einfo "The autovacuum function, which was in contrib, has been moved to the main"
|
||||
einfo "PostgreSQL functions starting with 8.1, and starting with 8.4 is now enabled"
|
||||
einfo "by default. You can disable it in the cluster's:"
|
||||
einfo " ${PGDATA%/}/postgresql.conf"
|
||||
einfo
|
||||
einfo "The PostgreSQL server, by default, will log events to:"
|
||||
einfo " ${DATA_DIR%/}/postmaster.log"
|
||||
einfo
|
||||
if use prefix ; then
|
||||
einfo "The location of the configuration files have moved to:"
|
||||
einfo " ${PGDATA}"
|
||||
einfo "To start the server:"
|
||||
einfo " pg_ctl start -D ${DATA_DIR} -o '-D ${PGDATA} --data-directory=${DATA_DIR}'"
|
||||
einfo "To stop:"
|
||||
einfo " pg_ctl stop -D ${DATA_DIR}"
|
||||
einfo
|
||||
einfo "Or move the configuration files back:"
|
||||
einfo "mv ${PGDATA}*.conf ${DATA_DIR}"
|
||||
else
|
||||
einfo "You should use the '${EROOT%/}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL"
|
||||
einfo "instead of 'pg_ctl'."
|
||||
fi
|
||||
}
|
@ -0,0 +1,387 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-9.2.13.ebuild,v 1.1 2015/06/12 14:01:40 titanofold Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
PYTHON_COMPAT=( python{2_{6,7},3_{2,3,4}} )
|
||||
|
||||
inherit eutils flag-o-matic linux-info multilib pam prefix python-single-r1 \
|
||||
systemd user versionator
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris"
|
||||
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
|
||||
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
|
||||
|
||||
LICENSE="POSTGRESQL GPL-2"
|
||||
DESCRIPTION="PostgreSQL RDBMS"
|
||||
HOMEPAGE="http://www.postgresql.org/"
|
||||
|
||||
LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr
|
||||
zh_CN zh_TW"
|
||||
IUSE="doc kerberos kernel_linux ldap nls pam perl -pg_legacytimestamp python
|
||||
+readline selinux +server ssl static-libs tcl threads uuid xml zlib"
|
||||
|
||||
for lingua in ${LINGUAS}; do
|
||||
IUSE+=" linguas_${lingua}"
|
||||
done
|
||||
|
||||
wanted_languages() {
|
||||
local enable_langs
|
||||
|
||||
for lingua in ${LINGUAS} ; do
|
||||
use linguas_${lingua} && enable_langs+="${lingua} "
|
||||
done
|
||||
|
||||
echo -n ${enable_langs}
|
||||
}
|
||||
|
||||
CDEPEND="
|
||||
>=app-eselect/eselect-postgresql-1.2.0
|
||||
sys-apps/less
|
||||
virtual/libintl
|
||||
kerberos? ( virtual/krb5 )
|
||||
ldap? ( net-nds/openldap )
|
||||
pam? ( virtual/pam )
|
||||
perl? ( >=dev-lang/perl-5.8 )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
readline? ( sys-libs/readline:0= )
|
||||
ssl? ( >=dev-libs/openssl-0.9.6-r1:0= )
|
||||
tcl? ( >=dev-lang/tcl-8:0= )
|
||||
uuid? ( dev-libs/ossp-uuid )
|
||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
||||
zlib? ( sys-libs/zlib )
|
||||
"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
!!<sys-apps/sandbox-2.0
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
nls? ( sys-devel/gettext )
|
||||
xml? ( virtual/pkgconfig )
|
||||
"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
!dev-db/postgresql-docs:${SLOT}
|
||||
!dev-db/postgresql-base:${SLOT}
|
||||
!dev-db/postgresql-server:${SLOT}
|
||||
selinux? ( sec-policy/selinux-postgresql )
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
use server && CONFIG_CHECK="~SYSVIPC" linux-info_pkg_setup
|
||||
|
||||
enewgroup postgres 70
|
||||
enewuser postgres 70 /bin/bash /var/lib/postgresql postgres
|
||||
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Work around PPC{,64} compilation bug where bool is already defined
|
||||
sed '/#ifndef __cplusplus/a #undef bool' -i src/include/c.h || die
|
||||
|
||||
# Set proper run directory
|
||||
sed "s|\(PGSOCKET_DIR\s\+\)\"/tmp\"|\1\"${EPREFIX}/run/postgresql\"|" \
|
||||
-i src/include/pg_config_manual.h || die
|
||||
|
||||
use server || epatch "${FILESDIR}/${PN}-${SLOT}-no-server.patch"
|
||||
|
||||
# Fix bug 486556 where the server would crash at start up because of
|
||||
# an infinite loop caused by a self-referencing symlink.
|
||||
epatch "${FILESDIR}/postgresql-9.2-9.4-tz-dir-overflow.patch"
|
||||
|
||||
if use pam ; then
|
||||
sed -e "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \
|
||||
-i src/backend/libpq/auth.c || \
|
||||
die 'PGSQL_PAM_SERVICE rename failed.'
|
||||
fi
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
case ${CHOST} in
|
||||
*-darwin*|*-solaris*)
|
||||
use nls && append-libs intl
|
||||
;;
|
||||
esac
|
||||
|
||||
export LDFLAGS_SL="${LDFLAGS}"
|
||||
export LDFLAGS_EX="${LDFLAGS}"
|
||||
|
||||
local PO="${EPREFIX%/}"
|
||||
|
||||
econf \
|
||||
--prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \
|
||||
--datadir="${PO}/usr/share/postgresql-${SLOT}" \
|
||||
--docdir="${PO}/usr/share/doc/${PF}" \
|
||||
--includedir="${PO}/usr/include/postgresql-${SLOT}" \
|
||||
--mandir="${PO}/usr/share/postgresql-${SLOT}/man" \
|
||||
--sysconfdir="${PO}/etc/postgresql-${SLOT}" \
|
||||
--with-system-tzdata="${PO}/usr/share/zoneinfo" \
|
||||
$(use_enable !pg_legacytimestamp integer-datetimes) \
|
||||
$(use_enable threads thread-safety) \
|
||||
$(use_with kerberos gssapi) \
|
||||
$(use_with kerberos krb5) \
|
||||
$(use_with ldap) \
|
||||
$(use_with pam) \
|
||||
$(use_with perl) \
|
||||
$(use_with python) \
|
||||
$(use_with readline) \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_with tcl) \
|
||||
$(use_with uuid ossp-uuid) \
|
||||
$(use_with xml libxml) \
|
||||
$(use_with xml libxslt) \
|
||||
$(use_with zlib) \
|
||||
"$(use_enable nls nls "$(wanted_languages)")"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
emake -C contrib
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
emake DESTDIR="${D}" install -C contrib
|
||||
|
||||
dodoc README HISTORY doc/{TODO,bug.template}
|
||||
|
||||
# man pages are already built, but if we have the target make them,
|
||||
# they'll be generated from source before being installed so we
|
||||
# manually install man pages.
|
||||
# We use ${SLOT} instead of doman for postgresql.eselect
|
||||
insinto /usr/share/postgresql-${SLOT}/man/
|
||||
doins -r doc/src/sgml/man{1,3,7}
|
||||
if ! use server; then
|
||||
# Remove man pages for non-existent binaries
|
||||
for m in {initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}; do
|
||||
rm "${ED}/usr/share/postgresql-${SLOT}/man/man1/${m}.1"
|
||||
done
|
||||
fi
|
||||
docompress /usr/share/postgresql-${SLOT}/man/man{1,3,7}
|
||||
|
||||
insinto /etc/postgresql-${SLOT}
|
||||
newins src/bin/psql/psqlrc.sample psqlrc
|
||||
|
||||
dodir /etc/eselect/postgresql/slots/${SLOT}
|
||||
echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \
|
||||
"${ED}/etc/eselect/postgresql/slots/${SLOT}/base"
|
||||
|
||||
use static-libs || find "${ED}" -name '*.a' -delete
|
||||
|
||||
if use doc ; then
|
||||
docinto html
|
||||
dodoc doc/src/sgml/html/*
|
||||
|
||||
docinto sgml
|
||||
dodoc doc/src/sgml/*.{sgml,dsl}
|
||||
fi
|
||||
|
||||
if use server; then
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.confd" | newconfd - ${PN}-${SLOT}
|
||||
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.init" | newinitd - ${PN}-${SLOT}
|
||||
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.service" | \
|
||||
systemd_newunit - ${PN}-${SLOT}.service
|
||||
|
||||
systemd_newtmpfilesd "${FILESDIR}"/${PN}.tmpfilesd ${PN}-${SLOT}.conf
|
||||
|
||||
newbin "${FILESDIR}"/${PN}-check-db-dir ${PN}-${SLOT}-check-db-dir
|
||||
|
||||
use pam && pamd_mimic system-auth ${PN}-${SLOT} auth account session
|
||||
|
||||
if use prefix ; then
|
||||
keepdir /run/postgresql
|
||||
fperms 0775 /run/postgresql
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
postgresql-config update
|
||||
|
||||
elog "If you need a global psqlrc-file, you can place it in:"
|
||||
elog " ${EROOT%/}/etc/postgresql-${SLOT}/"
|
||||
|
||||
if use server ; then
|
||||
elog
|
||||
elog "Gentoo specific documentation:"
|
||||
elog "https://wiki.gentoo.org/wiki/PostgreSQL"
|
||||
elog
|
||||
elog "Official documentation:"
|
||||
elog "http://www.postgresql.org/docs/${SLOT}/static/index.html"
|
||||
elog
|
||||
elog "The default location of the Unix-domain socket is:"
|
||||
elog " ${EROOT%/}/run/postgresql/"
|
||||
elog
|
||||
elog "Before initializing the database, you may want to edit PG_INITDB_OPTS"
|
||||
elog "so that it contains your preferred locale in:"
|
||||
elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
||||
elog
|
||||
elog "Then, execute the following command to setup the initial database"
|
||||
elog "environment:"
|
||||
elog " emerge --config =${CATEGORY}/${PF}"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
if use server && [[ -z ${REPLACED_BY_VERSION} ]] ; then
|
||||
ewarn "Have you dumped and/or migrated the ${SLOT} database cluster?"
|
||||
ewarn "\thttps://wiki.gentoo.org/wiki/PostgreSQL/QuickStart#Migrating_PostgreSQL"
|
||||
|
||||
ebegin "Resuming removal in 10 seconds (Control-C to cancel)"
|
||||
sleep 10
|
||||
eend 0
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
postgresql-config update
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
use server || die "USE flag 'server' not enabled. Nothing to configure."
|
||||
|
||||
[[ -f "${EROOT%/}/etc/conf.d/postgresql-${SLOT}" ]] \
|
||||
&& source "${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
||||
[[ -z "${PGDATA}" ]] && PGDATA="${EROOT%/}/etc/postgresql-${SLOT}/"
|
||||
[[ -z "${DATA_DIR}" ]] \
|
||||
&& DATA_DIR="${EROOT%/}/var/lib/postgresql/${SLOT}/data"
|
||||
|
||||
# environment.bz2 may not contain the same locale as the current system
|
||||
# locale. Unset and source from the current system locale.
|
||||
if [ -f "${EROOT%/}/etc/env.d/02locale" ]; then
|
||||
unset LANG
|
||||
unset LC_CTYPE
|
||||
unset LC_NUMERIC
|
||||
unset LC_TIME
|
||||
unset LC_COLLATE
|
||||
unset LC_MONETARY
|
||||
unset LC_MESSAGES
|
||||
unset LC_ALL
|
||||
source "${EROOT%/}/etc/env.d/02locale"
|
||||
[ -n "${LANG}" ] && export LANG
|
||||
[ -n "${LC_CTYPE}" ] && export LC_CTYPE
|
||||
[ -n "${LC_NUMERIC}" ] && export LC_NUMERIC
|
||||
[ -n "${LC_TIME}" ] && export LC_TIME
|
||||
[ -n "${LC_COLLATE}" ] && export LC_COLLATE
|
||||
[ -n "${LC_MONETARY}" ] && export LC_MONETARY
|
||||
[ -n "${LC_MESSAGES}" ] && export LC_MESSAGES
|
||||
[ -n "${LC_ALL}" ] && export LC_ALL
|
||||
fi
|
||||
|
||||
einfo "You can modify the paths and options passed to initdb by editing:"
|
||||
einfo " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
||||
einfo
|
||||
einfo "Information on options that can be passed to initdb are found at:"
|
||||
einfo " http://www.postgresql.org/docs/${SLOT}/static/creating-cluster.html"
|
||||
einfo " http://www.postgresql.org/docs/${SLOT}/static/app-initdb.html"
|
||||
einfo
|
||||
einfo "PG_INITDB_OPTS is currently set to:"
|
||||
if [[ -z "${PG_INITDB_OPTS}" ]] ; then
|
||||
einfo " (none)"
|
||||
else
|
||||
einfo " ${PG_INITDB_OPTS}"
|
||||
fi
|
||||
einfo
|
||||
einfo "Configuration files will be installed to:"
|
||||
einfo " ${PGDATA}"
|
||||
einfo
|
||||
einfo "The database cluster will be created in:"
|
||||
einfo " ${DATA_DIR}"
|
||||
einfo
|
||||
while [ "$correct" != "true" ] ; do
|
||||
einfo "Are you ready to continue? (y/n)"
|
||||
read answer
|
||||
if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then
|
||||
correct="true"
|
||||
elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then
|
||||
die "Aborting initialization."
|
||||
else
|
||||
echo "Answer not recognized"
|
||||
fi
|
||||
done
|
||||
|
||||
if [ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ] ; then
|
||||
eerror "The given directory, '${DATA_DIR}', is not empty."
|
||||
eerror "Modify DATA_DIR to point to an empty directory."
|
||||
die "${DATA_DIR} is not empty."
|
||||
fi
|
||||
|
||||
einfo "Creating the data directory ..."
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
mkdir -p "${DATA_DIR}"
|
||||
chown -Rf postgres:postgres "${DATA_DIR}"
|
||||
chmod 0700 "${DATA_DIR}"
|
||||
fi
|
||||
|
||||
einfo "Initializing the database ..."
|
||||
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
su postgres -c "${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -D \"${DATA_DIR}\" ${PG_INITDB_OPTS}"
|
||||
else
|
||||
"${EROOT%/}"/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -U postgres -D "${DATA_DIR}" ${PG_INITDB_OPTS}
|
||||
fi
|
||||
|
||||
if [[ "${DATA_DIR%/}" != "${PGDATA%/}" ]] ; then
|
||||
mv "${DATA_DIR%/}"/{pg_{hba,ident},postgresql}.conf "${PGDATA}"
|
||||
ln -s "${PGDATA%/}"/{pg_{hba,ident},postgresql}.conf "${DATA_DIR%/}"
|
||||
fi
|
||||
|
||||
cat <<- EOF >> "${PGDATA%/}"/postgresql.conf
|
||||
# This is here because of https://bugs.gentoo.org/show_bug.cgi?id=518522
|
||||
# On the off-chance that you might need to work with UTF-8 encoded
|
||||
# characters in PL/Perl
|
||||
plperl.on_init = 'use utf8; use re; package utf8; require "utf8_heavy.pl";'
|
||||
EOF
|
||||
|
||||
einfo "The autovacuum function, which was in contrib, has been moved to the main"
|
||||
einfo "PostgreSQL functions starting with 8.1, and starting with 8.4 is now enabled"
|
||||
einfo "by default. You can disable it in the cluster's:"
|
||||
einfo " ${PGDATA%/}/postgresql.conf"
|
||||
einfo
|
||||
einfo "The PostgreSQL server, by default, will log events to:"
|
||||
einfo " ${DATA_DIR%/}/postmaster.log"
|
||||
einfo
|
||||
if use prefix ; then
|
||||
einfo "The location of the configuration files have moved to:"
|
||||
einfo " ${PGDATA}"
|
||||
einfo "To start the server:"
|
||||
einfo " pg_ctl start -D ${DATA_DIR} -o '-D ${PGDATA} --data-directory=${DATA_DIR}'"
|
||||
einfo "To stop:"
|
||||
einfo " pg_ctl stop -D ${DATA_DIR}"
|
||||
einfo
|
||||
einfo "Or move the configuration files back:"
|
||||
einfo "mv ${PGDATA}*.conf ${DATA_DIR}"
|
||||
else
|
||||
einfo "You should use the '${EROOT%/}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL"
|
||||
einfo "instead of 'pg_ctl'."
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
einfo ">>> Test phase [check]: ${CATEGORY}/${PF}"
|
||||
|
||||
if use server && [[ ${UID} -ne 0 ]] ; then
|
||||
emake check
|
||||
|
||||
einfo "If you think other tests besides the regression tests are necessary, please"
|
||||
einfo "submit a bug including a patch for this ebuild to enable them."
|
||||
else
|
||||
use server || \
|
||||
ewarn 'Tests cannot be run without the "server" use flag enabled.'
|
||||
[[ ${UID} -eq 0 ]] || \
|
||||
ewarn 'Tests cannot be run as root. Enable "userpriv" in FEATURES.'
|
||||
|
||||
ewarn 'Skipping.'
|
||||
fi
|
||||
}
|
@ -0,0 +1,387 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-9.3.9.ebuild,v 1.1 2015/06/12 14:01:40 titanofold Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
PYTHON_COMPAT=( python{2_{6,7},3_{2,3,4}} )
|
||||
|
||||
inherit eutils flag-o-matic linux-info multilib pam prefix python-single-r1 \
|
||||
systemd user versionator
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris"
|
||||
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
|
||||
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
|
||||
|
||||
LICENSE="POSTGRESQL GPL-2"
|
||||
DESCRIPTION="PostgreSQL RDBMS"
|
||||
HOMEPAGE="http://www.postgresql.org/"
|
||||
|
||||
LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr
|
||||
zh_CN zh_TW"
|
||||
IUSE="doc kerberos kernel_linux ldap nls pam perl -pg_legacytimestamp python
|
||||
+readline selinux +server ssl static-libs tcl threads uuid xml zlib"
|
||||
|
||||
for lingua in ${LINGUAS}; do
|
||||
IUSE+=" linguas_${lingua}"
|
||||
done
|
||||
|
||||
wanted_languages() {
|
||||
local enable_langs
|
||||
|
||||
for lingua in ${LINGUAS} ; do
|
||||
use linguas_${lingua} && enable_langs+="${lingua} "
|
||||
done
|
||||
|
||||
echo -n ${enable_langs}
|
||||
}
|
||||
|
||||
CDEPEND="
|
||||
>=app-eselect/eselect-postgresql-1.2.0
|
||||
sys-apps/less
|
||||
virtual/libintl
|
||||
kerberos? ( virtual/krb5 )
|
||||
ldap? ( net-nds/openldap )
|
||||
pam? ( virtual/pam )
|
||||
perl? ( >=dev-lang/perl-5.8 )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
readline? ( sys-libs/readline:0= )
|
||||
ssl? ( >=dev-libs/openssl-0.9.6-r1:0= )
|
||||
tcl? ( >=dev-lang/tcl-8:0= )
|
||||
uuid? ( dev-libs/ossp-uuid )
|
||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
||||
zlib? ( sys-libs/zlib )
|
||||
"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
!!<sys-apps/sandbox-2.0
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
nls? ( sys-devel/gettext )
|
||||
xml? ( virtual/pkgconfig )
|
||||
"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
!dev-db/postgresql-docs:${SLOT}
|
||||
!dev-db/postgresql-base:${SLOT}
|
||||
!dev-db/postgresql-server:${SLOT}
|
||||
selinux? ( sec-policy/selinux-postgresql )
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
use server && CONFIG_CHECK="~SYSVIPC" linux-info_pkg_setup
|
||||
|
||||
enewgroup postgres 70
|
||||
enewuser postgres 70 /bin/bash /var/lib/postgresql postgres
|
||||
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Work around PPC{,64} compilation bug where bool is already defined
|
||||
sed '/#ifndef __cplusplus/a #undef bool' -i src/include/c.h || die
|
||||
|
||||
# Set proper run directory
|
||||
sed "s|\(PGSOCKET_DIR\s\+\)\"/tmp\"|\1\"${EPREFIX}/run/postgresql\"|" \
|
||||
-i src/include/pg_config_manual.h || die
|
||||
|
||||
use server || epatch "${FILESDIR}/${PN}-${SLOT}-no-server.patch"
|
||||
|
||||
# Fix bug 486556 where the server would crash at start up because of
|
||||
# an infinite loop caused by a self-referencing symlink.
|
||||
epatch "${FILESDIR}/postgresql-9.2-9.4-tz-dir-overflow.patch"
|
||||
|
||||
if use pam ; then
|
||||
sed -e "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \
|
||||
-i src/backend/libpq/auth.c || \
|
||||
die 'PGSQL_PAM_SERVICE rename failed.'
|
||||
fi
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
case ${CHOST} in
|
||||
*-darwin*|*-solaris*)
|
||||
use nls && append-libs intl
|
||||
;;
|
||||
esac
|
||||
|
||||
export LDFLAGS_SL="${LDFLAGS}"
|
||||
export LDFLAGS_EX="${LDFLAGS}"
|
||||
|
||||
local PO="${EPREFIX%/}"
|
||||
|
||||
econf \
|
||||
--prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \
|
||||
--datadir="${PO}/usr/share/postgresql-${SLOT}" \
|
||||
--docdir="${PO}/usr/share/doc/${PF}" \
|
||||
--includedir="${PO}/usr/include/postgresql-${SLOT}" \
|
||||
--mandir="${PO}/usr/share/postgresql-${SLOT}/man" \
|
||||
--sysconfdir="${PO}/etc/postgresql-${SLOT}" \
|
||||
--with-system-tzdata="${PO}/usr/share/zoneinfo" \
|
||||
$(use_enable !pg_legacytimestamp integer-datetimes) \
|
||||
$(use_enable threads thread-safety) \
|
||||
$(use_with kerberos gssapi) \
|
||||
$(use_with kerberos krb5) \
|
||||
$(use_with ldap) \
|
||||
$(use_with pam) \
|
||||
$(use_with perl) \
|
||||
$(use_with python) \
|
||||
$(use_with readline) \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_with tcl) \
|
||||
$(use_with uuid ossp-uuid) \
|
||||
$(use_with xml libxml) \
|
||||
$(use_with xml libxslt) \
|
||||
$(use_with zlib) \
|
||||
"$(use_enable nls nls "$(wanted_languages)")"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
emake -C contrib
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
emake DESTDIR="${D}" install -C contrib
|
||||
|
||||
dodoc README HISTORY doc/{TODO,bug.template}
|
||||
|
||||
# man pages are already built, but if we have the target make them,
|
||||
# they'll be generated from source before being installed so we
|
||||
# manually install man pages.
|
||||
# We use ${SLOT} instead of doman for postgresql.eselect
|
||||
insinto /usr/share/postgresql-${SLOT}/man/
|
||||
doins -r doc/src/sgml/man{1,3,7}
|
||||
if ! use server; then
|
||||
# Remove man pages for non-existent binaries
|
||||
for m in {initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}; do
|
||||
rm "${ED}/usr/share/postgresql-${SLOT}/man/man1/${m}.1"
|
||||
done
|
||||
fi
|
||||
docompress /usr/share/postgresql-${SLOT}/man/man{1,3,7}
|
||||
|
||||
insinto /etc/postgresql-${SLOT}
|
||||
newins src/bin/psql/psqlrc.sample psqlrc
|
||||
|
||||
dodir /etc/eselect/postgresql/slots/${SLOT}
|
||||
echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \
|
||||
"${ED}/etc/eselect/postgresql/slots/${SLOT}/base"
|
||||
|
||||
use static-libs || find "${ED}" -name '*.a' -delete
|
||||
|
||||
if use doc ; then
|
||||
docinto html
|
||||
dodoc doc/src/sgml/html/*
|
||||
|
||||
docinto sgml
|
||||
dodoc doc/src/sgml/*.{sgml,dsl}
|
||||
fi
|
||||
|
||||
if use server; then
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.confd" | newconfd - ${PN}-${SLOT}
|
||||
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.init-9.3" | newinitd - ${PN}-${SLOT}
|
||||
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.service" | \
|
||||
systemd_newunit - ${PN}-${SLOT}.service
|
||||
|
||||
systemd_newtmpfilesd "${FILESDIR}"/${PN}.tmpfilesd ${PN}-${SLOT}.conf
|
||||
|
||||
newbin "${FILESDIR}"/${PN}-check-db-dir ${PN}-${SLOT}-check-db-dir
|
||||
|
||||
use pam && pamd_mimic system-auth ${PN}-${SLOT} auth account session
|
||||
|
||||
if use prefix ; then
|
||||
keepdir /run/postgresql
|
||||
fperms 0775 /run/postgresql
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
postgresql-config update
|
||||
|
||||
elog "If you need a global psqlrc-file, you can place it in:"
|
||||
elog " ${EROOT%/}/etc/postgresql-${SLOT}/"
|
||||
|
||||
if use server ; then
|
||||
elog
|
||||
elog "Gentoo specific documentation:"
|
||||
elog "https://wiki.gentoo.org/wiki/PostgreSQL"
|
||||
elog
|
||||
elog "Official documentation:"
|
||||
elog "http://www.postgresql.org/docs/${SLOT}/static/index.html"
|
||||
elog
|
||||
elog "The default location of the Unix-domain socket is:"
|
||||
elog " ${EROOT%/}/run/postgresql/"
|
||||
elog
|
||||
elog "Before initializing the database, you may want to edit PG_INITDB_OPTS"
|
||||
elog "so that it contains your preferred locale in:"
|
||||
elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
||||
elog
|
||||
elog "Then, execute the following command to setup the initial database"
|
||||
elog "environment:"
|
||||
elog " emerge --config =${CATEGORY}/${PF}"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
if use server && [[ -z ${REPLACED_BY_VERSION} ]] ; then
|
||||
ewarn "Have you dumped and/or migrated the ${SLOT} database cluster?"
|
||||
ewarn "\thttps://wiki.gentoo.org/wiki/PostgreSQL/QuickStart#Migrating_PostgreSQL"
|
||||
|
||||
ebegin "Resuming removal in 10 seconds (Control-C to cancel)"
|
||||
sleep 10
|
||||
eend 0
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
postgresql-config update
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
use server || die "USE flag 'server' not enabled. Nothing to configure."
|
||||
|
||||
[[ -f "${EROOT%/}/etc/conf.d/postgresql-${SLOT}" ]] \
|
||||
&& source "${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
||||
[[ -z "${PGDATA}" ]] && PGDATA="${EROOT%/}/etc/postgresql-${SLOT}/"
|
||||
[[ -z "${DATA_DIR}" ]] \
|
||||
&& DATA_DIR="${EROOT%/}/var/lib/postgresql/${SLOT}/data"
|
||||
|
||||
# environment.bz2 may not contain the same locale as the current system
|
||||
# locale. Unset and source from the current system locale.
|
||||
if [ -f "${EROOT%/}/etc/env.d/02locale" ]; then
|
||||
unset LANG
|
||||
unset LC_CTYPE
|
||||
unset LC_NUMERIC
|
||||
unset LC_TIME
|
||||
unset LC_COLLATE
|
||||
unset LC_MONETARY
|
||||
unset LC_MESSAGES
|
||||
unset LC_ALL
|
||||
source "${EROOT%/}/etc/env.d/02locale"
|
||||
[ -n "${LANG}" ] && export LANG
|
||||
[ -n "${LC_CTYPE}" ] && export LC_CTYPE
|
||||
[ -n "${LC_NUMERIC}" ] && export LC_NUMERIC
|
||||
[ -n "${LC_TIME}" ] && export LC_TIME
|
||||
[ -n "${LC_COLLATE}" ] && export LC_COLLATE
|
||||
[ -n "${LC_MONETARY}" ] && export LC_MONETARY
|
||||
[ -n "${LC_MESSAGES}" ] && export LC_MESSAGES
|
||||
[ -n "${LC_ALL}" ] && export LC_ALL
|
||||
fi
|
||||
|
||||
einfo "You can modify the paths and options passed to initdb by editing:"
|
||||
einfo " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
||||
einfo
|
||||
einfo "Information on options that can be passed to initdb are found at:"
|
||||
einfo " http://www.postgresql.org/docs/${SLOT}/static/creating-cluster.html"
|
||||
einfo " http://www.postgresql.org/docs/${SLOT}/static/app-initdb.html"
|
||||
einfo
|
||||
einfo "PG_INITDB_OPTS is currently set to:"
|
||||
if [[ -z "${PG_INITDB_OPTS}" ]] ; then
|
||||
einfo " (none)"
|
||||
else
|
||||
einfo " ${PG_INITDB_OPTS}"
|
||||
fi
|
||||
einfo
|
||||
einfo "Configuration files will be installed to:"
|
||||
einfo " ${PGDATA}"
|
||||
einfo
|
||||
einfo "The database cluster will be created in:"
|
||||
einfo " ${DATA_DIR}"
|
||||
einfo
|
||||
while [ "$correct" != "true" ] ; do
|
||||
einfo "Are you ready to continue? (y/n)"
|
||||
read answer
|
||||
if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then
|
||||
correct="true"
|
||||
elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then
|
||||
die "Aborting initialization."
|
||||
else
|
||||
echo "Answer not recognized"
|
||||
fi
|
||||
done
|
||||
|
||||
if [ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ] ; then
|
||||
eerror "The given directory, '${DATA_DIR}', is not empty."
|
||||
eerror "Modify DATA_DIR to point to an empty directory."
|
||||
die "${DATA_DIR} is not empty."
|
||||
fi
|
||||
|
||||
einfo "Creating the data directory ..."
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
mkdir -p "${DATA_DIR}"
|
||||
chown -Rf postgres:postgres "${DATA_DIR}"
|
||||
chmod 0700 "${DATA_DIR}"
|
||||
fi
|
||||
|
||||
einfo "Initializing the database ..."
|
||||
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
su postgres -c "${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -D \"${DATA_DIR}\" ${PG_INITDB_OPTS}"
|
||||
else
|
||||
"${EROOT%/}"/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -U postgres -D "${DATA_DIR}" ${PG_INITDB_OPTS}
|
||||
fi
|
||||
|
||||
if [[ "${DATA_DIR%/}" != "${PGDATA%/}" ]] ; then
|
||||
mv "${DATA_DIR%/}"/{pg_{hba,ident},postgresql}.conf "${PGDATA}"
|
||||
ln -s "${PGDATA%/}"/{pg_{hba,ident},postgresql}.conf "${DATA_DIR%/}"
|
||||
fi
|
||||
|
||||
cat <<- EOF >> "${PGDATA%/}"/postgresql.conf
|
||||
# This is here because of https://bugs.gentoo.org/show_bug.cgi?id=518522
|
||||
# On the off-chance that you might need to work with UTF-8 encoded
|
||||
# characters in PL/Perl
|
||||
plperl.on_init = 'use utf8; use re; package utf8; require "utf8_heavy.pl";'
|
||||
EOF
|
||||
|
||||
einfo "The autovacuum function, which was in contrib, has been moved to the main"
|
||||
einfo "PostgreSQL functions starting with 8.1, and starting with 8.4 is now enabled"
|
||||
einfo "by default. You can disable it in the cluster's:"
|
||||
einfo " ${PGDATA%/}/postgresql.conf"
|
||||
einfo
|
||||
einfo "The PostgreSQL server, by default, will log events to:"
|
||||
einfo " ${DATA_DIR%/}/postmaster.log"
|
||||
einfo
|
||||
if use prefix ; then
|
||||
einfo "The location of the configuration files have moved to:"
|
||||
einfo " ${PGDATA}"
|
||||
einfo "To start the server:"
|
||||
einfo " pg_ctl start -D ${DATA_DIR} -o '-D ${PGDATA} --data-directory=${DATA_DIR}'"
|
||||
einfo "To stop:"
|
||||
einfo " pg_ctl stop -D ${DATA_DIR}"
|
||||
einfo
|
||||
einfo "Or move the configuration files back:"
|
||||
einfo "mv ${PGDATA}*.conf ${DATA_DIR}"
|
||||
else
|
||||
einfo "You should use the '${EROOT%/}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL"
|
||||
einfo "instead of 'pg_ctl'."
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
einfo ">>> Test phase [check]: ${CATEGORY}/${PF}"
|
||||
|
||||
if use server && [[ ${UID} -ne 0 ]] ; then
|
||||
emake check
|
||||
|
||||
einfo "If you think other tests besides the regression tests are necessary, please"
|
||||
einfo "submit a bug including a patch for this ebuild to enable them."
|
||||
else
|
||||
use server || \
|
||||
ewarn 'Tests cannot be run without the "server" use flag enabled.'
|
||||
[[ ${UID} -eq 0 ]] || \
|
||||
ewarn 'Tests cannot be run as root. Enable "userpriv" in FEATURES.'
|
||||
|
||||
ewarn 'Skipping.'
|
||||
fi
|
||||
}
|
@ -0,0 +1,419 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-9.4.4.ebuild,v 1.1 2015/06/12 14:01:40 titanofold Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
PYTHON_COMPAT=( python{2_{6,7},3_{2,3,4}} )
|
||||
|
||||
inherit eutils flag-o-matic linux-info multilib pam prefix python-single-r1 \
|
||||
systemd user versionator
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris"
|
||||
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
|
||||
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
|
||||
|
||||
LICENSE="POSTGRESQL GPL-2"
|
||||
DESCRIPTION="PostgreSQL RDBMS"
|
||||
HOMEPAGE="http://www.postgresql.org/"
|
||||
|
||||
LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr
|
||||
zh_CN zh_TW"
|
||||
IUSE="doc kerberos kernel_linux ldap nls pam perl -pg_legacytimestamp python
|
||||
+readline selinux +server ssl static-libs tcl threads uuid xml zlib"
|
||||
|
||||
for lingua in ${LINGUAS}; do
|
||||
IUSE+=" linguas_${lingua}"
|
||||
done
|
||||
|
||||
wanted_languages() {
|
||||
local enable_langs
|
||||
|
||||
for lingua in ${LINGUAS} ; do
|
||||
use linguas_${lingua} && enable_langs+="${lingua} "
|
||||
done
|
||||
|
||||
echo -n ${enable_langs}
|
||||
}
|
||||
|
||||
CDEPEND="
|
||||
>=app-eselect/eselect-postgresql-1.2.0
|
||||
sys-apps/less
|
||||
virtual/libintl
|
||||
kerberos? ( virtual/krb5 )
|
||||
ldap? ( net-nds/openldap )
|
||||
pam? ( virtual/pam )
|
||||
perl? ( >=dev-lang/perl-5.8 )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
readline? ( sys-libs/readline:0= )
|
||||
ssl? ( >=dev-libs/openssl-0.9.6-r1:0= )
|
||||
tcl? ( >=dev-lang/tcl-8:0= )
|
||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
||||
zlib? ( sys-libs/zlib )
|
||||
"
|
||||
|
||||
# uuid flags -- depend on sys-apps/util-linux for Linux libcs, or if no
|
||||
# supported libc in use depend on dev-libs/ossp-uuid. For BSD systems,
|
||||
# the libc includes UUID functions.
|
||||
UTIL_LINUX_LIBC=( elibc_{glibc,uclibc,musl} )
|
||||
BSD_LIBC=( elibc_{Free,Net,Open}BSD )
|
||||
|
||||
nest_usedep() {
|
||||
local front back
|
||||
while [[ ${#} -gt 1 ]]; do
|
||||
front+="${1}? ( "
|
||||
back+=" )"
|
||||
shift
|
||||
done
|
||||
echo "${front}${1}${back}"
|
||||
}
|
||||
|
||||
IUSE+=" ${UTIL_LINUX_LIBC[@]} ${BSD_LIBC[@]}"
|
||||
CDEPEND+="
|
||||
uuid? (
|
||||
${UTIL_LINUX_LIBC[@]/%/? ( sys-apps/util-linux )}
|
||||
$(nest_usedep ${UTIL_LINUX_LIBC[@]/#/!} ${BSD_LIBC[@]/#/!} dev-libs/ossp-uuid)
|
||||
)"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
!!<sys-apps/sandbox-2.0
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
nls? ( sys-devel/gettext )
|
||||
xml? ( virtual/pkgconfig )
|
||||
"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
!dev-db/postgresql-docs:${SLOT}
|
||||
!dev-db/postgresql-base:${SLOT}
|
||||
!dev-db/postgresql-server:${SLOT}
|
||||
selinux? ( sec-policy/selinux-postgresql )
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
use server && CONFIG_CHECK="~SYSVIPC" linux-info_pkg_setup
|
||||
|
||||
enewgroup postgres 70
|
||||
enewuser postgres 70 /bin/bash /var/lib/postgresql postgres
|
||||
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Work around PPC{,64} compilation bug where bool is already defined
|
||||
sed '/#ifndef __cplusplus/a #undef bool' -i src/include/c.h || die
|
||||
|
||||
# Set proper run directory
|
||||
sed "s|\(PGSOCKET_DIR\s\+\)\"/tmp\"|\1\"${EPREFIX}/run/postgresql\"|" \
|
||||
-i src/include/pg_config_manual.h || die
|
||||
|
||||
use server || epatch "${FILESDIR}/${PN}-${SLOT}-no-server.patch"
|
||||
|
||||
# Fix bug 486556 where the server would crash at start up because of
|
||||
# an infinite loop caused by a self-referencing symlink.
|
||||
epatch "${FILESDIR}/postgresql-9.2-9.4-tz-dir-overflow.patch"
|
||||
|
||||
if use pam ; then
|
||||
sed -e "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \
|
||||
-i src/backend/libpq/auth.c || \
|
||||
die 'PGSQL_PAM_SERVICE rename failed.'
|
||||
fi
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
case ${CHOST} in
|
||||
*-darwin*|*-solaris*)
|
||||
use nls && append-libs intl
|
||||
;;
|
||||
esac
|
||||
|
||||
export LDFLAGS_SL="${LDFLAGS}"
|
||||
export LDFLAGS_EX="${LDFLAGS}"
|
||||
|
||||
local PO="${EPREFIX%/}"
|
||||
|
||||
local i uuid_config=""
|
||||
if use uuid; then
|
||||
for i in ${UTIL_LINUX_LIBC[@]}; do
|
||||
use ${i} && uuid_config="--with-uuid=e2fs"
|
||||
done
|
||||
for i in ${BSD_LIBC[@]}; do
|
||||
use ${i} && uuid_config="--with-uuid=bsd"
|
||||
done
|
||||
[[ -z $uuid_config ]] && uuid_config="--with-uuid=ossp"
|
||||
fi
|
||||
|
||||
econf \
|
||||
--prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \
|
||||
--datadir="${PO}/usr/share/postgresql-${SLOT}" \
|
||||
--docdir="${PO}/usr/share/doc/${PF}" \
|
||||
--includedir="${PO}/usr/include/postgresql-${SLOT}" \
|
||||
--mandir="${PO}/usr/share/postgresql-${SLOT}/man" \
|
||||
--sysconfdir="${PO}/etc/postgresql-${SLOT}" \
|
||||
--with-system-tzdata="${PO}/usr/share/zoneinfo" \
|
||||
$(use_enable !pg_legacytimestamp integer-datetimes) \
|
||||
$(use_enable threads thread-safety) \
|
||||
$(use_with kerberos gssapi) \
|
||||
$(use_with ldap) \
|
||||
$(use_with pam) \
|
||||
$(use_with perl) \
|
||||
$(use_with python) \
|
||||
$(use_with readline) \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_with tcl) \
|
||||
${uuid_config} \
|
||||
$(use_with xml libxml) \
|
||||
$(use_with xml libxslt) \
|
||||
$(use_with zlib) \
|
||||
"$(use_enable nls nls "$(wanted_languages)")"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
emake -C contrib
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
emake DESTDIR="${D}" install -C contrib
|
||||
|
||||
dodoc README HISTORY doc/{TODO,bug.template}
|
||||
|
||||
# man pages are already built, but if we have the target make them,
|
||||
# they'll be generated from source before being installed so we
|
||||
# manually install man pages.
|
||||
# We use ${SLOT} instead of doman for postgresql.eselect
|
||||
insinto /usr/share/postgresql-${SLOT}/man/
|
||||
doins -r doc/src/sgml/man{1,3,7}
|
||||
if ! use server; then
|
||||
# Remove man pages for non-existent binaries
|
||||
for m in {initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}; do
|
||||
rm "${ED}/usr/share/postgresql-${SLOT}/man/man1/${m}.1"
|
||||
done
|
||||
fi
|
||||
docompress /usr/share/postgresql-${SLOT}/man/man{1,3,7}
|
||||
|
||||
insinto /etc/postgresql-${SLOT}
|
||||
newins src/bin/psql/psqlrc.sample psqlrc
|
||||
|
||||
dodir /etc/eselect/postgresql/slots/${SLOT}
|
||||
echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \
|
||||
"${ED}/etc/eselect/postgresql/slots/${SLOT}/base"
|
||||
|
||||
use static-libs || find "${ED}" -name '*.a' -delete
|
||||
|
||||
if use doc ; then
|
||||
docinto html
|
||||
dodoc doc/src/sgml/html/*
|
||||
|
||||
docinto sgml
|
||||
dodoc doc/src/sgml/*.{sgml,dsl}
|
||||
fi
|
||||
|
||||
if use server; then
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.confd" | newconfd - ${PN}-${SLOT}
|
||||
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.init-9.3" | newinitd - ${PN}-${SLOT}
|
||||
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.service" | \
|
||||
systemd_newunit - ${PN}-${SLOT}.service
|
||||
|
||||
systemd_newtmpfilesd "${FILESDIR}"/${PN}.tmpfilesd ${PN}-${SLOT}.conf
|
||||
|
||||
newbin "${FILESDIR}"/${PN}-check-db-dir ${PN}-${SLOT}-check-db-dir
|
||||
|
||||
use pam && pamd_mimic system-auth ${PN}-${SLOT} auth account session
|
||||
|
||||
if use prefix ; then
|
||||
keepdir /run/postgresql
|
||||
fperms 0775 /run/postgresql
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
postgresql-config update
|
||||
|
||||
elog "If you need a global psqlrc-file, you can place it in:"
|
||||
elog " ${EROOT%/}/etc/postgresql-${SLOT}/"
|
||||
|
||||
if use server ; then
|
||||
elog
|
||||
elog "Gentoo specific documentation:"
|
||||
elog "https://wiki.gentoo.org/wiki/PostgreSQL"
|
||||
elog
|
||||
elog "Official documentation:"
|
||||
elog "http://www.postgresql.org/docs/${SLOT}/static/index.html"
|
||||
elog
|
||||
elog "The default location of the Unix-domain socket is:"
|
||||
elog " ${EROOT%/}/run/postgresql/"
|
||||
elog
|
||||
elog "Before initializing the database, you may want to edit PG_INITDB_OPTS"
|
||||
elog "so that it contains your preferred locale in:"
|
||||
elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
||||
elog
|
||||
elog "Then, execute the following command to setup the initial database"
|
||||
elog "environment:"
|
||||
elog " emerge --config =${CATEGORY}/${PF}"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
if use server && [[ -z ${REPLACED_BY_VERSION} ]] ; then
|
||||
ewarn "Have you dumped and/or migrated the ${SLOT} database cluster?"
|
||||
ewarn "\thttps://wiki.gentoo.org/wiki/PostgreSQL/QuickStart#Migrating_PostgreSQL"
|
||||
|
||||
ebegin "Resuming removal in 10 seconds (Control-C to cancel)"
|
||||
sleep 10
|
||||
eend 0
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
postgresql-config update
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
use server || die "USE flag 'server' not enabled. Nothing to configure."
|
||||
|
||||
[[ -f "${EROOT%/}/etc/conf.d/postgresql-${SLOT}" ]] \
|
||||
&& source "${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
||||
[[ -z "${PGDATA}" ]] && PGDATA="${EROOT%/}/etc/postgresql-${SLOT}/"
|
||||
[[ -z "${DATA_DIR}" ]] \
|
||||
&& DATA_DIR="${EROOT%/}/var/lib/postgresql/${SLOT}/data"
|
||||
|
||||
# environment.bz2 may not contain the same locale as the current system
|
||||
# locale. Unset and source from the current system locale.
|
||||
if [ -f "${EROOT%/}/etc/env.d/02locale" ]; then
|
||||
unset LANG
|
||||
unset LC_CTYPE
|
||||
unset LC_NUMERIC
|
||||
unset LC_TIME
|
||||
unset LC_COLLATE
|
||||
unset LC_MONETARY
|
||||
unset LC_MESSAGES
|
||||
unset LC_ALL
|
||||
source "${EROOT%/}/etc/env.d/02locale"
|
||||
[ -n "${LANG}" ] && export LANG
|
||||
[ -n "${LC_CTYPE}" ] && export LC_CTYPE
|
||||
[ -n "${LC_NUMERIC}" ] && export LC_NUMERIC
|
||||
[ -n "${LC_TIME}" ] && export LC_TIME
|
||||
[ -n "${LC_COLLATE}" ] && export LC_COLLATE
|
||||
[ -n "${LC_MONETARY}" ] && export LC_MONETARY
|
||||
[ -n "${LC_MESSAGES}" ] && export LC_MESSAGES
|
||||
[ -n "${LC_ALL}" ] && export LC_ALL
|
||||
fi
|
||||
|
||||
einfo "You can modify the paths and options passed to initdb by editing:"
|
||||
einfo " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
||||
einfo
|
||||
einfo "Information on options that can be passed to initdb are found at:"
|
||||
einfo " http://www.postgresql.org/docs/${SLOT}/static/creating-cluster.html"
|
||||
einfo " http://www.postgresql.org/docs/${SLOT}/static/app-initdb.html"
|
||||
einfo
|
||||
einfo "PG_INITDB_OPTS is currently set to:"
|
||||
if [[ -z "${PG_INITDB_OPTS}" ]] ; then
|
||||
einfo " (none)"
|
||||
else
|
||||
einfo " ${PG_INITDB_OPTS}"
|
||||
fi
|
||||
einfo
|
||||
einfo "Configuration files will be installed to:"
|
||||
einfo " ${PGDATA}"
|
||||
einfo
|
||||
einfo "The database cluster will be created in:"
|
||||
einfo " ${DATA_DIR}"
|
||||
einfo
|
||||
while [ "$correct" != "true" ] ; do
|
||||
einfo "Are you ready to continue? (y/n)"
|
||||
read answer
|
||||
if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then
|
||||
correct="true"
|
||||
elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then
|
||||
die "Aborting initialization."
|
||||
else
|
||||
echo "Answer not recognized"
|
||||
fi
|
||||
done
|
||||
|
||||
if [ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ] ; then
|
||||
eerror "The given directory, '${DATA_DIR}', is not empty."
|
||||
eerror "Modify DATA_DIR to point to an empty directory."
|
||||
die "${DATA_DIR} is not empty."
|
||||
fi
|
||||
|
||||
einfo "Creating the data directory ..."
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
mkdir -p "${DATA_DIR}"
|
||||
chown -Rf postgres:postgres "${DATA_DIR}"
|
||||
chmod 0700 "${DATA_DIR}"
|
||||
fi
|
||||
|
||||
einfo "Initializing the database ..."
|
||||
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
su postgres -c "${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -D \"${DATA_DIR}\" ${PG_INITDB_OPTS}"
|
||||
else
|
||||
"${EROOT%/}"/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -U postgres -D "${DATA_DIR}" ${PG_INITDB_OPTS}
|
||||
fi
|
||||
|
||||
if [[ "${DATA_DIR%/}" != "${PGDATA%/}" ]] ; then
|
||||
mv "${DATA_DIR%/}"/{pg_{hba,ident},postgresql}.conf "${PGDATA}"
|
||||
ln -s "${PGDATA%/}"/{pg_{hba,ident},postgresql}.conf "${DATA_DIR%/}"
|
||||
fi
|
||||
|
||||
cat <<- EOF >> "${PGDATA%/}"/postgresql.conf
|
||||
# This is here because of https://bugs.gentoo.org/show_bug.cgi?id=518522
|
||||
# On the off-chance that you might need to work with UTF-8 encoded
|
||||
# characters in PL/Perl
|
||||
plperl.on_init = 'use utf8; use re; package utf8; require "utf8_heavy.pl";'
|
||||
EOF
|
||||
|
||||
einfo "The autovacuum function, which was in contrib, has been moved to the main"
|
||||
einfo "PostgreSQL functions starting with 8.1, and starting with 8.4 is now enabled"
|
||||
einfo "by default. You can disable it in the cluster's:"
|
||||
einfo " ${PGDATA%/}/postgresql.conf"
|
||||
einfo
|
||||
einfo "The PostgreSQL server, by default, will log events to:"
|
||||
einfo " ${DATA_DIR%/}/postmaster.log"
|
||||
einfo
|
||||
if use prefix ; then
|
||||
einfo "The location of the configuration files have moved to:"
|
||||
einfo " ${PGDATA}"
|
||||
einfo "To start the server:"
|
||||
einfo " pg_ctl start -D ${DATA_DIR} -o '-D ${PGDATA} --data-directory=${DATA_DIR}'"
|
||||
einfo "To stop:"
|
||||
einfo " pg_ctl stop -D ${DATA_DIR}"
|
||||
einfo
|
||||
einfo "Or move the configuration files back:"
|
||||
einfo "mv ${PGDATA}*.conf ${DATA_DIR}"
|
||||
else
|
||||
einfo "You should use the '${EROOT%/}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL"
|
||||
einfo "instead of 'pg_ctl'."
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
einfo ">>> Test phase [check]: ${CATEGORY}/${PF}"
|
||||
|
||||
if use server && [[ ${UID} -ne 0 ]] ; then
|
||||
emake check
|
||||
|
||||
einfo "If you think other tests besides the regression tests are necessary, please"
|
||||
einfo "submit a bug including a patch for this ebuild to enable them."
|
||||
else
|
||||
use server || \
|
||||
ewarn 'Tests cannot be run without the "server" use flag enabled.'
|
||||
[[ ${UID} -eq 0 ]] || \
|
||||
ewarn 'Tests cannot be run as root. Enable "userpriv" in FEATURES.'
|
||||
|
||||
ewarn 'Skipping.'
|
||||
fi
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST args4j-2.32-sources.jar 65381 SHA256 feaa3544def7e4c772d2155a16d0542698d997fa2db2a4ae7993e075aba5bfa2 SHA512 97b48a133f6e3348e17a653aa15d92e0bc240e689615c22321573f7f82f01f22cffe43ef7b24f72a9a52cfb91ab6601463567b18f634fcc64362ea366456a12f WHIRLPOOL b6e3b5de9c03198b2c3eb4622a2ba4a263d745cfd2d8f5df6aa8f99762ea528795d0d24420caea948603e5588f0558c791a8214aebd7f596db1b6ed1cd5d2f1d
|
@ -0,0 +1,20 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/args4j/args4j-2.32.ebuild,v 1.1 2015/06/12 14:57:37 monsieurp Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
DESCRIPTION="args4j is a Java command line arguments parser"
|
||||
HOMEPAGE="http://args4j.kohsuke.org/"
|
||||
SRC_URI="http://repo1.maven.org/maven2/${PN}/${PN}/${PV}/${P}-sources.jar"
|
||||
|
||||
LICENSE="CDDL"
|
||||
SLOT="2"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=virtual/jre-1.6"
|
||||
DEPEND=">=virtual/jdk-1.6
|
||||
app-arch/unzip"
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>java</herd>
|
||||
<maintainer>
|
||||
<email>monsieurp@gentoo.org</email>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -1,31 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/asm/asm-3.0.ebuild,v 1.9 2012/04/15 18:11:31 vapier Exp $
|
||||
|
||||
WANT_ANT_TASKS="ant-owanttask"
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="Bytecode manipulation framework for Java"
|
||||
HOMEPAGE="http://asm.objectweb.org"
|
||||
SRC_URI="http://download.forge.objectweb.org/${PN}/${P}.tar.gz"
|
||||
LICENSE="BSD"
|
||||
SLOT="3"
|
||||
KEYWORDS="amd64 ~ia64 ppc ~ppc64 x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-macos"
|
||||
|
||||
DEPEND=">=virtual/jdk-1.5"
|
||||
RDEPEND=">=virtual/jre-1.5"
|
||||
|
||||
EANT_DOC_TARGET="jdoc"
|
||||
|
||||
# Fails if this property is not set
|
||||
EANT_EXTRA_ARGS="-Dobjectweb.ant.tasks.path=foobar"
|
||||
|
||||
src_install() {
|
||||
for x in output/dist/lib/*.jar ; do
|
||||
java-pkg_newjar ${x} $(basename ${x/-${PV}})
|
||||
done
|
||||
use doc && java-pkg_dojavadoc output/dist/doc/javadoc/user/
|
||||
use source && java-pkg_dosrc src/*
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/asm/asm-3.1.ebuild,v 1.7 2012/04/15 18:11:31 vapier Exp $
|
||||
|
||||
WANT_ANT_TASKS="ant-owanttask"
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="Bytecode manipulation framework for Java"
|
||||
HOMEPAGE="http://asm.objectweb.org"
|
||||
SRC_URI="http://download.forge.objectweb.org/${PN}/${P}.tar.gz"
|
||||
LICENSE="BSD"
|
||||
SLOT="3"
|
||||
KEYWORDS="amd64 ~ia64 ppc ppc64 x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-macos ~x64-solaris ~x86-solaris"
|
||||
|
||||
DEPEND=">=virtual/jdk-1.5"
|
||||
RDEPEND=">=virtual/jre-1.5"
|
||||
|
||||
# Needs deps we don't have yet
|
||||
RESTRICT="test"
|
||||
|
||||
EANT_DOC_TARGET="jdoc"
|
||||
|
||||
# Fails if this property is not set
|
||||
EANT_EXTRA_ARGS="-Dobjectweb.ant.tasks.path=foobar"
|
||||
|
||||
src_install() {
|
||||
for x in output/dist/lib/*.jar ; do
|
||||
java-pkg_newjar ${x} $(basename ${x/-${PV}})
|
||||
done
|
||||
use doc && java-pkg_dojavadoc output/dist/doc/javadoc/user/
|
||||
use source && java-pkg_dosrc src/*
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
DIST batik-src-1.7.zip 741312 SHA256 fe0f385a6d94fe23953371fa00f63d1fec42c3698829bbc13877d0264f9ae623 SHA512 31abbd6250fc722f22b02004c4bb0d13b514164860cb867fd241cba33dbad363b203b641e471a227978098ac117028a10af66f414d8a4082e68098967dee965e WHIRLPOOL ba9da93099437ca42b2282eb29ce40c8954a8ef9c4552cc5215b1b5af3f06f5ecae3b481549f39ac24508f8b4d98e67bcb4a272786d215b5ed707188c1a9a87c
|
||||
DIST batik-src-1.7.zip 15060504 SHA256 6bea593543a797561fa83651764e40b1b0ce01c1df21ab0359ade58e967379fd SHA512 7fee3e0d2c99e95517420c8170f68b4857fec87f69c7c55719b5e9914608900fca4c9d7d9b3e1166d678a6c844fe870a3c1051e2c1f35a2e6793a17b9087893e WHIRLPOOL 7e8f4e537d5c1d14778a8c151ff469edbc25e629c0cf99009c65a99c1dfac47d58c0bf0fa6b194bc51d8fe25ba7949f264b5d055cc22563ff50ecdd95d36daab
|
||||
DIST batik-src-1.8.tar.gz 14970684 SHA256 0f1175146d45445fc4940e214c3e1e5cfa0294ae6a9787859bda00964f97c2bd SHA512 352843fd0cec43c6d9d54426fe1c20a9bd2234798404b101f2e8d43f6089c0bf6bb5102cb5674de11d37a0d820a8bb79fe9dd854030b23fd8c68f3931eb12f1b WHIRLPOOL fa50d1f87257c6018f99076bf759066b2311f483d424ef743e45fe17c74c646a215c1211c5431b2a522913f23ff5f53934a1606d4d4a223e8298abd6ce94bb46
|
||||
|
@ -1,64 +0,0 @@
|
||||
# Copyright 1999-2009 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/castor/castor-0.9.9.1-r6.ebuild,v 1.2 2009/12/09 22:36:25 maekke Exp $
|
||||
|
||||
EAPI=2
|
||||
JAVA_PKG_IUSE="doc examples source"
|
||||
JAVA_PKG_WANT_BOOTCLASSPATH="1.5"
|
||||
|
||||
inherit eutils java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="Data binding framework for Java"
|
||||
SRC_URI="http://dist.codehaus.org/${PN}/${PV}/${P}-src.tgz"
|
||||
HOMEPAGE="http://www.castor.org"
|
||||
LICENSE="Exolab"
|
||||
KEYWORDS="amd64 x86"
|
||||
SLOT="0.9"
|
||||
IUSE=""
|
||||
|
||||
COMMON_DEP="
|
||||
>=dev-java/commons-logging-1.0.4
|
||||
dev-java/jakarta-oro:2.0
|
||||
dev-java/jakarta-regexp:1.3
|
||||
dev-java/ldapsdk:4.1
|
||||
dev-java/xerces:1.3
|
||||
dev-java/cglib:2
|
||||
java-virtuals/transaction-api"
|
||||
RDEPEND=">=virtual/jre-1.5
|
||||
${COMMON_DEP}"
|
||||
DEPEND=">=virtual/jdk-1.5
|
||||
${COMMON_DEP}"
|
||||
|
||||
java_prepare() {
|
||||
# TODO this should be filed upstream
|
||||
epatch "${FILESDIR}/0.9.5.3-jikes.patch"
|
||||
|
||||
# Does not like Java 1.6's JDBC API
|
||||
java-ant_rewrite-bootclasspath 1.5 src/build.xml
|
||||
|
||||
cd "${S}/lib"
|
||||
rm -v *.jar || die
|
||||
#FIXME: uses these bundled classes
|
||||
rm -v tests/*.jar || die
|
||||
java-pkg_jar-from --build-only ant-core ant.jar
|
||||
#Only used by examples and tests and we aren't building them
|
||||
#java-pkg_jar-from adaptx-0.9
|
||||
java-pkg_jar-from commons-logging
|
||||
java-pkg_jar-from cglib-2
|
||||
java-pkg_jar-from jakarta-oro-2.0 jakarta-oro.jar oro.jar
|
||||
java-pkg_jar-from jakarta-regexp-1.3 jakarta-regexp.jar regexp.jar
|
||||
java-pkg_jar-from xerces-1.3
|
||||
java-pkg_jar-from ldapsdk-4.1 ldapjdk.jar
|
||||
java-pkg_jar-from transaction-api
|
||||
}
|
||||
|
||||
EANT_BUILD_XML="src/build.xml"
|
||||
|
||||
src_install() {
|
||||
java-pkg_newjar dist/${P}.jar
|
||||
java-pkg_newjar dist/${P}-xml.jar ${PN}-xml.jar
|
||||
|
||||
use doc && java-pkg_dojavadoc build/doc/javadoc
|
||||
use examples && java-pkg_doexamples src/examples
|
||||
use source && java-pkg_dosrc src/main/org
|
||||
}
|
@ -1,97 +0,0 @@
|
||||
# Copyright 1999-2008 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/castor/castor-1.1.1-r2.ebuild,v 1.3 2008/10/24 23:04:21 maekke Exp $
|
||||
|
||||
JAVA_PKG_IUSE="doc examples source"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="Data binding framework for Java"
|
||||
HOMEPAGE="http://www.castor.org"
|
||||
SRC_URI="http://dist.codehaus.org/${PN}/${PV}/${P}-src.tgz"
|
||||
|
||||
#SRC_URI="mirror://gentoo/${P}.tar.bz2"
|
||||
# svn co https://svn.codehaus.org/castor/castor/tags/1.0.3/ castor-1.0.3
|
||||
# cd castor-1.0.3
|
||||
# mvn ant:ant
|
||||
# do some magic to build.xml
|
||||
# rm lib/*
|
||||
# cd ../
|
||||
# tar cjvf castor-1.0.3.tar.bz2 --exclude=.svn castor-1.0.3
|
||||
|
||||
LICENSE="Exolab"
|
||||
SLOT="1.0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE=""
|
||||
|
||||
# tests and full documentation when support will be added
|
||||
# dev-java/log4j
|
||||
# ~dev-java/servletapi-2.4
|
||||
# dev-java/junit"
|
||||
|
||||
COMMON_DEPS="
|
||||
=dev-java/cglib-2.1*
|
||||
dev-java/commons-logging
|
||||
=dev-java/jakarta-oro-2.0*
|
||||
=dev-java/jakarta-regexp-1.3*
|
||||
java-virtuals/transaction-api
|
||||
=dev-java/ldapsdk-4.1*
|
||||
dev-java/ant-core"
|
||||
|
||||
DEPEND=">=virtual/jdk-1.4
|
||||
${COMMON_DEPS}"
|
||||
RDEPEND=">=virtual/jre-1.4
|
||||
${COMMON_DEPS}"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
|
||||
java-ant_rewrite-classpath "${S}/anttask/build.xml"
|
||||
|
||||
cd "${S}"
|
||||
# http://jira.codehaus.org/browse/CASTOR-2008
|
||||
epatch "${FILESDIR}/1.1.1-jdk-1.4.patch"
|
||||
|
||||
cd "${S}/lib"
|
||||
rm -v *.jar tests/*.jar
|
||||
java-pkg_jar-from cglib-2.1 cglib.jar
|
||||
java-pkg_jar-from commons-logging \
|
||||
commons-logging-api.jar commons-logging-1.1.jar
|
||||
java-pkg_jar-from jakarta-oro-2.0
|
||||
java-pkg_jar-from jakarta-regexp-1.3
|
||||
java-pkg_jar-from transaction-api
|
||||
java-pkg_jar-from ldapsdk-4.1 ldapjdk.jar
|
||||
java-pkg_jar-from ant-core ant.jar
|
||||
|
||||
# These are only used for tests or documentation
|
||||
#java-pkg_jar-from junit
|
||||
#java-pkg_jar-from adaptx-0.9
|
||||
#java-pkg_jar-from log4j
|
||||
#java-pkg_jar-from servletapi-2.4 servlet-api.jar
|
||||
use doc && mkdir "${S}/bin/lib"
|
||||
java-pkg_filter-compiler jikes
|
||||
}
|
||||
|
||||
# clean target is borked
|
||||
# http://jira.codehaus.org/browse/CASTOR-2009
|
||||
EANT_BUILD_XML="src/build.xml"
|
||||
EANT_GENTOO_CLASSPATH="ant-core"
|
||||
|
||||
# Needs for example mockejb which is not packaged yet
|
||||
#src_test() {
|
||||
# cd "${S}"/src/
|
||||
# eant tests
|
||||
#}
|
||||
|
||||
src_install() {
|
||||
cd dist
|
||||
for jar in *.jar; do
|
||||
java-pkg_newjar ${jar} ${jar//-${PV}}
|
||||
done
|
||||
cd ..
|
||||
dodoc src/etc/CHANGELOG || die
|
||||
java-pkg_register-ant-task
|
||||
use source && java-pkg_dosrc */main/java/org
|
||||
use doc && java-pkg_dojavadoc build/doc/javadoc
|
||||
use examples && java-pkg_doexamples src/examples
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-httpclient/commons-httpclient-3.1-r1.ebuild,v 1.1 2015/06/13 09:02:44 monsieurp Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
JAVA_PKG_IUSE="doc examples source test"
|
||||
|
||||
inherit eutils java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="The Jakarta Commons HttpClient library"
|
||||
HOMEPAGE="http://hc.apache.org/"
|
||||
SRC_URI="mirror://apache/httpcomponents/${PN}/source/${P}-src.tar.gz"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="3"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-macos"
|
||||
IUSE=""
|
||||
|
||||
# doesn't work with IBM JDK, bug #176133
|
||||
RESTRICT="test"
|
||||
|
||||
CDEPEND="dev-java/commons-logging:0
|
||||
dev-java/commons-codec:0"
|
||||
RDEPEND=">=virtual/jre-1.6
|
||||
${CDEPEND}"
|
||||
DEPEND=">=virtual/jdk-1.6
|
||||
test? ( dev-java/ant-junit:0 )
|
||||
${CDEPEND}"
|
||||
|
||||
JAVA_ANT_ENCODING="ISO-8859-1"
|
||||
JAVA_ANT_REWRITE_CLASSPATH="true"
|
||||
EANT_GENTOO_CLASSPATH="commons-logging,commons-codec"
|
||||
EANT_BUILD_TARGET="dist"
|
||||
EANT_DOC_TARGET="doc"
|
||||
|
||||
java_prepare() {
|
||||
# patch against CVE-2012-{5783,6153}. See bug 442292.
|
||||
epatch "${FILESDIR}"/"${P}-SSLProtocolSocketFactory.java.patch"
|
||||
|
||||
# generated docs go into docs/api
|
||||
rm -rf docs/apidocs
|
||||
|
||||
# remove javadoc task from compile task
|
||||
sed -i -e 's/depends="compile,doc"/depends="compile"/' build.xml || die
|
||||
sed -i -e '/link/ d' build.xml || die
|
||||
|
||||
mkdir lib && cd lib
|
||||
java-pkg_filter-compiler jikes
|
||||
}
|
||||
|
||||
EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},junit"
|
||||
EANT_TEST_TARGET="test"
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar dist/${PN}.jar
|
||||
|
||||
# contains both html docs and javadoc in correct subdir
|
||||
if use doc ; then
|
||||
java-pkg_dojavadoc dist/docs/api
|
||||
java-pkg_dohtml -r dist/docs/*
|
||||
fi
|
||||
use source && java-pkg_dosrc src/java/*
|
||||
use examples && java-pkg_doexamples src/examples
|
||||
}
|
@ -1,51 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/guice/guice-2.0.ebuild,v 1.2 2015/04/11 22:25:46 monsieurp Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="Guice is a lightweight dependency injection framework for Java 5 and above"
|
||||
HOMEPAGE="http://code.google.com/p/google-guice/"
|
||||
SRC_URI="http://google-guice.googlecode.com/files/${P}-src.zip"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="2"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE=""
|
||||
|
||||
COMMON_DEPEND="dev-java/aopalliance:1
|
||||
dev-java/asm:3
|
||||
dev-java/cglib:2.2"
|
||||
RDEPEND=">=virtual/jre-1.5
|
||||
${COMMON_DEPEND}"
|
||||
DEPEND=">=virtual/jdk-1.5
|
||||
${COMMON_DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${P}-src/"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
JAVA_PKG_BSFIX_NAME="build.xml common.xml servlet/build.xml"
|
||||
JAVA_ANT_CLASSPATH_TAGS="${JAVA_ANT_CLASSPATH_TAGS} javadoc"
|
||||
|
||||
JAVA_ANT_REWRITE_CLASSPATH="yes"
|
||||
EANT_GENTOO_CLASSPATH="aopalliance-1,asm-3,cglib-2.2"
|
||||
|
||||
java_prepare() {
|
||||
find . -name '*.jar' -delete || die
|
||||
find . -name '*.class' -delete || die
|
||||
epatch "${FILESDIR}"/${PV}-common.xml.patch
|
||||
epatch "${FILESDIR}"/${PV}-build.xml.patch
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar build/${PN}.jar
|
||||
|
||||
use doc && java-pkg_dojavadoc javadoc/
|
||||
use source && java-pkg_dosrc src/com
|
||||
}
|
@ -1,50 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/guice/guice-3.0.ebuild,v 1.2 2014/08/10 20:13:56 slyfox Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
JAVA_PKG_IUSE="source"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="Guice is a lightweight dependency injection framework for Java 5 and above"
|
||||
HOMEPAGE="http://code.google.com/p/google-guice/"
|
||||
SRC_URI="http://google-guice.googlecode.com/files/${P}-src.zip"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="3"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE=""
|
||||
|
||||
COMMON_DEPEND="dev-java/aopalliance:1
|
||||
dev-java/javax-inject:0
|
||||
dev-java/asm:3
|
||||
dev-java/cglib:2.2"
|
||||
|
||||
RDEPEND=">=virtual/jre-1.5
|
||||
${COMMON_DEPEND}"
|
||||
|
||||
DEPEND=">=virtual/jdk-1.5
|
||||
${COMMON_DEPEND}"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
S="${WORKDIR}/${P}-src/"
|
||||
|
||||
JAVA_PKG_BSFIX_NAME="build.xml common.xml servlet/build.xml"
|
||||
JAVA_ANT_REWRITE_CLASSPATH="yes"
|
||||
EANT_GENTOO_CLASSPATH="aopalliance-1,asm-3,cglib-2.2,javax-inject"
|
||||
|
||||
java_prepare() {
|
||||
find . -name '*.jar' -exec rm -v {} + || die
|
||||
find . -name '*.class' -exec rm -v {} + || die
|
||||
epatch "${FILESDIR}"/${PV}-common.xml.patch
|
||||
epatch "${FILESDIR}"/${PV}-build.xml.patch
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar build/${PN}.jar
|
||||
use source && java-pkg_dosrc core/src/com
|
||||
}
|
@ -1,67 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/hibernate/hibernate-3.1.3-r3.ebuild,v 1.3 2014/08/10 20:14:40 slyfox Exp $
|
||||
|
||||
EAPI="2"
|
||||
WANT_ANT_TASKS="ant-antlr ant-swing ant-junit"
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
JAVA_PKG_WANT_BOOTCLASSPATH="1.5"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
MY_PV="3.1"
|
||||
DESCRIPTION="A powerful, ultra-high performance object / relational persistence and query service for Java"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
HOMEPAGE="http://www.hibernate.org"
|
||||
LICENSE="LGPL-2"
|
||||
IUSE=""
|
||||
SLOT="3.1"
|
||||
KEYWORDS="amd64 x86"
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=dev-java/antlr-2.7.7:0[java]
|
||||
dev-java/c3p0:0
|
||||
dev-java/cglib:2.2
|
||||
dev-java/commons-collections:0
|
||||
dev-java/commons-logging:0
|
||||
dev-java/dom4j:1
|
||||
dev-java/ehcache:0
|
||||
dev-java/oscache:0
|
||||
dev-java/proxool:0
|
||||
dev-java/swarmcache:1.0
|
||||
java-virtuals/transaction-api
|
||||
dev-java/sun-jacc-api:0
|
||||
dev-java/ant-core:0
|
||||
dev-java/asm:2.2"
|
||||
RDEPEND=">=virtual/jre-1.5
|
||||
${COMMON_DEPEND}"
|
||||
DEPEND=">=virtual/jdk-1.5
|
||||
${COMMON_DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
|
||||
java_prepare() {
|
||||
java-ant_rewrite-bootclasspath 1.5
|
||||
|
||||
# this depends on jboss
|
||||
rm src/org/hibernate/cache/JndiBoundTreeCacheProvider.java \
|
||||
src/org/hibernate/cache/TreeCache.java \
|
||||
src/org/hibernate/cache/TreeCacheProvider.java
|
||||
|
||||
rm -v *.jar lib/*.jar || die
|
||||
}
|
||||
|
||||
JAVA_ANT_REWRITE_CLASSPATH="true"
|
||||
EANT_GENTOO_CLASSPATH="
|
||||
c3p0,commons-collections,commons-logging,cglib-2.2,transaction-api
|
||||
dom4j-1,ehcache,oscache,proxool,swarmcache-1.0
|
||||
sun-jacc-api,antlr,ant-core,asm-2.2
|
||||
"
|
||||
EANT_EXTRA_ARGS="-Dnosplash -Ddist.dir=dist"
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar hibernate3.jar
|
||||
dodoc changelog.txt readme.txt
|
||||
use doc && java-pkg_dohtml -r dist/doc/api doc/other doc/reference
|
||||
use source && java-pkg_dosrc src/*
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST istack-commons-20090620-src.tar.bz2 30194 SHA256 0719fbc462f98bfb66e9606fad11845797a2ba7dd54ad780e07e16c63f3ea899 SHA512 8a037852a19dd8ecf66fd6b6ca1454503e9f3d36ee716d774a1eb70245a60cf21c7e14ae97d811953d68475c4ea9bef7b9470d0ab82363481dc0f71c2865d2d4 WHIRLPOOL 68f8427892ff95390bf418c874dccd84aefe5c04f26e40b42f1f3e6fbe85a81f695365c1ff3b34eab0a4ebf42476301434555ed43d556f39f597bcd4c6861630
|
||||
DIST istack-commons-buildtools-2.22-sources.jar 12689 SHA256 bec644682b4188813c91cc08a1b55761dfec22d6a11be531aeb9acafd896531e SHA512 6cafd354c51fe1b42bb8a6cf52ddf9f6dd97cfdd16182ed5d1a2db6440d18ab84af4d9136df09aa4703694bad546967d25e828c0e1b21fb802c66630da3f4fe4 WHIRLPOOL 6e74271502e59bf1bd64dc6b0af9ee583f79698e5b59f367f9c58af3d3e7560ab4a34b891957bc631b39fbb8d150965ff2c97697ca28b84f5399e97aec873712
|
||||
|
@ -0,0 +1,28 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/istack-commons-buildtools/istack-commons-buildtools-2.22.ebuild,v 1.2 2015/06/12 16:34:42 monsieurp Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
MY_PN=${PN%%-*}
|
||||
|
||||
DESCRIPTION="IStack Commons - Buildtools jar"
|
||||
HOMEPAGE="https://istack-commons.java.net"
|
||||
SRC_URI="https://maven.java.net/content/repositories/releases/com/sun/${MY_PN}/${PN}/${PV}/${P}-sources.jar"
|
||||
|
||||
LICENSE="CDDL"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
CDEPEND="dev-java/ant-core:0
|
||||
dev-java/codemodel:2"
|
||||
RDEPEND=">=virtual/jre-1.6
|
||||
${CDEPEND}"
|
||||
DEPEND=">=virtual/jdk-1.6
|
||||
app-arch/unzip
|
||||
${CDEPEND}"
|
||||
|
||||
JAVA_GENTOO_CLASSPATH="ant-core,codemodel-2"
|
@ -1,2 +1,3 @@
|
||||
DIST istack-commons-20070122.tar.bz2 10360 SHA256 dc8c86bb11f7ddd4c1c50ca0925d59ade16b5dc74bcd983fe95a08e104662a8e SHA512 120b9b8db52cebe507e8711dd4fcdc1a12db8d2320ff9054e1fa6688a321cbb18d25f6beb06e11a091c1cbc2870ab07e9df9681784893c5f0d6f36ae4b7e12f6 WHIRLPOOL b4d47b9d73ecd26c2effd287642521d8ecd6741c6df140bd024aa54770ddf1084d504ade53505e27dda66e3204e2625dcb63c40df1d098e4baed76f5371a55ee
|
||||
DIST istack-commons-20090620-src.tar.bz2 30194 SHA256 0719fbc462f98bfb66e9606fad11845797a2ba7dd54ad780e07e16c63f3ea899 SHA512 8a037852a19dd8ecf66fd6b6ca1454503e9f3d36ee716d774a1eb70245a60cf21c7e14ae97d811953d68475c4ea9bef7b9470d0ab82363481dc0f71c2865d2d4 WHIRLPOOL 68f8427892ff95390bf418c874dccd84aefe5c04f26e40b42f1f3e6fbe85a81f695365c1ff3b34eab0a4ebf42476301434555ed43d556f39f597bcd4c6861630
|
||||
DIST istack-commons-runtime-2.22-sources.jar 33136 SHA256 06520c4566d7ab28358ce06f03caaf7f44ebccca8b79fdb5d4ddc4df221911bb SHA512 cfabed991cadfa3562a2a281f4b3bdabadd753cd3b9ee918b3f89428e416c0d23aed928d5f61bde4f3958d12f4cb63130354cbf6bf14577ed54871a46d703bdd WHIRLPOOL d35c96f6d7658dceaa7dacf6a23f6993c7f5a0755557f24ad4f23db3a750c635dfa8769b145e100c378050136df27b46fd0ee389a458cd694cab712a019db075
|
||||
|
@ -0,0 +1,22 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/istack-commons-runtime/istack-commons-runtime-2.22.ebuild,v 1.2 2015/06/12 16:36:46 monsieurp Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
MY_PN=${PN%%-*}
|
||||
|
||||
DESCRIPTION="IStack Commons - Runtime jar"
|
||||
HOMEPAGE="https://istack-commons.java.net"
|
||||
SRC_URI="https://maven.java.net/content/repositories/releases/com/sun/${MY_PN}/${PN}/${PV}/${P}-sources.jar"
|
||||
|
||||
LICENSE="CDDL"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=virtual/jre-1.6"
|
||||
DEPEND=">=virtual/jdk-1.6
|
||||
app-arch/unzip"
|
@ -0,0 +1 @@
|
||||
DIST istack-commons-soimp-2.22-sources.jar 10208 SHA256 68a2f56b5c269be20ddc6618559fa7be2d9818f6bc7bbd3fa11eb64358509c3a SHA512 28b85550dd92b9fac106ecc2173e728adc7180350f1e47cb619e4d1d6f517cf0878cca87dc7242d80fc0dac5e3d683a2a599bbfb4aa147d33a2089e6f0b28a21 WHIRLPOOL 1abe78f63e11e89b91bc969a1684e869d137d8197e8a598ed14dc8095fef6a91fbfbefa7be572bc74ac817dfe11d11496f772da993466b5ed61c6527493c6699
|
@ -0,0 +1,28 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/istack-commons-soimp/istack-commons-soimp-2.22.ebuild,v 1.2 2015/06/12 16:08:37 monsieurp Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
MY_PN=${PN%%-*}
|
||||
|
||||
DESCRIPTION="IStack Commons - Soimp jar"
|
||||
HOMEPAGE="https://istack-commons.java.net"
|
||||
SRC_URI="https://maven.java.net/content/repositories/releases/com/sun/${MY_PN}/${PN}/${PV}/${P}-sources.jar"
|
||||
|
||||
LICENSE="CDDL"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
CDEPEND="dev-java/ant-core:0
|
||||
dev-java/args4j:2"
|
||||
RDEPEND=">=virtual/jre-1.6
|
||||
${CDEPEND}"
|
||||
DEPEND=">=virtual/jdk-1.6
|
||||
app-arch/unzip
|
||||
${CDEPEND}"
|
||||
|
||||
JAVA_GENTOO_CLASSPATH="ant-core,args4j-2"
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>java</herd>
|
||||
<maintainer>
|
||||
<email>monsieurp@gentoo.org</email>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -1,2 +1,3 @@
|
||||
DIST istack-commons-20070122.tar.bz2 10360 SHA256 dc8c86bb11f7ddd4c1c50ca0925d59ade16b5dc74bcd983fe95a08e104662a8e SHA512 120b9b8db52cebe507e8711dd4fcdc1a12db8d2320ff9054e1fa6688a321cbb18d25f6beb06e11a091c1cbc2870ab07e9df9681784893c5f0d6f36ae4b7e12f6 WHIRLPOOL b4d47b9d73ecd26c2effd287642521d8ecd6741c6df140bd024aa54770ddf1084d504ade53505e27dda66e3204e2625dcb63c40df1d098e4baed76f5371a55ee
|
||||
DIST istack-commons-20090620-src.tar.bz2 30194 SHA256 0719fbc462f98bfb66e9606fad11845797a2ba7dd54ad780e07e16c63f3ea899 SHA512 8a037852a19dd8ecf66fd6b6ca1454503e9f3d36ee716d774a1eb70245a60cf21c7e14ae97d811953d68475c4ea9bef7b9470d0ab82363481dc0f71c2865d2d4 WHIRLPOOL 68f8427892ff95390bf418c874dccd84aefe5c04f26e40b42f1f3e6fbe85a81f695365c1ff3b34eab0a4ebf42476301434555ed43d556f39f597bcd4c6861630
|
||||
DIST istack-commons-tools-2.22-sources.jar 15106 SHA256 8287f624b188dd70551907728deb9fd73c9e4bf4362458e6c2e84b6ff626a1c3 SHA512 daded38bcc64a8639813e607126867a515cf26c57b709062e32dc1c507e02f1592e496d028dbb36fb40e1aa04a82fb8c1a94d66818fed6680a32790a4a9b802f WHIRLPOOL 881e528c81f636a40de81491a5b5f106af42b7b8dfb709339f23c2626e54a522c0394dc3bca7477e2e437e62592ce9f0f7c70dae1de6d8b7ebec3aa73ae17621
|
||||
|
@ -0,0 +1,27 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/istack-commons-tools/istack-commons-tools-2.22.ebuild,v 1.2 2015/06/12 16:31:55 monsieurp Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
MY_PN=${PN%%-*}
|
||||
|
||||
DESCRIPTION="IStack Commons - Tools jar"
|
||||
HOMEPAGE="https://istack-commons.java.net"
|
||||
SRC_URI="https://maven.java.net/content/repositories/releases/com/sun/${MY_PN}/${PN}/${PV}/${P}-sources.jar"
|
||||
|
||||
LICENSE="CDDL"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
CDEPEND="dev-java/ant-core:0"
|
||||
RDEPEND=">=virtual/jre-1.6
|
||||
${CDEPEND}"
|
||||
DEPEND=">=virtual/jdk-1.6
|
||||
app-arch/unzip
|
||||
${CDEPEND}"
|
||||
|
||||
JAVA_GENTOO_CLASSPATH="ant-core"
|
@ -1,43 +0,0 @@
|
||||
# Copyright 1999-2008 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/jsr101/jsr101-1.4-r1.ebuild,v 1.3 2008/05/04 11:54:49 opfer Exp $
|
||||
|
||||
EAPI=1
|
||||
JAVA_PKG_IUSE=""
|
||||
|
||||
inherit versionator java-pkg-2
|
||||
|
||||
DESCRIPTION="Java(TM) API for XML-Based RPC Specification Interface Classes"
|
||||
HOMEPAGE="http://jcp.org/aboutJava/communityprocess/first/jsr101/"
|
||||
MY_PN=axis
|
||||
MY_PV=$(replace_all_version_separators _)
|
||||
SRC_URI="mirror://apache/ws/${MY_PN}/${MY_PV}/${MY_PN}-src-${MY_PV}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~ppc x86 ~x86-fbsd"
|
||||
|
||||
IUSE=""
|
||||
|
||||
COMMON_DEP="
|
||||
java-virtuals/servlet-api:2.5
|
||||
java-virtuals/saaj-api"
|
||||
RDEPEND=">=virtual/jre-1.5
|
||||
${COMMON_DEP}"
|
||||
DEPEND=">=virtual/jdk-1.5
|
||||
${COMMON_DEP}"
|
||||
|
||||
S="${WORKDIR}/${MY_PN}-${MY_PV}"
|
||||
|
||||
src_compile() {
|
||||
mkdir build
|
||||
ejavac \
|
||||
-classpath $(java-pkg_getjars servlet-api-2.5,saaj-api) \
|
||||
$(find src/javax/xml/rpc -name "*.java") -d build
|
||||
cd build
|
||||
jar cf jaxrpc-api.jar $(find . -type f) || die "jar failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar build/*.jar
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST JAXWS2.0.1m1_source_20060817.jar 8993405 SHA256 9725cfb91cecff833055d7af45c3413ca9d1a818a4cfdb86211ed82f383f3865 SHA512 55454a8270310b9778c69aad8b8ace45dc4ba3059b33ac48dcfd5d771fade2d6e4c46a5a65a522ae5cca0438f159ba84c90d8e74d54731a9c6c0caa9d84a0314 WHIRLPOOL fe0727935c592b538b7042808fffa987ea5ae47554367ea0cfc91f65d765bd234713aaa142b2297988d74eec01fce9cd4bedceb0fb7b0068eb38084a1d5f5ba7
|
||||
DIST jsr250-api-1.0-sources.jar 7680 SHA256 d1c22846dcbb8e69d64e074d2017819e129afa6c4c7e6221d8c078fb7c22fb08 SHA512 3a652db6f78fd74e6256a602ea75d1b3e50fd68aee658e2b8569196710427e00b61c85786a79c094f3820856dd05dbd37cd6afd28b666a7bb1b0805812fa4d63 WHIRLPOOL f8e99af6e6893050480be067a56a0860a092d8894e4f73dddd34ab518b0b9d919267abdb989cbd19b160e2e50237759207e1793615e6919b9aee2042c6b86f7f
|
||||
|
@ -0,0 +1,20 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/jsr250/jsr250-1.0-r1.ebuild,v 1.1 2015/06/12 13:24:10 monsieurp Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
DESCRIPTION="JSR 250 Common Annotations"
|
||||
HOMEPAGE="https://jcp.org/en/jsr/detail?id=250"
|
||||
SRC_URI="http://download.java.net/maven/2/javax/annotation/${PN}-api/${PV}/${PN}-api-${PV}-sources.jar"
|
||||
|
||||
LICENSE="CDDL"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=virtual/jre-1.6"
|
||||
DEPEND=">=virtual/jdk-1.6
|
||||
app-arch/unzip"
|
@ -0,0 +1,58 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/mx4j-core/mx4j-core-3.0.2-r1.ebuild,v 1.1 2015/06/13 19:25:05 monsieurp Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
MY_PN="${PN/-core/}"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="Open Source implementation of the JMX and JMX Remote API (JSR 160) specifications"
|
||||
HOMEPAGE="http://mx4j.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}-src.tar.gz"
|
||||
|
||||
CDEPEND="dev-java/bcel:0
|
||||
dev-java/commons-logging:0
|
||||
dev-java/log4j:0"
|
||||
DEPEND=">=virtual/jdk-1.6
|
||||
>=dev-java/ant-core-1.6
|
||||
source? ( app-arch/zip )
|
||||
${CDEPEND}"
|
||||
RDEPEND=">=virtual/jre-1.6
|
||||
${CDEPEND}"
|
||||
|
||||
LICENSE="Apache-1.1"
|
||||
SLOT="3.0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
||||
IUSE="doc source"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
JAVA_ANT_REWRITE_CLASSPATH="true"
|
||||
EANT_GENTOO_CLASSPATH="bcel,commons-logging,log4j"
|
||||
|
||||
java_prepare() {
|
||||
epatch "${FILESDIR}/${P}-split-javadoc-build.patch"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
eant -f build/build.xml \
|
||||
compile.jmx \
|
||||
compile.rjmx \
|
||||
$(use_doc javadocs.core)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar dist/lib/*.jar
|
||||
dodoc README.txt
|
||||
use doc && java-pkg_dojavadoc dist/docs/api
|
||||
use source && java-pkg_dosrc "${S}/src/core/*"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "This is a a new split ebuild for just the core jmx to reduce"
|
||||
elog "dependencies for packages that only require the core. You can"
|
||||
elog "find the examples in dev-java/mx4j and the tools in dev-java/mx4j-tools"
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/mx4j-tools/mx4j-tools-3.0.2-r1.ebuild,v 1.1 2015/06/13 20:16:55 monsieurp Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
MY_P=${P/-tools/}
|
||||
MY_PN=${PN/-tools/}
|
||||
|
||||
DESCRIPTION="Optional tool classes and utilities for MX4J"
|
||||
HOMEPAGE="http://mx4j.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}-src.tar.gz"
|
||||
|
||||
# The ${S}/BUILD-HOWTO is a good source for dependencies
|
||||
# This package could also be built with jdk-1.3; see special
|
||||
# handling instructions in ${S}/BUILD-HOWTO.
|
||||
|
||||
# javamail and jython support is optional but because ant-core puts it in the classpath
|
||||
# if it is installed we can't force disable it without modifying the build.xml
|
||||
# and jikes refuses to compile mx4j with javamail support disabled
|
||||
|
||||
# Optional jetty support can be enabled after jetty uses java-pkg_dojar to install jars
|
||||
|
||||
CDEPEND="dev-java/bcel:0
|
||||
dev-java/ant-core:0
|
||||
dev-java/commons-logging:0
|
||||
dev-java/log4j:0
|
||||
www-servers/axis:1
|
||||
dev-java/hessian:4.0
|
||||
dev-java/jython:2.7
|
||||
java-virtuals/servlet-api:3.0
|
||||
java-virtuals/jaf:0
|
||||
java-virtuals/javamail:0"
|
||||
DEPEND=">=virtual/jdk-1.6
|
||||
source? ( app-arch/zip )
|
||||
${CDEPEND}"
|
||||
RDEPEND=">=virtual/jre-1.6
|
||||
${CDEPEND}"
|
||||
|
||||
LICENSE="Apache-1.1"
|
||||
SLOT="3.0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc source"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
JAVA_ANT_REWRITE_CLASSPATH="true"
|
||||
EANT_GENTOO_CLASSPATH="bcel,commons-logging,log4j,axis-1,servlet-api-3.0,hessian-4.0,jython-2.7,jaf,javamail"
|
||||
|
||||
java_prepare() {
|
||||
epatch "${FILESDIR}/${P}-split-javadoc-build.patch"
|
||||
epatch "${FILESDIR}/${P}-new-hessian.patch"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
eant -f build/build.xml compile.tools $(use_doc javadocs.tools)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar dist/lib/mx4j-tools.jar
|
||||
java-pkg_dowar dist/lib/mx4j-soap.war
|
||||
|
||||
dodoc README.txt
|
||||
use doc && java-pkg_dojavadoc dist/docs/api
|
||||
use source && java-pkg_dosrc "${S}/src/tools/*"
|
||||
}
|
@ -0,0 +1,105 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/mx4j/mx4j-3.0.2-r1.ebuild,v 1.1 2015/06/13 18:26:12 monsieurp Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
JAVA_PKG_IUSE="examples source doc"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="Metapackage for mx4j"
|
||||
HOMEPAGE="http://mx4j.sourceforge.net/"
|
||||
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz
|
||||
doc? ( mirror://sourceforge/${PN}/${P}.tar.gz )"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="3.0"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE=""
|
||||
|
||||
CDEPEND="examples? (
|
||||
dev-java/bcel:0
|
||||
dev-java/log4j:0
|
||||
dev-java/commons-logging:0
|
||||
www-servers/axis:1
|
||||
java-virtuals/servlet-api:3.0
|
||||
dev-java/hessian:4.0
|
||||
dev-java/jython:2.7
|
||||
dev-java/gnu-jaf:1
|
||||
java-virtuals/javamail:0
|
||||
)
|
||||
dev-java/mx4j-core:3.0
|
||||
dev-java/mx4j-tools:3.0
|
||||
!<dev-java/mx4j-tools-3.0.1-r1
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
${CDEPEND}
|
||||
examples? ( >=virtual/jre-1.6 )"
|
||||
|
||||
# We always depend on a jdk to get the package.env created
|
||||
DEPEND=">=virtual/jdk-1.6
|
||||
${CDEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${P}-new-hessian.patch"
|
||||
|
||||
if use doc; then
|
||||
mkdir binary && cd binary
|
||||
unpack "${P}.tar.gz"
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
cd "${S}/lib"
|
||||
java-pkg_jar-from bcel bcel.jar
|
||||
java-pkg_jar-from log4j
|
||||
java-pkg_jar-from commons-logging commons-logging.jar
|
||||
java-pkg_jar-from axis-1
|
||||
java-pkg_jar-from hessian-4.0
|
||||
java-pkg_jar-from jython-2.7 jython.jar
|
||||
java-pkg_jar-from gnu-jaf-1 activation.jar
|
||||
java-pkg_jar-from --virtual javamail mail.jar
|
||||
java-pkg_jar-from --virtual servlet-api-3.0 servlet-api.jar
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cd build
|
||||
if use examples; then
|
||||
eant compile.examples
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodoc README.txt RELEASE-NOTES-* || die
|
||||
|
||||
if use examples; then
|
||||
java-pkg_dojar dist/examples/mx4j-examples.jar
|
||||
dodir /usr/share/doc/${PF}/examples
|
||||
cp -r src/examples/mx4j/examples/* "${D}usr/share/doc/${PF}/examples"
|
||||
fi
|
||||
|
||||
use source && java-pkg_dosrc src/examples/mx4j
|
||||
|
||||
if use doc; then
|
||||
local docdir="${WORKDIR}/${P}/binary/${P}/docs"
|
||||
java-pkg_dojavadoc "${docdir}/api"
|
||||
dohtml -r "${docdir}/images"
|
||||
dohtml "${docdir}"/{*.html,*.css}
|
||||
fi
|
||||
|
||||
# Recording jars to get the same behaviour as before
|
||||
local jars="$(java-pkg_getjars mx4j-core-3.0,mx4j-tools-3.0)"
|
||||
for jar in ${jars//:/ }; do
|
||||
java-pkg_regjar "${jar}"
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Although this package can be used directly with java-config,"
|
||||
elog "ebuild developers should use mx4j-core and mx4j-tools directly."
|
||||
}
|
@ -1,253 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-java/netbeans-java-8.0.2.ebuild,v 1.2 2015/02/04 21:38:45 fordfrog Exp $
|
||||
|
||||
EAPI="4"
|
||||
inherit eutils java-pkg-2 java-ant-2
|
||||
|
||||
# Maven cannot be unbundled because it depends on exact maven version and exact content of maven directory
|
||||
|
||||
DESCRIPTION="Netbeans Java Cluster"
|
||||
HOMEPAGE="http://netbeans.org/projects/java"
|
||||
SLOT="8.0"
|
||||
SOURCE_URL="http://download.netbeans.org/netbeans/8.0.2/final/zip/netbeans-8.0.2-201411181905-src.zip"
|
||||
SRC_URI="${SOURCE_URL}
|
||||
http://dev.gentoo.org/~fordfrog/distfiles/netbeans-8.0.2-build.xml.patch.bz2
|
||||
http://hg.netbeans.org/binaries/694F57282D92C434800F79218E64704E5947008A-apache-maven-3.0.5-bin.zip
|
||||
http://hg.netbeans.org/binaries/F7BD95641780C2AAE8CB9BED1686441A1CE5E749-beansbinding-1.2.1-doc.zip
|
||||
http://hg.netbeans.org/binaries/CD2211635F3011E300CA8FEDC1CE0E1CF61C175B-eclipselink.jar
|
||||
http://hg.netbeans.org/binaries/A9A0648BD7D9FD2CDFBD22C25366E71DA72438DA-hibernate-release-4.3.1-lib.zip
|
||||
http://hg.netbeans.org/binaries/562F0CFA47F0636EBB5A544968EE7A692FC5D26D-indexer-artifact-5.1.1.jar
|
||||
http://hg.netbeans.org/binaries/2B9EAB164D8748F9793F6A0D29B6463E97B284DA-indexer-core-5.1.1.jar
|
||||
http://hg.netbeans.org/binaries/D87F53C99E4CD88F5416EDD5ABB77F2A1CCFB050-jarjar-1.4.jar
|
||||
http://hg.netbeans.org/binaries/5BAB675816DBE0F64BB86004B108BF2A00292358-javax.persistence_2.1.0.v201304241213.jar
|
||||
http://hg.netbeans.org/binaries/84E2020E5499015E9F40D1212C86918264B89EB1-jaxws-2.2.6.zip
|
||||
http://hg.netbeans.org/binaries/D64C40E770C95C2A6994081C00CCD489C0AA20C9-jaxws-2.2.6-api.zip
|
||||
http://hg.netbeans.org/binaries/8ECD169E9E308C258287E4F28B03B6D6F1E55F47-jaxws-api-doc.zip
|
||||
http://hg.netbeans.org/binaries/A8BD39C5B88571B4D4697E78DD1A56566E44B1DD-JPAjavadocs04032013.zip
|
||||
http://hg.netbeans.org/binaries/9EC77E2507F9CC01756964C71D91EFD8154A8C47-lucene-core-3.6.2.jar
|
||||
http://hg.netbeans.org/binaries/A90682C6BC0B9E105BD260C9A041FEFEA9579E46-lucene-highlighter-3.6.2.jar
|
||||
http://hg.netbeans.org/binaries/BF206C4AA93C74A739FBAF1F1C78E3AD5F167245-maven-dependency-tree-2.0.jar
|
||||
http://hg.netbeans.org/binaries/E5579EF3B0C1EF2F43562DD0C3B32F8E1F603B49-nb-javac-api.jar
|
||||
http://hg.netbeans.org/binaries/8BDE88C9512D8783E64788F32A50E4CCBC48485E-nb-javac-impl.jar
|
||||
http://hg.netbeans.org/binaries/29AF1D338CBB76290D1A96F5A6610F1E8C319AE5-org.eclipse.persistence.jpa.jpql_2.5.2.v20140319-9ad6abd.jar
|
||||
http://hg.netbeans.org/binaries/3CE04BDB48FE315736B1DCE407362C57DFAE286D-org.eclipse.persistence.jpa.modelgen_2.5.2.v20140319-9ad6abd.jar
|
||||
http://hg.netbeans.org/binaries/7666B94C1004AFFFE88E5328BD70EBA6F60125F4-spring-framework-3.2.7.RELEASE.zip
|
||||
http://hg.netbeans.org/binaries/91B55CDAC59BC4DDDF0AF9A54EAAE4304EDEF266-spring-framework-4.0.1.RELEASE.zip"
|
||||
LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
S="${WORKDIR}"
|
||||
|
||||
CDEPEND="~dev-java/netbeans-platform-${PV}
|
||||
~dev-java/netbeans-extide-${PV}
|
||||
~dev-java/netbeans-harness-${PV}
|
||||
~dev-java/netbeans-ide-${PV}
|
||||
~dev-java/netbeans-websvccommon-${PV}
|
||||
dev-java/beansbinding:0
|
||||
dev-java/cglib:2.2
|
||||
dev-java/jdom:1.0"
|
||||
DEPEND="virtual/jdk:1.7
|
||||
app-arch/unzip
|
||||
${CDEPEND}
|
||||
dev-java/javahelp:0
|
||||
dev-java/json-simple:0
|
||||
dev-java/junit:4"
|
||||
RDEPEND=">=virtual/jdk-1.7
|
||||
${CDEPEND}
|
||||
dev-java/absolutelayout:0
|
||||
dev-java/antlr:0[java]
|
||||
dev-java/c3p0:0
|
||||
dev-java/cglib:2.1
|
||||
dev-java/commons-collections:0
|
||||
dev-java/dom4j:1
|
||||
dev-java/fastinfoset:0
|
||||
dev-java/glassfish-transaction-api:0
|
||||
dev-java/javassist:3
|
||||
dev-java/jboss-logging:0
|
||||
dev-java/jsr67:0
|
||||
dev-java/jsr181:0
|
||||
dev-java/jtidy:0
|
||||
dev-java/log4j:0
|
||||
dev-java/mimepull:0
|
||||
dev-java/saaj:0
|
||||
dev-java/stax-ex:0
|
||||
dev-java/xmlstreambuffer:0"
|
||||
|
||||
INSTALL_DIR="/usr/share/${PN}-${SLOT}"
|
||||
|
||||
EANT_BUILD_XML="nbbuild/build.xml"
|
||||
EANT_BUILD_TARGET="rebuild-cluster"
|
||||
EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.java -Dext.binaries.downloaded=true"
|
||||
EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
|
||||
JAVA_PKG_BSFIX="off"
|
||||
|
||||
pkg_pretend() {
|
||||
local die_now=""
|
||||
|
||||
if [ -d /usr/share/netbeans-java-${SLOT}/ant ]; then
|
||||
if [ -n "$(find /usr/share/netbeans-java-${SLOT}/ant -type l)" ]; then
|
||||
eerror "Please remove following symlinks and run emerge again:"
|
||||
find /usr/share/netbeans-java-${SLOT}/ant -type l
|
||||
die_now="1"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -L /usr/share/netbeans-java-${SLOT}/maven ]; then
|
||||
if [ -z "${die_now}" ]; then
|
||||
eerror "Please remove following symlinks and run emerge again:"
|
||||
fi
|
||||
|
||||
echo "/usr/share/netbeans-java-${SLOT}/maven"
|
||||
die_now="1"
|
||||
fi
|
||||
|
||||
if [ -n "${die_now}" ]; then
|
||||
die "Symlinks exist"
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack $(basename ${SOURCE_URL})
|
||||
|
||||
einfo "Deleting bundled jars..."
|
||||
find -name "*.jar" -type f -delete
|
||||
|
||||
unpack netbeans-8.0.2-build.xml.patch.bz2
|
||||
|
||||
pushd "${S}" >/dev/null || die
|
||||
ln -s "${DISTDIR}"/694F57282D92C434800F79218E64704E5947008A-apache-maven-3.0.5-bin.zip maven.embedder/external/apache-maven-3.0.5-bin.zip || die
|
||||
ln -s "${DISTDIR}"/F7BD95641780C2AAE8CB9BED1686441A1CE5E749-beansbinding-1.2.1-doc.zip o.jdesktop.beansbinding/external/beansbinding-1.2.1-doc.zip || die
|
||||
ln -s "${DISTDIR}"/CD2211635F3011E300CA8FEDC1CE0E1CF61C175B-eclipselink.jar j2ee.eclipselink/external/eclipselink.jar || die
|
||||
ln -s "${DISTDIR}"/A9A0648BD7D9FD2CDFBD22C25366E71DA72438DA-hibernate-release-4.3.1-lib.zip hibernate4lib/external/hibernate-release-4.3.1-lib.zip || die
|
||||
ln -s "${DISTDIR}"/562F0CFA47F0636EBB5A544968EE7A692FC5D26D-indexer-artifact-5.1.1.jar maven.indexer/external/indexer-artifact-5.1.1.jar || die
|
||||
ln -s "${DISTDIR}"/2B9EAB164D8748F9793F6A0D29B6463E97B284DA-indexer-core-5.1.1.jar maven.indexer/external/indexer-core-5.1.1.jar || die
|
||||
ln -s "${DISTDIR}"/D87F53C99E4CD88F5416EDD5ABB77F2A1CCFB050-jarjar-1.4.jar maven/external/jarjar-1.4.jar || die
|
||||
ln -s "${DISTDIR}"/5BAB675816DBE0F64BB86004B108BF2A00292358-javax.persistence_2.1.0.v201304241213.jar j2ee.eclipselink/external/javax.persistence_2.1.0.v201304241213.jar || die
|
||||
ln -s "${DISTDIR}"/84E2020E5499015E9F40D1212C86918264B89EB1-jaxws-2.2.6.zip websvc.jaxws21/external/jaxws-2.2.6.zip || die
|
||||
ln -s "${DISTDIR}"/D64C40E770C95C2A6994081C00CCD489C0AA20C9-jaxws-2.2.6-api.zip websvc.jaxws21api/external/jaxws-2.2.6-api.zip || die
|
||||
ln -s "${DISTDIR}"/8ECD169E9E308C258287E4F28B03B6D6F1E55F47-jaxws-api-doc.zip websvc.jaxws21/external/jaxws-api-doc.zip || die
|
||||
ln -s "${DISTDIR}"/A8BD39C5B88571B4D4697E78DD1A56566E44B1DD-JPAjavadocs04032013.zip j2ee.eclipselink/external/JPAjavadocs04032013.zip || die
|
||||
ln -s "${DISTDIR}"/9EC77E2507F9CC01756964C71D91EFD8154A8C47-lucene-core-3.6.2.jar maven.indexer/external/lucene-core-3.6.2.jar || die
|
||||
ln -s "${DISTDIR}"/A90682C6BC0B9E105BD260C9A041FEFEA9579E46-lucene-highlighter-3.6.2.jar maven.indexer/external/lucene-highlighter-3.6.2.jar || die
|
||||
ln -s "${DISTDIR}"/BF206C4AA93C74A739FBAF1F1C78E3AD5F167245-maven-dependency-tree-2.0.jar maven.embedder/external/maven-dependency-tree-2.0.jar || die
|
||||
ln -s "${DISTDIR}"/E5579EF3B0C1EF2F43562DD0C3B32F8E1F603B49-nb-javac-api.jar libs.javacapi/external/nb-javac-api.jar || die
|
||||
ln -s "${DISTDIR}"/8BDE88C9512D8783E64788F32A50E4CCBC48485E-nb-javac-impl.jar libs.javacimpl/external/nb-javac-impl.jar || die
|
||||
ln -s "${DISTDIR}"/29AF1D338CBB76290D1A96F5A6610F1E8C319AE5-org.eclipse.persistence.jpa.jpql_2.5.2.v20140319-9ad6abd.jar j2ee.eclipselink/external/org.eclipse.persistence.jpa.jpql_2.5.2.v20140319-9ad6abd.jar || die
|
||||
ln -s "${DISTDIR}"/3CE04BDB48FE315736B1DCE407362C57DFAE286D-org.eclipse.persistence.jpa.modelgen_2.5.2.v20140319-9ad6abd.jar j2ee.eclipselinkmodelgen/external/org.eclipse.persistence.jpa.modelgen_2.5.2.v20140319-9ad6abd.jar || die
|
||||
ln -s "${DISTDIR}"/7666B94C1004AFFFE88E5328BD70EBA6F60125F4-spring-framework-3.2.7.RELEASE.zip libs.springframework/external/spring-framework-3.2.7.RELEASE.zip || die
|
||||
ln -s "${DISTDIR}"/91B55CDAC59BC4DDDF0AF9A54EAAE4304EDEF266-spring-framework-4.0.1.RELEASE.zip libs.springframework/external/spring-framework-4.0.1.RELEASE.zip || die
|
||||
popd >/dev/null || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
einfo "Deleting bundled class files..."
|
||||
find -name "*.class" -type f | xargs rm -vf
|
||||
|
||||
epatch netbeans-8.0.2-build.xml.patch
|
||||
|
||||
# Support for custom patches
|
||||
if [ -n "${NETBEANS80_PATCHES_DIR}" -a -d "${NETBEANS80_PATCHES_DIR}" ] ; then
|
||||
local files=`find "${NETBEANS80_PATCHES_DIR}" -type f`
|
||||
|
||||
if [ -n "${files}" ] ; then
|
||||
einfo "Applying custom patches:"
|
||||
|
||||
for file in ${files} ; do
|
||||
epatch "${file}"
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
||||
einfo "Symlinking external libraries..."
|
||||
java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
|
||||
java-pkg_jar-from --into libs.cglib/external cglib-2.2 cglib.jar cglib-2.2.jar
|
||||
java-pkg_jar-from --build-only --into libs.json_simple/external json-simple json-simple.jar json-simple-1.1.1.jar
|
||||
java-pkg_jar-from --build-only --into libs.junit4/external junit-4 junit.jar junit-4.10.jar
|
||||
java-pkg_jar-from --into maven.embedder/external jdom-1.0 jdom.jar jdom-1.0.jar
|
||||
java-pkg_jar-from --into o.jdesktop.beansbinding/external beansbinding beansbinding.jar beansbinding-1.2.1.jar
|
||||
|
||||
einfo "Linking in other clusters..."
|
||||
mkdir "${S}"/nbbuild/netbeans || die
|
||||
pushd "${S}"/nbbuild/netbeans >/dev/null || die
|
||||
|
||||
ln -s /usr/share/netbeans-platform-${SLOT} platform || die
|
||||
cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||
touch nb.cluster.platform.built
|
||||
|
||||
ln -s /usr/share/netbeans-extide-${SLOT} extide || die
|
||||
cat /usr/share/netbeans-extide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||
touch nb.cluster.extide.built
|
||||
|
||||
ln -s /usr/share/netbeans-harness-${SLOT} harness || die
|
||||
cat /usr/share/netbeans-harness-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||
touch nb.cluster.harness.built
|
||||
|
||||
ln -s /usr/share/netbeans-ide-${SLOT} ide || die
|
||||
cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||
touch nb.cluster.ide.built
|
||||
|
||||
ln -s /usr/share/netbeans-websvccommon-${SLOT} websvccommon || die
|
||||
cat /usr/share/netbeans-websvccommon-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||
touch nb.cluster.websvccommon.built
|
||||
|
||||
popd >/dev/null || die
|
||||
|
||||
java-pkg-2_src_prepare
|
||||
}
|
||||
|
||||
src_install() {
|
||||
pushd nbbuild/netbeans/java >/dev/null || die
|
||||
|
||||
insinto ${INSTALL_DIR}
|
||||
grep -E "/java$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
|
||||
|
||||
doins -r *
|
||||
chmod 755 "${D}"/${INSTALL_DIR}/maven/bin/mvn* || die
|
||||
rm -fr "${D}"/${INSTALL_DIR}/maven/bin/*.bat || die
|
||||
|
||||
popd >/dev/null || die
|
||||
|
||||
local instdir=/${INSTALL_DIR}/modules/ext
|
||||
pushd "${D}"/${instdir} >/dev/null || die
|
||||
rm AbsoluteLayout.jar && dosym /usr/share/absolutelayout/lib/absolutelayout.jar ${instdir}/AbsoluteLayout.jar || die
|
||||
rm beansbinding-1.2.1.jar && dosym /usr/share/beansbinding/lib/beansbinding.jar ${instdir}/beansbinding-1.2.1.jar || die
|
||||
rm cglib-2.2.jar && dosym /usr/share/cglib-2.2/lib/cglib.jar ${instdir}/cglib-2.2.jar || die
|
||||
popd >/dev/null || die
|
||||
|
||||
local instdir=${INSTALL_DIR}/modules/ext/hibernate4
|
||||
pushd "${D}"/${instdir} >/dev/null || die
|
||||
rm antlr-2.7.7.jar && dosym /usr/share/antlr/lib/antlr.jar ${instdir}/antlr-2.7.7.jar || die
|
||||
rm c3p0-0.9.2.1.jar && dosym /usr/share/c3p0/lib/c3p0.jar ${instdir}/c3p0-0.9.2.1.jar || die
|
||||
rm cglib-2.2.jar && dosym /usr/share/cglib-2.1/lib/cglib.jar ${instdir}/cglib-2.2.jar || die
|
||||
rm commons-collections-3.2.1.jar && dosym /usr/share/commons-collections/lib/commons-collections.jar ${instdir}/commons-collections-3.2.1.jar || die
|
||||
rm dom4j-1.6.1.jar && dosym /usr/share/dom4j-1/lib/dom4j.jar ${instdir}/dom4j-1.6.1.jar || die
|
||||
rm javassist-3.18.1-GA.jar && dosym /usr/share/javassist-3/lib/javassist.jar ${instdir}/javassist-3.18.1-GA.jar || die
|
||||
rm jboss-logging-3.1.3.GA.jar && dosym /usr/share/jboss-logging/lib/jboss-logging.jar ${instdir}/jboss-logging-3.1.3.GA.jar || die
|
||||
rm jboss-transaction-api_1.2_spec-1.0.0.Final.jar && dosym /usr/share/glassfish-transaction-api/lib/jta.jar ${instdir}/jboss-transaction-api_1.2_spec-1.0.0.Final.jar || die
|
||||
rm jtidy-r8-20060801.jar && dosym /usr/share/jtidy/lib/Tidy.jar ${instdir}/jtidy-r8-20060801.jar || die
|
||||
rm log4j-1.2.12.jar && dosym /usr/share/log4j/lib/log4j.jar ${instdir}/log4j-1.2.12.jar || die
|
||||
popd >/dev/null || die
|
||||
|
||||
local instdir=/${INSTALL_DIR}/modules/ext/jaxws22
|
||||
pushd "${D}"/${instdir} >/dev/null || die
|
||||
rm FastInfoset.jar && dosym /usr/share/fastinfoset/lib/fastinfoset.jar ${instdir}/FastInfoset.jar || die
|
||||
rm mimepull.jar && dosym /usr/share/mimepull/lib/mimepull.jar ${instdir}/mimepull.jar || die
|
||||
rm saaj-impl.jar && dosym /usr/share/saaj/lib/saaj.jar ${instdir}/saaj-impl.jar || die
|
||||
rm stax-ex.jar && dosym /usr/share/stax-ex/lib/stax-ex.jar ${instdir}/stax-ex.jar || die
|
||||
rm streambuffer.jar && dosym /usr/share/xmlstreambuffer/lib/streambuffer.jar ${instdir}/streambuffer.jar || die
|
||||
popd >/dev/null || die
|
||||
|
||||
local instdir=${INSTALL_DIR}/modules/ext/jaxws22/api
|
||||
pushd "${D}"/${instdir} >/dev/null || die
|
||||
rm jsr181-api.jar && dosym /usr/share/jsr181/lib/jsr181.jar ${instdir}/jsr181-api.jar || die
|
||||
rm saaj-api.jar && dosym /usr/share/jsr67/lib/jsr67.jar ${instdir}/saaj-api.jar || die
|
||||
popd >/dev/null || die
|
||||
|
||||
local instdir=${INSTALL_DIR}/modules/ext/maven
|
||||
pushd "${D}"/${instdir} >/dev/null || die
|
||||
rm jdom-1.0.jar && dosym /usr/share/jdom-1.0/lib/jdom.jar ${instdir}/jdom-1.0.jar || die
|
||||
popd >/dev/null || die
|
||||
|
||||
dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/java
|
||||
}
|
@ -1,4 +1,3 @@
|
||||
DIST rhino-swing-ex-1.0.zip 19708 SHA256 062837ddb18951ace41ba0050aec95a690c00190a6218e5c9591c381035dfa7d SHA512 f2c1f970595cb08ac301d2fc21e0a2f1090b2007c849d993094ef3215a39456a5865bcaaf9424da93a09d6f0d151be6ec77f844bde2540d725c85c4b54a5f248 WHIRLPOOL 4dd40c1c80a70cd08584ac44abd3b42a790080f93449da8e241ed568ff5b3a5ac6cef12951632eba91547845be49401102d072b05a83a3ed78705acd768b1ced
|
||||
DIST rhino1_5R5.zip 1522154 SHA256 d4c3c6a5724852f8e775047085fec36dbe91a9083c88dd13c4e29968acaa5526 SHA512 25b6e2472065fc236abc322ddecd71542e9fb9422f69f41d0bef0a9e7a80a45c3742f32e5aac887872fa43931a68ead093f8b1982b29fea99979b0dc162047cc WHIRLPOOL 922a350a35e6cddea51b6c735ff8a9ed6ed6c2b5ab9995b60e227de044673ce2a27eb874c47c78eb16e366bd7a60d9cbda692b2f17eaf0ed5459b597829ce37c
|
||||
DIST rhino1_6R5.zip 1822832 SHA256 02a4f17121f148c94ac65fb6d9eb4a817ce86c378c96cc94e9fc1b087b34526f SHA512 bd10b2e687925e06a5a4da5bc0e29a65cff08fc26792e3183f2ab28efb71efcdbc2fb08142be2fd2622c0b94dfa2691ce898ba847935def780e8686a879720f0 WHIRLPOOL 5fda95c5a99a6e99322a81fda513135cece56df0c7d17efcaea0b5f9f8f63b3adccd47bf30f26521b36e33f34e642e05107d7e0f202b8d532356884954d01049
|
||||
DIST rhino1_7R2.zip 2996867 SHA256 677f7dc1b67a1587bc03974d5f0720474a56b8f29835e1d860739908df8462dc SHA512 e4472e11377e93b64df3a2a9f266956d86ba78c85ceba57ff05c983d577143351fcbbbc0b63f7034718fd74c13a9e50bac6e8813f320b86fcd09b571e919b858 WHIRLPOOL 546f9a0e565881dd6128e000ca8c8e017cf7432e40df885268c4827e2dbd28f86cde37dbc7284bd1b08b062060eca1465716f850dbd54f176ead475b4b55351d
|
||||
|
@ -1,43 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/rhino/rhino-1.5.5-r4.ebuild,v 1.9 2014/08/10 20:22:50 slyfox Exp $
|
||||
|
||||
inherit eutils java-pkg-2 java-ant-2
|
||||
|
||||
MY_P="rhino1_5R5"
|
||||
DESCRIPTION="Rhino is an open-source Java implementation of JavaScript"
|
||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/js/${MY_P}.zip
|
||||
http://dev.gentoo.org/~karltk/projects/java/distfiles/rhino-swing-ex-1.0.zip"
|
||||
HOMEPAGE="http://www.mozilla.org/rhino/"
|
||||
LICENSE="NPL-1.1"
|
||||
SLOT="1.5"
|
||||
KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd"
|
||||
IUSE="doc source"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
DEPEND="dev-java/ant-core
|
||||
>=virtual/jdk-1.3
|
||||
app-arch/unzip
|
||||
source? ( app-arch/zip )"
|
||||
RDEPEND=">=virtual/jre-1.3"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${MY_P}.zip
|
||||
cd ${S}
|
||||
mkdir build/
|
||||
epatch ${FILESDIR}/${PV}_jdk15.patch
|
||||
epatch ${FILESDIR}/00_dont-fetch-swing-ex.patch
|
||||
epatch ${FILESDIR}/public-NativeScript.patch
|
||||
cp ${DISTDIR}/rhino-swing-ex-1.0.zip build/swingExSrc.zip || die "unpack error"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
eant jar
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dolauncher jsscript-${SLOT} \
|
||||
--main org.mozilla.javascript.tools.shell.Main
|
||||
java-pkg_dojar build/*/js.jar
|
||||
use source && java-pkg_dosrc {src,toolsrc}/org
|
||||
use doc && java-pkg_dohtml -r docs/*
|
||||
}
|
@ -1,44 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/rhino/rhino-1.5.5-r5.ebuild,v 1.4 2014/08/10 20:22:50 slyfox Exp $
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
inherit eutils java-pkg-2 java-ant-2
|
||||
|
||||
MY_P="rhino1_5R5"
|
||||
DESCRIPTION="Rhino is an open-source Java implementation of JavaScript"
|
||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/js/${MY_P}.zip
|
||||
mirror://gentoo/rhino-swing-ex-1.0.zip"
|
||||
HOMEPAGE="http://www.mozilla.org/rhino/"
|
||||
LICENSE="NPL-1.1"
|
||||
SLOT="1.5"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
||||
IUSE=""
|
||||
DEPEND="dev-java/ant-core
|
||||
>=virtual/jdk-1.3
|
||||
app-arch/unzip
|
||||
source? ( app-arch/zip )"
|
||||
RDEPEND=">=virtual/jre-1.3"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${MY_P}.zip
|
||||
cd "${S}"
|
||||
mkdir build/
|
||||
epatch "${FILESDIR}/${PV}_jdk15.patch"
|
||||
epatch "${FILESDIR}/00_dont-fetch-swing-ex.patch"
|
||||
cp "${DISTDIR}/rhino-swing-ex-1.0.zip" build/swingExSrc.zip || die "unpack error"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
eant jar
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dolauncher jsscript-${SLOT} \
|
||||
--main org.mozilla.javascript.tools.shell.Main
|
||||
java-pkg_dojar build/*/js.jar
|
||||
use source && java-pkg_dosrc {src,toolsrc}/org
|
||||
use doc && java-pkg_dohtml -r docs/*
|
||||
}
|
@ -1,47 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/spin/spin-1.5.ebuild,v 1.9 2014/08/10 20:24:10 slyfox Exp $
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="Transparent threading solution for non-freezing Swing applications"
|
||||
HOMEPAGE="http://spin.sourceforge.net"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}-all.zip"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc x86"
|
||||
|
||||
COMMON_DEP="=dev-java/cglib-2.1*"
|
||||
DEPEND=">=virtual/jdk-1.4
|
||||
app-arch/unzip
|
||||
${COMMON_DEP}"
|
||||
RDEPEND=">=virtual/jre-1.4
|
||||
${COMMON_DEP}"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
cp "${FILESDIR}/${PV}-build.xml" build.xml || die
|
||||
cp "${FILESDIR}/${PV}-maven-build.properties" maven-build.properties || die
|
||||
rm -v lib/*.jar || die
|
||||
java-pkg_filter-compiler jikes
|
||||
}
|
||||
|
||||
EANT_GENTOO_CLASSPATH="cglib-2.1"
|
||||
|
||||
# Needs X
|
||||
RESTRICT="test"
|
||||
|
||||
src_test() {
|
||||
ANT_TASKS="ant-junit" eant test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_newjar target/${P}.jar
|
||||
|
||||
use doc && java-pkg_dojavadoc target/site/apidocs
|
||||
use source && java-pkg_dosrc src/main/java/*
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue