ports/88244: [maintainer update] audio/shoutcast

Gabor Kovesdan gabor.kovesdan at t-hosting.hu
Sun Oct 30 17:30:19 UTC 2005


>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 at 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 <bsd.port.post.mk>
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:



More information about the freebsd-ports-bugs mailing list