Bug 81932

Summary: icecast2 port has wrong rc.subr path in init file
Product: Ports & Packages Reporter: Mike Benjamin <mikeb>
Component: Individual Port(s)Assignee: Michael Nottebrock <lofi>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

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 freebsd_triage 2005-06-06 06:38:42 UTC
Responsible Changed
From-To: freebsd-ports-bugs->flz
Comment 2 Florent Thoumie freebsd_committer freebsd_triage 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 freebsd_triage 2005-06-06 15:02:02 UTC
State Changed
From-To: open->closed

Fixed. Thanks for reporting!