First complete
This commit is contained in:
33
src/searx/.SRCINFO
Normal file
33
src/searx/.SRCINFO
Normal file
@@ -0,0 +1,33 @@
|
||||
# Generated by mksrcinfo v8
|
||||
# Fri Oct 21 13:17:59 UTC 2016
|
||||
pkgbase = searx
|
||||
pkgdesc = A privacy-respecting, hackable metasearch engine
|
||||
pkgver = 0.10.0
|
||||
pkgrel = 3
|
||||
url = https://asciimoo.github.io/searx/
|
||||
install = searx.install
|
||||
arch = any
|
||||
license = AGPL
|
||||
makedepends = openssl
|
||||
depends = python2-flask
|
||||
depends = python2-flask-babel
|
||||
depends = python2-requests
|
||||
depends = python2-lxml
|
||||
depends = python2-yaml
|
||||
depends = python2-dateutil
|
||||
depends = python2-pygments
|
||||
depends = python2-certifi
|
||||
depends = python2-pyasn1-modules
|
||||
depends = python2-ndg-httpsclient
|
||||
depends = python2-pysocks
|
||||
conflicts = searx-git
|
||||
backup = etc/searx/settings.yml
|
||||
source = https://github.com/asciimoo/searx/archive/v0.10.0.zip
|
||||
source = searx.install
|
||||
source = searx.service
|
||||
sha512sums = 2290dde2e26b8b219e8613c2c79b17a6d0ecd9170cf02b7c6cfe6bc1c0a67ca09b60c18d194e7086701218483ae0941e8e2001fd99eedc36b17a6fead7b4f4a3
|
||||
sha512sums = daf98a69d87dc78ea645a02146d67b0a2903b3b219edadf2e3c987c20d0751ac147b72fe185c74bfe3e0b154ed8ee4b9b503e7ca922548fad52157aada05803c
|
||||
sha512sums = 354ec9c88018108ce0a652647faefaa23afb7afe53b42259a43adf9395b854d02c2b6d350b8d17cf105a9283f62aee0788f7dc96c2676f67c77941d3ef6edc0c
|
||||
|
||||
pkgname = searx
|
||||
|
12
src/searx/searx.install
Normal file
12
src/searx/searx.install
Normal file
@@ -0,0 +1,12 @@
|
||||
post_install() {
|
||||
getent passwd searx >/dev/null || useradd -rb /usr/lib/python2.7/site-packages -s /usr/bin/nologin searx
|
||||
echo "Settings are at /etc/searx/settings.yml"
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
echo "You may want to remove searx user"
|
||||
}
|
19
src/searx/searx.service
Normal file
19
src/searx/searx.service
Normal file
@@ -0,0 +1,19 @@
|
||||
[Unit]
|
||||
Description=Searx server
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=searx
|
||||
Environment=SEARX_SETTINGS_PATH=/etc/searx/settings.yml
|
||||
PrivateTmp=true
|
||||
PrivateDevices=true
|
||||
# Prevent accessing /home, /root and /run/user
|
||||
ProtectHome=true
|
||||
# Prevent writes to /usr, /boot, and /etc
|
||||
ProtectSystem=full
|
||||
ExecStart=/usr/bin/searx-run
|
||||
Restart=on-abort
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user