From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Oct 30 17:30:18 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E4BF916A41F for ; Sun, 30 Oct 2005 17:30:18 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8235543D49 for ; Sun, 30 Oct 2005 17:30:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9UHUHUQ058962 for ; Sun, 30 Oct 2005 17:30:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9UHUHmn058953; Sun, 30 Oct 2005 17:30:17 GMT (envelope-from gnats) Resent-Date: Sun, 30 Oct 2005 17:30:17 GMT Resent-Message-Id: <200510301730.j9UHUHmn058953@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Gabor Kovesdan Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E6A2C16A41F for ; Sun, 30 Oct 2005 17:22:52 +0000 (GMT) (envelope-from root@server.t-hosting.hu) Received: from server.t-hosting.hu (server.t-hosting.hu [217.20.133.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7233843D46 for ; Sun, 30 Oct 2005 17:22:52 +0000 (GMT) (envelope-from root@server.t-hosting.hu) Received: from localhost (localhost [127.0.0.1]) by server.t-hosting.hu (Postfix) with ESMTP id 42950997D45; Sun, 30 Oct 2005 18:22:51 +0100 (CET) Received: from server.t-hosting.hu ([127.0.0.1]) by localhost (server.t-hosting.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 82101-04; Sun, 30 Oct 2005 18:22:47 +0100 (CET) Received: by server.t-hosting.hu (Postfix, from userid 0) id C3E2E997D28; Sun, 30 Oct 2005 18:22:47 +0100 (CET) Message-Id: <20051030172247.C3E2E997D28@server.t-hosting.hu> Date: Sun, 30 Oct 2005 18:22:47 +0100 (CET) From: Gabor Kovesdan To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Gabor Kovesdan Subject: ports/88244: [maintainer update] audio/shoutcast X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Gabor Kovesdan List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Oct 2005 17:30:19 -0000 >Number: 88244 >Category: ports >Synopsis: [maintainer update] audio/shoutcast >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sun Oct 30 17:30:16 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Gabor Kovesdan >Release: FreeBSD 5.3-RELEASE-p17 amd64 >Organization: n/a >Environment: System: FreeBSD server.t-hosting.hu 5.3-RELEASE-p17 FreeBSD 5.3-RELEASE-p17 #0: Mon Jul 4 20:23:15 CEST 2005 root@server.t-hosting.hu:/usr/src/sys/amd64/compile/FREEBSD amd64 >Description: - Add rcNG script >How-To-Repeat: >Fix: --- shoutcast.diff begins here --- diff -Nur /usr/ports/audio/shoutcast/Makefile ../shoutcast/Makefile --- /usr/ports/audio/shoutcast/Makefile Thu Oct 13 05:01:12 2005 +++ ../shoutcast/Makefile Sun Oct 30 18:18:08 2005 @@ -16,7 +16,7 @@ NO_BUILD= YES NO_PACKAGE= Redistribution of the software isn't allowed -PLIST_FILES= sbin/sc_serv etc/shoutcast/sc_serv.conf +PLIST_FILES= sbin/sc_serv etc/shoutcast/sc_serv.conf etc/rc.d/shoutcast.sh PLIST_DIRS= etc/shoutcast PORTDOCS= README.TXT PKGMESSAGE= ${WRKDIR}/pkg-message @@ -47,6 +47,9 @@ .endif post-install: + @${MKDIR} ${PREFIX}/etc/rc.d + @${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/shoutcast.sh.in > ${PREFIX}/etc/rc.d/shoutcast.sh + @${CHMOD} 750 ${PREFIX}/etc/rc.d/shoutcast.sh @${CAT} ${PKGMESSAGE} .include diff -Nur /usr/ports/audio/shoutcast/files/shoutcast.sh.in ../shoutcast/files/shoutcast.sh.in --- /usr/ports/audio/shoutcast/files/shoutcast.sh.in Thu Jan 1 01:00:00 1970 +++ ../shoutcast/files/shoutcast.sh.in Sun Oct 30 18:06:11 2005 @@ -0,0 +1,27 @@ +#!/bin/sh +# + +# PROVIDE: shoutcast +# REQUIRE: LOGIN +# BEFORE: +# KEYWORD: FreeBSD shutdown + +. /etc/rc.subr + +name="shoutcast" +rcvar=`set_rcvar` +start_cmd="shoutcast_startcmd" +stop_cmd="shoutcast_stopcmd" + +shoutcast_startcmd () +{ +%%PREFIX%%/sbin/sc_serv %%PREFIX%%/etc/sc_serv.conf +} + +imapd_stopcmd () +{ +killall sc_serv +} + +load_rc_config $name +run_rc_command "$1" diff -Nur /usr/ports/audio/shoutcast/pkg-message ../shoutcast/pkg-message --- /usr/ports/audio/shoutcast/pkg-message Thu Oct 13 05:01:12 2005 +++ ../shoutcast/pkg-message Sun Oct 30 18:17:41 2005 @@ -1,7 +1,9 @@ -============================================================== -Shoutcast is now installed, You can start it by typing: +================================================================ +Shoutcast is now installed. +The server config file is %%PREFIX%%/etc/sc_serv.conf. +If You want to start it set shoutcast_enable="YES" in your +/etc/rc.conf file and type: -%%PREFIX%%/sbin/sc_serv [config_file] +%%PREFIX%%/etc/rc.d/shoutcast.sh start -A sample sc_serv.conf file is installed under %%PREFIX%%/etc. -============================================================== +================================================================ --- shoutcast.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: