Bug 81932 - icecast2 port has wrong rc.subr path in init file
Summary: icecast2 port has wrong rc.subr path in init file
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: Michael Nottebrock
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-06 03:20 UTC by Mike Benjamin
Modified: 2005-06-06 15:02 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Benjamin 2005-06-06 03:20:01 UTC
/usr/local/etc/rc.d/icecast2.sh
(# $FreeBSD: ports/audio/icecast2/files/icecast2.sh,v 1.1 2004/12/10 21:41:23 lofi Exp $)

installed by the icecast2-2.2.0_1,1 port, has the following on line 17;
. "/etc/rc.subr"

It should read;
. "/usr/local/etc/rc.subr"

Fix: 

apply the following patch to /usr/local/etc/rc.d/icecast2.sh

17c17
< . "/etc/rc.subr"
---
> . "/usr/local/etc/rc.subr"
How-To-Repeat: Attempt to start icecast2 with the included rc script.
Comment 1 Florent Thoumie freebsd_committer 2005-06-06 06:38:42 UTC
Responsible Changed
From-To: freebsd-ports-bugs->flz
Comment 2 Florent Thoumie freebsd_committer 2005-06-06 06:40:00 UTC
Responsible Changed
From-To: flz->lofi

Over to maintainer. 

Michael, you may want to replace hardcoded /etc/rc.subr with %%RC_SUBR%%, 
rename files/icecast2.sh to files/icecast2.sh.in, use USE_RC_SUBR= icecast2.sh, 
remove it from pkg-plist and remove the INSTALL_SCRIPT command in your 
post-install target.
Comment 3 Michael Nottebrock freebsd_committer 2005-06-06 15:02:02 UTC
State Changed
From-To: open->closed

Fixed. Thanks for reporting!