Mach5 / supersonic

Open-source web-based media streamer and jukebox fork of Subsonic. Supports MP3, OGG, AAC and other streamable audio and video formats. Runs on Windows, GNU/Linux and Mac using Java.
226 stars 61 forks source link

rpm build has identity crisis #53

Closed sciurius closed 11 years ago

sciurius commented 12 years ago

In the rpm build, there's a mixup of super/sub sonic program and script names. As a result, installing the rpm leads to a non-functional system.

Patch (git am) attached.

From 5595525758cf87d6997e27104c47a17afd712a2f Mon Sep 17 00:00:00 2001 From: Johan Vromans jvromans@squirrel.nl Date: Tue, 29 May 2012 11:45:31 +0200 Subject: [PATCH] Fix RPM building.


subsonic-installer-rpm/src/etc/init.d/supersonic | 2 +- subsonic-installer-rpm/src/supersonic.spec | 27 +++++++++++++-------- 2 files changed, 18 insertions(+), 11 deletions(-)

diff --git a/subsonic-installer-rpm/src/etc/init.d/supersonic b/subsonic-installer-rpm/src/etc/init.d/supersonic index a0c152e..c996b3d 100644 --- a/subsonic-installer-rpm/src/etc/init.d/supersonic +++ b/subsonic-installer-rpm/src/etc/init.d/supersonic @@ -58,7 +58,7 @@ do_start() [ -e /tmp/supersonic ] && chown -R $SUPERSONIC_USER /tmp/supersonic

 echo $"Starting $NAME ..."

+Supersonic is a free clone of Subsonic. Subsonic can be found at http://subsonic.org +Supersonic can be found at https://github.com/Mach5/supersonic

%files %defattr(644,root,root,755) @@ -31,6 +34,10 @@ Subsonic can be found at http://subsonic.org

%pre

Stop Subsonic service.

+if [ -e /etc/init.d/subsonic ]; then

-# Configure and start Subsonic service. -chkconfig --add subsonic -service subsonic start +# Configure and start Supersonic service. +chkconfig --add supersonic +service supersonic start

exit 0

@@ -58,13 +65,13 @@ exit 0 if [ $1 = 0 ] ; then

Stop the service.

1.7.4.4

timoreimann commented 12 years ago

sciurius, I'm having a hard time applying your patch, possibly due to the markdown GitHub is doing.

Would you mind creating a pull request that includes your patch?

Thanks!

sciurius commented 11 years ago

I must shamefully admit that I haven't used github this way yet... I've uploaded the (small) patch to http://www.squirrel.nl/pub/xfer/uploads/3CPfSsIoTIm7uH2kM439z3gw.patch

sciurius commented 11 years ago

Slightly related: here's a supersonic.service control file for systemd. http://www.squirrel.nl/pub/xfer/uploads/3C5geFG_U2V5qUyjPyVlzYKQ.service

timoreimann commented 11 years ago

sciurius, thanks for the patches. I'll review them as soon as time permits.

You may want to take a look at Github's documentation regarding Pull Requests. It's not that hard but provides tons of benefits like neatly formatted diffs. Also, it allows project collaborators to merge in code directly via the web frontend, thereby speeding up code integration.

timoreimann commented 11 years ago

@sciurius: The patch is now in master. I wasn't sure where to place the supersonic.service file though so I simply put it into subsonic-installer-rpm/src. Please let me know if there's a more appropriate location (and possibly name) for it. (I'm afraid I have close to no expertise regarding RPM packaging.)