drop www-apps/searx
This commit is contained in:
parent
196e0bce61
commit
bebf4d6bee
2 changed files with 46 additions and 50 deletions
46
www-apps/facette/facette-0.5.1.ebuild
Normal file
46
www-apps/facette/facette-0.5.1.ebuild
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit systemd
|
||||||
|
|
||||||
|
DESCRIPTION=""
|
||||||
|
HOMEPAGE=""
|
||||||
|
SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${PN}_${PV}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~arm64"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
acct-user/facette
|
||||||
|
net-libs/nodejs
|
||||||
|
dev-lang/go
|
||||||
|
|
||||||
|
"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
mkdir "${P}"
|
||||||
|
cd "${P}"
|
||||||
|
unpack "${A}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
insinto /usr/share/${PN}
|
||||||
|
doins -r assets data node_modules server package.json
|
||||||
|
|
||||||
|
insinto /etc/${PN}
|
||||||
|
mv config.sample.yml config.yml.example
|
||||||
|
doins config.yml.example
|
||||||
|
|
||||||
|
dosym /etc/${PN}/config.yml /usr/share/${PN}/config.yml
|
||||||
|
|
||||||
|
systemd_dounit ${FILESDIR}/${PN}.service
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elog "Before enabling ${PN}.service, create a configuration file:"
|
||||||
|
elog "# cp /etc/${PN}/config.yml.example /etc/${PN}/config.yml"
|
||||||
|
elog "and edit its contents to match your needs."
|
||||||
|
}
|
|
@ -1,50 +0,0 @@
|
||||||
# Copyright 2019 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
|
|
||||||
# Modifications by Robin Hallabro-Kokko <robin@hallabro.nu>
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
|
||||||
|
|
||||||
inherit savedconfig distutils-r1 git-r3
|
|
||||||
|
|
||||||
DESCRIPTION="Decentralized and privacy-respecting, hackable metasearch engine"
|
|
||||||
HOMEPAGE="https://github.com/asciimoo/searx"
|
|
||||||
EGIT_REPO_URI="https://github.com/asciimoo/${PN}.git"
|
|
||||||
|
|
||||||
LICENSE="AGPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64"
|
|
||||||
|
|
||||||
DEPEND="
|
|
||||||
>=dev-python/certifi-2017.11.5[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/flask-1.0.2[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/flask-babel-0.11.2[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/lxml-4.2.3[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/idna-2.7[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/pygments-2.1.3[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/pyopenssl-18.0.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/python-dateutil-2.7.3[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/pyyaml-3.13[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/requests-2.19.1[socks5,${PYTHON_USEDEP}]
|
|
||||||
${PYTHON_DEPS}
|
|
||||||
"
|
|
||||||
RDEPEND="${DEPEND}"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local mysecretkey="$(python -c 'import random; print("%x" % random.getrandbits(16*8))')"
|
|
||||||
|
|
||||||
sed -i "s/ultrasecretkey/${mysecretkey}/g" searx/settings.yml || die "setting the secret key"
|
|
||||||
|
|
||||||
restore_config searx/settings.yml
|
|
||||||
|
|
||||||
sed -i "s;'tests/.*',$;;" setup.py || die "removing installation of tests"
|
|
||||||
rm -r tests || die "removal of tests"
|
|
||||||
|
|
||||||
distutils-r1_src_prepare
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
distutils-r1_src_install
|
|
||||||
|
|
||||||
save_config searx/settings.yml
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue