From takefu@airport.fm  Fri Jan 22 10:21:22 2010
Return-Path: <takefu@airport.fm>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 17C221065679
	for <FreeBSD-gnats-submit@FreeBSD.org>; Fri, 22 Jan 2010 10:21:22 +0000 (UTC)
	(envelope-from takefu@airport.fm)
Received: from ae-osaka.co.jp (unknown [IPv6:2001:3e0:4ec:a000::1])
	by mx1.freebsd.org (Postfix) with ESMTP id D31958FC0C
	for <FreeBSD-gnats-submit@FreeBSD.org>; Fri, 22 Jan 2010 10:21:21 +0000 (UTC)
Received: from localhost (localhost.ae-osaka.co.jp [127.0.0.1])
	by ae-osaka.co.jp (Postfix) with ESMTP id ABBFD11431;
	Fri, 22 Jan 2010 19:21:20 +0900 (JST)
Received: from ae-osaka.co.jp ([127.0.0.1])
	by localhost (ae-osaka.co.jp [127.0.0.1]) (amavisd-new, port 10024)
	with LMTP id TjSNz9upy+Xk; Fri, 22 Jan 2010 19:21:14 +0900 (JST)
Received: from [IPv6:2001:3e0:4ec:a011:fc0b:8cff:b462:279f] (unknown [IPv6:2001:3e0:4ec:a011:fc0b:8cff:b462:279f])
	by ae-osaka.co.jp (Postfix) with ESMTPSA id 520961144D;
	Fri, 22 Jan 2010 19:21:07 +0900 (JST)
Message-Id: <4B597C12.60405@airport.fm>
Date: Fri, 22 Jan 2010 19:21:06 +0900
From: Takefu <takefu@airport.fm>
Reply-To: takefu@airport.fm
To: FreeBSD-gnats-submit@FreeBSD.org
Cc: ayu@commun.jp
Subject: [PATCH] audio/ezstream: USE_RC_SUBR in use

>Number:         143078
>Category:       ports
>Synopsis:       [PATCH] audio/ezstream: USE_RC_SUBR in use
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pgollucci
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 22 10:30:03 UTC 2010
>Closed-Date:    Thu Feb 04 03:14:40 UTC 2010
>Last-Modified:  Thu Feb  4 03:20:01 UTC 2010
>Originator:     Takefu
>Release:        
>Organization:
FOX Amateur Radio Club
>Environment:
>Description:
USE_RC_SUBR in use
Default example ezstream_vorbis.xml to ezstream.xml

Added file(s):
- files/ezstream.in

Port maintainer (ayu@commun.jp) is cc'd.

>How-To-Repeat:
>Fix:

--- ezstream-0.5.6_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/audio/ezstream/Makefile ezstream/Makefile
--- /usr/ports/audio/ezstream/Makefile	2009-12-03 02:16:08.000000000 +0900
+++ ezstream/Makefile	2010-01-05 14:17:55.000000000 +0900
@@ -22,6 +22,7 @@

 USE_GNOME=	libxml2
 USE_ICONV=	yes
+USE_RC_SUBR=	${PORTNAME}
 GNU_CONFIGURE=	yes
 CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"

@@ -31,7 +32,7 @@
 		ezstream_reencode_mp3.xml ezstream_reencode_theora.xml \
 		ezstream_reencode_vorbis.xml ezstream_stdin_vorbis.xml \
 		ezstream_vorbis.xml meta.sh play.sh
-PLIST_FILES=	bin/ezstream bin/ezstream-file.sh
+PLIST_FILES=	bin/ezstream bin/ezstream-file.sh etc/ezstream/ezstream.xml '@dirrm etc/ezstream'

 CPPFLAGS=	-I${LOCALBASE}/include ${PTHREAD_CFLAGS}
 LDFLAGS=	-L${LOCALBASE}/lib ${PTHREAD_LIBS}
@@ -41,13 +42,13 @@
 .if defined(WITHOUT_TAGLIB)
 CONFIGURE_ARGS+=	--without-taglib
 .else
-LIB_DEPENDS+=	tag.1:${PORTSDIR}/audio/taglib
+LIB_DEPENDS+=		tag.1:${PORTSDIR}/audio/taglib
 CONFIGURE_ARGS+=	--with-taglib=${LOCALBASE}
 .endif

 post-patch:
 	@${REINPLACE_CMD} -e '/^SUBDIRS =/s|examples||g ; \
-		 s|: install-dist_docDATA|:|g' ${WRKSRC}/Makefile.in
+		s|: install-dist_docDATA|:|g' ${WRKSRC}/Makefile.in

 post-install:
 .if !defined(NOPORTDOCS)
@@ -62,5 +63,7 @@
 	${INSTALL_DATA} ${WRKSRC}/examples/${file} ${EXAMPLESDIR}
 .endfor
 .endif
+	@${MKDIR} ${ETCDIR}
+	@${INSTALL_DATA} ${WRKSRC}/examples/ezstream_vorbis.xml ${ETCDIR}/ezstream.xml

 .include <bsd.port.post.mk>
diff -ruN --exclude=CVS /usr/ports/audio/ezstream/files/ezstream.in ezstream/files/ezstream.in
--- /usr/ports/audio/ezstream/files/ezstream.in	1970-01-01 09:00:00.000000000 +0900
+++ ezstream/files/ezstream.in	2009-08-13 19:21:31.000000000 +0900
@@ -0,0 +1,31 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: ezstream
+# REQUIRE: DAEMON
+# BEFORE:  login
+# KEYWORD: shutdown
+
+#
+# Add the following lines to /etc/rc.conf to enable the ezstream daemon:
+#
+# ezstream_enable="YES"
+# ezstream_flags="<set as needed>"
+#
+
+. %%RC_SUBR%%
+
+name="ezstream"
+rcvar=`set_rcvar`
+
+# read configuration and set defaults
+load_rc_config "$name"
+: ${ezstream_enable="NO"}
+: ${ezstream_flags="-c %%PREFIX%%/etc/${name}/${name}.xml"}
+
+command="%%PREFIX%%/bin/${name}"
+
+run_rc_command "$1"
--- ezstream-0.5.6_1.patch ends here ---

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Fri Jan 22 10:30:15 UTC 2010 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=143078 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: ayu@commun.jp
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/143078: [PATCH] audio/ezstream: USE_RC_SUBR in use
Date: Fri, 22 Jan 2010 10:30:11 UT

 Maintainer of audio/ezstream,
 
 Please note that PR ports/143078 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/143078
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org

From: Ayumi Mitsui <ayu@commun.jp>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: ports/143078: [PATCH] audio/ezstream: USE_RC_SUBR in use
Date: Mon, 25 Jan 2010 00:07:53 +0900

 I approve this patch. thank you.
 
 2010/1/22 Edwin Groothuis <edwin@freebsd.org>:
 > Maintainer of audio/ezstream,
 >
 > Please note that PR ports/143078 has just been submitted.
 >
 > If it contains a patch for an upgrade, an enhancement or a bug fix
 > you agree on, reply to this email stating that you approve the patch
 > and a committer will take care of it.
 >
 > The full text of the PR can be found at:
 > =A0 =A0http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dports/143078
 >
 > --
 > Edwin Groothuis via the GNATS Auto Assign Tool
 > edwin@FreeBSD.org
 >
 
 
 
 --=20
 Ayumi Mitsui        http://ayu.commun.jp/
 PGP: EE97 796C 77F6 CFC9 1FBC  C56A 318B F019 E605 D988
State-Changed-From-To: feedback->open 
State-Changed-By: linimon 
State-Changed-When: Sun Jan 24 22:40:11 UTC 2010 
State-Changed-Why:  

Maintainer approved.  Initial assignment message edited with feline assistance.

http://www.freebsd.org/cgi/query-pr.cgi?pr=143078 
Responsible-Changed-From-To: freebsd-ports-bugs->pgollucci 
Responsible-Changed-By: pgollucci 
Responsible-Changed-When: Thu Feb 4 02:57:05 UTC 2010 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=143078 
State-Changed-From-To: open->closed 
State-Changed-By: pgollucci 
State-Changed-When: Thu Feb 4 03:14:38 UTC 2010 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=143078 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/143078: commit references a PR
Date: Thu,  4 Feb 2010 03:14:30 +0000 (UTC)

 pgollucci    2010-02-04 03:14:15 UTC
 
   FreeBSD ports repository
 
   Modified files:
     audio/ezstream       Makefile 
   Added files:
     audio/ezstream/files ezstream.in 
   Log:
   - USE_RC_SUBR
   - Pet Portlint
   
   PR:             ports/143078
   Submitted by:   Takefu <takefu@airport.fm>
   Approved by:    maintainer
   
   Revision  Changes    Path
   1.20      +11 -8     ports/audio/ezstream/Makefile
   1.1       +30 -0     ports/audio/ezstream/files/ezstream.in (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
