aboutsummaryrefslogtreecommitdiffstats
path: root/net-im
diff options
context:
space:
mode:
Diffstat (limited to 'net-im')
-rw-r--r--net-im/hommabot/Makefile6
-rw-r--r--net-im/hommabot/distinfo5
-rw-r--r--net-im/hommabot/files/hommabot.in12
3 files changed, 15 insertions, 8 deletions
diff --git a/net-im/hommabot/Makefile b/net-im/hommabot/Makefile
index a591e73..57ef247 100644
--- a/net-im/hommabot/Makefile
+++ b/net-im/hommabot/Makefile
@@ -1,5 +1,6 @@
PORTNAME= hommabot
DISTVERSION= 2.1.0
+PORTREVISION= 2
CATEGORIES= net-im
MAINTAINER= jan@jantuomi.fi
@@ -13,8 +14,6 @@ GH_ACCOUNT= jantuomi
GH_PROJECT= hommabot2
GH_TAGNAME= f7e272ab8726ed6a205b46d6723cc91aa9d63be1
-NO_CHECKSUM= yes
-
USES= python:build \
nodejs:24,build,run \
npm:npm,fetch,extract,build
@@ -46,8 +45,7 @@ do-install:
${STAGE_APPDIR}/
(cd ${WRKSRC} && \
${COPYTREE_SHARE} src ${STAGE_APPDIR})
- (cd ${WRKSRC} && \
- ${COPYTREE_SHARE} node_modules ${STAGE_APPDIR})
+ cd ${WRKSRC} && ${TAR} -cf - node_modules | ${TAR} -xf - -C ${STAGE_APPDIR}
post-install:
@(cd ${STAGEDIR}${PREFIX} && \
diff --git a/net-im/hommabot/distinfo b/net-im/hommabot/distinfo
new file mode 100644
index 0000000..2f6990d
--- /dev/null
+++ b/net-im/hommabot/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1785154654
+SHA256 (hommabot-2.1.0-node-modules.tar.gz) = 8c07a489ada755ec982be6ef2b1d88cd1832a20df06f47679a6906b169945afe
+SIZE (hommabot-2.1.0-node-modules.tar.gz) = 12502588
+SHA256 (jantuomi-hommabot2-2.1.0-f7e272ab8726ed6a205b46d6723cc91aa9d63be1_GH0.tar.gz) = 6ea4e7b1c14af1c1e32051e6d574c6c41613c4aaf62ff77e5d952ea6a25a1958
+SIZE (jantuomi-hommabot2-2.1.0-f7e272ab8726ed6a205b46d6723cc91aa9d63be1_GH0.tar.gz) = 16744
diff --git a/net-im/hommabot/files/hommabot.in b/net-im/hommabot/files/hommabot.in
index d0787d1..602433d 100644
--- a/net-im/hommabot/files/hommabot.in
+++ b/net-im/hommabot/files/hommabot.in
@@ -19,8 +19,8 @@ load_rc_config "${name}"
pidfile="/var/run/${name}.pid"
procname="/usr/sbin/daemon"
-command="/usr/sbin/daemon"
+start_precmd="${name}_prestart"
start_cmd="${name}_start"
hommabot_prestart()
@@ -48,8 +48,6 @@ hommabot_start()
{
local bot_token
- hommabot_prestart || return 1
-
if check_pidfile "${pidfile}" "${procname}" >/dev/null; then
echo "${name} is already running."
return 1
@@ -57,6 +55,11 @@ hommabot_start()
bot_token=$(cat "${hommabot_token_file}") || return 1
+ if [ -z "${bot_token}" ]; then
+ echo "${name}: token file ${hommabot_token_file} is empty"
+ return 1
+ fi
+
cd "%%PREFIX%%/libexec/hommabot" || {
echo "${name}: cannot change to %%PREFIX%%/libexec/hommabot"
return 1
@@ -64,8 +67,9 @@ hommabot_start()
echo "Starting ${name}."
- exec /usr/sbin/daemon \
+ /usr/sbin/daemon \
-f \
+ -H \
-P "${pidfile}" \
-o "${hommabot_log_file}" \
/usr/bin/env \