diff -ruN /usr/ports/audio/icecast2/Makefile audio/icecast2/Makefile --- /usr/ports/audio/icecast2/Makefile 2011-09-29 14:00:26.000000000 +0900 +++ audio/icecast2/Makefile 2011-10-18 15:31:13.000000000 +0900 @@ -17,6 +17,9 @@ MAINTAINER= sunpoet@FreeBSD.org COMMENT= A streaming mp3/ogg-vorbis audio server +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl \ shout.5:${PORTSDIR}/audio/libshout2 \ speex.1:${PORTSDIR}/audio/speex \ @@ -24,22 +26,20 @@ vorbis.4:${PORTSDIR}/audio/libvorbis \ xslt.2:${PORTSDIR}/textproc/libxslt -LICENSE= GPLv2 - USE_GMAKE= yes GNU_CONFIGURE= yes -USE_RC_SUBR= icecast2.sh +USE_RC_SUBR= ${PORTNAME} SUB_FILES+= pkg-message CONFIGURE_ENV= OGG_PREFIX=${LOCALBASE} -CFLAGS+= -I${LOCALBASE}/include DOCSDIR= ${PREFIX}/share/doc/icecast WRKSRC= ${WRKDIR}/icecast-${PORTVERSION} .include -.if defined(NOPORTDOCS) post-patch: + uudecode -p ${FILESDIR}/favicon.uu > ${WRKSRC}/web/favicon.ico +.if defined(NOPORTDOCS) ${REINPLACE_CMD} \ -e 's|SUBDIRS = src conf debian doc web admin win32 examples|SUBDIRS = src conf debian web admin win32 examples # doc|' \ -e 's| install-exec-am install-data-am| install-exec-am|' ${WRKSRC}/Makefile.in diff -ruN /usr/ports/audio/icecast2/files/favicon.uu audio/icecast2/files/favicon.uu --- /usr/ports/audio/icecast2/files/favicon.uu 1970-01-01 09:00:00.000000000 +0900 +++ audio/icecast2/files/favicon.uu 2011-09-01 15:16:00.000000000 +0900 @@ -0,0 +1,35 @@ +begin 644 favicon.ico +M```!``$`$!````````!H!0``%@```"@````0````(`````$`"```````0`$` +M````````````````````````````='I\`#P^/`!D7EP`O+[$`(2*E`!47F0` +MW'I<`'1"-`",:F0`O'IT`(Q2/``D(B0`I%Y$`'123`"L;F0`='J$`.R&9`#$ +M;E0`I**D`!P2#`!T;G0`Q(9T`%1.5`!D,B0`I&)4`)Q61`"4EIP`W()L`(QR +M;`!\6DP`K'9L`+1Z;`!$1DP`A&)<`(2&C``L&A0`;&9D`+QZ;`",2C0`O()T +M`(121`!$)B0`A%9,`/R.9`!T=G0`Q(J$`*1J7`"4EJ0`%`H$`)2"?`"L8DP` +MK')L`(R"C`"LLKP`U(9T`%PZ-`"<8EP`C'9T`(1F7`"$>GP`7#XT`.SJ[`!D +M8F0`I&ID`+Q^=`"T8D0`?%94`(1^A`#TBF0`Q'9<`+RJI``D%A0`;&Y\`+R& +M?`!<5E0`9#HL`)Q:1`"LFI0`I'9D`+QV;`!L1D0`E%Y<`"0>'`#,?FP`?$Y$ +M`)161`!<+AP`#`8$`'QZ?`!L7EP`O,+$`)22E`!<7F0`S'ID`'1&/`"44CP` +M/"(<`*QB1`!\4DP`K')D`'Q^A`#TAF0`M&Y<`"02#`!L4DP`9#8L`*1F5`"4 +MFIP`W(9L`(Q:3`"T=FP`M'IT`$Q&3`",8EP`A(J,`#0>%`!L:FP`Q'IL`'Q* +M/`#$@G0`C%)$`(Q63`#\CFP`?'9T`)2:I``,"@P`M')L`)QF7`!L0CP`K*JL +M`$PN)`"D=FP`I&YD`&QR?`#$?G0`Q(9\`*1:1``````````````````````` +M```````````````````````````````````````````````````````````` +M```````````````````````````````````````````````````````````` +M```````````````````````````````````````````````````````````` +M```````````````````````````````````````````````````````````` +M```````````````````````````````````````````````````````````` +M```````````````````````````````````````````````````````````` +M```````````````````````````````````````````````````````````` +M```````````````````````````````````````````````````````````` +M```````````````````````````````````````````````````````````` +M```````````````````````````````````````````````````````````` +M``#___\`+HB(B(B(B$-3#HB(>"A!B'B'AX>'"F-?=%A1)@HF4`J(AX>'ARMW +M#4PD?E4F)E!!B(UX&?06&;#568FZ%<(B'"FUF%D<0$TX+8GI` +M?R"(AX<*;2P2A!YB8FZ%;W\@B(>'AR9G1D5Y>2F`)F]_<(B'AR9`0&U%,V-2 +M.7]O;W!XAX=DA8>''!D/"D`O;V\F+HAX08B(B(AXB'@H<$%!2@``__\``/__ +M``#__P``__\``/__``#__P``__\``/__``#__P``__\``/__``#__P``__\` ++`/__``#__P``__\` +` +end diff -ruN /usr/ports/audio/icecast2/files/icecast2.in audio/icecast2/files/icecast2.in --- /usr/ports/audio/icecast2/files/icecast2.in 1970-01-01 09:00:00.000000000 +0900 +++ audio/icecast2/files/icecast2.in 2010-08-18 12:54:41.000000000 +0900 @@ -0,0 +1,41 @@ +#!/bin/sh +# +# $FreeBSD: ports/audio/icecast2/files/icecast2.sh.in,v 1.8 2010/08/16 15:23:57 ohauer Exp $ +# + +# PROVIDE: icecast2 +# REQUIRE: DAEMON +# BEFORE: LOGIN +# KEYWORD: shutdown + +# Add the following line to /etc/rc.conf to enable `icecast2'. +# +#icecast_enable="YES" +# +# To specify a non-default configuration file, set icecast_config +# in /etc/rc.conf: +# +#icecast_config="%%PREFIX%%/etc/icecast.xml" +# +# Make sure the section in your configuration file is +# not commented out - icecast refuses to run as root. +# + +. /etc/rc.subr + +name="icecast" +rcvar=`set_rcvar` + +command="%%PREFIX%%/bin/icecast" +command_args="-b 1>/dev/null" +extra_commands="reload" + +# read configuration and set defaults +load_rc_config "$name" +: ${icecast_enable="NO"} +: ${icecast_config="%%PREFIX%%/etc/${name}.xml"} +: ${icecast_flags="-c ${icecast_config}"} + +required_files="${icecast_config}" + +run_rc_command "$1" diff -ruN /usr/ports/audio/icecast2/files/icecast2.sh.in audio/icecast2/files/icecast2.sh.in --- /usr/ports/audio/icecast2/files/icecast2.sh.in 2010-08-18 12:54:41.000000000 +0900 +++ audio/icecast2/files/icecast2.sh.in 1970-01-01 09:00:00.000000000 +0900 @@ -1,41 +0,0 @@ -#!/bin/sh -# -# $FreeBSD: ports/audio/icecast2/files/icecast2.sh.in,v 1.8 2010/08/16 15:23:57 ohauer Exp $ -# - -# PROVIDE: icecast2 -# REQUIRE: DAEMON -# BEFORE: LOGIN -# KEYWORD: shutdown - -# Add the following line to /etc/rc.conf to enable `icecast2'. -# -#icecast_enable="YES" -# -# To specify a non-default configuration file, set icecast_config -# in /etc/rc.conf: -# -#icecast_config="%%PREFIX%%/etc/icecast.xml" -# -# Make sure the section in your configuration file is -# not commented out - icecast refuses to run as root. -# - -. /etc/rc.subr - -name="icecast" -rcvar=`set_rcvar` - -command="%%PREFIX%%/bin/icecast" -command_args="-b 1>/dev/null" -extra_commands="reload" - -# read configuration and set defaults -load_rc_config "$name" -: ${icecast_enable="NO"} -: ${icecast_config="%%PREFIX%%/etc/${name}.xml"} -: ${icecast_flags="-c ${icecast_config}"} - -required_files="${icecast_config}" - -run_rc_command "$1" diff -ruN /usr/ports/audio/icecast2/files/patch-web_Makefile.in audio/icecast2/files/patch-web_Makefile.in --- /usr/ports/audio/icecast2/files/patch-web_Makefile.in 1970-01-01 09:00:00.000000000 +0900 +++ audio/icecast2/files/patch-web_Makefile.in 2011-10-18 15:36:00.000000000 +0900 @@ -0,0 +1,10 @@ +--- web/Makefile.in.orig 2008-05-30 08:58:59.000000000 +0900 ++++ web/Makefile.in 2011-10-18 15:35:42.000000000 +0900 +@@ -215,6 +215,7 @@ + corner_bottomright.jpg \ + corner_topleft.jpg \ + corner_topright.jpg \ ++ favicon.ico \ + icecast.png \ + key.gif \ + style.css \ diff -ruN /usr/ports/audio/icecast2/pkg-plist audio/icecast2/pkg-plist --- /usr/ports/audio/icecast2/pkg-plist 2010-07-21 16:52:39.000000000 +0900 +++ audio/icecast2/pkg-plist 2011-09-01 15:37:09.000000000 +0900 @@ -40,6 +40,7 @@ share/icecast/web/corner_bottomright.jpg share/icecast/web/corner_topleft.jpg share/icecast/web/corner_topright.jpg +share/icecast/web/favicon.ico share/icecast/web/icecast.png share/icecast/web/key.gif share/icecast/web/key.png