diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-misc/actkbd |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-misc/actkbd')
-rw-r--r-- | app-misc/actkbd/Manifest | 8 | ||||
-rw-r--r-- | app-misc/actkbd/actkbd-0.2.8-r2.ebuild | 48 | ||||
-rw-r--r-- | app-misc/actkbd/files/actkbd-0.2.7-amd64.patch | 38 | ||||
-rw-r--r-- | app-misc/actkbd/files/actkbd.confd | 12 | ||||
-rw-r--r-- | app-misc/actkbd/files/actkbd.initd | 31 | ||||
-rw-r--r-- | app-misc/actkbd/metadata.xml | 9 |
6 files changed, 146 insertions, 0 deletions
diff --git a/app-misc/actkbd/Manifest b/app-misc/actkbd/Manifest new file mode 100644 index 000000000000..b2139c6f034b --- /dev/null +++ b/app-misc/actkbd/Manifest @@ -0,0 +1,8 @@ +AUX actkbd-0.2.7-amd64.patch 1188 SHA256 de3b3e37e69f835ae9982ec9a8fa44394dbc0b0d06fbdda46ebfa1896c5e1c4c SHA512 921b5f654aabe06eb0589cf1b22bf44e3c7c662b088104dff8d439929ffa05fc6f658619bc54f5b0fa813a396ae740f05a121515af8f546395250a55a722dab0 WHIRLPOOL 10e5c933127162f123abf4a25d54a2cb5a25814d571cdcbabd1089509e86ba8cd63341e7b4af82d399e3efbb8586042225dea7a061a37ea34722b101c99e4eac +AUX actkbd.confd 276 SHA256 6b95694397bf7721146b44cc0a4f38a608c53cf4ef570dc6dc21d1a35722e2aa SHA512 2128c4c3e1754014e7e1e446ce6d8753045d517c500a957ceb0e761d60c0141c6fc26f427891d2937c5cb56c60759b9045ba21418d2f57bd8dca11c10ade18bf WHIRLPOOL 34fdf307fccf1dafd3e351aaf0a04997f5682474c92cdfdff293c27d33e768ba4deb7e6ac009da3f8722bb78c19aec412b5e9b22c17cb0ad406265cb26142ba5 +AUX actkbd.initd 782 SHA256 f78ec72a14a0dba1378b0e7419e3858e254139ab4fcbcc0d445094b998456975 SHA512 1d5d0e62a09562d7274807f18d8a34735b4ddb47bc2cb99374a8b62ffef8d5e553a682e273b57ef99460b1850730520e9f12b1ffeab8c39ddaec50595e100b8e WHIRLPOOL 4e9a2d688e32b6fbc36544c5fa9fa34f56b7938529aafbe51cb8c0fec76cd51845bc50843460084e8472fc4e941f0ab345a85c85864ee0b0c94011196db918e8 +DIST actkbd-0.2.8.tar.bz2 23192 SHA256 95ea643b8e1b6bd8b9bc342d4a01eb4639498e15329aa42329f7cc83cb3cebc6 SHA512 307d97b2854be801f1a4a8a8fbc408d3c83efd40f5bb35ea463b154fc0c9761fcb83a99905cd2730a24122ff222f60f31c4ac0163600ba463d4713846de2bf72 WHIRLPOOL cf1288351bb8ccc7306289cf7227483d5a7c13905cfa24af905c568ce135aa4cee7085141d8e4812aa09a045cd8448ae15973224b6bd9d5e7d8c5c568db750dd +EBUILD actkbd-0.2.8-r2.ebuild 1197 SHA256 4c22faa8c02e79d56488acedbb88223c8463394d48a10b7943e9189f312a9b95 SHA512 3971370b2d2b9cafb4d9570ef65a233fa392a95d8378429dacc57f78e1f89fc8aab8413466d163fce84d071929f219abb0ae886e7cfa20071113171fc982f0c1 WHIRLPOOL 584a290b98d6731efc145eaab181b22a84b3274e1c56d5f966fa859897ebc3032ce94eda0775391ea7613a90beb994166ba2ad88e5d34fbc5fa772052a93eab9 +MISC ChangeLog 3027 SHA256 4dc1c61cf91e67e91038d7c89fab48d306c0cdaf9e2e9f67fed4f5bbb933b747 SHA512 6a5947d6fe10524917023337972b1a9839078fb552b40c39d9b840082f971dba40fee7bc8298971681a20b2d60372cc41803910a7094be040d8e94c6cbebca9e WHIRLPOOL 11e24a38fc7f0b080268336eda755403cd9eba8e6af6b924f308cf21163c75cd0e4207d0c46ef3ed175f6e29efe9ba9b5d97b4683fb307daf35b5b11c3ac2cb3 +MISC ChangeLog-2015 1998 SHA256 567accb9184851cebc2ac7a21822f1459f96ba9c5b900ba4d505e8c05970785d SHA512 6b5d99d31b6112841d100a3f92066d21ab73fb92a3905f580c5fa0b91d1657ad075be1d51844b4b2fb05faf838c634cfe6e533ed1ef115eeff27b4dd49d53b1b WHIRLPOOL 724447937f71e82c90226481943aa78f58b3a82603612f1913589b4cbc6fd7beacdf1e6c5e8f14852760c0ad70e62be3352232b0375dee21aff83af1c136b8ed +MISC metadata.xml 351 SHA256 5c496814e80eddaff612ab5557fc83c0e383600478eef36ee0229c67bc36f308 SHA512 f40d5dc16d267d0bf0171d927157805a4b31a3e2816eb128d3b9e6f0aded5b45b1865c1e06ceccf56618f68a15682fc3f416e7af49af007073b50fdb383359cd WHIRLPOOL ec923eee19cf6812cc94e28cd1c0bbbb4ce2cd09c0f1ef5e873212c26a76b1c9e0fd46a9acd23f4dc89c3452cdd42b1ae5ec6dcee945b7196c7057bf21424fc4 diff --git a/app-misc/actkbd/actkbd-0.2.8-r2.ebuild b/app-misc/actkbd/actkbd-0.2.8-r2.ebuild new file mode 100644 index 000000000000..0b926c6873fa --- /dev/null +++ b/app-misc/actkbd/actkbd-0.2.8-r2.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit linux-info eutils toolchain-funcs + +DESCRIPTION="A keyboard shortcut daemon" +HOMEPAGE="http://users.softlab.ece.ntua.gr/~thkala/projects/actkbd/" +SRC_URI="http://users.softlab.ece.ntua.gr/~thkala/projects/actkbd/files/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="" +RDEPEND="" + +CONFIG_CHECK="~INPUT_EVDEV" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.2.7-amd64.patch +} + +src_compile() { + emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)" +} + +src_install() { + dobin actkbd + dodoc AUTHORS ChangeLog FAQ README TODO + docinto samples + dodoc samples/actkbd.conf + newconfd "${FILESDIR}/${PN}.confd" ${PN} + newinitd "${FILESDIR}/${PN}.initd" ${PN} +} + +pkg_postinst() { + elog + elog "System-wide configuration file is /etc/actkbd.conf." + elog "Use actkbd.conf from usr/share/doc/${PF}/samples as a template." + elog "You need to create the config and set right input device from" + elog "/dev/input/event* in /etc/conf.d/actkbd" + elog + elog "To obtain keycodes for pressed combinations/keys just run:" + elog " # actkbd -s -d /dev/input/event<MYDEVICENUMBER>" +} diff --git a/app-misc/actkbd/files/actkbd-0.2.7-amd64.patch b/app-misc/actkbd/files/actkbd-0.2.7-amd64.patch new file mode 100644 index 000000000000..b962d7e861a7 --- /dev/null +++ b/app-misc/actkbd/files/actkbd-0.2.7-amd64.patch @@ -0,0 +1,38 @@ +# Try to fix pointer assigned to int and vice-versa problems. Written by Joe Pelkey. + +diff -ru actkbd-0.2.7.orig/actkbd.h actkbd-0.2.7/actkbd.h +--- actkbd-0.2.7.orig/actkbd.h 2006-05-02 13:24:01.000000000 -0400 ++++ actkbd-0.2.7/actkbd.h 2006-10-27 03:37:37.000000000 -0400 +@@ -122,7 +122,7 @@ + typedef struct _attr_t attr_t; + struct _attr_t { + int type; /* Attribute type */ +- void *opt; /* Options for this attribute */ ++ int opt; /* Options for this attribute */ + attr_t *next; /* The next node */ + }; + +diff -ru actkbd-0.2.7.orig/config.c actkbd-0.2.7/config.c +--- actkbd-0.2.7.orig/config.c 2006-08-20 07:05:36.000000000 -0400 ++++ actkbd-0.2.7/config.c 2006-10-27 03:55:21.000000000 -0400 +@@ -107,7 +107,7 @@ + strtolower(attrs); + while ((tmp = strsep(&attrs, ", \t")) != NULL) { + int type = -1; +- void *opt = NULL; ++ int opt = 0; + char *num = NULL; + + if (strlen(tmp) == 0) +@@ -174,9 +174,9 @@ + + errno = 0; + if (strlen(num) > 0) { +- opt = (void *)((int)strtol(num, (char **)NULL, 10)); ++ opt = ((int)strtol(num, (char **)NULL, 10)); + } else { +- opt = (void *)((int)(-1)); ++ opt = ((int)(-1)); + } + + if (((int)opt < 0) && diff --git a/app-misc/actkbd/files/actkbd.confd b/app-misc/actkbd/files/actkbd.confd new file mode 100644 index 000000000000..5c67b5151717 --- /dev/null +++ b/app-misc/actkbd/files/actkbd.confd @@ -0,0 +1,12 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# Configuration file +CONFIG="/etc/actkbd.conf" + +# Event provider providing the keypress events +EVENT_DEVICE="/dev/input/<DEVICE>" + +# PID +PIDFILE="/var/run/actkbd.pid" + diff --git a/app-misc/actkbd/files/actkbd.initd b/app-misc/actkbd/files/actkbd.initd new file mode 100644 index 000000000000..bb03870adb2f --- /dev/null +++ b/app-misc/actkbd/files/actkbd.initd @@ -0,0 +1,31 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +checkconfig() { + if [ ! -f ${CONFIG} ] ; then + eerror "Config file \"${CONFIG}\" does not exist. Create it prior launching the daemon." + return 1 + fi + if [ ! -c ${EVENT_DEVICE} ] ; then + eerror "Device \"${EVENT_DEVICE}\" is not valid pointer to input provider." + return 1 + fi +} + +depend() { + before acpid +} + +start() { + checkconfig || return 1 + ebegin "Starting actkbd" + start-stop-daemon --start --quiet --pidfile ${PIDFILE} --exec /usr/bin/actkbd -- -c "${CONFIG}" -D -q -x -l -p "${PIDFILE}" -d "${EVENT_DEVICE}" + eend $? +} + +stop() { + ebegin "Stopping actkbd" + start-stop-daemon --stop --quiet --pidfile ${PIDFILE} --exec /usr/bin/actkbd + eend $? +} diff --git a/app-misc/actkbd/metadata.xml b/app-misc/actkbd/metadata.xml new file mode 100644 index 000000000000..80d57fa74097 --- /dev/null +++ b/app-misc/actkbd/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <longdescription> +actkbd is a simple daemon that binds actions to keyboard events. It recognises +key combinations and can handle press, repeat and release events. + </longdescription> +</pkgmetadata> |