Also added. Thanks a lot!
Search Criteria
Package Details: whoogle 0.9.3-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/whoogle.git (read-only, click to copy) |
---|---|
Package Base: | whoogle |
Description: | A self-hosted, ad-free, privacy-respecting metasearch engine |
Upstream URL: | https://github.com/benbusby/whoogle-search |
Keywords: | engine search whoogle |
Licenses: | MIT |
Conflicts: | whoogle-git |
Submitter: | dr460nf1r3 |
Maintainer: | dr460nf1r3 (chaotic-aur) |
Last Packager: | dr460nf1r3 |
Votes: | 5 |
Popularity: | 0.82 |
First Submitted: | 2021-04-08 09:52 (UTC) |
Last Updated: | 2025-01-25 19:37 (UTC) |
dr460nf1r3 commented on 2021-10-15 08:03 (UTC)
kseistrup commented on 2021-10-15 07:52 (UTC)
You should probably have a
chown -R whoogle.whoogle /opt/whoogle-search/app/static/config
in your post_{install,upgrade}
hooks, otherwise whoogle won't be able to save its configuration.
Also, you should use 127.0.0.1
as the listening address (and it really ought to be configurable) instead of listening to “everything”. You can make it configurable be installing a /etc/default/whoogle
file with these contents:
BIND_ADDRESS=127.0.0.1
LISTEN_PORT=5000
and then change whoogle.service to reflect this:
EnvironmentFile=-/etc/default/whoogle
ExecStart=/opt/whoogle-search/venv/bin/python -um app --host $BIND_ADDRESS --port $LISTEN_PORT
Also, you should neither enable, nor start the service, as the user may want to configure their frontend or their firewall first.
You can make a user aware of the default values (and the file to configure it) during install.
Also, since the app is MIT licensed, you should copy LICENSE to the licenses directory, e.g.:
install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
dr460nf1r3 commented on 2021-10-15 07:25 (UTC)
Ugh, I misunderstood you. I hope everything is fine now! :)
kseistrup commented on 2021-10-15 07:20 (UTC)
You missed the -D
in the install -Dm0644
commands.
kseistrup commented on 2021-10-15 07:09 (UTC)
@dr460nf1r3
If you say
install -Dm0644 "$file" "$pkgdir/path/to/$file"
then $pkgdir/path/to/
will bew automatically created so you needn't install the directory first. The important thing is to have a filename as the last component, since install
will create the next-to-last component for you.
Your sysusers config doesn't work. You are using /opt/whoogle-search
as your target directory, whereas the whoogle.conf
you supplied is using /opt/whoogle
.
dr460nf1r3 commented on 2021-10-15 07:01 (UTC)
I updated the PKGBUILD with the recommendations, let me know if there is anything else left to do :)
kseistrup commented on 2021-10-15 06:31 (UTC)
(Ok, so the dir is /opt/whoogle-search
, but the point about sysusers.d
still holds.)
kseistrup commented on 2021-10-15 06:29 (UTC)
@astier I believe the proper way of creating users during install is to create a /usr/lib/sysusers.d/whoogle.conf
file with contents like this:
u whoogle - "Whoogle" /opt/whoogle
See sysusers.d(5)
for details.
astier commented on 2021-10-15 05:53 (UTC)
@kseistrup the following should suffice I think.
useradd -s /bin/bash -rd /opt/whoogle-search whoogle
chown -R whoogle: /opt/whoogle-search
Now @dr460nf1r3 has only to change the PKGBUILD and set User=whoogle
in whoogle.service
Pinned Comments
dr460nf1r3 commented on 2021-12-05 12:10 (UTC) (edited on 2022-03-05 09:17 (UTC) by dr460nf1r3)
Installs with official instructions to /opt. Read here for more information and options for the systemd service. ( -> e) manual) The search engine is accessible at localhost:5000, set it as default engine using your browsers option. Binary builds are available at Chaotic-AUR!