summaryrefslogtreecommitdiffstats
path: root/packages/net-misc
diff options
context:
space:
mode:
Diffstat (limited to 'packages/net-misc')
-rw-r--r--packages/net-misc/eventd/eventd-scm.exheres-06
-rw-r--r--packages/net-misc/eventd/eventd.exlib39
-rw-r--r--packages/net-misc/mozilla-sync-core/mozilla-sync-core-scm.exheres-029
-rw-r--r--packages/net-misc/mozilla-sync-reg/mozilla-sync-reg-scm.exheres-032
-rw-r--r--packages/net-misc/mozilla-sync-storage/mozilla-sync-storage-scm.exheres-037
-rw-r--r--packages/net-misc/mozilla-sync/files/SyncServer.ini.example66
-rw-r--r--packages/net-misc/mozilla-sync/files/SyncServer.wsgi14
-rw-r--r--packages/net-misc/mozilla-sync/mozilla-sync-scm.exheres-058
8 files changed, 281 insertions, 0 deletions
diff --git a/packages/net-misc/eventd/eventd-scm.exheres-0 b/packages/net-misc/eventd/eventd-scm.exheres-0
new file mode 100644
index 0000000..71a7f6d
--- /dev/null
+++ b/packages/net-misc/eventd/eventd-scm.exheres-0
@@ -0,0 +1,6 @@
+# Copyright 2011 Quentin "Sardem FF7" Glidic <sardemff7+exherbo@sardemff7.net>
+# Distributed under the terms of the GNU General Public License v2
+
+require eventd
+
+PLATFORMS="~amd64"
diff --git a/packages/net-misc/eventd/eventd.exlib b/packages/net-misc/eventd/eventd.exlib
new file mode 100644
index 0000000..c7db4bf
--- /dev/null
+++ b/packages/net-misc/eventd/eventd.exlib
@@ -0,0 +1,39 @@
+# Copyright 2011 Quentin "Sardem FF7" Glidic <sardemff7+exherbo@sardemff7.net>
+# Distributed under the terms of the GNU General Public License v2
+
+autotools=
+ever is_scm && autotools='supported_autoconf=[ 2.5 ] supported_automake=[ 1.11 ]'
+
+require sardemff7-github [ intltoolize=true ${autotools} ] systemd-service
+
+SLOT="0"
+
+SUMMARY="Small daemon to act on remote or local events"
+
+DEPENDENCIES="
+ build+run:
+ dev-lang/vala:0.14
+ dev-libs/glib[>=2.26.0]
+ libnotify? ( x11-libs/libnotify[>=0.6.5] )
+ sound? (
+ media-libs/libsndfile
+ media-sound/pulseaudio
+ )
+ systemd? ( sys-apps/systemd[>=36] )
+"
+
+MYOPTIONS="debug libnotify
+ sound [[ description = [ Sound support through PulseAudie and libsndfile ] ]]
+"
+
+
+DEFAULT_SRC_CONFIGURE_PARAMS=(
+ --enable-nls
+ --disable-static
+)
+
+DEFAULT_SRC_CONFIGURE_OPTION_ENABLES=(
+ debug
+ libnotify
+ sound
+)
diff --git a/packages/net-misc/mozilla-sync-core/mozilla-sync-core-scm.exheres-0 b/packages/net-misc/mozilla-sync-core/mozilla-sync-core-scm.exheres-0
new file mode 100644
index 0000000..d228f8c
--- /dev/null
+++ b/packages/net-misc/mozilla-sync-core/mozilla-sync-core-scm.exheres-0
@@ -0,0 +1,29 @@
+
+SCM_REPOSITORY="https://hg.mozilla.org/services/server-core"
+
+
+require scm-hg distutils
+
+
+SLOT="0"
+
+PLATFORMS="~amd64"
+
+DEPENDENCIES="
+ build:
+ dev-python/setuptools
+ run:
+ dev-python/Beaker
+ dev-python/cef
+ dev-python/Mako
+ dev-python/MarkupSafe
+ dev-python/Paste
+ dev-python/PasteDeploy
+ dev-python/PasteScript
+ dev-python/python-memcached
+ dev-python/recaptcha-client
+ dev-python/Routes
+ dev-python/simplejson
+ dev-python/SQLAlchemy
+ dev-python/WebOb
+"
diff --git a/packages/net-misc/mozilla-sync-reg/mozilla-sync-reg-scm.exheres-0 b/packages/net-misc/mozilla-sync-reg/mozilla-sync-reg-scm.exheres-0
new file mode 100644
index 0000000..c8e07a4
--- /dev/null
+++ b/packages/net-misc/mozilla-sync-reg/mozilla-sync-reg-scm.exheres-0
@@ -0,0 +1,32 @@
+
+SCM_REPOSITORY="https://hg.mozilla.org/services/server-reg"
+
+
+require scm-hg distutils
+
+
+SLOT="0"
+
+PLATFORMS="~amd64"
+
+DEPENDENCIES="
+ build:
+ dev-python/setuptools
+ run:
+ dev-python/Beaker
+ dev-python/cef
+ dev-python/Mako
+ dev-python/MarkupSafe
+ dev-python/Paste
+ dev-python/PasteDeploy
+ dev-python/PasteScript
+ dev-python/python-memcached
+ dev-python/recaptcha-client
+ dev-python/Routes
+ dev-python/simplejson
+ dev-python/SQLAlchemy
+ dev-python/WebOb
+ net-misc/mozilla-sync-core
+ suggestion:
+ dev-python/python-ldap [[ description = [ LDAP registration ] ]]
+"
diff --git a/packages/net-misc/mozilla-sync-storage/mozilla-sync-storage-scm.exheres-0 b/packages/net-misc/mozilla-sync-storage/mozilla-sync-storage-scm.exheres-0
new file mode 100644
index 0000000..d61abbc
--- /dev/null
+++ b/packages/net-misc/mozilla-sync-storage/mozilla-sync-storage-scm.exheres-0
@@ -0,0 +1,37 @@
+
+SCM_REPOSITORY="https://hg.mozilla.org/services/server-storage"
+
+
+require scm-hg distutils
+
+
+SLOT="0"
+
+PLATFORMS="~amd64"
+
+DEPENDENCIES="
+ build:
+ dev-python/setuptools
+ run:
+ dev-python/Beaker
+ dev-python/cef
+ dev-python/gevent
+ dev-python/greenlet
+ dev-python/Mako
+ dev-python/MarkupSafe
+ dev-python/Paste
+ dev-python/PasteDeploy
+ dev-python/PasteScript
+ dev-python/python-memcached
+ dev-python/recaptcha-client
+ dev-python/Routes
+ dev-python/simplejson
+ dev-python/SQLAlchemy
+ dev-python/WebOb
+ net-misc/mozilla-sync-core
+ suggestion:
+ dev-python/psycopg2 [[ description = [ PostgreSQL storage ] ]]
+"
+# pylibmc
+# pymysql_sa
+# PyMySQL
diff --git a/packages/net-misc/mozilla-sync/files/SyncServer.ini.example b/packages/net-misc/mozilla-sync/files/SyncServer.ini.example
new file mode 100644
index 0000000..9873a3b
--- /dev/null
+++ b/packages/net-misc/mozilla-sync/files/SyncServer.ini.example
@@ -0,0 +1,66 @@
+[DEFAULT]
+debug = False
+translogger = False
+profile = False
+
+[server:main]
+use = egg:Paste#http
+host = 0.0.0.0
+port = 5000
+use_threadpool = True
+threadpool_workers = 60
+
+[app:main]
+use = egg:SyncServer
+configuration = file:/etc/mozilla-sync/sync.conf
+
+#
+# logging
+#
+[loggers]
+keys = root,syncserver
+
+[handlers]
+keys = global,syncserver,syncserver_errors
+
+[formatters]
+keys = generic
+
+[logger_root]
+level = WARNING
+handlers = global
+
+[logger_syncserver]
+qualname = syncserver
+level = ERROR
+handlers = syncserver,syncserver_errors
+propagate = 0
+
+[logger_syncserver_errors]
+qualname = syncserver
+level = ERROR
+handlers = syncserver_errors
+propagate = 0
+
+
+[handler_global]
+class = StreamHandler
+args = (sys.stderr,)
+level = DEBUG
+formatter = generic
+
+[handler_syncserver]
+class = StreamHandler
+args = (sys.stderr,)
+level = INFO
+formatter = generic
+
+[handler_syncserver_errors]
+class = handlers.RotatingFileHandler
+args = ('/tmp/sync-error.log',)
+level = ERROR
+formatter = generic
+
+[formatter_generic]
+format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
+datefmt = %Y-%m-%d %H:%M:%S
diff --git a/packages/net-misc/mozilla-sync/files/SyncServer.wsgi b/packages/net-misc/mozilla-sync/files/SyncServer.wsgi
new file mode 100644
index 0000000..32beed2
--- /dev/null
+++ b/packages/net-misc/mozilla-sync/files/SyncServer.wsgi
@@ -0,0 +1,14 @@
+import os
+import sys
+import site
+from logging.config import fileConfig
+from ConfigParser import NoSectionError
+
+ini_file = os.path.join('/etc/mozilla-sync/SyncServer.ini')
+try:
+ fileConfig(ini_file)
+except NoSectionError:
+ pass
+
+from paste.deploy import loadapp
+application = loadapp('config:%s'% ini_file)
diff --git a/packages/net-misc/mozilla-sync/mozilla-sync-scm.exheres-0 b/packages/net-misc/mozilla-sync/mozilla-sync-scm.exheres-0
new file mode 100644
index 0000000..4692d17
--- /dev/null
+++ b/packages/net-misc/mozilla-sync/mozilla-sync-scm.exheres-0
@@ -0,0 +1,58 @@
+
+SCM_REPOSITORY="https://hg.mozilla.org/services/server-full"
+
+
+require scm-hg distutils
+
+
+SLOT="0"
+
+PLATFORMS="~amd64"
+
+DEPENDENCIES="
+ build:
+ dev-python/setuptools
+ run:
+ group/weave
+ user/weave
+ apache? ( apache-mod/mod_wsgi )
+ dev-python/Beaker
+ dev-python/cef
+ dev-python/Mako
+ dev-python/MarkupSafe
+ dev-python/Paste
+ dev-python/PasteDeploy
+ dev-python/PasteScript
+ dev-python/python-memcached
+ dev-python/recaptcha-client
+ dev-python/Routes
+ dev-python/simplejson
+ dev-python/SQLAlchemy
+ dev-python/WebOb
+ dev-python/WSGIProxy
+ net-misc/mozilla-sync-core
+ net-misc/mozilla-sync-reg
+ net-misc/mozilla-sync-storage
+"
+
+MYOPTIONS="apache"
+
+
+src_install() {
+ distutils_src_install
+
+ insinto /usr/share/doc/${PNVR}/conf
+ doins "${FILES}"/SyncServer.ini.example
+ edo pushd "${WORK}"/etc
+ for f in *.conf; do
+ doins ${f}
+ done
+ edo popd
+
+ insinto /usr/share/${PN}
+ doins "${FILES}"/SyncServer.wsgi
+
+ keepdir /etc/${PN}
+
+ keepdir /var/lib/weave
+}