Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Oct 2011 17:06:09 +0900
From:      Takefu <takefu@airport.fm>
To:        Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>, freebsd-gnats-submit@FreeBSD.org
Subject:   ports/161763: [PATCH] audio/icecast2: add favicon.ico
Message-ID:  <4E9D3371.30108@airport.fm>
Resent-Message-ID: <201110180810.p9I8A6q6015215@freefall.freebsd.org>
In-Reply-To: <201110180637.p9I6bfn9005440@unbound.local.ae-osaka.co.jp>
References:  <201110180637.p9I6bfn9005440@unbound.local.ae-osaka.co.jp>

next in thread | previous in thread | raw e-mail | index | archive | help

>Number:         161763
>Category:       ports
>Synopsis:       [PATCH] audio/icecast2: add favicon.ico
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 18 08:10:06 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Takefu
>Release:        FreeBSD 8.2-RELEASE-p4 amd64
>Organization:
FOX Amateur Radio Club
>Environment:
>Description:
  add favicon.ico
  move icecast2.sh to icecast2
  portlint(1) complains

Port maintainer (sunpoet@FreeBSD.org) is cc'd.

>How-To-Repeat:
>Fix:
--- icecast2.patch begins here ---
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 <bsd.port.pre.mk>

-.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(<F7RH(0DUJ:FA883B`08B''SQ\'4\::E=I(2T,54&(=B);
+M-@%.)QB#/QL^`H%!B(`X(P19<3L])4ME23$4<HAKB0F";`,57'5=&UI72`Z(
+M5!$',@5$1!=S,#I@#7HTB(<W>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 <changeowner> 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 <changeowner> 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
--- icecast2.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E9D3371.30108>