Gentoo Archives: gentoo-commits

From: "Naohiro Aota (naota)" <naota@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-p2p/saku/files: saku.ini saku
Date: Tue, 01 Nov 2011 13:20:09
Message-Id: 20111101131945.5EA042004B@flycatcher.gentoo.org
1 naota 11/11/01 13:19:45
2
3 Added: saku.ini saku
4 Log:
5 New package net-p2p/saku.
6
7 (Portage version: 2.2.0_alpha71/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 net-p2p/saku/files/saku.ini
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/saku/files/saku.ini?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/saku/files/saku.ini?rev=1.1&content-type=text/plain
14
15 Index: saku.ini
16 ===================================================================
17 #
18 # Sample saku.ini to run saku in distributed directory.
19 # Copyright (c) 2005-2007 shinGETsu Project.
20 # $Id: saku.ini,v 1.1 2011/11/01 13:19:45 naota Exp $
21 #
22
23 [Network]
24 port: 8000
25 upnp: no
26
27 [Path]
28 prefix: /usr
29 var: /var
30 sysconfig: /etc
31 docroot: %(prefix)s/share/saku/www
32 file_dir: %(prefix)s/share/saku/file
33 template_dir: %(prefix)s/share/saku/template
34 log_dir: %(var)s/log/saku
35 run_dir: %(var)s/run/saku
36 cache_dir: %(var)s/spool/saku
37 spam_list: %(sysconfig)s/saku/spam.txt
38 initnode_list: %(sysconfig)s/saku/initnode.txt
39 node_allow: %(sysconfig)s/saku/node_allow.txt
40 node_deny: %(sysconfig)s/saku/node_deny.txt
41
42 [Gateway]
43 visitor: ^127
44
45
46
47 1.1 net-p2p/saku/files/saku
48
49 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/saku/files/saku?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/saku/files/saku?rev=1.1&content-type=text/plain
51
52 Index: saku
53 ===================================================================
54 #!/sbin/runscript
55 # Copyright 1999-2011 Gentoo Foundation
56 # Distributed under the terms of the GNU General Public License v2
57 # $Header: /var/cvsroot/gentoo-x86/net-p2p/saku/files/saku,v 1.1 2011/11/01 13:19:45 naota Exp $
58
59 depend() {
60 use dns
61 need net
62 }
63
64 start() {
65 rm -f /var/run/saku/pid.txt
66 ebegin "Starting p2p bbs: saku"
67 start-stop-daemon --start -u saku -g saku --quiet -b \
68 -p /var/run/saku/pid.txt --exec /usr/bin/saku
69 eend $?
70 }
71
72 stop() {
73 ebegin "Stopping p2p bbs: saku"
74 start-stop-daemon --stop --quiet -p /var/run/saku/pid.txt
75 eend $?
76 }