diff options
author | 2015-08-08 13:49:04 -0700 | |
---|---|---|
committer | 2015-08-08 17:38:18 -0700 | |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-misc/g15composer/files | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
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 'app-misc/g15composer/files')
-rw-r--r-- | app-misc/g15composer/files/g15composer-3.1.confd | 17 | ||||
-rw-r--r-- | app-misc/g15composer/files/g15composer-3.1.initd | 49 | ||||
-rw-r--r-- | app-misc/g15composer/files/g15composer-3.2.confd | 17 | ||||
-rw-r--r-- | app-misc/g15composer/files/g15composer-3.2.initd | 49 |
4 files changed, 132 insertions, 0 deletions
diff --git a/app-misc/g15composer/files/g15composer-3.1.confd b/app-misc/g15composer/files/g15composer-3.1.confd new file mode 100644 index 000000000000..f42ab956e242 --- /dev/null +++ b/app-misc/g15composer/files/g15composer-3.1.confd @@ -0,0 +1,17 @@ +# /etc/conf.d/g15composer: Configuration for the g15composer + +# The CONTROL_FIFO is the name of the FIFO that g15composer listens to. +# It does not create a screen on the display, but allows programs to +# create their own non-virtual screens. +# Please make sure the file specified does not exist. +CONTROL_FIFO="/var/run/g15composer" + +# Set the user who owns the CONTROL_FIFO. +# As this is also the user as whom g15composer is run, +# it has to be someone who can create further message channels +# This should be the user who runs the LCD clients +FIFO_USER= + +# Set the grop which owns the CONTROL_FIFO. +# The users who want to display screens on the LCD need to be in this group. +FIFO_GROUP=users diff --git a/app-misc/g15composer/files/g15composer-3.1.initd b/app-misc/g15composer/files/g15composer-3.1.initd new file mode 100644 index 000000000000..15fd4963ba4c --- /dev/null +++ b/app-misc/g15composer/files/g15composer-3.1.initd @@ -0,0 +1,49 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +PIDFILE=/var/run/${SVCNAME}.pid + +depend() { + need g15daemon +} + +start() { + ebegin "Starting ${SVCNAME}" + + if [ -z "${FIFO_USER}" -o -z "${FIFO_GROUP}" ] ; then + eerror "Please set the FIFO_USER and FIFO_GROUP variables in /etc/conf.d/${SVCNAME}" + eend 1 + return 1 + fi + if [ -e "${CONTROL_FIFO}" -a ! -p "${CONTROL_FIFO}" ] ; then + eerror "${CONTROL_FIFO} exists and is not a FIFO. Please remove." + eend 1 + return 1 + fi + if [ ! -p "${CONTROL_FIFO}" ] ; then + einfo "Creating FIFO at ${CONTROL_FIFO}" + mkfifo -m660 "${CONTROL_FIFO}" + else + einfo "Reusing FIFO at ${CONTROL_FIFO}" + fi + + chown ${FIFO_USER} "${CONTROL_FIFO}" + chgrp ${FIFO_GROUP} "${CONTROL_FIFO}" + start-stop-daemon --start --background --pidfile ${PIDFILE} --make-pidfile --exec \ + /usr/bin/g15composer -- -b -u "${FIFO_USER}" -g "${FIFO_GROUP}" "${CONTROL_FIFO}" + eend $? +} + +stop() { + ebegin "Stoping ${SVCNAME}" + start-stop-daemon --stop --pidfile ${PIDFILE} --name g15composer + if [ -p "${CONTROL_FIFO}" ] ; then + einfo "Removing FIFO at ${CONTROL_FIFO}" + rm -f "${CONTROL_FIFO}" + else + ewarn "FIFO at ${CONTROL_FIFO} was lost" + fi + eend $? +} diff --git a/app-misc/g15composer/files/g15composer-3.2.confd b/app-misc/g15composer/files/g15composer-3.2.confd new file mode 100644 index 000000000000..f42ab956e242 --- /dev/null +++ b/app-misc/g15composer/files/g15composer-3.2.confd @@ -0,0 +1,17 @@ +# /etc/conf.d/g15composer: Configuration for the g15composer + +# The CONTROL_FIFO is the name of the FIFO that g15composer listens to. +# It does not create a screen on the display, but allows programs to +# create their own non-virtual screens. +# Please make sure the file specified does not exist. +CONTROL_FIFO="/var/run/g15composer" + +# Set the user who owns the CONTROL_FIFO. +# As this is also the user as whom g15composer is run, +# it has to be someone who can create further message channels +# This should be the user who runs the LCD clients +FIFO_USER= + +# Set the grop which owns the CONTROL_FIFO. +# The users who want to display screens on the LCD need to be in this group. +FIFO_GROUP=users diff --git a/app-misc/g15composer/files/g15composer-3.2.initd b/app-misc/g15composer/files/g15composer-3.2.initd new file mode 100644 index 000000000000..15fd4963ba4c --- /dev/null +++ b/app-misc/g15composer/files/g15composer-3.2.initd @@ -0,0 +1,49 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +PIDFILE=/var/run/${SVCNAME}.pid + +depend() { + need g15daemon +} + +start() { + ebegin "Starting ${SVCNAME}" + + if [ -z "${FIFO_USER}" -o -z "${FIFO_GROUP}" ] ; then + eerror "Please set the FIFO_USER and FIFO_GROUP variables in /etc/conf.d/${SVCNAME}" + eend 1 + return 1 + fi + if [ -e "${CONTROL_FIFO}" -a ! -p "${CONTROL_FIFO}" ] ; then + eerror "${CONTROL_FIFO} exists and is not a FIFO. Please remove." + eend 1 + return 1 + fi + if [ ! -p "${CONTROL_FIFO}" ] ; then + einfo "Creating FIFO at ${CONTROL_FIFO}" + mkfifo -m660 "${CONTROL_FIFO}" + else + einfo "Reusing FIFO at ${CONTROL_FIFO}" + fi + + chown ${FIFO_USER} "${CONTROL_FIFO}" + chgrp ${FIFO_GROUP} "${CONTROL_FIFO}" + start-stop-daemon --start --background --pidfile ${PIDFILE} --make-pidfile --exec \ + /usr/bin/g15composer -- -b -u "${FIFO_USER}" -g "${FIFO_GROUP}" "${CONTROL_FIFO}" + eend $? +} + +stop() { + ebegin "Stoping ${SVCNAME}" + start-stop-daemon --stop --pidfile ${PIDFILE} --name g15composer + if [ -p "${CONTROL_FIFO}" ] ; then + einfo "Removing FIFO at ${CONTROL_FIFO}" + rm -f "${CONTROL_FIFO}" + else + ewarn "FIFO at ${CONTROL_FIFO} was lost" + fi + eend $? +} |