mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-20 00:08:58 -04:00
www-apps/whoogle-search: POSIX-ify openrc script
Also resolve shellcheck and pkgcheck comments Closes: https://bugs.gentoo.org/917079 Signed-off-by: Bailey Kasin <baileykasin@gmail.com>
This commit is contained in:
parent
6fd32bcd21
commit
ecdc853e58
@ -3,7 +3,7 @@
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Environment variables for whoogle
|
||||
source "/etc/default/whoogle"
|
||||
. "/etc/default/whoogle"
|
||||
export ADDRESS=${BIND_ADDRESS:-0.0.0.0}
|
||||
export PORT=${LISTEN_PORT:-5000}
|
||||
|
||||
@ -23,7 +23,7 @@ depend() {
|
||||
start_pre() {
|
||||
checkpath -fo whoogle:whoogle "/var/log/whoogle.log"
|
||||
echo "Whoogle is running on: ${BIND_ADDRESS}:${LISTEN_PORT}"
|
||||
cd /opt/whoogle-search
|
||||
cd /opt/whoogle-search || exit 1
|
||||
}
|
||||
|
||||
stop_post() {
|
||||
|
@ -5,4 +5,7 @@
|
||||
<email>baileykasin@gmail.com</email>
|
||||
<name>Bailey Kasin</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">benbusby/whoogle-search</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
@ -29,9 +29,10 @@ RDEPEND="
|
||||
acct-group/whoogle
|
||||
"
|
||||
|
||||
|
||||
src_install() {
|
||||
rm -r .github docs test .dockerignore .gitignore .replit docker-compose.yml Dockerfile heroku.yml MANIFEST.in README.md requirements.txt
|
||||
rm -r .github docs test .dockerignore .gitignore .replit \
|
||||
docker-compose.yml Dockerfile heroku.yml MANIFEST.in README.md \
|
||||
requirements.txt
|
||||
mkdir -p "${ED}/opt/whoogle-search" || die
|
||||
insinto /opt/whoogle-search
|
||||
doins -r ./*
|
||||
@ -39,10 +40,10 @@ src_install() {
|
||||
fowners -R whoogle:whoogle /opt/whoogle-search
|
||||
|
||||
insinto /etc/default/
|
||||
doins ${FILESDIR}/whoogle
|
||||
doins "${FILESDIR}/whoogle"
|
||||
insinto /usr/lib/sysusers.d/
|
||||
doins ${FILESDIR}/whoogle.conf
|
||||
doins "${FILESDIR}/whoogle.conf"
|
||||
|
||||
newinitd "${FILESDIR}"/whoogle.initd whoogle
|
||||
systemd_dounit ${FILESDIR}/whoogle.service
|
||||
systemd_dounit "${FILESDIR}/whoogle.service"
|
||||
}
|
@ -30,9 +30,10 @@ RDEPEND="
|
||||
acct-group/whoogle
|
||||
"
|
||||
|
||||
|
||||
src_install() {
|
||||
rm -r .github docs test .dockerignore .gitignore .replit docker-compose.yml Dockerfile heroku.yml MANIFEST.in README.md requirements.txt
|
||||
rm -r .github docs test .dockerignore .gitignore .replit \
|
||||
docker-compose.yml Dockerfile heroku.yml MANIFEST.in README.md \
|
||||
requirements.txt
|
||||
mkdir -p "${ED}/opt/whoogle-search" || die
|
||||
insinto /opt/whoogle-search
|
||||
doins -r ./*
|
||||
@ -40,10 +41,10 @@ src_install() {
|
||||
fowners -R whoogle:whoogle /opt/whoogle-search
|
||||
|
||||
insinto /etc/default/
|
||||
doins ${FILESDIR}/whoogle
|
||||
doins "${FILESDIR}/whoogle"
|
||||
insinto /usr/lib/sysusers.d/
|
||||
doins ${FILESDIR}/whoogle.conf
|
||||
doins "${FILESDIR}/whoogle.conf"
|
||||
|
||||
newinitd "${FILESDIR}"/whoogle.initd whoogle
|
||||
systemd_dounit ${FILESDIR}/whoogle.service
|
||||
systemd_dounit "${FILESDIR}/whoogle.service"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user