parent
c83dbf4535
commit
3e86150940
@ -1 +1,2 @@
|
|||||||
DIST consul-0.8.4.tar.gz 6614287 SHA256 d5573d6e70d490c8b8109722c2019b5a2b35eff703b92d6276997846361cff1b SHA512 4bbb167a603f1d20940330bd9615ba0f50e0113e1d96ce47773f5d2813635f76dd1aec8f43dae4c8c547cec8a891eb0726eeeda7bd7c5b1d495029b359378e68 WHIRLPOOL e270367c69fe74f25c89ef9e8c7f71307d3b8e48b4210e43e48907f1f5a73f11f45aa2b212f70c24463e35d800b861ccd34e2c82de863fc6e7da9cd3eda5214c
|
DIST consul-0.8.4.tar.gz 6614287 SHA256 d5573d6e70d490c8b8109722c2019b5a2b35eff703b92d6276997846361cff1b SHA512 4bbb167a603f1d20940330bd9615ba0f50e0113e1d96ce47773f5d2813635f76dd1aec8f43dae4c8c547cec8a891eb0726eeeda7bd7c5b1d495029b359378e68 WHIRLPOOL e270367c69fe74f25c89ef9e8c7f71307d3b8e48b4210e43e48907f1f5a73f11f45aa2b212f70c24463e35d800b861ccd34e2c82de863fc6e7da9cd3eda5214c
|
||||||
|
DIST consul-0.9.3.tar.gz 7278357 SHA256 69b76432203e046a8025ce13f7cc041b2308d72f07f240a57f2ba5d580fcff70 SHA512 a1c9cdd3e197afbf088bd1866af15c1864cb8d042dc65d2fcc0d9070b8bf2f9380cf2ceadaff6d5bba7ecd379d53f4b8191e1ae6832f1b2c82f21c62f07d8b0f WHIRLPOOL 9e5ac311761bc786c986d4b0cdb4ba541a46f57cffd8cac4de96292293518cd8e8f3743bcb0740b245ae5a30f9f157987078874503bd6b0685a9f3c88c92ffba
|
||||||
|
@ -0,0 +1,68 @@
|
|||||||
|
# Copyright 1999-2017 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
inherit golang-vcs-snapshot systemd user
|
||||||
|
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
EGO_PN="github.com/hashicorp/consul"
|
||||||
|
DESCRIPTION="A tool for service discovery, monitoring and configuration"
|
||||||
|
HOMEPAGE="http://www.consul.io"
|
||||||
|
SRC_URI="https://github.com/hashicorp/consul/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
SLOT="0"
|
||||||
|
LICENSE="MPL-2.0"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
DEPEND="dev-go/gox
|
||||||
|
>=dev-lang/go-1.9:=
|
||||||
|
>=dev-go/go-tools-0_pre20160121"
|
||||||
|
RDEPEND=""
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
enewgroup consul
|
||||||
|
enewuser consul -1 -1 /var/lib/${PN} consul
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
sed -e 's:^\(GIT_DESCRIBE=\).*:\1v'${PV}':' \
|
||||||
|
-e 's:^\(GIT_COMMIT=\).*:\1:' \
|
||||||
|
-e 's:^\(GIT_DIRTY=\).*:\1:' \
|
||||||
|
-e 's:go get -u -v $(GOTOOLS)::' \
|
||||||
|
-e 's:vendorfmt dev-build:dev-build:' \
|
||||||
|
-i "${S}/src/${EGO_PN}/GNUmakefile" || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
# The dev target sets causes build.sh to set appropriate XC_OS
|
||||||
|
# and XC_ARCH, and skips generation of an unused zip file,
|
||||||
|
# avoiding a dependency on app-arch/zip.
|
||||||
|
GOPATH="${S}" \
|
||||||
|
emake -C "${S}/src/${EGO_PN}" dev
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
local x
|
||||||
|
|
||||||
|
dobin "${S}/bin/${PN}"
|
||||||
|
|
||||||
|
keepdir /etc/consul.d
|
||||||
|
insinto /etc/consul.d
|
||||||
|
doins "${FILESDIR}/"*.json.example
|
||||||
|
|
||||||
|
for x in /var/{lib,log}/${PN}; do
|
||||||
|
keepdir "${x}"
|
||||||
|
fowners consul:consul "${x}"
|
||||||
|
done
|
||||||
|
|
||||||
|
newinitd "${FILESDIR}/consul.initd" "${PN}"
|
||||||
|
newconfd "${FILESDIR}/consul.confd" "${PN}"
|
||||||
|
insinto /etc/logrotate.d
|
||||||
|
newins "${FILESDIR}/${PN}.logrotated" "${PN}"
|
||||||
|
systemd_dounit "${FILESDIR}/consul.service"
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST filebeat-5.5.2.tar.gz 18075191 SHA256 39e792324a35fe84ef9a63cd5324252bc71d1c665188e8d597e12ca170cfde7a SHA512 ad92b41a9ceaad6c6e6fc80d0adccd7fe03a7056d121484bcf35c6a46b2061a5ef6d32121dd12d59b51e7678769da5c405b1d549fa130631ae3f1989b78fba48 WHIRLPOOL 46d182bd339abd26f3c4cf3f8d3a716180fc00147458f571eec34aefcaa67d9e88a561988e37c47083528024e4e0559b255c7a17efa43e0e4b21b653a575f7fd
|
DIST filebeat-5.5.2.tar.gz 18075191 SHA256 39e792324a35fe84ef9a63cd5324252bc71d1c665188e8d597e12ca170cfde7a SHA512 ad92b41a9ceaad6c6e6fc80d0adccd7fe03a7056d121484bcf35c6a46b2061a5ef6d32121dd12d59b51e7678769da5c405b1d549fa130631ae3f1989b78fba48 WHIRLPOOL 46d182bd339abd26f3c4cf3f8d3a716180fc00147458f571eec34aefcaa67d9e88a561988e37c47083528024e4e0559b255c7a17efa43e0e4b21b653a575f7fd
|
||||||
|
DIST filebeat-5.6.1.tar.gz 18142175 SHA256 3534ef7a3833ae85aef53a12580520b5d85feaa1408289ea37a6ebff5a2fda0a SHA512 842fd28012455ddacffb66db719e1df6fe987c844899d34428d65bca2ec4e1b49a801a976f546b4380da077426250109c5b1c84188a44c14c98f054165b27123 WHIRLPOOL 1d11e08572e51c526cd0443b3fe3ce691dbcd8bc5463a531d89d2685df157f61e28ca645c37f273e7f5b7c69984f5152de310a140567cd757b70a68d0bc578aa
|
||||||
|
@ -0,0 +1,69 @@
|
|||||||
|
# Copyright 1999-2017 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
DESCRIPTION="Lightweight log shipper for Logstash and Elasticsearch"
|
||||||
|
HOMEPAGE="https://www.elastic.co/products/beats"
|
||||||
|
SRC_URI="https://github.com/elastic/beats/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
|
||||||
|
DEPEND=">=dev-lang/go-1.8.3"
|
||||||
|
RDEPEND="!app-admin/filebeat-bin"
|
||||||
|
|
||||||
|
ELASTIC="${WORKDIR}/src/github.com/elastic"
|
||||||
|
BEATS="${ELASTIC}/beats"
|
||||||
|
S="${BEATS}"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
mkdir -p "${ELASTIC}" || die
|
||||||
|
unpack ${P}.tar.gz
|
||||||
|
mv beats-${PV} "${BEATS}" || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
cd ${BEATS}/filebeat || die
|
||||||
|
GOPATH="${WORKDIR}" emake
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
cd ${BEATS}/filebeat || die
|
||||||
|
GOPATH="${WORKDIR}" emake check
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
keepdir /var/{lib,log}/${PN}
|
||||||
|
|
||||||
|
fperms 0750 /var/{lib,log}/${PN}
|
||||||
|
|
||||||
|
newconfd "${FILESDIR}/${PN}.confd" ${PN}
|
||||||
|
newinitd "${FILESDIR}/${PN}.initd" ${PN}
|
||||||
|
|
||||||
|
insinto "/usr/share/doc/${PF}/examples"
|
||||||
|
doins ${PN}/{filebeat.yml,filebeat.full.yml}
|
||||||
|
|
||||||
|
insinto "/etc/${PN}"
|
||||||
|
doins ${PN}/{filebeat.template.json,filebeat.template-es2x.json,filebeat.template-es6x.json}
|
||||||
|
|
||||||
|
exeinto "/usr/share/${PN}"
|
||||||
|
doexe libbeat/scripts/migrate_beat_config_1_x_to_5_0.py
|
||||||
|
|
||||||
|
dobin filebeat/filebeat
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
if [[ -n "${REPLACING_VERSIONS}" ]]; then
|
||||||
|
elog "Please read the migration guide at:"
|
||||||
|
elog "https://www.elastic.co/guide/en/beats/libbeat/5.0/upgrading.html"
|
||||||
|
elog ""
|
||||||
|
elog "The migration script:"
|
||||||
|
elog "${EROOT%/}/usr/share/filebeat/migrate_beat_config_1_x_to_5_0.py"
|
||||||
|
elog ""
|
||||||
|
fi
|
||||||
|
|
||||||
|
elog "Example configurations:"
|
||||||
|
elog "${EROOT%/}/usr/share/doc/${PF}/examples"
|
||||||
|
}
|
@ -0,0 +1,66 @@
|
|||||||
|
# Copyright 1999-2017 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
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="https://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 libressl"
|
||||||
|
|
||||||
|
# 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:=
|
||||||
|
net-libs/libpcap
|
||||||
|
sasl? ( dev-libs/cyrus-sasl )
|
||||||
|
ssl? (
|
||||||
|
!libressl? ( dev-libs/openssl:0= )
|
||||||
|
libressl? ( dev-libs/libressl:0= )
|
||||||
|
)"
|
||||||
|
|
||||||
|
S=${WORKDIR}/${MY_P}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# do not substitute version because it uses git
|
||||||
|
sed -i '/^sed/,+3d' build.sh || die
|
||||||
|
sed -i '/^mv/d' build.sh || die
|
||||||
|
|
||||||
|
# build pie to avoid text relocations wrt #582854
|
||||||
|
sed -i 's/go build/go build -buildmode=pie/g' build.sh || die
|
||||||
|
|
||||||
|
# ensure we use bash wrt #582906
|
||||||
|
sed -i 's@/bin/sh@/bin/bash@g' build.sh || die
|
||||||
|
|
||||||
|
default
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
declare -a myconf
|
||||||
|
|
||||||
|
if use sasl; then
|
||||||
|
myconf+=(sasl)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use ssl; then
|
||||||
|
myconf+=(ssl)
|
||||||
|
fi
|
||||||
|
|
||||||
|
./build.sh ${myconf[@]} || die "build failed"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin bin/*
|
||||||
|
}
|
@ -1,4 +1 @@
|
|||||||
DIST qtpass-1.0.5.tar.gz 636461 SHA256 0c07bd1eb9e5336c0225f891e5b9a9df103f218619cf7ec6311edf654e8db281 SHA512 e1b63f1058dc9c194f06376d52acbbb8594d429f4d7fe4ba27baed2cafe10b1c36137b3e33626c1bf33c7f3e1444e6fbe48fc66a83e0f7cd82f5b47f0193d178 WHIRLPOOL acb914d89bcd667343f648e38bb9eb316ebbf0b01f75686d3a7694e82eedd3e3f52ffc99f530bbe3ccbb6089ced727796924fcf48a94c071a3e20b27141b28df
|
|
||||||
DIST qtpass-1.1.0.tar.gz 671525 SHA256 60b458062f54184057e55dbd9c93958a8bf845244ffd70b9cb31bf58697f0dc6 SHA512 da7439f2c18c46cbf4df15538210051ad60d036334e62a1c4f62d6c1ccff8e4327fb0c6030ed89f78ffd87b615fcaae8ed5552099ff8663bff713990216132ae WHIRLPOOL 4288ee76762c41a81fece4b72bacb1560b28d5681ce288f5e9b5fd9257fd778e4038fc0c75951bdb2a967afdf6ac66035fc716606b1ad6148834fc4ca81dfe45
|
|
||||||
DIST qtpass-1.1.5.tar.gz 329958 SHA256 3ab26fdcaec72672557552e309bf3d8f3b8b9e3e0e9379b8c3343a7351597200 SHA512 fa1ab73c0de9d00581c2b8920e50f2110a2a9e4c3552c0468762cdfeaf982702126e3c727e029e82c61e6e44d01a7281b8acb5c26d5299f4ef25cd16a20ca1c0 WHIRLPOOL dc2f73b341735de0a9562ec298eedf1fc8543e0789420ef891da4237c01ed6795cd861af5700120da951b29158aa32429279789cc1796e84b64141fc6535afb6
|
|
||||||
DIST qtpass-1.1.6.tar.gz 325329 SHA256 d24d95de129ce716b9b0fde6114407f860ce8c77106bd0ee6a12e8e4e0deb42b SHA512 64d712a33df97b04ab1a9d5472aa7fa567e38e31ff7ba297e567d087a3f32b1c59097b339cdd4f568efc2bce16b93f2d2316e94d2605b6abac299d7cf7d0c3df WHIRLPOOL 931380ddc0c245cf217ce4b96b57ff4960edd504e12273e7567c1128e4c3512993dc2517d7fc10d3c059abf79843fc48538eb036ff802b46ee7ba6acdee35fb2
|
DIST qtpass-1.1.6.tar.gz 325329 SHA256 d24d95de129ce716b9b0fde6114407f860ce8c77106bd0ee6a12e8e4e0deb42b SHA512 64d712a33df97b04ab1a9d5472aa7fa567e38e31ff7ba297e567d087a3f32b1c59097b339cdd4f568efc2bce16b93f2d2316e94d2605b6abac299d7cf7d0c3df WHIRLPOOL 931380ddc0c245cf217ce4b96b57ff4960edd504e12273e7567c1128e4c3512993dc2517d7fc10d3c059abf79843fc48538eb036ff802b46ee7ba6acdee35fb2
|
||||||
|
@ -1,61 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
inherit qmake-utils
|
|
||||||
|
|
||||||
DESCRIPTION="multi-platform GUI for pass, the standard unix password manager"
|
|
||||||
HOMEPAGE="https://qtpass.org/"
|
|
||||||
SRC_URI="https://github.com/IJHack/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~x86 ~amd64"
|
|
||||||
IUSE="+qt5"
|
|
||||||
DOCS=( FAQ.md README.md CONTRIBUTING.md )
|
|
||||||
|
|
||||||
RDEPEND="qt5? (
|
|
||||||
dev-qt/qtcore:5
|
|
||||||
dev-qt/qtgui:5[xcb]
|
|
||||||
dev-qt/qtwidgets:5
|
|
||||||
dev-qt/qtnetwork:5
|
|
||||||
)
|
|
||||||
!qt5? (
|
|
||||||
dev-qt/qtcore:4
|
|
||||||
dev-qt/qtgui:4
|
|
||||||
)
|
|
||||||
app-admin/pass"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
qt5? ( dev-qt/linguist-tools:5 )"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# Modify install path
|
|
||||||
sed -i "s/target.path = \$\$PREFIX/target.path = \$\$PREFIX\/bin/" \
|
|
||||||
${PN}.pro \
|
|
||||||
|| die "sed failed to modify install path for ${PN}.pro"
|
|
||||||
|
|
||||||
# Backport segfault fix https://github.com/IJHack/qtpass/issues/122
|
|
||||||
# (ToDo: remove this in 1.0.6)
|
|
||||||
sed -e "/QtPass = NULL;/{n;d};/startupPhase = true;/a autoclearTimer = NULL;" \
|
|
||||||
-i mainwindow.cpp || die "sed failed mainwindow.cpp"
|
|
||||||
|
|
||||||
epatch_user
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
if use qt5 ; then
|
|
||||||
eqmake5 PREFIX="${D}"/usr
|
|
||||||
else
|
|
||||||
eqmake4 PREFIX="${D}"/usr
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
|
|
||||||
insinto /usr/share/applications
|
|
||||||
doins "${PN}.desktop"
|
|
||||||
|
|
||||||
newicon artwork/icon.svg "${PN}-icon.svg"
|
|
||||||
}
|
|
@ -1,61 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
inherit qmake-utils
|
|
||||||
|
|
||||||
DESCRIPTION="multi-platform GUI for pass, the standard unix password manager"
|
|
||||||
HOMEPAGE="https://qtpass.org/"
|
|
||||||
SRC_URI="https://github.com/IJHack/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~x86 ~amd64"
|
|
||||||
IUSE="+qt5"
|
|
||||||
DOCS=( FAQ.md README.md CONTRIBUTING.md )
|
|
||||||
|
|
||||||
RDEPEND="qt5? (
|
|
||||||
dev-qt/qtcore:5
|
|
||||||
dev-qt/qtgui:5[xcb]
|
|
||||||
dev-qt/qtwidgets:5
|
|
||||||
dev-qt/qtnetwork:5
|
|
||||||
)
|
|
||||||
!qt5? (
|
|
||||||
dev-qt/qtcore:4
|
|
||||||
dev-qt/qtgui:4
|
|
||||||
)
|
|
||||||
app-admin/pass
|
|
||||||
net-misc/x11-ssh-askpass"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
qt5? (
|
|
||||||
dev-qt/linguist-tools:5
|
|
||||||
dev-qt/qtsvg:5
|
|
||||||
)
|
|
||||||
!qt5? ( dev-qt/qtsvg:4 )"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# Modify install path
|
|
||||||
sed -i "s/target.path = \$\$PREFIX/target.path = \$\$PREFIX\/bin/" \
|
|
||||||
${PN}.pro \
|
|
||||||
|| die "sed failed to modify install path for ${PN}.pro"
|
|
||||||
|
|
||||||
epatch_user
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
if use qt5 ; then
|
|
||||||
eqmake5 PREFIX="${D}"/usr
|
|
||||||
else
|
|
||||||
eqmake4 PREFIX="${D}"/usr
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
|
|
||||||
insinto /usr/share/applications
|
|
||||||
doins "${PN}.desktop"
|
|
||||||
|
|
||||||
newicon artwork/icon.svg "${PN}-icon.svg"
|
|
||||||
}
|
|
@ -1,44 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
MY_P="QtPass-${PV}"
|
|
||||||
|
|
||||||
inherit qmake-utils
|
|
||||||
|
|
||||||
DESCRIPTION="multi-platform GUI for pass, the standard unix password manager"
|
|
||||||
HOMEPAGE="https://qtpass.org/"
|
|
||||||
SRC_URI="https://github.com/IJHack/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~x86 ~amd64"
|
|
||||||
IUSE=""
|
|
||||||
DOCS=( FAQ.md README.md CONTRIBUTING.md )
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
|
||||||
|
|
||||||
RDEPEND="dev-qt/qtcore:5
|
|
||||||
dev-qt/qtgui:5[xcb]
|
|
||||||
dev-qt/qtwidgets:5
|
|
||||||
dev-qt/qtnetwork:5
|
|
||||||
app-admin/pass
|
|
||||||
net-misc/x11-ssh-askpass"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
dev-qt/linguist-tools:5
|
|
||||||
"
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
eqmake5 PREFIX="${D}"/usr
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
|
|
||||||
doman ${PN}.1
|
|
||||||
|
|
||||||
insinto /usr/share/applications
|
|
||||||
doins "${PN}.desktop"
|
|
||||||
|
|
||||||
newicon artwork/icon.svg "${PN}-icon.svg"
|
|
||||||
}
|
|
@ -0,0 +1,21 @@
|
|||||||
|
From 2e3812d2c1d1f54861fb79f5c2b0197de96a00a3 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Arvin Schnell <aschnell@suse.de>
|
||||||
|
Date: Wed, 6 Sep 2017 09:49:38 +0200
|
||||||
|
Subject: [PATCH] - added include statement
|
||||||
|
|
||||||
|
---
|
||||||
|
client/cleanup.cc | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/client/cleanup.cc b/client/cleanup.cc
|
||||||
|
index 0dbfc03..d7f2f68 100644
|
||||||
|
--- a/client/cleanup.cc
|
||||||
|
+++ b/client/cleanup.cc
|
||||||
|
@@ -21,6 +21,7 @@
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
+#include <iostream>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
|
#include "dbus/DBusMessage.h"
|
@ -1,5 +1,5 @@
|
|||||||
DIST certbot-0.15.0.tar.gz 942788 SHA256 87d306b1c013b472b8f548b38ccc476c125816435bb3b99e932fed09ac777296 SHA512 e884b34985a1128ce94d6b2be77af6ee86ded8b870e066f3f4bc22f78501f3f0a51060edcf75a11cd31dd525388adb8ccc4e2da0068b5b75be131d0fb0ca6844 WHIRLPOOL 01b172e8c7ac5d3678ee608b36d93f23943bf17f1e9c593cc1af3febcf0549b03961e69e537f099643dd9ee268497f76c2c18d8fa7a1d45753bc50e670375317
|
DIST certbot-0.15.0.tar.gz 942788 SHA256 87d306b1c013b472b8f548b38ccc476c125816435bb3b99e932fed09ac777296 SHA512 e884b34985a1128ce94d6b2be77af6ee86ded8b870e066f3f4bc22f78501f3f0a51060edcf75a11cd31dd525388adb8ccc4e2da0068b5b75be131d0fb0ca6844 WHIRLPOOL 01b172e8c7ac5d3678ee608b36d93f23943bf17f1e9c593cc1af3febcf0549b03961e69e537f099643dd9ee268497f76c2c18d8fa7a1d45753bc50e670375317
|
||||||
DIST certbot-0.16.0.tar.gz 992700 SHA256 9abac759d7d72b520693ff806479e87609059a1546bb6ea26416267ebeedd25b SHA512 4cb6ec06c6ec71cd6886a716100f269de3922f17a582c8c20ec40327b65e1c16347a5b33d44131e56a7667233ebba88ff36a4e854beedd13e848897ba09a7e64 WHIRLPOOL 34dae0b20d472b4020986d0768ea6757c977fa4626666a9f81711007c051e76f9ad60f5a3bc77c768975e71a791f20e5ca2bb6f2fc41d809ebe2541129c975ef
|
DIST certbot-0.16.0.tar.gz 992700 SHA256 9abac759d7d72b520693ff806479e87609059a1546bb6ea26416267ebeedd25b SHA512 4cb6ec06c6ec71cd6886a716100f269de3922f17a582c8c20ec40327b65e1c16347a5b33d44131e56a7667233ebba88ff36a4e854beedd13e848897ba09a7e64 WHIRLPOOL 34dae0b20d472b4020986d0768ea6757c977fa4626666a9f81711007c051e76f9ad60f5a3bc77c768975e71a791f20e5ca2bb6f2fc41d809ebe2541129c975ef
|
||||||
DIST certbot-0.17.0.tar.gz 1036099 SHA256 ed4334dce166bf38ecc7218449efda3798d62c7e2934a71702c0dc3d78eccdd1 SHA512 57fa830d19173eacdbb17242a3c446d9414f02e09fab6ccd41c82b15156bc103ec358ff3d515e94881fcf6438f6acfe449eee9bb3108df41f7b8f2395500b549 WHIRLPOOL cbfffc3866ffed3e0c702ac686768e879c7f1306a62dc050aab05e5a207b4f77a4acae9ca8f3ce973a6691d98838a488ab6335aa0692dd2b28a99c8aecff232d
|
DIST certbot-0.17.0.tar.gz 1036099 SHA256 ed4334dce166bf38ecc7218449efda3798d62c7e2934a71702c0dc3d78eccdd1 SHA512 57fa830d19173eacdbb17242a3c446d9414f02e09fab6ccd41c82b15156bc103ec358ff3d515e94881fcf6438f6acfe449eee9bb3108df41f7b8f2395500b549 WHIRLPOOL cbfffc3866ffed3e0c702ac686768e879c7f1306a62dc050aab05e5a207b4f77a4acae9ca8f3ce973a6691d98838a488ab6335aa0692dd2b28a99c8aecff232d
|
||||||
DIST certbot-0.18.1.tar.gz 1043793 SHA256 c2d5342d1dffc5506ee02e06a7288d4ce5fb6f94d6b1b2cd8e0558c3de7dcff4 SHA512 62f9a247075d007f4b905646fbd63228303bfa7dd8c13c09b5f5205c9a0adce80b2956a796d10c8963058f6cf8f3e41acbae695a61187ef691af4dbbd0e693bf WHIRLPOOL e488ffad69cdad324760a203c15816eb271fd9c08690f3cb876f32f3e2333133a29b756cf63568ea16babc48a09aa5d9da9fc9b9ebe2450580430d50a81b03f9
|
DIST certbot-0.18.2.tar.gz 1044019 SHA256 c8a94e3e2dfa8efa379912a8dc67f561cf6daf7d8e13dbb76b40a38cfb40c08d SHA512 30dea063cf8d4bd714a40c1a82a7f4aab51e3a7d4de0d5f9a923f95badb2881562562c4a198da6a4c3cd1db7f9e2d124c2def70f3a245faca0040438586bf6a4 WHIRLPOOL 79105ea9d54fdd42dbb4327dd3afa7beb80e5a13eef0a1d3236f5150b42281b299a06391a93372c80a04f0bd962565522e3ddd239cd4d2186e32262fedf97481
|
||||||
DIST letsencrypt-0.1.0.tar.gz 524821 SHA256 1c1ac7b41e5e0fc0e41a7ef159ac9147a4aafff54453d57b519eb05bf52ade14 SHA512 6a786290362741ac97dcb4b59bc4cba56f3e8b5193bbc10be19086d462f76e6124259c42bac36afe9eb818f4bb9edec34f8e2a02bd8c855e3b35404f4ee81f96 WHIRLPOOL cdc41a3466de54ab8ddfeedea9935205d78383028769dcfbc876be0c2ef80c2d14f5d0e4a9c56a751163718f5ababb07848822989a060de7031ea8ebdf6424a0
|
DIST letsencrypt-0.1.0.tar.gz 524821 SHA256 1c1ac7b41e5e0fc0e41a7ef159ac9147a4aafff54453d57b519eb05bf52ade14 SHA512 6a786290362741ac97dcb4b59bc4cba56f3e8b5193bbc10be19086d462f76e6124259c42bac36afe9eb818f4bb9edec34f8e2a02bd8c855e3b35404f4ee81f96 WHIRLPOOL cdc41a3466de54ab8ddfeedea9935205d78383028769dcfbc876be0c2ef80c2d14f5d0e4a9c56a751163718f5ababb07848822989a060de7031ea8ebdf6424a0
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
DIST certbot-0.15.0.tar.gz 942788 SHA256 87d306b1c013b472b8f548b38ccc476c125816435bb3b99e932fed09ac777296 SHA512 e884b34985a1128ce94d6b2be77af6ee86ded8b870e066f3f4bc22f78501f3f0a51060edcf75a11cd31dd525388adb8ccc4e2da0068b5b75be131d0fb0ca6844 WHIRLPOOL 01b172e8c7ac5d3678ee608b36d93f23943bf17f1e9c593cc1af3febcf0549b03961e69e537f099643dd9ee268497f76c2c18d8fa7a1d45753bc50e670375317
|
DIST certbot-0.15.0.tar.gz 942788 SHA256 87d306b1c013b472b8f548b38ccc476c125816435bb3b99e932fed09ac777296 SHA512 e884b34985a1128ce94d6b2be77af6ee86ded8b870e066f3f4bc22f78501f3f0a51060edcf75a11cd31dd525388adb8ccc4e2da0068b5b75be131d0fb0ca6844 WHIRLPOOL 01b172e8c7ac5d3678ee608b36d93f23943bf17f1e9c593cc1af3febcf0549b03961e69e537f099643dd9ee268497f76c2c18d8fa7a1d45753bc50e670375317
|
||||||
DIST certbot-0.17.0.tar.gz 1036099 SHA256 ed4334dce166bf38ecc7218449efda3798d62c7e2934a71702c0dc3d78eccdd1 SHA512 57fa830d19173eacdbb17242a3c446d9414f02e09fab6ccd41c82b15156bc103ec358ff3d515e94881fcf6438f6acfe449eee9bb3108df41f7b8f2395500b549 WHIRLPOOL cbfffc3866ffed3e0c702ac686768e879c7f1306a62dc050aab05e5a207b4f77a4acae9ca8f3ce973a6691d98838a488ab6335aa0692dd2b28a99c8aecff232d
|
DIST certbot-0.17.0.tar.gz 1036099 SHA256 ed4334dce166bf38ecc7218449efda3798d62c7e2934a71702c0dc3d78eccdd1 SHA512 57fa830d19173eacdbb17242a3c446d9414f02e09fab6ccd41c82b15156bc103ec358ff3d515e94881fcf6438f6acfe449eee9bb3108df41f7b8f2395500b549 WHIRLPOOL cbfffc3866ffed3e0c702ac686768e879c7f1306a62dc050aab05e5a207b4f77a4acae9ca8f3ce973a6691d98838a488ab6335aa0692dd2b28a99c8aecff232d
|
||||||
DIST certbot-0.18.1.tar.gz 1043793 SHA256 c2d5342d1dffc5506ee02e06a7288d4ce5fb6f94d6b1b2cd8e0558c3de7dcff4 SHA512 62f9a247075d007f4b905646fbd63228303bfa7dd8c13c09b5f5205c9a0adce80b2956a796d10c8963058f6cf8f3e41acbae695a61187ef691af4dbbd0e693bf WHIRLPOOL e488ffad69cdad324760a203c15816eb271fd9c08690f3cb876f32f3e2333133a29b756cf63568ea16babc48a09aa5d9da9fc9b9ebe2450580430d50a81b03f9
|
DIST certbot-0.18.2.tar.gz 1044019 SHA256 c8a94e3e2dfa8efa379912a8dc67f561cf6daf7d8e13dbb76b40a38cfb40c08d SHA512 30dea063cf8d4bd714a40c1a82a7f4aab51e3a7d4de0d5f9a923f95badb2881562562c4a198da6a4c3cd1db7f9e2d124c2def70f3a245faca0040438586bf6a4 WHIRLPOOL 79105ea9d54fdd42dbb4327dd3afa7beb80e5a13eef0a1d3236f5150b42281b299a06391a93372c80a04f0bd962565522e3ddd239cd4d2186e32262fedf97481
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
DIST certbot-0.15.0.tar.gz 942788 SHA256 87d306b1c013b472b8f548b38ccc476c125816435bb3b99e932fed09ac777296 SHA512 e884b34985a1128ce94d6b2be77af6ee86ded8b870e066f3f4bc22f78501f3f0a51060edcf75a11cd31dd525388adb8ccc4e2da0068b5b75be131d0fb0ca6844 WHIRLPOOL 01b172e8c7ac5d3678ee608b36d93f23943bf17f1e9c593cc1af3febcf0549b03961e69e537f099643dd9ee268497f76c2c18d8fa7a1d45753bc50e670375317
|
DIST certbot-0.15.0.tar.gz 942788 SHA256 87d306b1c013b472b8f548b38ccc476c125816435bb3b99e932fed09ac777296 SHA512 e884b34985a1128ce94d6b2be77af6ee86ded8b870e066f3f4bc22f78501f3f0a51060edcf75a11cd31dd525388adb8ccc4e2da0068b5b75be131d0fb0ca6844 WHIRLPOOL 01b172e8c7ac5d3678ee608b36d93f23943bf17f1e9c593cc1af3febcf0549b03961e69e537f099643dd9ee268497f76c2c18d8fa7a1d45753bc50e670375317
|
||||||
DIST certbot-0.17.0.tar.gz 1036099 SHA256 ed4334dce166bf38ecc7218449efda3798d62c7e2934a71702c0dc3d78eccdd1 SHA512 57fa830d19173eacdbb17242a3c446d9414f02e09fab6ccd41c82b15156bc103ec358ff3d515e94881fcf6438f6acfe449eee9bb3108df41f7b8f2395500b549 WHIRLPOOL cbfffc3866ffed3e0c702ac686768e879c7f1306a62dc050aab05e5a207b4f77a4acae9ca8f3ce973a6691d98838a488ab6335aa0692dd2b28a99c8aecff232d
|
DIST certbot-0.17.0.tar.gz 1036099 SHA256 ed4334dce166bf38ecc7218449efda3798d62c7e2934a71702c0dc3d78eccdd1 SHA512 57fa830d19173eacdbb17242a3c446d9414f02e09fab6ccd41c82b15156bc103ec358ff3d515e94881fcf6438f6acfe449eee9bb3108df41f7b8f2395500b549 WHIRLPOOL cbfffc3866ffed3e0c702ac686768e879c7f1306a62dc050aab05e5a207b4f77a4acae9ca8f3ce973a6691d98838a488ab6335aa0692dd2b28a99c8aecff232d
|
||||||
DIST certbot-0.18.1.tar.gz 1043793 SHA256 c2d5342d1dffc5506ee02e06a7288d4ce5fb6f94d6b1b2cd8e0558c3de7dcff4 SHA512 62f9a247075d007f4b905646fbd63228303bfa7dd8c13c09b5f5205c9a0adce80b2956a796d10c8963058f6cf8f3e41acbae695a61187ef691af4dbbd0e693bf WHIRLPOOL e488ffad69cdad324760a203c15816eb271fd9c08690f3cb876f32f3e2333133a29b756cf63568ea16babc48a09aa5d9da9fc9b9ebe2450580430d50a81b03f9
|
DIST certbot-0.18.2.tar.gz 1044019 SHA256 c8a94e3e2dfa8efa379912a8dc67f561cf6daf7d8e13dbb76b40a38cfb40c08d SHA512 30dea063cf8d4bd714a40c1a82a7f4aab51e3a7d4de0d5f9a923f95badb2881562562c4a198da6a4c3cd1db7f9e2d124c2def70f3a245faca0040438586bf6a4 WHIRLPOOL 79105ea9d54fdd42dbb4327dd3afa7beb80e5a13eef0a1d3236f5150b42281b299a06391a93372c80a04f0bd962565522e3ddd239cd4d2186e32262fedf97481
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
DIST certbot-0.15.0.tar.gz 942788 SHA256 87d306b1c013b472b8f548b38ccc476c125816435bb3b99e932fed09ac777296 SHA512 e884b34985a1128ce94d6b2be77af6ee86ded8b870e066f3f4bc22f78501f3f0a51060edcf75a11cd31dd525388adb8ccc4e2da0068b5b75be131d0fb0ca6844 WHIRLPOOL 01b172e8c7ac5d3678ee608b36d93f23943bf17f1e9c593cc1af3febcf0549b03961e69e537f099643dd9ee268497f76c2c18d8fa7a1d45753bc50e670375317
|
DIST certbot-0.15.0.tar.gz 942788 SHA256 87d306b1c013b472b8f548b38ccc476c125816435bb3b99e932fed09ac777296 SHA512 e884b34985a1128ce94d6b2be77af6ee86ded8b870e066f3f4bc22f78501f3f0a51060edcf75a11cd31dd525388adb8ccc4e2da0068b5b75be131d0fb0ca6844 WHIRLPOOL 01b172e8c7ac5d3678ee608b36d93f23943bf17f1e9c593cc1af3febcf0549b03961e69e537f099643dd9ee268497f76c2c18d8fa7a1d45753bc50e670375317
|
||||||
DIST certbot-0.17.0.tar.gz 1036099 SHA256 ed4334dce166bf38ecc7218449efda3798d62c7e2934a71702c0dc3d78eccdd1 SHA512 57fa830d19173eacdbb17242a3c446d9414f02e09fab6ccd41c82b15156bc103ec358ff3d515e94881fcf6438f6acfe449eee9bb3108df41f7b8f2395500b549 WHIRLPOOL cbfffc3866ffed3e0c702ac686768e879c7f1306a62dc050aab05e5a207b4f77a4acae9ca8f3ce973a6691d98838a488ab6335aa0692dd2b28a99c8aecff232d
|
DIST certbot-0.17.0.tar.gz 1036099 SHA256 ed4334dce166bf38ecc7218449efda3798d62c7e2934a71702c0dc3d78eccdd1 SHA512 57fa830d19173eacdbb17242a3c446d9414f02e09fab6ccd41c82b15156bc103ec358ff3d515e94881fcf6438f6acfe449eee9bb3108df41f7b8f2395500b549 WHIRLPOOL cbfffc3866ffed3e0c702ac686768e879c7f1306a62dc050aab05e5a207b4f77a4acae9ca8f3ce973a6691d98838a488ab6335aa0692dd2b28a99c8aecff232d
|
||||||
DIST certbot-0.18.1.tar.gz 1043793 SHA256 c2d5342d1dffc5506ee02e06a7288d4ce5fb6f94d6b1b2cd8e0558c3de7dcff4 SHA512 62f9a247075d007f4b905646fbd63228303bfa7dd8c13c09b5f5205c9a0adce80b2956a796d10c8963058f6cf8f3e41acbae695a61187ef691af4dbbd0e693bf WHIRLPOOL e488ffad69cdad324760a203c15816eb271fd9c08690f3cb876f32f3e2333133a29b756cf63568ea16babc48a09aa5d9da9fc9b9ebe2450580430d50a81b03f9
|
DIST certbot-0.18.2.tar.gz 1044019 SHA256 c8a94e3e2dfa8efa379912a8dc67f561cf6daf7d8e13dbb76b40a38cfb40c08d SHA512 30dea063cf8d4bd714a40c1a82a7f4aab51e3a7d4de0d5f9a923f95badb2881562562c4a198da6a4c3cd1db7f9e2d124c2def70f3a245faca0040438586bf6a4 WHIRLPOOL 79105ea9d54fdd42dbb4327dd3afa7beb80e5a13eef0a1d3236f5150b42281b299a06391a93372c80a04f0bd962565522e3ddd239cd4d2186e32262fedf97481
|
||||||
|
@ -1,5 +1 @@
|
|||||||
DIST fox-1.6.49.tar.gz 4383152 SHA256 3679ecd23064958259fbef5898aabb048d63b2dcb796de1d8801fe0b51e5a90e SHA512 cd7dd5fd26bcdde6ed69d547e2b08582f0e88b66b6f1bac9b5cd2279b543edbf5b9a63cc2ed05f1a1fd7e7309ede96404cf7a5d2d8eb8763dc0fb41d613b0ee8 WHIRLPOOL 1592d2560a7967c491dcfeda40e66a45d2811424e222c5f1e768b28c8ce147d7815f46d22006ac9809b967d0c825b7828aad206ab55bcb80cae064f646fd3608
|
|
||||||
DIST fox-1.6.50.tar.gz 4381855 SHA256 342c751d2a7edab136ad26cb4483329da3c16c7abf2f283f318d666ef12d0887 SHA512 195751d223e9af7d76a3bd3192ae7566a129cfe254f0ba3035b4f7e189c68b43daa8276edad95ebf2b1b403b6212a755000eebf1716a11bb7f06845fde4aceae WHIRLPOOL e1b0d855f5b2105c3739f64dd4aac5388450cc9fa36f1739e2a917e6d7bec4ab5273f2d227bb14b3db78b6a58d0088d2bfff9d8cf37c47b33d1f8e7257d282c9
|
|
||||||
DIST fox-1.7.49.tar.gz 5336321 SHA256 2435c56cde3ba6617c638af4f3bac39e8f4d5dd5a5c6d0805d274c7ba05c520c SHA512 da6c3478370f1e72091675e49f8458a6722eca4735bf89052b2b7ef02f4e74ee41f10c9fcc39a24a1571dd0bb1cdf779e9dea5bf15be20722ca783c9d59eb6e9 WHIRLPOOL 53ad3d34e57507702fc2ac9bd7b446021a99e3dff5b337cda090a670b06d4733abce2bbca88a7586e8af2d00f16ee84b0bd3c42f66fd6e430cc6d342bb76b1ff
|
|
||||||
DIST fox-1.7.53.tar.gz 5366794 SHA256 2cde33d1e72c731ff2f31a8d55769536c5494376f8922833ba57b3f9c8f37340 SHA512 835117497e48fe66790be6e985bb8ef80ae1b34966585355b0d72f907863610de9d89792062ae91297488f0e24e77c08102afe253a59e67ca65a071b2a5890c4 WHIRLPOOL 508d25ba996aa5ea8be7e43b0771df32af2ea04bb37d84a7dc80362bc685032ac6f42d0c3b7eb36a4a9408a75c68bc927c00b1cb50a36375195b741fca6c0e5f
|
|
||||||
DIST fox-1.7.54.tar.gz 5384000 SHA256 c6b749b1392d13e60b20525ed2e2107b40b4d25e757b2ee1e3fb96f59db9f053 SHA512 cf14a09f9a6a812ac87839a5df8fd68f693e59050695e8da5dbfe018676f29bc263e4f9208dc06419068e4140b826a0dcf70a8925fec379edf3e4d0d0b693795 WHIRLPOOL bb2829e16921e9171c6dd7f24be76803485c7f884f16c8e45f4adbbe91b0128a0024617a6f35c705149aeac921f891042605cff3499c200ba916de114547fca3
|
DIST fox-1.7.54.tar.gz 5384000 SHA256 c6b749b1392d13e60b20525ed2e2107b40b4d25e757b2ee1e3fb96f59db9f053 SHA512 cf14a09f9a6a812ac87839a5df8fd68f693e59050695e8da5dbfe018676f29bc263e4f9208dc06419068e4140b826a0dcf70a8925fec379edf3e4d0d0b693795 WHIRLPOOL bb2829e16921e9171c6dd7f24be76803485c7f884f16c8e45f4adbbe91b0128a0024617a6f35c705149aeac921f891042605cff3499c200ba916de114547fca3
|
||||||
|
@ -1,17 +0,0 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit fox
|
|
||||||
|
|
||||||
DESCRIPTION="Text editor based on the FOX Toolkit"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha amd64 hppa ppc ppc64 sparc x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND="x11-libs/fox:1.6"
|
|
||||||
|
|
||||||
RDEPEND="${DEPEND}"
|
|
@ -1,17 +0,0 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit fox
|
|
||||||
|
|
||||||
DESCRIPTION="Text editor based on the FOX Toolkit"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND="x11-libs/fox:1.6"
|
|
||||||
|
|
||||||
RDEPEND="${DEPEND}"
|
|
@ -1,18 +0,0 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
inherit fox
|
|
||||||
|
|
||||||
DESCRIPTION="Text editor based on the FOX Toolkit"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha amd64 ~hppa ppc ~ppc64 ~sparc x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND="~x11-libs/fox-${PV}
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libSM"
|
|
||||||
RDEPEND="${DEPEND}"
|
|
@ -1,18 +0,0 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
inherit fox
|
|
||||||
|
|
||||||
DESCRIPTION="Text editor based on the FOX Toolkit"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND="~x11-libs/fox-${PV}
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libSM"
|
|
||||||
RDEPEND="${DEPEND}"
|
|
@ -1,2 +1,3 @@
|
|||||||
DIST diskimage-builder-1.28.0.tar.gz 267409 SHA256 2d8999a8484d27e8604d125aabcbdad648f8b601776225cfc611faf1a3b9a0e6 SHA512 ae13e29563f90a4aaa4f2bee889bca4fd662da41fcffb957ca8a4380907e5d89fbc25ecb93aeda2cb5597776b51417388e8a5e39741250d68a8f7f67239ebc7f WHIRLPOOL 7cfcefcf37fd0d5fae4fb8d3284ad3b60e53e4a2853c85625a1925c34bd4cdbee999932089f7dae81adcf699226ba1550f729a2b1b8aab4b6e54c10c7148fea1
|
DIST diskimage-builder-1.28.0.tar.gz 267409 SHA256 2d8999a8484d27e8604d125aabcbdad648f8b601776225cfc611faf1a3b9a0e6 SHA512 ae13e29563f90a4aaa4f2bee889bca4fd662da41fcffb957ca8a4380907e5d89fbc25ecb93aeda2cb5597776b51417388e8a5e39741250d68a8f7f67239ebc7f WHIRLPOOL 7cfcefcf37fd0d5fae4fb8d3284ad3b60e53e4a2853c85625a1925c34bd4cdbee999932089f7dae81adcf699226ba1550f729a2b1b8aab4b6e54c10c7148fea1
|
||||||
DIST diskimage-builder-2.8.0.tar.gz 315628 SHA256 ac93598cff826074c4a83049be0c3745b13891dc21e5e9d85fc354d99583c0e8 SHA512 9827f063ed7e4e66fb55a721f3ea81a2e6186b87000b9008a40469934b64b9380699f709956e7396c8b9f03275d195645f9e9b74d6eae4812b1b2149a884cca2 WHIRLPOOL 68a4fbc3d83ce0355d411e8f8aeb84946fba7e2a3fc47bcb211405862be3b69d3233061c4f8b41d478b23762273148acd34e2bf64596e9696a1b3cb6a81e1290
|
DIST diskimage-builder-2.8.0.tar.gz 315628 SHA256 ac93598cff826074c4a83049be0c3745b13891dc21e5e9d85fc354d99583c0e8 SHA512 9827f063ed7e4e66fb55a721f3ea81a2e6186b87000b9008a40469934b64b9380699f709956e7396c8b9f03275d195645f9e9b74d6eae4812b1b2149a884cca2 WHIRLPOOL 68a4fbc3d83ce0355d411e8f8aeb84946fba7e2a3fc47bcb211405862be3b69d3233061c4f8b41d478b23762273148acd34e2bf64596e9696a1b3cb6a81e1290
|
||||||
|
DIST diskimage-builder-2.9.0.tar.gz 319035 SHA256 d6a8fa0e4be224af8365eb6ef4ed1653026b87fedca017fafdbd86fe58bcb603 SHA512 ebaeb1d5396977d8391f7c718ff13e7b0d37aca58ff14719e2b5f17adc376e85f15f516f63c245c2374e363d4037bc358192aa87ce0515d0a69cb00ac5b616af WHIRLPOOL 3e6acbdac9e9566732144429ab42c7c03d1091c8a17bb0b877bc4bbb988f0e5b93d8739a73062dd24fb9fadb4e02a7b73f88cb959477cbc9bc8626415a646ac8
|
||||||
|
@ -0,0 +1,35 @@
|
|||||||
|
# Copyright 1999-2017 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
PYTHON_COMPAT=( python2_7 )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Golden Disk Image builder."
|
||||||
|
HOMEPAGE="http://docs.openstack.org/developer/diskimage-builder/"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
CDEPEND=">=dev-python/pbr-2.0.0[${PYTHON_USEDEP}]
|
||||||
|
!~dev-python/pbr-2.1.0[${PYTHON_USEDEP}]"
|
||||||
|
DEPEND="${CDEPEND}
|
||||||
|
dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||||
|
RDEPEND="${CDEPEND}
|
||||||
|
>=dev-python/Babel-2.3.4[${PYTHON_USEDEP}]
|
||||||
|
!~dev-python/Babel-2.4.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/networkx-1.10[${PYTHON_USEDEP}]
|
||||||
|
<dev-python/networkx-2.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pyyaml-3.10.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/flake8-2.5.4[${PYTHON_USEDEP}]
|
||||||
|
<dev-python/flake8-2.6.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/six-1.9.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/stevedore-1.20.0[${PYTHON_USEDEP}]
|
||||||
|
app-emulation/qemu
|
||||||
|
sys-block/parted
|
||||||
|
sys-fs/multipath-tools
|
||||||
|
!dev-python/dib-utils[${PYTHON_USEDEP}]"
|
@ -0,0 +1,16 @@
|
|||||||
|
--- /src/github.com/lxc/lxd/Makefile.orig 2016-07-11 23:34:40.299664675 +0000
|
||||||
|
+++ /src/github.com/lxc/lxd/Makefile 2016-07-11 23:37:00.816018727 +0000
|
||||||
|
@@ -13,13 +13,11 @@
|
||||||
|
|
||||||
|
.PHONY: default
|
||||||
|
default:
|
||||||
|
- go get -t -v -d ./...
|
||||||
|
go install -v $(TAGS) $(DEBUG) ./...
|
||||||
|
@echo "LXD built successfully"
|
||||||
|
|
||||||
|
.PHONY: client
|
||||||
|
client:
|
||||||
|
- go get -t -v -d ./...
|
||||||
|
go install -v $(TAGS) $(DEBUG) ./lxc
|
||||||
|
@echo "LXD client built successfully"
|
||||||
|
|
@ -0,0 +1,27 @@
|
|||||||
|
# Group which owns the shared socket
|
||||||
|
LXD_OPTIONS+=" --group lxd"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Enable cpu profiling into the specified file
|
||||||
|
#LXD_OPTIONS+=" --cpuprofile /tmp/lxc_cpu_profile"
|
||||||
|
|
||||||
|
# Enable memory profiling into the specified file
|
||||||
|
#LXD_OPTIONS+=" --memprofile /tmp/lxc_mem_profile"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Enables debug mode
|
||||||
|
#LXD_OPTIONS+=" --debug"
|
||||||
|
|
||||||
|
# For debugging, print a complete stack trace every n seconds
|
||||||
|
#LXD_OPTIONS+=" --print-goroutines-every 5"
|
||||||
|
|
||||||
|
# Enables verbose mode
|
||||||
|
#LXD_OPTIONS+=" -v"
|
||||||
|
|
||||||
|
# Logfile to log to
|
||||||
|
#LXD_OPTIONS+=" --logfile /var/log/lxd/lxd.log"
|
||||||
|
|
||||||
|
# Enables syslog logging
|
||||||
|
#LXD_OPTIONS+=" --syslog"
|
@ -0,0 +1,46 @@
|
|||||||
|
#!/sbin/openrc-run
|
||||||
|
# Copyright 1999-2017 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
DAEMON=/usr/sbin/lxd
|
||||||
|
PIDFILE=/run/lxd.pid
|
||||||
|
|
||||||
|
extra_commands="stopall"
|
||||||
|
|
||||||
|
depend() {
|
||||||
|
need net
|
||||||
|
use lxcfs
|
||||||
|
}
|
||||||
|
|
||||||
|
start() {
|
||||||
|
ebegin "Starting lxd service"
|
||||||
|
|
||||||
|
start-stop-daemon --start \
|
||||||
|
--pidfile ${PIDFILE} \
|
||||||
|
--exec ${DAEMON} \
|
||||||
|
--background \
|
||||||
|
--make-pidfile \
|
||||||
|
-- \
|
||||||
|
${LXD_OPTIONS}
|
||||||
|
|
||||||
|
eend $?
|
||||||
|
}
|
||||||
|
|
||||||
|
stop() {
|
||||||
|
if [ "$RC_GOINGDOWN" = "YES" ] || [ "$RC_REBOOT" = "YES" ]; then
|
||||||
|
stopall
|
||||||
|
else
|
||||||
|
ebegin "Stopping lxd service (but not containers)"
|
||||||
|
start-stop-daemon --stop --quiet -R TERM/45 -p ${PIDFILE}
|
||||||
|
eend $?
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
stopall() {
|
||||||
|
ebegin "Stopping lxd service and containers"
|
||||||
|
if "${DAEMON}" shutdown; then
|
||||||
|
/etc/init.d/lxd zap
|
||||||
|
rm -f ${PIDFILE}
|
||||||
|
fi
|
||||||
|
eend $?
|
||||||
|
}
|
@ -0,0 +1,10 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Container hypervisor based on LXC
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/sbin/lxd --group lxd
|
||||||
|
KillMode=process
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
@ -0,0 +1,204 @@
|
|||||||
|
# Copyright 1999-2017 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
DESCRIPTION="Fast, dense and secure container management"
|
||||||
|
HOMEPAGE="https://linuxcontainers.org/lxd/introduction/"
|
||||||
|
EGO_PN_PARENT="github.com/lxc"
|
||||||
|
EGO_PN="${EGO_PN_PARENT}/lxd"
|
||||||
|
|
||||||
|
# Maintained with https://github.com/hsoft/gentoo-ego-vendor-update
|
||||||
|
EGO_VENDOR=(
|
||||||
|
"github.com/dustinkirkland/golang-petname 1f4996aa8aa05ee066aaf9e3179d340b48c6da74"
|
||||||
|
"github.com/golang/protobuf 17ce1425424ab154092bbb43af630bd647f3bb0d"
|
||||||
|
"github.com/gorilla/mux bb285ea687c5c77bb6935fdb2402b121d8efcbec"
|
||||||
|
"github.com/gorilla/websocket a69d9f6de432e2c6b296a947d8a5ee88f68522cf"
|
||||||
|
"github.com/gosexy/gettext 74466a0a0c4a62fea38f44aa161d4bbfbe79dd6b"
|
||||||
|
"github.com/jessevdk/go-flags 6cf8f02b4ae8ba723ddc64dcfd403e530c06d927"
|
||||||
|
"github.com/mattn/go-colorable ad5389df28cdac544c99bd7b9161a0b5b6ca9d1b"
|
||||||
|
"github.com/mattn/go-runewidth 97311d9f7767e3d6f422ea06661bc2c7a19e8a5d"
|
||||||
|
"github.com/mattn/go-sqlite3 05548ff55570cdb9ac72ff4a25a3b5e77a6fb7e5"
|
||||||
|
"github.com/olekukonko/tablewriter be5337e7b39e64e5f91445ce7e721888dbab7387"
|
||||||
|
"github.com/pborman/uuid e790cca94e6cc75c7064b1332e63811d4aae1a53"
|
||||||
|
"github.com/stretchr/testify 890a5c3458b43e6104ff5da8dfa139d013d77544"
|
||||||
|
"github.com/syndtr/gocapability db04d3cc01c8b54962a58ec7e491717d06cfcc16"
|
||||||
|
"github.com/go-stack/stack 817915b46b97fd7bb80e8ab6b69f01a53ac3eebf"
|
||||||
|
"github.com/mattn/go-isatty fc9e8d8ef48496124e79ae0df75490096eccf6fe"
|
||||||
|
"github.com/juju/errors c7d06af17c68cd34c835053720b21f6549d9b0ee"
|
||||||
|
"golang.org/x/crypto 81e90905daefcd6fd217b62423c0908922eadb30 github.com/golang/crypto"
|
||||||
|
"golang.org/x/net 66aacef3dd8a676686c7ae3716979581e8b03c47 github.com/golang/net"
|
||||||
|
"golang.org/x/sync f52d1811a62927559de87708c8913c1650ce4f26 github.com/golang/sync"
|
||||||
|
"golang.org/x/text bd91bbf73e9a4a801adbfb97133c992678533126 github.com/golang/text"
|
||||||
|
"golang.org/x/tools 3b1faeda9afbcba128c2d794b38ffe7982141139 github.com/golang/tools"
|
||||||
|
"golang.org/x/sys 7ddbeae9ae08c6a06a59597f0c9edbc5ff2444ce github.com/golang/sys"
|
||||||
|
"gopkg.in/check.v1 20d25e2804050c1cd24a7eea1e7a6447dd0e74ec github.com/go-check/check"
|
||||||
|
"gopkg.in/flosch/pongo2.v3 5e81b817a0c48c1c57cdf1a9056cf76bdee02ca9 github.com/flosch/pongo2"
|
||||||
|
"gopkg.in/inconshreveable/log15.v2 b105bd37f74e5d9dc7b6ad7806715c7a2b83fd3f github.com/inconshreveable/log15"
|
||||||
|
"gopkg.in/lxc/go-lxc.v2 edfe59cec27b76afeb3b35c56f2948c27afac493 github.com/lxc/go-lxc"
|
||||||
|
"gopkg.in/tomb.v2 d5d1b5820637886def9eef33e03a27a9f166942c github.com/go-tomb/tomb"
|
||||||
|
"gopkg.in/yaml.v2 eb3733d160e74a9c7e442f435eb3bea458e1d19f github.com/go-yaml/yaml"
|
||||||
|
)
|
||||||
|
|
||||||
|
ARCHIVE_URI="https://${EGO_PN}/archive/${P}.tar.gz -> ${P}.tar.gz"
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
IUSE="+daemon +ipv6 nls test"
|
||||||
|
|
||||||
|
inherit bash-completion-r1 linux-info systemd user golang-vcs-snapshot
|
||||||
|
|
||||||
|
SRC_URI="${ARCHIVE_URI}
|
||||||
|
${EGO_VENDOR_URI}"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
>=dev-lang/go-1.7.1
|
||||||
|
dev-libs/protobuf
|
||||||
|
nls? ( sys-devel/gettext )
|
||||||
|
test? (
|
||||||
|
app-misc/jq
|
||||||
|
dev-db/sqlite
|
||||||
|
net-misc/curl
|
||||||
|
sys-devel/gettext
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
daemon? (
|
||||||
|
app-arch/xz-utils
|
||||||
|
>=app-emulation/lxc-2.0.7[seccomp]
|
||||||
|
net-dns/dnsmasq[dhcp,ipv6?]
|
||||||
|
net-misc/rsync[xattr]
|
||||||
|
sys-apps/iproute2[ipv6?]
|
||||||
|
sys-fs/squashfs-tools
|
||||||
|
virtual/acl
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
CONFIG_CHECK="
|
||||||
|
~BRIDGE
|
||||||
|
~DUMMY
|
||||||
|
~IP6_NF_NAT
|
||||||
|
~IP6_NF_TARGET_MASQUERADE
|
||||||
|
~IPV6
|
||||||
|
~IP_NF_NAT
|
||||||
|
~IP_NF_TARGET_MASQUERADE
|
||||||
|
~MACVLAN
|
||||||
|
~NETFILTER_XT_MATCH_COMMENT
|
||||||
|
~NET_IPGRE
|
||||||
|
~NET_IPGRE_DEMUX
|
||||||
|
~NET_IPIP
|
||||||
|
~NF_NAT_MASQUERADE_IPV4
|
||||||
|
~NF_NAT_MASQUERADE_IPV6
|
||||||
|
~VXLAN
|
||||||
|
"
|
||||||
|
|
||||||
|
ERROR_BRIDGE="BRIDGE: needed for network commands"
|
||||||
|
ERROR_DUMMY="DUMMY: needed for network commands"
|
||||||
|
ERROR_IP6_NF_NAT="IP6_NF_NAT: needed for network commands"
|
||||||
|
ERROR_IP6_NF_TARGET_MASQUERADE="IP6_NF_TARGET_MASQUERADE: needed for network commands"
|
||||||
|
ERROR_IPV6="IPV6: needed for network commands"
|
||||||
|
ERROR_IP_NF_NAT="IP_NF_NAT: needed for network commands"
|
||||||
|
ERROR_IP_NF_TARGET_MASQUERADE="IP_NF_TARGET_MASQUERADE: needed for network commands"
|
||||||
|
ERROR_MACVLAN="MACVLAN: needed for network commands"
|
||||||
|
ERROR_NETFILTER_XT_MATCH_COMMENT="NETFILTER_XT_MATCH_COMMENT: needed for network commands"
|
||||||
|
ERROR_NET_IPGRE="NET_IPGRE: needed for network commands"
|
||||||
|
ERROR_NET_IPGRE_DEMUX="NET_IPGRE_DEMUX: needed for network commands"
|
||||||
|
ERROR_NET_IPIP="NET_IPIP: needed for network commands"
|
||||||
|
ERROR_NF_NAT_MASQUERADE_IPV4="NF_NAT_MASQUERADE_IPV4: needed for network commands"
|
||||||
|
ERROR_NF_NAT_MASQUERADE_IPV6="NF_NAT_MASQUERADE_IPV6: needed for network commands"
|
||||||
|
ERROR_VXLAN="VXLAN: needed for network commands"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/${P}-dont-go-get.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default_src_prepare
|
||||||
|
|
||||||
|
# Examples in go-lxc make our build fail.
|
||||||
|
rm -rf "${S}/src/${EGO_PN}/vendor/gopkg.in/lxc/go-lxc.v2/examples" || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
export GOPATH="${S}"
|
||||||
|
|
||||||
|
cd "${S}/src/${EGO_PN}" || die "Failed to change to deep src dir"
|
||||||
|
|
||||||
|
tmpgoroot="${T}/goroot"
|
||||||
|
if use daemon; then
|
||||||
|
# Build binaries
|
||||||
|
emake
|
||||||
|
else
|
||||||
|
# build client tool
|
||||||
|
emake client
|
||||||
|
fi
|
||||||
|
|
||||||
|
use nls && emake build-mo
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
if use daemon; then
|
||||||
|
export GOPATH="${S}"
|
||||||
|
cd "${S}/src/${EGO_PN}" || die "Failed to change to deep src dir"
|
||||||
|
|
||||||
|
emake check
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin bin/lxc
|
||||||
|
if use daemon; then
|
||||||
|
dosbin bin/lxd
|
||||||
|
dobin bin/fuidshift
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd "src/${EGO_PN}" || die "can't cd into ${S}/src/${EGO_PN}"
|
||||||
|
|
||||||
|
if use nls; then
|
||||||
|
domo po/*.mo
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use daemon; then
|
||||||
|
newinitd "${FILESDIR}"/${P}.initd lxd
|
||||||
|
newconfd "${FILESDIR}"/${P}.confd lxd
|
||||||
|
|
||||||
|
systemd_newunit "${FILESDIR}"/${P}.service ${PN}.service
|
||||||
|
fi
|
||||||
|
|
||||||
|
newbashcomp config/bash/lxd-client lxc
|
||||||
|
|
||||||
|
dodoc AUTHORS CONTRIBUTING.md README.md doc/*
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
einfo
|
||||||
|
einfo "Consult https://wiki.gentoo.org/wiki/LXD for more information,"
|
||||||
|
einfo "including a Quick Start."
|
||||||
|
|
||||||
|
# The messaging below only applies to daemon installs
|
||||||
|
use daemon || return 0
|
||||||
|
|
||||||
|
# The control socket will be owned by (and writeable by) this group.
|
||||||
|
enewgroup lxd
|
||||||
|
|
||||||
|
# Ubuntu also defines an lxd user but it appears unused (the daemon
|
||||||
|
# must run as root)
|
||||||
|
|
||||||
|
einfo
|
||||||
|
einfo "Though not strictly required, some features are enabled at run-time"
|
||||||
|
einfo "when the relevant helper programs are detected:"
|
||||||
|
einfo "- sys-apps/apparmor"
|
||||||
|
einfo "- sys-fs/btrfs-progs"
|
||||||
|
einfo "- sys-fs/lvm2"
|
||||||
|
einfo "- sys-fs/lxcfs"
|
||||||
|
einfo "- sys-fs/zfs"
|
||||||
|
einfo "- sys-process/criu"
|
||||||
|
einfo
|
||||||
|
einfo "Since these features can't be disabled at build-time they are"
|
||||||
|
einfo "not USE-conditional."
|
||||||
|
einfo
|
||||||
|
einfo "Networks with bridge.mode=fan are unsupported due to requiring"
|
||||||
|
einfo "a patched kernel and iproute2."
|
||||||
|
}
|
@ -1,2 +1,3 @@
|
|||||||
DIST vagrant-1.9.7.tar.gz 1119024 SHA256 194de72442a2d08f6e04fbed8698a99d190a0e7203d35b49e80d4ddfcb71fb1b SHA512 062921070ace7ce93145981b5b768dc9dc447559fc12c52c8da323d1e3523fbff2a8e7afca0e2f751e232aae822c969b5d166b3b0f01a0744ca20c4e4e33567f WHIRLPOOL ef0331781cf6a71dca9eb485943c459a5360f55b1db45b4f23b413b848eeac1700afe3ea51b6dd2e0da1a7c1ba6ad456bd9fcb7a7b3532145e95a38fc997dd99
|
DIST vagrant-1.9.7.tar.gz 1119024 SHA256 194de72442a2d08f6e04fbed8698a99d190a0e7203d35b49e80d4ddfcb71fb1b SHA512 062921070ace7ce93145981b5b768dc9dc447559fc12c52c8da323d1e3523fbff2a8e7afca0e2f751e232aae822c969b5d166b3b0f01a0744ca20c4e4e33567f WHIRLPOOL ef0331781cf6a71dca9eb485943c459a5360f55b1db45b4f23b413b848eeac1700afe3ea51b6dd2e0da1a7c1ba6ad456bd9fcb7a7b3532145e95a38fc997dd99
|
||||||
DIST vagrant-1.9.8.tar.gz 1127560 SHA256 59c1d50437d2f50eeae219bc03c90d397fe8d8c974cce7c51b017b8ceeaefb54 SHA512 d22cc0a6800aa5ef84085c750f5ec8729f7b3adefd9a5df1a1fcaf60d1219e781869ede4f57ce4fdeb269224603dfc3a8024545a0250ebd9e144745ce9aa670b WHIRLPOOL d9c199322798e792a895aef03f729b4db8bb5eb3eaab960092d5aa2831032106a9f55ac3957b43378cceea2d27cf53f8ecf6ff38ff54ff2f8c4451c0238029ee
|
DIST vagrant-1.9.8.tar.gz 1127560 SHA256 59c1d50437d2f50eeae219bc03c90d397fe8d8c974cce7c51b017b8ceeaefb54 SHA512 d22cc0a6800aa5ef84085c750f5ec8729f7b3adefd9a5df1a1fcaf60d1219e781869ede4f57ce4fdeb269224603dfc3a8024545a0250ebd9e144745ce9aa670b WHIRLPOOL d9c199322798e792a895aef03f729b4db8bb5eb3eaab960092d5aa2831032106a9f55ac3957b43378cceea2d27cf53f8ecf6ff38ff54ff2f8c4451c0238029ee
|
||||||
|
DIST vagrant-2.0.0.tar.gz 1142850 SHA256 c25d3a5f18abdf349047f4d80bb74e6cb526959536e4bef5aa771de9d39cb260 SHA512 ee9059dfd205253d6f978fd225d85eef5a281532a1992bc9382eb713c95a0280d4b6518460106227237ae4e93cf5e2eaf670bd378627c3e9696b0fe9a2427ac1 WHIRLPOOL 8337800f6c5cc88081dc6f8630de60ecba8c851687d14143f34dc41b62cbd67b1e463f7351ecc0e1c764742004fdba389bc33c0bb2a5c043d1fbf6dde352171c
|
||||||
|
@ -0,0 +1,81 @@
|
|||||||
|
# Copyright 1999-2017 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI="6"
|
||||||
|
USE_RUBY="ruby22 ruby23"
|
||||||
|
|
||||||
|
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
|
||||||
|
RUBY_FAKEGEM_GEMSPEC="vagrant.gemspec"
|
||||||
|
RUBY_FAKEGEM_EXTRAINSTALL="keys plugins templates version.txt"
|
||||||
|
RUBY_FAKEGEM_TASK_DOC=""
|
||||||
|
|
||||||
|
inherit bash-completion-r1 ruby-fakegem
|
||||||
|
|
||||||
|
DESCRIPTION="A tool for building and distributing development environments"
|
||||||
|
HOMEPAGE="http://vagrantup.com/"
|
||||||
|
SRC_URI="https://github.com/mitchellh/vagrant/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
IUSE="+virtualbox"
|
||||||
|
|
||||||
|
RDEPEND="${RDEPEND}
|
||||||
|
app-arch/libarchive
|
||||||
|
net-misc/curl
|
||||||
|
virtualbox? ( || ( app-emulation/virtualbox app-emulation/virtualbox-bin ) )"
|
||||||
|
|
||||||
|
ruby_add_rdepend "
|
||||||
|
>=dev-ruby/childprocess-0.6.0
|
||||||
|
>=dev-ruby/erubis-2.7.0
|
||||||
|
<dev-ruby/i18n-0.8.0:*
|
||||||
|
>=dev-ruby/listen-3.1.5
|
||||||
|
>=dev-ruby/hashicorp-checkpoint-0.1.1
|
||||||
|
>=dev-ruby/log4r-1.1.9 <dev-ruby/log4r-1.1.11
|
||||||
|
>=dev-ruby/net-ssh-4.1.0:*
|
||||||
|
>=dev-ruby/net-sftp-2.1
|
||||||
|
>=dev-ruby/net-scp-1.2.0
|
||||||
|
|| ( dev-ruby/rest-client:2 >=dev-ruby/rest-client-1.6.0:0 )
|
||||||
|
>=dev-ruby/nokogiri-1.7.1
|
||||||
|
<dev-ruby/mime-types-3:*
|
||||||
|
"
|
||||||
|
|
||||||
|
ruby_add_bdepend "
|
||||||
|
>=dev-ruby/rake-12.0.0
|
||||||
|
"
|
||||||
|
|
||||||
|
all_ruby_prepare() {
|
||||||
|
# remove bundler support
|
||||||
|
sed -i '/[Bb]undler/d' Rakefile || die
|
||||||
|
rm Gemfile || die
|
||||||
|
|
||||||
|
# loosen dependencies
|
||||||
|
sed -e '/hashicorp-checkpoint\|listen\|net-ssh\|net-scp\|rake\|childprocess/s/~>/>=/' \
|
||||||
|
-e '/ruby_dep/s/<=/>=/' \
|
||||||
|
-i ${PN}.gemspec || die
|
||||||
|
|
||||||
|
# remove windows-specific gems
|
||||||
|
sed -e '/wdm\|winrm/d' \
|
||||||
|
-i ${PN}.gemspec || die
|
||||||
|
|
||||||
|
# remove bsd-specific gems
|
||||||
|
sed -e '/rb-kqueue/d' \
|
||||||
|
-i ${PN}.gemspec || die
|
||||||
|
|
||||||
|
# disable embedded CA certs and use system ones
|
||||||
|
eapply "${FILESDIR}/${PN}-1.8.1-disable-embedded-cacert.patch"
|
||||||
|
|
||||||
|
sed -e "s/@VAGRANT_VERSION@/${PV}/g" "${FILESDIR}/${PN}.in" > "${PN}" || die
|
||||||
|
}
|
||||||
|
|
||||||
|
all_ruby_install() {
|
||||||
|
newbashcomp contrib/bash/completion.sh ${PN}
|
||||||
|
all_fakegem_install
|
||||||
|
|
||||||
|
# provide executable similar to upstream:
|
||||||
|
# https://github.com/mitchellh/vagrant-installers/blob/master/substrate/modules/vagrant_installer/templates/vagrant.erb
|
||||||
|
dobin "${PN}"
|
||||||
|
|
||||||
|
# directory for plugins.json
|
||||||
|
dodir /var/lib/vagrant
|
||||||
|
}
|
@ -1 +1 @@
|
|||||||
DIST eselect-electron-1.0.0.tar.gz 9814 SHA256 fb7fdf681d06d96e85b2e532809503d1d3efcdde6af005c2cef894c76c769c73 SHA512 7356ec1f88befb5369b9fef08b77144f945c69c2ee79861887647fa0d23400f7ebfe8fc1ef6d62d59cab57a5eecb71e5fcc19cda27f89a468f6ca840100d8685 WHIRLPOOL e912886b6598292e358bf1040bed791e32ce0289773539fa7d87d6d9bae6696fd962d0c5536fb30dc6dda23bf092b19efc906ede34c1f09b5e835f97f6b2f0a6
|
DIST eselect-electron-2.0.tar.gz 9673 SHA256 3e9414266f00cff3277967d20b8b6db1eeb5468a48b5ec59b37120a58887dd01 SHA512 1191acdbaf0d7f115dc8bcef259be111bf6631018a74eb0025e66ef3e26929eb6b630afc1a478956aa0c564ba13b318d97f704e093b68e0dbcbd1661f2cb202f WHIRLPOOL c24eb3761dd11103047b38e4fc88536187579148d3a4fdfa4567a5b4592eac22429ac55df9844c4b1492176e24736a1692629cd68c64597b476e8cc45843b2fd
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
DIST eselect-repository-1.tar.gz 5378 SHA256 d73d4ab5fd525f3504814b25087a051bde1b358033f996e10eca3d5eeeeabf22 SHA512 7f985c3abe3fa02dfe44aade71583e7280c4757470fe8bf43de8fcc2403e8b924d9b0af104e926a2b3cd79a92b440570347db511767c908dda087ccc9f3aba6e WHIRLPOOL 8ad0d21452a0094007b795aa105312110404dca33ee8c8e3c189b08f9fbad7759c2f1fe6572839c06cb7bdbaa39740195d674e72dc72debf6f118570d40daec2
|
@ -0,0 +1,38 @@
|
|||||||
|
# Copyright 1999-2017 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python{3_4,3_5,3_6} )
|
||||||
|
inherit python-single-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Manage repos.conf via eselect"
|
||||||
|
HOMEPAGE="https://github.com/mgorny/eselect-repository"
|
||||||
|
SRC_URI="https://github.com/mgorny/eselect-repository/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
RDEPEND="${PYTHON_DEPS}
|
||||||
|
app-admin/eselect
|
||||||
|
net-misc/wget"
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
MAKEARGS=(
|
||||||
|
PREFIX="${EPREFIX}/usr"
|
||||||
|
SYSCONFDIR="${EPREFIX}/etc"
|
||||||
|
SHAREDSTATEDIR="${EPREFIX}/var"
|
||||||
|
ESELECTDIR="${EPREFIX}/usr/share/eselect/modules"
|
||||||
|
)
|
||||||
|
|
||||||
|
emake "${MAKEARGS[@]}"
|
||||||
|
python_fix_shebang eselect-repo-helper
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake "${MAKEARGS[@]}" DESTDIR="${D}" install
|
||||||
|
keepdir /var/db/repos
|
||||||
|
einstalldocs
|
||||||
|
}
|
@ -1,2 +1,3 @@
|
|||||||
DIST fcitx-chewing-0.2.0.tar.xz 13968 SHA256 cf03b84004f1839a6f6e10dadf53edfbf8b6dcbb9d70579cde913b6b5e0a8dec SHA512 af8f2fb6fb5fb017522ac81fa9b14907d9537dace21ef594951f1dd717e276319666480aecaa55d0696c2ba80f74d51f7573aea9799d96a37bfa8305b8e04e54 WHIRLPOOL 6508407069d353c05b3167b413f5ab90f839afa6e77282ce79504ae23d831e150747a1c949e5fa8f0c021ba7b44b95087295336ad17d049bfbd41b87555aca5f
|
DIST fcitx-chewing-0.2.0.tar.xz 13968 SHA256 cf03b84004f1839a6f6e10dadf53edfbf8b6dcbb9d70579cde913b6b5e0a8dec SHA512 af8f2fb6fb5fb017522ac81fa9b14907d9537dace21ef594951f1dd717e276319666480aecaa55d0696c2ba80f74d51f7573aea9799d96a37bfa8305b8e04e54 WHIRLPOOL 6508407069d353c05b3167b413f5ab90f839afa6e77282ce79504ae23d831e150747a1c949e5fa8f0c021ba7b44b95087295336ad17d049bfbd41b87555aca5f
|
||||||
DIST fcitx-chewing-0.2.2.tar.xz 19684 SHA256 fa278ee9d2c20f7ae0a3093a3e490553798186bd67dc1e83f2723bd15b47a450 SHA512 3191c269459779115353fdf3f6fcdd1a8bace2d7f45426eebe1d4198eb8f84ef88680c38b7e03d7db4db45dc41ee2ddbe92d36c71911f09b23ef9f0d5d745617 WHIRLPOOL ab9a2fec736f3e2c4af761360ef0cd0e53fdeae1e850e322d7b5d31ceee9d074f7cb29f9f6e083f26e374928ba559b53d139ba906faf21538771a6f371d677eb
|
DIST fcitx-chewing-0.2.2.tar.xz 19684 SHA256 fa278ee9d2c20f7ae0a3093a3e490553798186bd67dc1e83f2723bd15b47a450 SHA512 3191c269459779115353fdf3f6fcdd1a8bace2d7f45426eebe1d4198eb8f84ef88680c38b7e03d7db4db45dc41ee2ddbe92d36c71911f09b23ef9f0d5d745617 WHIRLPOOL ab9a2fec736f3e2c4af761360ef0cd0e53fdeae1e850e322d7b5d31ceee9d074f7cb29f9f6e083f26e374928ba559b53d139ba906faf21538771a6f371d677eb
|
||||||
|
DIST fcitx-chewing-0.2.3.tar.xz 19804 SHA256 b313c7134eb173668f42535b0eb6e985eb94fdf5d2fe705940a6cbfdcbadbaf0 SHA512 3492ad6ecaf00bb1ea07b76c9c23da075615597c1a68434a2da003cbe410d12172510d4306379777a1d04a359b017c49d278c002a7230b030693b668b6030bfd WHIRLPOOL 32475349ac0cd89b0741e64a0ba02ef854d42dee51ac96ad7b9134afff8b81901eadb5acf338b018a936bb5fe2a675d4f15beb4d98c261832d95641ca86f4492
|
||||||
|
@ -0,0 +1,41 @@
|
|||||||
|
# Copyright 1999-2017 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI="6"
|
||||||
|
|
||||||
|
inherit cmake-utils gnome2-utils
|
||||||
|
|
||||||
|
if [[ "${PV}" == "9999" ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
|
||||||
|
EGIT_REPO_URI="https://github.com/fcitx/fcitx-chewing"
|
||||||
|
fi
|
||||||
|
|
||||||
|
DESCRIPTION="Chinese Chewing input method for Fcitx"
|
||||||
|
HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-chewing"
|
||||||
|
if [[ "${PV}" == "9999" ]]; then
|
||||||
|
SRC_URI=""
|
||||||
|
else
|
||||||
|
SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="GPL-2+"
|
||||||
|
SLOT="4"
|
||||||
|
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
RDEPEND=">=app-i18n/fcitx-4.2.9:4
|
||||||
|
>=app-i18n/libchewing-0.5.0:=
|
||||||
|
virtual/libintl"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
virtual/pkgconfig"
|
||||||
|
|
||||||
|
DOCS=(AUTHORS)
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
gnome2_icon_cache_update
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
gnome2_icon_cache_update
|
||||||
|
}
|
@ -0,0 +1,41 @@
|
|||||||
|
# Copyright 1999-2017 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI="6"
|
||||||
|
|
||||||
|
inherit cmake-utils gnome2-utils
|
||||||
|
|
||||||
|
if [[ "${PV}" == "9999" ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
|
||||||
|
EGIT_REPO_URI="https://github.com/fcitx/fcitx-chewing"
|
||||||
|
fi
|
||||||
|
|
||||||
|
DESCRIPTION="Chinese Chewing input method for Fcitx"
|
||||||
|
HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-chewing"
|
||||||
|
if [[ "${PV}" == "9999" ]]; then
|
||||||
|
SRC_URI=""
|
||||||
|
else
|
||||||
|
SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="GPL-2+"
|
||||||
|
SLOT="4"
|
||||||
|
KEYWORDS=""
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
RDEPEND=">=app-i18n/fcitx-4.2.9:4
|
||||||
|
>=app-i18n/libchewing-0.5.0:=
|
||||||
|
virtual/libintl"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
virtual/pkgconfig"
|
||||||
|
|
||||||
|
DOCS=(AUTHORS)
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
gnome2_icon_cache_update
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
gnome2_icon_cache_update
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
|
DIST fcitx-configtool-0.4.10.tar.xz 50440 SHA256 bcc4976976bfbddbfec3f689f38927fbabc7f7fa611ea252a789583ea14cd1fb SHA512 1c1267e9de694bbd5f258b5bba1e7514c4f8556cdc82a1cce5eafd8a4ec571955285dade0acd02f128eca01f867a30c5c6264ee7e91d32a333eba6e4d275fe8f WHIRLPOOL bbbc2a5c9d2247312b00c75a2469ec11f2992d8ca9d5b6bc7fec7b395973dd64fb3c7aed796682ea2a819f227daddb371a565cbedab7ba2b08838a74051c8417
|
||||||
DIST fcitx-configtool-0.4.6.tar.xz 41992 SHA256 8d64107f9f12b4f2cbd82e40b87a2dc4dc76d0ff854481c1103d5e9a2c2e129d SHA512 946bceb77fc6d14210154d9264c86d3333f910893cf3054f65eab72641421847e8ac003889b742f4c28f74c8ab1cfbcfb82abe35ea83ca2548cfc1decc92fc4c WHIRLPOOL 58f8a420f6c98cb6d710bd05d8ca2a3ca48a115015e6de98b105bf71b59bf3dab34eb63009d763dc7a3554fa6ec0b442e8bb277f890230dd94ec371397a6766c
|
DIST fcitx-configtool-0.4.6.tar.xz 41992 SHA256 8d64107f9f12b4f2cbd82e40b87a2dc4dc76d0ff854481c1103d5e9a2c2e129d SHA512 946bceb77fc6d14210154d9264c86d3333f910893cf3054f65eab72641421847e8ac003889b742f4c28f74c8ab1cfbcfb82abe35ea83ca2548cfc1decc92fc4c WHIRLPOOL 58f8a420f6c98cb6d710bd05d8ca2a3ca48a115015e6de98b105bf71b59bf3dab34eb63009d763dc7a3554fa6ec0b442e8bb277f890230dd94ec371397a6766c
|
||||||
DIST fcitx-configtool-0.4.8.tar.xz 47196 SHA256 0ebc06d9d325fed096e9cb61fe53b82000d2de0e9aefe5945ba8f0aa2ca851ed SHA512 7b3c43b9d7d1dab04880effe6fc4e80e64c9bad34699c0c8d2992ec971605ef2eaa0b1fb13f71a582289c75560c3edc95af21f6413ac2bb594d5cdb31a0b4cb7 WHIRLPOOL a1817bcc9d6bdcd96e66dbe71d44cb66d6b66802e366b8f21d5f922495176463fc23adff2bbdbfb4003ddcef43839fab06715231fdaada8714eec1e3a073f18f
|
DIST fcitx-configtool-0.4.8.tar.xz 47196 SHA256 0ebc06d9d325fed096e9cb61fe53b82000d2de0e9aefe5945ba8f0aa2ca851ed SHA512 7b3c43b9d7d1dab04880effe6fc4e80e64c9bad34699c0c8d2992ec971605ef2eaa0b1fb13f71a582289c75560c3edc95af21f6413ac2bb594d5cdb31a0b4cb7 WHIRLPOOL a1817bcc9d6bdcd96e66dbe71d44cb66d6b66802e366b8f21d5f922495176463fc23adff2bbdbfb4003ddcef43839fab06715231fdaada8714eec1e3a073f18f
|
||||||
DIST fcitx-configtool-0.4.9.tar.xz 48796 SHA256 592075d28224f8ce5304281c507ab2f9a9dd93f118eeec30d442ff3db214f9fa SHA512 800c731b370ace833179560260df7ffc9c0235c4f3257e8a99a0194f2fd06b71f738e6c77985871c3368179f944da2165dac5d4a8f7ba083519cb2509a9eb62b WHIRLPOOL ae5157178cbaedd66512da6548e79b0a09dd11e4ce8797ae3387c698cd33b51facf1153dca0d3e16cbf77a01959d01251a5dcd7fb6b30f119807d56a2a0f8470
|
DIST fcitx-configtool-0.4.9.tar.xz 48796 SHA256 592075d28224f8ce5304281c507ab2f9a9dd93f118eeec30d442ff3db214f9fa SHA512 800c731b370ace833179560260df7ffc9c0235c4f3257e8a99a0194f2fd06b71f738e6c77985871c3368179f944da2165dac5d4a8f7ba083519cb2509a9eb62b WHIRLPOOL ae5157178cbaedd66512da6548e79b0a09dd11e4ce8797ae3387c698cd33b51facf1153dca0d3e16cbf77a01959d01251a5dcd7fb6b30f119807d56a2a0f8470
|
||||||
|
@ -0,0 +1,43 @@
|
|||||||
|
# Copyright 1999-2017 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI="6"
|
||||||
|
|
||||||
|
inherit cmake-utils
|
||||||
|
|
||||||
|
if [[ "${PV}" == "9999" ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
|
||||||
|
EGIT_REPO_URI="https://github.com/fcitx/fcitx-configtool"
|
||||||
|
fi
|
||||||
|
|
||||||
|
DESCRIPTION="GTK+ GUI configuration tool for Fcitx"
|
||||||
|
HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-configtool"
|
||||||
|
if [[ "${PV}" == "9999" ]]; then
|
||||||
|
SRC_URI=""
|
||||||
|
else
|
||||||
|
SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="GPL-2+"
|
||||||
|
SLOT="4"
|
||||||
|
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
RDEPEND=">=app-i18n/fcitx-4.2.9:4
|
||||||
|
app-text/iso-codes
|
||||||
|
dev-libs/glib:2
|
||||||
|
x11-libs/gtk+:3"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
virtual/pkgconfig"
|
||||||
|
|
||||||
|
DOCS=()
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DENABLE_GTK2=OFF
|
||||||
|
-DENABLE_GTK3=ON
|
||||||
|
)
|
||||||
|
|
||||||
|
cmake-utils_src_configure
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
DIST fcitx-qt5-1.0.5.tar.xz 53584 SHA256 8cef90024ca84c3f607943b91f6bfe63fd077507bbe100e5a1936464095841de SHA512 f4da9ede8918cef7aa0dbacea534ab81024e3c6d812bedd287c4c4c9a8b9ca994d4708489c602967f3504ce057ec6e118674503f5d796883f1890e8ecc11c501 WHIRLPOOL 764190a5f523fc40ca5f937704d5bc1a7018232284f50b9b1b6a36b5dd41dfbebda5db337bdc49b08e601e94f51935f2a70d96dddbd4091744ec8c89a77f26b0
|
DIST fcitx-qt5-1.0.5.tar.xz 53584 SHA256 8cef90024ca84c3f607943b91f6bfe63fd077507bbe100e5a1936464095841de SHA512 f4da9ede8918cef7aa0dbacea534ab81024e3c6d812bedd287c4c4c9a8b9ca994d4708489c602967f3504ce057ec6e118674503f5d796883f1890e8ecc11c501 WHIRLPOOL 764190a5f523fc40ca5f937704d5bc1a7018232284f50b9b1b6a36b5dd41dfbebda5db337bdc49b08e601e94f51935f2a70d96dddbd4091744ec8c89a77f26b0
|
||||||
DIST fcitx-qt5-1.0.6.tar.xz 53892 SHA256 a2aea7b49a9508e68d087ac5c9f3d1d1d414318e1aca14fed92a2f8a7e8848c8 SHA512 ea816a3bc324b838d77d7ee67a05853f7f07cbc3c0c1e0a3809fe72084f7e0db8e98623499299712b8b496922e46acb06cf3a1cbd3ff2ef1de92ca5a74d540da WHIRLPOOL aae4029ad2bd5120cd7910fa0a2644dca346acbf47da22d54d7fd3bdb70fab9bdbcf40207e8870f1bebee48de07d9c4a39d44ef04a56eb8472e31087cf6326d3
|
DIST fcitx-qt5-1.0.6.tar.xz 53892 SHA256 a2aea7b49a9508e68d087ac5c9f3d1d1d414318e1aca14fed92a2f8a7e8848c8 SHA512 ea816a3bc324b838d77d7ee67a05853f7f07cbc3c0c1e0a3809fe72084f7e0db8e98623499299712b8b496922e46acb06cf3a1cbd3ff2ef1de92ca5a74d540da WHIRLPOOL aae4029ad2bd5120cd7910fa0a2644dca346acbf47da22d54d7fd3bdb70fab9bdbcf40207e8870f1bebee48de07d9c4a39d44ef04a56eb8472e31087cf6326d3
|
||||||
DIST fcitx-qt5-1.1.0.tar.xz 55944 SHA256 9be3205e9bb730a23f28bf742d8c41a5035fcd8d91b51aaef875d888c12c0c65 SHA512 1f11c13162483957f0ff29dc8d05e8c781bfcc6f60d938037b94ae825be9c1bc47f594540a2d1d3ffa7185abcc9fd734522a64e36813d3116ec394b52f98135c WHIRLPOOL bbac0393b3e697d48b8bde3acec54a1f8d3daade53c31b8775418067c450c3960820c6ce2e2ec1583d1aa2263a7f7f13cf08d7b32deb1c1a851fc892e367f4e2
|
DIST fcitx-qt5-1.1.0.tar.xz 55944 SHA256 9be3205e9bb730a23f28bf742d8c41a5035fcd8d91b51aaef875d888c12c0c65 SHA512 1f11c13162483957f0ff29dc8d05e8c781bfcc6f60d938037b94ae825be9c1bc47f594540a2d1d3ffa7185abcc9fd734522a64e36813d3116ec394b52f98135c WHIRLPOOL bbac0393b3e697d48b8bde3acec54a1f8d3daade53c31b8775418067c450c3960820c6ce2e2ec1583d1aa2263a7f7f13cf08d7b32deb1c1a851fc892e367f4e2
|
||||||
|
DIST fcitx-qt5-1.1.1.tar.xz 56352 SHA256 4b062869dae011747ff257e6976debd1d69fb13e6121318ce725c0c240291b02 SHA512 ea7faa953561527fd0f6224a06ab97ab84a9e36a06d44f9807e38e6d8e537ab2c7126c4cda2d4718473ace1245709ce6175ac9431b6f0527a63b2d6e92feb18c WHIRLPOOL 385566104e215309dae5742ee4ed360b4b5a23b282fe64a4e50ac13a710478998262f2022320ceda2c4f423406292e7ded48dd2adec7e7b532d5e4bb8b524776
|
||||||
|
@ -0,0 +1,39 @@
|
|||||||
|
# Copyright 1999-2017 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI="6"
|
||||||
|
|
||||||
|
inherit cmake-utils
|
||||||
|
|
||||||
|
if [[ "${PV}" == "9999" ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
|
||||||
|
EGIT_REPO_URI="https://github.com/fcitx/fcitx-qt5"
|
||||||
|
fi
|
||||||
|
|
||||||
|
DESCRIPTION="Fcitx input method module for Qt 5"
|
||||||
|
HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-qt5"
|
||||||
|
if [[ "${PV}" == "9999" ]]; then
|
||||||
|
SRC_URI=""
|
||||||
|
else
|
||||||
|
SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="GPL-2+"
|
||||||
|
SLOT="4"
|
||||||
|
KEYWORDS="~amd64 ~hppa ~ppc64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
# Private headers of dev-qt/qtgui:5 used.
|
||||||
|
RDEPEND=">=app-i18n/fcitx-4.2.9:4
|
||||||
|
dev-qt/qtcore:5
|
||||||
|
dev-qt/qtdbus:5
|
||||||
|
dev-qt/qtgui:5=
|
||||||
|
dev-qt/qtwidgets:5
|
||||||
|
virtual/libintl
|
||||||
|
x11-libs/libxkbcommon"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
kde-frameworks/extra-cmake-modules:5
|
||||||
|
virtual/pkgconfig"
|
||||||
|
|
||||||
|
DOCS=()
|
@ -0,0 +1,147 @@
|
|||||||
|
# Copyright 1999-2017 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI="6"
|
||||||
|
|
||||||
|
inherit cmake-utils gnome2-utils xdg-utils
|
||||||
|
|
||||||
|
if [[ "${PV}" == "9999" ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
|
||||||
|
EGIT_REPO_URI="https://github.com/fcitx/fcitx"
|
||||||
|
fi
|
||||||
|
|
||||||
|
DESCRIPTION="Fcitx (Flexible Context-aware Input Tool with eXtension) input method framework"
|
||||||
|
HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx"
|
||||||
|
if [[ "${PV}" == "9999" ]]; then
|
||||||
|
SRC_URI="https://download.fcitx-im.org/data/pinyin.tar.gz -> fcitx-data-pinyin.tar.gz
|
||||||
|
https://download.fcitx-im.org/data/table.tar.gz -> fcitx-data-table.tar.gz
|
||||||
|
https://download.fcitx-im.org/data/py_stroke-20121124.tar.gz -> fcitx-data-py_stroke-20121124.tar.gz
|
||||||
|
https://download.fcitx-im.org/data/py_table-20121124.tar.gz -> fcitx-data-py_table-20121124.tar.gz
|
||||||
|
https://download.fcitx-im.org/data/en_dict-20121020.tar.gz -> fcitx-data-en_dict-20121020.tar.gz"
|
||||||
|
else
|
||||||
|
SRC_URI="https://download.fcitx-im.org/${PN}/${P}_dict.tar.xz"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="GPL-2+ LGPL-2+ MIT"
|
||||||
|
SLOT="4"
|
||||||
|
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
|
||||||
|
IUSE="+X +autostart +cairo debug +enchant gtk2 gtk3 +introspection lua nls opencc +pango qt4 static-libs +table test +xml"
|
||||||
|
REQUIRED_USE="cairo? ( X ) pango? ( cairo ) qt4? ( X )"
|
||||||
|
|
||||||
|
RDEPEND="dev-libs/glib:2
|
||||||
|
sys-apps/dbus
|
||||||
|
virtual/libiconv
|
||||||
|
virtual/libintl
|
||||||
|
x11-libs/libxkbcommon
|
||||||
|
X? (
|
||||||
|
x11-libs/libX11
|
||||||
|
x11-libs/libXfixes
|
||||||
|
x11-libs/libXinerama
|
||||||
|
x11-libs/libXrender
|
||||||
|
xml? (
|
||||||
|
x11-libs/libxkbfile
|
||||||
|
x11-misc/xkeyboard-config
|
||||||
|
)
|
||||||
|
)
|
||||||
|
cairo? (
|
||||||
|
x11-libs/cairo[X]
|
||||||
|
x11-libs/libXext
|
||||||
|
pango? ( x11-libs/pango )
|
||||||
|
!pango? ( media-libs/fontconfig )
|
||||||
|
)
|
||||||
|
enchant? ( app-text/enchant:0= )
|
||||||
|
gtk2? ( x11-libs/gtk+:2 )
|
||||||
|
gtk3? ( x11-libs/gtk+:3 )
|
||||||
|
introspection? ( dev-libs/gobject-introspection )
|
||||||
|
lua? ( dev-lang/lua:= )
|
||||||
|
nls? ( sys-devel/gettext )
|
||||||
|
opencc? ( app-i18n/opencc:= )
|
||||||
|
qt4? (
|
||||||
|
dev-qt/qtcore:4
|
||||||
|
dev-qt/qtdbus:4
|
||||||
|
dev-qt/qtgui:4
|
||||||
|
)
|
||||||
|
xml? (
|
||||||
|
app-text/iso-codes
|
||||||
|
dev-libs/libxml2
|
||||||
|
)"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
kde-frameworks/extra-cmake-modules:5
|
||||||
|
virtual/pkgconfig"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/${P}-restart.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
DOCS=(AUTHORS ChangeLog THANKS)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
if [[ "${PV}" == "9999" ]]; then
|
||||||
|
ln -s "${DISTDIR}/fcitx-data-pinyin.tar.gz" src/im/pinyin/data/pinyin.tar.gz || die
|
||||||
|
ln -s "${DISTDIR}/fcitx-data-table.tar.gz" src/im/table/data/table.tar.gz || die
|
||||||
|
ln -s "${DISTDIR}/fcitx-data-py_stroke-20121124.tar.gz" src/module/pinyin-enhance/data/py_stroke-20121124.tar.gz || die
|
||||||
|
ln -s "${DISTDIR}/fcitx-data-py_table-20121124.tar.gz" src/module/pinyin-enhance/data/py_table-20121124.tar.gz || die
|
||||||
|
ln -s "${DISTDIR}/fcitx-data-en_dict-20121020.tar.gz" src/module/spell/dict/en_dict-20121020.tar.gz || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
# https://github.com/fcitx/fcitx/issues/250
|
||||||
|
sed \
|
||||||
|
-e "/find_package(XkbFile REQUIRED)/i\\ if(ENABLE_X11)" \
|
||||||
|
-e "/find_package(XkbFile REQUIRED)/s/^/ /" \
|
||||||
|
-e "/find_package(XkbFile REQUIRED)/a\\ endif(ENABLE_X11)" \
|
||||||
|
-i CMakeLists.txt
|
||||||
|
|
||||||
|
cmake-utils_src_prepare
|
||||||
|
xdg_environment_reset
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DLIB_INSTALL_DIR="${EPREFIX}/usr/$(get_libdir)"
|
||||||
|
-DSYSCONFDIR="${EPREFIX}/etc"
|
||||||
|
-DENABLE_CAIRO=$(usex cairo)
|
||||||
|
-DENABLE_DEBUG=$(usex debug)
|
||||||
|
-DENABLE_ENCHANT=$(usex enchant)
|
||||||
|
-DENABLE_GETTEXT=$(usex nls)
|
||||||
|
-DENABLE_GIR=$(usex introspection)
|
||||||
|
-DENABLE_GTK2_IM_MODULE=$(usex gtk2)
|
||||||
|
-DENABLE_GTK3_IM_MODULE=$(usex gtk3)
|
||||||
|
-DENABLE_LIBXML2=$(usex xml)
|
||||||
|
-DENABLE_LUA=$(usex lua)
|
||||||
|
-DENABLE_OPENCC=$(usex opencc)
|
||||||
|
-DENABLE_PANGO=$(usex pango)
|
||||||
|
-DENABLE_QT=$(usex qt4)
|
||||||
|
-DENABLE_QT_GUI=$(usex qt4)
|
||||||
|
-DENABLE_QT_IM_MODULE=$(usex qt4)
|
||||||
|
-DENABLE_SNOOPER=$(if use gtk2 || use gtk3; then echo yes; else echo no; fi)
|
||||||
|
-DENABLE_STATIC=$(usex static-libs)
|
||||||
|
-DENABLE_TABLE=$(usex table)
|
||||||
|
-DENABLE_TEST=$(usex test)
|
||||||
|
-DENABLE_X11=$(usex X)
|
||||||
|
-DENABLE_XDGAUTOSTART=$(usex autostart)
|
||||||
|
)
|
||||||
|
|
||||||
|
cmake-utils_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
cmake-utils_src_install
|
||||||
|
rm -r "${ED}usr/share/doc/${PN}"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
gnome2_icon_cache_update
|
||||||
|
xdg_desktop_database_update
|
||||||
|
xdg_mimeinfo_database_update
|
||||||
|
use gtk2 && gnome2_query_immodules_gtk2
|
||||||
|
use gtk3 && gnome2_query_immodules_gtk3
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
gnome2_icon_cache_update
|
||||||
|
xdg_desktop_database_update
|
||||||
|
xdg_mimeinfo_database_update
|
||||||
|
use gtk2 && gnome2_query_immodules_gtk2
|
||||||
|
use gtk3 && gnome2_query_immodules_gtk3
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
https://github.com/fcitx/fcitx/issues/362
|
||||||
|
https://github.com/fcitx/fcitx/commit/82202f6b81361263693f07ae17c55c8ce048b220
|
||||||
|
|
||||||
|
--- /src/lib/fcitx/instance.c
|
||||||
|
+++ /src/lib/fcitx/instance.c
|
||||||
|
@@ -365,6 +365,7 @@
|
||||||
|
setjmp(FcitxRecover);
|
||||||
|
|
||||||
|
if (instance->destroy || instance->restart) {
|
||||||
|
+ FcitxInstanceEnd(instance);
|
||||||
|
FcitxInstanceRealEnd(instance);
|
||||||
|
break;
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
DIST kcm-fcitx-0.4.3.tar.xz 56864 SHA256 b7e9ad4569c0940f9654d58de1f13281fcbcab56febbd346951edcfa0a86e208 SHA512 d311699a5d99f75d353899b7fba0a950491ee8b891724b855033449900ec4b3db9408bb1b80e60ceb0dbb0ce91072162062261a497f83a2a683214b71c3f4713 WHIRLPOOL 04aec049436a120362d02ba900a0d8639feb359b4cc6b99a871c7ffa8d9660270c321828b8660c718890a7f0ea308ea584711ed712762aab712fe8d7e72a205a
|
DIST kcm-fcitx-0.4.3.tar.xz 56864 SHA256 b7e9ad4569c0940f9654d58de1f13281fcbcab56febbd346951edcfa0a86e208 SHA512 d311699a5d99f75d353899b7fba0a950491ee8b891724b855033449900ec4b3db9408bb1b80e60ceb0dbb0ce91072162062261a497f83a2a683214b71c3f4713 WHIRLPOOL 04aec049436a120362d02ba900a0d8639feb359b4cc6b99a871c7ffa8d9660270c321828b8660c718890a7f0ea308ea584711ed712762aab712fe8d7e72a205a
|
||||||
DIST kcm-fcitx-0.5.3.tar.xz 57488 SHA256 f2de5fa4e31a96fea059e4d390c6f1d6fdc98af572c19a0e84cf6181da7c2935 SHA512 19d172cbf1d2a13f289b64b67488ddc5ba83a9d26503438045271c85df3775715614951652dc6f8da52a3b9d692d6e2138a760fc51d1e7f0f8bb0bd467265496 WHIRLPOOL 7be5cfb389bfcf5f451b5619c0818afeaa7b88199375b2f5d85bdcc21b1259008a3653f1cd26e33689a9f18130bc53269dceb20fca5b64aaa8f619e06f2d413e
|
DIST kcm-fcitx-0.5.3.tar.xz 57488 SHA256 f2de5fa4e31a96fea059e4d390c6f1d6fdc98af572c19a0e84cf6181da7c2935 SHA512 19d172cbf1d2a13f289b64b67488ddc5ba83a9d26503438045271c85df3775715614951652dc6f8da52a3b9d692d6e2138a760fc51d1e7f0f8bb0bd467265496 WHIRLPOOL 7be5cfb389bfcf5f451b5619c0818afeaa7b88199375b2f5d85bdcc21b1259008a3653f1cd26e33689a9f18130bc53269dceb20fca5b64aaa8f619e06f2d413e
|
||||||
DIST kcm-fcitx-0.5.4.tar.xz 59744 SHA256 ebf81446bd7f9478b421c4ab8b8e050d13a15327a3b6cde93cf62ed09a697402 SHA512 349fe50303e027f44b53d954c088e441450aad07dac3a1162a5dcf9c445ca9d04bd3c36475c17dab91ed2df9c3c71031d7582e39b85ad0465a816f7fc24ac0bd WHIRLPOOL e7d9bcad0e1fbe1cb576f69a82e26b4e910e930003b51940cafc5ddcef65eaab0b4c608c8ba878b12a101aad811e74cf9546be129f833b3c7cd33c3597b00fbd
|
DIST kcm-fcitx-0.5.4.tar.xz 59744 SHA256 ebf81446bd7f9478b421c4ab8b8e050d13a15327a3b6cde93cf62ed09a697402 SHA512 349fe50303e027f44b53d954c088e441450aad07dac3a1162a5dcf9c445ca9d04bd3c36475c17dab91ed2df9c3c71031d7582e39b85ad0465a816f7fc24ac0bd WHIRLPOOL e7d9bcad0e1fbe1cb576f69a82e26b4e910e930003b51940cafc5ddcef65eaab0b4c608c8ba878b12a101aad811e74cf9546be129f833b3c7cd33c3597b00fbd
|
||||||
|
DIST kcm-fcitx-0.5.5.tar.xz 63364 SHA256 fe6ff7fe4df1e6bdbeb53699cfbd654b7b8c8e7bb299f6b8af86618f873a77ba SHA512 e6a7bcad10003a956389ee266cf6d2f3730dafafcdd0bb43de328397749775e5cd305f16fdca2365e246c903677dba042da81a6dfd873aa1be74174e2b0b372e WHIRLPOOL e23eaae17de906000f808b9a21f46c9b8ea529a13a97c0e832dc708ad130e4668852c46ba92bb16e0f956664932ba38dd650eefcf8fd1f128a4e9de87a36f4c7
|
||||||
|
@ -0,0 +1,56 @@
|
|||||||
|
# Copyright 1999-2017 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI="6"
|
||||||
|
|
||||||
|
inherit cmake-utils
|
||||||
|
|
||||||
|
if [[ "${PV}" =~ (^|\.)9999$ ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
|
||||||
|
EGIT_REPO_URI="https://github.com/fcitx/kcm-fcitx"
|
||||||
|
fi
|
||||||
|
|
||||||
|
DESCRIPTION="KDE configuration module for Fcitx"
|
||||||
|
HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/kcm-fcitx"
|
||||||
|
if [[ "${PV}" =~ (^|\.)9999$ ]]; then
|
||||||
|
SRC_URI=""
|
||||||
|
else
|
||||||
|
SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="GPL-2+"
|
||||||
|
SLOT="4-plasma5"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
RDEPEND=">=app-i18n/fcitx-4.2.9:4
|
||||||
|
>=app-i18n/fcitx-qt5-1.1:4
|
||||||
|
dev-qt/qtcore:5
|
||||||
|
dev-qt/qtdbus:5
|
||||||
|
dev-qt/qtgui:5
|
||||||
|
dev-qt/qtwidgets:5
|
||||||
|
dev-qt/qtx11extras:5
|
||||||
|
kde-frameworks/kconfigwidgets:5
|
||||||
|
kde-frameworks/kcoreaddons:5
|
||||||
|
kde-frameworks/ki18n:5
|
||||||
|
kde-frameworks/kio:5
|
||||||
|
kde-frameworks/kitemviews:5
|
||||||
|
kde-frameworks/knewstuff:5
|
||||||
|
kde-frameworks/kwidgetsaddons:5
|
||||||
|
virtual/libintl
|
||||||
|
x11-libs/libX11
|
||||||
|
x11-libs/libxkbfile
|
||||||
|
!${CATEGORY}/${PN}:4[-minimal(-)]"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
kde-frameworks/extra-cmake-modules:5
|
||||||
|
sys-devel/gettext
|
||||||
|
virtual/pkgconfig"
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DKDE_INSTALL_USE_QT_SYS_PATHS=yes
|
||||||
|
)
|
||||||
|
|
||||||
|
cmake-utils_src_configure
|
||||||
|
}
|
@ -1,26 +0,0 @@
|
|||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
inherit cmake-utils
|
|
||||||
|
|
||||||
DESCRIPTION="Package creator for app-leechcraft/lc-lackman package manager"
|
|
||||||
|
|
||||||
SRC_URI="https://github.com/0xd34df00d/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
HOMEPAGE="http://leechcraft.org/"
|
|
||||||
LICENSE="Boost-1.0"
|
|
||||||
|
|
||||||
CMAKE_USE_DIR="${S}"/src
|
|
||||||
|
|
||||||
COMMON_DEPEND=">=dev-libs/boost-1.46
|
|
||||||
dev-qt/qtcore:4
|
|
||||||
dev-qt/qtgui:4
|
|
||||||
dev-qt/qtxmlpatterns:4"
|
|
||||||
DEPEND="${COMMON_DEPEND}"
|
|
||||||
RDEPEND="${COMMON_DEPEND}
|
|
||||||
dev-qt/qtsvg:4"
|
|
@ -1 +1,2 @@
|
|||||||
DIST elasticsearch-5.5.2.tar.gz 33485703 SHA256 0870e2c0c72e6eda976effa07aa1cdd06a9500302320b5c22ed292ce21665bf1 SHA512 62048f15b43e38a61e3a19a1599c25cd0d9009cc1172db5b450b04dec349ecd313b1f20e3d1c7ed1c101ae3e6f6c6d2cdf004a9713ad803576277f93e3adbdb9 WHIRLPOOL 3a71cef2858b76b11e1693907e745912a83f23e26c35a3456c6324fc19c317c53d4404e20134b034e41e162c1ea8d58c38bbd4afe0394d886ab32f6b698172ec
|
DIST elasticsearch-5.5.2.tar.gz 33485703 SHA256 0870e2c0c72e6eda976effa07aa1cdd06a9500302320b5c22ed292ce21665bf1 SHA512 62048f15b43e38a61e3a19a1599c25cd0d9009cc1172db5b450b04dec349ecd313b1f20e3d1c7ed1c101ae3e6f6c6d2cdf004a9713ad803576277f93e3adbdb9 WHIRLPOOL 3a71cef2858b76b11e1693907e745912a83f23e26c35a3456c6324fc19c317c53d4404e20134b034e41e162c1ea8d58c38bbd4afe0394d886ab32f6b698172ec
|
||||||
|
DIST elasticsearch-5.6.1.tar.gz 33747853 SHA256 006f9cb3886877df845e3c3dea8a688777fb739a862d3afe1a113c16a732715f SHA512 be4ec7b16628bcf217ccf2035399a0729f4a46a2243fdb070535b1e36169fe31f36f1f78d7aa54e44c411b2f33bf76eb5833b2531339c2f040407774990986aa WHIRLPOOL ef12806fd3f00738f8544893ff895174a8af5891c730c1dd308e5537bee23ead429f14448ba0cbfe13766393b88593eb07cd1a7144485b105877cf8d7e84ccd5
|
||||||
|
@ -0,0 +1,67 @@
|
|||||||
|
# Copyright 1999-2017 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
inherit systemd user
|
||||||
|
|
||||||
|
DESCRIPTION="Open Source, Distributed, RESTful, Search Engine"
|
||||||
|
HOMEPAGE="https://www.elastic.co/products/elasticsearch"
|
||||||
|
SRC_URI="https://artifacts.elastic.co/downloads/${PN}/${P}.tar.gz"
|
||||||
|
LICENSE="Apache-2.0 BSD-2 LGPL-3 MIT public-domain"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
RDEPEND="virtual/jre:1.8"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
enewgroup ${PN}
|
||||||
|
enewuser ${PN} -1 /bin/bash /usr/share/${PN} ${PN}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
rm -v bin/*.{bat,exe} LICENSE.txt || die
|
||||||
|
|
||||||
|
default
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
keepdir /etc/${PN}
|
||||||
|
keepdir /etc/${PN}/scripts
|
||||||
|
|
||||||
|
insinto /etc/${PN}
|
||||||
|
doins config/*
|
||||||
|
rm -rv config || die
|
||||||
|
|
||||||
|
insinto /usr/share/${PN}
|
||||||
|
doins -r ./*
|
||||||
|
|
||||||
|
exeinto /usr/share/${PN}/bin
|
||||||
|
doexe "${FILESDIR}/elasticsearch-systemd-pre-exec"
|
||||||
|
|
||||||
|
chmod +x "${ED}"/usr/share/${PN}/bin/* || die
|
||||||
|
|
||||||
|
keepdir /var/{lib,log}/${PN}
|
||||||
|
dodir /usr/share/${PN}/plugins
|
||||||
|
|
||||||
|
systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d" "${PN}.conf"
|
||||||
|
|
||||||
|
insinto /etc/sysctl.d
|
||||||
|
newins "${FILESDIR}/${PN}.sysctl.d" "${PN}.conf"
|
||||||
|
|
||||||
|
newinitd "${FILESDIR}/${PN}.init" "${PN}"
|
||||||
|
newconfd "${FILESDIR}/${PN}.conf" "${PN}"
|
||||||
|
systemd_newunit "${FILESDIR}"/${PN}.service "${PN}.service"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elog
|
||||||
|
elog "You may create multiple instances of ${PN} by"
|
||||||
|
elog "symlinking the init script:"
|
||||||
|
elog "ln -sf /etc/init.d/${PN} /etc/init.d/${PN}.instance"
|
||||||
|
elog
|
||||||
|
elog "Please make sure you put elasticsearch.yml, log4j2.properties and scripts"
|
||||||
|
elog "from /etc/elasticsearch into the configuration directory of the instance:"
|
||||||
|
elog "/etc/${PN}/instance"
|
||||||
|
elog
|
||||||
|
}
|
@ -1,34 +1,34 @@
|
|||||||
# Copyright 1999-2017 Gentoo Foundation
|
# Copyright 1999-2017 Gentoo Foundation
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=5
|
EAPI=6
|
||||||
|
|
||||||
inherit eutils flag-o-matic git-r3 toolchain-funcs
|
inherit flag-o-matic git-r3 toolchain-funcs
|
||||||
|
|
||||||
MY_P="${PN}-${PV/_pre/-PR}"
|
MY_P="${PN}-${PV/_pre/-PR}"
|
||||||
|
|
||||||
DESCRIPTION="Identify/delete duplicate files residing within specified directories"
|
DESCRIPTION="Identify/delete duplicate files residing within specified directories"
|
||||||
HOMEPAGE="https://github.com/adrianlopezroche/fdupes"
|
HOMEPAGE="https://github.com/adrianlopezroche/fdupes"
|
||||||
SRC_URI=""
|
|
||||||
EGIT_REPO_URI="https://github.com/adrianlopezroche/fdupes.git"
|
EGIT_REPO_URI="https://github.com/adrianlopezroche/fdupes.git"
|
||||||
|
|
||||||
LICENSE="MIT"
|
LICENSE="MIT"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
|
|
||||||
KEYWORDS=""
|
KEYWORDS=""
|
||||||
IUSE=""
|
SRC_URI=""
|
||||||
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
|
||||||
src_prepare() {
|
PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
|
||||||
epatch \
|
|
||||||
"${FILESDIR}"/${P}-makefile.patch
|
DOCS=( CHANGES CONTRIBUTORS README )
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
append-lfs-flags
|
append-lfs-flags
|
||||||
tc-export CC
|
tc-export CC
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
dobin fdupes
|
emake PREFIX="/usr" DESTDIR="${D}" install
|
||||||
doman fdupes.1
|
einstalldocs
|
||||||
dodoc CHANGES CONTRIBUTORS README TODO
|
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,14 @@
|
|||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -71,9 +71,9 @@
|
||||||
|
# Make Configuration
|
||||||
|
#
|
||||||
|
CC ?= gcc
|
||||||
|
-COMPILER_OPTIONS = -Wall -O -g
|
||||||
|
+COMPILER_OPTIONS = -Wall
|
||||||
|
|
||||||
|
-CFLAGS= $(COMPILER_OPTIONS) -I. -DVERSION=\"$(VERSION)\" $(OMIT_GETOPT_LONG) $(FILEOFFSET_64BIT)
|
||||||
|
+CFLAGS += $(COMPILER_OPTIONS) -I. -DVERSION=\"$(VERSION)\" $(OMIT_GETOPT_LONG) $(FILEOFFSET_64BIT)
|
||||||
|
|
||||||
|
INSTALL_PROGRAM = $(INSTALL) -c -m 0755
|
||||||
|
INSTALL_DATA = $(INSTALL) -c -m 0644
|
@ -1,28 +0,0 @@
|
|||||||
Makefile | 6 +++---
|
|
||||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/Makefile b/Makefile
|
|
||||||
index 921d910..67576f9 100644
|
|
||||||
--- a/Makefile
|
|
||||||
+++ b/Makefile
|
|
||||||
@@ -78,9 +78,9 @@ MKDIR = mkdir -p
|
|
||||||
# Make Configuration
|
|
||||||
#
|
|
||||||
CC ?= gcc
|
|
||||||
-COMPILER_OPTIONS = -Wall -O -g
|
|
||||||
+CFLAGS ?= -Wall -O -g
|
|
||||||
|
|
||||||
-CFLAGS= $(COMPILER_OPTIONS) -I. -DVERSION=\"$(VERSION)\" $(EXTERNAL_MD5) $(OMIT_GETOPT_LONG) $(FILEOFFSET_64BIT)
|
|
||||||
+CFLAGS += -I. -DVERSION=\"$(VERSION)\" $(EXTERNAL_MD5) $(OMIT_GETOPT_LONG) $(FILEOFFSET_64BIT)
|
|
||||||
|
|
||||||
INSTALL_PROGRAM = $(INSTALL) -c -m 0755
|
|
||||||
INSTALL_DATA = $(INSTALL) -c -m 0644
|
|
||||||
@@ -100,7 +100,7 @@ OBJECT_FILES = fdupes.o md5/md5.o $(ADDITIONAL_OBJECTS)
|
|
||||||
all: fdupes
|
|
||||||
|
|
||||||
fdupes: $(OBJECT_FILES)
|
|
||||||
- $(CC) $(CFLAGS) -o fdupes $(OBJECT_FILES)
|
|
||||||
+ $(CC) $(CFLAGS) $(LDFLAGS) -o fdupes $(OBJECT_FILES)
|
|
||||||
|
|
||||||
installdirs:
|
|
||||||
test -d $(DESTDIR)$(BIN_DIR) || $(MKDIR) $(DESTDIR)$(BIN_DIR)
|
|
@ -1,11 +1,11 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
<pkgmetadata>
|
<pkgmetadata>
|
||||||
<maintainer type="project">
|
<maintainer type="project">
|
||||||
<email>shell-tools@gentoo.org</email>
|
<email>shell-tools@gentoo.org</email>
|
||||||
<name>Gentoo Shell Tools Project</name>
|
<name>Gentoo Shell Tools Project</name>
|
||||||
</maintainer>
|
</maintainer>
|
||||||
<upstream>
|
<upstream>
|
||||||
<remote-id type="github">adrianlopezroche/fdupes</remote-id>
|
<remote-id type="github">adrianlopezroche/fdupes</remote-id>
|
||||||
</upstream>
|
</upstream>
|
||||||
</pkgmetadata>
|
</pkgmetadata>
|
||||||
|
@ -1,56 +0,0 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
inherit eutils qmake-utils qt4-r2
|
|
||||||
|
|
||||||
MY_PN="zyGrib"
|
|
||||||
|
|
||||||
DESCRIPTION="GRIB File Viewer - Weather data visualization"
|
|
||||||
HOMEPAGE="http://www.zygrib.org/"
|
|
||||||
SRC_URI="http://www.zygrib.org/getfile.php?file=${MY_PN}-${PV}.tgz -> ${P}.tgz
|
|
||||||
https://dev.gentoo.org/~mschiff/distfiles/${PN}-icon.png
|
|
||||||
maps? (
|
|
||||||
http://zygrib.org/getfile.php?file=zyGrib_maps2.4.tgz -> zygrib-maps2.4.tgz
|
|
||||||
http://www.zygrib.org/getfile.php?file=cities_1k-3k.txt.gz -> zygrib-cities_1k-3k.txt.gz
|
|
||||||
http://www.zygrib.org/getfile.php?file=cities_300-1k.txt.gz -> zygrib-cities_300-1k.txt.gz
|
|
||||||
http://www.zygrib.org/getfile.php?file=cities_0-300.txt.gz -> zygrib-cities_0-300.txt.gz
|
|
||||||
)"
|
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
IUSE="+maps"
|
|
||||||
|
|
||||||
DEPEND="app-arch/bzip2
|
|
||||||
dev-qt/qtsvg:4
|
|
||||||
sci-libs/libnova
|
|
||||||
sci-libs/proj
|
|
||||||
sys-libs/zlib
|
|
||||||
x11-libs/qwt:6"
|
|
||||||
|
|
||||||
RDEPEND="${DEPEND}"
|
|
||||||
|
|
||||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
sed -i 's,INSTALLDIR=$(HOME)/zyGrib,INSTALLDIR=$(DESTDIR)/opt/zyGrib,' Makefile
|
|
||||||
sed -i "s,QMAKE=/usr/bin/qmake-qt4,QMAKE=$(qt4_get_bindir)/qmake," Makefile
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
rm zyGrib
|
|
||||||
doicon -s 32 "${DISTDIR}/zygrib-icon.png"
|
|
||||||
make_wrapper "${PN}" "./bin/${MY_PN}" "/opt/${MY_PN}"
|
|
||||||
domenu "${FILESDIR}/zygrib.desktop"
|
|
||||||
|
|
||||||
if use maps; then
|
|
||||||
insinto "/opt/${MY_PN}"
|
|
||||||
doins -r "${WORKDIR}/data"
|
|
||||||
insinto "/opt/${MY_PN}/data/gis"
|
|
||||||
gzip "${WORKDIR}"/*.txt
|
|
||||||
doins "${WORKDIR}"/*.txt.gz
|
|
||||||
fi
|
|
||||||
}
|
|
@ -0,0 +1,36 @@
|
|||||||
|
diff --git a/SConstruct b/SConstruct
|
||||||
|
--- a/SConstruct
|
||||||
|
+++ b/SConstruct
|
||||||
|
@@ -1008,7 +1008,6 @@
|
||||||
|
# -Winvalid-pch Warn if a precompiled header (see Precompiled Headers) is found in the search path but can't be used.
|
||||||
|
env.Append( CCFLAGS=["-fPIC",
|
||||||
|
"-fno-strict-aliasing",
|
||||||
|
- "-ggdb",
|
||||||
|
"-pthread",
|
||||||
|
"-Wall",
|
||||||
|
"-Wsign-compare",
|
||||||
|
@@ -1016,13 +1015,13 @@
|
||||||
|
"-Winvalid-pch"] )
|
||||||
|
# env.Append( " -Wconversion" ) TODO: this doesn't really work yet
|
||||||
|
if linux or darwin:
|
||||||
|
- env.Append( CCFLAGS=["-pipe"] )
|
||||||
|
if not has_option("disable-warnings-as-errors"):
|
||||||
|
env.Append( CCFLAGS=["-Werror"] )
|
||||||
|
|
||||||
|
env.Append( CPPDEFINES=["_FILE_OFFSET_BITS=64"] )
|
||||||
|
- env.Append( CXXFLAGS=["-Wnon-virtual-dtor", "-Woverloaded-virtual"] )
|
||||||
|
env.Append( LINKFLAGS=["-fPIC", "-pthread"] )
|
||||||
|
+ env.Append( CXXFLAGS=os.environ['CXXFLAGS'] )
|
||||||
|
+ env.Append( LINKFLAGS=os.environ['LDFLAGS'] )
|
||||||
|
|
||||||
|
# SERVER-9761: Ensure early detection of missing symbols in dependent libraries at program
|
||||||
|
# startup.
|
||||||
|
@@ -1039,7 +1038,7 @@
|
||||||
|
if not darwin:
|
||||||
|
env.Append( LINKFLAGS=["-rdynamic"] )
|
||||||
|
|
||||||
|
- env.Append( LIBS=[] )
|
||||||
|
+ env.Append( LIBS=['pcre', 'pcrecpp', 'snappy', 'yaml-cpp'] )
|
||||||
|
|
||||||
|
#make scons colorgcc friendly
|
||||||
|
for key in ('HOME', 'TERM'):
|
@ -0,0 +1,83 @@
|
|||||||
|
--- a/src/mongo/shell/bench.cpp 2017-09-20 19:12:20.893056990 +0200
|
||||||
|
+++ b/src/mongo/shell/bench.cpp 2017-09-20 19:14:08.165060566 +0200
|
||||||
|
@@ -52,6 +52,9 @@
|
||||||
|
#include "mongo/util/time_support.h"
|
||||||
|
#include "mongo/util/version.h"
|
||||||
|
|
||||||
|
+#include <string>
|
||||||
|
+using namespace std;
|
||||||
|
+
|
||||||
|
// ---------------------------------
|
||||||
|
// ---- benchmarking system --------
|
||||||
|
// ---------------------------------
|
||||||
|
--- a/src/mongo/db/dbwebserver.cpp 2017-09-20 19:24:50.042081961 +0200
|
||||||
|
+++ b/src/mongo/db/dbwebserver.cpp 2017-09-20 19:26:20.240084968 +0200
|
||||||
|
@@ -58,6 +58,8 @@
|
||||||
|
#include "mongo/util/ramlog.h"
|
||||||
|
#include "mongo/util/version.h"
|
||||||
|
|
||||||
|
+#include <string>
|
||||||
|
+using namespace std;
|
||||||
|
|
||||||
|
namespace mongo {
|
||||||
|
|
||||||
|
--- a/src/mongo/db/matcher/expression_leaf.cpp 2017-09-20 19:27:59.009088260 +0200
|
||||||
|
+++ b/src/mongo/db/matcher/expression_leaf.cpp 2017-09-20 19:28:31.082089329 +0200
|
||||||
|
@@ -39,6 +39,9 @@
|
||||||
|
#include "mongo/db/jsobj.h"
|
||||||
|
#include "mongo/db/matcher/path.h"
|
||||||
|
|
||||||
|
+#include <string>
|
||||||
|
+using namespace std;
|
||||||
|
+
|
||||||
|
namespace mongo {
|
||||||
|
|
||||||
|
Status LeafMatchExpression::initPath(const StringData& path) {
|
||||||
|
--- a/src/mongo/db/repl/master_slave.cpp 2017-09-20 19:30:04.569092445 +0200
|
||||||
|
+++ b/src/mongo/db/repl/master_slave.cpp 2017-09-20 19:31:19.145094931 +0200
|
||||||
|
@@ -70,6 +70,9 @@
|
||||||
|
#include "mongo/util/exit.h"
|
||||||
|
#include "mongo/util/log.h"
|
||||||
|
|
||||||
|
+#include <string>
|
||||||
|
+using namespace std;
|
||||||
|
+
|
||||||
|
using boost::scoped_ptr;
|
||||||
|
using std::auto_ptr;
|
||||||
|
using std::cout;
|
||||||
|
--- a/src/mongo/util/net/miniwebserver.cpp 2017-09-20 19:32:55.368098138 +0200
|
||||||
|
+++ b/src/mongo/util/net/miniwebserver.cpp 2017-09-20 19:33:57.128100197 +0200
|
||||||
|
@@ -39,6 +39,9 @@
|
||||||
|
#include "mongo/util/hex.h"
|
||||||
|
#include "mongo/util/log.h"
|
||||||
|
|
||||||
|
+#include <string>
|
||||||
|
+using namespace std;
|
||||||
|
+
|
||||||
|
namespace mongo {
|
||||||
|
|
||||||
|
using boost::shared_ptr;
|
||||||
|
--- a/src/mongo/s/config.cpp 2017-09-20 19:42:45.614117812 +0200
|
||||||
|
+++ b/src/mongo/s/config.cpp 2017-09-20 19:43:28.278119234 +0200
|
||||||
|
@@ -60,6 +60,9 @@
|
||||||
|
#include "mongo/util/net/message.h"
|
||||||
|
#include "mongo/util/stringutils.h"
|
||||||
|
|
||||||
|
+#include <string>
|
||||||
|
+using namespace std;
|
||||||
|
+
|
||||||
|
namespace mongo {
|
||||||
|
|
||||||
|
using boost::scoped_ptr;
|
||||||
|
--- a/src/mongo/s/grid.cpp 2017-09-20 19:51:07.684134547 +0200
|
||||||
|
+++ b/src/mongo/s/grid.cpp 2017-09-20 19:51:43.436135739 +0200
|
||||||
|
@@ -55,6 +55,9 @@
|
||||||
|
#include "mongo/util/startup_test.h"
|
||||||
|
#include "mongo/util/stringutils.h"
|
||||||
|
|
||||||
|
+#include <string>
|
||||||
|
+using namespace std;
|
||||||
|
+
|
||||||
|
namespace mongo {
|
||||||
|
|
||||||
|
using std::endl;
|
@ -0,0 +1,283 @@
|
|||||||
|
diff -Nru mongodb-src-r3.2.16_orig/src/mongo/db/dbwebserver.cpp mongodb-src-r3.2.16/src/mongo/db/dbwebserver.cpp
|
||||||
|
--- mongodb-src-r3.2.16_orig/src/mongo/db/dbwebserver.cpp 2017-07-14 22:36:01.000000000 +0200
|
||||||
|
+++ mongodb-src-r3.2.16/src/mongo/db/dbwebserver.cpp 2017-08-01 15:43:55.860712772 +0200
|
||||||
|
@@ -69,6 +69,7 @@
|
||||||
|
using std::map;
|
||||||
|
using std::stringstream;
|
||||||
|
using std::vector;
|
||||||
|
+using std::string;
|
||||||
|
|
||||||
|
using namespace html;
|
||||||
|
|
||||||
|
diff -Nru mongodb-src-r3.2.16_orig/src/mongo/db/matcher/expression_leaf.cpp mongodb-src-r3.2.16/src/mongo/db/matcher/expression_leaf.cpp
|
||||||
|
--- mongodb-src-r3.2.16_orig/src/mongo/db/matcher/expression_leaf.cpp 2017-07-14 22:36:01.000000000 +0200
|
||||||
|
+++ mongodb-src-r3.2.16/src/mongo/db/matcher/expression_leaf.cpp 2017-08-01 15:46:17.070708001 +0200
|
||||||
|
@@ -200,7 +200,7 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
void ComparisonMatchExpression::toBSON(BSONObjBuilder* out) const {
|
||||||
|
- string opString = "";
|
||||||
|
+ std::string opString = "";
|
||||||
|
switch (matchType()) {
|
||||||
|
case LT:
|
||||||
|
opString = "$lt";
|
||||||
|
@@ -880,7 +880,7 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
void BitTestMatchExpression::toBSON(BSONObjBuilder* out) const {
|
||||||
|
- string opString = "";
|
||||||
|
+ std::string opString = "";
|
||||||
|
|
||||||
|
switch (matchType()) {
|
||||||
|
case BITS_ALL_SET:
|
||||||
|
diff -Nru mongodb-src-r3.2.16_orig/src/mongo/db/repl/master_slave.cpp mongodb-src-r3.2.16/src/mongo/db/repl/master_slave.cpp
|
||||||
|
--- mongodb-src-r3.2.16_orig/src/mongo/db/repl/master_slave.cpp 2017-07-14 22:36:01.000000000 +0200
|
||||||
|
+++ mongodb-src-r3.2.16/src/mongo/db/repl/master_slave.cpp 2017-08-01 15:54:45.140690837 +0200
|
||||||
|
@@ -161,7 +161,7 @@
|
||||||
|
|
||||||
|
BSONObjBuilder dbsNextPassBuilder;
|
||||||
|
int n = 0;
|
||||||
|
- for (set<string>::iterator i = addDbNextPass.begin(); i != addDbNextPass.end(); i++) {
|
||||||
|
+ for (set<std::string>::iterator i = addDbNextPass.begin(); i != addDbNextPass.end(); i++) {
|
||||||
|
n++;
|
||||||
|
dbsNextPassBuilder.appendBool(*i, 1);
|
||||||
|
}
|
||||||
|
@@ -170,7 +170,7 @@
|
||||||
|
|
||||||
|
BSONObjBuilder incompleteCloneDbsBuilder;
|
||||||
|
n = 0;
|
||||||
|
- for (set<string>::iterator i = incompleteCloneDbs.begin(); i != incompleteCloneDbs.end(); i++) {
|
||||||
|
+ for (set<std::string>::iterator i = incompleteCloneDbs.begin(); i != incompleteCloneDbs.end(); i++) {
|
||||||
|
n++;
|
||||||
|
incompleteCloneDbsBuilder.appendBool(*i, 1);
|
||||||
|
}
|
||||||
|
@@ -181,7 +181,7 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
void ReplSource::ensureMe(OperationContext* txn) {
|
||||||
|
- string myname = getHostName();
|
||||||
|
+ std::string myname = getHostName();
|
||||||
|
|
||||||
|
// local.me is an identifier for a server for getLastError w:2+
|
||||||
|
bool exists = Helpers::getSingleton(txn, "local.me", _me);
|
||||||
|
@@ -373,10 +373,10 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
virtual bool run(OperationContext* txn,
|
||||||
|
- const string& ns,
|
||||||
|
+ const std::string& ns,
|
||||||
|
BSONObj& cmdObj,
|
||||||
|
int options,
|
||||||
|
- string& errmsg,
|
||||||
|
+ std::string& errmsg,
|
||||||
|
BSONObjBuilder& result) {
|
||||||
|
HandshakeArgs handshake;
|
||||||
|
Status status = handshake.initialize(cmdObj);
|
||||||
|
@@ -393,7 +393,7 @@
|
||||||
|
} handshakeCmd;
|
||||||
|
|
||||||
|
bool replHandshake(DBClientConnection* conn, const OID& myRID) {
|
||||||
|
- string myname = getHostName();
|
||||||
|
+ std::string myname = getHostName();
|
||||||
|
|
||||||
|
BSONObjBuilder cmd;
|
||||||
|
cmd.append("handshake", myRID);
|
||||||
|
@@ -445,7 +445,7 @@
|
||||||
|
BSONElement e = i.next();
|
||||||
|
if (e.eoo())
|
||||||
|
break;
|
||||||
|
- string name = e.embeddedObject().getField("name").valuestr();
|
||||||
|
+ std::string name = e.embeddedObject().getField("name").valuestr();
|
||||||
|
if (!e.embeddedObject().getBoolField("empty")) {
|
||||||
|
if (name != "local") {
|
||||||
|
if (only.empty() || only == name) {
|
||||||
|
@@ -459,7 +459,7 @@
|
||||||
|
save(txn);
|
||||||
|
}
|
||||||
|
|
||||||
|
-void ReplSource::resyncDrop(OperationContext* txn, const string& db) {
|
||||||
|
+void ReplSource::resyncDrop(OperationContext* txn, const std::string& db) {
|
||||||
|
log() << "resync: dropping database " << db;
|
||||||
|
OldClientContext ctx(txn, db);
|
||||||
|
dropDatabase(txn, ctx.db());
|
||||||
|
@@ -502,13 +502,13 @@
|
||||||
|
|
||||||
|
static DatabaseIgnorer ___databaseIgnorer;
|
||||||
|
|
||||||
|
-void DatabaseIgnorer::doIgnoreUntilAfter(const string& db, const Timestamp& futureOplogTime) {
|
||||||
|
+void DatabaseIgnorer::doIgnoreUntilAfter(const std::string& db, const Timestamp& futureOplogTime) {
|
||||||
|
if (futureOplogTime > _ignores[db]) {
|
||||||
|
_ignores[db] = futureOplogTime;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
-bool DatabaseIgnorer::ignoreAt(const string& db, const Timestamp& currentOplogTime) {
|
||||||
|
+bool DatabaseIgnorer::ignoreAt(const std::string& db, const Timestamp& currentOplogTime) {
|
||||||
|
if (_ignores[db].isNull()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
@@ -598,7 +598,7 @@
|
||||||
|
|
||||||
|
// The database is present on the master and no conflicting databases
|
||||||
|
// are present on the master. Drop any local conflicts.
|
||||||
|
- for (set<string>::const_iterator i = duplicates.begin(); i != duplicates.end(); ++i) {
|
||||||
|
+ for (set<std::string>::const_iterator i = duplicates.begin(); i != duplicates.end(); ++i) {
|
||||||
|
___databaseIgnorer.doIgnoreUntilAfter(*i, lastTime);
|
||||||
|
incompleteCloneDbs.erase(*i);
|
||||||
|
addDbNextPass.erase(*i);
|
||||||
|
@@ -793,10 +793,10 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
void ReplSource::syncToTailOfRemoteLog() {
|
||||||
|
- string _ns = ns();
|
||||||
|
+ std::string _ns = ns();
|
||||||
|
BSONObjBuilder b;
|
||||||
|
if (!only.empty()) {
|
||||||
|
- b.appendRegex("ns", string("^") + pcrecpp::RE::QuoteMeta(only));
|
||||||
|
+ b.appendRegex("ns", std::string("^") + pcrecpp::RE::QuoteMeta(only));
|
||||||
|
}
|
||||||
|
BSONObj last = oplogReader.findOne(_ns.c_str(), Query(b.done()).sort(BSON("$natural" << -1)));
|
||||||
|
if (!last.isEmpty()) {
|
||||||
|
@@ -844,7 +844,7 @@
|
||||||
|
*/
|
||||||
|
int ReplSource::_sync_pullOpLog(OperationContext* txn, int& nApplied) {
|
||||||
|
int okResultCode = 1;
|
||||||
|
- string ns = string("local.oplog.$") + sourceName();
|
||||||
|
+ std::string ns = std::string("local.oplog.$") + sourceName();
|
||||||
|
LOG(2) << "sync_pullOpLog " << ns << " syncedTo:" << syncedTo.toStringLong() << '\n';
|
||||||
|
|
||||||
|
bool tailing = true;
|
||||||
|
@@ -864,7 +864,7 @@
|
||||||
|
BSONElement e = i.next();
|
||||||
|
if (e.eoo())
|
||||||
|
break;
|
||||||
|
- string name = e.embeddedObject().getField("name").valuestr();
|
||||||
|
+ std::string name = e.embeddedObject().getField("name").valuestr();
|
||||||
|
if (!e.embeddedObject().getBoolField("empty")) {
|
||||||
|
if (name != "local") {
|
||||||
|
if (only.empty() || only == name) {
|
||||||
|
@@ -888,7 +888,7 @@
|
||||||
|
if (!only.empty()) {
|
||||||
|
// note we may here skip a LOT of data table scanning, a lot of work for the master.
|
||||||
|
// maybe append "\\." here?
|
||||||
|
- query.appendRegex("ns", string("^") + pcrecpp::RE::QuoteMeta(only));
|
||||||
|
+ query.appendRegex("ns", std::string("^") + pcrecpp::RE::QuoteMeta(only));
|
||||||
|
}
|
||||||
|
BSONObj queryObj = query.done();
|
||||||
|
// e.g. queryObj = { ts: { $gte: syncedTo } }
|
||||||
|
@@ -907,7 +907,7 @@
|
||||||
|
|
||||||
|
// show any deferred database creates from a previous pass
|
||||||
|
{
|
||||||
|
- set<string>::iterator i = addDbNextPass.begin();
|
||||||
|
+ set<std::string>::iterator i = addDbNextPass.begin();
|
||||||
|
if (i != addDbNextPass.end()) {
|
||||||
|
BSONObjBuilder b;
|
||||||
|
b.append("ns", *i + '.');
|
||||||
|
@@ -938,7 +938,7 @@
|
||||||
|
BSONObj op = oplogReader.next();
|
||||||
|
BSONElement ts = op.getField("ts");
|
||||||
|
if (ts.type() != Date && ts.type() != bsonTimestamp) {
|
||||||
|
- string err = op.getStringField("$err");
|
||||||
|
+ std::string err = op.getStringField("$err");
|
||||||
|
if (!err.empty()) {
|
||||||
|
// 13051 is "tailable cursor requested on non capped collection"
|
||||||
|
if (op.getIntField("code") == 13051) {
|
||||||
|
@@ -1106,7 +1106,7 @@
|
||||||
|
|
||||||
|
// FIXME Handle cases where this db isn't on default port, or default port is spec'd in
|
||||||
|
// hostName.
|
||||||
|
- if ((string("localhost") == hostName || string("127.0.0.1") == hostName) &&
|
||||||
|
+ if ((std::string("localhost") == hostName || std::string("127.0.0.1") == hostName) &&
|
||||||
|
serverGlobalParams.port == ServerGlobalParams::DefaultDBPort) {
|
||||||
|
log() << "can't sync from self (localhost). sources configuration may be wrong." << endl;
|
||||||
|
sleepsecs(5);
|
||||||
|
@@ -1251,7 +1251,7 @@
|
||||||
|
if (s) {
|
||||||
|
stringstream ss;
|
||||||
|
ss << "sleep " << s << " sec before next pass";
|
||||||
|
- string msg = ss.str();
|
||||||
|
+ std::string msg = ss.str();
|
||||||
|
if (!serverGlobalParams.quiet)
|
||||||
|
log() << msg << endl;
|
||||||
|
ReplInfo r(msg.c_str());
|
||||||
|
diff -Nru mongodb-src-r3.2.16_orig/src/mongo/shell/bench.cpp mongodb-src-r3.2.16/src/mongo/shell/bench.cpp
|
||||||
|
--- mongodb-src-r3.2.16_orig/src/mongo/shell/bench.cpp 2017-07-14 22:36:01.000000000 +0200
|
||||||
|
+++ mongodb-src-r3.2.16/src/mongo/shell/bench.cpp 2017-08-01 16:20:20.864638957 +0200
|
||||||
|
@@ -674,7 +674,7 @@
|
||||||
|
invariant(bsonTemplateEvaluator.setId(_id) == BsonTemplateEvaluator::StatusSuccess);
|
||||||
|
|
||||||
|
if (_config->username != "") {
|
||||||
|
- string errmsg;
|
||||||
|
+ std::string errmsg;
|
||||||
|
if (!conn->auth("admin", _config->username, _config->password, errmsg)) {
|
||||||
|
uasserted(15931, "Authenticating to connection for _benchThread failed: " + errmsg);
|
||||||
|
}
|
||||||
|
@@ -920,7 +920,7 @@
|
||||||
|
|
||||||
|
if (!result["err"].eoo() && result["err"].type() == String &&
|
||||||
|
(_config->throwGLE || op.throwGLE))
|
||||||
|
- throw DBException((string) "From benchRun GLE" +
|
||||||
|
+ throw DBException((std::string) "From benchRun GLE" +
|
||||||
|
causedBy(result["err"].String()),
|
||||||
|
result["code"].eoo() ? 0 : result["code"].Int());
|
||||||
|
}
|
||||||
|
@@ -987,7 +987,7 @@
|
||||||
|
|
||||||
|
if (!result["err"].eoo() && result["err"].type() == String &&
|
||||||
|
(_config->throwGLE || op.throwGLE))
|
||||||
|
- throw DBException((string) "From benchRun GLE" +
|
||||||
|
+ throw DBException((std::string) "From benchRun GLE" +
|
||||||
|
causedBy(result["err"].String()),
|
||||||
|
result["code"].eoo() ? 0 : result["code"].Int());
|
||||||
|
}
|
||||||
|
@@ -1035,7 +1035,7 @@
|
||||||
|
|
||||||
|
if (!result["err"].eoo() && result["err"].type() == String &&
|
||||||
|
(_config->throwGLE || op.throwGLE))
|
||||||
|
- throw DBException((string) "From benchRun GLE " +
|
||||||
|
+ throw DBException((std::string) "From benchRun GLE " +
|
||||||
|
causedBy(result["err"].String()),
|
||||||
|
result["code"].eoo() ? 0 : result["code"].Int());
|
||||||
|
}
|
||||||
|
@@ -1136,7 +1136,7 @@
|
||||||
|
try {
|
||||||
|
std::unique_ptr<DBClientBase> conn(_config->createConnection());
|
||||||
|
if (!_config->username.empty()) {
|
||||||
|
- string errmsg;
|
||||||
|
+ std::string errmsg;
|
||||||
|
if (!conn->auth("admin", _config->username, _config->password, errmsg)) {
|
||||||
|
uasserted(15932, "Authenticating to connection for benchThread failed: " + errmsg);
|
||||||
|
}
|
||||||
|
@@ -1168,7 +1168,7 @@
|
||||||
|
std::unique_ptr<DBClientBase> conn(_config->createConnection());
|
||||||
|
// Must authenticate to admin db in order to run serverStatus command
|
||||||
|
if (_config->username != "") {
|
||||||
|
- string errmsg;
|
||||||
|
+ std::string errmsg;
|
||||||
|
if (!conn->auth("admin", _config->username, _config->password, errmsg)) {
|
||||||
|
uasserted(16704,
|
||||||
|
str::stream()
|
||||||
|
@@ -1204,7 +1204,7 @@
|
||||||
|
{
|
||||||
|
std::unique_ptr<DBClientBase> conn(_config->createConnection());
|
||||||
|
if (_config->username != "") {
|
||||||
|
- string errmsg;
|
||||||
|
+ std::string errmsg;
|
||||||
|
// this can only fail if admin access was revoked since start of run
|
||||||
|
if (!conn->auth("admin", _config->username, _config->password, errmsg)) {
|
||||||
|
uasserted(16705,
|
||||||
|
diff -Nru mongodb-src-r3.2.16_orig/src/mongo/util/net/miniwebserver.cpp mongodb-src-r3.2.16/src/mongo/util/net/miniwebserver.cpp
|
||||||
|
--- mongodb-src-r3.2.16_orig/src/mongo/util/net/miniwebserver.cpp 2017-07-14 22:36:01.000000000 +0200
|
||||||
|
+++ mongodb-src-r3.2.16/src/mongo/util/net/miniwebserver.cpp 2017-08-01 16:01:01.832678112 +0200
|
||||||
|
@@ -45,8 +45,9 @@
|
||||||
|
using std::endl;
|
||||||
|
using std::stringstream;
|
||||||
|
using std::vector;
|
||||||
|
+using std::string;
|
||||||
|
|
||||||
|
-MiniWebServer::MiniWebServer(const string& name, const string& ip, int port)
|
||||||
|
+MiniWebServer::MiniWebServer(const std::string& name, const std::string& ip, int port)
|
||||||
|
: Listener(name, ip, port, false) {}
|
||||||
|
|
||||||
|
string MiniWebServer::parseURL(const char* buf) {
|
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/SConstruct b/SConstruct
|
||||||
|
index df92e41659..2c387d5a24 100644
|
||||||
|
--- a/SConstruct
|
||||||
|
+++ b/SConstruct
|
||||||
|
@@ -2831,8 +2831,6 @@ def doConfigure(myenv):
|
||||||
|
if use_system_version_of_library("boost"):
|
||||||
|
if not conf.CheckCXXHeader( "boost/filesystem/operations.hpp" ):
|
||||||
|
myenv.ConfError("can't find boost headers")
|
||||||
|
- if not conf.CheckBoostMinVersion():
|
||||||
|
- myenv.ConfError("system's version of boost is too old. version 1.49 or better required")
|
||||||
|
|
||||||
|
# Note that on Windows with using-system-boost builds, the following
|
||||||
|
# FindSysLibDep calls do nothing useful (but nothing problematic either)
|
@ -0,0 +1,189 @@
|
|||||||
|
# Copyright 1999-2017 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
SCONS_MIN_VERSION="2.3.0"
|
||||||
|
CHECKREQS_DISK_BUILD="2400M"
|
||||||
|
CHECKREQS_DISK_USR="512M"
|
||||||
|
CHECKREQS_MEMORY="1024M"
|
||||||
|
|
||||||
|
inherit eutils flag-o-matic multilib pax-utils scons-utils systemd toolchain-funcs user versionator check-reqs
|
||||||
|
|
||||||
|
MY_P=${PN}-src-r${PV/_rc/-rc}
|
||||||
|
|
||||||
|
DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
|
||||||
|
HOMEPAGE="http://www.mongodb.org"
|
||||||
|
SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="AGPL-3 Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="debug kerberos libressl mms-agent ssl test +tools"
|
||||||
|
|
||||||
|
RDEPEND=">=app-arch/snappy-1.1.3
|
||||||
|
>=dev-cpp/yaml-cpp-0.5.3
|
||||||
|
>=dev-libs/boost-1.60[threads(+)]
|
||||||
|
>=dev-libs/libpcre-8.39[cxx]
|
||||||
|
dev-libs/snowball-stemmer
|
||||||
|
net-libs/libpcap
|
||||||
|
>=sys-libs/zlib-1.2.8
|
||||||
|
mms-agent? ( app-admin/mms-agent )
|
||||||
|
ssl? (
|
||||||
|
!libressl? ( >=dev-libs/openssl-1.0.1g:0= )
|
||||||
|
libressl? ( dev-libs/libressl:0= )
|
||||||
|
)"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
>=sys-devel/gcc-5.3.0:*
|
||||||
|
sys-libs/ncurses
|
||||||
|
sys-libs/readline
|
||||||
|
debug? ( dev-util/valgrind )
|
||||||
|
kerberos? ( dev-libs/cyrus-sasl[kerberos] )
|
||||||
|
test? (
|
||||||
|
dev-python/pymongo
|
||||||
|
dev-python/pyyaml
|
||||||
|
)"
|
||||||
|
PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/${PN}-3.2.10-boost-1.62.patch"
|
||||||
|
"${FILESDIR}/${PN}-3.4.0-fix-scons.patch"
|
||||||
|
"${FILESDIR}/${PN}-3.4.4-Replace-string-with-explicit-std-string.patch"
|
||||||
|
"${FILESDIR}/${PN}-3.4.6-sysmacros-include.patch"
|
||||||
|
"${FILESDIR}/${PN}-3.4.7-no-boost-check.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
S=${WORKDIR}/${MY_P}
|
||||||
|
|
||||||
|
pkg_pretend() {
|
||||||
|
if [[ ${REPLACING_VERSIONS} < 3.0 ]]; then
|
||||||
|
ewarn "To upgrade from a version earlier than the 3.0-series, you must"
|
||||||
|
ewarn "successively upgrade major releases until you have upgraded"
|
||||||
|
ewarn "to 3.2-series. Then upgrade to 3.4 series."
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
enewgroup mongodb
|
||||||
|
enewuser mongodb -1 -1 /var/lib/${PN} mongodb
|
||||||
|
|
||||||
|
# Maintainer notes
|
||||||
|
#
|
||||||
|
# --use-system-tcmalloc is strongly NOT recommended:
|
||||||
|
# https://www.mongodb.org/about/contributors/tutorial/build-mongodb-from-source/
|
||||||
|
|
||||||
|
scons_opts=(
|
||||||
|
CC="$(tc-getCC)"
|
||||||
|
CXX="$(tc-getCXX)"
|
||||||
|
|
||||||
|
--disable-warnings-as-errors
|
||||||
|
--use-system-boost
|
||||||
|
--use-system-pcre
|
||||||
|
--use-system-snappy
|
||||||
|
--use-system-stemmer
|
||||||
|
--use-system-yaml
|
||||||
|
--use-system-zlib
|
||||||
|
)
|
||||||
|
|
||||||
|
# wiredtiger not supported on 32bit platforms #572166
|
||||||
|
use x86 && scons_opts+=( --wiredtiger=off )
|
||||||
|
|
||||||
|
if use debug; then
|
||||||
|
scons_opts+=( --dbg=on )
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use prefix; then
|
||||||
|
scons_opts+=(
|
||||||
|
--cpppath="${EPREFIX}/usr/include"
|
||||||
|
--libpath="${EPREFIX}/usr/$(get_libdir)"
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use kerberos; then
|
||||||
|
scons_opts+=( --use-sasl-client )
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use ssl; then
|
||||||
|
scons_opts+=( --ssl )
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
# respect mongoDB upstream's basic recommendations
|
||||||
|
# see bug #536688 and #526114
|
||||||
|
if ! use debug; then
|
||||||
|
filter-flags '-m*'
|
||||||
|
filter-flags '-O?'
|
||||||
|
fi
|
||||||
|
escons "${scons_opts[@]}" core tools
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr
|
||||||
|
|
||||||
|
local x
|
||||||
|
for x in /var/{lib,log}/${PN}; do
|
||||||
|
keepdir "${x}"
|
||||||
|
fowners mongodb:mongodb "${x}"
|
||||||
|
done
|
||||||
|
|
||||||
|
doman debian/mongo*.1
|
||||||
|
dodoc README docs/building.md
|
||||||
|
|
||||||
|
newinitd "${FILESDIR}/${PN}.initd-r2" ${PN}
|
||||||
|
newconfd "${FILESDIR}/${PN}.confd-r2" ${PN}
|
||||||
|
newinitd "${FILESDIR}/${PN/db/s}.initd-r2" ${PN/db/s}
|
||||||
|
newconfd "${FILESDIR}/${PN/db/s}.confd-r2" ${PN/db/s}
|
||||||
|
|
||||||
|
insinto /etc
|
||||||
|
newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf
|
||||||
|
newins "${FILESDIR}/${PN/db/s}.conf-r2" ${PN/db/s}.conf
|
||||||
|
|
||||||
|
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||||
|
|
||||||
|
insinto /etc/logrotate.d/
|
||||||
|
newins "${FILESDIR}/${PN}.logrotate" ${PN}
|
||||||
|
|
||||||
|
# see bug #526114
|
||||||
|
pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos}
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_preinst() {
|
||||||
|
# wrt bug #461466
|
||||||
|
if [[ "$(get_libdir)" == "lib64" ]]; then
|
||||||
|
rmdir "${ED}"/usr/lib/ &>/dev/null
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
# this one test fails
|
||||||
|
rm jstests/core/repl_write_threads_start_param.js || die
|
||||||
|
|
||||||
|
./buildscripts/resmoke.py --dbpathPrefix=test --suites core || die "Tests failed"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
local v
|
||||||
|
for v in ${REPLACING_VERSIONS}; do
|
||||||
|
if ! version_is_at_least 3.0 ${v}; then
|
||||||
|
ewarn "!! IMPORTANT !!"
|
||||||
|
ewarn " "
|
||||||
|
ewarn "${PN} configuration files have changed !"
|
||||||
|
ewarn " "
|
||||||
|
ewarn "Make sure you migrate from /etc/conf.d/${PN} to the new YAML standard in /etc/${PN}.conf"
|
||||||
|
ewarn " http://docs.mongodb.org/manual/reference/configuration-options/"
|
||||||
|
ewarn " "
|
||||||
|
ewarn "Make sure you also follow the upgrading process :"
|
||||||
|
ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/"
|
||||||
|
ewarn " "
|
||||||
|
ewarn "MongoDB 3.0 introduces the WiredTiger storage engine."
|
||||||
|
ewarn "WiredTiger is incompatible with MMAPv1 and you need to dump/reload your data if you want to use it."
|
||||||
|
ewarn "Once you have your data dumped, you need to set storage.engine: wiredTiger in /etc/${PN}.conf"
|
||||||
|
ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/#change-storage-engine-to-wiredtiger"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
ewarn "Make sure to read the release notes and follow the upgrade process:"
|
||||||
|
ewarn " https://docs.mongodb.org/manual/release-notes/3.4/"
|
||||||
|
ewarn " https://docs.mongodb.com/manual/release-notes/3.4/#upgrade-procedures"
|
||||||
|
}
|
@ -1,464 +0,0 @@
|
|||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="6"
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
|
|
||||||
|
|
||||||
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_major_version)
|
|
||||||
|
|
||||||
MY_PV=${PV/_/}
|
|
||||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
|
||||||
|
|
||||||
SRC_URI="mirror://postgresql/source/v${MY_PV}/postgresql-${MY_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 systemd ssl static-libs tcl threads uuid
|
|
||||||
xml zlib"
|
|
||||||
|
|
||||||
for lingua in ${LINGUAS}; do
|
|
||||||
IUSE+=" linguas_${lingua}"
|
|
||||||
done
|
|
||||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
|
||||||
|
|
||||||
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-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= )
|
|
||||||
server? ( systemd? ( sys-apps/systemd ) )
|
|
||||||
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 || eapply "${FILESDIR}/${PN}-${SLOT}beta2-no-server.patch"
|
|
||||||
|
|
||||||
if use pam ; then
|
|
||||||
sed -e "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \
|
|
||||||
-i src/backend/libpq/auth.c || \
|
|
||||||
die 'PGSQL_PAM_SERVICE rename failed.'
|
|
||||||
fi
|
|
||||||
|
|
||||||
eapply_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) \
|
|
||||||
$(usex server "$(use_with systemd)" '--without-systemd') \
|
|
||||||
$(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
|
|
||||||
serverman=(
|
|
||||||
initdb
|
|
||||||
pg_{archivecleanup,controldata,ctl,resetwal,rewind,standby}
|
|
||||||
pg_{test_{fsync,timing},upgrade,waldump}
|
|
||||||
post{gres,master}
|
|
||||||
)
|
|
||||||
for m in ${serverman[@]} ; do
|
|
||||||
rm "${ED}/usr/share/postgresql-${SLOT}/man/man1/${m}.1"
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
docompress /usr/share/postgresql-${SLOT}/man/man{1,3,7}
|
|
||||||
|
|
||||||
# Create slot specific man pages
|
|
||||||
local bn f mansec slotted_name
|
|
||||||
for mansec in 1 3 7 ; do
|
|
||||||
local rel_manpath="../../postgresql-${SLOT}/man/man${mansec}"
|
|
||||||
|
|
||||||
mkdir -p "${ED}"/usr/share/man/man${mansec} || die "making man dir"
|
|
||||||
pushd "${ED}"/usr/share/man/man${mansec} > /dev/null || die "pushd failed"
|
|
||||||
|
|
||||||
for f in "${ED}/usr/share/postgresql-${SLOT}/man/man${mansec}"/* ; do
|
|
||||||
bn=$(basename "${f}")
|
|
||||||
slotted_name=${bn%.${mansec}}${SLOT}.${mansec}
|
|
||||||
case ${bn} in
|
|
||||||
TABLE.7|WITH.7)
|
|
||||||
echo ".so ${rel_manpath}/SELECT.7" > ${slotted_name}
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo ".so ${rel_manpath}/${bn}" > ${slotted_name}
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
popd > /dev/null
|
|
||||||
done
|
|
||||||
|
|
||||||
insinto /etc/postgresql-${SLOT}
|
|
||||||
newins src/bin/psql/psqlrc.sample psqlrc
|
|
||||||
|
|
||||||
use static-libs || find "${ED}" -name '*.a' -delete
|
|
||||||
|
|
||||||
local f bn
|
|
||||||
for f in $(find "${ED}/usr/$(get_libdir)/postgresql-${SLOT}/bin" \
|
|
||||||
-mindepth 1 -maxdepth 1)
|
|
||||||
do
|
|
||||||
bn=$(basename "${f}")
|
|
||||||
# Temporarily tack on tmp to workaround a file collision
|
|
||||||
# issue. This is only necessary for 9.7 and earlier. 10 never
|
|
||||||
# had this issue.
|
|
||||||
dosym "../$(get_libdir)/postgresql-${SLOT}/bin/${bn}" \
|
|
||||||
"/usr/bin/${bn}${SLOT/.}"
|
|
||||||
done
|
|
||||||
|
|
||||||
if use doc ; then
|
|
||||||
docinto html
|
|
||||||
dodoc doc/src/sgml/html/*
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use server; then
|
|
||||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
|
||||||
"${FILESDIR}/${PN}.confd-9.3" | newconfd - ${PN}-${SLOT}
|
|
||||||
|
|
||||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
|
||||||
"${FILESDIR}/${PN}.init-9.3-r1" | newinitd - ${PN}-${SLOT}
|
|
||||||
|
|
||||||
if use systemd; then
|
|
||||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
|
||||||
"${FILESDIR}/${PN}.service-9.6" | \
|
|
||||||
systemd_newunit - ${PN}-${SLOT}.service
|
|
||||||
newbin "${FILESDIR}"/${PN}-check-db-dir ${PN}-${SLOT}-check-db-dir
|
|
||||||
fi
|
|
||||||
|
|
||||||
use pam && pamd_mimic system-auth ${PN}-${SLOT} auth account session
|
|
||||||
|
|
||||||
if use prefix ; then
|
|
||||||
keepdir /run/postgresql
|
|
||||||
fperms 0775 /run/postgresql
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
postgresql-config update
|
|
||||||
|
|
||||||
elog "If you need a global psqlrc-file, you can place it in:"
|
|
||||||
elog " ${EROOT%/}/etc/postgresql-${SLOT}/"
|
|
||||||
|
|
||||||
if use server ; then
|
|
||||||
elog
|
|
||||||
elog "Gentoo specific documentation:"
|
|
||||||
elog "https://wiki.gentoo.org/wiki/PostgreSQL"
|
|
||||||
elog
|
|
||||||
elog "Official documentation:"
|
|
||||||
elog "http://www.postgresql.org/docs/${SLOT}/static/index.html"
|
|
||||||
elog
|
|
||||||
elog "The default location of the Unix-domain socket is:"
|
|
||||||
elog " ${EROOT%/}/run/postgresql/"
|
|
||||||
elog
|
|
||||||
elog "Before initializing the database, you may want to edit PG_INITDB_OPTS"
|
|
||||||
elog "so that it contains your preferred locale in:"
|
|
||||||
elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
|
||||||
elog
|
|
||||||
elog "Then, execute the following command to setup the initial database"
|
|
||||||
elog "environment:"
|
|
||||||
elog " emerge --config =${CATEGORY}/${PF}"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_prerm() {
|
|
||||||
if use server && [[ -z ${REPLACED_BY_VERSION} ]] ; then
|
|
||||||
ewarn "Have you dumped and/or migrated the ${SLOT} database cluster?"
|
|
||||||
ewarn "\thttps://wiki.gentoo.org/wiki/PostgreSQL/QuickStart#Migrating_PostgreSQL"
|
|
||||||
|
|
||||||
ebegin "Resuming removal in 10 seconds (Control-C to cancel)"
|
|
||||||
sleep 10
|
|
||||||
eend 0
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
postgresql-config update
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_config() {
|
|
||||||
use server || die "USE flag 'server' not enabled. Nothing to configure."
|
|
||||||
|
|
||||||
[[ -f "${EROOT%/}/etc/conf.d/postgresql-${SLOT}" ]] \
|
|
||||||
&& source "${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
|
||||||
[[ -z "${PGDATA}" ]] && PGDATA="${EROOT%/}/etc/postgresql-${SLOT}/"
|
|
||||||
[[ -z "${DATA_DIR}" ]] \
|
|
||||||
&& DATA_DIR="${EROOT%/}/var/lib/postgresql/${SLOT}/data"
|
|
||||||
|
|
||||||
# environment.bz2 may not contain the same locale as the current system
|
|
||||||
# locale. Unset and source from the current system locale.
|
|
||||||
if [ -f "${EROOT%/}/etc/env.d/02locale" ]; then
|
|
||||||
unset LANG
|
|
||||||
unset LC_CTYPE
|
|
||||||
unset LC_NUMERIC
|
|
||||||
unset LC_TIME
|
|
||||||
unset LC_COLLATE
|
|
||||||
unset LC_MONETARY
|
|
||||||
unset LC_MESSAGES
|
|
||||||
unset LC_ALL
|
|
||||||
source "${EROOT%/}/etc/env.d/02locale"
|
|
||||||
[ -n "${LANG}" ] && export LANG
|
|
||||||
[ -n "${LC_CTYPE}" ] && export LC_CTYPE
|
|
||||||
[ -n "${LC_NUMERIC}" ] && export LC_NUMERIC
|
|
||||||
[ -n "${LC_TIME}" ] && export LC_TIME
|
|
||||||
[ -n "${LC_COLLATE}" ] && export LC_COLLATE
|
|
||||||
[ -n "${LC_MONETARY}" ] && export LC_MONETARY
|
|
||||||
[ -n "${LC_MESSAGES}" ] && export LC_MESSAGES
|
|
||||||
[ -n "${LC_ALL}" ] && export LC_ALL
|
|
||||||
fi
|
|
||||||
|
|
||||||
einfo "You can modify the paths and options passed to initdb by editing:"
|
|
||||||
einfo " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
|
||||||
einfo
|
|
||||||
einfo "Information on options that can be passed to initdb are found at:"
|
|
||||||
einfo " http://www.postgresql.org/docs/${SLOT}/static/creating-cluster.html"
|
|
||||||
einfo " http://www.postgresql.org/docs/${SLOT}/static/app-initdb.html"
|
|
||||||
einfo
|
|
||||||
einfo "PG_INITDB_OPTS is currently set to:"
|
|
||||||
if [[ -z "${PG_INITDB_OPTS}" ]] ; then
|
|
||||||
einfo " (none)"
|
|
||||||
else
|
|
||||||
einfo " ${PG_INITDB_OPTS}"
|
|
||||||
fi
|
|
||||||
einfo
|
|
||||||
einfo "Configuration files will be installed to:"
|
|
||||||
einfo " ${PGDATA}"
|
|
||||||
einfo
|
|
||||||
einfo "The database cluster will be created in:"
|
|
||||||
einfo " ${DATA_DIR}"
|
|
||||||
einfo
|
|
||||||
|
|
||||||
ebegin "Continuing initialization in 5 seconds (Control-C to cancel)"
|
|
||||||
sleep 5
|
|
||||||
eend 0
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
# unix_socket_directory has no effect in postgresql.conf as it's
|
|
||||||
# overridden in the initscript
|
|
||||||
sed '/^#unix_socket_directories/,+1d' -i "${PGDATA%/}"/postgresql.conf
|
|
||||||
|
|
||||||
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
|
|
||||||
if ! use systemd; then
|
|
||||||
einfo "The PostgreSQL server, by default, will log events to:"
|
|
||||||
einfo " ${DATA_DIR%/}/postmaster.log"
|
|
||||||
einfo
|
|
||||||
fi
|
|
||||||
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}"
|
|
||||||
elif use systemd; then
|
|
||||||
einfo "You should use the 'postgresql-${SLOT}.service' unit to run PostgreSQL"
|
|
||||||
einfo "instead of 'pg_ctl'."
|
|
||||||
else
|
|
||||||
einfo "You should use the '${EROOT%/}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL"
|
|
||||||
einfo "instead of 'pg_ctl'."
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
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,66 @@
|
|||||||
|
# Copyright 1999-2017 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI="6"
|
||||||
|
JAVA_PKG_IUSE="doc source"
|
||||||
|
|
||||||
|
inherit java-pkg-2 java-pkg-simple
|
||||||
|
|
||||||
|
DESCRIPTION="Google's Protocol Buffers - Java bindings"
|
||||||
|
HOMEPAGE="https://developers.google.com/protocol-buffers/ https://github.com/google/protobuf"
|
||||||
|
SRC_URI="https://github.com/google/protobuf/archive/v${PV}.tar.gz -> protobuf-${PV}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0/14"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~sh ~x86 ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos"
|
||||||
|
IUSE="nano"
|
||||||
|
|
||||||
|
# Protobuf is only a build-time dep, but depends on the exact same version
|
||||||
|
# (excluding revision), since we are using the same tarball.
|
||||||
|
# But probably same subslot is sufficient.
|
||||||
|
DEPEND=">=virtual/jdk-1.7
|
||||||
|
~dev-libs/protobuf-${PV}"
|
||||||
|
|
||||||
|
RDEPEND=">=virtual/jre-1.7
|
||||||
|
!<dev-libs/protobuf-3[java(-)]"
|
||||||
|
|
||||||
|
S="${WORKDIR}/protobuf-${PV}"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
java-pkg-2_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
pushd "${S}/java" >/dev/null || die
|
||||||
|
einfo "Compiling Java library ..."
|
||||||
|
"${EPREFIX}"/usr/bin/protoc --java_out=core/src/main/java -I../src ../src/google/protobuf/descriptor.proto || die
|
||||||
|
JAVA_SRC_DIR="${S}/java/core/src/main/java"
|
||||||
|
JAVA_JAR_FILENAME="protobuf.jar"
|
||||||
|
java-pkg-simple_src_compile
|
||||||
|
popd >/dev/null || die
|
||||||
|
if use nano; then
|
||||||
|
einfo "Compiling Java Nano library ..."
|
||||||
|
pushd "${S}/javanano" >/dev/null || die
|
||||||
|
"${EPREFIX}"/usr/bin/protoc --java_out=src/main/java -I../src ../src/google/protobuf/descriptor.proto || die
|
||||||
|
JAVA_SRC_DIR="${S}/javanano/src/main/java"
|
||||||
|
JAVA_GENTOO_CLASSPATH_EXTRA="${S}/java/core/src/main/java/"
|
||||||
|
JAVA_JAR_FILENAME="protobuf-nano.jar"
|
||||||
|
java-pkg-simple_src_compile
|
||||||
|
popd >/dev/null || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
JAVA_JAR_FILENAME="${S}/java/protobuf.jar"
|
||||||
|
JAVA_SRC_DIR="${S}/java/core/src/main/java"
|
||||||
|
if use nano; then
|
||||||
|
JAVA_JAR_FILENAME="${JAVA_JAR_FILENAME} ${S}/javanano/protobuf-nano.jar"
|
||||||
|
JAVA_SRC_DIR="${JAVA_SRC_DIR} ${S}/javanano/src/main/java"
|
||||||
|
fi
|
||||||
|
mv "${S}/java/target" . || die
|
||||||
|
if use nano; then
|
||||||
|
cp -Rvf "${S}/javanano/target" . || die
|
||||||
|
fi
|
||||||
|
java-pkg-simple_src_install
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue