Index: head/audio/icecast2/Makefile =================================================================== --- head/audio/icecast2/Makefile (revision 137890) +++ head/audio/icecast2/Makefile (revision 137891) @@ -1,37 +1,39 @@ # New ports collection makefile for: icecast # Date created: 28 Jan 1999 # Whom: Chip Marshall # # $FreeBSD$ # PORTNAME= icecast2 PORTVERSION= 2.2.0 -PORTREVISION= 2 +PORTREVISION= 3 PORTEPOCH= 1 CATEGORIES= audio net ipv6 MASTER_SITES= http://svn.xiph.org/releases/icecast/ DISTNAME= icecast-${PORTVERSION} MAINTAINER= lofi@freebsd.org COMMENT= A streaming mp3/ogg-vorbis audio server LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl \ shout.4:${PORTSDIR}/audio/libshout2 \ theora.1:${PORTSDIR}/multimedia/libtheora \ vorbis.3:${PORTSDIR}/audio/libvorbis \ xslt.2:${PORTSDIR}/textproc/libxslt USE_GMAKE= yes USE_LIBTOOL_VER=15 USE_RC_SUBR= icecast2.sh +SUB_FILES+= pkg-message +PKGMESSAGE= ${WRKDIR}/pkg-message CONFIGURE_ENV= OGG_PREFIX=${LOCALBASE} WRKSRC= ${WRKDIR}/icecast-${PORTVERSION} .include post-install: @${CAT} ${PKGMESSAGE} .include Property changes on: head/audio/icecast2/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.45 \ No newline at end of property +1.46 \ No newline at end of property Index: head/audio/icecast2/files/icecast2.sh.in =================================================================== --- head/audio/icecast2/files/icecast2.sh.in (revision 137890) +++ head/audio/icecast2/files/icecast2.sh.in (revision 137891) @@ -1,32 +1,34 @@ #!/bin/sh # # $FreeBSD$ # # PROVIDE: icecast2 # REQUIRE: DAEMON # BEFORE: login # KEYWORD: FreeBSD shutdown -# Add the following line to /etc/rc.conf to enable `icecast2': +# Add the following line to /etc/rc.conf to enable `icecast2'. This requires +# a working configuration in %%PREFIX%%/etc/icecast.xml. # #icecast_enable="YES" -#icecast_flags="" # +# Make sure the section in your %%PREFIX%%/etc/icecast.xml is +# not commented out - icecast refuses to run as root. +# . "%%RC_SUBR%%" name="icecast" rcvar=`set_rcvar` -command="/usr/local/bin/icecast" -command_args="1>/dev/null 2>&1" -pidfile="/usr/local/share/icecast/$name.pid" -required_files="/usr/local/etc/$name.xml" +command="%%PREFIX%%/bin/icecast" +command_args="1>/dev/null" +required_files="%%PREFIX%%/etc/$name.xml" # read configuration and set defaults load_rc_config "$name" : ${icecast_enable="NO"} -: ${icecast_flags=""} +: ${icecast_flags="-c ${required_files} -b"} run_rc_command "$1" Property changes on: head/audio/icecast2/files/icecast2.sh.in ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.1 \ No newline at end of property +1.2 \ No newline at end of property Index: head/audio/icecast2/files/pkg-message.in =================================================================== --- head/audio/icecast2/files/pkg-message.in (nonexistent) +++ head/audio/icecast2/files/pkg-message.in (revision 137891) @@ -0,0 +1,17 @@ +To start icecast at system boot, customize +%%PREFIX%%/etc/icecast.xml.sample to your environment and add: + +icecast_enable="YES" + +to /etc/rc.conf. See the icecast -h command for optional additional +flags. To specify an alternative config file for example add: + +icecast_flags="-c /path/to/your/configuration.xml" + +********************************************************************** +** Make sure the section in your configuration file ** +** is NOT commented out. Icecast will refuse to run as root. ** +** ** +** Also make sure that the user you choose is able to write to your ** +** configured log directory, otherwise icecast will refuse to run. ** +********************************************************************** Property changes on: head/audio/icecast2/files/pkg-message.in ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property