mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-02 03:30:48 +02:00
blue_hydra: cleaup
This commit is contained in:
parent
64e7daf70e
commit
363f905c18
3 changed files with 0 additions and 219 deletions
|
|
@ -1,3 +1 @@
|
|||
DIST blue_hydra-1.9.10.tar.gz 196030 BLAKE2B c47eb20a09c8d411dc8ba10ba9a406bb39d7ba974749c96afb2519a2153a28f33d24699063267552f015f410d572cc6650f219761729e16dca4fe7b53eb1e941 SHA512 97fb238b5702533a92e4085988427a7aa6aeafbc0fb49b39a34c3a042d3b180cb0aca6850bf298b101cc45adcaa18c3163deb790c8112e55f4449b687cf7d60b
|
||||
DIST blue_hydra-1.9.14.tar.gz 196287 BLAKE2B 1643144de735cc63312c16cf88fd09b3f5a7e418991845858ee650200c31db40c52d0ea57642200c01d8c731f79791d48c3db980762cfc930b2f58b97b3aab6a SHA512 42b570dcc7a1d8e6dc0dbe1388b832654f35d1bbeefd8c682db3edbe39ff80717f58b01dcee87815c5f19ed3bc2bfccf2fd2c519c85336a5074a71b53c439be6
|
||||
DIST blue_hydra-1.9.15.tar.gz 196477 BLAKE2B 295622593bda96fe28fa95393c0f8805ffe6449be2ae2c1e72155161ca070dad4bb1ba0d3bd34f0a622c55ec41144cb97e7aa202b4b5866a30060b600d5e7fab SHA512 15d380f712bf0699e70a43859b988bb474843b94de46c6655b917b713741bdab0df31a96e63789e2ad1374c86c213facd4922df630e7ca5f136f1c9133d18727
|
||||
|
|
|
|||
|
|
@ -1,104 +0,0 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="bluetooth discovery service built on top of bluez"
|
||||
HOMEPAGE="https://github.com/pwnieexpress/blue_hydra"
|
||||
SRC_URI=""
|
||||
|
||||
LICENSE="BSD-4"
|
||||
SLOT="0"
|
||||
USE_RUBY="ruby23 ruby24"
|
||||
inherit ruby-ng
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
EGIT_REPO_URI="https://github.com/zerochaos-/blue_hydra.git"
|
||||
EGIT_CHECKOUT_DIR="${WORKDIR}"/all
|
||||
else
|
||||
KEYWORDS="amd64 x86 arm"
|
||||
#strictly speaking this isn't a blue_hydra version number but a random simulation of a Pwnie Express software release number
|
||||
#but close enough for pushing out stable releases
|
||||
SRC_URI="https://github.com/zerochaos-/blue_hydra/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
fi
|
||||
|
||||
IUSE="development ubertooth"
|
||||
|
||||
DEPEND=""
|
||||
PDEPEND="dev-python/dbus-python
|
||||
>=net-wireless/bluez-5.46[test-programs,deprecated(+)]
|
||||
ubertooth? ( net-wireless/ubertooth )"
|
||||
|
||||
test_deps="dev-ruby/rake dev-ruby/rspec:*"
|
||||
ruby_add_bdepend "dev-ruby/bundler
|
||||
test? ( ${test_deps} )"
|
||||
ruby_add_rdepend "dev-ruby/dm-migrations
|
||||
dev-ruby/dm-sqlite-adapter
|
||||
dev-ruby/dm-timestamps
|
||||
dev-ruby/dm-validations
|
||||
dev-ruby/louis
|
||||
development? ( dev-ruby/pry
|
||||
${test_deps} )"
|
||||
|
||||
#RUBY_S="${WORKDIR}/${P}"
|
||||
|
||||
all_ruby_unpack () {
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
git-r3_src_unpack
|
||||
else
|
||||
default_src_unpack
|
||||
fi
|
||||
}
|
||||
|
||||
all_ruby_prepare() {
|
||||
[ -f Gemfile.lock ] && rm Gemfile.lock
|
||||
if ! use development; then
|
||||
sed -i -e "/^group :development do/,/^end$/d" Gemfile || die
|
||||
fi
|
||||
if ! use test; then
|
||||
sed -i -e "/^group :test do/,/^end$/d" Gemfile || die
|
||||
fi
|
||||
if ! use test && ! use development; then
|
||||
sed -i -e "/^group :test, :development do/,/^end$/d" Gemfile || die
|
||||
fi
|
||||
sed -i -e '/simplecov/I s:^:#:' spec/spec_helper.rb || die
|
||||
}
|
||||
|
||||
each_ruby_prepare() {
|
||||
if [ -f Gemfile ]
|
||||
then
|
||||
BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle install --local || die
|
||||
BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle check || die
|
||||
fi
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
ruby-ng_rspec || die
|
||||
}
|
||||
|
||||
each_ruby_install() {
|
||||
dodir /usr/share/doc/${PF}
|
||||
cp -R {README.md,TODO} "${ED}"/usr/share/doc/${PF} || die
|
||||
|
||||
rm -r spec || die
|
||||
if [ -f Gemfile.lock ]; then
|
||||
rm Gemfile.lock || die
|
||||
fi
|
||||
|
||||
dodir /usr/$(get_libdir)/${PN}
|
||||
cp -R * "${ED}"/usr/$(get_libdir)/${PN}
|
||||
fowners -R root:0 /
|
||||
|
||||
dodir /usr/sbin
|
||||
cat <<-EOF > "${ED}"/usr/sbin/blue_hydra
|
||||
#! /bin/sh
|
||||
cd /usr/$(get_libdir)/${PN}
|
||||
exec ${RUBY} -S ./bin/blue_hydra \$@
|
||||
EOF
|
||||
fperms +x /usr/sbin/blue_hydra
|
||||
|
||||
#touch these files so we know who owns them
|
||||
touch blue_hydra.yml blue_hydra_rssi.log blue_hydra.log
|
||||
}
|
||||
|
|
@ -1,113 +0,0 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="bluetooth discovery service built on top of bluez"
|
||||
HOMEPAGE="https://github.com/zerochaos-/blue_hydra"
|
||||
SRC_URI=""
|
||||
|
||||
LICENSE="BSD-4"
|
||||
SLOT="0"
|
||||
USE_RUBY="ruby23 ruby24 ruby25"
|
||||
inherit ruby-ng
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
EGIT_REPO_URI="https://github.com/zerochaos-/blue_hydra.git"
|
||||
EGIT_CHECKOUT_DIR="${WORKDIR}"/all
|
||||
else
|
||||
KEYWORDS="amd64 x86 arm"
|
||||
#strictly speaking this isn't a blue_hydra version number but a random simulation of a Pwnie Express software release number
|
||||
#but close enough for pushing out stable releases
|
||||
SRC_URI="https://github.com/zerochaos-/blue_hydra/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
fi
|
||||
|
||||
IUSE="development ubertooth"
|
||||
|
||||
DEPEND=""
|
||||
PDEPEND="dev-python/dbus-python
|
||||
>=net-wireless/bluez-5.46[test-programs,deprecated(+)]
|
||||
ubertooth? ( net-wireless/ubertooth )"
|
||||
|
||||
test_deps="dev-ruby/rake dev-ruby/rspec:2"
|
||||
ruby_add_bdepend "dev-ruby/bundler
|
||||
test? ( ${test_deps} )"
|
||||
ruby_add_rdepend "dev-ruby/dm-migrations
|
||||
dev-ruby/dm-sqlite-adapter
|
||||
dev-ruby/dm-timestamps
|
||||
dev-ruby/dm-validations
|
||||
dev-ruby/louis
|
||||
development? ( dev-ruby/pry
|
||||
${test_deps} )"
|
||||
|
||||
#RUBY_S="${WORKDIR}/${P}"
|
||||
|
||||
all_ruby_unpack () {
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
git-r3_src_unpack
|
||||
else
|
||||
default_src_unpack
|
||||
fi
|
||||
}
|
||||
|
||||
all_ruby_prepare() {
|
||||
[ -f Gemfile.lock ] && rm Gemfile.lock
|
||||
if ! use development; then
|
||||
sed -i -e "/^group :development do/,/^end$/d" Gemfile || die
|
||||
fi
|
||||
if ! use test; then
|
||||
sed -i -e "/^group :test do/,/^end$/d" Gemfile || die
|
||||
fi
|
||||
if ! use test && ! use development; then
|
||||
sed -i -e "/^group :test, :development do/,/^end$/d" Gemfile || die
|
||||
fi
|
||||
sed -i -e '/simplecov/I s:^:#:' spec/spec_helper.rb || die
|
||||
}
|
||||
|
||||
each_ruby_prepare() {
|
||||
if [ -f Gemfile ]
|
||||
then
|
||||
BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle install --local || die
|
||||
BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle check || die
|
||||
fi
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
ruby-ng_rspec || die
|
||||
rm blue_hydra.log || die
|
||||
rm blue_hydra.yml || die
|
||||
rm blue_hydra_rssi.log || die
|
||||
rm blue_hydra_chunk.log || die
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
dodir /usr/share/doc/${PF}
|
||||
cp -R {README.md,TODO} "${ED}"/usr/share/doc/${PF} || die
|
||||
rm {README.md,TODO,LICENSE} || die
|
||||
|
||||
rm -r spec || die
|
||||
if [ -f Gemfile ]; then
|
||||
rm Gemfile || die
|
||||
fi
|
||||
if [ -f Gemfile.lock ]; then
|
||||
rm Gemfile.lock || die
|
||||
fi
|
||||
|
||||
dodir /usr/$(get_libdir)/${PN}
|
||||
cp -R * "${ED}"/usr/$(get_libdir)/${PN}
|
||||
fowners -R root:0 /
|
||||
|
||||
dodir /usr/sbin
|
||||
cat <<-EOF > "${ED}"/usr/sbin/blue_hydra
|
||||
#! /bin/sh
|
||||
cd /usr/$(get_libdir)/${PN}
|
||||
exec /usr/bin/env ruby -S ./bin/blue_hydra \$@
|
||||
EOF
|
||||
fperms +x /usr/sbin/blue_hydra
|
||||
|
||||
#these directories need to exist for blue_hydra to know it's installed system-wide
|
||||
keepdir /var/log/blue_hydra
|
||||
keepdir /etc/blue_hydra
|
||||
}
|
||||
Loading…
Reference in a new issue