Removed unifi & mongodb.
This commit is contained in:
parent
0e916b5c4a
commit
156327194a
|
@ -1,7 +0,0 @@
|
||||||
AUX mongodb-3.4.0-fix-scons.patch 1411 BLAKE2B 6e5975b70ec7f281ea2cd101b16ee2849762fa1dd8427522eb3b01cd1738e60ece013bf23d07c180c58af024aebd141ca7fdf80bc240701f48556da46d3787ab SHA512 2e29c91a22663259d2f5413fbb2652702bceb122899e50a8969fb82d74a64a78649e79b005e20e6640740c089b1cee19080890eb8d9344c2ce355a977146b770
|
|
||||||
AUX mongodb-3.4.6-sysmacros-include.patch 1419 BLAKE2B f07ab093f13ea2b9675538dc99e2e58f85019edffad05bbbf3032f85f8ef881020cc9bf25bc62ca13344e7b8b7dd3b04954c76974c512a41ea5a7a2045de2b34 SHA512 ab269ec003b74848f981021f5eb09e38216d75dd9d1b8a155068b2a335d9ec9d1f5f575028ae9b4b0d8745d15e464cb05b70aabc6c28c984115574c6747afc05
|
|
||||||
AUX mongodb-3.4.7-no-boost-check.patch 641 BLAKE2B 0dc3a426b28cd80d7b3361ff9c6747aff64dd27c1bc01a9717c2dd1c160b66f53feb72fd2ead385c220ebe92a8c7b8fa6b04fb3fa8437dba17d5f8346665f6b8 SHA512 812eaaadb6f265cfc904e8f3a7ae8276e42e3968529914179efab5e44f1951ab46ac3bbcfb259f924b20a8ca61d2ebcf72b7103ea9d5f25594ff8e9e3e85836b
|
|
||||||
DIST mongodb-src-r3.4.16.tar.gz 40093657 BLAKE2B 7123444dbdd0b2ad3adfb3391e0177d33c1b6c6a4ea83027821c564faad047a736e52926bc15c58bef59c18282436e913fd3bc9963705e030da01356f83ea367 SHA512 e22eb1fe2a832fed8305200614988c5ecfd619cee44fe2263bffa151732c0e26584084e64065dbc65152be6e5c1767a538193770359bea92f3703c72239075db
|
|
||||||
DIST mongodb-src-r3.4.23.tar.gz 40176687 BLAKE2B 1db9a2a9f409facb25e5fe2d481b757d9baaf2afccbb5a48aef6cf9e2a7a7d256c55faa7ccd0c1fef302703b88772a42a8b155deb70a08f2a99ae94779569b19 SHA512 01931d3701a9ed3109132cf3106a6f959f3a393e71284537959095f853cdad5c8b17eebddd4dc1d6a8cb4f5af8393b0bda62034318aa78fd5f656589449f7eb4
|
|
||||||
EBUILD mongodb-3.4.16.ebuild 4085 BLAKE2B 2dad9e885c427855e4fe77da32e7141b16b17b3d5555a1e3e118279f95d80297fe0d6829a6bc19d3d3edfdf388ee9ff2f1fd925508d3b8b985f569500d2f95f2 SHA512 3b70f4a271a9fe41d9d384289c5812bd4abbd60b811a49909882c2e684b65de31f39a5b84320fed28795eb376c33fa2291ec0dc068b34229a6d255b73ee62922
|
|
||||||
EBUILD mongodb-3.4.23.ebuild 4085 BLAKE2B 2dad9e885c427855e4fe77da32e7141b16b17b3d5555a1e3e118279f95d80297fe0d6829a6bc19d3d3edfdf388ee9ff2f1fd925508d3b8b985f569500d2f95f2 SHA512 3b70f4a271a9fe41d9d384289c5812bd4abbd60b811a49909882c2e684b65de31f39a5b84320fed28795eb376c33fa2291ec0dc068b34229a6d255b73ee62922
|
|
|
@ -1,35 +0,0 @@
|
||||||
--- a/SConstruct 2016-12-27 11:10:06.801949538 +0100
|
|
||||||
+++ b/SConstruct 2016-12-27 11:12:40.426407713 +0100
|
|
||||||
@@ -1557,7 +1557,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=["-fno-omit-frame-pointer",
|
|
||||||
"-fno-strict-aliasing",
|
|
||||||
- "-ggdb",
|
|
||||||
"-pthread",
|
|
||||||
"-Wall",
|
|
||||||
"-Wsign-compare",
|
|
||||||
@@ -1568,8 +1567,9 @@
|
|
||||||
if not has_option("disable-warnings-as-errors"):
|
|
||||||
env.Append( CCFLAGS=["-Werror"] )
|
|
||||||
|
|
||||||
- env.Append( CXXFLAGS=["-Woverloaded-virtual"] )
|
|
||||||
env.Append( LINKFLAGS=["-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.
|
|
||||||
@@ -1579,10 +1579,10 @@
|
|
||||||
env.Append( LINKFLAGS=["-Wl,-z,now"] )
|
|
||||||
env.Append( LINKFLAGS=["-rdynamic"] )
|
|
||||||
|
|
||||||
- env.Append( LIBS=[] )
|
|
||||||
+ env.Append( LIBS=['pcre', 'pcrecpp', 'snappy', 'yaml-cpp'] )
|
|
||||||
|
|
||||||
- #make scons colorgcc friendly
|
|
||||||
- for key in ('HOME', 'TERM'):
|
|
||||||
+ #make scons colorgcc, distcc, ccache friendly
|
|
||||||
+ for key in ('HOME', 'PATH', 'TERM'):
|
|
||||||
try:
|
|
||||||
env['ENV'][key] = os.environ[key]
|
|
||||||
except KeyError:
|
|
|
@ -1,38 +0,0 @@
|
||||||
From e245cac2b3c18015dee8caddd449532785d15c2b Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jason Carey <jcarey@argv.me>
|
|
||||||
Date: Mon, 26 Jun 2017 11:09:10 -0400
|
|
||||||
Subject: [PATCH] SERVER-29855 Pull major/minor from sys/sysmacros.h
|
|
||||||
|
|
||||||
Per newer versions of glibc:
|
|
||||||
|
|
||||||
----
|
|
||||||
error: In the GNU C Library, "major" is defined
|
|
||||||
by <sys/sysmacros.h>. For historical compatibility, it is
|
|
||||||
currently defined by <sys/types.h> as well, but we plan to
|
|
||||||
remove this soon. To use "major", include <sys/sysmacros.h>
|
|
||||||
directly. If you did not intend to use a system-defined macro
|
|
||||||
"major", you should undefine it after including <sys/types.h>. [-Werror]
|
|
||||||
string path = str::stream() << "/sys/dev/block/" << major(dev) << ':' << minor(dev)
|
|
||||||
----
|
|
||||||
|
|
||||||
Including <sys/sysmacros.h> appears to be the correct solution to quiet
|
|
||||||
the warning
|
|
||||||
---
|
|
||||||
src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp | 4 ++++
|
|
||||||
1 file changed, 4 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp b/src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp
|
|
||||||
index 5a784b25dc7..c43e148d3f4 100644
|
|
||||||
--- a/src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp
|
|
||||||
+++ b/src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp
|
|
||||||
@@ -36,6 +36,10 @@
|
|
||||||
#include <boost/filesystem/path.hpp>
|
|
||||||
#include <fstream>
|
|
||||||
|
|
||||||
+#ifdef __linux__
|
|
||||||
+#include <sys/sysmacros.h>
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
#include "mongo/db/mongod_options.h"
|
|
||||||
#include "mongo/db/storage/mmap_v1/data_file_sync.h"
|
|
||||||
#include "mongo/db/storage/mmap_v1/dur.h"
|
|
|
@ -1,13 +0,0 @@
|
||||||
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)
|
|
|
@ -1,160 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python2_7 )
|
|
||||||
|
|
||||||
SCONS_MIN_VERSION="2.3.0"
|
|
||||||
CHECKREQS_DISK_BUILD="2400M"
|
|
||||||
CHECKREQS_DISK_USR="512M"
|
|
||||||
CHECKREQS_MEMORY="1024M"
|
|
||||||
|
|
||||||
inherit check-reqs eapi7-ver eutils flag-o-matic multilib multiprocessing pax-utils python-single-r1 scons-utils systemd toolchain-funcs user
|
|
||||||
|
|
||||||
MY_P=${PN}-src-r${PV/_rc/-rc}
|
|
||||||
|
|
||||||
DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
|
|
||||||
HOMEPAGE="https://www.mongodb.com"
|
|
||||||
SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="AGPL-3 Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64"
|
|
||||||
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.41[cxx]
|
|
||||||
dev-libs/snowball-stemmer
|
|
||||||
net-libs/libpcap
|
|
||||||
>=sys-libs/zlib-1.2.8:=
|
|
||||||
kerberos? ( dev-libs/cyrus-sasl[kerberos] )
|
|
||||||
mms-agent? ( app-admin/mms-agent )
|
|
||||||
ssl? (
|
|
||||||
!libressl? ( >=dev-libs/openssl-1.0.1g:0= )
|
|
||||||
libressl? ( dev-libs/libressl:0= )
|
|
||||||
)"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
${PYTHON_DEPS}
|
|
||||||
dev-util/scons
|
|
||||||
sys-libs/ncurses:0=
|
|
||||||
sys-libs/readline:0=
|
|
||||||
debug? ( dev-util/valgrind )
|
|
||||||
test? (
|
|
||||||
dev-python/pymongo[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
|
||||||
)"
|
|
||||||
PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/${PN}-3.4.0-fix-scons.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 [[ -n ${REPLACING_VERSIONS} ]]; then
|
|
||||||
if ver_test "$REPLACING_VERSIONS" -lt 3.2; then
|
|
||||||
ewarn "To upgrade from a version earlier than the 3.2-series, you must"
|
|
||||||
ewarn "successively upgrade major releases until you have upgraded"
|
|
||||||
ewarn "to 3.2-series. Then upgrade to 3.4 series."
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup mongodb
|
|
||||||
enewuser mongodb -1 -1 /var/lib/${PN} mongodb
|
|
||||||
|
|
||||||
python-single-r1_pkg_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
|
|
||||||
# remove bundled libs
|
|
||||||
rm -r src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*} || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
# https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source
|
|
||||||
# --use-system-icu fails tests
|
|
||||||
# --use-system-tcmalloc is strongly NOT recommended:
|
|
||||||
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
|
|
||||||
)
|
|
||||||
|
|
||||||
use debug && scons_opts+=( --dbg=on )
|
|
||||||
use kerberos && scons_opts+=( --use-sasl-client )
|
|
||||||
use ssl && scons_opts+=( --ssl )
|
|
||||||
|
|
||||||
# respect mongoDB upstream's basic recommendations
|
|
||||||
# see bug #536688 and #526114
|
|
||||||
if ! use debug; then
|
|
||||||
filter-flags '-m*'
|
|
||||||
filter-flags '-O?'
|
|
||||||
fi
|
|
||||||
|
|
||||||
default
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
escons "${scons_opts[@]}" core tools
|
|
||||||
}
|
|
||||||
|
|
||||||
# FEATURES="test -usersandbox" emerge dev-db/mongodb
|
|
||||||
src_test() {
|
|
||||||
# this one test fails
|
|
||||||
rm jstests/core/jsHeapLimit.js || die
|
|
||||||
|
|
||||||
"${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr
|
|
||||||
|
|
||||||
doman debian/mongo*.1
|
|
||||||
dodoc README docs/building.md
|
|
||||||
|
|
||||||
newinitd "${FILESDIR}/${PN}.initd-r3" ${PN}
|
|
||||||
newconfd "${FILESDIR}/${PN}.confd-r3" ${PN}
|
|
||||||
newinitd "${FILESDIR}/mongos.initd-r3" ${PN/db/s}
|
|
||||||
newconfd "${FILESDIR}/mongos.confd-r3" ${PN/db/s}
|
|
||||||
|
|
||||||
insinto /etc
|
|
||||||
newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf
|
|
||||||
newins "${FILESDIR}/mongos.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}
|
|
||||||
|
|
||||||
local x
|
|
||||||
for x in /var/{lib,log}/${PN}; do
|
|
||||||
diropts -m0750 -o mongodb -g mongodb
|
|
||||||
keepdir "${x}"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
ewarn "Make sure to read the release notes and follow the upgrade process:"
|
|
||||||
ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/"
|
|
||||||
ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures"
|
|
||||||
}
|
|
|
@ -1,160 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python2_7 )
|
|
||||||
|
|
||||||
SCONS_MIN_VERSION="2.3.0"
|
|
||||||
CHECKREQS_DISK_BUILD="2400M"
|
|
||||||
CHECKREQS_DISK_USR="512M"
|
|
||||||
CHECKREQS_MEMORY="1024M"
|
|
||||||
|
|
||||||
inherit check-reqs eapi7-ver eutils flag-o-matic multilib multiprocessing pax-utils python-single-r1 scons-utils systemd toolchain-funcs user
|
|
||||||
|
|
||||||
MY_P=${PN}-src-r${PV/_rc/-rc}
|
|
||||||
|
|
||||||
DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
|
|
||||||
HOMEPAGE="https://www.mongodb.com"
|
|
||||||
SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="AGPL-3 Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64"
|
|
||||||
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.41[cxx]
|
|
||||||
dev-libs/snowball-stemmer
|
|
||||||
net-libs/libpcap
|
|
||||||
>=sys-libs/zlib-1.2.8:=
|
|
||||||
kerberos? ( dev-libs/cyrus-sasl[kerberos] )
|
|
||||||
mms-agent? ( app-admin/mms-agent )
|
|
||||||
ssl? (
|
|
||||||
!libressl? ( >=dev-libs/openssl-1.0.1g:0= )
|
|
||||||
libressl? ( dev-libs/libressl:0= )
|
|
||||||
)"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
${PYTHON_DEPS}
|
|
||||||
dev-util/scons
|
|
||||||
sys-libs/ncurses:0=
|
|
||||||
sys-libs/readline:0=
|
|
||||||
debug? ( dev-util/valgrind )
|
|
||||||
test? (
|
|
||||||
dev-python/pymongo[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
|
||||||
)"
|
|
||||||
PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/${PN}-3.4.0-fix-scons.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 [[ -n ${REPLACING_VERSIONS} ]]; then
|
|
||||||
if ver_test "$REPLACING_VERSIONS" -lt 3.2; then
|
|
||||||
ewarn "To upgrade from a version earlier than the 3.2-series, you must"
|
|
||||||
ewarn "successively upgrade major releases until you have upgraded"
|
|
||||||
ewarn "to 3.2-series. Then upgrade to 3.4 series."
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup mongodb
|
|
||||||
enewuser mongodb -1 -1 /var/lib/${PN} mongodb
|
|
||||||
|
|
||||||
python-single-r1_pkg_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
|
|
||||||
# remove bundled libs
|
|
||||||
rm -r src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*} || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
# https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source
|
|
||||||
# --use-system-icu fails tests
|
|
||||||
# --use-system-tcmalloc is strongly NOT recommended:
|
|
||||||
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
|
|
||||||
)
|
|
||||||
|
|
||||||
use debug && scons_opts+=( --dbg=on )
|
|
||||||
use kerberos && scons_opts+=( --use-sasl-client )
|
|
||||||
use ssl && scons_opts+=( --ssl )
|
|
||||||
|
|
||||||
# respect mongoDB upstream's basic recommendations
|
|
||||||
# see bug #536688 and #526114
|
|
||||||
if ! use debug; then
|
|
||||||
filter-flags '-m*'
|
|
||||||
filter-flags '-O?'
|
|
||||||
fi
|
|
||||||
|
|
||||||
default
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
escons "${scons_opts[@]}" core tools
|
|
||||||
}
|
|
||||||
|
|
||||||
# FEATURES="test -usersandbox" emerge dev-db/mongodb
|
|
||||||
src_test() {
|
|
||||||
# this one test fails
|
|
||||||
rm jstests/core/jsHeapLimit.js || die
|
|
||||||
|
|
||||||
"${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr
|
|
||||||
|
|
||||||
doman debian/mongo*.1
|
|
||||||
dodoc README docs/building.md
|
|
||||||
|
|
||||||
newinitd "${FILESDIR}/${PN}.initd-r3" ${PN}
|
|
||||||
newconfd "${FILESDIR}/${PN}.confd-r3" ${PN}
|
|
||||||
newinitd "${FILESDIR}/mongos.initd-r3" ${PN/db/s}
|
|
||||||
newconfd "${FILESDIR}/mongos.confd-r3" ${PN/db/s}
|
|
||||||
|
|
||||||
insinto /etc
|
|
||||||
newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf
|
|
||||||
newins "${FILESDIR}/mongos.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}
|
|
||||||
|
|
||||||
local x
|
|
||||||
for x in /var/{lib,log}/${PN}; do
|
|
||||||
diropts -m0750 -o mongodb -g mongodb
|
|
||||||
keepdir "${x}"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
ewarn "Make sure to read the release notes and follow the upgrade process:"
|
|
||||||
ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/"
|
|
||||||
ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures"
|
|
||||||
}
|
|
|
@ -1,6 +0,0 @@
|
||||||
AUX unifi.conf 207 BLAKE2B 05a750d4f5e200516e0f042440909107b72050bdd3afedfe9e2d11df661e0233b323857dd74692a518414fa3b1a77d09a2ab1b33939e69b45f4eb2c6cf08f363 SHA512 d7ee504b61cd1b7af64e26a7d932d0b90db01448345f41ca5b03a6e183ae8a8f405e5593f9193bd965baf245dbb80e778d0d65c0cddaa11fcebc49c6690ff053
|
|
||||||
AUX unifi.init 701 BLAKE2B 906c52bfccd99b3b173faa36a51336bf219ab0267c5bcda86ce9753a9f2e438f79eff22073b4d1cfb66b09839ae94f1b5aa27d4951fca29c98b19218a089d6e1 SHA512 0a6129f3cbea36324453d11bb07e4afc5efdae11770f8cd27cbd5f4ad4501f7cdbf647db9e29dda8cb8c11ee4655c969ef19170787261dfbe6711fb231bb3136
|
|
||||||
DIST unifi-5.5.24.zip 175093107 BLAKE2B 1ca711a336ce7df7ab05566c9e19b613e9601edb5bf0b6419d9632ee141462a291a69f955be40086f7c629b17fa1c9a69a38f82cd624199a1c48d0ab7d4736fa SHA512 aaf8ce0679d7b9605e10c717efe8b676638891f15916e75003d897881ba6df5dcebb2818df769164efcb6e97265a2fdccaea34638a62e2fc6bb0072e12e78ba3
|
|
||||||
DIST unifi-5.6.40.zip 63584069 BLAKE2B 9c241c7ef335b6e4d9ce1d53d8bf6a9b2e6a0c5b91d60f321100e67cc6201f1dc060398dc7af1ee014c47df194f64ddf1eb56a6c7ce53691251b4fd2937c5603 SHA512 d2e154ec6bdf24cfcb0e5154512a91dc0e601a2bfe7fcdda4c22b329b304b50315a42485daee8495a5076136055c2cf59ebe42b083221683168199e437589e9a
|
|
||||||
EBUILD unifi-5.5.24.ebuild 1307 BLAKE2B 653a87e0ed0537b27b63e119ece4ffc2a022b713616e393e845e1ee18035d416958082ddffddf5f78468f8ba5afe11fac043460278845355fbe01cb2f4dfa97c SHA512 4fd3bad3a3520556b1b3cbad784ba8ad48157cca3ecd52aaf6ec9ca0f3ba1ce16ec4b44e50733002976bfb57f606c7ad56ffcbeee607ff768c5501f0c4489308
|
|
||||||
EBUILD unifi-5.6.40.ebuild 1312 BLAKE2B 41e9307ab904382cefe0651049498554b88a62bf762c7bdc61e2d07d9f3bd454ee1eabbd6b025a627f038ed4f30e90e626edad7b569faa94aa354a1be63493c1 SHA512 b62e465645a15215814946835e4d0285d776a1f8f86bba4ade0a66a7357eefd2b4e0614a632686780fe42373cc0e6b3503932e31ead64b78504dab7a79f52607
|
|
|
@ -1,10 +0,0 @@
|
||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: $
|
|
||||||
|
|
||||||
# /etc/conf.d/unifi.conf
|
|
||||||
|
|
||||||
#JAVA_HOME="/usr"
|
|
||||||
|
|
||||||
#UNIFI_USER="unifi"
|
|
||||||
#UNIFI_GROUP="unifi"
|
|
|
@ -1,26 +0,0 @@
|
||||||
#!/sbin/openrc-run
|
|
||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: $
|
|
||||||
|
|
||||||
PID_FILE="/var/run/unifi.pid"
|
|
||||||
DAEMON="${JAVA_HOME-/usr}"/bin/java
|
|
||||||
UNIFI_PATH="/usr/lib/unifi"
|
|
||||||
[ -z "${UNIFI_USER}" ] && UNIFI_USER="unifi"
|
|
||||||
[ -z "${UNIFI_GROUP}" ] && UNIFI_GROUP="unifi"
|
|
||||||
|
|
||||||
depend() {
|
|
||||||
need net
|
|
||||||
}
|
|
||||||
|
|
||||||
start() {
|
|
||||||
ebegin "Starting unifi"
|
|
||||||
start-stop-daemon --start --quiet -b --pidfile "${PID_FILE}" -m --user "${UNIFI_USER}:${UNIFI_GROUP}" --chdir ${UNIFI_PATH} --exec ${DAEMON} -- -jar lib/ace.jar start
|
|
||||||
eend $?
|
|
||||||
}
|
|
||||||
|
|
||||||
stop() {
|
|
||||||
ebegin "Stopping unifi"
|
|
||||||
start-stop-daemon --quiet --stop -R 20 --pidfile "${PID_FILE}" --user "${UNIFI_USER}"
|
|
||||||
eend $?
|
|
||||||
}
|
|
|
@ -1,57 +0,0 @@
|
||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
inherit multilib systemd user
|
|
||||||
|
|
||||||
DESCRIPTION="Management Controller for Ubiquiti Networks UniFi APs"
|
|
||||||
HOMEPAGE="http://wiki.ubnt.com/UniFi_FAQ"
|
|
||||||
MY_PN="UniFi"
|
|
||||||
SRC_URI="http://dl.ubnt.com/unifi/${PV}/${MY_PN}.unix.zip -> ${P}.zip"
|
|
||||||
|
|
||||||
LICENSE="UniFi-EULA"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND=""
|
|
||||||
RDEPEND="
|
|
||||||
dev-db/mongodb
|
|
||||||
>=virtual/jre-1.7
|
|
||||||
"
|
|
||||||
|
|
||||||
S="${WORKDIR}/${MY_PN}"
|
|
||||||
|
|
||||||
RESTRICT="bindist mirror preserve-libs"
|
|
||||||
QA_PREBUILT="*"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup unifi
|
|
||||||
enewuser unifi -1 /bin/sh /var/lib/unifi "unifi"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dodir /usr/$(get_libdir)/unifi
|
|
||||||
|
|
||||||
cp -R "${S}"/* "${D}"/usr/$(get_libdir)/unifi
|
|
||||||
|
|
||||||
keepdir /var/lib/unifi/data
|
|
||||||
dodir /var/lib/unifi/work
|
|
||||||
dodir /var/lib/unifi/run
|
|
||||||
dodir /var/log/unifi
|
|
||||||
|
|
||||||
fowners -R unifi:unifi /var/lib/unifi
|
|
||||||
fowners -R unifi:unifi /var/log/unifi
|
|
||||||
|
|
||||||
dosym /var/lib/unifi/data /usr/$(get_libdir)/unifi/data
|
|
||||||
dosym /var/lib/unifi/work /usr/$(get_libdir)/unifi/work
|
|
||||||
dosym /var/lib/unifi/run /usr/$(get_libdir)/unifi/run
|
|
||||||
dosym /var/log/unifi /usr/$(get_libdir)/unifi/logs
|
|
||||||
|
|
||||||
echo 'CONFIG_PROTECT="/var/lib/unifi/data/system.properties"' >99unifi
|
|
||||||
doenvd 99unifi
|
|
||||||
|
|
||||||
newconfd "${FILESDIR}/${PN}.conf" "${PN}"
|
|
||||||
newinitd "${FILESDIR}/${PN}.init" "${PN}"
|
|
||||||
}
|
|
|
@ -1,57 +0,0 @@
|
||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
inherit multilib systemd user
|
|
||||||
|
|
||||||
DESCRIPTION="Management Controller for Ubiquiti Networks UniFi APs"
|
|
||||||
HOMEPAGE="http://wiki.ubnt.com/UniFi_FAQ"
|
|
||||||
MY_PN="UniFi"
|
|
||||||
SRC_URI="http://dl.ubnt.com/unifi/${PV}/${MY_PN}.unix.zip -> ${P}.zip"
|
|
||||||
|
|
||||||
LICENSE="UniFi-EULA"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND=""
|
|
||||||
RDEPEND="
|
|
||||||
<dev-db/mongodb-3.6
|
|
||||||
>=virtual/jre-1.8
|
|
||||||
"
|
|
||||||
|
|
||||||
S="${WORKDIR}/${MY_PN}"
|
|
||||||
|
|
||||||
RESTRICT="bindist mirror preserve-libs"
|
|
||||||
QA_PREBUILT="*"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup unifi
|
|
||||||
enewuser unifi -1 /bin/sh /var/lib/unifi "unifi"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dodir /usr/$(get_libdir)/unifi
|
|
||||||
|
|
||||||
cp -R "${S}"/* "${D}"/usr/$(get_libdir)/unifi
|
|
||||||
|
|
||||||
keepdir /var/lib/unifi/data
|
|
||||||
dodir /var/lib/unifi/work
|
|
||||||
dodir /var/lib/unifi/run
|
|
||||||
dodir /var/log/unifi
|
|
||||||
|
|
||||||
fowners -R unifi:unifi /var/lib/unifi
|
|
||||||
fowners -R unifi:unifi /var/log/unifi
|
|
||||||
|
|
||||||
dosym /var/lib/unifi/data /usr/$(get_libdir)/unifi/data
|
|
||||||
dosym /var/lib/unifi/work /usr/$(get_libdir)/unifi/work
|
|
||||||
dosym /var/lib/unifi/run /usr/$(get_libdir)/unifi/run
|
|
||||||
dosym /var/log/unifi /usr/$(get_libdir)/unifi/logs
|
|
||||||
|
|
||||||
echo 'CONFIG_PROTECT="/var/lib/unifi/data/system.properties"' >99unifi
|
|
||||||
doenvd 99unifi
|
|
||||||
|
|
||||||
newconfd "${FILESDIR}/${PN}.conf" "${PN}"
|
|
||||||
newinitd "${FILESDIR}/${PN}.init" "${PN}"
|
|
||||||
}
|
|
Loading…
Reference in a new issue