From kami@k5-storitve.net Wed Jun 2 17:51:06 2010 Return-Path: Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1DE29106564A for ; Wed, 2 Jun 2010 17:51:06 +0000 (UTC) (envelope-from kami@k5-storitve.net) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9C04B8FC18 for ; Wed, 2 Jun 2010 17:51:05 +0000 (UTC) Received: by fxm5 with SMTP id 5so5083754fxm.13 for ; Wed, 02 Jun 2010 10:51:04 -0700 (PDT) Received: by 10.204.161.201 with SMTP id s9mr1992150bkx.19.1275501063810; Wed, 02 Jun 2010 10:51:03 -0700 (PDT) Received: from [10.0.0.3] ([86.58.76.208]) by mx.google.com with ESMTPS id z7sm9128931bkx.5.2010.06.02.10.51.01 (version=SSLv3 cipher=RC4-MD5); Wed, 02 Jun 2010 10:51:02 -0700 (PDT) Message-Id: <1275501062.18287.40.camel@localhost> Date: Wed, 02 Jun 2010 19:51:02 +0200 From: =?UTF-8?Q?Toma=C5=BE?= Muraus To: Sylvio =?ISO-8859-1?Q?C=E9sar?= Cc: bug-followup@freebsd.org In-Reply-To: Subject: Re: [NEW PORT] sysutils/ckl: A command line tool for noting when something was changed on a machine References: <1275368520.444.27.camel@kami-desktop> >Number: 147333 >Category: ports >Synopsis: Re: [NEW PORT] sysutils/ckl: A command line tool for noting when >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jun 02 18:00:08 UTC 2010 >Closed-Date: Thu Jun 03 00:20:25 UTC 2010 >Last-Modified: Thu Jun 03 00:20:25 UTC 2010 >Originator: >Release: >Organization: >Environment: >Description: --=-AK2mIq21GVnWjlazzNev Content-Type: multipart/alternative; boundary="=-QUszrASw1JwDExgQP2yH" --=-QUszrASw1JwDExgQP2yH Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit I've added the cURL dependency so it should work now (compiles fine under my tinderbox jail). On Wed, 2010-06-02 at 10:26 -0300, Sylvio César wrote: > 2010/6/1 Tomaž Muraus : > > Hello, > > > > Yes, I'm aware where FreeBSD stores ports config files, but I was not sure > > if I should create a patch, because program searches for config file in > > /etc/ or put the config file in /etc/cloudkick.conf? > > > > Thanks, > > Tomaž > > > > On Mon, 2010-05-31 at 21:40 -0300, Sylvio Cesar Teixeira wrote: > > > > Hi, > > > > The file must be add in "/usr/local/etc/cloudkick.conf" and not > > "/etc/cloudkick.conf. > > > > > > Error: > > http://people.freebsd.org/~sylvio/ckl-0.9.1.log --=-QUszrASw1JwDExgQP2yH Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 7bit I've added the cURL dependency so it should work now (compiles fine under my tinderbox jail).

On Wed, 2010-06-02 at 10:26 -0300, Sylvio César wrote:
 2010/6/1 Tomaž Muraus <kami@k5-storitve.net>:
 > Hello,
 >
 > Yes, I'm aware where FreeBSD stores ports config files, but I was not sure
 > if I should create a patch, because program searches for config file in
 > /etc/ or put the config file in /etc/cloudkick.conf?
 >
 > Thanks,
 > Tomaž
 >
 > On Mon, 2010-05-31 at 21:40 -0300, Sylvio Cesar Teixeira wrote:
 >
 > Hi,
 >
 > The file must be add in "/usr/local/etc/cloudkick.conf" and not
 > "/etc/cloudkick.conf.
 >
 >
 
 Error:
 
 http://people.freebsd.org/~sylvio/ckl-0.9.1.log
 

--=-QUszrASw1JwDExgQP2yH-- --=-AK2mIq21GVnWjlazzNev Content-Disposition: attachment; filename="ckl.txt" Content-Type: text/plain; name="ckl.txt"; charset="UTF-8" Content-Transfer-Encoding: 8bit # 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: # # ckl # ckl/pkg-descr # ckl/distinfo # ckl/pkg-plist # ckl/Makefile # ckl/files # ckl/files/patch-src-conf.c # ckl/files/cloudkick.conf.example # echo c - ckl mkdir -p ckl > /dev/null 2>&1 echo x - ckl/pkg-descr sed 's/^X//' >ckl/pkg-descr << '939bdd7723aa8662e133f2e9d5936add' XA command line tool for noting when something was changed on a machine. XThe contents of the message are POST'ed to another server for logging. X XWWW: http://github.com/pquerna/ckl 939bdd7723aa8662e133f2e9d5936add echo x - ckl/distinfo sed 's/^X//' >ckl/distinfo << '83d720edac8444a18f8d693425bfd00b' XMD5 (ckl-0.9.1.tar.bz2) = 010b2e7455a41b5c2380cb0c56954802 XSHA256 (ckl-0.9.1.tar.bz2) = 270d8de8f08ff0eeb88191527f6991467d3fee10b99c5c9319b5e027e1d3f77f XSIZE (ckl-0.9.1.tar.bz2) = 297908 83d720edac8444a18f8d693425bfd00b echo x - ckl/pkg-plist sed 's/^X//' >ckl/pkg-plist << '362a87ca86e1d31a889eeb003c57b85d' Xbin/ckl Xshare/examples/ckl/cloudkick.conf.example Xshare/examples/ckl/webapp/ckl.cgi X@dirrm share/examples/ckl/webapp X@dirrm share/examples/ckl 362a87ca86e1d31a889eeb003c57b85d echo x - ckl/Makefile sed 's/^X//' >ckl/Makefile << 'c6d4cd68b9a79e7fff44a130e337e1e9' X# New ports collection makefile for: ckl X# Date created: 1 June 2010 X# Whom: Tomaž Muraus X# X# $FreeBSD$ X# X XPORTNAME= ckl XPORTVERSION= 0.9.1 XCATEGORIES= sysutils net XMASTER_SITES= http://packages.cloudkick.com/releases/ckl/ XDISTNAME= ckl-${PORTVERSION} X XMAINTAINER= kami@k5-storitve.net XCOMMENT= A command line tool for noting when something was changed on a machine X XUSE_SCONS= yes XUSE_BZIP2= yes XLIB_DEPENDS= curl:${PORTSDIR}/ftp/curl X XPORTDOCS= CHANGES LICENSE NOTICE README X Xdo-install: X ${INSTALL_PROGRAM} ${WRKSRC}/src/ckl ${PREFIX}/bin X Xpost-install: X ${MKDIR} ${EXAMPLESDIR} X ${MKDIR} ${EXAMPLESDIR}/webapp X ${INSTALL_DATA} ${PATCHDIR}/cloudkick.conf.example ${EXAMPLESDIR} X (cd ${WRKSRC}/webapp/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}/webapp) X X.if !defined(NOPORTDOCS) X ${MKDIR} ${DOCSDIR} X.for file in ${PORTDOCS} X ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} X.endfor X.endif X X @if [ ! -f ${PREFIX}/etc/cloudkick.conf ]; then \ X ${TOUCH} ${PREFIX}/etc/cloudkick.conf ; \ X fi X X.include c6d4cd68b9a79e7fff44a130e337e1e9 echo c - ckl/files mkdir -p ckl/files > /dev/null 2>&1 echo x - ckl/files/patch-src-conf.c sed 's/^X//' >ckl/files/patch-src-conf.c << '3f942d8fda99e0d239351ca82e5b50c3' X*** src/conf.c.orig Sun Jan 24 02:46:27 2010 X--- src/conf.c Tue Jun 1 07:19:59 2010 X*************** X*** 86,96 **** X { X int rv; X FILE *fp; X X /* TODO: respect prefix */ X! fp = fopen("/etc/cloudkick.conf", "r"); X if (fp == NULL) { X char buf[2048]; X const char *home = getenv("HOME"); X X if (home == NULL) { X--- 86,96 ---- X { X int rv; X FILE *fp; X X /* TODO: respect prefix */ X! fp = fopen("/usr/local/etc/cloudkick.conf", "r"); X if (fp == NULL) { X char buf[2048]; X const char *home = getenv("HOME"); X X if (home == NULL) { 3f942d8fda99e0d239351ca82e5b50c3 echo x - ckl/files/cloudkick.conf.example sed 's/^X//' >ckl/files/cloudkick.conf.example << 'a1f61b8f10fe5f4d1b9d32157e464e19' Xckl_endpoint http://ckl.example.com/ Xsecret mySuperSecret a1f61b8f10fe5f4d1b9d32157e464e19 exit --=-AK2mIq21GVnWjlazzNev-- >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: State-Changed-From-To: open->closed State-Changed-By: linimon State-Changed-When: Thu Jun 3 00:20:01 UTC 2010 State-Changed-Why: Misfiled followup to ports/147261; content migrated. Responsible-Changed-From-To: gnats-admin->freebsd-ports-bugs Responsible-Changed-By: linimon Responsible-Changed-When: Thu Jun 3 00:20:01 UTC 2010 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=147333 >Unformatted: something was changed on a machine