summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Rathgeb <maggu2810@gmail.com>2013-04-06 18:56:14 +0200
committerMarkus Rathgeb <maggu2810@gmail.com>2013-04-06 18:56:14 +0200
commit306d0fffcf985d86efa02b7c73052ca88e33ee0c (patch)
tree785d945ddac753e744e4cdec838fecdb1eb83473 /games-util
parentAdd comment for newly installed udev rule. (diff)
downloadsunrise-306d0fffcf985d86efa02b7c73052ca88e33ee0c.tar.gz
sunrise-306d0fffcf985d86efa02b7c73052ca88e33ee0c.tar.bz2
sunrise-306d0fffcf985d86efa02b7c73052ca88e33ee0c.zip
Add an untested OpenRC init script. Remove some unused stuff that needs not to be installed.
Diffstat (limited to 'games-util')
-rw-r--r--games-util/qtsixa/Manifest3
-rwxr-xr-xgames-util/qtsixa/files/sixad.init20
-rw-r--r--games-util/qtsixa/qtsixa-1.5.1.ebuild13
3 files changed, 34 insertions, 2 deletions
diff --git a/games-util/qtsixa/Manifest b/games-util/qtsixa/Manifest
index 84818063b..30f100d3b 100644
--- a/games-util/qtsixa/Manifest
+++ b/games-util/qtsixa/Manifest
@@ -1,6 +1,7 @@
AUX 97-sixpair.rules 91 SHA256 a85575f71d98c872173f5e1e44f26f2511c8cb684ea5046637579892a54de125 SHA512 47e8248855567e74ed07f6350e366051a74e7b65d5c3ea9583d9d685d19087ba7b378eb0625df260e4f0719a38dfab8355e9363ca148340cedac30152ffba44b WHIRLPOOL 9128abc7db3bc9420b525942a355d6769e7b78826f09456a74220a90e53fb620711ca3020b3425876a9452d3c03811e96d9adee42f816f9b1de29ac26aeac6bc
AUX qtsixa-1.5.1-fix-missing-includes.patch 2381 SHA256 3b1efe3a418e77aa0a8c2c6076ced5c6ac35b32f018b19e8f351ebba4d1a4fdb SHA512 0aacbb78c64a394d41a645bc6524be838103544717c416d651211bf6ada23e2ba5a35b73f151cf4be95cc1f27a3b020348e1e44b3c5af0c605a7d0b3bdd07547 WHIRLPOOL 80969db4446e0c352f575e5a88bcc9c704948231a0bbd25a7f359390f3e2907e07835e2ef88bc15d4f9f6232d7877394f1888efd8d3dcf5ef4050a21a8e4aa48
+AUX sixad.init 406 SHA256 af737b265383966733a641dbe94e164bb0922de71cd8552c7bd1dd0dd8236728 SHA512 d0ef9ef3ce71b40b032c2354cee6e43e74941e085341c672ec05102067cc684ff7ab4a51d3f921a44ada2bb0d99cf537a9e386a287a2963c8b2431ffaba89760 WHIRLPOOL c70667cb0a6118c569f6df8bf664ed321c5d79aaf444002feec559570d9f6c98450ac957458c941ca57cfe8529e6d1f9eb748e17be62430bde54b7df6721351f
AUX sixad.service 310 SHA256 3731d19468f1f9f6a2d6809a6ab6d6b844e0749fa886bf7aa4214dbb07e263e3 SHA512 a706789955608624d334552e153c21ef4da4a6874111231dd50a726c07e7664c0271b517037d56defa2f8810e4f043d88ee0a78076c120d5432f31bf76f74438 WHIRLPOOL f0738fd2419b3278d52e3a396d534ccf227d20222e77b01c148d8c82fab90db07eee9732c630d31f7e6012cdedd1052f2da6f943396e45e257fb9f8a5b2581d9
DIST QtSixA-1.5.1-src.tar.gz 930296 SHA256 4111a4f9b4fa38246594d74bd03d75d43cf8b079251de0436094b5b0101336ff SHA512 53e8988f3eac730fc116347d32ed45c975bb176b4a4e9b13b3854db735d64c5de32be9fd845ee84d860f025aa60c01776a7ad1f2eca74c6a8a137e132c9239fe WHIRLPOOL 3fda14fa823ac4b84233d51e3d201a8500b4e588da07af0b5ad9080e5dce276119f3e4e6b8361bc070654980a0b0fa1e15fe0cc7aaaa71198c3b099c6958af16
-EBUILD qtsixa-1.5.1.ebuild 2186 SHA256 e3ccb243001d4856730bdd76e870dbb11c46c81a5086aa70cab2912760613666 SHA512 5bbbc926ef1ae72853e1e2296f3cd59bc33caea9367c435e8a7fe1e3c547043a21dc89353c8fc34ae69590be42eb3d67dd91b2fae08d9421a42d90b80902990b WHIRLPOOL ded52e9745ad9d39b9c5592fdddb8097e88705befbaf3ad9973bc56c08f34a874b2a9a29718b4d0ff1ad4b59a7ac813980b0ea9bc55e04df4f01254da036bc21
+EBUILD qtsixa-1.5.1.ebuild 2567 SHA256 4d2f1833e86fcfd8a6d6877ab4a89f9184f8367bd05650cc7f26a4dd33468434 SHA512 c291c128b5cffc638c184eba0f254dec2349bd868a1e74f2e97329c77c43fd8aa5a3b2ea51fa58aeb90ec4d90ecb08e99d83f6c5855c2f994216056041adb1db WHIRLPOOL 13fdd1ea66819773b29bbf1a7c809f929102c877e4a3144f35521e9d0b8292fbe68da1bf4fd49da0151eaf953a0436093845f7a9bfdaadd2b21f851b15245cc6
MISC metadata.xml 264 SHA256 a6c0645373a0d057f6107a9c0a263448eb7089f32a87f4deda24c2c88303817d SHA512 5d1ccae9f3935301fdf9b67f1334005a38c296a3269a960bfb683e79cec779898bd2e79c89bb642ef7cb70307b950041df1b005a9a95aaf415a219847e36f252 WHIRLPOOL 31d9d7c7d2d23128ef9db52c3872f917744ccf77160638c6ac53f29ccb2232af1cd5a7c7d9bcd1daa7c9c1fc4016a9ff17b6536a026bcb2ecfd9febceaa52a41
diff --git a/games-util/qtsixa/files/sixad.init b/games-util/qtsixa/files/sixad.init
new file mode 100755
index 000000000..8d3e13b48
--- /dev/null
+++ b/games-util/qtsixa/files/sixad.init
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+depend() {
+ need bluetooth
+}
+
+start() {
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start --exec /usr/sbin/sixad-bin 0 0 0
+ eend $?
+}
+
+stop() {
+ ebegin "Shutting down ${SVCNAME}"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/sixad-bin 0 0 0
+ eend $?
+}
diff --git a/games-util/qtsixa/qtsixa-1.5.1.ebuild b/games-util/qtsixa/qtsixa-1.5.1.ebuild
index 0a9f6e3bc..8fcc509a4 100644
--- a/games-util/qtsixa/qtsixa-1.5.1.ebuild
+++ b/games-util/qtsixa/qtsixa-1.5.1.ebuild
@@ -58,10 +58,21 @@ src_install() {
python_optimize "${D}"/usr/share/qtsixa/gui
fi
- rm "${D}etc/init.d/sixad" || die # TODO: Write a Gentoo version.
+ # Remove unused configuration file.
+ # Since we are using hand-written startup files.
+ # We could coexist with the bluetooth daemon if input plugin is disabled.
+ rm -rf "${D}etc/default"
+ # Remove unused logrotate configuration file.
+ rm -rf "${D}etc/logrotate.d"
+
+ # Use our own init script compatible with OpenRC.
+ cp "${FILESDIR}"/sixad.init "${D}etc/init.d/sixad"
+
+ # Install systemd unit file.
systemd_dounit "${FILESDIR}"/sixad.service
+ # Add an udev rule for automatically pairing.
udev_dorules "${FILESDIR}"/97-sixpair.rules
}