ports/148631: [NEW PORT] net/scribe: Aggregating log data streamed in real time
Jui-Nan Lin
jnlin at csie.nctu.edu.tw
Thu Jul 15 11:40:10 UTC 2010
>Number: 148631
>Category: ports
>Synopsis: [NEW PORT] net/scribe: Aggregating log data streamed in real time
>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: Thu Jul 15 11:40:09 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Jui-Nan Lin
>Release: FreeBSD 8.0-RELEASE-p3 amd64
>Organization:
>Environment:
System: FreeBSD Florence.tamama.org 8.0-RELEASE-p3 FreeBSD 8.0-RELEASE-p3 #9: Fri May 28 09:34:46 CST 2010
>Description:
Scribe is a server for aggregating log data streamed in real time
from a large number of servers. It is designed to be scalable,
extensible without client-side modification, and robust to failure of
the network or any specific machine.
WWW: http://github.com/facebook/scribe
Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:
--- scribe-2.2.shar begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# scribe
# scribe/pkg-descr
# scribe/pkg-plist
# scribe/files
# scribe/files/scribe.pm.patch
# scribe/files/scribe.in
# scribe/distinfo
# scribe/Makefile
#
echo c - scribe
mkdir -p scribe > /dev/null 2>&1
echo x - scribe/pkg-descr
sed 's/^X//' >scribe/pkg-descr << '654c076890183d825ba828acb272b6de'
XScribe is a server for aggregating log data streamed in real time
Xfrom a large number of servers. It is designed to be scalable,
Xextensible without client-side modification, and robust to failure of
Xthe network or any specific machine.
X
XWWW: http://github.com/facebook/scribe
654c076890183d825ba828acb272b6de
echo x - scribe/pkg-plist
sed 's/^X//' >scribe/pkg-plist << 'b9b4db718e28f816cbd30502bb85309b'
X at comment $FreeBSD$
X%%EXAMPLESDIR%%/README
X%%EXAMPLESDIR%%/example1.conf
X%%EXAMPLESDIR%%/example2central.conf
X%%EXAMPLESDIR%%/example2client.conf
X%%EXAMPLESDIR%%/hdfs_example.conf
X%%EXAMPLESDIR%%/hdfs_example2.conf
X%%EXAMPLESDIR%%/scribe_cat
X%%EXAMPLESDIR%%/scribe_ctrl
X%%PYTHON_SITELIBDIR%%/scribe-2.0-%%PYTHON_VERSION_SHORTNAME%%.egg-info
X%%PYTHON_SITELIBDIR%%/scribe/__init__.py
X%%PYTHON_SITELIBDIR%%/scribe/__init__.pyc
X%%PYTHON_SITELIBDIR%%/scribe/constants.py
X%%PYTHON_SITELIBDIR%%/scribe/constants.pyc
X%%PYTHON_SITELIBDIR%%/scribe/scribe.py
X%%PYTHON_SITELIBDIR%%/scribe/scribe.pyc
X%%PYTHON_SITELIBDIR%%/scribe/ttypes.py
X%%PYTHON_SITELIBDIR%%/scribe/ttypes.pyc
X%%SITE_PERL%%/Scribe/Thrift/Constants.pm
X%%SITE_PERL%%/Scribe/Thrift/Types.pm
X%%SITE_PERL%%/Scribe/Thrift/scribe.pm
Xbin/scribed
Xlib/libscribe.a
X at dirrmtry %%SITE_PERL%%/Scribe/Thrift
X at dirrmtry %%SITE_PERL%%/Scribe
X at dirrmtry %%PYTHON_SITELIBDIR%%/scribe
X at dirrmtry %%EXAMPLESDIR%%
b9b4db718e28f816cbd30502bb85309b
echo c - scribe/files
mkdir -p scribe/files > /dev/null 2>&1
echo x - scribe/files/scribe.pm.patch
sed 's/^X//' >scribe/files/scribe.pm.patch << 'b70d6e3e4855cb039789fc556eac3fb3'
X--- gen-perl/scribe.pm.orig 2010-07-14 18:52:03.000000000 +0800
X+++ gen-perl/scribe.pm 2010-07-14 18:49:30.000000000 +0800
X@@ -8,14 +8,14 @@
X use warnings;
X use Thrift;
X
X-use Types;
X+use Scribe::Thrift::Types;
X use Facebook::FB303::FacebookService;
X
X # HELPER FUNCTIONS AND STRUCTURES
X
X-package scribe_Log_args;
X+package Scribe::Thrift::scribe_Log_args;
X use base qw(Class::Accessor);
X-scribe_Log_args->mk_accessors( qw( messages ) );
X+Scribe::Thrift::scribe_Log_args->mk_accessors( qw( messages ) );
X
X sub new {
X my $classname = shift;
X@@ -99,9 +99,9 @@
X return $xfer;
X }
X
X-package scribe_Log_result;
X+package Scribe::Thrift::scribe_Log_result;
X use base qw(Class::Accessor);
X-scribe_Log_result->mk_accessors( qw( success ) );
X+Scribe::Thrift::scribe_Log_result->mk_accessors( qw( success ) );
X
X sub new {
X my $classname = shift;
X@@ -163,7 +163,7 @@
X return $xfer;
X }
X
X-package scribeIf;
X+package Scribe::Thrift::scribeIf;
X
X use strict;
X use base qw(Facebook::FB303::FacebookServiceIf);
X@@ -175,7 +175,7 @@
X die 'implement interface';
X }
X
X-package scribeRest;
X+package Scribe::Thrift::scribeRest;
X
X use strict;
X use base qw(Facebook::FB303::FacebookServiceRest);
X@@ -187,10 +187,10 @@
X return $self->{impl}->Log($messages);
X }
X
X-package scribeClient;
X+package Scribe::Thrift::scribeClient;
X
X use base qw(Facebook::FB303::FacebookServiceClient);
X-use base qw(scribeIf);
X+use base qw(Scribe::Thrift::scribeIf);
X sub new {
X my ($classname, $input, $output) = @_;
X my $self = {};
X@@ -211,7 +211,7 @@
X my $messages = shift;
X
X $self->{output}->writeMessageBegin('Log', TMessageType::CALL, $self->{seqid});
X- my $args = new scribe_Log_args();
X+ my $args = new Scribe::Thrift::scribe_Log_args();
X $args->{messages} = $messages;
X $args->write($self->{output});
X $self->{output}->writeMessageEnd();
X@@ -232,7 +232,7 @@
X $self->{input}->readMessageEnd();
X die $x;
X }
X- my $result = new scribe_Log_result();
X+ my $result = new Scribe::Thrift::scribe_Log_result();
X $result->read($self->{input});
X $self->{input}->readMessageEnd();
X
X@@ -241,7 +241,7 @@
X }
X die "Log failed: unknown result";
X }
X-package scribeProcessor;
X+package Scribe::Thrift::scribeProcessor;
X
X use strict;
X use base qw(Facebook::FB303::FacebookServiceProcessor);
X--- gen-perl/Constants.pm.orig 2010-07-14 18:52:03.000000000 +0800
X+++ gen-perl/Constants.pm 2010-07-14 18:49:30.000000000 +0800
X@@ -3,7 +3,7 @@
X #
X # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
X #
X-package Constants;
X+package Scribe::Thrift::Constants;
X require 5.6.0;
X use strict;
X use warnings;
X--- gen-perl/Types.pm.orig 2010-07-14 18:52:03.000000000 +0800
X+++ gen-perl/Types.pm 2010-07-14 18:49:30.000000000 +0800
X@@ -8,12 +8,12 @@
X use warnings;
X use Thrift;
X
X-package ResultCode;
X+package Scribe::Thrift::ResultCode;
X use constant OK => 0;
X use constant TRY_LATER => 1;
X-package LogEntry;
X+package Scribe::Thrift::LogEntry;
X use base qw(Class::Accessor);
X-LogEntry->mk_accessors( qw( category message ) );
X+Scribe::Thrift::LogEntry->mk_accessors( qw( category message ) );
X
X sub new {
X my $classname = shift;
b70d6e3e4855cb039789fc556eac3fb3
echo x - scribe/files/scribe.in
sed 's/^X//' >scribe/files/scribe.in << '7b0b710234818bb3c7b497eb3267dea6'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X
X# PROVIDE: scribe
X# REQUIRE: DAEMON
X
X. /etc/rc.subr
X
Xname="scribe"
Xcommand="/usr/sbin/daemon %%PREFIX%%/bin/scribed"
X
Xload_rc_config "$name"
X: ${scribe_enable="NO"}
X: ${scribe_flags=""}
X
Xrun_rc_command "$1"
7b0b710234818bb3c7b497eb3267dea6
echo x - scribe/distinfo
sed 's/^X//' >scribe/distinfo << '70c80b61e863b479e3921c93a56b4bca'
XMD5 (scribe-2.2.tar.gz) = 8111d2722fa6a0d575f5717e56c4a47e
XSHA256 (scribe-2.2.tar.gz) = 960f92a1eeef64eaeb7465976c7e16e64dbc67fc61aa041072f23eb0915e4505
XSIZE (scribe-2.2.tar.gz) = 71223
70c80b61e863b479e3921c93a56b4bca
echo x - scribe/Makefile
sed 's/^X//' >scribe/Makefile << '0df1fbf816c27dbb4cecf13049cb8838'
X# New ports collection makefile for: scribe
X# Date created: 2010-07-15
X# Whom: Jui-Nan Lin <jnlin at csie.nctu.edu.tw>
X# $FreeBSD$
X#
X
XPORTNAME= scribe
XPORTVERSION= 2.2
XCATEGORIES= net
XMASTER_SITES= http://cloud.github.com/downloads/facebook/scribe/
X
XMAINTAINER= jnlin at csie.nctu.edu.tw
XCOMMENT= Aggregating log data streamed in real time
X
XBUILD_DEPENDS= fb303>0:${PORTSDIR}/devel/fb303
XLIB_DEPENDS= boost_system:${PORTSDIR}/devel/boost-libs \
X event:${PORTSDIR}/devel/libevent \
X thrift:${PORTSDIR}/devel/thrift
XRUN_DEPENDS= p5-Class-Accessor>0:${PORTSDIR}/devel/p5-Class-Accessor \
X p5-Thrift>0:${PORTSDIR}/devel/p5-Thrift
X
XACLOCAL_ARGS= -I ./aclocal
XAUTOMAKE_ARGS= -a
XCONFIGURE_ARGS= --with-boost-filesystem=boost_filesystem \
X --with-boost-system=boost_system \
X PY_PREFIX="${PREFIX}"
XPLIST_SUB+= PYTHON_VERSION_SHORTNAME="${PYTHON_VERSION_SHORTNAME}"
XPYTHON_VERSION_SHORTNAME= ${PYTHON_VERSION:S/thon//}
XUSE_AUTOTOOLS= aclocal:19 automake:19 autoconf:262
XUSE_GMAKE= yes
XUSE_PYTHON= yes
XUSE_RC_SUBR= ${PORTNAME}
X
Xpost-extract:
X ${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC}
X
Xpost-patch:
X ${REINPLACE_CMD} -e 's|/usr/local/scribe|${LOCALBASE}/etc|' ${WRKSRC}/src/env_default.h
X
Xpost-build:
X ${LOCALBASE}/bin/thrift -o ${WRKSRC} -I ${LOCALBASE}/share --gen "perl" ${WRKSRC}/if/scribe.thrift
X cd ${WRKSRC} && ${PATCH} < ${FILESDIR}/scribe.pm.patch
X
Xpost-install:
X ${MKDIR} ${PREFIX}/${SITE_PERL_REL}/Scribe/Thrift
X ${CP} ${WRKSRC}/gen-perl/* ${PREFIX}/${SITE_PERL_REL}/Scribe/Thrift
X ${MKDIR} ${EXAMPLESDIR}
X ${CP} ${WRKSRC}/examples/* ${EXAMPLESDIR}
X
X.include <bsd.port.mk>
0df1fbf816c27dbb4cecf13049cb8838
exit
--- scribe-2.2.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list