Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1
    Junior Member
    Join Date
    May 2006
    Posts
    11

    New Gentoo ebuilds for SlimServer

    I've just created a set of ebuilds for SlimServer for Gentoo. Get them here:
    http://dev.gentoo.org/~twp/slimserver/

    Hopefully everything should work 'out of the box'.

    Please email me (twp at gentoo dot org) if you find bugs or contribute improvements.

    Best regards,
    Tom Payne
    Gentoo Developer

  2. #2
    Senior Member
    Join Date
    Apr 2006
    Posts
    130
    Just in time! I rebuild the server after a HD crash. I'll give it a try.

    EDIT: all the scripts are in it?

  3. #3
    Junior Member
    Join Date
    May 2006
    Posts
    11
    Hi Havoc,

    Yes, the ebuilds include init scripts (/etc/init.d/slimserver). It should 'just work'.

    The log file is /var/log/slimserver. There's no log rotation script, but I can add it.

    Best regards,

    Tom

  4. #4
    Senior Member
    Join Date
    Apr 2006
    Posts
    130
    Just tried it, and it failed after the first command...

    Code:
    slim slimserver # tar -xvzf gentoo-slimserver-6.5.tar.gz -C /usr/local/portage
    tar: /usr/local/portage: Cannot chdir: no such file or directory
    tar: Error is not recoverable: exiting now
    Untarred to /usr/portage and that worked better. It is now emerging 55 (?) packages. Which I find excessive! I only installed Gentoo, X, icewm, xfe, opera and perl (and some filesystem related stuff) the first time I put slimserver on this machine. And that worked using the soft found on the slimdevices site and the scripts in the wiki.

    Anyway, I'll let it run till tomorrow and we'll see then (if it has finished by then).

  5. #5
    Senior Member
    Join Date
    Apr 2006
    Posts
    130
    Fails at emerging libvorbis-1.1.2... Think you better limit it to libs really needed and not the whole portage database

  6. #6
    Junior Member
    Join Date
    May 2006
    Posts
    11
    Quote Originally Posted by Havoc View Post
    Fails at emerging libvorbis-1.1.2... Think you better limit it to libs really needed and not the whole portage database
    Please post a bug about the failed emerge of libvorbis on http://bugs.gentoo.org/.

    The dependencies in the slimserver ebuild are the minimum required: perl and its modules, mysql, media-sound/alac_decoder, media-libs/flac, media-sound/musepack-tools, and media-sound/sox, all of which are required by slimserver.

    Regards,
    Tom

  7. #7
    Senior Member hickinbottoms's Avatar
    Join Date
    Apr 2005
    Location
    Wokingham, UK
    Posts
    538
    Quote Originally Posted by twp View Post
    The dependencies in the slimserver ebuild are the minimum required: perl and its modules, mysql, media-sound/alac_decoder, media-libs/flac, media-sound/musepack-tools, and media-sound/sox, all of which are required by slimserver.
    I don't think that's quite true - they're required if you use those formats, yes, but not otherwise. Apart from Perl, I don't believe any of those dependencies are mandatory if you have an architecture supported by the default-packaged mysqld (I've not checked the actual ebuild, just the list in the above quote, however). There would be the few Perl packages that "build-perl-modules.pl" builds, though.

    I think there are USE flags for much of those formats (and mysql) that should be used to control what dependencies the package would have (controlled through the IUSE mechanism of the ebuild, I believe).

    I'm not criticising the ebuild, but just trying to make suggestions to make it more applicable to more people. I've often wished there were a SS ebuild in Portage, but not been bothered to do anything about it myself.

    Stuart
    "Never put off until tomorrow what you can put off until the day after - with Lazy Searching!"

  8. #8
    Junior Member
    Join Date
    May 2006
    Posts
    11
    Quote Originally Posted by hickinbottoms View Post
    I think there are USE flags for much of those formats (and mysql) that should be used to control what dependencies the package would have (controlled through the IUSE mechanism of the ebuild, I believe).
    Hi Stuart,

    This is in fact the case. The dependencies are:

    Code:
    DEPEND="sys-apps/findutils"
    RDEPEND="
            >=dev-db/mysql-5.0
            >=dev-lang/perl-5.8.3
            >=dev-perl/Compress-Zlib-1.41
            >=dev-perl/Digest-SHA1-2.11
            dev-perl/DBD-mysql
            dev-perl/GD
            >=dev-perl/HTML-Parser-3.48
            >=virtual/perl-Time-HiRes-1.86
            >=dev-perl/XML-Parser-2.34
            >=dev-perl/YAML-Syck-0.64
            alac? ( media-sound/alac_decoder )
            flac? ( media-libs/flac )
            musepack? ( media-sound/musepack-tools )
            media-sound/sox
            "
    You can see that the alac, flac, and musepack USE flags are already there.

    Havoc's problem occured emerging libvorbis, which is a dependency of sox if you have the ogg useflag set.

    If you want to see what depends on what then use the '-t' (show tree) option to emerge, for example

    Code:
    emerge -pt slimserver
    The ebuild currently depends on MySQL because this is the default database distributed with SlimServer 6.5. In theory it should be possible to make the ebuild use different databases according to the useflags.

    Regards,
    Tom

  9. #9
    Senior Member hickinbottoms's Avatar
    Join Date
    Apr 2005
    Location
    Wokingham, UK
    Posts
    538
    Quote Originally Posted by twp View Post
    Hi Stuart,

    This is in fact the case. The dependencies are:

    ...snip...

    Regards,
    Tom
    Thanks for the clarification. I had a nagging feeling I should have actually checked that ebuild before responding...!

    Stuart
    "Never put off until tomorrow what you can put off until the day after - with Lazy Searching!"

  10. #10
    Senior Member
    Join Date
    Apr 2006
    Posts
    130
    Are you sure about those dependencies? I installed Slimserver before without all those things. Certainly not sox! Installed were perl and not much else.

    My guess this is when you want to transcode, but not if all you want is pure serving of files.

    If had been logging bugs since I started re-installing this box, I wouldn't have much else to do!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •