summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Hickinbottom <stuart@hickinbottom.com>2014-03-26 22:25:59 +0000
committerStuart Hickinbottom <stuart@hickinbottom.com>2014-03-26 22:25:59 +0000
commit14456626f8d1f64ada9ad2111e67c8357a31b38a (patch)
treecbd427966246a3562c25b5f7ec42457c38bb0379
parentMerge tag 'galileo-0.4_pre20140222' into develop (diff)
downloadsqueezebox-14456626f8d1f64ada9ad2111e67c8357a31b38a.tar.gz
squeezebox-14456626f8d1f64ada9ad2111e67c8357a31b38a.tar.bz2
squeezebox-14456626f8d1f64ada9ad2111e67c8357a31b38a.zip
Added snapshot ebuild for 0.4dev for 2014-03-26
-rw-r--r--app-misc/galileo/ChangeLog11
-rw-r--r--app-misc/galileo/Manifest4
-rw-r--r--app-misc/galileo/files/galileorc-236
-rw-r--r--app-misc/galileo/files/gentoo-no-tests.patch11
-rw-r--r--app-misc/galileo/galileo-0.4_pre20140326.ebuild89
5 files changed, 151 insertions, 0 deletions
diff --git a/app-misc/galileo/ChangeLog b/app-misc/galileo/ChangeLog
new file mode 100644
index 0000000..9bff860
--- /dev/null
+++ b/app-misc/galileo/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for app-misc/galileo
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*galileo-0.4_pre20140326 (26 Mar 2014)
+
+ 26 Mar 2014; Stuart Hickinbottom <stuart@hickinbottom.com>
+ +galileo-0.4_pre20140326.ebuild, +files/galileorc-2,
+ +files/gentoo-no-tests.patch:
+ Added new 0.4dev ebuild snapshot for 2014-03-26
+
diff --git a/app-misc/galileo/Manifest b/app-misc/galileo/Manifest
index af3ec6e..094eb44 100644
--- a/app-misc/galileo/Manifest
+++ b/app-misc/galileo/Manifest
@@ -3,6 +3,10 @@ AUX galileo.logrotate.d 240 SHA256 3f22e4ce0fa8b8e4d0663529d94d6a8f95da26dc4575b
AUX galileo.service 268 SHA256 82f03d6ad94f7d39fa78939aee3a3529739ffbecf63cb716df0e4a629ba521c3 SHA512 6a25e7efeb8921b86f42f319abab79aef43dc4bba55831417d8bbf6b33ddef9756234d1295a4fe396b7d273e0771a4313db97c7c20d0741ed5231dc4cb79733b WHIRLPOOL c3d32590203516f8fa63ea2f2abf9631f4db548a7b9ec8922b125284d79c92c5355694c3ba224aeeebdb48aa5351fa02145d1fd68660b986efecf4f9107b276c
AUX galileo.udev 132 SHA256 180e05455f9f2977ede6b84c239409f1ffd012e55a6494c462f6c0eac54893db SHA512 29885fb80764fb922a4d0b117daacce0f4e3fe8a021a33ff3be36b28182bc3ff3f1a24411edf2646fa24e24ae250ccba72a05a3956b543c244671f7284b40946 WHIRLPOOL 751bac386a9e1426ed4c7ac6acf5b39bea49094ceb4e40e06f5b36987eed2427f8dcfa485f451f7bee64dba5e6ca5ccfeeca3ab6a111b8668b0489f52bebd119
AUX galileorc 565 SHA256 cb78e98f08943fedcbc72bde3071a90917b8c7c898f10b1803e58d8d56bd39d8 SHA512 816bab91138045b19cf4a27760acaa7673e0e01c6e2d49b7dfcfd42ac86842a715d63c8f352d91052945cc8c5f0a115fe174e225034addb1ee4d9af3ed480f87 WHIRLPOOL e25b07d461ab7fd2f49ee699ec688f933de7e76b60569c82dfd8cefdf2947360c3b728243c254033572a1e337ee04b5556e384239e0f6958dfb8eb2153ee29e0
+AUX galileorc-2 712 SHA256 063cf6e3fa87bf7aa647708205b7f711d38d9583a4804db95a7cdd31be3fecf4 SHA512 a0604216da28458d1acffb7b75d26c6c9cf124b059750f9c4582a67d1a74e0decea3db40e2e143b17412cc96290014a760b7ca889fcf7c6db17c87d064d400fe WHIRLPOOL 36b75b2e2805e592a49d955e405220c6974548f216ef31b2264bf592b740068be678e26eb7af3d70fec7f3c84deaddfddfdea02c6b8bc9453d11c96d7cc1510c
+AUX gentoo-no-tests.patch 401 SHA256 78c26d9b9293bc43ee1af82e9b106bed65bb9fad380cf687372ce146c1cf9791 SHA512 a2bea4da3d6a615f08b79f3edf5709eafbd97d834bc57718604a98e1977851dfd13dbdce7cbf3a5b9355a9af3fecd0a08ce852accdccd2e465361b1540b90967 WHIRLPOOL e2ec02d9e0a3d73e6ed028e8408b1b4fa04bcfa6cae189ed872a259d123cf483dee67ca8b500b4d5d0530aa2b36cbc94533f91bd929c49d65e0507775f0a8ef1
DIST galileo-0.4_pre20140222.tar.gz 21759 SHA256 915a729502f912b7797b34d565d12ec4f8e1d3eb469a2cae2629f4e71eb908a4 SHA512 57f3639009c8d1bf98b189db9d85cfea82520f1ac4cbcfc7cfffd698909934edf6700ca5b310a14fd23fcf09d874ca7ff8d38081f4cedaf86e648eeafcc6b946 WHIRLPOOL 0f156c9c114313f6e620bcfeac54e698bf0e196f8f219932b2bb08c5d3ac1a561346600a37426d2ae25b56ef60c423d61f437726eb1c69c2514abf0d76c95c0d
+DIST galileo-0.4_pre20140326.tar.gz 30710 SHA256 a112d2c6b49da27a768d53fb47b506d3d3fbdc65599e62809eeba28ea1559f9c SHA512 5230b115f586fcf112dee1bbe29ac49793c9e61064d4d6858614addf345c7068c8e82a683ed2948ed4517f3d5f702c33408f86660ef46dfe2ac61e300d1f6665 WHIRLPOOL e6d0bb4bd3e50cc5ca10a2f130d612bafa6c7c732f2f209a4b4b431fd0e773d0dc3a4d2b5a88a3f54eb9c3e420d75ce01aa7eaf6f9b1bc1a5bb9940b149c867a
EBUILD galileo-0.4_pre20140222.ebuild 2042 SHA256 3bf12b20d320a71ed9e3661bba83e1f5c9f31010b330edeb93c43e9982eb6c09 SHA512 e73b2cf0c1edde2635837528a5c34208398e46769ffee6b9868c5b07c505d7f924e818bc6ca9e599deeebf8d1e7190acca94e1db9a14237650d68a168e2ccbfd WHIRLPOOL bb4de1d7e89320dbb0b8116d18b92686e2b609c34a14b766c5bb8bbe729e3c823a487e2311e46c73d5bcc394f36c0361afc1cb5cac8aaad0fd05edb86909ea3e
+EBUILD galileo-0.4_pre20140326.ebuild 2304 SHA256 0f90c4628022f8870e661adb8e5a02d102a8385d3f2c111bac82980fe89a5b52 SHA512 76d9a2039aba766a153b0944ad80f1325d1bc0c133f8cc8a1e1d09a9b38f39fb396f94b721071c95ceaf1d5a69dbdab1989db06510307548b8b592bb562f6062 WHIRLPOOL 99474ed4b06a1c5b2f690d0de7752f305995c0ce96b9a6c12715afcb87913308ceba9f7d12252e1e275dd8912ca33e670e5c39d7d6cada4cdd9fb728e74078c6
MISC metadata.xml 1060 SHA256 e88ce4e886acbc1e89e5fc669424a10d4b1baf7d2a9fc2d6e1781b29dc0c4976 SHA512 c1973617b60ba6e4c5d6bb0d0cbed8319685185aabab428d10a7e0cb312087656b6598f78830af475856bfae24067c2ecd125ae5bde0523ed3e5258d79db6e5c WHIRLPOOL d6d5261bfbb0f0e7c4758159540a137fd97c981c21315b29e7ec7b212f5d3ad78e4fdef2343408a503e41fe82340f631daa76f42dd7d4007bd2334a76626a131
diff --git a/app-misc/galileo/files/galileorc-2 b/app-misc/galileo/files/galileorc-2
new file mode 100644
index 0000000..1835549
--- /dev/null
+++ b/app-misc/galileo/files/galileorc-2
@@ -0,0 +1,36 @@
+# -*- mode: yaml; -*-
+
+# Settings for galileo.py
+
+# if in deamon mode, delay between sync runs
+# specified in milliseconds
+daemon-period: 60000
+
+# keep dump files
+keep-dumps: false
+
+# upload data to Fitbit
+do-upload: true
+
+# whether to use encryption (HTTPS) to send tracker data
+https-only: true
+
+# directory to store the dumps
+dump-dir: /var/lib/galileo/dump
+
+# logging (default/verbose/debug)
+logging: verbose
+
+# synchronize even if trackers were recently synchronized
+force-sync: false
+
+# trackers to include (remember to quote the IDs)
+#include:
+# - '123456789ABC'
+# - '9876543210AB'
+# - '112233445566'
+
+# trackers to exclude (remember to quote the IDs)
+#exclude:
+# - 'AABBCCDDEEFF'
+# - '881144BB1234'
diff --git a/app-misc/galileo/files/gentoo-no-tests.patch b/app-misc/galileo/files/gentoo-no-tests.patch
new file mode 100644
index 0000000..e73e172
--- /dev/null
+++ b/app-misc/galileo/files/gentoo-no-tests.patch
@@ -0,0 +1,11 @@
+--- setup.py.old 2014-03-23 18:53:00.000000000 +0000
++++ setup.py 2014-03-26 22:08:11.070136893 +0000
+@@ -43,7 +43,7 @@
+ 'Operating System :: OS Independent',
+ 'Programming Language :: Python',
+ ],
+- packages=find_packages(),
++ packages=find_packages(exclude=('tests',)),
+ entry_points={
+ 'console_scripts': [
+ 'galileo = galileo.main:main'
diff --git a/app-misc/galileo/galileo-0.4_pre20140326.ebuild b/app-misc/galileo/galileo-0.4_pre20140326.ebuild
new file mode 100644
index 0000000..469be92
--- /dev/null
+++ b/app-misc/galileo/galileo-0.4_pre20140326.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header$
+
+EAPI=5
+PYTHON_COMPAT=(python{2_6,2_7})
+
+inherit distutils-r1 vcs-snapshot user systemd udev
+
+COMMIT_ID="aaec22d2697c8530194ba00d7dc6c086baff5899"
+
+HOMEPAGE="https://bitbucket.org/benallard/galileo"
+SRC_URI="https://bitbucket.org/benallard/galileo/get/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
+
+KEYWORDS="~amd64 ~x86"
+DESCRIPTION="Synchronisation utility for Bluetooth LE-based Fitbit trackers"
+LICENSE="LGPL"
+SLOT="0"
+IUSE=""
+
+RUN_UID=galileo
+RUN_GID=galileo
+
+DUMPDIR=/var/lib/galileo/dump
+LOGDIR=/var/log/galileo
+
+# Runtime dependencies
+RDEPEND="
+ >=dev-python/pyusb-1.0.0_alpha1
+ >=dev-python/requests-0.13.1[${PYTHON_USEDEP}]
+ >=dev-python/pyyaml-3.10[${PYTHON_USEDEP}]
+ >=virtual/udev-208
+ "
+
+pkg_setup() {
+ # Create the user and group if not already present
+ enewgroup ${RUN_GID}
+ enewuser ${RUN_UID} -1 -1 "/dev/null" ${RUN_GID}
+}
+
+src_prepare() {
+ einfo "Applying patches"
+ epatch "${FILESDIR}/gentoo-no-tests.patch"
+
+ # Main python package installation
+ einfo "Performing standard Python ebuild install"
+ distutils-r1_python_prepare
+}
+
+python_install_all() {
+
+ # Initialisation (OpenRC)
+ einfo "Installing initialisation scripts (OpenRC and systemd)"
+ newinitd "${FILESDIR}/galileo.init.d" "${PN}"
+ systemd_dounit "${FILESDIR}/galileo.service"
+
+ # udev rule
+ einfo "Installing tracker USB dongle udev rule"
+ insinto "$(get_udevdir)/rules.d"
+ newins "${FILESDIR}/galileo.udev" 99-galileo.rules
+
+ # Configuration
+ einfo "Installing default configuration"
+ insinto /etc
+ newins "${FILESDIR}/galileorc-2" galileorc
+
+ # Initialise log directory
+ einfo "Initialising logfile directory"
+ dodir "${LOGDIR}"
+ fperms 770 "${LOGDIR}"
+ fowners ${RUN_UID}:${RUN_GID} "${LOGDIR}"
+ touch "${ED}/${LOGDIR}/galileo.log"
+ fowners ${RUN_UID}:${RUN_GID} "${LOGDIR}/galileo.log"
+
+ # Log rotation
+ einfo "Installing logfile rotation"
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/galileo.logrotate.d" "${PN}"
+
+ # Initialize server cache directory
+ einfo "Initialising tracker dump directory"
+ dodir "${DUMPDIR}"
+ fowners ${RUN_UID}:${RUN_GID} "${DUMPDIR}"
+ fperms 770 "${DUMPDIR}"
+
+ # Main python package installation
+ einfo "Performing standard Python ebuild install"
+ distutils-r1_python_install_all
+}