summaryrefslogtreecommitdiff
path: root/sys-apps/qcontrol
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-12-18 11:06:49 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-12-18 11:06:49 +0000
commitab3da91fb6c91a9df52fff8f991570f456fd3c7a (patch)
treee8f3bfa2c6c3d20ec3b9c352c839e23949068b6b /sys-apps/qcontrol
parent6abbf81ef2f298e3221ff5e67a1f3c5f23958212 (diff)
gentoo resync : 18.12.2020
Diffstat (limited to 'sys-apps/qcontrol')
-rw-r--r--sys-apps/qcontrol/Manifest3
-rw-r--r--sys-apps/qcontrol/qcontrol-0.4.2-r1.ebuild2
-rw-r--r--sys-apps/qcontrol/qcontrol-0.4.2-r100.ebuild69
3 files changed, 72 insertions, 2 deletions
diff --git a/sys-apps/qcontrol/Manifest b/sys-apps/qcontrol/Manifest
index 349d467a9b1e..4e920640db21 100644
--- a/sys-apps/qcontrol/Manifest
+++ b/sys-apps/qcontrol/Manifest
@@ -3,5 +3,6 @@ AUX conf.d 133 BLAKE2B 4d77e38035348a26a1dc576cdc681ef41e10104730158e4c3f58ea40b
AUX init.d 2211 BLAKE2B 5656083b4689db24bfa77b07704316123a4690e8160d355b42d6bdc359a9ace495ae52b72199e31573307b400ec6e9bea02cfd5e9e136a5faa7b3d94591b3a8c SHA512 66c6c4f30e93f759ca7a9875e23ed82843d9cc728c14c7bc7fffee3fbbafefa57244155649986c547264f500a21d0099efd1195d1810b47370c8f77ed79e4dde
DIST qcontrol_0.4.2-6.diff.gz 11426 BLAKE2B 5f4374d2a6a2f79ca357827437d7ec42c6122b8f3ba008bb8c39adaf80a2edff24ed4f0abb29780ad70cac09eb1d39124d3d9762d603c896c8857ad7b8e7910e SHA512 ce450d04c72052c8e7ce0bf26d21d9942d3ea02b958b510efdf26d368ee69778eaf61bec2084c4d21cc1a5d281d1331e40b7bcaf388b4b59174a37ed037dd984
DIST qcontrol_0.4.2.orig.tar.gz 18344 BLAKE2B c90d3d31ffd624bad11e70a2c700e0e058c9fa6cc2cfa6bb803471df67d07d03a88ae134d5543dbbefe30b5870089a29151614a545dc171de5eb4732d6592461 SHA512 f132faff54833f11ae79622dc8e33b4e0f2516f7377633ff47a4ebe71335503c5e4892723c049b00888622ce059026cd97c6856b425b94163ec09887bd21e81e
-EBUILD qcontrol-0.4.2-r1.ebuild 1463 BLAKE2B 3fb2eedbf1612941799a8de22ac0dc2c978124a51901f49b9d18c859af1fee96db3f91de8ee4f6f5394d3eb3273d1d8cf9eb51e2b92c49416bb5d496f1609392 SHA512 293df9663c7327d512b90f8b8114745a5f26da307715773f69bd9b5ed624a26ea3c20a635c4d7f179d496d6f18b82c854618fe02585b2935ed0fe9b6f23fe6fe
+EBUILD qcontrol-0.4.2-r1.ebuild 1464 BLAKE2B dd6758a5e88a759187f99cb790c2cff2db024fe9b61e9cc920080b3030397e056d61a4469e5029d03fc4b4995bea75952853cfbf7672fddff8e1490a790bb864 SHA512 fa18cf1eb376a5362b0bb75f15b8c56cbc445f8a37e15a7ebefd11967e37a12573a7bf859e03c723469c169207d432b13512f0e0279f69710cb7ff26c22843f1
+EBUILD qcontrol-0.4.2-r100.ebuild 1595 BLAKE2B 6f4fe53462724852c82b20dfb543fccbac1eed102a00081862717d490ba6d3065ca824106fbb2946379f26a41f47e258170ee14500f170054d83ce3ea7f8bc0e SHA512 392ea7d3efa598245b2358da81e48ff83a373af6a1f3f3518b7018be563ac7d562dc8328c86ec6784cd16402c478420c5168dd09b790d6d4bcb5e5c7280813f1
MISC metadata.xml 367 BLAKE2B 8a20a869201a1a69097488f15283baa6eaff5e80667974605e34470d0fbeef210efce302a5feb1b30075273c468b96cf197125d7f7dcdef93faff7b35fb34664 SHA512 ee0131a33df4a79331dfe2a7485d71b05f8f386d3b6ce0b26ab76a7c9f8d9b20efb931fda54d499feb9dd6c3feba34299cf8943fbac2ffea2076e634d49087de
diff --git a/sys-apps/qcontrol/qcontrol-0.4.2-r1.ebuild b/sys-apps/qcontrol/qcontrol-0.4.2-r1.ebuild
index 2cf602ce5051..3449c7a5c7ad 100644
--- a/sys-apps/qcontrol/qcontrol-0.4.2-r1.ebuild
+++ b/sys-apps/qcontrol/qcontrol-0.4.2-r1.ebuild
@@ -15,7 +15,7 @@ SLOT="0"
KEYWORDS="arm"
IUSE=""
-DEPEND=">=dev-lang/lua-5.1:="
+DEPEND=">=dev-lang/lua-5.1:0="
RDEPEND="${DEPEND}"
src_prepare() {
diff --git a/sys-apps/qcontrol/qcontrol-0.4.2-r100.ebuild b/sys-apps/qcontrol/qcontrol-0.4.2-r100.ebuild
new file mode 100644
index 000000000000..13c3d4b5faa3
--- /dev/null
+++ b/sys-apps/qcontrol/qcontrol-0.4.2-r100.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-1 luajit )
+
+inherit lua-single toolchain-funcs
+
+DESCRIPTION="Send commands to some microcontrollers, e.g., to change LEDs or sound a buzzer"
+HOMEPAGE="http://qnap.nas-central.org/index.php/PIC_Control_Software"
+SRC_URI="mirror://debian/pool/main/q/qcontrol/${P/-/_}.orig.tar.gz
+ mirror://debian/pool/main/q/qcontrol/${P/-/_}-6.diff.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~arm"
+IUSE=""
+
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+
+DEPEND="${LUA_DEPS}"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ default
+
+ eapply "${WORKDIR}"/*.diff
+ eapply debian/patches/*.patch
+ eapply "${FILESDIR}"/${PV}-Makefile.patch
+
+ sed -i -e "s/LDFLAGS=/LDFLAGS ?=/" Makefile || die
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ CFLAGS="$(lua_get_CFLAGS) ${CFLAGS}" \
+ LDFLAGS="$(lua_get_LIBS) -lpthread ${LDFLAGS}" \
+ qcontrol
+}
+
+src_install() {
+ dosbin qcontrol
+ doman debian/qcontrol.1
+
+ insinto /etc/qcontrol
+ doins debian/configs/*.lua
+
+ newconfd "${FILESDIR}"/conf.d qcontrol
+ newinitd "${FILESDIR}"/init.d qcontrol
+}
+
+pkg_preinst() {
+ device=$(grep "Hardware[[:space:]]*:" /proc/cpuinfo 2>/dev/null | \
+ head -n1 | sed "s/^[^:]*: //")
+ case ${device} in
+ "QNAP TS-109/TS-209")
+ dosym qcontrol/ts209.lua /etc/qcontrol.conf ;;
+ "QNAP TS-119/TS-219")
+ dosym qcontrol/ts219.lua /etc/qcontrol.conf ;;
+ "QNAP TS-409")
+ dosym qcontrol/ts409.lua /etc/qcontrol.conf ;;
+ "QNAP TS-41x")
+ dosym qcontrol/ts41x.lua /etc/qcontrol.conf ;;
+ *)
+ ewarn "Your device is unsupported" ;;
+ esac
+}