summaryrefslogtreecommitdiff
path: root/net-p2p/saku/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-p2p/saku/files
reinit the tree, so we can have metadata
Diffstat (limited to 'net-p2p/saku/files')
-rw-r--r--net-p2p/saku/files/saku25
-rw-r--r--net-p2p/saku/files/saku.ini27
2 files changed, 52 insertions, 0 deletions
diff --git a/net-p2p/saku/files/saku b/net-p2p/saku/files/saku
new file mode 100644
index 000000000000..6c600f57904c
--- /dev/null
+++ b/net-p2p/saku/files/saku
@@ -0,0 +1,25 @@
+#!/sbin/openrc-run
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+PID_DIR=/var/run/saku
+
+depend() {
+ use dns
+ need net
+}
+
+start() {
+ mkdir -p $PID_DIR
+ rm -f ${PID_DIR}/pid.txt
+ ebegin "Starting p2p bbs: saku"
+ start-stop-daemon --start -u saku -g saku --quiet -b \
+ -p ${PID_DIR}/pid.txt --exec /usr/bin/saku
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping p2p bbs: saku"
+ start-stop-daemon --stop --quiet -p ${PID_DIR}/pid.txt
+ eend $?
+}
diff --git a/net-p2p/saku/files/saku.ini b/net-p2p/saku/files/saku.ini
new file mode 100644
index 000000000000..21a9461783cb
--- /dev/null
+++ b/net-p2p/saku/files/saku.ini
@@ -0,0 +1,27 @@
+#
+# Sample saku.ini to run saku in distributed directory.
+# Copyright (c) 2005-2007 shinGETsu Project.
+# $Id: saku.ini 1513 2011-01-03 10:17:08Z sbwhitecap $
+#
+
+[Network]
+port: 8000
+upnp: no
+
+[Path]
+prefix: /usr
+var: /var
+sysconfig: /etc
+docroot: %(prefix)s/share/saku/www
+file_dir: %(prefix)s/share/saku/file
+template_dir: %(prefix)s/share/saku/template
+log_dir: %(var)s/log/saku
+run_dir: %(var)s/run/saku
+cache_dir: %(var)s/spool/saku
+spam_list: %(sysconfig)s/saku/spam.txt
+initnode_list: %(sysconfig)s/saku/initnode.txt
+node_allow: %(sysconfig)s/saku/node_allow.txt
+node_deny: %(sysconfig)s/saku/node_deny.txt
+
+[Gateway]
+visitor: ^127