Date: Mon, 16 May 2011 21:48:12 +0800 From: Jui-Nan Lin <jnlin@csie.nctu.edu.tw> To: Doug Barton <dougb@freebsd.org> Cc: Greg Larkin <glarkin@freebsd.org>, cvs-ports@freebsd.org, Erik Steigler <erik@okcupid.com>, cvs-all@freebsd.org, ports-committers@freebsd.org Subject: Re: cvs commit: ports/net/scribe Makefile ports/net/scribe/files scribe.in Message-ID: <BANLkTimMdVhN6bcz9nywxYM7oFKf0iQHAQ@mail.gmail.com> In-Reply-To: <4DD026A5.8030900@FreeBSD.org> References: <201105131353.p4DDrtms046413@repoman.freebsd.org> <4DCF0192.6030808@FreeBSD.org> <BANLkTi=-i%2BAs=sL8ZTbQt6YkCaADg8Tb=g@mail.gmail.com> <4DD026A5.8030900@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] Hi, It works :) Please see the attached patch files, fixed dependency of py-thrift. On Mon, May 16, 2011 at 3:16 AM, Doug Barton <dougb@freebsd.org> wrote: > On 05/14/2011 23:14, Jui-Nan Lin wrote: >> >> Hello, >> >> This patch does not work on my installation. > > Thanks for testing, the attached patch works, I've actually tested this one. > :) > >> jnlin@Florence [2:14pm] [W2] ~> sudo /usr/local/etc/rc.d/scribe onestart >> Starting scribe. >> jnlin@Florence [2:14pm] [W2] ~> sudo cat /var/run/scribe.pid&& echo > > FYI, the echo there is not necessary. > > Also FYI, the py-thrift dependency is not being detected properly if it's > already installed, you might want to take a look at that as well. > > > hth, > > Doug > > -- > > Nothin' ever doesn't change, but nothin' changes much. > -- OK Go > > Breadth of IT experience, and depth of knowledge in the DNS. > Yours for the right price. :) http://SupersetSolutions.com/ > > [-- Attachment #2 --] diff -ruN --exclude=CVS /usr/ports/net/scribe/Makefile /home/users/jnlin/ports/scribe/Makefile --- /usr/ports/net/scribe/Makefile 2011-05-13 21:53:55.000000000 +0800 +++ /home/users/jnlin/ports/scribe/Makefile 2011-05-16 21:43:59.436092720 +0800 @@ -6,7 +6,7 @@ PORTNAME= scribe PORTVERSION= 2.2 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= net MASTER_SITES= http://cloud.github.com/downloads/facebook/scribe/ @@ -19,7 +19,7 @@ thrift:${PORTSDIR}/devel/thrift RUN_DEPENDS= p5-Class-Accessor>0:${PORTSDIR}/devel/p5-Class-Accessor \ p5-Thrift>0:${PORTSDIR}/devel/p5-Thrift \ - py-thrift>0:${PORTSDIR}/devel/py-thrift + ${PYTHON_SITELIBDIR}/thrift/__init__.py:${PORTSDIR}/devel/py-thrift ACLOCAL_ARGS= -I ./aclocal AUTOMAKE_ARGS= -a diff -ruN --exclude=CVS /usr/ports/net/scribe/files/scribe.in /home/users/jnlin/ports/scribe/files/scribe.in --- /usr/ports/net/scribe/files/scribe.in 2011-05-16 21:42:18.943386384 +0800 +++ /home/users/jnlin/ports/scribe/files/scribe.in 2011-05-16 21:43:13.207774673 +0800 @@ -2,31 +2,29 @@ # # $FreeBSD: ports/net/scribe/files/scribe.in,v 1.3 2011/05/15 02:49:11 dougb Exp $ # - # PROVIDE: scribe -# REQUIRE: DAEMON +# REQUIRE: LOGIN +# KEYWORD: shutdown . /etc/rc.subr name="scribe" rcvar=`set_rcvar` + pidfile="/var/run/${name}.pid" -command="%%PREFIX%%/bin/scribed" +command="/usr/sbin/daemon" +procname="%%PREFIX%%/bin/scribed" -start_cmd=scribe_start stop_postcmd=scribe_cleanup +scribe_cleanup() { + [ -e "$pidfile" ] && /bin/unlink $pidfile +} + load_rc_config "$name" -: ${scribe_enable="NO"} -scribe_start() -{ - echo "Starting ${name}." - /usr/sbin/daemon -cf -p ${pidfile} ${command} ${scribe_flags} -} +: ${scribe_enable="NO"} -scribe_cleanup() { - [ -f ${pidfile} ] && %%RM%% ${pidfile} -} +command_args="-cf -p $pidfile %%PREFIX%%/bin/scribed" run_rc_command "$1"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTimMdVhN6bcz9nywxYM7oFKf0iQHAQ>
