From phil@experts-exchange.com  Tue Apr 26 00:31:26 2011
Return-Path: <phil@experts-exchange.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E46C21065675
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 26 Apr 2011 00:31:26 +0000 (UTC)
	(envelope-from phil@experts-exchange.com)
Received: from mail.experts-exchange.com (mail.experts-exchange.com [72.29.183.251])
	by mx1.freebsd.org (Postfix) with ESMTP id 8A76B8FC18
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 26 Apr 2011 00:31:26 +0000 (UTC)
Received: from mail.experts-exchange.com (localhost [127.0.0.1])
	by mail.experts-exchange.com (Postfix) with ESMTP id 47BCC71393B
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 25 Apr 2011 17:31:26 -0700 (PDT)
Received: from mail.experts-exchange.com ([127.0.0.1])
	by mail.experts-exchange.com (mail.experts-exchange.com [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id IzvTdolB-xQf for <FreeBSD-gnats-submit@freebsd.org>;
	Mon, 25 Apr 2011 17:31:26 -0700 (PDT)
Received: from experts-exchange.com (unknown [72.29.180.81])
	by mail.experts-exchange.com (Postfix) with SMTP id 12A797138B4
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 25 Apr 2011 17:31:26 -0700 (PDT)
Received: (nullmailer pid 93429 invoked by uid 20002);
	Tue, 26 Apr 2011 00:27:52 -0000
Message-Id: <20110426003126.47BCC71393B@mail.experts-exchange.com>
Date: Mon, 25 Apr 2011 17:31:26 -0700 (PDT)
From: phil@experts-exchange.com
To: undisclosed-recipients:;
Subject: [new port] net-mgmt/zenoss: monitoring software

>Number:         156655
>Category:       ports
>Synopsis:       [new port] net-mgmt/zenoss: monitoring software
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    crees
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 26 00:40:09 UTC 2011
>Closed-Date:    Thu Jul 21 16:55:47 UTC 2011
>Last-Modified:  Fri Aug 26 11:10:03 UTC 2011
>Originator:     Phil Phillips
>Release:        FreeBSD 8.2-RELEASE i386
>Organization:
Experts Exchange, LLC.
>Environment:
System: FreeBSD eggman.experts-exchange.com 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC 2011 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
Here's a port for zenoss, an open source network management system.
WWW: http://zenoss.com/

This builds cleanly in tinderbox and passes portlint.
 
Shar for the port can be found here:  http://sites.google.com/site/philsplacepublic/files2/zenoss31.shar.txt
I have also attached a patch for UIDs/GIDs, since the port requires a new user.

Some things to be aware of:

* The daemon 'zentrap' isn't working on FreeBSD (yet)
* This port is unconventional - it builds (and installs) during the install step.
  (This is the way the zenoss script does it)
* I added 'java' to the list of CATEGORIES to satisfy portlint.  However, the port
  only uses java during its build process to generate some files.
>How-To-Repeat:
>Fix:

Index: UIDs
===================================================================
RCS file: /home/jhelfman/ncvs/ports/UIDs,v
retrieving revision 1.149
diff -n -u -r1.149 UIDs
--- UIDs	24 Apr 2011 09:54:22 -0000	1.149
+++ UIDs	25 Apr 2011 21:57:52 -0000
@@ -136,6 +136,7 @@
 drweb:*:426:426::0:0:Dr.Web Mail Scanner:/nonexistent:/usr/sbin/nologin
 callweaver:*:444:444::0:0:Callweaver account:/var/lib/callweaver:/usr/sbin/nologin
 courier:*:465:465::0:0:Courier Mail Server:/nonexistent:/usr/sbin/nologin
+zenoss:*:500:500::0:0:Zenoss User:/usr/local/zenoss:/bin/sh
 _bbstored:*:505:505::0:0:BoxBackup Store Daemon:/nonexistent:/bin/sh
 radmind:*:506:506::0:0:radmind User:/var/radmind:/usr/sbin/nologin
 nullmail:*:522:522::0:0:Nullmailer Mail System:/var/spool/nullmailer:/bin/sh
Index: GIDs
===================================================================
RCS file: /home/jhelfman/ncvs/ports/GIDs,v
retrieving revision 1.134
diff -n -u -r1.134 GIDs
--- GIDs	24 Apr 2011 09:54:22 -0000	1.134
+++ GIDs	25 Apr 2011 21:58:35 -0000
@@ -126,6 +126,7 @@
 drweb:*:426:
 callweaver:*:444:
 courier:*:465:
+zenoss:*:500:
 _bbstored:*:505:
 radmind:*:506:
 nullmail:*:522:
>Release-Note:
>Audit-Trail:

From: Chris Rees <utisoft@gmail.com>
To: jhelfman@e-e.com, bug-followup@freebsd.org, phil@experts-exchange.com
Cc:  
Subject: ports/156655: [new port] net-mgmt/zenoss: monitoring software
Date: Tue, 10 May 2011 20:32:52 +0100

 Hey,
 
 Looks pretty good, it's obvious a load of hard work went into it.
 
 Please don't take this as an attack! A couple of pointers:
 
 #	Only remove conf files that differ from examples
 
 
 It's kinda hard to see what's going on here; you'll be better off with
 something like:
 
 CONF_FILES=  something.conf \
                         something2.conf
 
 then using a Make .for, rather than shell (don't copy/paste this;
 gmail can't do tabs!):
 
 .for file in ${CONF_FILES}
             @cmp ${file} ${file}.example && ${RM} -f ${file} > /dev/null
 .endfor
 
 and you could be better off patching the build scripts to install a
 sample.conf rather than
 
 As I mentioned on IRC, you can't list config files in pkg-plist,
 they'll get wiped out
 by pkg_delete even if they've been edited by a user on
 upgrade/deinstall. Take a look
 at [1].
 
 At the weekend I'll have another look.
 
 Chris
 
 [1] http://www.freebsd.org/doc/en/books/porters-handbook/plist-config.html

From: Phil Phillips <pphillips@experts-exchange.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/156655: [new port] net-mgmt/zenoss: monitoring software
Date: Tue, 31 May 2011 15:00:40 -0700

 Thanks for the feedback, Chris.
 
 Here's an updated shar the should preserve conf files.
 http://sites.google.com/site/philsplacepublic/files2/zenoss31_2.shar.txt

From: Chris Rees <utisoft@gmail.com>
To: bug-followup@freebsd.org
Cc: pphillips@experts-exchange.com
Subject: Re: ports/156655: [new port] net-mgmt/zenoss: monitoring software
Date: Thu, 9 Jun 2011 18:18:54 +0100

 Hi Phil,
 
 Sorry about the delay in replying.
 
 The changes look good, although personally I'd rather not see a port
 compiling during the install phase because of the traditional upgrade
 sequence of FreeBSD ports (yes, there is one);
 
 make <-- nothing
 make deinstall
 make install
 
 Now we wait for compilation, all the while zenoss is inactive and deinstalled.
 
 If this isn't a problem for anyone else then we can leave it at that!
 
 Chris
Responsible-Changed-From-To: freebsd-ports-bugs->crees 
Responsible-Changed-By: crees 
Responsible-Changed-When: Sun Jun 12 10:14:47 UTC 2011 
Responsible-Changed-Why:  
I'll take it. 

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

From: Chris Rees <utisoft@gmail.com>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: ports/156655: [new port] net-mgmt/zenoss: monitoring software
Date: Sun, 12 Jun 2011 15:07:07 +0100

 I've rewritten the shar a little, including a few changes:
 
 - Removal of clobbering BINOWN etc <-- no precedent for that in any
 other ports I can find, and also redundant because of the find -type d
 and -type f -exec chown lines in the Makefile and pkg-install.
 
 - Replaced instances of zenoss:zenoss with ${USERS}:${GROUPS} <-- more
 explicit that it's the ones with the port
 
 - Replaced [ "$dep" == "freetype" ] with [ "$dep" = "freetype" ] in
 files/patch-rrddeps.sh <-- thanks to jilles@ -- please pass that
 upstream too, == in [] is a GNUism and only works on 8-STABLE+
 
 - Optimised the code in pkg-install for installing example files --
 take a look although it actually turns out the install script does the
 config file arrangement for us, though we still have to remove the
 example files properly.
 
 These should all be fine now, I'm going to run it through a Tinderbox
 before sending to rene@ for approval.
 
 Chris
 
 http://www.bayofrum.net/~crees/patches/zenoss_3.shar
 http://www.bayofrum.net/~crees/patches/zenoss_3.diff

From: Phil Phillips <pphillips@experts-exchange.com>
To: "bug-followup@FreeBSD.org" <bug-followup@FreeBSD.org>,
 "phil@experts-exchange.com" <phil@experts-exchange.com>
Cc: "utisoft@gmail.com" <utisoft@gmail.com>
Subject: Re: ports/156655: [new port] net-mgmt/zenoss: monitoring software
Date: Thu, 16 Jun 2011 01:12:20 -0400

 Hey Chris,
 
 Thanks for taking this on :).  The updates look good to me.
 
 I plan on getting zenoss to build and install in separate steps, but this ve=
 rsion will at least get the ball rolling for zenoss on FreeBSD.  My colleagu=
 es and I have also been working on porting various "ZenPacks":  http://www.Fre=
 eBSD.org/cgi/query-pr-summary.cgi?category=3D&severity=3D&priority=3D&class=3D=
 &state=3D&sort=3Dnone&text=3DZenpack&responsible=3D&multitext=3D&originator=3D=
 &release=3D
 
 But, getting an initial zenoss port in is a big step :).
 
 Thanks again,
 Phil

From: Chris Rees <utisoft@gmail.com>
To: Phil Phillips <pphillips@experts-exchange.com>, Jason <jhelfman@e-e.com>
Cc: "bug-followup@FreeBSD.org" <bug-followup@freebsd.org>, 
	"phil@experts-exchange.com" <phil@experts-exchange.com>
Subject: Re: ports/156655: [new port] net-mgmt/zenoss: monitoring software
Date: Mon, 20 Jun 2011 21:59:03 +0100

 On 16 June 2011 06:12, Phil Phillips <pphillips@experts-exchange.com> wrote=
 :
 > Hey Chris,
 >
 > Thanks for taking this on :). =A0The updates look good to me.
 >
 > I plan on getting zenoss to build and install in separate steps, but this=
  version will at least get the ball rolling for zenoss on FreeBSD. =A0My co=
 lleagues and I have also been working on porting various "ZenPacks": =A0htt=
 p://www.FreeBSD.org/cgi/query-pr-summary.cgi?category=3D&severity=3D&priori=
 ty=3D&class=3D&state=3D&sort=3Dnone&text=3DZenpack&responsible=3D&multitext=
 =3D&originator=3D&release=3D
 >
 > But, getting an initial zenoss port in is a big step :).
 >
 
 Hey Phil,
 
 Just keeping you in the loop.
 
 I've spoken with several other committers and a portmgr member, the
 general consensus is that it should be OK.
 
 When I've fixed the portlint whines (like manpages in pkg-plist) I'll
 get it in the tree-- should be sometime later this week.
 
 Chris

From: Chris Rees <crees@freebsd.org>
To: "pphillips@experts-exchange.com" <pphillips@experts-exchange.com>
Cc: "bug-followup@freebsd.org" <bug-followup@freebsd.org>
Subject: Re: ports/156655: [new port] net-mgmt/zenoss: monitoring software
Date: Sat, 9 Jul 2011 22:18:35 +0100

 --0015177410163f3fdb04a7a97e60
 Content-Type: text/plain; charset=ISO-8859-1
 
 Hey,
 
 Almost there, and got the go-ahead... only thing is it has list trouble
 (still!).
 
 I haven't had time to investigate yet, but could you perhaps explain why
 pysamba/version.pyc is not installed on 7.x?
 
 We're really almost there--- just sorting out the differences between
 supported FreeBSD versions!
 
 Chris
 
 Chris
 
 --0015177410163f3fdb04a7a97e60
 Content-Type: text/html; charset=ISO-8859-1
 
 <p>Hey,</p>
 <p>Almost there, and got the go-ahead... only thing is it has list trouble (still!).</p>
 <p>I haven&#39;t had time to investigate yet, but could you perhaps explain why pysamba/version.pyc is not installed on 7.x?</p>
 <p>We&#39;re really almost there--- just sorting out the differences between supported FreeBSD versions!</p>
 <p>Chris</p>
 <p>Chris</p>
 
 --0015177410163f3fdb04a7a97e60--
State-Changed-From-To: open->closed 
State-Changed-By: crees 
State-Changed-When: Thu Jul 21 16:55:46 UTC 2011 
State-Changed-Why:  
New port added, with some refactoring. Thanks! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/156655: commit references a PR
Date: Thu, 21 Jul 2011 16:52:02 +0000 (UTC)

 crees       2011-07-21 16:51:48 UTC
 
   FreeBSD ports repository
 
   Modified files:
     .                    GIDs UIDs 
   Log:
   Add users for net-mgmt/zenoss
   
   PR:             ports/156655
   Submitted by:   phil@experts-exchange.com
   Approved by:    rene (mentor)
   
   Revision  Changes    Path
   1.150     +2 -1      ports/GIDs
   1.163     +2 -1      ports/UIDs
 _______________________________________________
 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"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/156655: commit references a PR
Date: Thu, 21 Jul 2011 16:55:20 +0000 (UTC)

 crees       2011-07-21 16:55:07 UTC
 
   FreeBSD ports repository
 
   Modified files:
     net-mgmt             Makefile 
   Added files:
     net-mgmt/zenoss      Makefile Makefile.man distinfo pkg-descr 
                          pkg-message pkg-plist 
     net-mgmt/zenoss/files libsmi-0.4.8.all.patch01 local.conf.in 
                           patch-GNUmakefile patch-ZenossInfo.py 
                           patch-build-functions.sh patch-build.sh 
                           patch-buildjs.sh patch-init.sh 
                           patch-rrddeps.sh pkg-install.in 
                           profile.in zenoss.in 
   Log:
   An open source application, server and network management platform based on the
   Zope application server.
   
   WWW: http://zenoss.com/
   
   PR:             ports/156655
   Submitted by:   Phil Phillips <phil@experts-exchange.com>
   Approved by:    rene (mentor)
   
   Revision  Changes    Path
   1.251     +1 -0      ports/net-mgmt/Makefile
   1.1       +107 -0    ports/net-mgmt/zenoss/Makefile (new)
   1.1       +282 -0    ports/net-mgmt/zenoss/Makefile.man (new)
   1.1       +4 -0      ports/net-mgmt/zenoss/distinfo (new)
   1.1       +18 -0     ports/net-mgmt/zenoss/files/libsmi-0.4.8.all.patch01 (new)
   1.1       +1 -0      ports/net-mgmt/zenoss/files/local.conf.in (new)
   1.1       +95 -0     ports/net-mgmt/zenoss/files/patch-GNUmakefile (new)
   1.1       +19 -0     ports/net-mgmt/zenoss/files/patch-ZenossInfo.py (new)
   1.1       +48 -0     ports/net-mgmt/zenoss/files/patch-build-functions.sh (new)
   1.1       +22 -0     ports/net-mgmt/zenoss/files/patch-build.sh (new)
   1.1       +30 -0     ports/net-mgmt/zenoss/files/patch-buildjs.sh (new)
   1.1       +20 -0     ports/net-mgmt/zenoss/files/patch-init.sh (new)
   1.1       +82 -0     ports/net-mgmt/zenoss/files/patch-rrddeps.sh (new)
   1.1       +43 -0     ports/net-mgmt/zenoss/files/pkg-install.in (new)
   1.1       +8 -0      ports/net-mgmt/zenoss/files/profile.in (new)
   1.1       +42 -0     ports/net-mgmt/zenoss/files/zenoss.in (new)
   1.1       +4 -0      ports/net-mgmt/zenoss/pkg-descr (new)
   1.1       +9 -0      ports/net-mgmt/zenoss/pkg-message (new)
   1.1       +17959 -0  ports/net-mgmt/zenoss/pkg-plist (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"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/156655: commit references a PR
Date: Fri, 26 Aug 2011 11:01:01 +0000 (UTC)

 crees       2011-08-26 11:00:52 UTC
 
   FreeBSD doc repository (ports committer)
 
   Modified files:
     en_US.ISO8859-1/articles/contributors contrib.additional.sgml 
   Log:
   Add contributor of net-mgmt/zenoss and net-mgmt/p5-Zenoss.
   
   PR:             ports/160193 ports/156655
   
   Revision  Changes    Path
   1.1013    +5 -0      doc/en_US.ISO8859-1/articles/contributors/contrib.additional.sgml
 _______________________________________________
 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:
