summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsijanec <anton@sijanec.eu>2021-04-04 15:50:25 +0200
committersijanec <anton@sijanec.eu>2021-04-04 15:50:25 +0200
commit84f380794857296db32a36ee24cecdfbf0d32081 (patch)
tree1bb93d4101d7e0d2f2bf7d3d39e96d9158f1f809
parentfixed systemd (diff)
downloadsear.c-84f380794857296db32a36ee24cecdfbf0d32081.tar
sear.c-84f380794857296db32a36ee24cecdfbf0d32081.tar.gz
sear.c-84f380794857296db32a36ee24cecdfbf0d32081.tar.bz2
sear.c-84f380794857296db32a36ee24cecdfbf0d32081.tar.lz
sear.c-84f380794857296db32a36ee24cecdfbf0d32081.tar.xz
sear.c-84f380794857296db32a36ee24cecdfbf0d32081.tar.zst
sear.c-84f380794857296db32a36ee24cecdfbf0d32081.zip
-rw-r--r--debian/README.Debian30
-rw-r--r--debian/changelog23
-rw-r--r--debian/compat1
-rw-r--r--debian/control14
-rw-r--r--debian/copyright7
-rwxr-xr-xdebian/rules3
-rw-r--r--debian/sear.c.service13
7 files changed, 91 insertions, 0 deletions
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..76cabab
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,30 @@
+sear.c for Debian
+
+sear.c is used as a lightweight replacement for SearX that proxies and caches
+search results from the Google web search engine. The main advantages over
+SearX are speed and simplicity.
+
+* run the daemon - it starts listening on HTTP port 7327 (remember it by
+ picturing phone keyboard buttons with letters SEAR (; )
+* optional: create a reverse proxy for HTTPS
+* navigate to http://localhost:7327 and do a couple of searches to see if
+ everything works
+* the horseshoe button redirects directly to the first result without wasting
+ time on the results page. use if you feel lucky. (BP)
+* check logs by navigating to /logs.html
+
+It's not recommended to run a public instance of sear.c yet, as google likes
+to prevent spam by using a captcha.
+
+It's expected that I'll write a simple captcha forwarder so that users of public
+instances will solve captchas that are presented and keep the instance healthy.
+
+Currently it's recommended to run private instances, protected by a password
+using a reverse HTTP proxy.
+
+systemd users can start with service sear.c start
+
+please also read the README.md file in the git repository or via web:
+ http://git.sijanec.eu/sijanec/sear.c/src/branch/master/README.md
+
+ -- Anton Luka Šijanec <anton@sijanec.eu> Sun, 04 Apr 2021 16:00:00 +0200
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..cefa09e
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,23 @@
+sear.c (0.0.3-1) stable; urgency=low
+
+ * fixed systemd service and added other debian files
+
+ -- Anton Luka Šijanec <anton@sijanec.eu> Sun, 04 Apr 2021 15:30:00 +0200
+
+sear.c (0.0.2-1) stable; urgency=low
+
+ * Fixed systemd file path
+
+ -- Anton Luka Šijanec <anton@sijanec.eu> Sun, 04 Apr 2021 15:00:00 +0200
+
+sear.c (0.0.1-1) stable; urgency=low
+
+ * Fixed package for debian
+
+ -- Anton Luka Šijanec <anton@sijanec.eu> Sun, 04 Apr 2021 14:00:00 +0200
+
+sear.c (0.0.0-1) stable; urgency=low
+
+ * Initial release.
+
+ -- Anton Luka Šijanec <anton@sijanec.eu> Sat, 03 Apr 2021 23:33:41 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..b4de394
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+11
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..f315f85
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,14 @@
+Source: sear.c
+Section: web
+Priority: optional
+Maintainer: Anton Luka Šijanec <anton@sijanec.eu>
+Build-Depends: debhelper (>=11~), libmicrohttpd-dev, libxml2-dev, dh-systemd (>=1.5)
+Standards-Version: 4.1.4
+Homepage: http://git.sijanec.eu/sijanec/sear.c
+
+Package: sear.c
+Architecture: any
+Multi-Arch: foreign
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: scrapes search results of popular engines,
+ caches them and creates a simple HTML UI on HTTP port 7327
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..5a0b54f
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,7 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: sear.c
+Upstream-Contact: Anton Luka Šijanec <anton@sijanec.eu>
+Source: http://git.sijanec.eu/sijanec/sear.c
+Copyright: 2021 Anton Luka Šijanec
+Disclaimer: This package is not licensed under any license.
+Comment: At least in current version of this program, no licensing information was published.
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..4d587f6
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,3 @@
+#!/usr/bin/make -f
+%:
+ dh --with systemd $@
diff --git a/debian/sear.c.service b/debian/sear.c.service
new file mode 100644
index 0000000..88b05ec
--- /dev/null
+++ b/debian/sear.c.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=scrapes search results of popular engines, caches them and creates a simple HTML UI on HTTP port 7327
+After=network.target
+
+[Service]
+Type=simple
+User=nobody
+RuntimeDirectory=sear.c
+ExecStart=/usr/bin/sear.c
+Restart=no
+
+[Install]
+WantedBy=multi-user.target