diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-python/mwlib/files | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.xz |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-python/mwlib/files')
-rw-r--r-- | dev-python/mwlib/files/mw-qserve.confd | 14 | ||||
-rw-r--r-- | dev-python/mwlib/files/mw-qserve.initd | 21 | ||||
-rw-r--r-- | dev-python/mwlib/files/mw-qserve.logrotate | 7 | ||||
-rw-r--r-- | dev-python/mwlib/files/mwlib-purge-cache.cron-r1 | 4 | ||||
-rw-r--r-- | dev-python/mwlib/files/nserve.confd | 20 | ||||
-rw-r--r-- | dev-python/mwlib/files/nserve.initd | 24 | ||||
-rw-r--r-- | dev-python/mwlib/files/nserve.logrotate | 7 | ||||
-rw-r--r-- | dev-python/mwlib/files/nslave.confd-r1 | 26 | ||||
-rw-r--r-- | dev-python/mwlib/files/nslave.initd-r1 | 27 | ||||
-rw-r--r-- | dev-python/mwlib/files/nslave.logrotate | 7 | ||||
-rw-r--r-- | dev-python/mwlib/files/postman.confd | 12 | ||||
-rw-r--r-- | dev-python/mwlib/files/postman.initd-r1 | 21 | ||||
-rw-r--r-- | dev-python/mwlib/files/postman.logrotate | 7 |
13 files changed, 197 insertions, 0 deletions
diff --git a/dev-python/mwlib/files/mw-qserve.confd b/dev-python/mwlib/files/mw-qserve.confd new file mode 100644 index 00000000000..bcd18d4667a --- /dev/null +++ b/dev-python/mwlib/files/mw-qserve.confd @@ -0,0 +1,14 @@ +# The port to listen to +MW_QSERVE_PORT=14311 + +# The interface to listen to (for example: 127.0.0.1) +MW_QSERVE_INTERFACE="127.0.0.1" + +# The user running the mw-qserve service, defaults to 'mwlib' +# MW_QSERVE_USER="mwlib" + +# The group running the mq-qserve service, defaults to 'mwlib' +# MW_QSERVE_GROUP="mwlib" + +# The logfile collecting all output from stdout and stderr, comment out for no logging +MW_QSERVE_LOGFILE="/var/log/mwlib/mw-qserve.log" diff --git a/dev-python/mwlib/files/mw-qserve.initd b/dev-python/mwlib/files/mw-qserve.initd new file mode 100644 index 00000000000..ac9dd78016b --- /dev/null +++ b/dev-python/mwlib/files/mw-qserve.initd @@ -0,0 +1,21 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +description="mw-qserve is a job queue server used to distribute and manage jobs" + +command="/usr/bin/mw-qserve" +command_args="--interface=${MW_QSERVE_INTERFACE} --port=${MW_QSERVE_PORT}" + +pidfile="/var/run/${SVCNAME}.pid" +command_background="yes" + +start_stop_daemon_args="--user ${MW_QSERVE_USER:-mwlib} \ + --group ${MW_QSERVE_GROUP:-mwlib} \ + ${MW_QSERVE_LOGFILE:+--stderr ${MW_QSERVE_LOGFILE}} \ + ${MW_QSERVE_LOGFILE:+--stdout ${MW_QSERVE_LOGFILE}}" + +depend() { + need net localmount +} diff --git a/dev-python/mwlib/files/mw-qserve.logrotate b/dev-python/mwlib/files/mw-qserve.logrotate new file mode 100644 index 00000000000..3b9cf46e941 --- /dev/null +++ b/dev-python/mwlib/files/mw-qserve.logrotate @@ -0,0 +1,7 @@ +/var/log/mwlib/mw-qserve.log { + su mwlib mwlib + missingok + postrotate + /etc/init.d/mw-qserve restart > /dev/null 2>&1 + endscript +} diff --git a/dev-python/mwlib/files/mwlib-purge-cache.cron-r1 b/dev-python/mwlib/files/mwlib-purge-cache.cron-r1 new file mode 100644 index 00000000000..870beecad23 --- /dev/null +++ b/dev-python/mwlib/files/mwlib-purge-cache.cron-r1 @@ -0,0 +1,4 @@ +# purge mw-serve cache directory +# --cache-dir=DIR: the NSLAVE_CACHEDIR directory specified in /etc/conf.d/nslave +# --purge-cache=HOURS: remove cache files that have not been touched for at east HOURS hours +00 23 * * * sudo -u mwlib mw-serve-ctl --cache-dir=/var/cache/mwlib --purge-cache=24 diff --git a/dev-python/mwlib/files/nserve.confd b/dev-python/mwlib/files/nserve.confd new file mode 100644 index 00000000000..7a482e9989c --- /dev/null +++ b/dev-python/mwlib/files/nserve.confd @@ -0,0 +1,20 @@ +# The port on which the mw-qserve service is listening +MW_QSERVE_PORT=14311 + +# The interface on which the mw-qserve is listening (for example: 127.0.0.1) +MW_QSERVE_INTERFACE="127.0.0.1" + +# The port to listen to +NSERVE_PORT=8899 + +# The interface to listen to (for example: 127.0.0.1) +NSERVE_INTERFACE="127.0.0.1" + +# The user running the nserve service, defaults to 'mwlib' +# NSERVE_USER="mwlib" + +# The group running the nserve service, defaults to 'mwlib' +# NSERVE_GROUP="mwlib" + +# The logfile collecting all output from stdout and stderr, comment out for no logging +NSERVE_LOGFILE="/var/log/mwlib/nserve.log" diff --git a/dev-python/mwlib/files/nserve.initd b/dev-python/mwlib/files/nserve.initd new file mode 100644 index 00000000000..498bd738d63 --- /dev/null +++ b/dev-python/mwlib/files/nserve.initd @@ -0,0 +1,24 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +description="nserve is a HTTP server which distributes received jobs to a mw-qserve instance" + +command="/usr/bin/nserve" +command_args="--port=${NSERVE_PORT} \ + --interface=${NSERVE_INTERFACE} \ + --qserve=${MW_QSERVE_INTERFACE}:${MW_QSERVE_PORT}" + +pidfile="/var/run/${SVCNAME}.pid" +command_background="yes" + +start_stop_daemon_args="--user ${NSERVE_USER:-mwlib} \ + --group ${NSERVE_GROUP:-mwlib} \ + ${NSERVE_LOGFILE:+--stderr ${NSERVE_LOGFILE}} \ + ${NSERVE_LOGFILE:+--stdout ${NSERVE_LOGFILE}}" + +depend() { + need net localmount + use mw-qserve +} diff --git a/dev-python/mwlib/files/nserve.logrotate b/dev-python/mwlib/files/nserve.logrotate new file mode 100644 index 00000000000..54cc4587335 --- /dev/null +++ b/dev-python/mwlib/files/nserve.logrotate @@ -0,0 +1,7 @@ +/var/log/mwlib/nserve.log { + su mwlib mwlib + missingok + postrotate + /etc/init.d/nserve restart > /dev/null 2>&1 + endscript +} diff --git a/dev-python/mwlib/files/nslave.confd-r1 b/dev-python/mwlib/files/nslave.confd-r1 new file mode 100644 index 00000000000..ccf75849816 --- /dev/null +++ b/dev-python/mwlib/files/nslave.confd-r1 @@ -0,0 +1,26 @@ +# The address to serve the rendered files to the wiki +NSLAVE_ADDRESS="localhost" + +# The port to serve the rendered files to the wiki +NSLAVE_PORT=8898 + +# The url to serve the rendered files to the wiki +NSLAVE_URL="http://${NSLAVE_ADDRESS}:${NSLAVE_PORT}/cache" + +# The directory to save the rendered PDFs to +NSLAVE_CACHEDIR="/var/cache/mwlib/" + +# The umask to create files in NSLAVE_CACHEDIR +NSLAVE_UMASK=027 + +# How many greenlets are allowed to run in parallel +NSLAVE_NUMPROCS=10 + +# The user running the nserve service, defaults to 'mwlib' +# NSLAVE_USER="mwlib" + +# The group running the nserve service, defaults to 'mwlib' +# NSLAVE_GROUP="mwlib" + +# The logfile collecting all output from stdout and stderr, comment out for no logging +NSLAVE_LOGFILE="/var/log/mwlib/nslave.log" diff --git a/dev-python/mwlib/files/nslave.initd-r1 b/dev-python/mwlib/files/nslave.initd-r1 new file mode 100644 index 00000000000..81f81d3a944 --- /dev/null +++ b/dev-python/mwlib/files/nslave.initd-r1 @@ -0,0 +1,27 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +description="nslave pulls new jobs from a mw-qserve instance" + +command="/usr/bin/nslave" +command_args="--cachedir=${NSLAVE_CACHEDIR} \ + --serve-files-address=${NSLAVE_ADDRESS} \ + --serve-files-port=${NSLAVE_PORT} \ + --url=${NSLAVE_URL} \ + --numprocs=${NSLAVE_NUMPROCS}" + +pidfile="/var/run/${SVCNAME}.pid" +command_background="yes" + +start_stop_daemon_args="--user ${NSLAVE_USER:-mwlib} \ + --group ${NSLAVE_GROUP:-mwlib} \ + ${NSLAVE_LOGFILE:+--stderr ${NSLAVE_LOGFILE}} \ + ${NSLAVE_LOGFILE:+--stdout ${NSLAVE_LOGFILE}} \ + --umask ${NSLAVE_UMASK}" + +depend() { + need net localmount + use mw-qserve +} diff --git a/dev-python/mwlib/files/nslave.logrotate b/dev-python/mwlib/files/nslave.logrotate new file mode 100644 index 00000000000..0637e248f2e --- /dev/null +++ b/dev-python/mwlib/files/nslave.logrotate @@ -0,0 +1,7 @@ +/var/log/mwlib/nslave.log { + su mwlib mwlib + missingok + postrotate + /etc/init.d/nslave restart > /dev/null 2>&1 + endscript +} diff --git a/dev-python/mwlib/files/postman.confd b/dev-python/mwlib/files/postman.confd new file mode 100644 index 00000000000..168627480dd --- /dev/null +++ b/dev-python/mwlib/files/postman.confd @@ -0,0 +1,12 @@ +# The cache-directory to which the collections are saved, make sure you enter +# the same directory as in /etc/conf.d/nslave +POSTMAN_CACHEDIR="/var/cache/mwlib/" + +# The user running the postman service, defaults to 'mwlib' +# POSTMAN_USER="mwlib" + +# The group running the postman service, defaults to 'mwlib' +# POSTMAN_GROUP="mwlib" + +# The logfile collecting all output from stdout and stderr, comment out for no logging +POSTMAN_LOGFILE="/var/log/mwlib/postman.log" diff --git a/dev-python/mwlib/files/postman.initd-r1 b/dev-python/mwlib/files/postman.initd-r1 new file mode 100644 index 00000000000..0b276240a1d --- /dev/null +++ b/dev-python/mwlib/files/postman.initd-r1 @@ -0,0 +1,21 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +description="postman uploads zip collections to pediapress in case someone likes to order printed books" + +command="/usr/bin/postman" +command_args="--cachedir=${POSTMAN_CACHEDIR}" + +pidfile="/var/run/${SVCNAME}.pid" +command_background="yes" + +start_stop_daemon_args="--user ${POSTMAN_USER:-mwlib} \ + --group ${POSTMAN_GROUP:-mwlib} \ + ${POSTMAN_LOGFILE:+--stderr ${POSTMAN_LOGFILE}} \ + ${POSTMAN_LOGFILE:+--stdout ${POSTMAN_LOGFILE}}" + +depend() { + need net localmount +} diff --git a/dev-python/mwlib/files/postman.logrotate b/dev-python/mwlib/files/postman.logrotate new file mode 100644 index 00000000000..50cbccda7df --- /dev/null +++ b/dev-python/mwlib/files/postman.logrotate @@ -0,0 +1,7 @@ +/var/log/mwlib/postman.log { + su mwlib mwlib + missingok + postrotate + /etc/init.d/postman restart > /dev/null 2>&1 + endscript +} |