Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45689 - media-libs/nas ebuild update to install service script into /etc/init.d
Summary: media-libs/nas ebuild update to install service script into /etc/init.d
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2004-03-25 01:38 UTC by REMOVED ACCOUNT
Modified: 2004-03-26 13:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for nas-1.6c ebuild (nas-1.6c.ebuid.patch,1.20 KB, patch)
2004-03-25 01:40 UTC, REMOVED ACCOUNT
Details | Diff
files/nas.conf.d (nas.conf.d,235 bytes, text/plain)
2004-03-25 01:41 UTC, REMOVED ACCOUNT
Details
files/nas.init.d (nas.init.d,417 bytes, text/plain)
2004-03-25 01:41 UTC, REMOVED ACCOUNT
Details

Note You need to log in before you can comment on or make changes to this bug.
Description REMOVED ACCOUNT 2004-03-25 01:38:49 UTC
media-libs/nas contains sound daemon nasd that must be launched before nas library can be used to play sound. nas-1.6c ebuild doesn't install necessary script to /etc/init.d. Attached patch fixes this. It also renames /etc/nas/nas.conf.eg to /etc/nas/conf. The result is that installation of NAS is now as simple as
   emerge nas
   rc-update add nas default

BTW, media-sound category would fit this package better than media-libs, it's not only a library, but does similar things to what the media-sound/esound package does.
Comment 1 REMOVED ACCOUNT 2004-03-25 01:40:27 UTC
Created attachment 27987 [details, diff]
patch for nas-1.6c ebuild
Comment 2 REMOVED ACCOUNT 2004-03-25 01:41:04 UTC
Created attachment 27988 [details]
files/nas.conf.d

this file is needed by the ebuild
Comment 3 REMOVED ACCOUNT 2004-03-25 01:41:41 UTC
Created attachment 27989 [details]
files/nas.init.d

...and this one as well.
Comment 4 REMOVED ACCOUNT 2004-03-26 12:53:47 UTC
Thanks for nas-1.6c-r1!
There's a little bug in it, though -- the sed code reads

   mv ${D}/etc/nas/nasd.conf.eg ${D}/etc/nas/nasd.conf
   dosed 's,\(MixerInit.*\)"\(.*\)",\1"no",' /etc/nas/nasd.conf.eg

in the ebuild, but the second line should be

   dosed 's,\(MixerInit.*\)"\(.*\)",\1"no",' /etc/nas/nasd.conf

or the two lines should be in reverse order, because /etc/nas/nasd.conf.eg doesn't exist at that point anymore.
Comment 5 Jeremy Huddleston (RETIRED) gentoo-dev 2004-03-26 13:14:40 UTC
whoops... thanks for noticing... =)