summaryrefslogtreecommitdiff
path: root/irc/anope-devel/files
diff options
context:
space:
mode:
Diffstat (limited to 'irc/anope-devel/files')
-rw-r--r--irc/anope-devel/files/anope.in27
-rw-r--r--irc/anope-devel/files/pkg-message.in19
2 files changed, 46 insertions, 0 deletions
diff --git a/irc/anope-devel/files/anope.in b/irc/anope-devel/files/anope.in
new file mode 100644
index 000000000000..b36c8cde38f4
--- /dev/null
+++ b/irc/anope-devel/files/anope.in
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+# PROVIDE: anope
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+
+#
+# Add the following line to /etc/rc.conf to enable anope:
+# anope_enable=YES
+#
+
+. /etc/rc.subr
+
+name=anope
+rcvar=anope_enable
+
+load_rc_config $name
+
+: ${anope_enable:=NO}
+: ${anope_user:=nobody}
+
+command=%%PREFIX%%/anope/bin/anope
+pidfile=%%PREFIX%%/anope/data/anope.pid
+extra_commands=reload
+
+run_rc_command "$1"
+
diff --git a/irc/anope-devel/files/pkg-message.in b/irc/anope-devel/files/pkg-message.in
new file mode 100644
index 000000000000..077a8926ef41
--- /dev/null
+++ b/irc/anope-devel/files/pkg-message.in
@@ -0,0 +1,19 @@
+[
+{ type: install
+ message: <<EOM
+Anope now installs to %%PREFIX%%/anope
+EOM
+}
+{ type: upgrade
+ maximum_version: 2.1.0
+ message: <<EOM
+If you are upgrading from < 2.1.0, you will need
+to migrate your configs to the new format. There
+is also a guide to migrate your databases to the
+new format. Please read the release notes:
+
+https://www.anope.org/upgrading.html
+EOM
+}
+]
+