summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaohiro Aota <naota@gentoo.org>2011-11-01 13:19:45 +0000
committerNaohiro Aota <naota@gentoo.org>2011-11-01 13:19:45 +0000
commit7a1487930fee08b5942dec2760f6f72da2d955f9 (patch)
treecdff55dadbeb15a73c99431bc85b7863b6786c44 /net-p2p
parentRevision bump to remove la files, thanks to Agostino Sarubbo in bug #388989. (diff)
downloadgentoo-2-7a1487930fee08b5942dec2760f6f72da2d955f9.tar.gz
gentoo-2-7a1487930fee08b5942dec2760f6f72da2d955f9.tar.bz2
gentoo-2-7a1487930fee08b5942dec2760f6f72da2d955f9.zip
New package net-p2p/saku.
(Portage version: 2.2.0_alpha71/cvs/Linux x86_64)
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/saku/ChangeLog10
-rw-r--r--net-p2p/saku/Manifest6
-rw-r--r--net-p2p/saku/files/saku23
-rw-r--r--net-p2p/saku/files/saku.ini27
-rw-r--r--net-p2p/saku/metadata.xml8
-rw-r--r--net-p2p/saku/saku-3.10.1.ebuild45
6 files changed, 119 insertions, 0 deletions
diff --git a/net-p2p/saku/ChangeLog b/net-p2p/saku/ChangeLog
new file mode 100644
index 000000000000..ff4e90f1bf80
--- /dev/null
+++ b/net-p2p/saku/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-p2p/saku
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/saku/ChangeLog,v 1.1 2011/11/01 13:19:45 naota Exp $
+
+*saku-3.10.1 (01 Nov 2011)
+
+ 01 Nov 2011; Naohiro Aota <naota@gentoo.org> +saku-3.10.1.ebuild,
+ +files/saku, +files/saku.ini, +metadata.xml:
+ New package net-p2p/saku.
+
diff --git a/net-p2p/saku/Manifest b/net-p2p/saku/Manifest
new file mode 100644
index 000000000000..aa5c0094aeba
--- /dev/null
+++ b/net-p2p/saku/Manifest
@@ -0,0 +1,6 @@
+AUX saku 576 RMD160 c73e3f905927664359e4bfe9b9c7424da5883636 SHA1 d77462b0196f535da67cceaf5a9d8eae9f174153 SHA256 66fb22f9776c5c2c75f8c45068b25104f6ff056fa7d9bf553af8f2f75ecb240c
+AUX saku.ini 638 RMD160 d3b2cc1070216b880d450d2b776228942c3c69f0 SHA1 daeaa6f28c01f0805fb40ff57fb4ea8475803d4c SHA256 28df8f75c9f18cfa5a90d811d0c9f7d4f807489b7f6e76310e1dec7900451d7f
+DIST saku-3.10.1.tar.gz 237876 RMD160 c1b58fa0fa6550449005830634f12ddb22344855 SHA1 0b5e107d8634987fb6d3036cf65a28fff36ba085 SHA256 6afa714165e4ccffebf04518d1286b02a6a39eabf522cb224cf8cf10bba47015
+EBUILD saku-3.10.1.ebuild 811 RMD160 d4bb35eb3b260c8ea6aa029c846a518fb51c03ed SHA1 c3cebfaa6f4e9c60982913eba0b7cf5de68f4601 SHA256 f41599806e92ae09e63f953a5bc68cc7b9709fd68c3aecf52c250651d3c6f3fd
+MISC ChangeLog 285 RMD160 932c9ffdcd149ba0f9f837e00b5f7ff64e21d8e6 SHA1 3f3fb7d3bc45e348dfc2c99ecb2daf10e4856f74 SHA256 9e69ab9433ff321a35f84964dfbf003154a28880da5686d96ba593241e57e9ab
+MISC metadata.xml 221 RMD160 0f7538215c7d1e9952200dfbc29480f76ab4bf0f SHA1 8b0b86659d77fae7faaaae6162ed3b990a7c5545 SHA256 26044731876f2ca2bd635f37a21cd75d6ce2edc4a233c4ed035e9fec36b7b5e7
diff --git a/net-p2p/saku/files/saku b/net-p2p/saku/files/saku
new file mode 100644
index 000000000000..aeeea78e6709
--- /dev/null
+++ b/net-p2p/saku/files/saku
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/saku/files/saku,v 1.1 2011/11/01 13:19:45 naota Exp $
+
+depend() {
+ use dns
+ need net
+}
+
+start() {
+ rm -f /var/run/saku/pid.txt
+ ebegin "Starting p2p bbs: saku"
+ start-stop-daemon --start -u saku -g saku --quiet -b \
+ -p /var/run/saku/pid.txt --exec /usr/bin/saku
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping p2p bbs: saku"
+ start-stop-daemon --stop --quiet -p /var/run/saku/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..0bb2372a4322
--- /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,v 1.1 2011/11/01 13:19:45 naota Exp $
+#
+
+[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
diff --git a/net-p2p/saku/metadata.xml b/net-p2p/saku/metadata.xml
new file mode 100644
index 000000000000..27592fe18ce2
--- /dev/null
+++ b/net-p2p/saku/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>naota@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/net-p2p/saku/saku-3.10.1.ebuild b/net-p2p/saku/saku-3.10.1.ebuild
new file mode 100644
index 000000000000..7691b1b45755
--- /dev/null
+++ b/net-p2p/saku/saku-3.10.1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/saku/saku-3.10.1.ebuild,v 1.1 2011/11/01 13:19:45 naota Exp $
+
+EAPI=3
+
+PYTHON_DEPEND="2:2.5"
+
+inherit distutils eutils
+
+DESCRIPTION="a clone of P2P anonymous BBS shinGETsu"
+HOMEPAGE="http://shingetsu.info/"
+SRC_URI="mirror://sourceforge/shingetsu/${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-python/cheetah"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ enewgroup saku
+ enewuser saku -1 -1 /var/run/saku saku
+}
+
+src_prepare() {
+ sed -i -e "/^prefix/s:/usr:${EPREFIX}/usr:" file/saku.ini || die
+}
+
+src_install() {
+ distutils_src_install
+
+ dodir /etc/saku
+ insinto /etc/saku
+ doins "${FILESDIR}"/saku.ini
+
+ doinitd "${FILESDIR}"/saku
+
+ diropts -o saku -g saku
+ dodir /var/log/saku
+ dodir /var/run/saku
+ dodir /var/spool/saku
+}