import ruby-sonos
ruby-sonos allows controlling Sonos speakers with Ruby. ok aja@
This commit is contained in:
parent
9328a64c82
commit
fe8f8495ca
21
audio/ruby-sonos/Makefile
Normal file
21
audio/ruby-sonos/Makefile
Normal file
@ -0,0 +1,21 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2014/01/18 09:32:32 jasper Exp $
|
||||
|
||||
COMMENT= control Sonos speakers with Ruby
|
||||
|
||||
DISTNAME= sonos-0.3.4
|
||||
|
||||
CATEGORIES= audio net
|
||||
|
||||
# MIT
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
|
||||
MODULES= lang/ruby
|
||||
|
||||
CONFIGURE_STYLE= ruby gem
|
||||
|
||||
BUILD_DEPENDS= ${RUN_DEPENDS}
|
||||
RUN_DEPENDS= devel/ruby-thor,${MODRUBY_FLAVOR} \
|
||||
www/ruby-httpclient,${MODRUBY_FLAVOR} \
|
||||
www/ruby-savon,${MODRUBY_FLAVOR}
|
||||
|
||||
.include <bsd.port.mk>
|
2
audio/ruby-sonos/distinfo
Normal file
2
audio/ruby-sonos/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (sonos-0.3.4.gem) = 06BIkNN3F2+l+Q0QOYlDh2J4zyAYvAEHwcMyM//KzTc=
|
||||
SIZE (sonos-0.3.4.gem) = 22528
|
16
audio/ruby-sonos/patches/patch-lib_sonos_discovery_rb
Normal file
16
audio/ruby-sonos/patches/patch-lib_sonos_discovery_rb
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-lib_sonos_discovery_rb,v 1.1.1.1 2014/01/18 09:32:32 jasper Exp $
|
||||
|
||||
XXX: emulate Linux' multicast TTL until either ruby or the kernel are
|
||||
fixed to deal with unsigned char options, or to accept int options.
|
||||
|
||||
--- lib/sonos/discovery.rb.orig Fri Jan 17 15:09:37 2014
|
||||
+++ lib/sonos/discovery.rb Fri Jan 17 15:09:45 2014
|
||||
@@ -75,7 +75,7 @@ module Sonos
|
||||
@socket = UDPSocket.open
|
||||
|
||||
# We're going to use IP with the multicast TTL. Mystery third parameter is a mystery.
|
||||
- @socket.setsockopt(Socket::IPPROTO_IP, Socket::IP_MULTICAST_TTL, 2)
|
||||
+ @socket.setsockopt(Socket::IPPROTO_IP, 33, 2)
|
||||
end
|
||||
|
||||
def search_message
|
1
audio/ruby-sonos/pkg/DESCR
Normal file
1
audio/ruby-sonos/pkg/DESCR
Normal file
@ -0,0 +1 @@
|
||||
ruby-sonos allows controlling Sonos speakers with Ruby.
|
46
audio/ruby-sonos/pkg/PLIST
Normal file
46
audio/ruby-sonos/pkg/PLIST
Normal file
@ -0,0 +1,46 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2014/01/18 09:32:32 jasper Exp $
|
||||
${GEM_BIN}/sonos${GEM_BIN_SUFFIX}
|
||||
${GEM_LIB}/cache/${DISTNAME}.gem
|
||||
${GEM_LIB}/gems/${DISTNAME}/
|
||||
${GEM_LIB}/gems/${DISTNAME}/.gitignore
|
||||
${GEM_LIB}/gems/${DISTNAME}/.travis.yml
|
||||
${GEM_LIB}/gems/${DISTNAME}/Changelog.markdown
|
||||
${GEM_LIB}/gems/${DISTNAME}/Gemfile
|
||||
${GEM_LIB}/gems/${DISTNAME}/LICENSE
|
||||
${GEM_LIB}/gems/${DISTNAME}/Rakefile
|
||||
${GEM_LIB}/gems/${DISTNAME}/Readme.markdown
|
||||
${GEM_LIB}/gems/${DISTNAME}/bin/
|
||||
${GEM_LIB}/gems/${DISTNAME}/bin/sonos
|
||||
${GEM_LIB}/gems/${DISTNAME}/lib/
|
||||
${GEM_LIB}/gems/${DISTNAME}/lib/sonos/
|
||||
${GEM_LIB}/gems/${DISTNAME}/lib/sonos.rb
|
||||
${GEM_LIB}/gems/${DISTNAME}/lib/sonos/cli.rb
|
||||
${GEM_LIB}/gems/${DISTNAME}/lib/sonos/device/
|
||||
${GEM_LIB}/gems/${DISTNAME}/lib/sonos/device.rb
|
||||
${GEM_LIB}/gems/${DISTNAME}/lib/sonos/device/accessory.rb
|
||||
${GEM_LIB}/gems/${DISTNAME}/lib/sonos/device/base.rb
|
||||
${GEM_LIB}/gems/${DISTNAME}/lib/sonos/device/speaker.rb
|
||||
${GEM_LIB}/gems/${DISTNAME}/lib/sonos/discovery.rb
|
||||
${GEM_LIB}/gems/${DISTNAME}/lib/sonos/endpoint/
|
||||
${GEM_LIB}/gems/${DISTNAME}/lib/sonos/endpoint.rb
|
||||
${GEM_LIB}/gems/${DISTNAME}/lib/sonos/endpoint/a_v_transport.rb
|
||||
${GEM_LIB}/gems/${DISTNAME}/lib/sonos/endpoint/alarm.rb
|
||||
${GEM_LIB}/gems/${DISTNAME}/lib/sonos/endpoint/content_directory.rb
|
||||
${GEM_LIB}/gems/${DISTNAME}/lib/sonos/endpoint/device.rb
|
||||
${GEM_LIB}/gems/${DISTNAME}/lib/sonos/endpoint/rendering.rb
|
||||
${GEM_LIB}/gems/${DISTNAME}/lib/sonos/endpoint/upnp.rb
|
||||
${GEM_LIB}/gems/${DISTNAME}/lib/sonos/group.rb
|
||||
${GEM_LIB}/gems/${DISTNAME}/lib/sonos/system.rb
|
||||
${GEM_LIB}/gems/${DISTNAME}/lib/sonos/topology_node.rb
|
||||
${GEM_LIB}/gems/${DISTNAME}/lib/sonos/version.rb
|
||||
${GEM_LIB}/gems/${DISTNAME}/sonos.gemspec
|
||||
${GEM_LIB}/gems/${DISTNAME}/test/
|
||||
${GEM_LIB}/gems/${DISTNAME}/test/cassettes/
|
||||
${GEM_LIB}/gems/${DISTNAME}/test/cassettes/topology.yml
|
||||
${GEM_LIB}/gems/${DISTNAME}/test/support/
|
||||
${GEM_LIB}/gems/${DISTNAME}/test/support/discovery_macros.rb
|
||||
${GEM_LIB}/gems/${DISTNAME}/test/support/vcr.rb
|
||||
${GEM_LIB}/gems/${DISTNAME}/test/test_helper.rb
|
||||
${GEM_LIB}/gems/${DISTNAME}/test/units/
|
||||
${GEM_LIB}/gems/${DISTNAME}/test/units/system_test.rb
|
||||
${GEM_LIB}/specifications/${DISTNAME}.gemspec
|
Loading…
x
Reference in New Issue
Block a user