parent
55ecbed91b
commit
6661fa0936
@ -1,5 +1,4 @@
|
|||||||
DIST mongo-tools-3.0.10.tar.gz 2185555 SHA256 2bd5c984ca8b745b33aeb1e1a8118acd675bc5a408845eb3bb0b70c4fa680d71 SHA512 36d57150f4fb331149a2a7cbcde54253316cf3c5bc8ab195584c057c35b30d5acfabcafa25d314d378388254ac5a0ce75d0d8867e344fb7006593319ce9d028c WHIRLPOOL a6961a1fccb7ba353616fe4bfbe182c6a076f13c23492f4d06d274a0ff4d3f09a811413f77a2353b20801462b3a72f74073e38b8b1b4f4e3abf0026774dbcea2
|
DIST mongo-tools-3.0.10.tar.gz 2185555 SHA256 2bd5c984ca8b745b33aeb1e1a8118acd675bc5a408845eb3bb0b70c4fa680d71 SHA512 36d57150f4fb331149a2a7cbcde54253316cf3c5bc8ab195584c057c35b30d5acfabcafa25d314d378388254ac5a0ce75d0d8867e344fb7006593319ce9d028c WHIRLPOOL a6961a1fccb7ba353616fe4bfbe182c6a076f13c23492f4d06d274a0ff4d3f09a811413f77a2353b20801462b3a72f74073e38b8b1b4f4e3abf0026774dbcea2
|
||||||
DIST mongo-tools-3.0.8.tar.gz 2185550 SHA256 b9860339ed59ed57bb29b26c820578c690baa2aaec98fe743561cc95023815f1 SHA512 95ea8377aef747f66ce827300cbc38bfa5b660ad25e4d66cf0dc9899cfe81ff2a67e9383a22c08158fed2d622a6f4d3b315e1234fb6118f246ef17f9cffa129a WHIRLPOOL 00298e54c8fd17a51a3293101defee94219c46929862695e08b2c21a66e59290b341f07c89add38dacfa8295c3fe83ce61cd3911e7489ddd75c2a65721910cce
|
DIST mongo-tools-3.0.12.tar.gz 2196136 SHA256 390d6842e83463943383ba7a6d6b8feb050fd170f8003aef46037722693734d0 SHA512 2954972b999d8eb87ff7ce65697740fc5893d5caa24234309f1d182109f627a5cce9b22d9da1154af74606725269c48ded8361b9f3bf171a10aed9ad7b33dda8 WHIRLPOOL 13e1e433f242be3ec9cea259bb3ae70220d1b7feccaf722ce31d9c1a0b30a8aef0c945e1147662acab22b3d7c1c719055fda6dfc9c605d205ceb227d639f6598
|
||||||
DIST mongo-tools-3.0.9.tar.gz 2185557 SHA256 41705fe815d189d6985ac6abad0b7467186488600cc3031732a25fea5c69a09f SHA512 d4b8d89242a0ab5b678eec7f9a75ad8cf199769046a399741960c605c7d0dc34d5f5e30d956ff4d51b01bc93b1841e132dc2daf6dade9b32d035f2c2f261e520 WHIRLPOOL ce8911d89d9874f1fbc18b63546b641866e94a7160edd705aece48f05b63a67dfc111cd44940a0956bc1d1e42431b33ea69d5f24eb216e99fcb080b55281ec89
|
|
||||||
DIST mongo-tools-3.2.4.tar.gz 2229852 SHA256 9d52028fb2be6a6e0a779aa73587c52ccd5fa59b258e26e5c2c3fce167599138 SHA512 d34ad87bb2a53c9df0124c26a4c200236aa889c7a5bd09a3b535acd4b18c5757018e78813fa04b48b359004eb9097853b49fd359617e71f66e41ef71da01c222 WHIRLPOOL 1711091062a89f14c0fbf9dedd15567c0018af7028fab053622f4bdcc87b23e1784275901c19605418989e4802ff011dd87ddc7c26723318aafe59df4c079d35
|
DIST mongo-tools-3.2.4.tar.gz 2229852 SHA256 9d52028fb2be6a6e0a779aa73587c52ccd5fa59b258e26e5c2c3fce167599138 SHA512 d34ad87bb2a53c9df0124c26a4c200236aa889c7a5bd09a3b535acd4b18c5757018e78813fa04b48b359004eb9097853b49fd359617e71f66e41ef71da01c222 WHIRLPOOL 1711091062a89f14c0fbf9dedd15567c0018af7028fab053622f4bdcc87b23e1784275901c19605418989e4802ff011dd87ddc7c26723318aafe59df4c079d35
|
||||||
DIST mongo-tools-3.2.5.tar.gz 2499471 SHA256 d58ab20b0007f550060c5c57fff0661488d473151e6f7f10b9895e859a625797 SHA512 b7bb5fe5425b269611cedd6f7d9253998d00fb3bd7b26bac5d614f4ee861bbeca806da12c41b475cf8e72954a0634503a9d1b625a0bdbd52b61149616014ab49 WHIRLPOOL 08c1080f843cecda815ab8b0140cce386287d988461647876e7f5b02b9ed3c62873b8aa67c0eebd6a377383235b1f919e95af6aaf6f8ed102a84ac74897ccd96
|
DIST mongo-tools-3.2.5.tar.gz 2499471 SHA256 d58ab20b0007f550060c5c57fff0661488d473151e6f7f10b9895e859a625797 SHA512 b7bb5fe5425b269611cedd6f7d9253998d00fb3bd7b26bac5d614f4ee861bbeca806da12c41b475cf8e72954a0634503a9d1b625a0bdbd52b61149616014ab49 WHIRLPOOL 08c1080f843cecda815ab8b0140cce386287d988461647876e7f5b02b9ed3c62873b8aa67c0eebd6a377383235b1f919e95af6aaf6f8ed102a84ac74897ccd96
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
--- a/build.sh 2016-04-29 20:14:54.000000000 +0200
|
||||||
|
+++ b/build.sh 2016-05-17 17:22:50.830113156 +0200
|
||||||
|
@@ -19,5 +19,5 @@
|
||||||
|
for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongooplog; do
|
||||||
|
echo "Building ${i}..."
|
||||||
|
# Build the tool, using -ldflags to link in the current gitspec
|
||||||
|
- go build -o "bin/$i" -ldflags "-X github.com/mongodb/mongo-tools/common/options.Gitspec=`git rev-parse HEAD` -X github.com/mongodb/mongo-tools/common/options.VersionStr=$(git describe)" -tags "$tags" "$i/main/$i.go"
|
||||||
|
+ go build -o "bin/$i" -tags "$tags" "$i/main/$i.go" || exit 1
|
||||||
|
done
|
@ -1,53 +0,0 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
inherit eutils
|
|
||||||
|
|
||||||
MY_PV=${PV/_rc/-rc}
|
|
||||||
MY_P=${PN}-r${MY_PV}
|
|
||||||
|
|
||||||
DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
|
|
||||||
HOMEPAGE="http://www.mongodb.org"
|
|
||||||
SRC_URI="https://github.com/mongodb/mongo-tools/archive/r${MY_PV}.tar.gz -> mongo-tools-${MY_PV}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
IUSE="sasl ssl"
|
|
||||||
|
|
||||||
# Maintainer note:
|
|
||||||
# openssl DEPEND constraint, see:
|
|
||||||
# https://github.com/mongodb/mongo-tools/issues/11
|
|
||||||
|
|
||||||
RDEPEND="!<dev-db/mongodb-3.0.0"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
dev-lang/go:=
|
|
||||||
sasl? ( dev-libs/cyrus-sasl )
|
|
||||||
ssl? ( dev-libs/openssl )"
|
|
||||||
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}/${PN}-3.0.0-build.patch"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
local myconf
|
|
||||||
|
|
||||||
if use sasl; then
|
|
||||||
myconf="${myconf} sasl"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use ssl; then
|
|
||||||
myconf="${myconf} ssl"
|
|
||||||
fi
|
|
||||||
|
|
||||||
./build.sh ${myconf}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin bin/*
|
|
||||||
}
|
|
@ -1,3 +1 @@
|
|||||||
DIST eselect-java-0.1.0.tar.bz2 14486 SHA256 7dcd2c9d7aa6d693d0b0d558859bdc88c53997d92562a1bf5335de708d19c817 SHA512 4ee13349a9b34cfb007a04423f6961c984ad02135cb1141e504662682dcc35d22f9332b04bad13ec9d538212fe2230407598eed633d5a5edd0633081ec2fa6ae WHIRLPOOL ec94c878f8fab9272b679c25b0ffc553f5fa25dd62dc1a447397befa9a749be3124fc994c34ccc2014e981d088e9cca76beef74356283dee79ec370ea18009c7
|
|
||||||
DIST eselect-java-0.1.0.tar.gz 72265 SHA256 035b0c2cb9837b8b3b906cf9d72ec9ebf6e0db3d5e296c2b1c640d0e4a4071f2 SHA512 f8099f394303466ce652f099c16581668544cb4c0ab3c7c8af4b56230c6bdd692e72610be5f522227e874650481554f3b7815da2a4e8d090c31478d399c04e95 WHIRLPOOL 4f2b4432fe46023163b8e8421a505422b6f50599b67892f1b7abfb7b46393aab0590f1ecd69526839392703fed80fb099b8f3e273a34b99da39045c7b8a9cb77
|
|
||||||
DIST eselect-java-0.2.0.tar.bz2 13353 SHA256 a860fdf1d5d0560e206fee3912eb768492115bcb430cb9eba031d0cbf90499bf SHA512 376c72317461c743dd91f8576cff7b1279b8f1672aa878c492ec3ed0da5f3c8d25cbb5fd4d9120109a01466dadbd049fb75d642187c850676d939925bcb55fdd WHIRLPOOL c45da204c312c1277f532756363932aeb057261728f1264cbcc01da6feb7568673aff880fa611c471b60a878434eacda592e3743022130c78247b047dbf848be
|
DIST eselect-java-0.2.0.tar.bz2 13353 SHA256 a860fdf1d5d0560e206fee3912eb768492115bcb430cb9eba031d0cbf90499bf SHA512 376c72317461c743dd91f8576cff7b1279b8f1672aa878c492ec3ed0da5f3c8d25cbb5fd4d9120109a01466dadbd049fb75d642187c850676d939925bcb55fdd WHIRLPOOL c45da204c312c1277f532756363932aeb057261728f1264cbcc01da6feb7568673aff880fa611c471b60a878434eacda592e3743022130c78247b047dbf848be
|
||||||
|
@ -1,26 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
inherit autotools
|
|
||||||
|
|
||||||
DESCRIPTION="A set of eselect modules for Java"
|
|
||||||
HOMEPAGE="https://www.gentoo.org/proj/en/java/"
|
|
||||||
SRC_URI="https://gitweb.gentoo.org/proj/${PN}.git/snapshot/${P}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~arm ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
!app-eselect/eselect-ecj
|
|
||||||
!app-eselect/eselect-maven
|
|
||||||
!<dev-java/java-config-2.2
|
|
||||||
app-admin/eselect"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
eautoreconf
|
|
||||||
}
|
|
@ -1,20 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
DESCRIPTION="A set of eselect modules for Java"
|
|
||||||
HOMEPAGE="https://www.gentoo.org/proj/en/java/"
|
|
||||||
SRC_URI="https://dev.gentoo.org/~sera/distfiles/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 ~arm ~ia64 ppc64 x86 ~amd64-fbsd ~x86-fbsd ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
!app-eselect/eselect-ecj
|
|
||||||
!app-eselect/eselect-maven
|
|
||||||
!<dev-java/java-config-2.2
|
|
||||||
app-admin/eselect"
|
|
@ -0,0 +1,137 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
inherit autotools elisp-common flag-o-matic
|
||||||
|
|
||||||
|
DESCRIPTION="Any to PostScript filter"
|
||||||
|
HOMEPAGE="http://www.inf.enst.fr/~demaille/a2ps/"
|
||||||
|
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz
|
||||||
|
linguas_ja? ( mirror://gentoo/${P}-ja_nls.patch.gz )"
|
||||||
|
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
||||||
|
IUSE="emacs latex linguas_ja nls static-libs userland_BSD userland_GNU vanilla"
|
||||||
|
|
||||||
|
RESTRICT=test
|
||||||
|
|
||||||
|
RDEPEND="app-text/ghostscript-gpl
|
||||||
|
app-text/libpaper
|
||||||
|
>=app-text/psutils-1.17
|
||||||
|
app-text/wdiff
|
||||||
|
emacs? ( virtual/emacs )
|
||||||
|
latex? ( virtual/latex-base )
|
||||||
|
nls? ( virtual/libintl )
|
||||||
|
userland_GNU? ( >=sys-apps/coreutils-6.10-r1 )
|
||||||
|
userland_BSD? ( sys-freebsd/freebsd-ubin )"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
>=dev-util/gperf-2.7.2
|
||||||
|
virtual/yacc
|
||||||
|
nls? ( sys-devel/gettext )"
|
||||||
|
|
||||||
|
SITEFILE=50${PN}-gentoo.el
|
||||||
|
|
||||||
|
S=${WORKDIR}/${PN}-${PV:0:4}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
eapply "${FILESDIR}"/${PN}-4.13c-locale-gentoo.diff
|
||||||
|
use vanilla || eapply -p0 "${FILESDIR}"/${PN}-4.13-stdout.diff
|
||||||
|
if use linguas_ja; then
|
||||||
|
eapply "${WORKDIR}"/${P}-ja_nls.patch
|
||||||
|
# bug #335803
|
||||||
|
eapply -p0 "${FILESDIR}"/${P}-ja-cleanup.patch
|
||||||
|
else
|
||||||
|
eapply "${FILESDIR}"/${P}-cleanup.patch
|
||||||
|
fi
|
||||||
|
|
||||||
|
# fix fnmatch replacement, bug #134546
|
||||||
|
eapply "${FILESDIR}"/${PN}-4.13c-fnmatch-replacement.patch
|
||||||
|
|
||||||
|
# bug #122026
|
||||||
|
eapply "${FILESDIR}"/${P}-psset.patch
|
||||||
|
|
||||||
|
# fix emacs printing, bug #114627
|
||||||
|
eapply "${FILESDIR}"/a2ps-4.13c-emacs.patch
|
||||||
|
|
||||||
|
# fix chmod error, #167670
|
||||||
|
eapply "${FILESDIR}"/a2ps-4.13-manpage-chmod.patch
|
||||||
|
|
||||||
|
# add configure check for mempcpy, bug 216588
|
||||||
|
eapply "${FILESDIR}"/${P}-check-mempcpy.patch
|
||||||
|
|
||||||
|
# fix compilation error due to invalid stpcpy() prototype, bug 216588
|
||||||
|
eapply -p0 "${FILESDIR}"/${P}-fix-stpcpy-proto.patch
|
||||||
|
|
||||||
|
# fix compilation error due to obstack.h issue, bug 269638
|
||||||
|
eapply "${FILESDIR}"/${P}-ptrdiff_t.patch
|
||||||
|
|
||||||
|
# fix compilation error due to texinfo 5.x, bug 482748
|
||||||
|
eapply "${FILESDIR}"/${P}-texinfo-5.x.patch
|
||||||
|
|
||||||
|
# fix building with sys-devel/automake >= 1.12, bug 420503
|
||||||
|
rm -f {.,ogonkify}/aclocal.m4 || die
|
||||||
|
sed -i \
|
||||||
|
-e '/^AM_C_PROTOTYPES/d' \
|
||||||
|
-e '/^AUTOMAKE_OPTIONS.*ansi2knr/d' \
|
||||||
|
-e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' \
|
||||||
|
-e 's:AM_PROG_CC_STDC:AC_PROG_CC:' \
|
||||||
|
configure.in {contrib/sample,lib,src}/Makefile.am m4/protos.m4 || die
|
||||||
|
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
append-cppflags -DPROTOTYPES #420503
|
||||||
|
|
||||||
|
local myconf="COM_netscape=no COM_acroread=no"
|
||||||
|
|
||||||
|
use emacs || myconf="${myconf} EMACS=no"
|
||||||
|
use latex || myconf="${myconf} COM_latex=no"
|
||||||
|
|
||||||
|
export LANG=C LC_ALL=C
|
||||||
|
|
||||||
|
econf \
|
||||||
|
--enable-shared \
|
||||||
|
$(use_enable static-libs static) \
|
||||||
|
--sysconfdir="${EPREFIX}"/etc/a2ps \
|
||||||
|
$(use_enable nls) \
|
||||||
|
${myconf}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
# parallel make b0rked
|
||||||
|
emake -j1
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake \
|
||||||
|
DESTDIR="${D}" \
|
||||||
|
lispdir="${EPREFIX}${SITELISP}"/${PN} \
|
||||||
|
install
|
||||||
|
|
||||||
|
newdoc "${ED}"/usr/share/a2ps/README README.a2ps
|
||||||
|
newdoc "${ED}"/usr/share/a2ps/ppd/README README.a2ps.ppd
|
||||||
|
newdoc "${ED}"/usr/share/ogonkify/README README.ogonkify
|
||||||
|
|
||||||
|
rm -f "${ED}"/usr/share/{a2ps,a2ps/ppd,ogonkify}/README || die
|
||||||
|
|
||||||
|
prune_libtool_files
|
||||||
|
|
||||||
|
if use emacs; then
|
||||||
|
elisp-site-file-install "${FILESDIR}"/${SITEFILE} || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
dodoc ANNOUNCE AUTHORS ChangeLog FAQ NEWS README* THANKS TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
use emacs && elisp-site-regen
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
use emacs && elisp-site-regen
|
||||||
|
}
|
@ -0,0 +1,147 @@
|
|||||||
|
--- a2ps-4.14/doc/a2ps.texi.bero 2013-03-26 10:31:31.230137555 +0100
|
||||||
|
+++ a2ps-4.14/doc/a2ps.texi 2013-03-26 11:01:01.504006086 +0100
|
||||||
|
@@ -44,10 +44,6 @@
|
||||||
|
@end ifnottex
|
||||||
|
|
||||||
|
@c TeX variants
|
||||||
|
-@macro LaTeX
|
||||||
|
-La@TeX{}
|
||||||
|
-@end macro
|
||||||
|
-
|
||||||
|
@macro PreTeX
|
||||||
|
Pre@TeX{}
|
||||||
|
@end macro
|
||||||
|
@@ -417,9 +413,9 @@ Genesis
|
||||||
|
@c Now, that's what I call humor :)
|
||||||
|
@cindex First Page
|
||||||
|
This document describes GNU @pack{} version @value{VERSION}. The latest
|
||||||
|
-versions may be found on the @href{@value{WWWHOME},@pack{} home page}.
|
||||||
|
-We plan to update the @href{http://www.gnu.org/software/a2ps/, GNU
|
||||||
|
-@pack{} home page} in the near future, in which case the latter will be
|
||||||
|
+versions may be found on the @uref{@value{WWWHOME}, home page}.
|
||||||
|
+We plan to update the @uref{@value{WWWHOME}, GNU home page}
|
||||||
|
+in the near future, in which case the latter will be
|
||||||
|
a better source of information.
|
||||||
|
|
||||||
|
We tried to make this document informative and pleasant. It tries to be
|
||||||
|
@@ -431,8 +427,8 @@ difficult to use. @xref{Glossary}, for
|
||||||
|
information.
|
||||||
|
|
||||||
|
Please, send us emailcards @code{:)}. Whatever the comment is, or if you
|
||||||
|
-just like @pack{}, write to @email{Miguel.Santana@@st.com, Miguel
|
||||||
|
-Santana} and @email{akim@@freefriends.org, Akim Demaille}. But
|
||||||
|
+just like @pack{}, write to @email{Miguel.Santana@@st.com, Miguel Santana}
|
||||||
|
+and @email{akim@@freefriends.org, Akim Demaille}. But
|
||||||
|
@emph{never} write to either of us for asking questions, or to report
|
||||||
|
bugs. Chances are very high never to receive an answer, as we receive
|
||||||
|
too many messages. @xref{a2ps Mailing Lists}, for information on the
|
||||||
|
@@ -517,8 +513,8 @@ everybody so that mistakes get fixed as
|
||||||
|
|
||||||
|
So, if you have a problem (configuration error, compilation error,
|
||||||
|
runtime error, documentation error or unclear), first check in the FAQ
|
||||||
|
-(@pxref{FAQ}), then on the page @href{@value{WWWHOME}/bugs.html,Known
|
||||||
|
-@pack{} Bugs} if the issue has not been addressed yet. If it is not the
|
||||||
|
+(@pxref{FAQ}), then on the page @uref{@value{WWWHOME}/bugs.html,Known Bugs}
|
||||||
|
+if the issue has not been addressed yet. If it is not the
|
||||||
|
case, but it appears that the version of @pack{} you have is old,
|
||||||
|
consider upgrading.
|
||||||
|
|
||||||
|
@@ -2802,8 +2798,7 @@ Thou shalt start your PostScript DSC con
|
||||||
|
|
||||||
|
The bad news is that some printers will reject this header. Then you
|
||||||
|
may change this header without any worry since the PostScript produced
|
||||||
|
-by @pack{} is also 100% PostScript level 1@footnote{That is to say, there
|
||||||
|
-are no PostScript printers that don't understand these files.}.
|
||||||
|
+by @pack{} is also 100% PostScript level 1@footnote{That is to say, there are no PostScript printers that don't understand these files.}.
|
||||||
|
|
||||||
|
@defvr {Configuration Setting} OutputFirstLine: @var{magic-number}
|
||||||
|
@cindex @samp{OutputFirstLine:}
|
||||||
|
@@ -3971,13 +3966,13 @@ Quote @var{text} so that no special sequ
|
||||||
|
@itemx \end@{enumerate@}
|
||||||
|
@itemx \begin@{description@}
|
||||||
|
@itemx \end@{description@}
|
||||||
|
-These commands are legal in @LaTeX but have no sense in @PreTeX{}.
|
||||||
|
+These commands are legal in @LaTeX{} but have no sense in @PreTeX{}.
|
||||||
|
Hence there are simply ignored and not printed (if immediately followed
|
||||||
|
by an end-of-line).
|
||||||
|
@end table
|
||||||
|
|
||||||
|
@node Differences with LaTeX
|
||||||
|
-@subsubsection Differences with @LaTeX
|
||||||
|
+@subsubsection Differences with @LaTeX{}
|
||||||
|
The following symbols, inherited from the style sheet @code{Symbol}, are
|
||||||
|
not supported by @LaTeX{}:
|
||||||
|
|
||||||
|
@@ -4124,9 +4119,9 @@ beautiful, with any character you might
|
||||||
|
prefix part of the file name, and is alpha-numerical, lower case, and
|
||||||
|
less than 8 characters long.
|
||||||
|
|
||||||
|
-Anywhere @pack{} needs to recognize a style sheet by a name, @strong{it
|
||||||
|
-uses the key} (in the @file{sheets.map} file, with the option @samp{-E},
|
||||||
|
-etc.).
|
||||||
|
+Anywhere @pack{} needs to recognize a style sheet by a name,
|
||||||
|
+@strong{it uses the key} (in the @file{sheets.map} file, with the
|
||||||
|
+option @samp{-E}, etc.).
|
||||||
|
|
||||||
|
As an example, C++ is implemented in a file called @file{cxx.ssh}, in
|
||||||
|
which the name is declared to be @samp{C++}.
|
||||||
|
@@ -5672,7 +5667,7 @@ supporting a @samp{--help}-like option.
|
||||||
|
@subsection Invoking @code{card}
|
||||||
|
|
||||||
|
@example
|
||||||
|
-card [@var{options}] @var{applications} [-- @var{@pack{}-options}]
|
||||||
|
+card [@var{options}] @var{applications} [-- @var{-options}]
|
||||||
|
@end example
|
||||||
|
|
||||||
|
@noindent
|
||||||
|
@@ -5680,7 +5675,7 @@ card [@var{options}] @var{applications}
|
||||||
|
@var{applications}' help message (typically by the options @samp{--help}
|
||||||
|
or @samp{-h}), and pretty prints it thanks to @pack{} (or the content of
|
||||||
|
the environment variable @samp{A2PS} if it is set).
|
||||||
|
-@var{@pack{}-options} are passed to @pack{}.
|
||||||
|
+@var{-options} are passed to @pack{}.
|
||||||
|
|
||||||
|
Supported options are:
|
||||||
|
|
||||||
|
@@ -5874,12 +5869,12 @@ difference finder,wdiff,GNU wdiff}) to e
|
||||||
|
@subsection Invoking @code{pdiff}
|
||||||
|
|
||||||
|
@example
|
||||||
|
-pdiff [@var{options}] @var{file-1} @var{file-2} [-- @var{@pack{}-options}]
|
||||||
|
+pdiff [@var{options}] @var{file-1} @var{file-2} [-- @var{-options}]
|
||||||
|
@end example
|
||||||
|
|
||||||
|
@noindent
|
||||||
|
make a pretty comparison between @var{file-1} and @var{file-2}.
|
||||||
|
-@var{@pack{}-options} are passed to @pack{}.
|
||||||
|
+@var{-options} are passed to @pack{}.
|
||||||
|
|
||||||
|
Supported options are:
|
||||||
|
|
||||||
|
@@ -6222,7 +6217,7 @@ Error related questions.
|
||||||
|
@subsection Why Does it Print Nothing?
|
||||||
|
|
||||||
|
@quotation
|
||||||
|
-@i{@pack{} works OK, but the printer prints nothing.}
|
||||||
|
+@i{works OK, but the printer prints nothing.}
|
||||||
|
@end quotation
|
||||||
|
|
||||||
|
There are two ways that printing can fail: silently, or with a
|
||||||
|
@@ -6351,7 +6346,7 @@ If it is incorrect, ask for help around
|
||||||
|
@subsection Why Does it Say my File is Binary?
|
||||||
|
|
||||||
|
@quotation
|
||||||
|
-@i{@pack{} complains that my file is binary though it is not.}
|
||||||
|
+@i{complains that my file is binary though it is not.}
|
||||||
|
@end quotation
|
||||||
|
|
||||||
|
There are several reasons that can cause @pack{} to consider a file is
|
||||||
|
@@ -6591,7 +6586,7 @@ format you want for the date: @xref{Esca
|
||||||
|
@subsection Why Have the Options Changed?
|
||||||
|
|
||||||
|
@quotation
|
||||||
|
-@i{The options of this @pack{} are not the same as in the previous versions.}
|
||||||
|
+@i{The options of this are not the same as in the previous versions.}
|
||||||
|
@end quotation
|
||||||
|
|
||||||
|
True. But the old scheme (up to version 4.6.1) prevented us from
|
@ -0,0 +1,63 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
PLOCALES="cs fr ru sk uk zh_CN zh_TW"
|
||||||
|
: ${CMAKE_MAKEFILE_GENERATOR:="ninja"}
|
||||||
|
|
||||||
|
inherit cmake-utils l10n
|
||||||
|
|
||||||
|
DESCRIPTION="Console version of Stardict program"
|
||||||
|
HOMEPAGE="http://sdcv.sourceforge.net"
|
||||||
|
MY_PV="${PV/_beta/-beta}-Source"
|
||||||
|
MY_PF="${PN}-${MY_PV}"
|
||||||
|
S="${WORKDIR}/${MY_PF}"
|
||||||
|
SRC_URI="mirror://sourceforge/${PN}/${MY_PF}.tar.bz2"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="darkterm nls"
|
||||||
|
|
||||||
|
RDEPEND="sys-libs/zlib
|
||||||
|
sys-libs/readline:=
|
||||||
|
>=dev-libs/glib-2.6.1"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
nls? ( >=sys-devel/gettext-0.14.1 )"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
if use darkterm; then
|
||||||
|
sed -i 's/;34m/;36m/' src/libwrapper.cpp || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm_loc() {
|
||||||
|
rm "po/${1}.po" || die
|
||||||
|
}
|
||||||
|
l10n_for_each_disabled_locale_do rm_loc
|
||||||
|
|
||||||
|
# do not install locale-specific man pages unless asked to
|
||||||
|
if ! use linguas_uk; then
|
||||||
|
sed -ni '/share\/man\/uk/!p' CMakeLists.txt || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
cmake-utils_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DENABLE_NLS="$(usex nls)"
|
||||||
|
)
|
||||||
|
cmake-utils_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
cmake-utils_src_compile
|
||||||
|
use nls && cmake-utils_src_compile lang
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
cmake-utils_src_install
|
||||||
|
dodoc AUTHORS NEWS
|
||||||
|
}
|
@ -0,0 +1,384 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI="5"
|
||||||
|
|
||||||
|
# Testing within Portage's environment is broken, and the patch no
|
||||||
|
# longer applies cleanly.
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python{2_7,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 libressl 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? (
|
||||||
|
!libressl? ( >=dev-libs/openssl-0.9.6-r1:0= )
|
||||||
|
libressl? ( dev-libs/libressl:= )
|
||||||
|
)
|
||||||
|
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/sh /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
|
||||||
|
|
||||||
|
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 [[ -z ${REPLACING_VERSIONS} ]] ; then
|
||||||
|
elog
|
||||||
|
elog "It looks like this is your first time installing PostgreSQL. Run the"
|
||||||
|
elog "following command in all active shells to pick up changes to the default"
|
||||||
|
elog "environment:"
|
||||||
|
elog " source /etc/profile"
|
||||||
|
fi
|
||||||
|
|
||||||
|
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,396 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI="5"
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python{2_7,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 libressl 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? (
|
||||||
|
!libressl? ( >=dev-libs/openssl-0.9.6-r1:0= )
|
||||||
|
libressl? ( dev-libs/libressl:= )
|
||||||
|
)
|
||||||
|
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/sh /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
|
||||||
|
|
||||||
|
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 [[ -z ${REPLACING_VERSIONS} ]] ; then
|
||||||
|
elog
|
||||||
|
elog "It looks like this is your first time installing PostgreSQL. Run the"
|
||||||
|
elog "following command in all active shells to pick up changes to the default"
|
||||||
|
elog "environment:"
|
||||||
|
elog " source /etc/profile"
|
||||||
|
fi
|
||||||
|
|
||||||
|
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,401 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI="5"
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python{2_7,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 libressl 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? (
|
||||||
|
!libressl? ( >=dev-libs/openssl-0.9.6-r1:0= )
|
||||||
|
libressl? ( dev-libs/libressl:= )
|
||||||
|
)
|
||||||
|
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/sh /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
|
||||||
|
|
||||||
|
# Rely on $PATH being in the proper order so that the correct
|
||||||
|
# install program is used for modules utilizing PGXS in both
|
||||||
|
# hardened and non-hardened environments. (Bug #528786)
|
||||||
|
sed 's/@install_bin@/install -c/' -i src/Makefile.global.in || 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
|
||||||
|
|
||||||
|
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 [[ -z ${REPLACING_VERSIONS} ]] ; then
|
||||||
|
elog
|
||||||
|
elog "It looks like this is your first time installing PostgreSQL. Run the"
|
||||||
|
elog "following command in all active shells to pick up changes to the default"
|
||||||
|
elog "environment:"
|
||||||
|
elog " source /etc/profile"
|
||||||
|
fi
|
||||||
|
|
||||||
|
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,433 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI="5"
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python{2_7,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 libressl 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? (
|
||||||
|
!libressl? ( >=dev-libs/openssl-0.9.6-r1:0= )
|
||||||
|
libressl? ( dev-libs/libressl:= )
|
||||||
|
)
|
||||||
|
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/sh /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
|
||||||
|
|
||||||
|
# Rely on $PATH being in the proper order so that the correct
|
||||||
|
# install program is used for modules utilizing PGXS in both
|
||||||
|
# hardened and non-hardened environments. (Bug #528786)
|
||||||
|
sed 's/@install_bin@/install -c/' -i src/Makefile.global.in || 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
|
||||||
|
|
||||||
|
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 [[ -z ${REPLACING_VERSIONS} ]] ; then
|
||||||
|
elog
|
||||||
|
elog "It looks like this is your first time installing PostgreSQL. Run the"
|
||||||
|
elog "following command in all active shells to pick up changes to the default"
|
||||||
|
elog "environment:"
|
||||||
|
elog " source /etc/profile"
|
||||||
|
fi
|
||||||
|
|
||||||
|
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,439 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI="5"
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
|
||||||
|
|
||||||
|
inherit eutils flag-o-matic linux-info multilib pam prefix python-single-r1 \
|
||||||
|
systemd user versionator
|
||||||
|
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~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 libressl 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? (
|
||||||
|
!libressl? ( >=dev-libs/openssl-0.9.6-r1:0= )
|
||||||
|
libressl? ( dev-libs/libressl:= )
|
||||||
|
)
|
||||||
|
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/sh /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
|
||||||
|
|
||||||
|
# Rely on $PATH being in the proper order so that the correct
|
||||||
|
# install program is used for modules utilizing PGXS in both
|
||||||
|
# hardened and non-hardened environments. (Bug #528786)
|
||||||
|
sed 's/@install_bin@/install -c/' -i src/Makefile.global.in || 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 !alpha spinlocks) \
|
||||||
|
$(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
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
if use alpha && use server ; then
|
||||||
|
ewarn "PostgreSQL 9.5+ no longer has native spinlock support on Alpha platforms."
|
||||||
|
ewarn "As a result, performance will be extremely degraded."
|
||||||
|
fi
|
||||||
|
|
||||||
|
elog "If you need a global psqlrc-file, you can place it in:"
|
||||||
|
elog " ${EROOT%/}/etc/postgresql-${SLOT}/"
|
||||||
|
|
||||||
|
if [[ -z ${REPLACING_VERSIONS} ]] ; then
|
||||||
|
elog
|
||||||
|
elog "It looks like this is your first time installing PostgreSQL. Run the"
|
||||||
|
elog "following command in all active shells to pick up changes to the default"
|
||||||
|
elog "environment:"
|
||||||
|
elog " source /etc/profile"
|
||||||
|
fi
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
@ -1,2 +1 @@
|
|||||||
DIST icedtea-web-1.5.1.tar.gz 1616344 SHA256 03f16356fa84564f1ae32286e0a090a464c87ec123b40602dcea925757900195 SHA512 ef47eecbbb52fcb44ec9585db4c4428025201b04968dfcfc26061160d80b29ee649752f21ffe891cfa5c6bf775d0bc1dbb7dbd9a79794e052bb8b865fa94d039 WHIRLPOOL 955b5cc565fa62d2f5eb85a3253751cd284a4cb926619afe60920123878281a77f348a7c26cdafea2c6d4cd760fe4d399041b665b86ff1bbaf441e25f9f18379
|
|
||||||
DIST icedtea-web-1.6.1.tar.gz 1776222 SHA256 a9b46ab6c9dc303c89651143596bc5abea29242b9bdcabdd2dab7c606592c920 SHA512 dae39818f74a098289acd0736d27c2e68b10b603a3fb0a180cf4b6444345cbe71ab1ba77dfb198f053f9567bb18aa96de09049c3b595b3d292d142a7ae7d3ef9 WHIRLPOOL 96826d17daee16dfa99f6439678cc509c94556955839b7e8bc43c1993ee04740f35b0547d56649bb9f7a625b5b2515be9d173b642ccb15cb1dead83a03586a6e
|
DIST icedtea-web-1.6.1.tar.gz 1776222 SHA256 a9b46ab6c9dc303c89651143596bc5abea29242b9bdcabdd2dab7c606592c920 SHA512 dae39818f74a098289acd0736d27c2e68b10b603a3fb0a180cf4b6444345cbe71ab1ba77dfb198f053f9567bb18aa96de09049c3b595b3d292d142a7ae7d3ef9 WHIRLPOOL 96826d17daee16dfa99f6439678cc509c94556955839b7e8bc43c1993ee04740f35b0547d56649bb9f7a625b5b2515be9d173b642ccb15cb1dead83a03586a6e
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
Manage Plugin
|
|
||||||
-------------
|
|
||||||
The IcedTea browser plugin (NPPlugin) can be enabled using
|
|
||||||
eselect java-nsplugin.
|
|
||||||
|
|
||||||
Select JVM
|
|
||||||
----------
|
|
||||||
IcedTea-Web (>=1.4) supports selecting the JVM to use for the plugin. Currently
|
|
||||||
works for all IcedTea releases. The eselect module java-nsplugin in
|
|
||||||
>=eselect-java-0.1.0 added support for this.
|
|
||||||
|
|
||||||
Per user configuration
|
|
||||||
----------------------
|
|
||||||
IcedTea-Web also supports per user configuration which takes precedence over the
|
|
||||||
global choice of JVM managed by the java-nsplugin module. If you made use of
|
|
||||||
itweb-settings as user to set a JVM for instance and want to give control back
|
|
||||||
to java-nsplugin to manage the JVM to use run as your user:
|
|
||||||
'sed -i -e "/^deployment.jre.dir=/d" ~/.icedtea/deployment.properties'
|
|
||||||
|
|
||||||
Per user plugin selection via eselect java-nsplugin is a longstanding feature
|
|
||||||
request. Bug 148632
|
|
@ -1,11 +0,0 @@
|
|||||||
--- Makefile.am.orig 2014-08-14 12:15:46.000000000 +0200
|
|
||||||
+++ Makefile.am 2014-11-01 23:09:49.543555638 +0100
|
|
||||||
@@ -322,7 +322,7 @@
|
|
||||||
|
|
||||||
$(PLUGIN_DIR)/$(BUILT_PLUGIN_LIBRARY): $(addprefix $(PLUGIN_DIR)/,$(PLUGIN_OBJECTS))
|
|
||||||
cd $(PLUGIN_DIR) && \
|
|
||||||
- $(CXX) $(CXXFLAGS) \
|
|
||||||
+ $(CXX) $(CXXFLAGS) $(LDFLAGS) \
|
|
||||||
$(PLUGIN_OBJECTS) \
|
|
||||||
$(GLIB_LIBS) \
|
|
||||||
$(MOZILLA_LIBS) \
|
|
@ -1,113 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
# Build written by Andrew John Hughes (ahughes@redhat.com)
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit autotools eutils readme.gentoo java-pkg-2 java-vm-2
|
|
||||||
|
|
||||||
DESCRIPTION="FOSS Java browser plugin and Web Start implementation"
|
|
||||||
HOMEPAGE="http://icedtea.classpath.org"
|
|
||||||
SRC_URI="http://icedtea.classpath.org/download/source/${P}.tar.gz"
|
|
||||||
LICENSE="GPL-2 GPL-2-with-linking-exception LGPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 ~arm x86"
|
|
||||||
IUSE="doc +icedtea7 javascript nsplugin tagsoup test"
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
COMMON_DEP="
|
|
||||||
icedtea7? ( || (
|
|
||||||
dev-java/icedtea:7 dev-java/icedtea-bin:7
|
|
||||||
) )
|
|
||||||
!icedtea7? ( || (
|
|
||||||
dev-java/icedtea:7 dev-java/icedtea-bin:7
|
|
||||||
dev-java/icedtea:6 dev-java/icedtea-bin:6
|
|
||||||
) )
|
|
||||||
app-eselect/eselect-java
|
|
||||||
tagsoup? ( dev-java/tagsoup )
|
|
||||||
nsplugin? (
|
|
||||||
>=dev-libs/glib-2.16
|
|
||||||
)"
|
|
||||||
RDEPEND="${COMMON_DEP}"
|
|
||||||
# Need system junit 4.8+. Bug #389795
|
|
||||||
DEPEND="${COMMON_DEP}
|
|
||||||
virtual/pkgconfig
|
|
||||||
app-arch/zip
|
|
||||||
javascript? ( dev-java/rhino:1.6 )
|
|
||||||
nsplugin? ( net-misc/npapi-sdk )
|
|
||||||
test? ( >=dev-java/junit-4.8:4 )"
|
|
||||||
|
|
||||||
# http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2010-December/011221.html
|
|
||||||
pkg_setup() {
|
|
||||||
JAVA_PKG_WANT_BUILD_VM="icedtea-7 icedtea-bin-7"
|
|
||||||
if ! use icedtea7; then
|
|
||||||
JAVA_PKG_WANT_BUILD_VM="${JAVA_PKG_WANT_BUILD_VM} icedtea-6 icedtea-bin-6"
|
|
||||||
fi
|
|
||||||
JAVA_PKG_WANT_SOURCE="1.6"
|
|
||||||
JAVA_PKG_WANT_TARGET="1.6"
|
|
||||||
|
|
||||||
java-pkg-2_pkg_setup
|
|
||||||
java-vm-2_pkg_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.5-respect-ldflags.patch # bug #356645
|
|
||||||
eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local tagsoup_jar
|
|
||||||
local config
|
|
||||||
|
|
||||||
# bug #527962
|
|
||||||
use tagsoup && tagsoup_jar="$(java-pkg_getjars tagsoup)"
|
|
||||||
|
|
||||||
config=(
|
|
||||||
# javaws is managed by eselect java-vm and symlinked to by icedtea so
|
|
||||||
# move it out of the way and symlink itweb-settings back to bin
|
|
||||||
--bindir="${EPREFIX}"/usr/libexec/${PN}
|
|
||||||
--with-jdk-home="${JAVA_HOME}"
|
|
||||||
$(use_enable doc docs)
|
|
||||||
$(use_enable nsplugin plugin)
|
|
||||||
$(use_with javascript rhino)
|
|
||||||
$(use_with tagsoup tagsoup ${tagsoup_jar})
|
|
||||||
)
|
|
||||||
|
|
||||||
unset JAVA_HOME JDK_HOME CLASSPATH JAVAC JAVACFLAGS
|
|
||||||
econf "${config[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
default
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
|
|
||||||
if use nsplugin; then
|
|
||||||
install_mozilla_plugin "/usr/$(get_libdir)/IcedTeaPlugin.so"
|
|
||||||
fi
|
|
||||||
|
|
||||||
mkdir -p "${ED}"/usr/bin || die
|
|
||||||
dosym /usr/libexec/${PN}/itweb-settings /usr/bin/itweb-settings || die
|
|
||||||
|
|
||||||
# Should we patch system default lookup instead?
|
|
||||||
mkdir -p "${ED}"/etc/.java/deployment/ || die
|
|
||||||
echo "deployment.jre.dir=/etc/java-config-2/current-icedtea-web-vm" \
|
|
||||||
> "${ED}"/etc/.java/deployment/deployment.properties || die
|
|
||||||
|
|
||||||
readme.gentoo_create_doc
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
VMHANDLE="icedtea-web@${GENTOO_VM}" java-vm_check-nsplugin
|
|
||||||
java_mozilla_clean_
|
|
||||||
readme.gentoo_print_elog
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_prerm() {
|
|
||||||
# override the java-vm-2 eclass check for removing a system VM, as it
|
|
||||||
# doesn't make sense here.
|
|
||||||
:;
|
|
||||||
}
|
|
@ -1,17 +0,0 @@
|
|||||||
# Copyright 1999-2011 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
VERSION="Oracle JDK @PV@"
|
|
||||||
JAVA_HOME="@GENTOO_PORTAGE_EPREFIX@/opt/@P@"
|
|
||||||
JDK_HOME="@GENTOO_PORTAGE_EPREFIX@/opt/@P@"
|
|
||||||
JAVAC=${JAVA_HOME}/bin/javac
|
|
||||||
PATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"
|
|
||||||
ROOTPATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"
|
|
||||||
LDPATH="${JAVA_HOME}/jre/lib/@PLATFORM@/:${JAVA_HOME}/jre/lib/@PLATFORM@/xawt/:${JAVA_HOME}/jre/lib/@PLATFORM@/server/"
|
|
||||||
MANPATH="@GENTOO_PORTAGE_EPREFIX@/opt/@P@/man"
|
|
||||||
PROVIDES_TYPE="JDK JRE"
|
|
||||||
PROVIDES_VERSION="1.7"
|
|
||||||
BOOTCLASSPATH="${JAVA_HOME}/jre/lib/resources.jar:${JAVA_HOME}/jre/lib/rt.jar:${JAVA_HOME}/jre/lib/sunrsasign.jar:${JAVA_HOME}/jre/lib/jsse.jar:${JAVA_HOME}/jre/lib/jce.jar:${JAVA_HOME}/jre/lib/charsets.jar:${JAVA_HOME}/jre/classes"
|
|
||||||
GENERATION="2"
|
|
||||||
ENV_VARS="JAVA_HOME JDK_HOME JAVAC PATH ROOTPATH LDPATH MANPATH"
|
|
@ -1,307 +0,0 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit eutils java-vm-2 prefix versionator
|
|
||||||
|
|
||||||
MY_PV="$(get_version_component_range 2)u$(get_version_component_range 4)"
|
|
||||||
S_PV="$(replace_version_separator 3 '_')"
|
|
||||||
|
|
||||||
# This URIs need to be updated when bumping!
|
|
||||||
JDK_URI="http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html#jdk-${MY_PV}-oth-JPR"
|
|
||||||
JCE_URI="http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html"
|
|
||||||
# This is a list of archs supported by this update.
|
|
||||||
# Currently arm comes and goes.
|
|
||||||
AT_AVAILABLE=( amd64 x86 x64-solaris x86-solaris sparc-solaris sparc64-solaris x86-macos x64-macos )
|
|
||||||
# Sometimes some or all of the demos are missing, this is to not have to rewrite half
|
|
||||||
# the ebuild when it happens.
|
|
||||||
DEMOS_AVAILABLE=( amd64 x86 x64-solaris x86-solaris sparc-solaris sparc64-solaris x86-macos x64-macos )
|
|
||||||
FX_VERSION="2_2_$(get_version_component_range 4)"
|
|
||||||
|
|
||||||
AT_x86="jdk-${MY_PV}-linux-i586.tar.gz"
|
|
||||||
AT_amd64="jdk-${MY_PV}-linux-x64.tar.gz"
|
|
||||||
AT_arm="jdk-${MY_PV}-linux-arm-vfp-sflt.tar.gz jdk-${MY_PV}-linux-arm-vfp-hflt.tar.gz"
|
|
||||||
AT_x86_solaris="jdk-${MY_PV}-solaris-i586.tar.gz"
|
|
||||||
AT_x64_solaris="${AT_x86_solaris} jdk-${MY_PV}-solaris-x64.tar.gz"
|
|
||||||
AT_sparc_solaris="jdk-${MY_PV}-solaris-sparc.tar.gz"
|
|
||||||
AT_sparc64_solaris="${AT_sparc_solaris} jdk-${MY_PV}-solaris-sparcv9.tar.gz"
|
|
||||||
AT_x86_macos="jdk-${MY_PV}-macosx-x64.dmg"
|
|
||||||
AT_x64_macos="jdk-${MY_PV}-macosx-x64.dmg"
|
|
||||||
|
|
||||||
FXDEMOS_linux="javafx_samples-${FX_VERSION}-linux.zip"
|
|
||||||
|
|
||||||
DEMOS_x86="${FXDEMOS_linux} jdk-${MY_PV}-linux-i586-demos.tar.gz"
|
|
||||||
DEMOS_amd64="${FXDEMOS_linux} jdk-${MY_PV}-linux-x64-demos.tar.gz"
|
|
||||||
DEMOS_arm="${FXDEMOS_linux} jdk-${MY_PV}-linux-arm-vfp-sflt-demos.tar.gz jdk-${MY_PV}-linux-arm-vfp-hflt-demos.tar.gz"
|
|
||||||
DEMOS_x86_solaris="jdk-${MY_PV}-solaris-i586-demos.tar.gz"
|
|
||||||
DEMOS_x64_solaris="${DEMOS_x86_solaris} jdk-${MY_PV}-solaris-x64-demos.tar.gz"
|
|
||||||
DEMOS_sparc_solaris="jdk-${MY_PV}-solaris-sparc-demos.tar.gz"
|
|
||||||
DEMOS_sparc64_solaris="${DEMOS_sparc_solaris} jdk-${MY_PV}-solaris-sparcv9-demos.tar.gz"
|
|
||||||
DEMOS_x86_macos="jdk-${MY_PV}-macosx-x86_64-demos.tar.gz"
|
|
||||||
DEMOS_x64_macos="jdk-${MY_PV}-macosx-x86_64-demos.tar.gz"
|
|
||||||
|
|
||||||
JCE_DIR="UnlimitedJCEPolicy"
|
|
||||||
JCE_FILE="${JCE_DIR}JDK7.zip"
|
|
||||||
|
|
||||||
DESCRIPTION="Oracle's Java SE Development Kit"
|
|
||||||
HOMEPAGE="http://www.oracle.com/technetwork/java/javase/"
|
|
||||||
for d in "${AT_AVAILABLE[@]}"; do
|
|
||||||
SRC_URI+=" ${d}? ("
|
|
||||||
SRC_URI+=" $(eval "echo \${$(echo AT_${d/-/_})}")"
|
|
||||||
if has ${d} "${DEMOS_AVAILABLE[@]}"; then
|
|
||||||
SRC_URI+=" examples? ( $(eval "echo \${$(echo DEMOS_${d/-/_})}") )"
|
|
||||||
fi
|
|
||||||
SRC_URI+=" )"
|
|
||||||
done
|
|
||||||
unset d
|
|
||||||
SRC_URI+=" jce? ( ${JCE_FILE} )"
|
|
||||||
|
|
||||||
LICENSE="Oracle-BCLA-JavaSE examples? ( BSD )"
|
|
||||||
SLOT="1.7"
|
|
||||||
KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="+X alsa aqua derby doc examples +fontconfig jce nsplugin pax_kernel selinux source"
|
|
||||||
|
|
||||||
RESTRICT="fetch strip"
|
|
||||||
QA_PREBUILT="*"
|
|
||||||
|
|
||||||
COMMON_DEP=""
|
|
||||||
RDEPEND="${COMMON_DEP}
|
|
||||||
X? ( !aqua? (
|
|
||||||
x11-libs/libX11
|
|
||||||
x11-libs/libXext
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXrender
|
|
||||||
x11-libs/libXtst
|
|
||||||
) )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
doc? ( dev-java/java-sdk-docs:1.7 )
|
|
||||||
fontconfig? ( media-libs/fontconfig )
|
|
||||||
!prefix? ( sys-libs/glibc )
|
|
||||||
selinux? ( sec-policy/selinux-java )"
|
|
||||||
# scanelf won't create a PaX header, so depend on paxctl to avoid fallback
|
|
||||||
# marking. #427642
|
|
||||||
DEPEND="${COMMON_DEP}
|
|
||||||
jce? ( app-arch/unzip )
|
|
||||||
examples? ( kernel_linux? ( app-arch/unzip ) )
|
|
||||||
pax_kernel? ( sys-apps/paxctl )"
|
|
||||||
|
|
||||||
S="${WORKDIR}"/jdk${S_PV}
|
|
||||||
|
|
||||||
check_tarballs_available() {
|
|
||||||
local uri=$1; shift
|
|
||||||
local dl= unavailable=
|
|
||||||
for dl in "${@}"; do
|
|
||||||
[[ ! -f "${DISTDIR}/${dl}" ]] && unavailable+=" ${dl}"
|
|
||||||
done
|
|
||||||
|
|
||||||
if [[ -n "${unavailable}" ]]; then
|
|
||||||
if [[ -z ${_check_tarballs_available_once} ]]; then
|
|
||||||
einfo
|
|
||||||
einfo "Oracle requires you to download the needed files manually after"
|
|
||||||
einfo "accepting their license through a javascript capable web browser."
|
|
||||||
einfo
|
|
||||||
_check_tarballs_available_once=1
|
|
||||||
fi
|
|
||||||
einfo "Download the following files:"
|
|
||||||
for dl in ${unavailable}; do
|
|
||||||
einfo " ${dl}"
|
|
||||||
done
|
|
||||||
einfo "at '${uri}'"
|
|
||||||
einfo "and move them to '${DISTDIR}'"
|
|
||||||
einfo
|
|
||||||
einfo "If the above mentioned urls do not point to the correct version anymore,"
|
|
||||||
einfo "please download the files from Oracle's java download archive:"
|
|
||||||
einfo
|
|
||||||
einfo " http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html#jdk-${MY_PV}-oth-JPR"
|
|
||||||
einfo
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_nofetch() {
|
|
||||||
local distfiles=( $(eval "echo \${$(echo AT_${ARCH/-/_})}") )
|
|
||||||
if use examples && has ${ARCH} "${DEMOS_AVAILABLE[@]}"; then
|
|
||||||
distfiles+=( $(eval "echo \${$(echo DEMOS_${ARCH/-/_})}") )
|
|
||||||
fi
|
|
||||||
check_tarballs_available "${JDK_URI}" "${distfiles[@]}"
|
|
||||||
|
|
||||||
use jce && check_tarballs_available "${JCE_URI}" "${JCE_FILE}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
# Special case for ARM soft VS hard float.
|
|
||||||
if use arm ; then
|
|
||||||
if [[ ${CHOST} == *-hardfloat-* ]] ; then
|
|
||||||
unpack jdk-${MY_PV}-linux-arm-vfp-hflt.tar.gz
|
|
||||||
use examples && unpack jdk-${MY_PV}-linux-arm-vfp-hflt-demos.tar.gz
|
|
||||||
else
|
|
||||||
unpack jdk-${MY_PV}-linux-arm-vfp-sflt.tar.gz
|
|
||||||
use examples && unpack jdk-${MY_PV}-linux-arm-vfp-sflt-demos.tar.gz
|
|
||||||
fi
|
|
||||||
use examples && unpack javafx_samples-${FX_VERSION}-linux.zip
|
|
||||||
use jce && unpack ${JCE_FILE}
|
|
||||||
elif use x86-macos || use x64-macos ; then
|
|
||||||
pushd "${T}" > /dev/null
|
|
||||||
mkdir dmgmount
|
|
||||||
hdiutil attach "${DISTDIR}"/jdk-${MY_PV}-macosx-x64.dmg \
|
|
||||||
-mountpoint "${T}"/dmgmount
|
|
||||||
xar -xf dmgmount/JDK\ $(get_version_component_range 2)\ Update\ $(get_version_component_range 4).pkg
|
|
||||||
hdiutil detach "${T}"/dmgmount
|
|
||||||
zcat jdk1${MY_PV/u/0}.pkg/Payload | cpio -idv
|
|
||||||
mv Contents/Home "${S}"
|
|
||||||
popd > /dev/null
|
|
||||||
else
|
|
||||||
default
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
if use jce; then
|
|
||||||
mv "${WORKDIR}"/${JCE_DIR} "${S}"/jre/lib/security/ || die
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local dest="/opt/${P}"
|
|
||||||
local ddest="${ED}${dest}"
|
|
||||||
|
|
||||||
# Create files used as storage for system preferences.
|
|
||||||
mkdir jre/.systemPrefs || die
|
|
||||||
touch jre/.systemPrefs/.system.lock || die
|
|
||||||
touch jre/.systemPrefs/.systemRootModFile || die
|
|
||||||
|
|
||||||
# We should not need the ancient plugin for Firefox 2 anymore, plus it has
|
|
||||||
# writable executable segments
|
|
||||||
if use x86; then
|
|
||||||
rm -vf {,jre/}lib/i386/libjavaplugin_oji.so \
|
|
||||||
{,jre/}lib/i386/libjavaplugin_nscp*.so
|
|
||||||
rm -vrf jre/plugin/i386
|
|
||||||
fi
|
|
||||||
# Without nsplugin flag, also remove the new plugin
|
|
||||||
local arch=${ARCH};
|
|
||||||
use x86 && arch=i386;
|
|
||||||
if ! use nsplugin; then
|
|
||||||
rm -vf {,jre/}lib/${arch}/libnpjp2.so \
|
|
||||||
{,jre/}lib/${arch}/libjavaplugin_jni.so
|
|
||||||
fi
|
|
||||||
|
|
||||||
dodoc COPYRIGHT
|
|
||||||
dohtml README.html
|
|
||||||
|
|
||||||
dodir "${dest}"
|
|
||||||
cp -pPR bin include jre lib man "${ddest}" || die
|
|
||||||
|
|
||||||
if use derby; then
|
|
||||||
cp -pPR db "${ddest}" || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use examples && has ${ARCH} "${DEMOS_AVAILABLE[@]}"; then
|
|
||||||
cp -pPR demo sample "${ddest}" || die
|
|
||||||
if use kernel_linux; then
|
|
||||||
cp -pPR "${WORKDIR}"/javafx-samples-${FX_VERSION//_/.} \
|
|
||||||
"${ddest}"/javafx-samples || die
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use jce; then
|
|
||||||
dodir "${dest}"/jre/lib/security/strong-jce
|
|
||||||
mv "${ddest}"/jre/lib/security/US_export_policy.jar \
|
|
||||||
"${ddest}"/jre/lib/security/strong-jce || die
|
|
||||||
mv "${ddest}"/jre/lib/security/local_policy.jar \
|
|
||||||
"${ddest}"/jre/lib/security/strong-jce || die
|
|
||||||
dosym "${dest}"/jre/lib/security/${JCE_DIR}/US_export_policy.jar \
|
|
||||||
"${dest}"/jre/lib/security/US_export_policy.jar
|
|
||||||
dosym "${dest}"/jre/lib/security/${JCE_DIR}/local_policy.jar \
|
|
||||||
"${dest}"/jre/lib/security/local_policy.jar
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use nsplugin; then
|
|
||||||
install_mozilla_plugin "${dest}"/jre/lib/${arch}/libnpjp2.so
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use source; then
|
|
||||||
cp -p src.zip "${ddest}" || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use !arm && use !x86-macos && use !x64-macos ; then
|
|
||||||
# Install desktop file for the Java Control Panel.
|
|
||||||
# Using ${PN}-${SLOT} to prevent file collision with jre and or
|
|
||||||
# other slots. make_desktop_entry can't be used as ${P} would
|
|
||||||
# end up in filename.
|
|
||||||
newicon jre/lib/desktop/icons/hicolor/48x48/apps/sun-jcontrol.png \
|
|
||||||
sun-jcontrol-${PN}-${SLOT}.png || die
|
|
||||||
sed -e "s#Name=.*#Name=Java Control Panel for Oracle JDK ${SLOT}#" \
|
|
||||||
-e "s#Exec=.*#Exec=/opt/${P}/jre/bin/jcontrol#" \
|
|
||||||
-e "s#Icon=.*#Icon=sun-jcontrol-${PN}-${SLOT}#" \
|
|
||||||
-e "s#Application;##" \
|
|
||||||
-e "/Encoding/d" \
|
|
||||||
jre/lib/desktop/applications/sun_java.desktop \
|
|
||||||
> "${T}"/jcontrol-${PN}-${SLOT}.desktop || die
|
|
||||||
domenu "${T}"/jcontrol-${PN}-${SLOT}.desktop
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Prune all fontconfig files so libfontconfig will be used and only install
|
|
||||||
# a Gentoo specific one if fontconfig is disabled.
|
|
||||||
# http://docs.oracle.com/javase/7/docs/technotes/guides/intl/fontconfig.html
|
|
||||||
rm "${ddest}"/jre/lib/fontconfig.*
|
|
||||||
if ! use fontconfig; then
|
|
||||||
cp "${FILESDIR}"/fontconfig.Gentoo.properties "${T}"/fontconfig.properties || die
|
|
||||||
eprefixify "${T}"/fontconfig.properties
|
|
||||||
insinto "${dest}"/jre/lib/
|
|
||||||
doins "${T}"/fontconfig.properties
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This needs to be done before CDS - #215225
|
|
||||||
java-vm_set-pax-markings "${ddest}"
|
|
||||||
|
|
||||||
# see bug #207282
|
|
||||||
einfo "Creating the Class Data Sharing archives"
|
|
||||||
case ${ARCH} in
|
|
||||||
arm|ia64)
|
|
||||||
${ddest}/bin/java -client -Xshare:dump || die
|
|
||||||
;;
|
|
||||||
x86)
|
|
||||||
${ddest}/bin/java -client -Xshare:dump || die
|
|
||||||
# limit heap size for large memory on x86 #467518
|
|
||||||
# this is a workaround and shouldn't be needed.
|
|
||||||
${ddest}/bin/java -server -Xms64m -Xmx64m -Xshare:dump || die
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
${ddest}/bin/java -server -Xshare:dump || die
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Remove empty dirs we might have copied
|
|
||||||
find "${D}" -type d -empty -exec rmdir -v {} + || die
|
|
||||||
|
|
||||||
if use x86-macos || use x64-macos ; then
|
|
||||||
# fix misc install_name issues
|
|
||||||
pushd "${ddest}"/jre/lib > /dev/null || die
|
|
||||||
local lib needed nlib npath
|
|
||||||
for lib in \
|
|
||||||
libJObjC libdecora-sse libglass libjavafx-{font,iio} \
|
|
||||||
libjfxmedia libjfxwebkit libprism-es2 ;
|
|
||||||
do
|
|
||||||
lib=${lib}.dylib
|
|
||||||
einfo "Fixing self-reference of ${lib}"
|
|
||||||
install_name_tool \
|
|
||||||
-id "${EPREFIX}${dest}/jre/lib/${lib}" \
|
|
||||||
"${lib}"
|
|
||||||
done
|
|
||||||
popd > /dev/null
|
|
||||||
for nlib in jdk1{5,6} ; do
|
|
||||||
install_name_tool -change \
|
|
||||||
/usr/lib/libgcc_s_ppc64.1.dylib \
|
|
||||||
/usr/lib/libSystem.B.dylib \
|
|
||||||
"${ddest}"/lib/visualvm/profiler/lib/deployed/${nlib}/mac/libprofilerinterface.jnilib
|
|
||||||
install_name_tool -id \
|
|
||||||
"${EPREFIX}${dest}"/lib/visualvm/profiler/lib/deployed/${nlib}/mac/libprofilerinterface.jnilib \
|
|
||||||
"${ddest}"/lib/visualvm/profiler/lib/deployed/${nlib}/mac/libprofilerinterface.jnilib
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
set_java_env
|
|
||||||
java-vm_revdep-mask
|
|
||||||
java-vm_sandbox-predict /dev/random /proc/self/coredump_filter
|
|
||||||
}
|
|
@ -1,6 +1,3 @@
|
|||||||
DIST UnlimitedJCEPolicyJDK7.zip 7426 SHA256 7a8d790e7bd9c2f82a83baddfae765797a4a56ea603c9150c87b7cdb7800194d SHA512 02eca7da8f3fffea388431d5352290535a63d53a1f5c795d6511ccba62445787a0ee6ad4bc1852e5262860b6d607ba2a8c6a3dbb0c3e1d7c3a67ac7bbc783204 WHIRLPOOL 02460c7ca54f5f62c3f349addf8e2a101f7a56987e9f62365fac3f703b0c93ac5de4d55697a3d04f78b547b072e0acc95a0720d2ce3b429d2fd5936d50edd1ac
|
|
||||||
DIST jce_policy-8.zip 8409 SHA256 f3020a3922efd6626c2fff45695d527f34a8020e938a49292561f18ad1320b59 SHA512 abbaa81a35f904ec61b4cf3c2d1ca8c8d49e53bb248e698185eea906939d68f5063412800585ec74027aab1012ef189aebe1dc99fe8ef4230a0ecb0b527f88e5 WHIRLPOOL 8c9ce1ea4673b75fa6271b74e598880f98361d5d2c9c25439fa0af3d07cfeb871b39682dae4e38160f49770b1fec953162e451b9b2cf44d2c72a226944212bcc
|
DIST jce_policy-8.zip 8409 SHA256 f3020a3922efd6626c2fff45695d527f34a8020e938a49292561f18ad1320b59 SHA512 abbaa81a35f904ec61b4cf3c2d1ca8c8d49e53bb248e698185eea906939d68f5063412800585ec74027aab1012ef189aebe1dc99fe8ef4230a0ecb0b527f88e5 WHIRLPOOL 8c9ce1ea4673b75fa6271b74e598880f98361d5d2c9c25439fa0af3d07cfeb871b39682dae4e38160f49770b1fec953162e451b9b2cf44d2c72a226944212bcc
|
||||||
DIST jre-7u80-linux-i586.tar.gz 48558751 SHA256 b773aef1458a4adde03af62f8163c7e4614b485e1f01699ff8f5f60919251575 SHA512 d85b8700248a4ad0a0873d0c84b2175fb0a66773c43899ab47ac531be089794c17eb0e8b7503d46efd78833da17c9fa8a83ad1cb9c062e191acfb77155639474 WHIRLPOOL 766c88748bc758a1b35bd6008750cc8f2678801b1cc5629bcb7a756e4a32973a5f5ad927348b3ce3ad9ecb3e7aca5d1af2b613fba35d4f53f9601b1ff42312b2
|
|
||||||
DIST jre-7u80-linux-x64.tar.gz 47110223 SHA256 4c01efd0d8e80bb6e2f324ec3408ce64f066d4506c7ec93a491f615a4523f4f3 SHA512 e61e78ab1be0313690e8ab8d6cbae7366dd78aa4716f47c8908178196b658b94ee318dd04043965a72c34d8ef5c1cb4902afaa2188e76eb944256f090339107d WHIRLPOOL 1af7417b327402abaf4074445f051924de8b19810668890e089b66a488dddfc7f50cdd96a012130a591940338177164f66c83caf54c5d6d370be27d119a907fe
|
|
||||||
DIST jre-8u92-linux-i586.tar.gz 73984536 SHA256 c64e5778e61912118e1b566228e2c532b21d915c2fd98e9b6042b26602deeec6 SHA512 0eb1f03e7b84537501c13e185e2f1dc7f12c162209c98ce51042618cf02bd1691f3eb09c75a6d8db6dc6cfdd3369315cede49c194eae204b07d461a8eae47ff5 WHIRLPOOL a5e82f71ededce477bcb5fb49ad546c9d6a232156884f569b7d763efb44b3901ae0e211df35ae3ccc4295f6045479d36ad005e2e7acc673c7c3310069167ca99
|
DIST jre-8u92-linux-i586.tar.gz 73984536 SHA256 c64e5778e61912118e1b566228e2c532b21d915c2fd98e9b6042b26602deeec6 SHA512 0eb1f03e7b84537501c13e185e2f1dc7f12c162209c98ce51042618cf02bd1691f3eb09c75a6d8db6dc6cfdd3369315cede49c194eae204b07d461a8eae47ff5 WHIRLPOOL a5e82f71ededce477bcb5fb49ad546c9d6a232156884f569b7d763efb44b3901ae0e211df35ae3ccc4295f6045479d36ad005e2e7acc673c7c3310069167ca99
|
||||||
DIST jre-8u92-linux-x64.tar.gz 71818563 SHA256 e8469bcf55e388770cd6b6a51b082ce7a5a3149b4039a71b1edeed2796dcefe4 SHA512 2d538c05110de21fc4dfb47e225012fc696e4a644c4d3191da48ccfcb239a6ac5618b75fc3c0eeb47f98e82254c548a0083bfab7ad831adffdcd6706433cf38f WHIRLPOOL 1a5ddd7f410c51452c774350b0a3f64d4c2cdc4b930c9278087b5de02bb95caf3d328509dad8903930744adb0367bcea26b4ed3f429bf9ee6ca219ba1c41b070
|
DIST jre-8u92-linux-x64.tar.gz 71818563 SHA256 e8469bcf55e388770cd6b6a51b082ce7a5a3149b4039a71b1edeed2796dcefe4 SHA512 2d538c05110de21fc4dfb47e225012fc696e4a644c4d3191da48ccfcb239a6ac5618b75fc3c0eeb47f98e82254c548a0083bfab7ad831adffdcd6706433cf38f WHIRLPOOL 1a5ddd7f410c51452c774350b0a3f64d4c2cdc4b930c9278087b5de02bb95caf3d328509dad8903930744adb0367bcea26b4ed3f429bf9ee6ca219ba1c41b070
|
||||||
|
@ -1,17 +0,0 @@
|
|||||||
# Copyright 1999-2011 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
VERSION="Oracle JRE @PV@"
|
|
||||||
JAVA_HOME="@GENTOO_PORTAGE_EPREFIX@/opt/@P@"
|
|
||||||
JDK_HOME="@GENTOO_PORTAGE_EPREFIX@/opt/@P@"
|
|
||||||
JAVAC=${JAVA_HOME}/bin/javac
|
|
||||||
PATH="${JAVA_HOME}/bin:${JAVA_HOME}/bin"
|
|
||||||
ROOTPATH="${JAVA_HOME}/bin:${JAVA_HOME}/bin"
|
|
||||||
LDPATH="@GENTOO_PORTAGE_EPREFIX@/usr/java/packages/lib/@PLATFORM@:@GENTOO_PORTAGE_EPREFIX@/usr/lib64:@GENTOO_PORTAGE_EPREFIX@/lib64:@GENTOO_PORTAGE_EPREFIX@/lib:@GENTOO_PORTAGE_EPREFIX@/usr/lib"
|
|
||||||
MANPATH="@GENTOO_PORTAGE_EPREFIX@/opt/@P@/man"
|
|
||||||
PROVIDES_TYPE="JRE"
|
|
||||||
PROVIDES_VERSION="1.7"
|
|
||||||
BOOTCLASSPATH="${JAVA_HOME}/lib/resources.jar:${JAVA_HOME}/lib/rt.jar:${JAVA_HOME}/lib/sunrsasign.jar:${JAVA_HOME}/lib/jsse.jar:${JAVA_HOME}/lib/jce.jar:${JAVA_HOME}/lib/charsets.jar:${JAVA_HOME}/classes"
|
|
||||||
GENERATION="2"
|
|
||||||
ENV_VARS="JAVA_HOME JDK_HOME JAVAC PATH ROOTPATH LDPATH MANPATH"
|
|
@ -1,185 +0,0 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit java-vm-2 eutils prefix versionator
|
|
||||||
|
|
||||||
MY_PV="$(get_version_component_range 2)u$(get_version_component_range 4)"
|
|
||||||
S_PV="$(replace_version_separator 3 '_')"
|
|
||||||
|
|
||||||
X86_AT="jre-${MY_PV}-linux-i586.tar.gz"
|
|
||||||
AMD64_AT="jre-${MY_PV}-linux-x64.tar.gz"
|
|
||||||
|
|
||||||
# This URIs need updating when bumping!
|
|
||||||
JRE_URI="http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1880261.html#jre-${MY_PV}-oth-JPR"
|
|
||||||
JCE_URI="http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html"
|
|
||||||
|
|
||||||
JCE_DIR="UnlimitedJCEPolicy"
|
|
||||||
JCE_FILE="${JCE_DIR}JDK7.zip"
|
|
||||||
|
|
||||||
DESCRIPTION="Oracle's Java SE Runtime Environment"
|
|
||||||
HOMEPAGE="http://www.oracle.com/technetwork/java/javase/"
|
|
||||||
SRC_URI="
|
|
||||||
x86? ( ${X86_AT} )
|
|
||||||
amd64? ( ${AMD64_AT} )
|
|
||||||
jce? ( ${JCE_FILE} )"
|
|
||||||
|
|
||||||
LICENSE="Oracle-BCLA-JavaSE"
|
|
||||||
SLOT="1.7"
|
|
||||||
KEYWORDS="amd64 x86"
|
|
||||||
IUSE="X alsa fontconfig jce nsplugin pax_kernel selinux"
|
|
||||||
|
|
||||||
RESTRICT="fetch strip"
|
|
||||||
QA_PREBUILT="*"
|
|
||||||
|
|
||||||
COMMON_DEP=""
|
|
||||||
RDEPEND="${COMMON_DEP}
|
|
||||||
X? (
|
|
||||||
x11-libs/libXext
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXrender
|
|
||||||
x11-libs/libXtst
|
|
||||||
x11-libs/libX11
|
|
||||||
)
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
fontconfig? ( media-libs/fontconfig )
|
|
||||||
!prefix? ( sys-libs/glibc )
|
|
||||||
selinux? ( sec-policy/selinux-java )"
|
|
||||||
# scanelf won't create a PaX header, so depend on paxctl to avoid fallback
|
|
||||||
# marking. #427642
|
|
||||||
DEPEND="${COMMON_DEP}
|
|
||||||
jce? ( app-arch/unzip )
|
|
||||||
pax_kernel? ( sys-apps/paxctl )"
|
|
||||||
|
|
||||||
S="${WORKDIR}/jre${S_PV}"
|
|
||||||
|
|
||||||
pkg_nofetch() {
|
|
||||||
if use x86; then
|
|
||||||
AT=${X86_AT}
|
|
||||||
elif use amd64; then
|
|
||||||
AT=${AMD64_AT}
|
|
||||||
fi
|
|
||||||
|
|
||||||
einfo "Please download '${AT}' from:"
|
|
||||||
einfo "'${JRE_URI}'"
|
|
||||||
einfo "and move it to '${DISTDIR}'"
|
|
||||||
|
|
||||||
if use jce; then
|
|
||||||
einfo "Also download '${JCE_FILE}' from:"
|
|
||||||
einfo "'${JCE_URI}'"
|
|
||||||
einfo "and move it to '${DISTDIR}'"
|
|
||||||
fi
|
|
||||||
|
|
||||||
einfo
|
|
||||||
einfo "If the above mentioned urls do not point to the correct version anymore,"
|
|
||||||
einfo "please download the files from Oracle's java download archive:"
|
|
||||||
einfo
|
|
||||||
einfo " http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html#jre-${MY_PV}-oth-JPR"
|
|
||||||
einfo
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
if use jce; then
|
|
||||||
mv "${WORKDIR}"/${JCE_DIR} lib/security/ || die
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local dest="/opt/${P}"
|
|
||||||
local ddest="${ED}${dest}"
|
|
||||||
|
|
||||||
# Create files used as storage for system preferences.
|
|
||||||
mkdir .systemPrefs || die
|
|
||||||
touch .systemPrefs/.system.lock || die
|
|
||||||
touch .systemPrefs/.systemRootModFile || die
|
|
||||||
|
|
||||||
# We should not need the ancient plugin for Firefox 2 anymore, plus it has
|
|
||||||
# writable executable segments
|
|
||||||
if use x86; then
|
|
||||||
rm -vf lib/i386/libjavaplugin_oji.so \
|
|
||||||
lib/i386/libjavaplugin_nscp*.so
|
|
||||||
rm -vrf plugin/i386
|
|
||||||
fi
|
|
||||||
# Without nsplugin flag, also remove the new plugin
|
|
||||||
local arch=${ARCH};
|
|
||||||
use x86 && arch=i386;
|
|
||||||
if ! use nsplugin; then
|
|
||||||
rm -vf lib/${arch}/libnpjp2.so \
|
|
||||||
lib/${arch}/libjavaplugin_jni.so
|
|
||||||
fi
|
|
||||||
|
|
||||||
dodir "${dest}"
|
|
||||||
cp -pPR bin lib man "${ddest}" || die
|
|
||||||
|
|
||||||
# This needs to be done before CDS - #215225
|
|
||||||
java-vm_set-pax-markings "${ddest}"
|
|
||||||
|
|
||||||
# see bug #207282
|
|
||||||
einfo "Creating the Class Data Sharing archives"
|
|
||||||
case ${ARCH} in
|
|
||||||
arm|ia64)
|
|
||||||
${ddest}/bin/java -client -Xshare:dump || die
|
|
||||||
;;
|
|
||||||
x86)
|
|
||||||
${ddest}/bin/java -client -Xshare:dump || die
|
|
||||||
# limit heap size for large memory on x86 #467518
|
|
||||||
# this is a workaround and shouldn't be needed.
|
|
||||||
${ddest}/bin/java -server -Xms64m -Xmx64m -Xshare:dump || die
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
${ddest}/bin/java -server -Xshare:dump || die
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Remove empty dirs we might have copied
|
|
||||||
find "${D}" -type d -empty -exec rmdir -v {} + || die
|
|
||||||
|
|
||||||
dodoc COPYRIGHT README
|
|
||||||
|
|
||||||
if use jce; then
|
|
||||||
dodir ${dest}/lib/security/strong-jce
|
|
||||||
mv "${ddest}"/lib/security/US_export_policy.jar \
|
|
||||||
"${ddest}"/lib/security/strong-jce || die
|
|
||||||
mv "${ddest}"/lib/security/local_policy.jar \
|
|
||||||
"${ddest}"/lib/security/strong-jce || die
|
|
||||||
dosym "${dest}"/lib/security/${JCE_DIR}/US_export_policy.jar \
|
|
||||||
"${dest}"/lib/security/US_export_policy.jar
|
|
||||||
dosym "${dest}"/lib/security/${JCE_DIR}/local_policy.jar \
|
|
||||||
"${dest}"/lib/security/local_policy.jar
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use nsplugin; then
|
|
||||||
install_mozilla_plugin "${dest}"/lib/${arch}/libnpjp2.so
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Install desktop file for the Java Control Panel.
|
|
||||||
# Using ${PN}-${SLOT} to prevent file collision with jre and or other slots.
|
|
||||||
# make_desktop_entry can't be used as ${P} would end up in filename.
|
|
||||||
newicon lib/desktop/icons/hicolor/48x48/apps/sun-jcontrol.png \
|
|
||||||
sun-jcontrol-${PN}-${SLOT}.png || die
|
|
||||||
sed -e "s#Name=.*#Name=Java Control Panel for Oracle JRE ${SLOT}#" \
|
|
||||||
-e "s#Exec=.*#Exec=/opt/${P}/bin/jcontrol#" \
|
|
||||||
-e "s#Icon=.*#Icon=sun-jcontrol-${PN}-${SLOT}#" \
|
|
||||||
-e "s#Application;##" \
|
|
||||||
-e "/Encoding/d" \
|
|
||||||
lib/desktop/applications/sun_java.desktop > \
|
|
||||||
"${T}"/jcontrol-${PN}-${SLOT}.desktop || die
|
|
||||||
domenu "${T}"/jcontrol-${PN}-${SLOT}.desktop
|
|
||||||
|
|
||||||
# Prune all fontconfig files so libfontconfig will be used and only install
|
|
||||||
# a Gentoo specific one if fontconfig is disabled.
|
|
||||||
# http://docs.oracle.com/javase/7/docs/technotes/guides/intl/fontconfig.html
|
|
||||||
rm "${ddest}"/lib/fontconfig.* || die
|
|
||||||
if ! use fontconfig; then
|
|
||||||
cp "${FILESDIR}"/fontconfig.Gentoo.properties "${T}"/fontconfig.properties || die
|
|
||||||
eprefixify "${T}"/fontconfig.properties
|
|
||||||
insinto "${dest}"/lib/
|
|
||||||
doins "${T}"/fontconfig.properties
|
|
||||||
fi
|
|
||||||
|
|
||||||
set_java_env
|
|
||||||
java-vm_revdep-mask
|
|
||||||
java-vm_sandbox-predict /dev/random /proc/self/coredump_filter
|
|
||||||
}
|
|
@ -0,0 +1 @@
|
|||||||
|
DIST kafka-python-1.1.1.tar.gz 213892 SHA256 1da61987111d23918aaebc81e1a5cfc8c72193a5df3caf4ce8826cf08bef89ec SHA512 aa95c5e5ae7790b898cfa40e763eb9c64f17c74ce1322b9a31edfd61fe693ff7cf7048d3f90cac5911c7c4dc8aa7c34ec9d33224bdad5ae5e9591e7fbcc01967 WHIRLPOOL 7706058a061c08bdd383de36dadb4035fb2c4606b0a0440062e0b92ea3965cbd1dbdb88ffc6784096e62d088a733fce66617aef63463485c5a1cfe416a007743
|
@ -0,0 +1,30 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
PYTHON_COMPAT=( python2_7 )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Kafka protocol support in Python"
|
||||||
|
HOMEPAGE="https://github.com/dpkp/kafka-python/ https://pypi.python.org/pypi/kafka-python/"
|
||||||
|
SRC_URI="https://github.com/dpkp/kafka-python/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="snappy test"
|
||||||
|
|
||||||
|
RDEPEND="snappy? ( dev-python/snappy[${PYTHON_USEDEP}] )"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||||
|
test? (
|
||||||
|
dev-python/mock[${PYTHON_USEDEP}]
|
||||||
|
dev-python/tox[${PYTHON_USEDEP}]
|
||||||
|
dev-python/unittest2[${PYTHON_USEDEP}]
|
||||||
|
)"
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
esetup.py test || die "tests failed"
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>wizardedit@gentoo.org</email>
|
||||||
|
<name>Austin English</name>
|
||||||
|
</maintainer>
|
||||||
|
<longdescription>
|
||||||
|
Python client for Apache Kafka
|
||||||
|
</longdescription>
|
||||||
|
<use>
|
||||||
|
<flag name="snappy">
|
||||||
|
Install snappy compression/decompression support
|
||||||
|
</flag>
|
||||||
|
</use>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="github">dpkp/kafka-python</remote-id>
|
||||||
|
<remote-id type="pypi">kafka-python</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
@ -1,2 +1,3 @@
|
|||||||
DIST RedCloth-4.3.0.tar.gz 91815 SHA256 aa73fb9e22cb1e02fa9d5aca4c85185021f4c89d6aed28d058f30040c9792800 SHA512 3c8c8b04697b776f9bf06e0783ac296466319a82ccad374c431f20e9fb06eb97a7fe08ecef1a0a40339aa19873ad5946f674a9392942f5eb4ffe7b7b8aac9f57 WHIRLPOOL d25efa0a53cbaea71ffdb608c4dbce8eb24ea53431d58a6e8602717c5cb059c0279b038240fb708192094011ab4af3c88439ca68802c421359c7e1eacf5ff10c
|
DIST RedCloth-4.3.0.tar.gz 91815 SHA256 aa73fb9e22cb1e02fa9d5aca4c85185021f4c89d6aed28d058f30040c9792800 SHA512 3c8c8b04697b776f9bf06e0783ac296466319a82ccad374c431f20e9fb06eb97a7fe08ecef1a0a40339aa19873ad5946f674a9392942f5eb4ffe7b7b8aac9f57 WHIRLPOOL d25efa0a53cbaea71ffdb608c4dbce8eb24ea53431d58a6e8602717c5cb059c0279b038240fb708192094011ab4af3c88439ca68802c421359c7e1eacf5ff10c
|
||||||
|
DIST RedCloth-4.3.1.tar.gz 91846 SHA256 d3824f7b415cc3ef6ad508104b83529b4f00cc17a6e17061b7b1ea0539a8e67d SHA512 965b083bc7a832652cd0e3e0a9ee08bd833e8f9da0e265684a92496b91eb1e2bde0ba147894e2f5ffad3bc5e77a0430076b18d6ef2e82bd31f08c760c0cdb09e WHIRLPOOL a40ed6cf7288a81cf4afba73a9244b0029c4a4426dba5897458682603422dd025de1229cfe4ab717067fc6317db3eab5ee988cda0fb478d0768d48031c177b49
|
||||||
DIST RedCloth-git-4.2.9.tgz 96897 SHA256 e649f46a58b949c6d229714c25b747f331b4a5b887eaa65ac43eab1f39067e6c SHA512 646f7a1a88ab9b3ff078016df706a1c9d991bf21d86ef1dd4c0a0ee6b946f94276b52499218bca222461eb003510e84b81f44b08899c5b36ac115137193e968a WHIRLPOOL 4276714eb34ec2571544ff271698f1e6540ac62d51704c4216d19452be0b59d1da3014b7c290204b9ca42d5edd88094f1de79618d3bbf8d4f8ae5fb214ecca63
|
DIST RedCloth-git-4.2.9.tgz 96897 SHA256 e649f46a58b949c6d229714c25b747f331b4a5b887eaa65ac43eab1f39067e6c SHA512 646f7a1a88ab9b3ff078016df706a1c9d991bf21d86ef1dd4c0a0ee6b946f94276b52499218bca222461eb003510e84b81f44b08899c5b36ac115137193e968a WHIRLPOOL 4276714eb34ec2571544ff271698f1e6540ac62d51704c4216d19452be0b59d1da3014b7c290204b9ca42d5edd88094f1de79618d3bbf8d4f8ae5fb214ecca63
|
||||||
|
@ -0,0 +1,58 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
USE_RUBY="ruby20 ruby21 ruby22 ruby23"
|
||||||
|
|
||||||
|
RUBY_FAKEGEM_NAME="RedCloth"
|
||||||
|
|
||||||
|
RUBY_FAKEGEM_RECIPE_TEST="rspec"
|
||||||
|
RUBY_FAKEGEM_TASK_DOC=""
|
||||||
|
|
||||||
|
RUBY_FAKEGEM_DOCDIR="doc"
|
||||||
|
|
||||||
|
RUBY_FAKEGEM_EXTRADOC="README.rdoc CHANGELOG"
|
||||||
|
|
||||||
|
RUBY_FAKEGEM_REQUIRE_PATHS="lib/case_sensitive_require"
|
||||||
|
|
||||||
|
inherit ruby-fakegem versionator
|
||||||
|
|
||||||
|
DESCRIPTION="A module for using Textile in Ruby"
|
||||||
|
HOMEPAGE="http://redcloth.org/"
|
||||||
|
|
||||||
|
GITHUB_USER=jgarber
|
||||||
|
SRC_URI="https://github.com/${GITHUB_USER}/redcloth/archive/v${PV}.tar.gz -> ${RUBY_FAKEGEM_NAME}-${PV}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND+=" dev-util/ragel"
|
||||||
|
|
||||||
|
ruby_add_bdepend "
|
||||||
|
>=dev-ruby/rake-0.8.7
|
||||||
|
>=dev-ruby/rake-compiler-0.7.1
|
||||||
|
test? ( >=dev-ruby/diff-lcs-1.1.2 )"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
ruby-ng_pkg_setup
|
||||||
|
|
||||||
|
# Export the VERBOSE variable to avoid remapping of stdout and
|
||||||
|
# stderr, and that breaks because of bad interactions between
|
||||||
|
# echoe, Ruby and Gentoo.
|
||||||
|
export VERBOSE=1
|
||||||
|
}
|
||||||
|
|
||||||
|
all_ruby_prepare() {
|
||||||
|
sed -i -e '/[Bb]undler/d' Rakefile ${PN}.gemspec || die
|
||||||
|
rm -f tasks/{release,rspec,rvm}.rake || die
|
||||||
|
}
|
||||||
|
|
||||||
|
each_ruby_compile() {
|
||||||
|
# We cannot run this manually easily, because Ragel re-generation
|
||||||
|
# is a mess
|
||||||
|
${RUBY} -S rake compile || die "rake compile failed"
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST semantic_puppet-0.1.1.gem 25088 SHA256 803dc62c61bbd7318197821590d8fe45f306ce8be4d1e54944ac7bfa1af2eff1 SHA512 9aa2ed9ae4194d85dd2c69b09ff128aef77f0fcb0ac2a3acd9dfbae970251d6ea9bf8cd7cab66f41553bc2693fb401d154e3ec4f0866d87106d39d1f347808fa WHIRLPOOL 774cb803c7e30aa341464b431d0678b7fbbff100ad4ac8b48285266dc70b5bf3f6d449db3670bcf0fdb2990635f758330b967abf47c264e59e0b468f6f1377b4
|
DIST semantic_puppet-0.1.1.gem 25088 SHA256 803dc62c61bbd7318197821590d8fe45f306ce8be4d1e54944ac7bfa1af2eff1 SHA512 9aa2ed9ae4194d85dd2c69b09ff128aef77f0fcb0ac2a3acd9dfbae970251d6ea9bf8cd7cab66f41553bc2693fb401d154e3ec4f0866d87106d39d1f347808fa WHIRLPOOL 774cb803c7e30aa341464b431d0678b7fbbff100ad4ac8b48285266dc70b5bf3f6d449db3670bcf0fdb2990635f758330b967abf47c264e59e0b468f6f1377b4
|
||||||
|
DIST semantic_puppet-0.1.2.gem 25600 SHA256 de0f0112fc4b9412ce3295e2f9653a796ec9f88953a2cfd03617755a5a35a559 SHA512 160cfe6f649a038a5d3899ba059ce47e1cdf691d658e058968452f68c46964298b897ed63eea07aad424c7ea861ea95b3b31e398ed54a2b26e608d2a285e3600 WHIRLPOOL 29026b9db8729f04634647480b9f0f40ae71705b3ff7b693d78bd6266cea28ae47bcb15cfdd2d8d7352d07d568874477dead2997409d96c24cafc1ad51451b74
|
||||||
|
@ -0,0 +1,21 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
USE_RUBY="ruby20 ruby21 ruby22 ruby23"
|
||||||
|
|
||||||
|
RUBY_FAKEGEM_RECIPE_TEST="rspec"
|
||||||
|
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
|
||||||
|
|
||||||
|
RUBY_FAKEGEM_EXTRADOC="README.md CHANGELOG.md"
|
||||||
|
|
||||||
|
inherit ruby-fakegem
|
||||||
|
|
||||||
|
DESCRIPTION="Library of tools for working with Semantic Versions and module dependencies"
|
||||||
|
HOMEPAGE="https://github.com/puppetlabs/semantic_puppet"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~x86 ~amd64"
|
||||||
|
IUSE=""
|
@ -1 +1,2 @@
|
|||||||
DIST freecol-0.11.5-src.zip 45280324 SHA256 99b31077fb3d7bfab44fcb900e0ea828a1dedf44fa814e05e166f240a68a5078 SHA512 1059c3b5c87c0f5ae07a99aaab1af2f73c7767a536aa2cff1b6c518b53d9ef6cb75713b4aeb601ab02bf946dcf451d01775b27cf82c457c0b9869e4cfeb55965 WHIRLPOOL 859c5097db4db88642fdfe0189bb731f47e7fe5118e943958698c351b21b6e0762a106b9541a8554633f770c7c2a0d4b57a8b7b26584e96be1277ec887721d67
|
DIST freecol-0.11.5-src.zip 45280324 SHA256 99b31077fb3d7bfab44fcb900e0ea828a1dedf44fa814e05e166f240a68a5078 SHA512 1059c3b5c87c0f5ae07a99aaab1af2f73c7767a536aa2cff1b6c518b53d9ef6cb75713b4aeb601ab02bf946dcf451d01775b27cf82c457c0b9869e4cfeb55965 WHIRLPOOL 859c5097db4db88642fdfe0189bb731f47e7fe5118e943958698c351b21b6e0762a106b9541a8554633f770c7c2a0d4b57a8b7b26584e96be1277ec887721d67
|
||||||
|
DIST freecol-0.11.6-src.zip 45002451 SHA256 52bbc35a8101cbfa770a004750c88969d6caf3f182733671a1e04dd97b86021a SHA512 fbfec95ad7128477d631be92b750d639d42bde3e052c94265590933e841adf66e670d5e1b2f6e8ef05629afeafded60cbb495ef93272ebc14ce7fd2f2eaa53de WHIRLPOOL 355c046419c4fe62a1564460145d13938ae7435a8cb518e1de156a5f575627249c5bccd79d56e8a2b3f156d8f0d291d2cd9c24e4c1d9b27efb9427a8a33acb07
|
||||||
|
@ -0,0 +1,27 @@
|
|||||||
|
--- build.xml.orig 2015-12-09 21:10:08.272361404 -0500
|
||||||
|
+++ build.xml 2015-12-09 21:11:26.189663216 -0500
|
||||||
|
@@ -36,12 +36,11 @@
|
||||||
|
|
||||||
|
<path id="libraries.classpath">
|
||||||
|
<!-- MigLayout manager -->
|
||||||
|
- <pathelement location="${basedir}/${miglayout-swing.jar}"/>
|
||||||
|
- <pathelement location="${basedir}/${miglayout-core.jar}"/>
|
||||||
|
+ <pathelement location="${miglayout.jar}"/>
|
||||||
|
<!-- Command line processor -->
|
||||||
|
- <pathelement location="${basedir}/${cli.jar}"/>
|
||||||
|
+ <pathelement location="${cli.jar}"/>
|
||||||
|
<!-- Cortado Video Applet -->
|
||||||
|
- <pathelement location="${basedir}/${cortado.jar}"/>
|
||||||
|
+ <pathelement location="${cortado.jar}"/>
|
||||||
|
<!-- JOgg/JOrbis libraries -->
|
||||||
|
<pathelement location="${basedir}/jars/jogg-0.0.17.jar"/>
|
||||||
|
<pathelement location="${basedir}/jars/jorbis-0.0.17.jar"/>
|
||||||
|
@@ -162,7 +161,7 @@
|
||||||
|
|
||||||
|
<target name="manifest" depends="git-revision"
|
||||||
|
description="Creates the Manifest file.">
|
||||||
|
- <manifestclasspath property="jar.classpath"
|
||||||
|
+ <manifestclasspath maxParentLevels="50" property="jar.classpath"
|
||||||
|
jarfile="Freecol.jar">
|
||||||
|
<classpath refid="libraries.classpath" />
|
||||||
|
</manifestclasspath>
|
@ -0,0 +1,80 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
inherit eutils java-pkg-2 java-ant-2 games
|
||||||
|
|
||||||
|
DESCRIPTION="An open source clone of the game Colonization"
|
||||||
|
HOMEPAGE="http://www.freecol.org/"
|
||||||
|
SRC_URI="mirror://sourceforge/${PN}/${P}-src.zip"
|
||||||
|
|
||||||
|
LICENSE="GPL-2+"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
COMMON_DEP="dev-java/jsr173
|
||||||
|
dev-java/wstx:3.2
|
||||||
|
dev-java/commons-cli:1
|
||||||
|
dev-java/cortado
|
||||||
|
dev-java/miglayout"
|
||||||
|
DEPEND=">=virtual/jdk-1.8
|
||||||
|
app-arch/unzip
|
||||||
|
${COMMON_DEP}"
|
||||||
|
RDEPEND=">=virtual/jre-1.8
|
||||||
|
${COMMON_DEP}"
|
||||||
|
|
||||||
|
S=${WORKDIR}/${PN}
|
||||||
|
|
||||||
|
java_prepare() {
|
||||||
|
# jorbis isn't in portage yet
|
||||||
|
rm jars/{commons-cli-1.1,cortado-0.6.0,miglayout-core-4.2,miglayout-swing-4.2}.jar || die
|
||||||
|
epatch "${FILESDIR}"/${P}-gentoo.patch
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
java-pkg-2_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
java-ant-2_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
EANT_BUILD_TARGET=package
|
||||||
|
EANT_EXTRA_ARGS="
|
||||||
|
-Dstax.jar=$(java-pkg_getjars jsr173)
|
||||||
|
-Dwoodstox.jar=$(java-pkg_getjars wstx-3.2)
|
||||||
|
-Dcli.jar=$(java-pkg_getjars commons-cli-1)
|
||||||
|
-Dmiglayout.jar=$(java-pkg_getjars miglayout)
|
||||||
|
-Dcortado.jar=$(java-pkg_getjars cortado)
|
||||||
|
"
|
||||||
|
java-pkg-2_src_compile
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
java-pkg_jarinto "${GAMES_DATADIR}"/${PN}
|
||||||
|
java-pkg_dojar FreeCol.jar
|
||||||
|
java-pkg_dolauncher ${PN} \
|
||||||
|
-into "${GAMES_PREFIX}" \
|
||||||
|
--pwd "${GAMES_DATADIR}"/${PN} \
|
||||||
|
--jar FreeCol.jar \
|
||||||
|
--java_args -Xmx512M
|
||||||
|
insinto "${GAMES_DATADIR}"/${PN}
|
||||||
|
doins -r data schema
|
||||||
|
doicon data/${PN}.png
|
||||||
|
make_desktop_entry ${PN} FreeCol
|
||||||
|
dodoc README
|
||||||
|
prepgamesdirs
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
games_pkg_setup
|
||||||
|
java-pkg-2_pkg_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_preinst() {
|
||||||
|
games_pkg_preinst
|
||||||
|
java-pkg-2_pkg_preinst
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST wesnoth-1.12.5.tar.bz2 387726941 SHA256 599aad40da4b271c5138ac5a4391d9ff9c367ee51f5c30ca138f6baf92aea81d SHA512 1a785c02389cd4bdc79b61f62c5bb98f01fde61c3923527195a5a8e8f8986349fcda3d40a4fb14248626ea8e79eba12b8232e39cce08bfea7fbdf3d9627d53b4 WHIRLPOOL 7afbbf28de36ce3a55a177bc5b6de7f635c4e18de5934378fce6ea6a1da7ab95c55ff6c35b4a3166927efc17138fb18ef600e08969b29001455e21a260c8f6b6
|
DIST wesnoth-1.12.5.tar.bz2 387726941 SHA256 599aad40da4b271c5138ac5a4391d9ff9c367ee51f5c30ca138f6baf92aea81d SHA512 1a785c02389cd4bdc79b61f62c5bb98f01fde61c3923527195a5a8e8f8986349fcda3d40a4fb14248626ea8e79eba12b8232e39cce08bfea7fbdf3d9627d53b4 WHIRLPOOL 7afbbf28de36ce3a55a177bc5b6de7f635c4e18de5934378fce6ea6a1da7ab95c55ff6c35b4a3166927efc17138fb18ef600e08969b29001455e21a260c8f6b6
|
||||||
|
DIST wesnoth-1.12.6.tar.bz2 387869758 SHA256 a50f384cead15f68f31cfa1a311e76a12098428702cb674d3521eb169eb92e4e SHA512 12ca3b5de8fd385b05cc8e76604f7aed68127a7542599d6e97cce793e10636e00bd65dcb088701e20ccc7191f41b1d67a00b291f885df880fac00d13d6fbde7a WHIRLPOOL a1ca73e86ab66cb263e288f12d005210b1b9275012a9de470f1d60a1fa8b80d81d834c9bb9002920b8a6c94b13a413f451a5703d377bd8fbadfe455a41967221
|
||||||
|
@ -0,0 +1,118 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
inherit cmake-utils eutils multilib toolchain-funcs flag-o-matic games
|
||||||
|
|
||||||
|
DESCRIPTION="Battle for Wesnoth - A fantasy turn-based strategy game"
|
||||||
|
HOMEPAGE="http://www.wesnoth.org/"
|
||||||
|
SRC_URI="mirror://sourceforge/wesnoth/${P}.tar.bz2"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
|
||||||
|
IUSE="dbus dedicated doc fribidi nls server"
|
||||||
|
|
||||||
|
RDEPEND=">=media-libs/libsdl-1.2.7:0[joystick,video,X]
|
||||||
|
media-libs/sdl-net
|
||||||
|
!dedicated? (
|
||||||
|
>=media-libs/sdl-ttf-2.0.8
|
||||||
|
>=media-libs/sdl-mixer-1.2[vorbis]
|
||||||
|
>=media-libs/sdl-image-1.2[jpeg,png]
|
||||||
|
fribidi? ( dev-libs/fribidi )
|
||||||
|
dbus? ( sys-apps/dbus )
|
||||||
|
sys-libs/zlib
|
||||||
|
x11-libs/pango
|
||||||
|
dev-lang/lua:0
|
||||||
|
media-libs/fontconfig
|
||||||
|
)
|
||||||
|
>=dev-libs/boost-1.48:=[nls,threads]
|
||||||
|
virtual/libintl"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
virtual/pkgconfig
|
||||||
|
sys-devel/gettext"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
if use dedicated || use server ; then
|
||||||
|
sed \
|
||||||
|
-e "s:GAMES_BINDIR:${GAMES_BINDIR}:" \
|
||||||
|
-e "s:GAMES_STATEDIR:${GAMES_STATEDIR}:" \
|
||||||
|
-e "s/GAMES_USER_DED/${GAMES_USER_DED}/" \
|
||||||
|
-e "s/GAMES_GROUP/${GAMES_GROUP}/" "${FILESDIR}"/wesnothd.rc \
|
||||||
|
> "${T}"/wesnothd || die
|
||||||
|
fi
|
||||||
|
if ! use doc ; then
|
||||||
|
sed -i \
|
||||||
|
-e '/manual/d' \
|
||||||
|
doc/CMakeLists.txt || die
|
||||||
|
fi
|
||||||
|
# bug #472994
|
||||||
|
mv icons/wesnoth-icon-Mac.png icons/wesnoth-icon.png || die
|
||||||
|
mv icons/map-editor-icon-Mac.png icons/wesnoth_editor-icon.png || die
|
||||||
|
|
||||||
|
# respect LINGUAS (bug #483316)
|
||||||
|
if [[ ${LINGUAS+set} ]] ; then
|
||||||
|
local langs
|
||||||
|
for lang in $(cat po/LINGUAS)
|
||||||
|
do
|
||||||
|
has $lang $LINGUAS && langs+="$lang "
|
||||||
|
done
|
||||||
|
echo "$langs" > po/LINGUAS || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
filter-flags -ftracer -fomit-frame-pointer
|
||||||
|
if [[ $(gcc-major-version) -eq 3 ]] ; then
|
||||||
|
filter-flags -fstack-protector
|
||||||
|
append-flags -fno-stack-protector
|
||||||
|
fi
|
||||||
|
# Work around eclass
|
||||||
|
append-flags -UNDEBUG
|
||||||
|
if use dedicated || use server ; then
|
||||||
|
mycmakeargs=(
|
||||||
|
"-DENABLE_CAMPAIGN_SERVER=TRUE"
|
||||||
|
"-DENABLE_SERVER=TRUE"
|
||||||
|
"-DSERVER_UID=${GAMES_USER_DED}"
|
||||||
|
"-DSERVER_GID=${GAMES_GROUP}"
|
||||||
|
"-DFIFO_DIR=${GAMES_STATEDIR}/run/wesnothd"
|
||||||
|
)
|
||||||
|
else
|
||||||
|
mycmakeargs=(
|
||||||
|
$(cmake-utils_use_enable fribidi FRIBIDI)
|
||||||
|
"-DENABLE_CAMPAIGN_SERVER=FALSE"
|
||||||
|
"-DENABLE_SERVER=FALSE"
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
mycmakeargs+=(
|
||||||
|
$(cmake-utils_use_enable !dedicated GAME)
|
||||||
|
$(cmake-utils_use_enable !dedicated ENABLE_DESKTOP_ENTRY)
|
||||||
|
$(cmake-utils_use_enable nls NLS)
|
||||||
|
$(cmake-utils_use_enable dbus NOTIFICATIONS)
|
||||||
|
"-DCMAKE_VERBOSE_MAKEFILE=TRUE"
|
||||||
|
"-DENABLE_STRICT_COMPILATION=FALSE"
|
||||||
|
"-DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX}"
|
||||||
|
"-DDATAROOTDIR=${GAMES_DATADIR}"
|
||||||
|
"-DBINDIR=${GAMES_BINDIR}"
|
||||||
|
"-DICONDIR=/usr/share/pixmaps"
|
||||||
|
"-DDESKTOPDIR=/usr/share/applications"
|
||||||
|
"-DLOCALEDIR=/usr/share/locale"
|
||||||
|
"-DMANDIR=/usr/share/man"
|
||||||
|
"-DDOCDIR=/usr/share/doc/${PF}"
|
||||||
|
)
|
||||||
|
cmake-utils_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
cmake-utils_src_compile
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
DOCS="README.md changelog players_changelog" cmake-utils_src_install
|
||||||
|
if use dedicated || use server; then
|
||||||
|
keepdir "${GAMES_STATEDIR}/run/wesnothd"
|
||||||
|
doinitd "${T}"/wesnothd
|
||||||
|
fi
|
||||||
|
prepgamesdirs
|
||||||
|
}
|
@ -1 +1 @@
|
|||||||
DIST birdfont-2.5.1.tar.xz 1394944 SHA256 114899918abd3163fdcb12c1dd88f07630dff312be535cc6828095608442af8c SHA512 9976a7297900d18181dc5f2ef1c9af274b6986f126b2a499173a02bc5bd5eebb99918e1e4a152e5e304de63f86ae156045dc4a4f1da646c3579ef86f63ff8f5e WHIRLPOOL 028c077737cb0fb23a9d86d1a840885b570d84783d79a3c7610c462f6a7bab0591227b1c6397d1ba69393901c4752cbfe14ad9edd1821d613b89847e2a593d16
|
DIST birdfont-2.15.5.tar.xz 2257284 SHA256 5bee9dce0b4e0532665d123fb7acea264768cf213ac088a7eb97ec5bd6a622a6 SHA512 f272917e15a7960ae1a462a85542123cfed501986032ace692e654d4806bed75d36b258d7717761a1a864b00b18d7fb412ac5e83f8ea9805d13893e479f0716e WHIRLPOOL 6d784afd5adcd6582a0574d97ce079b128ed5016879087d089404b167a1c8e2b274588a82491c3b8eb739f74531faaf79f192c53b6022791758c0614ec3906d7
|
||||||
|
@ -0,0 +1,42 @@
|
|||||||
|
taken from upstream
|
||||||
|
|
||||||
|
From b807c200016fefa9dc5f588c1a88ce08bb61381c Mon Sep 17 00:00:00 2001
|
||||||
|
From: Mike Frysinger <vapier@gentoo.org>
|
||||||
|
Date: Mon, 16 May 2016 14:01:52 -0400
|
||||||
|
Subject: [PATCH] configure: respect --valac option
|
||||||
|
|
||||||
|
Make sure we don't still test `valac` when the compiler has been set to
|
||||||
|
a specific version/path.
|
||||||
|
---
|
||||||
|
configure | 6 +++---
|
||||||
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/configure b/configure
|
||||||
|
index b0a9277..c66d268 100755
|
||||||
|
--- a/configure
|
||||||
|
+++ b/configure
|
||||||
|
@@ -87,10 +87,10 @@ def has_posixvala ():
|
||||||
|
print (OKGREEN + 'Using posix profile.' + ENDC)
|
||||||
|
return 'True'
|
||||||
|
|
||||||
|
-def configure(gtk, libbgee):
|
||||||
|
+def configure(gtk, libbgee, valac):
|
||||||
|
global gee
|
||||||
|
|
||||||
|
- if not test_program_version ('valac', 0, 16, 0):
|
||||||
|
+ if not test_program_version(valac, 0, 16, 0):
|
||||||
|
print (FAIL + 'valac is too old.' + ENDC)
|
||||||
|
exit (1)
|
||||||
|
|
||||||
|
@@ -203,7 +203,7 @@ if not options.nonnull:
|
||||||
|
else:
|
||||||
|
options.nonnull = True
|
||||||
|
|
||||||
|
-configure(options.gtk, options.gee)
|
||||||
|
+configure(options.gtk, options.gee, options.valac)
|
||||||
|
|
||||||
|
configfile.write_config(options.prefix)
|
||||||
|
configfile.write_compile_parameters(options.prefix,
|
||||||
|
--
|
||||||
|
2.8.2
|
||||||
|
|
@ -1 +1,3 @@
|
|||||||
DIST xdot-0.5.tar.gz 24555 SHA256 ecc40a7371a6f9590cb10b1a7d3cef67843cb18e7a9e4648dcb458229a7bf3c7 SHA512 f466ee0af2270c66218b67bf371c972d0ffefe977059eeeeb3c4a2ca29807c3ca419020286ed9c031853f79afb55222884c942bd14d8365b64ce2a0ed5f6d1d0 WHIRLPOOL 10e21752cfb8afd3a34b64708f410290b70e37026a8723320693f612ea1de5e13296db88b951ce860c260434dba5b113919b12e10f461e97b8a6a68d5f7e9125
|
DIST xdot-0.5.tar.gz 24555 SHA256 ecc40a7371a6f9590cb10b1a7d3cef67843cb18e7a9e4648dcb458229a7bf3c7 SHA512 f466ee0af2270c66218b67bf371c972d0ffefe977059eeeeb3c4a2ca29807c3ca419020286ed9c031853f79afb55222884c942bd14d8365b64ce2a0ed5f6d1d0 WHIRLPOOL 10e21752cfb8afd3a34b64708f410290b70e37026a8723320693f612ea1de5e13296db88b951ce860c260434dba5b113919b12e10f461e97b8a6a68d5f7e9125
|
||||||
|
DIST xdot-0.6.tar.gz 27710 SHA256 0932bb72abaa77e6a5c4f2acd13569763c23d2761f4e9e5e49993bc69da9cce2 SHA512 25dcb35aacdd58fb13519346d1d8cf500eeeeb3cc40dee85e967d23c52c0c37ba092a023aec6cd72a35b74e3ea6a2168e1691ad218e4a6af17ea6d56d824f05b WHIRLPOOL f98c33b4d9e0d08a61630f351063a6756b40c01aa065ec8a7b9e620aa5650b97de1ea73bb384a41bc48ab4a99e6498499e4f5df3191449c56947bb9101f29f41
|
||||||
|
DIST xdot-0.7.tar.gz 126406 SHA256 908eeaaae2af12744e25e8cffe704d7a9fd221c23c60f550263de81157ef50f7 SHA512 793be28fbd0ee6c2b9dd97532ef8742d598f84055ef67e688593d7c1f689f04593dd89a490f4f48866b18ac595252d03b9cc6d8d8e2d6c0ac1ef1ad28789c512 WHIRLPOOL 80976649a0d2cb0c7dc4d27783b9e23d3fc5e7c6e9d003816ca85d644384e0ef81d672b3d5261b38b22a3a80ab80ac51a892318ba15a2f26af5198dbd4612b3e
|
||||||
|
@ -0,0 +1,29 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
PYTHON_COMPAT=( python2_7 )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
MY_PN=xdot.py
|
||||||
|
MY_P="${MY_PN}-${PV}"
|
||||||
|
|
||||||
|
DESCRIPTION="Interactive viewer for Graphviz dot files"
|
||||||
|
HOMEPAGE="https://github.com/jrfonseca/xdot.py"
|
||||||
|
SRC_URI="https://github.com/jrfonseca/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="LGPL-2+"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
dev-python/pycairo[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pygtk-2.10:2[${PYTHON_USEDEP}]
|
||||||
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||||
|
media-gfx/graphviz[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
@ -0,0 +1,29 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
PYTHON_COMPAT=( python2_7 )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
MY_PN=xdot.py
|
||||||
|
MY_P="${MY_PN}-${PV}"
|
||||||
|
|
||||||
|
DESCRIPTION="Interactive viewer for Graphviz dot files"
|
||||||
|
HOMEPAGE="https://github.com/jrfonseca/xdot.py"
|
||||||
|
SRC_URI="https://github.com/jrfonseca/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="LGPL-2+"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
dev-python/pycairo[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pygtk-2.10:2[${PYTHON_USEDEP}]
|
||||||
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||||
|
media-gfx/graphviz[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
@ -0,0 +1,24 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
PYTHON_COMPAT=( python2_7 )
|
||||||
|
|
||||||
|
inherit distutils-r1 git-r3
|
||||||
|
|
||||||
|
DESCRIPTION="Interactive viewer for Graphviz dot files"
|
||||||
|
HOMEPAGE="https://github.com/jrfonseca/xdot.py"
|
||||||
|
EGIT_REPO_URI="https://github.com/jrfonseca/xdot.py.git"
|
||||||
|
|
||||||
|
LICENSE="LGPL-2+"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS=""
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
dev-python/pycairo[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pygtk-2.10:2[${PYTHON_USEDEP}]
|
||||||
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||||
|
media-gfx/graphviz[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
RDEPEND="${DEPEND}"
|
@ -0,0 +1 @@
|
|||||||
|
DIST libxmlbird-1.2.0.tar.xz 20004 SHA256 baca1d813c4a53c67a8052f8488766af7f73c38b1187fa0f7cd939899071dc24 SHA512 0677004a79194dde87f27387ae1faeb19aa2ecd985664ad4f3f7576d39f71e0d05215c92bb15f3e3f1a4053e27025fd1a4151f1ba12774cfa789d47648097e5b WHIRLPOOL 51ac2fe20fa434267dd2af968707c8370ff3b02c137554fc88e0a0147e61d2824c3381a46e016802fb6af3c16cdf950c231c3c6a01b7bda477f4c76091da3201
|
@ -0,0 +1,62 @@
|
|||||||
|
https://github.com/johanmattssonm/xmlbird/pull/5
|
||||||
|
|
||||||
|
From 67864656d7446b067a388c6fd2f059322d7047f0 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Mike Frysinger <vapier@gentoo.org>
|
||||||
|
Date: Tue, 17 May 2016 17:00:05 -0400
|
||||||
|
Subject: [PATCH] configure/test: respect --valac option
|
||||||
|
|
||||||
|
Make sure we don't still test `valac` when the compiler has been set to
|
||||||
|
a specific version/path.
|
||||||
|
---
|
||||||
|
configure | 6 +++---
|
||||||
|
scripts/tests.py | 4 ++--
|
||||||
|
2 files changed, 5 insertions(+), 5 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/configure b/configure
|
||||||
|
index f80559f..4bbd9d5 100755
|
||||||
|
--- a/configure
|
||||||
|
+++ b/configure
|
||||||
|
@@ -44,8 +44,8 @@ def test_library_version (lib):
|
||||||
|
process.communicate()[0]
|
||||||
|
return process.returncode == 0
|
||||||
|
|
||||||
|
-def configure ():
|
||||||
|
- if not test_program_version ("valac", 0, 16, 0):
|
||||||
|
+def configure(valac):
|
||||||
|
+ if not test_program_version(valac, 0, 16, 0):
|
||||||
|
print (FAIL + "valac is too old." + ENDC)
|
||||||
|
exit (1)
|
||||||
|
|
||||||
|
@@ -105,7 +105,7 @@ if not options.nonnull:
|
||||||
|
else:
|
||||||
|
options.nonnull = True
|
||||||
|
|
||||||
|
-configure()
|
||||||
|
+configure(options.valac)
|
||||||
|
|
||||||
|
configfile.write_compile_parameters(options.prefix,
|
||||||
|
options.dest,
|
||||||
|
diff --git a/scripts/tests.py b/scripts/tests.py
|
||||||
|
index 7281e05..88483f1 100644
|
||||||
|
--- a/scripts/tests.py
|
||||||
|
+++ b/scripts/tests.py
|
||||||
|
@@ -1,6 +1,6 @@
|
||||||
|
#!/usr/bin/python3
|
||||||
|
import subprocess
|
||||||
|
-from scripts.config import PREFIX
|
||||||
|
+from scripts.config import (PREFIX, VALAC)
|
||||||
|
from scripts.run import run
|
||||||
|
from scripts.version import LIBXMLBIRD_SO_VERSION
|
||||||
|
|
||||||
|
@@ -32,7 +32,7 @@ def build_tests():
|
||||||
|
run ("mkdir -p build/tests");
|
||||||
|
|
||||||
|
for test in tests:
|
||||||
|
- run ("valac --ccode --pkg=posix --pkg=xmlbird --vapidir=./build "
|
||||||
|
+ run (VALAC + " --ccode --pkg=posix --pkg=xmlbird --vapidir=./build "
|
||||||
|
+ "--directory=./build tests/" + test + ".vala tests/Test.vala");
|
||||||
|
|
||||||
|
run ("""gcc -fPIC -c \
|
||||||
|
--
|
||||||
|
2.8.2
|
||||||
|
|
@ -0,0 +1,159 @@
|
|||||||
|
From 661c84d232e8d22978dd0220f7860b149c19f2e4 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Mike Frysinger <vapier@gentoo.org>
|
||||||
|
Date: Tue, 17 May 2016 17:37:53 -0400
|
||||||
|
Subject: [PATCH] configure: respect libdir at build time
|
||||||
|
|
||||||
|
The xmlbird.pc file encodes the libdir in it, so make sure we have it
|
||||||
|
at configure & build time. That means moving the flag from install to
|
||||||
|
configure and the config module.
|
||||||
|
|
||||||
|
Also clean up the code a bit so `--libdir lib64` doesn't break things.
|
||||||
|
It previously assumed that the argument always had a leading slash.
|
||||||
|
---
|
||||||
|
configure | 19 ++++++++++++++++++-
|
||||||
|
install.py | 39 +++++++++++----------------------------
|
||||||
|
scripts/configfile.py | 3 ++-
|
||||||
|
scripts/pkgconfig.py | 2 +-
|
||||||
|
4 files changed, 32 insertions(+), 31 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/configure b/configure
|
||||||
|
index 4bbd9d5..ed64f66 100755
|
||||||
|
--- a/configure
|
||||||
|
+++ b/configure
|
||||||
|
@@ -51,6 +51,7 @@ def configure(valac):
|
||||||
|
|
||||||
|
parser = OptionParser()
|
||||||
|
parser.add_option('-p', '--prefix', dest='prefix', help='Install prefix', metavar='PREFIX')
|
||||||
|
+parser.add_option('-l', '--libdir', dest='libdir', help='path to directory for shared libraries (lib or lib64).', metavar='LIBDIR')
|
||||||
|
parser.add_option('-d', '--dest', dest='dest', help='Install to this directory', metavar='DEST')
|
||||||
|
parser.add_option('-c', '--cc', dest='cc', help='C compiler', metavar='CC')
|
||||||
|
parser.add_option('-v', '--valac', dest='valac', help='Vala compiler', metavar='VALAC')
|
||||||
|
@@ -93,7 +94,22 @@ if not options.prefix:
|
||||||
|
options.prefix = '${DESTDIR}${PREFIX}'
|
||||||
|
else:
|
||||||
|
options.prefix = '/usr'
|
||||||
|
-
|
||||||
|
+
|
||||||
|
+if not options.libdir:
|
||||||
|
+ if platform.dist()[0] == 'Ubuntu' or platform.dist()[0] == 'Debian':
|
||||||
|
+ process = subprocess.Popen(['dpkg-architecture', '-qDEB_HOST_MULTIARCH'], stdout=subprocess.PIPE)
|
||||||
|
+ out, err = process.communicate()
|
||||||
|
+ options.libdir = 'lib/' + out.decode('UTF-8').rstrip('\n')
|
||||||
|
+ else:
|
||||||
|
+ p = platform.machine()
|
||||||
|
+ if p == 'i386' or p == 's390' or p == 'ppc' or p == 'armv7hl':
|
||||||
|
+ options.libdir = 'lib'
|
||||||
|
+ elif p == 'x86_64' or p == 's390x' or p == 'ppc64':
|
||||||
|
+ options.libdir = 'lib64'
|
||||||
|
+ else:
|
||||||
|
+ options.libdir = 'lib'
|
||||||
|
+options.libdir = '/' + options.libdir.lstrip('/')
|
||||||
|
+
|
||||||
|
if not options.dest:
|
||||||
|
options.dest = ''
|
||||||
|
if not options.cc:
|
||||||
|
@@ -108,6 +124,7 @@ else:
|
||||||
|
configure(options.valac)
|
||||||
|
|
||||||
|
configfile.write_compile_parameters(options.prefix,
|
||||||
|
+ options.libdir,
|
||||||
|
options.dest,
|
||||||
|
options.cc,
|
||||||
|
options.valac,
|
||||||
|
diff --git a/install.py b/install.py
|
||||||
|
index d3d3007..d8b995b 100755
|
||||||
|
--- a/install.py
|
||||||
|
+++ b/install.py
|
||||||
|
@@ -62,7 +62,6 @@ def link (dir, file, linkname):
|
||||||
|
run ('cd ' + dest + prefix + dir + ' && ln -sf ' + file + ' ' + linkname)
|
||||||
|
|
||||||
|
parser = OptionParser()
|
||||||
|
-parser.add_option ("-l", "--libdir", dest="libdir", help="path to directory for shared libraries (lib or lib64).")
|
||||||
|
parser.add_option ("-d", "--dest", dest="dest", help="install to this directory", metavar="DEST")
|
||||||
|
|
||||||
|
(options, args) = parser.parse_args()
|
||||||
|
@@ -73,40 +72,24 @@ if not options.dest:
|
||||||
|
prefix = config.PREFIX
|
||||||
|
dest = options.dest
|
||||||
|
|
||||||
|
-if not options.libdir:
|
||||||
|
- if platform.dist()[0] == 'Ubuntu' or platform.dist()[0] == 'Debian':
|
||||||
|
- process = subprocess.Popen(['dpkg-architecture', '-qDEB_HOST_MULTIARCH'], stdout=subprocess.PIPE)
|
||||||
|
- out, err = process.communicate()
|
||||||
|
- libdir = '/lib/' + out.decode('UTF-8').rstrip ('\n')
|
||||||
|
- else:
|
||||||
|
- p = platform.machine()
|
||||||
|
- if p == 'i386' or p == 's390' or p == 'ppc' or p == 'armv7hl':
|
||||||
|
- libdir = '/lib'
|
||||||
|
- elif p == 'x86_64' or p == 's390x' or p == 'ppc64':
|
||||||
|
- libdir = '/lib64'
|
||||||
|
- else:
|
||||||
|
- libdir = '/lib'
|
||||||
|
-else:
|
||||||
|
- libdir = options.libdir
|
||||||
|
-
|
||||||
|
if "openbsd" in sys.platform:
|
||||||
|
- install ('build/bin/libxmlbird.so.' + '${LIBxmlbird_VERSION}', '/lib', 644)
|
||||||
|
+ install ('build/bin/libxmlbird.so.' + '${LIBxmlbird_VERSION}', config.LIBDIR, 644)
|
||||||
|
elif os.path.isfile ('build/bin/libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION):
|
||||||
|
- install ('build/bin/libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION, libdir, 644)
|
||||||
|
- link (libdir, 'libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION, ' libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION_MAJOR)
|
||||||
|
- link (libdir, 'libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION, ' libxmlbird.so')
|
||||||
|
+ install ('build/bin/libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION, config.LIBDIR, 644)
|
||||||
|
+ link (config.LIBDIR, 'libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION, ' libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION_MAJOR)
|
||||||
|
+ link (config.LIBDIR, 'libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION, ' libxmlbird.so')
|
||||||
|
elif os.path.isfile ('build/libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION):
|
||||||
|
- install ('build/libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION, libdir, 644)
|
||||||
|
- link (libdir, 'libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION, ' libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION_MAJOR)
|
||||||
|
- link (libdir, 'libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION, ' libxmlbird.so')
|
||||||
|
+ install ('build/libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION, config.LIBDIR, 644)
|
||||||
|
+ link (config.LIBDIR, 'libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION, ' libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION_MAJOR)
|
||||||
|
+ link (config.LIBDIR, 'libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION, ' libxmlbird.so')
|
||||||
|
elif os.path.isfile ('build/bin/libxmlbird.' + version.LIBXMLBIRD_SO_VERSION + '.dylib'):
|
||||||
|
- install ('build/bin/libxmlbird-' + version.LIBXMLBIRD_SO_VERSION + '.dylib', libdir, 644)
|
||||||
|
- link (libdir, 'libxmlbird-' + version.LIBXMLBIRD_SO_VERSION + '.dylib', ' libxmlbird.dylib.' + version.LIBXMLBIRD_SO_VERSION_MAJOR)
|
||||||
|
- link (libdir, 'libxmlbird-' + version.LIBXMLBIRD_SO_VERSION + '.dylib', ' libxmlbird.dylib')
|
||||||
|
+ install ('build/bin/libxmlbird-' + version.LIBXMLBIRD_SO_VERSION + '.dylib', config.LIBDIR, 644)
|
||||||
|
+ link (config.LIBDIR, 'libxmlbird-' + version.LIBXMLBIRD_SO_VERSION + '.dylib', ' libxmlbird.dylib.' + version.LIBXMLBIRD_SO_VERSION_MAJOR)
|
||||||
|
+ link (config.LIBDIR, 'libxmlbird-' + version.LIBXMLBIRD_SO_VERSION + '.dylib', ' libxmlbird.dylib')
|
||||||
|
else:
|
||||||
|
print ("Can't find libxmlbird.")
|
||||||
|
exit (1)
|
||||||
|
|
||||||
|
install ('build/xmlbird/xmlbird.h', '/include', 644)
|
||||||
|
install ('build/xmlbird.vapi', '/share/vala/vapi', 644)
|
||||||
|
-install ('build/xmlbird.pc', libdir + '/pkgconfig', 644)
|
||||||
|
+install ('build/xmlbird.pc', config.LIBDIR + '/pkgconfig', 644)
|
||||||
|
diff --git a/scripts/configfile.py b/scripts/configfile.py
|
||||||
|
index 71c1e20..4a88585 100755
|
||||||
|
--- a/scripts/configfile.py
|
||||||
|
+++ b/scripts/configfile.py
|
||||||
|
@@ -1,10 +1,11 @@
|
||||||
|
#!/usr/bin/python3
|
||||||
|
|
||||||
|
-def write_compile_parameters (prefix, dest, cc, valac, non_null,
|
||||||
|
+def write_compile_parameters (prefix, libdir, dest, cc, valac, non_null,
|
||||||
|
valacflags, cflags, ldflags):
|
||||||
|
f = open('./scripts/config.py', 'w+')
|
||||||
|
f.write("#!/usr/bin/python3\n")
|
||||||
|
f.write("PREFIX = \"" + prefix + "\"\n")
|
||||||
|
+ f.write("LIBDIR = \"" + libdir + "\"\n")
|
||||||
|
f.write("DEST = \"" + dest + "\"\n")
|
||||||
|
f.write("CC = \"" + cc + "\"\n")
|
||||||
|
f.write("VALAC = \"" + valac + "\"\n")
|
||||||
|
diff --git a/scripts/pkgconfig.py b/scripts/pkgconfig.py
|
||||||
|
index c080234..c79c413 100644
|
||||||
|
--- a/scripts/pkgconfig.py
|
||||||
|
+++ b/scripts/pkgconfig.py
|
||||||
|
@@ -6,7 +6,7 @@ def generate_pkg_config_file():
|
||||||
|
f.write("prefix=" + config.PREFIX + "\n")
|
||||||
|
f.write("""exec_prefix=${prefix}
|
||||||
|
includedir=${prefix}/include
|
||||||
|
-libdir=${exec_prefix}/lib
|
||||||
|
+libdir=${exec_prefix}""" + config.LIBDIR + """
|
||||||
|
|
||||||
|
Name: xmlbird
|
||||||
|
Description: XML parser
|
||||||
|
--
|
||||||
|
2.8.2
|
||||||
|
|
@ -0,0 +1,10 @@
|
|||||||
|
--- a/scripts/run.py
|
||||||
|
+++ b/scripts/run.py
|
||||||
|
@@ -20,6 +20,7 @@ import subprocess
|
||||||
|
|
||||||
|
def run(cmd):
|
||||||
|
cmd = "sh -c \"" + cmd.replace ("\"", "\\\"") + "\""
|
||||||
|
+ print(cmd)
|
||||||
|
process = subprocess.Popen (cmd, shell=True)
|
||||||
|
process.communicate()[0]
|
||||||
|
if not process.returncode == 0:
|
@ -0,0 +1,59 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI="5"
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} )
|
||||||
|
|
||||||
|
inherit python-any-r1 vala toolchain-funcs multilib eutils
|
||||||
|
|
||||||
|
DESCRIPTION="XML parser written in Vala"
|
||||||
|
HOMEPAGE="https://birdfont.org/xmlbird.php"
|
||||||
|
SRC_URI="https://birdfont.org/xmlbird-releases/${P}.tar.xz"
|
||||||
|
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
# The test build logic needs work. Doesn't respect compiler settings.
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
vala_src_prepare
|
||||||
|
|
||||||
|
epatch "${FILESDIR}"/${PN}-1.2.0-verbose.patch
|
||||||
|
epatch "${FILESDIR}"/${PN}-1.2.0-configure-valac.patch
|
||||||
|
epatch "${FILESDIR}"/${PN}-1.2.0-libdir.patch
|
||||||
|
|
||||||
|
sed -i \
|
||||||
|
-e "s:pkg-config:$(tc-getPKG_CONFIG):" \
|
||||||
|
configure dodo.py || die
|
||||||
|
sed -i \
|
||||||
|
-e '/tests.build_tests/d' \
|
||||||
|
build.py || die
|
||||||
|
}
|
||||||
|
|
||||||
|
v() {
|
||||||
|
echo "$@"
|
||||||
|
"$@" || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
v ./configure \
|
||||||
|
--prefix "${EPREFIX}/usr" \
|
||||||
|
--libdir "$(get_libdir)" \
|
||||||
|
--valac "${VALAC}" \
|
||||||
|
--cc "$(tc-getCC)" \
|
||||||
|
--cflags "${CFLAGS} ${CPPFLAGS}" \
|
||||||
|
--ldflags "${LDFLAGS}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
v ./build.py
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
v ./install.py --dest "${D}"
|
||||||
|
dodoc NEWS README.md
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="project">
|
||||||
|
<email>fonts@gentoo.org</email>
|
||||||
|
</maintainer>
|
||||||
|
<upstream>
|
||||||
|
<bugs-to>https://birdfont.org/bugtracker/</bugs-to>
|
||||||
|
<remote-id type="github">johanmattssonm/xmlbird</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
@ -1,2 +1,3 @@
|
|||||||
DIST tlf-1.2.2.tar.gz 594524 SHA256 dc4bd660cfd145ed193993bf7dfb1544b05b2f615a8fe5d2cc6da1403a9744ed SHA512 0d1fb92f03c56356eaa8750ca5d35b446a3621717a75fdb1b2c40bafd442546f42c95341f5d645ab75cc8cf128bfd537fbdee29d18179ac7a96f5ac33b7329b4 WHIRLPOOL 934e9c045ce9c5bf5115f63339ff635b9bd9218963d0948e4eca9df7389757f3ed4699412c9465aca9301cba3632b169666cbce602a96cf131dde2e55f49e1f2
|
DIST tlf-1.2.2.tar.gz 594524 SHA256 dc4bd660cfd145ed193993bf7dfb1544b05b2f615a8fe5d2cc6da1403a9744ed SHA512 0d1fb92f03c56356eaa8750ca5d35b446a3621717a75fdb1b2c40bafd442546f42c95341f5d645ab75cc8cf128bfd537fbdee29d18179ac7a96f5ac33b7329b4 WHIRLPOOL 934e9c045ce9c5bf5115f63339ff635b9bd9218963d0948e4eca9df7389757f3ed4699412c9465aca9301cba3632b169666cbce602a96cf131dde2e55f49e1f2
|
||||||
DIST tlf-1.2.3.tar.gz 622883 SHA256 def2af96ec084744baa7efbbf92b969d04e84fb62b184692cf181c45be5754ad SHA512 00e1fdef38a311fe3b6e925fe58caa3aab4a4b58faa4ebc433510cb821a32ba0f44fe7f7461b06453e43ab02d54964a5c39d5c0ddacacb9d767701bc27e93324 WHIRLPOOL 14a9da844d2cb8cccaa0575d53651868557921955d645bfa4acb2b0514abdd2e6c3f95abfa706b892b6937588e4c4c7dc3ea81ef1eedcffc1d8e7c5710b9f385
|
DIST tlf-1.2.3.tar.gz 622883 SHA256 def2af96ec084744baa7efbbf92b969d04e84fb62b184692cf181c45be5754ad SHA512 00e1fdef38a311fe3b6e925fe58caa3aab4a4b58faa4ebc433510cb821a32ba0f44fe7f7461b06453e43ab02d54964a5c39d5c0ddacacb9d767701bc27e93324 WHIRLPOOL 14a9da844d2cb8cccaa0575d53651868557921955d645bfa4acb2b0514abdd2e6c3f95abfa706b892b6937588e4c4c7dc3ea81ef1eedcffc1d8e7c5710b9f385
|
||||||
|
DIST tlf-1.2.4.1.tar.gz 630258 SHA256 59cb8d78dbe1fa5e8ddc3f1973c5e8e41ffa1d8bef3723ced2c69ddca6692333 SHA512 567308c51f60179c21543b1046c0d2b7ecc8e63396f80a85ee386e1faa7e6ea2087907ac845dff97154b6badfaf1f7b0e69fbd21ec1d18ece48c42fa38a019c0 WHIRLPOOL c402bb9d30f8376c02e4ecf1fe198a81e92e6f6c729de144ed92792ce7ae60518a345884b55def90b5cd280b49f6b730526c61e1992708a5a0ca8227a94a4e8b
|
||||||
|
@ -0,0 +1,28 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI="5"
|
||||||
|
|
||||||
|
inherit flag-o-matic multilib
|
||||||
|
|
||||||
|
DESCRIPTION="Console-mode amateur radio contest logger"
|
||||||
|
HOMEPAGE="http://home.iae.nl/users/reinc/TLF-0.2.html"
|
||||||
|
SRC_URI="http://www.hs-mittweida.de/tb/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
RDEPEND="sys-libs/ncurses:=
|
||||||
|
dev-libs/glib:2
|
||||||
|
media-libs/hamlib
|
||||||
|
media-sound/sox
|
||||||
|
dev-libs/xmlrpc-c[curl]"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
append-ldflags -L/usr/$(get_libdir)/hamlib
|
||||||
|
econf --docdir=/usr/share/doc/${PF} --enable-hamlib --enable-fldigi-xmlrpc
|
||||||
|
}
|
@ -1 +1 @@
|
|||||||
Tue, 17 May 2016 13:40:45 +0000
|
Wed, 18 May 2016 05:40:47 +0000
|
||||||
|
@ -1 +1 @@
|
|||||||
Tue, 17 May 2016 13:40:45 +0000
|
Wed, 18 May 2016 05:40:47 +0000
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
DEFINED_PHASES=compile install prepare
|
|
||||||
DEPEND=!<dev-db/mongodb-3.0.0 dev-lang/go:= sasl? ( dev-libs/cyrus-sasl ) ssl? ( dev-libs/openssl )
|
|
||||||
DESCRIPTION=A high-performance, open source, schema-free document-oriented database
|
|
||||||
EAPI=5
|
|
||||||
HOMEPAGE=http://www.mongodb.org
|
|
||||||
IUSE=sasl ssl
|
|
||||||
KEYWORDS=~amd64 ~x86
|
|
||||||
LICENSE=Apache-2.0
|
|
||||||
RDEPEND=!<dev-db/mongodb-3.0.0
|
|
||||||
SLOT=0
|
|
||||||
SRC_URI=https://github.com/mongodb/mongo-tools/archive/r3.0.9.tar.gz -> mongo-tools-3.0.9.tar.gz
|
|
||||||
_eclasses_=eutils 792f83d5ec9536cb5ccef375469d8bde multilib d062ae4ba2fc40a19c11de2ad89b6616 toolchain-funcs d513d423d449877e49d99af3f7af7acb
|
|
||||||
_md5_=7ef7f1ec5600ffcdb75db9f72b7fb912
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue