Bug 186860 - [New Port] www/madsonic network media streamer
Summary: [New Port] www/madsonic network media streamer
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Rodrigo Osorio
URL:
Keywords: patch-ready
Depends on:
Blocks:
 
Reported: 2014-02-18 08:40 UTC by Allison Reid
Modified: 2014-11-26 09:27 UTC (History)
2 users (show)

See Also:


Attachments
file.txt (14.96 KB, text/plain)
2014-02-18 08:40 UTC, Allison Reid
no flags Details
MAdsonic 5.1.5150 sharfile (10.40 KB, text/plain)
2014-10-06 06:49 UTC, Nicole Reid
no flags Details
Madsonic 5.1.5150 test log (24.89 KB, text/plain)
2014-10-06 06:50 UTC, Nicole Reid
no flags Details
Madsonic 5.1.5150 sharfile (10.95 KB, text/plain)
2014-10-07 06:53 UTC, Nicole Reid
no flags Details
Madsonic 5.1.5150 test log (25.67 KB, text/plain)
2014-10-07 06:54 UTC, Nicole Reid
no flags Details
Madsonic 5.1.5150 sharfile (10.95 KB, text/plain)
2014-10-08 18:05 UTC, Nicole Reid
no flags Details
Madsonic 5.1.5150 sharfile (11.04 KB, text/plain)
2014-10-15 02:19 UTC, Nicole Reid
no flags Details
Madsonic 5.1.5150 test log (26.32 KB, text/plain)
2014-10-15 02:19 UTC, Nicole Reid
no flags Details
Madsonic 5.1.5150 sharfile (11.04 KB, text/plain)
2014-10-15 17:33 UTC, Nicole Reid
no flags Details
Madsonic 5.1.5150 sharfile (11.77 KB, text/plain)
2014-10-25 20:47 UTC, Nicole Reid
no flags Details
Madsonic 5.1.5200 sharfile (11.77 KB, text/plain)
2014-10-27 01:34 UTC, Nicole Reid
no flags Details
Madsonic 5.1.5200 test log (27.30 KB, text/plain)
2014-10-27 01:36 UTC, Nicole Reid
no flags Details
Madsonic 5.1.5200 sharfile (12.81 KB, text/plain)
2014-10-31 03:30 UTC, Nicole Reid
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Allison Reid 2014-02-18 08:40:00 UTC
Madsonic instantly transports your media to any HTTP connected device
regardless of bitrate. You can stream to multiple players simultaneously.
Madsonic is designed to handle very large music collections. By using
transcoder plug-ins, Madsonic supports on-the-fly conversion and streaming
of virtually any audio format, including MP3, OGG, WMA, FLAC, APE and more.

Madsonic is a fork of Subsonic, offering more features and mobile client
access without the subscription fee.

WWW: http://www.madsonic.org


Sharfile is gzipped due to large size (200KiB+)

Fix: Patch attached with submission follows:
Comment 1 Nicole Reid 2014-02-18 08:45:32 UTC
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 02/18/2014 00:40, FreeBSD-gnats-submit@FreeBSD.org wrote:
> Thank you very much for your problem report. It has the internal
> identification `ports/186860'. The individual assigned to look at
> your report is: freebsd-ports-bugs.
> 
> You can access the state of your problem report at any time via
> this link:
> 
> http://www.freebsd.org/cgi/query-pr.cgi?pr=186860
> 
>> Category:       ports Responsible:    freebsd-ports-bugs 
>> Synopsis:       [New Port] www/madsonic network media streamer 
>> Arrival-Date:   Tue Feb 18 08:40:00 UTC 2014

It looks like gzip+PR mangled my sharfile. I put up a gist of it here:
https://gist.github.com/okeeblow/9067022

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (FreeBSD)

iQIcBAEBAgAGBQJTAx2sAAoJEAuVLFmlrt8s7zsQAKcBM9iGwh3xp/NeJ14deMhh
GGaw2SHDiMVc1a2lNg9jbo42EmP1yODpX5JaxbIVIbKstNGcouO6cA0wiU10cnW2
cKYIpJxMqhAy37BbfSn9k5yG22L1GVTXn80gP8vH2VrqCmnuFPK+3u02k7LHnvsG
7vmVlKzCixSr/pV7/zJjM5NS+dH3A9NLDI+P/s0I17hF5QJBbnS/HjAo+MgAjZEh
Jds8rH69JiQNzcN5hJaTZt+fKLbd1MhU8VrnP/J5DWM3/O+p7xuez9B01wGzvdA2
0XcY6fhmj6+ygJ1jZ9+vs16kAC72z5sMhDVh3JzTUBKzoWZRZQiYMiT+FW26pwTb
hsP0B86XwrI1gpmbvzuOq3kt7zz8lL32prA79NH5yiz7R6WgLfMF9jUsOL9IUXtQ
2njZ35KZfcOwtwl0UyZLpLXi7gO/p0SNUS/vDDwd2fhTFBpzXFM4BVkYavV8ON2N
M7zCWPPe0q5ZkJx0ePWSlpSi8mwsyGMaeP5R90aqTtxzAwjrW54wwEOUcLExWgPP
UjRncld4briPaFM1xII/SDOWCb4q+RTbw9Ix+xqL0qgtchwGQRmpRnVKKMWsov46
FA6MRaUKeRPdxQLfSVkSoP5sbQMNGQq8eUzvo/HlRe5Wt7QBNdvQajjDJOYRaaHq
deP/GQM0uOK1H0Y+kayU
=Vjmk
-----END PGP SIGNATURE-----
Comment 2 Nicole Reid 2014-03-01 00:07:38 UTC
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 02/18/2014 00:40, FreeBSD-gnats-submit@FreeBSD.org wrote:
> http://www.freebsd.org/cgi/query-pr.cgi?pr=186860

I updated the gist to Madsonic build 3860.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (FreeBSD)

iQIcBAEBAgAGBQJTESTKAAoJEAuVLFmlrt8shhsP/06F7FAehazfnarE1WgULUmu
KqXOhAtvcNyrhc+k79x7P47BosR9TeD80l+6pK7cn8R8KGUPvEnGV16rmwInRdZZ
qJC12znsM99aMw8S1vk7cUUM71RlHzv8EolBmgDZ9ajmA9VZwQAhWmJEcBtqr65O
WGP+tC89u7ETrI4IcpHFAXZBZa/h1mN4wylVwJZPjpvZzz7pRiarIwBZiPEixckf
MfMeRUEffKtV85GW0xYyt+GYmG1Ti3LFzeJpKyv5Tn/f4IohH9jrH7P4BADp1CDj
qturjcmi9fQamoQ/Dim/54o7zshNJijHlRZL/sxFhv/OvvF36bR9iTsk65e9QxhG
TPfUwFDVFxSBLxfrFL4pA+TZomJzS+3HMtl5yjv3b5kT0/sbugtWj+fWT0saysnC
tWlZy9To9GPMxyMKJzjMU7Px0B0Tt3SzOL5uAv/RMZi0cZD4BbjazyG8BovaU5Cv
z4S6kUNGXwTf510rg1McRoCD+gEJTB9lXd7q9paDj/WkCNdKUO9hvjYhe7Xb8dW4
YpjXVWBl/MYqdQQQIomIUJ79DPB+cCyMmcqyHKfH3yp++sQ4wG8v/WY1D9FHCk8n
6nWYDIBNfcGTUh+7WRZXnILjO4vvjVXILaDAOYOwhBOSbIBrtaCBMnNUMwZLkT9Q
HIKf4z0HDjdSWWe0uCda
=9mbS
-----END PGP SIGNATURE-----
Comment 3 John Marino freebsd_committer freebsd_triage 2014-08-07 14:37:34 UTC
Hi, if you are still interested in having this port in FreeBSD, it may (or may not) need to be reworked to support stage, and it may need updating to other newer conventions such as "USES" which is expanding all time.
For staging, see http://lists.freebsd.org/pipermail/freebsd-ports-announce/2014-May/000080.html


Additionally, you need to provide some sort of quality assurance.    
In order of preference, we are looking for:

1) "poudriere testport" or "poudriere bulk -t" logs
2) Redports or tinderbox logs

Please provide an updated shar file and attach a test log.  Alternatively, please indicate if you are no longer interested in having this software in the Ports Collection and that we can close the PR.

Thanks!
Comment 4 Nicole Reid 2014-08-07 18:24:49 UTC
Yes, I'm still interested in porting this. I'll update the sharfile and get some test logs soon :)
Comment 5 John Marino freebsd_committer freebsd_triage 2014-08-24 18:58:58 UTC
okay, looking forward to it.  FYI on 30 Sept a lot of new port PRs are getting culled, don't get caught in that net.
Comment 6 John Marino freebsd_committer freebsd_triage 2014-09-30 17:13:57 UTC
PR EOL - 30 septemember


Just reopen this PR when you add the attachment.
Comment 7 Nicole Reid 2014-10-06 06:49:50 UTC
Created attachment 148021 [details]
MAdsonic 5.1.5150 sharfile
Comment 8 Nicole Reid 2014-10-06 06:50:15 UTC
Created attachment 148022 [details]
Madsonic 5.1.5150 test log
Comment 9 Nicole Reid 2014-10-06 06:51:36 UTC
Sorry, it took a little longer than I liked to get all the container servers supported and the plist generation correct, but here it is :)

I don't think I can change the status of this bug directly to reopen it since it was imported from the old PR system under a different address.
Comment 10 John Marino freebsd_committer freebsd_triage 2014-10-06 06:55:50 UTC
Thanks for the poudriere log!

The shar looks reasonable.  I would have liked to see more <OPTION>_LIB_DEPENDS= format rather than the "old style" options though.

Moving this to patch-ready, the commit that takes this can convert if he wants (or you don't first)
Comment 11 Nicole Reid 2014-10-06 07:21:19 UTC
Ah, I'm not familiar with that new syntax. I'll take a look at it if committer doesn't get to it first since I plan to update www/subsonic as well to this new Makefile along with its recently-released 5.0.
Comment 12 John Marino freebsd_committer freebsd_triage 2014-10-06 07:31:14 UTC
It's well described here: 
https://www.freebsd.org/doc/en/books/porters-handbook/makefile-options.html
Comment 13 Nicole Reid 2014-10-07 06:53:24 UTC
Created attachment 148054 [details]
Madsonic 5.1.5150 sharfile

- Update to new dependency syntax
- Consolidate nearly-identical pkg-message sections into a single common template
- Provide usage examples for transcoding so users don't have to search for a working command like I did
- Add more possible transcoding commands and disable all but ffmpeg by default, since the default rules are only ffmpeg
- Kill a few typos and small mistakes
Comment 14 Nicole Reid 2014-10-07 06:54:13 UTC
Created attachment 148055 [details]
Madsonic 5.1.5150 test log

Test log for newest port revision
Comment 15 John Marino freebsd_committer freebsd_triage 2014-10-08 14:18:29 UTC
Looks much better.  The only thing I notice was this line: 

@${TAR} xf ${WRKDIR}/${PORTNAME}.war -C ${WRKSRC}

While tar on FreeBSD will accept "xf", it's a legacy thing and it's not documented in the man page.  It's supposed to be "-xf".  This is important because tar on DragonFly only supports what the man page says it does and thus "tar xf" results in an error there.

Whoever fixes this, please change "xf" to "-xf".
Comment 16 Nicole Reid 2014-10-08 18:05:23 UTC
Created attachment 148104 [details]
Madsonic 5.1.5150 sharfile

Make sure WAR extract command usage matches manpage for portability. No new test log.
Comment 17 Nicole Reid 2014-10-15 02:19:06 UTC
Created attachment 148317 [details]
Madsonic 5.1.5150 sharfile

Add a run dependency on audio/alsa-plugins since jukebox mode can't see audio devices otherwise. Thanks for the report, Matt!
Comment 18 Nicole Reid 2014-10-15 02:19:42 UTC
Created attachment 148318 [details]
Madsonic 5.1.5150 test log

Test log covering alsa-plugins addition
Comment 19 Nicole Reid 2014-10-15 17:33:40 UTC
Created attachment 148345 [details]
Madsonic 5.1.5150 sharfile

I found a post by the developer suggesting Madsonic 5.1 now requires Java 1.7, so match that in the port: http://www.madsonic.org/forum/viewtopic.php?p=3105#p3105

As far as I can tell the parent project www/subsonic still supports 1.6.
Comment 20 Nicole Reid 2014-10-25 20:47:28 UTC
Created attachment 148647 [details]
Madsonic 5.1.5150 sharfile

Add some last-minute optional decoder dependencies for things that are in my library and are otherwise unplayable without FFmpeg.
Comment 21 Nicole Reid 2014-10-27 01:34:46 UTC
Created attachment 148685 [details]
Madsonic 5.1.5200 sharfile

Update to latest stable version, 20141017 - 5.1.5200.
Comment 22 Nicole Reid 2014-10-27 01:36:29 UTC
Created attachment 148686 [details]
Madsonic 5.1.5200 test log

Re-run poudriere testport for 5.1.5200
Comment 23 Nicole Reid 2014-10-31 03:30:52 UTC
Created attachment 148812 [details]
Madsonic 5.1.5200 sharfile

I forgot to add exec/unexec for new optional deps
Comment 24 Rodrigo Osorio freebsd_committer freebsd_triage 2014-11-18 06:53:05 UTC
waiting for mentors validation
Comment 25 commit-hook freebsd_committer freebsd_triage 2014-11-26 09:27:12 UTC
A commit references this bug:

Author: rodrigo
Date: Wed Nov 26 09:26:47 UTC 2014
New revision: 373441
URL: https://svnweb.freebsd.org/changeset/ports/373441

Log:
  Add new port www/madsonic, a network media streamer
  Madsonic is a fork of Subsonic, offering more features
  and mobile client access without the subscription fee.

  PR:		ports/186860
  Submitted by:	Nicole Reid <root@cooltrainer.org>

Changes:
  head/www/Makefile
  head/www/madsonic/
  head/www/madsonic/Makefile
  head/www/madsonic/distinfo
  head/www/madsonic/files/
  head/www/madsonic/files/message-common.in
  head/www/madsonic/files/message-transcoding.in
  head/www/madsonic/pkg-descr
  head/www/madsonic/pkg-message-jetty
  head/www/madsonic/pkg-message-resin3
  head/www/madsonic/pkg-message-spacer
  head/www/madsonic/pkg-message-tomcat
  head/www/madsonic/pkg-plist-chunk
Comment 26 Rodrigo Osorio freebsd_committer freebsd_triage 2014-11-26 09:27:45 UTC
committed, thanks.