summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Klopfenstein <benklop@gmail.com>2015-08-05 02:10:15 -0600
committerBen Klopfenstein <benklop@gmail.com>2015-08-05 02:10:15 -0600
commit5aa1e5fceac451ee629ab0b5a81e0847bf9d9683 (patch)
tree83466ad601abf5c89867559a1aa483c24d2434f2 /app-misc/lirc
downloadbenklop-5aa1e5fceac451ee629ab0b5a81e0847bf9d9683.tar.gz
benklop-5aa1e5fceac451ee629ab0b5a81e0847bf9d9683.tar.bz2
benklop-5aa1e5fceac451ee629ab0b5a81e0847bf9d9683.zip
Initial commit
Diffstat (limited to 'app-misc/lirc')
-rw-r--r--app-misc/lirc/Manifest7
-rw-r--r--app-misc/lirc/files/50-lirc.rules1
-rw-r--r--app-misc/lirc/files/lirc.conf7
-rw-r--r--app-misc/lirc/files/lirc_options.conf28
-rw-r--r--app-misc/lirc/files/lircd.service14
-rw-r--r--app-misc/lirc/files/modprobed.lirc22
-rw-r--r--app-misc/lirc/lirc-0.9.2a-r1.ebuild37
7 files changed, 116 insertions, 0 deletions
diff --git a/app-misc/lirc/Manifest b/app-misc/lirc/Manifest
new file mode 100644
index 0000000..ed95110
--- /dev/null
+++ b/app-misc/lirc/Manifest
@@ -0,0 +1,7 @@
+AUX 50-lirc.rules 48 SHA256 4902bec912e1fb222d285f97360870cfafab30777accc006d8968e3d54d538ba SHA512 6c6d47ec8127bbfa1fa9a18d6f98dd6202de4ea06a0430bd6f913c8dc828479adbb4324f017125b20925bb3d53f804afb637ac3d39bf3a362b84f9c8764aa08f WHIRLPOOL 2eea4dfb51e2d4eb6ac14013deee6cdfb9e30ec6aa095b9e13b16ee7d2551d107de8a641eaae6242c60cc66d570152d0c1e260e662ec1aaf45219a49400c2713
+AUX lirc.conf 234 SHA256 9b6441e7f3966139c70ef14952c7613532cf93f770a205ab121e5c8fa53711c6 SHA512 1f55375f9345004e4827d35a54c438d9ee16f521fcd2222991bf222b8476cdecac87501ebbbc46c3f7c95ea0aea4b725fdbaf5ef7fe2f068205389cf78e4b432 WHIRLPOOL b6c28502c07ee5959727901c3192b055c6bdf77f407c79e19e9430f38433da3ebc7311aafc7c9807a4dc2e346f55abc74f1b1a2a974cbcf37325ace1266a94c5
+AUX lirc_options.conf 726 SHA256 31e4c4f10d7b873b57e9c792c5012357039239d9d3d32ad6e2f9bb1668198194 SHA512 18756d69e44802daa638ac999d73d7bffc9a408a178b0c732a1f965130777e6d9d190257f729f833b64b8d4342355da7a66ccda69a1bafe8fe3d9afcdaf8fc25 WHIRLPOOL e2a3021f0c5123e644f073eccdc1a1c646ea2632c595123c777b4c33bb7c8b0daf95645b650b8d0c175c069a09343f34db0937cefe5b03336f242ded53286642
+AUX lircd.service 262 SHA256 351625a20a31ff64299359448fb90f3a94493df6cec883996c3c19461c62c044 SHA512 e02559a2fa2a01ad9dd25697575bca2405e2d46850b0413f9c86106b5f167c25eee7a201e5f2f45f6574c09289573cbe4bdfd4d9e768cb8ee4489c408d817d00 WHIRLPOOL 540b645bdf42d2d6c5a1f52fa5431af5a86a9556e62f6572a4cb96d1ccd81e8e441548ef628a17708f3e230964146f128763d23ad1c2acdda6e4f5d1e7ed5173
+AUX modprobed.lirc 549 SHA256 b4951252321ea326d3ec401e5ff1112716c5aaf5b2ca94d9f5e187e22ad35c44 SHA512 a64cac97e21ab53c247d8dd3e518b3caee5eeb9c3558727eba8a04684894c6be1695ce681e71d559474f4e78bbb39130d97f843eae18e56b3d3eb70f1fbefc63 WHIRLPOOL a45ec8b3cd725f9b4c6b991cf6d4fec7869a07911a2ac82535dca665a0dd99a66b40d85faf0beea780001e9260a8a17c1ccec880c05a271a138c1e0501f7727c
+DIST lirc-0.9.2a.tar.bz2 1642734 SHA256 357ed1270c664f8293797fb0fa2c9260bd9b9cbce3497a95ce22b452fbe53604 SHA512 84cbb16cd38379ed77eed1044ea137788b4a8480b572aca19af928ec7d2a50aed089ab90a720c718d8b2e66b7af8696d5fb6998c2abdf190ee6be1ff94089bf0 WHIRLPOOL f3c28fe9e42e8ab23774d6f16d34a0efe0ae97597d96415b70f75a142495ee2619069c098580af8ee09a90c54568f055fe8f0b877f888b86c7e05f0a2cb608b0
+EBUILD lirc-0.9.2a-r1.ebuild 768 SHA256 fe50c01a00a92f7688a565e424a5c1aeccf8a766b16b0586646bb52195e273c9 SHA512 1b641d3842504d2e7ee2616db78c241162dac13b354c298454ff6aedf0a4196382c116482477fc92739946d96de8e4eba646738998feb5ebbd83fc4ae421f9c8 WHIRLPOOL aa6addf16f829cd7fb24c3d91b227e4a408b0a537a23e4ea3f7a66eda49ec563ea1a7711836ee58194a88f34bb16884b14a61d2be6882ba448bbbc8cd5525501
diff --git a/app-misc/lirc/files/50-lirc.rules b/app-misc/lirc/files/50-lirc.rules
new file mode 100644
index 0000000..e36b587
--- /dev/null
+++ b/app-misc/lirc/files/50-lirc.rules
@@ -0,0 +1 @@
+KERNEL=="lirc[0-9]*", GROUP="lirc", MODE="0664"
diff --git a/app-misc/lirc/files/lirc.conf b/app-misc/lirc/files/lirc.conf
new file mode 100644
index 0000000..0fa82d1
--- /dev/null
+++ b/app-misc/lirc/files/lirc.conf
@@ -0,0 +1,7 @@
+#put your LIRC kernel driver here, if one is needed.
+
+#lirc_serial will not work if the linux serial port driver is compiled
+#so disable that in your kernel.
+
+#all lirc kernel modules are currently in multimedia staging.
+lirc_serial
diff --git a/app-misc/lirc/files/lirc_options.conf b/app-misc/lirc/files/lirc_options.conf
new file mode 100644
index 0000000..6e1d519
--- /dev/null
+++ b/app-misc/lirc/files/lirc_options.conf
@@ -0,0 +1,28 @@
+# These are the default options to lircd, if installed as
+# /etc/lirc/lirc_options.conf. See the lircd(8) and lircmd(8)
+# manpages for info on the different options.
+
+[lircd]
+nodaemon = False
+driver = default
+device = /dev/lirc0
+output = /var/run/lirc/lircd
+pidfile = /var/run/lirc/lircd.pid
+plugindir = /usr/lib64/lirc/plugins
+permission = 666
+allow-simulate = No
+repeat-max = 600
+effective-user = lirc
+#listen = [address:]port
+#connect = host[:port]
+#debug = 6
+#uinput = ...
+#release = ...
+#logfile = ...
+
+[lircmd]
+uinput = False
+nodaemon = False
+
+[modprobe]
+#modules = [lircd_dev, lirc_sir...]
diff --git a/app-misc/lirc/files/lircd.service b/app-misc/lirc/files/lircd.service
new file mode 100644
index 0000000..497c5fb
--- /dev/null
+++ b/app-misc/lirc/files/lircd.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=LIRC Infrared Signal Decoder
+After=network.target
+
+[Service]
+Type=simple
+
+ExecStartPre=/bin/mkdir -p /var/run/lirc
+ExecStartPre=/bin/chown -R lirc:lirc /var/run/lirc
+
+ExecStart=/usr/sbin/lircd --nodaemon
+
+[Install]
+WantedBy=multi-user.target
diff --git a/app-misc/lirc/files/modprobed.lirc b/app-misc/lirc/files/modprobed.lirc
new file mode 100644
index 0000000..2ed9558
--- /dev/null
+++ b/app-misc/lirc/files/modprobed.lirc
@@ -0,0 +1,22 @@
+#
+# For first serial receivers:
+#
+#options lirc_serial irq=4 io=0x3f8
+#options lirc_sir irq=4 io=0x3f8
+
+#
+# Detach first serial port from serial-driver.
+# Use this when you have your serial-port-driver statically
+# compiled into your kernel, or as a module but loaded before
+# the lirc-module.
+#
+#install lirc_serial setserial /dev/ttyS0 uart none; modprobe --ignore-install lirc_serial
+#
+#install lirc_sir setserial /dev/ttyS0 uart none; modprobe --ignore-install lirc_sir
+
+
+#
+# For parallel receivers:
+#
+#options lirc_parallel irq=7 io=0x3bc
+
diff --git a/app-misc/lirc/lirc-0.9.2a-r1.ebuild b/app-misc/lirc/lirc-0.9.2a-r1.ebuild
new file mode 100644
index 0000000..fbbbaa0
--- /dev/null
+++ b/app-misc/lirc/lirc-0.9.2a-r1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+inherit systemd
+DESCRIPTION="decode and send infra-red signals of many commonly used remote controls"
+HOMEPAGE="http://www.lirc.org/"
+
+MY_P=${PN}-${PV/_/}
+
+if [[ "${PV/_pre/}" = "${PV}" ]]; then
+ SRC_URI="mirror://sourceforge/lirc/${MY_P}.tar.bz2"
+else
+ SRC_URI="http://www.lirc.org/software/snapshots/${MY_P}.tar.bz2"
+fi
+
+LICENSE="GPL-2
+ MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="x11-libs/libX11
+ x11-libs/libSM
+ x11-libs/libICE
+ "
+RDEPEND="${DEPEND}"
+
+src_install() {
+ systemd_dounit "${FILESDIR}"/lircd.service
+}
+
+pkg_preinst() {
+ enewgroup lirc
+ enewuser lirc -1 /bin/false /dev/null "lirc,daemon"
+}