summaryrefslogtreecommitdiff
path: root/app-misc/g15composer
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-misc/g15composer
reinit the tree, so we can have metadata
Diffstat (limited to 'app-misc/g15composer')
-rw-r--r--app-misc/g15composer/Manifest11
-rw-r--r--app-misc/g15composer/files/g15composer-3.1.confd17
-rw-r--r--app-misc/g15composer/files/g15composer-3.1.initd48
-rw-r--r--app-misc/g15composer/files/g15composer-3.2.confd17
-rw-r--r--app-misc/g15composer/files/g15composer-3.2.initd48
-rw-r--r--app-misc/g15composer/g15composer-3.1.ebuild41
-rw-r--r--app-misc/g15composer/g15composer-3.2.ebuild41
-rw-r--r--app-misc/g15composer/metadata.xml14
8 files changed, 237 insertions, 0 deletions
diff --git a/app-misc/g15composer/Manifest b/app-misc/g15composer/Manifest
new file mode 100644
index 000000000000..f18a88546e18
--- /dev/null
+++ b/app-misc/g15composer/Manifest
@@ -0,0 +1,11 @@
+AUX g15composer-3.1.confd 695 SHA256 1f070d07b3a4956b7dfe584bdb25043d340314e8916cb2e00afa9060cf5488e6 SHA512 58c137d67f83a00a18f80ece66f3b41a402371d680a6527367df12bf574b4a1450ef130bab055d7940ce7b94534103108fa63cb0b97c585f0d69a67a14ec7bbb WHIRLPOOL 2c03f2a54605e7f8f0b4e605eacf083620df38f0293a20ab9402c5a1bf939267ddb9cfb6f37be0e2139022619cb968435fc8dfd2b6238f0d061cc767c1985c5f
+AUX g15composer-3.1.initd 1249 SHA256 a415e35c04fb759ef88e95ade8a45f37167aabd904d27da0fa24a19d48267659 SHA512 1e63a8ec482874df65a7685b0eb671be264b1228fdf53a6cf6f3efcc18b7b0a7d511572f99318013bb86b099e66827e44bcb060ba1d13b2af4699e4a9f6b02eb WHIRLPOOL 9f57b5d9a8e6f72e9411313c3ab1fd903b5a3af2f4d0952f9e6db7e9c92fcc0404649de81ee23e21dbdd9f8aa7ae0c9b59f970f5d5b2ce045df6cf17d5e460ef
+AUX g15composer-3.2.confd 695 SHA256 1f070d07b3a4956b7dfe584bdb25043d340314e8916cb2e00afa9060cf5488e6 SHA512 58c137d67f83a00a18f80ece66f3b41a402371d680a6527367df12bf574b4a1450ef130bab055d7940ce7b94534103108fa63cb0b97c585f0d69a67a14ec7bbb WHIRLPOOL 2c03f2a54605e7f8f0b4e605eacf083620df38f0293a20ab9402c5a1bf939267ddb9cfb6f37be0e2139022619cb968435fc8dfd2b6238f0d061cc767c1985c5f
+AUX g15composer-3.2.initd 1249 SHA256 a415e35c04fb759ef88e95ade8a45f37167aabd904d27da0fa24a19d48267659 SHA512 1e63a8ec482874df65a7685b0eb671be264b1228fdf53a6cf6f3efcc18b7b0a7d511572f99318013bb86b099e66827e44bcb060ba1d13b2af4699e4a9f6b02eb WHIRLPOOL 9f57b5d9a8e6f72e9411313c3ab1fd903b5a3af2f4d0952f9e6db7e9c92fcc0404649de81ee23e21dbdd9f8aa7ae0c9b59f970f5d5b2ce045df6cf17d5e460ef
+DIST g15composer-3.1.tar.bz2 104109 SHA256 d8f34c1711e95f8ca3ddd9fd5f557a51bb23b79099fbf2fddb96bdcd03067988 SHA512 e4b0ddef2dfbfd3a8a392ebe9e53a59638cbb7aee7a007b8a20be388f074d54a27ed509a5805fadc9ffd708c027ec4c331dfab96905bee1c37690a5585198ad8 WHIRLPOOL 3921267bfd884860d4228a8ec5546a536547c1a78bb287bd9dfe0d78029a4006bf87a8f47c6eeca4b9b22dcd05f565ca990d688dcdbe119706e9cec4857a5e90
+DIST g15composer-3.2.tar.bz2 105805 SHA256 0ae3fdac1dd5858bb7185ae5a50a6ff1c657a29d02b44c8a73f1c38cec17b035 SHA512 95b033e2bb957ef4a2f3d3e2954a11454af7d8576e037f723d2a7d45a7dadde4908540ff0a66b387209e689217ba0e6677dcee1e647b792c402f250371518bc1 WHIRLPOOL 4553fd85ff8627f8c31ec66799f39138c63b487c4a584e726e6a2f5f58f1ff9405afff4c5b7d1b020ac1a4fbd25b678fa5c043e2d099409238e01ba1a8a71729
+EBUILD g15composer-3.1.ebuild 953 SHA256 209b599226dc0f1abadf127fc20b5506c0327f068c3427feb91e4e5b39f5c15b SHA512 87424355d798593aa3e16d4e48dba98f2deed25185efb9f9f59a1e4c44f827f5bc20bf818ec7b0b75faa997b76bd696e1c2ee4769929a56d6590fde8ad8870c7 WHIRLPOOL 5aadd5c5f3b183e0161a37f816873664bc4ebf961eac1e391e2708734169a64d8d4213e7dbbb70727f41271219f0b1954153081a096b9619b849d3c307561207
+EBUILD g15composer-3.2.ebuild 956 SHA256 3d982d0b67e21ac10f30e7d7e5509d60862001d3a15c9dae9aa672651efd4829 SHA512 5c705bd75729e867e86de2dded127c2783abb876442be63bebbe7c22c70300a9547c94bcf644467aedd7b10b7b0d3ff07351476e32ecac1d6d045d517c6d99ab WHIRLPOOL b95589b246b82c8d5f226edb7e60797484c856a5d36faf9e1a484689c731d78620d31e5a4117afd0b01081de8d379bd75f8b204959820cb28ff56cbe230be920
+MISC ChangeLog 2533 SHA256 7ba3d6ae89da4af926b78a6aabc6070dcc9852aedbb799e9e7ba2af918b11be6 SHA512 105cc76b2087e69c78bb16367dbb3f72ccd8273185f9eae606ac59754205a07a737dc73433ec2b6b234b157b4f5ac2d94f1f475a4392feaec68222a878d2e93e WHIRLPOOL 9d30ce1e844761d8cf6d884764fa12c3dd35479d68b1c2adf8a1bdcf8785eb7288ac33e10a5eeac1126a0cbac852a9ec7d6197b7046816817ebfc4e74e3fd340
+MISC ChangeLog-2015 4010 SHA256 29e58bb1f435bd3dccfe1a398546e3ec4b073889055450258465348a387fdcaf SHA512 75a73230ab9aa161b4cc4d18abb5ecc1e1c53ddf3cb61fb852ea95037de37f878c5706d32a908f24eb25a502565d80157c3580c354680b9c9e952c9ce454c03f WHIRLPOOL 9f2cbb5c300ecd9ec85d4bdfe5119da28f2251dc56c117ad4d9ac2bde74fb477eb7f94876c7a9efdf8486e71f37aafa8f2a0f68ccca07953f5518d5e94cc7e7a
+MISC metadata.xml 408 SHA256 f15f645720f0908d277ac56f394af2d074465e160bf04bf85f2fbaa005fb8134 SHA512 e4da283d6a210afc06b392ed61be935a1a1dfa0d886c0f3e6e82bd5e78323e080e911ef7eee9ff2e6ab98ced93804ab8f48433b9f0f630d8c68a62f91a3e780d WHIRLPOOL 740c63a74eb283fd6a374f3ba2e22be805e13361414f0aa5ca3f33f1e08b4e652f178183b765f4f847973545b8363f0f115cc99b1efd4dcd04bea0e5ca269d22
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..0d7c24f85609
--- /dev/null
+++ b/app-misc/g15composer/files/g15composer-3.1.initd
@@ -0,0 +1,48 @@
+#!/sbin/openrc-run
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..0d7c24f85609
--- /dev/null
+++ b/app-misc/g15composer/files/g15composer-3.2.initd
@@ -0,0 +1,48 @@
+#!/sbin/openrc-run
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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/g15composer-3.1.ebuild b/app-misc/g15composer/g15composer-3.1.ebuild
new file mode 100644
index 000000000000..d7ad0563b24a
--- /dev/null
+++ b/app-misc/g15composer/g15composer-3.1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+inherit eutils
+
+DESCRIPTION="A library to render text and shapes into a buffer usable by the Logitech G15"
+HOMEPAGE="http://g15tools.sourceforge.net/"
+SRC_URI="mirror://sourceforge/g15tools/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~ppc64 x86"
+IUSE="truetype examples"
+
+DEPEND="app-misc/g15daemon
+ >=dev-libs/libg15render-1.2[truetype?]
+ truetype? ( media-libs/freetype )"
+
+src_configure() {
+ econf \
+ $(use_enable truetype ttf)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+
+ newinitd "${FILESDIR}/${P}.initd" ${PN}
+ newconfd "${FILESDIR}/${P}.confd" ${PN}
+
+ dodoc AUTHORS README ChangeLog
+
+ if use examples ; then
+ exeinto "/usr/share/${PN}"
+ doexe examples/*
+ fi
+}
+
+pkg_postinst() {
+ elog "Set the user to run g15composer in /etc/conf.d/g15composer before starting the service."
+}
diff --git a/app-misc/g15composer/g15composer-3.2.ebuild b/app-misc/g15composer/g15composer-3.2.ebuild
new file mode 100644
index 000000000000..73aeda34f331
--- /dev/null
+++ b/app-misc/g15composer/g15composer-3.2.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+inherit eutils
+
+DESCRIPTION="A library to render text and shapes into a buffer usable by the Logitech G15"
+HOMEPAGE="http://g15tools.sourceforge.net/"
+SRC_URI="mirror://sourceforge/g15tools/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="truetype examples"
+
+DEPEND="app-misc/g15daemon
+ >=dev-libs/libg15render-1.2[truetype?]
+ truetype? ( media-libs/freetype )"
+
+src_configure() {
+ econf \
+ $(use_enable truetype ttf)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ newinitd "${FILESDIR}/${P}.initd" ${PN}
+ newconfd "${FILESDIR}/${P}.confd" ${PN}
+
+ dodoc AUTHORS README ChangeLog
+
+ if use examples ; then
+ exeinto "/usr/share/${PN}"
+ doexe examples/*
+ fi
+}
+
+pkg_postinst() {
+ elog "Set the user to run g15composer in /etc/conf.d/g15composer before starting the service."
+}
diff --git a/app-misc/g15composer/metadata.xml b/app-misc/g15composer/metadata.xml
new file mode 100644
index 000000000000..da7ba4ad6e9d
--- /dev/null
+++ b/app-misc/g15composer/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>robbat2@gentoo.org</email>
+ </maintainer>
+ <maintainer type="person">
+ <email>polynomial-c@gentoo.org</email>
+ <name>Lars Wendler</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">g15tools</remote-id>
+ </upstream>
+</pkgmetadata>