aboutsummaryrefslogtreecommitdiffstats
path: root/irc/thales/files
diff options
context:
space:
mode:
authorflz <flz@FreeBSD.org>2005-11-30 06:44:49 +0800
committerflz <flz@FreeBSD.org>2005-11-30 06:44:49 +0800
commit9fe3fa26f47cccfa66f88868c61c9a7b685e5b0a (patch)
tree28ff13b30f084a5715597cbe7512e0972d321a32 /irc/thales/files
parent7b419eb0f1aa904cab57ba97a84d432ae56d6d76 (diff)
downloadfreebsd-ports-gnome-9fe3fa26f47cccfa66f88868c61c9a7b685e5b0a.tar.gz
freebsd-ports-gnome-9fe3fa26f47cccfa66f88868c61c9a7b685e5b0a.tar.zst
freebsd-ports-gnome-9fe3fa26f47cccfa66f88868c61c9a7b685e5b0a.zip
- Honors LOCALBASE.
- Executable moved to ${PREFIX}/sbin - Add rcNG script. - Logfile is placed under /var/log. - Pidfile is placed under /var/pid. PR: ports/88177 Submitted by: maintainer
Diffstat (limited to 'irc/thales/files')
-rw-r--r--irc/thales/files/patch-conf.h11
-rw-r--r--irc/thales/files/patch-thales.conf.default17
-rw-r--r--irc/thales/files/thales.sh.in29
3 files changed, 57 insertions, 0 deletions
diff --git a/irc/thales/files/patch-conf.h b/irc/thales/files/patch-conf.h
new file mode 100644
index 000000000000..93d11938230a
--- /dev/null
+++ b/irc/thales/files/patch-conf.h
@@ -0,0 +1,11 @@
+--- src/conf.h Sun Jan 11 00:26:12 2004
++++ src/conf.h Sat Apr 2 10:42:03 2005
+@@ -23,7 +23,7 @@
+ #include "log.h"
+
+ /* Configuration directives. */
+-#define THALES_CONF "thales.conf"
++#define THALES_CONF "%%PREFIX%%/etc/thales.conf"
+ #define MAXPARAMS 4
+
+ typedef struct
diff --git a/irc/thales/files/patch-thales.conf.default b/irc/thales/files/patch-thales.conf.default
new file mode 100644
index 000000000000..711e384909f7
--- /dev/null
+++ b/irc/thales/files/patch-thales.conf.default
@@ -0,0 +1,17 @@
+--- data/thales.conf.default Sat Jul 5 17:04:39 2003
++++ data/thales.conf.default Sat Apr 2 10:57:47 2005
+@@ -144,12 +144,12 @@
+ # PIDFile <filename> [REQUIRED]
+ # Specifies the name of the file containing Services' process ID.
+
+-PIDFile thales.pid
++PIDFile /var/run/thales.pid
+
+ # LogFile <filename> [REQUIRED]
+ # Specifies the name of the log file.
+
+-LogFile thales.log
++LogFile /var/log/thales.log
+
+ ###########################################################################
+ #
diff --git a/irc/thales/files/thales.sh.in b/irc/thales/files/thales.sh.in
new file mode 100644
index 000000000000..bd2df2e0d153
--- /dev/null
+++ b/irc/thales/files/thales.sh.in
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: thales
+# REQUIRE: NETWORKING SERVERS
+# BEFORE: DAEMON
+# KEYWORD: shutdown
+
+#
+# Add the following line to /etc/rc.conf to enable Thales:
+# thales_enable (bool): Set to "NO" by default.
+# Set it to "YES" to enable Thales
+#
+
+. %%RC_SUBR%%
+
+name="thales"
+rcvar=`set_rcvar`
+
+command="%%PREFIX%%/bin/thales"
+
+[ -z "$thales_enable" ] && thales_enable="NO"
+
+required_files="%%PREFIX%%/etc/thales.conf"
+
+load_rc_config $name
+run_rc_command "$1"