Bug 187095 - [new port] devel/p5-Iodep-Pb-Simple, new port submission
Summary: [new port] devel/p5-Iodep-Pb-Simple, new port submission
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Frederic Culot
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-26 20:50 UTC by pauls
Modified: 2014-03-17 17:40 UTC (History)
0 users

See Also:


Attachments
p5-Iodef-Pb-Simple.shar (3.72 KB, text/plain)
2014-02-26 20:50 UTC, pauls
no flags Details
Makefile.diff (1.15 KB, patch)
2014-03-07 17:49 UTC, pauls
no flags Details | Diff
Makefile.diff (1.33 KB, patch)
2014-03-10 15:14 UTC, pauls
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description pauls 2014-02-26 20:50:01 UTC
	devel/p5-Iodef-Pb-Simple, new port submission
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-02-26 20:50:10 UTC
Responsible Changed
From-To: freebsd-ports-bugs->perl

perl@ wants this port PRs (via the GNATS Auto Assign Tool)
Comment 2 Frederic Culot freebsd_committer freebsd_triage 2014-02-27 13:43:08 UTC
Responsible Changed
From-To: perl->culot

I'll take it.
Comment 3 Frederic Culot freebsd_committer freebsd_triage 2014-03-06 20:53:09 UTC
State Changed
From-To: open->feedback

Hi Paul and thanks for your submission but your port lacks all of its 
dependencies! Could you have a look at it please?
Comment 4 pauls 2014-03-06 21:33:28 UTC
Are there any?  According to CPAN, any dependencies are part of the perl 
core.  Does it not build and install correctly?

-- 
Paul Schmehl (pauls@utdallas.edu)
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/infosecurity/
Comment 5 Frederic Culot freebsd_committer freebsd_triage 2014-03-07 06:21:04 UTC
Hi Paul,

> The following reply was made to PR ports/187095; it has been noted by GNATS.
> 
> From: Paul Schmehl <pauls@utdallas.edu>
> To: bug-followup@FreeBSD.org, pauls@utdallas.edu
> Cc:  
> Subject: Re: ports/187095: [new port] devel/p5-Iodep-Pb-Simple, new port
>  submission
> Date: Thu, 06 Mar 2014 15:33:28 -0600
> 
>  Are there any?  According to CPAN, any dependencies are part of the perl 
>  core.  Does it not build and install correctly?
>  
>  -- 
>  Paul Schmehl (pauls@utdallas.edu)
>  Senior Information Security Analyst
>  The University of Texas at Dallas
>  http://www.utdallas.edu/infosecurity/
>  

I believe CPAN showed you the results for the latest Perl version,
whereas we have the constraint with the ports tree to support Perl from
5.14 to 5.18 currently. You can check which version is the oldest one to
be supported by looking in lang/perl5.*/Makefile.
So considering we have to be compatible with people who have the oldest
Perl version installed (5.14.4), CPAN gives us quite a list of
dependencies to be added to your port:

http://deps.cpantesters.org/?module=Iodef%3A%3APb%3A%3ASimple&perl=5.14.4&os=FreeBSD

I don't know why but sometimes the CPAN interface replies it does not
have any result for a particular dependency. Anyway, I have worked on
updating your initial port and if you allow me a day or two I will be
able to provide you with an accurate dependency list.

Regards,
Frederic
Comment 6 pauls 2014-03-07 17:49:03 UTC
--On March 7, 2014 at 12:21:04 AM -0600 Frederic Culot <culot@FreeBSD.org> 
wrote:

> Hi Paul,
>
>> The following reply was made to PR ports/187095; it has been noted by
>> GNATS.
>>
>> From: Paul Schmehl <pauls@utdallas.edu>
>> To: bug-followup@FreeBSD.org, pauls@utdallas.edu
>> Cc:
>> Subject: Re: ports/187095: [new port] devel/p5-Iodep-Pb-Simple, new port
>>  submission
>> Date: Thu, 06 Mar 2014 15:33:28 -0600
>>
>>  Are there any?  According to CPAN, any dependencies are part of the
>>  perl  core.  Does it not build and install correctly?
>>
>
> I believe CPAN showed you the results for the latest Perl version,
> whereas we have the constraint with the ports tree to support Perl from
> 5.14 to 5.18 currently. You can check which version is the oldest one to
> be supported by looking in lang/perl5.*/Makefile.
> So considering we have to be compatible with people who have the oldest
> Perl version installed (5.14.4), CPAN gives us quite a list of
> dependencies to be added to your port:
>
> http://deps.cpantesters.org/?module=Iodef%3A%3APb%3A%3ASimple&perl=5.14.4
> &os=FreeBSD
>
> I don't know why but sometimes the CPAN interface replies it does not
> have any result for a particular dependency. Anyway, I have worked on
> updating your initial port and if you allow me a day or two I will be
> able to provide you with an accurate dependency list.
>

Thank you.  I was not aware that we needed to check for dependencies that 
way.

I've attached a diff for the Makefile.

-- 
Paul Schmehl (pauls@utdallas.edu)
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/infosecurity/
Comment 7 Frederic Culot freebsd_committer freebsd_triage 2014-03-09 07:48:35 UTC
Hi again Paul,

> 
> Thank you.  I was not aware that we needed to check for dependencies that 
> way.
> 
> I've attached a diff for the Makefile.

thanks for this update!
Unfortunately the CPAN interface is not always accurate and some
dependencies could be missed. In this case the best is to go back to the
port's specification in the META.yml file and to consider each
dependency in turn to see if it is part of core or not.
To do so I use the 'corelist -a <module>' command.

Using this method shows that the Iodef::Pb::Simple module depends on
OSSP::uuid, which should be provided by the misc/ossp-uuid port.
However, when doing my tests I realized that ossp-uuid is broken and
does not build the Perl binding properly. Hence I opened the
ports/187387 PR to have its maintainer fix it.

Once this PR is resolved I will proceed with your submission.

Regards,
Frederic
Comment 8 pauls 2014-03-10 15:14:25 UTC
--On March 9, 2014 at 1:48:35 AM -0600 Frederic Culot <culot@FreeBSD.org> 
wrote:

> Hi again Paul,
>
>>
>> Thank you.  I was not aware that we needed to check for dependencies
>> that  way.
>>
>> I've attached a diff for the Makefile.
>
> thanks for this update!
> Unfortunately the CPAN interface is not always accurate and some
> dependencies could be missed. In this case the best is to go back to the
> port's specification in the META.yml file and to consider each
> dependency in turn to see if it is part of core or not.
> To do so I use the 'corelist -a <module>' command.
>
> Using this method shows that the Iodef::Pb::Simple module depends on
> OSSP::uuid, which should be provided by the misc/ossp-uuid port.
> However, when doing my tests I realized that ossp-uuid is broken and
> does not build the Perl binding properly. Hence I opened the
> ports/187387 PR to have its maintainer fix it.
>
> Once this PR is resolved I will proceed with your submission.
>

Again you taught me something new.  Based on the META.yml and running 
corelist, I'm attaching a new Makefile.diff with what I hope are now the 
right dependencies.

-- 
Paul Schmehl (pauls@utdallas.edu)
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/infosecurity/
Comment 9 Frederic Culot freebsd_committer freebsd_triage 2014-03-10 15:28:03 UTC
> --On March 9, 2014 at 1:48:35 AM -0600 Frederic Culot <culot@FreeBSD.org> 
> wrote:
> 
> > Hi again Paul,
> >
> >>
> >> Thank you.  I was not aware that we needed to check for dependencies
> >> that  way.
> >>
> >> I've attached a diff for the Makefile.
> >
> > thanks for this update!
> > Unfortunately the CPAN interface is not always accurate and some
> > dependencies could be missed. In this case the best is to go back to the
> > port's specification in the META.yml file and to consider each
> > dependency in turn to see if it is part of core or not.
> > To do so I use the 'corelist -a <module>' command.
> >
> > Using this method shows that the Iodef::Pb::Simple module depends on
> > OSSP::uuid, which should be provided by the misc/ossp-uuid port.
> > However, when doing my tests I realized that ossp-uuid is broken and
> > does not build the Perl binding properly. Hence I opened the
> > ports/187387 PR to have its maintainer fix it.
> >
> > Once this PR is resolved I will proceed with your submission.
> >
> 
> Again you taught me something new.  Based on the META.yml and running 
> corelist, I'm attaching a new Makefile.diff with what I hope are now the 
> right dependencies.
> 
> -- 
> Paul Schmehl (pauls@utdallas.edu)
> Senior Information Security Analyst
> The University of Texas at Dallas
> http://www.utdallas.edu/infosecurity/

Thanks for this update Paul, we are almost there!

However there is still a remaining issue with the p5-OSSP-uuid module
you mention in the dependency list. Indeed this module does not exist in
the ports tree. Using a tool such as ports-mgmt/portlint can help you
detect such things ("portlint -abmt /usr/ports/devel/p5-Iodef-Pb-Simple"
would have reported the non-existing dependency).

The correct port to mention as a dependency is misc/ossp-uuid, which
provides OSSP::uuid.pm. However it provides it only when the WITH_PERL
option is set... So there's a bit of a trick here in that we miss a way
to specify that the ossp-uuid port must be compiled with Perl support
on. To do so, I will commit soon a stub port for ossp-uuid with perl
bindings enabled and then we will be able to specify this stub port in
our dependency list.

Regards,
Frederic
Comment 10 pauls 2014-03-10 15:44:42 UTC
--On March 10, 2014 at 10:28:03 AM -0500 Frederic Culot <culot@FreeBSD.org> 
wrote:

>
>> --On March 9, 2014 at 1:48:35 AM -0600 Frederic Culot
>> <culot@FreeBSD.org>  wrote:
>>
>> > Hi again Paul,
>> >
>> >>
>> >> Thank you.  I was not aware that we needed to check for dependencies
>> >> that  way.
>> >>
>> >> I've attached a diff for the Makefile.
>> >
>> > thanks for this update!
>> > Unfortunately the CPAN interface is not always accurate and some
>> > dependencies could be missed. In this case the best is to go back to
>> > the port's specification in the META.yml file and to consider each
>> > dependency in turn to see if it is part of core or not.
>> > To do so I use the 'corelist -a <module>' command.
>> >
>> > Using this method shows that the Iodef::Pb::Simple module depends on
>> > OSSP::uuid, which should be provided by the misc/ossp-uuid port.
>> > However, when doing my tests I realized that ossp-uuid is broken and
>> > does not build the Perl binding properly. Hence I opened the
>> > ports/187387 PR to have its maintainer fix it.
>> >
>> > Once this PR is resolved I will proceed with your submission.
>> >
>>
>> Again you taught me something new.  Based on the META.yml and running
>> corelist, I'm attaching a new Makefile.diff with what I hope are now the
>> right dependencies.
>>
>
> Thanks for this update Paul, we are almost there!
>
> However there is still a remaining issue with the p5-OSSP-uuid module
> you mention in the dependency list. Indeed this module does not exist in
> the ports tree. Using a tool such as ports-mgmt/portlint can help you
> detect such things ("portlint -abmt /usr/ports/devel/p5-Iodef-Pb-Simple"
> would have reported the non-existing dependency).
>
> The correct port to mention as a dependency is misc/ossp-uuid, which
> provides OSSP::uuid.pm. However it provides it only when the WITH_PERL
> option is set... So there's a bit of a trick here in that we miss a way
> to specify that the ossp-uuid port must be compiled with Perl support
> on. To do so, I will commit soon a stub port for ossp-uuid with perl
> bindings enabled and then we will be able to specify this stub port in
> our dependency list.
>
I put that in as a placemarker.  Once the stub port is committed, that line 
can be edited to point to the correct stub port.

-- 
Paul Schmehl (pauls@utdallas.edu)
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/infosecurity/
Comment 11 dfilter service freebsd_committer freebsd_triage 2014-03-17 17:39:37 UTC
Author: culot
Date: Mon Mar 17 17:39:30 2014
New Revision: 348494
URL: http://svnweb.freebsd.org/changeset/ports/348494
QAT: https://qat.redports.org/buildarchive/r348494/

Log:
  Iodef::Pb::Simple is a Perl extension providing high level API access to
  Iodef::Pb, which is useful to an array of IODEF protocol buffer objects
  into things like tab-delimited tables, csv, and snort rules.
  
  WWW: http://search.cpan.org/dist/Iodef-Pb-Simple/
  
  PR:		ports/187095
  Submitted by:	Paul Schmehl <pauls@utdallas.edu>

Added:
  head/devel/p5-Iodef-Pb-Simple/
  head/devel/p5-Iodef-Pb-Simple/Makefile   (contents, props changed)
  head/devel/p5-Iodef-Pb-Simple/distinfo   (contents, props changed)
  head/devel/p5-Iodef-Pb-Simple/pkg-descr   (contents, props changed)
  head/devel/p5-Iodef-Pb-Simple/pkg-plist   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Mon Mar 17 17:12:47 2014	(r348493)
+++ head/devel/Makefile	Mon Mar 17 17:39:30 2014	(r348494)
@@ -2188,6 +2188,7 @@
     SUBDIR += p5-InlineX-C2XS
     SUBDIR += p5-InlineX-CPP2XS
     SUBDIR += p5-Ioctl
+    SUBDIR += p5-Iodef-Pb-Simple
     SUBDIR += p5-Iterator
     SUBDIR += p5-Iterator-IO
     SUBDIR += p5-Iterator-Misc

Added: head/devel/p5-Iodef-Pb-Simple/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/p5-Iodef-Pb-Simple/Makefile	Mon Mar 17 17:39:30 2014	(r348494)
@@ -0,0 +1,36 @@
+# $FreeBSD$
+
+PORTNAME=	Iodef-Pb-Simple
+PORTVERSION=	0.21
+CATEGORIES=	devel perl5
+MASTER_SITES=	CPAN
+MASTER_SITE_SUBDIR=	CPAN:SAXJAZMAN/iodef
+PKGNAMEPREFIX=	p5-
+
+MAINTAINER=	pauls@utdallas.edu
+COMMENT=	Perl extension providing high level API access to Iodef-Pb
+
+LICENSE=	ART10 GPLv1
+LICENSE_COMB=	dual
+
+BUILD_DEPENDS=	p5-Class-Accessor>=0.34:${PORTSDIR}/devel/p5-Class-Accessor \
+		p5-Compress-Snappy>=0.18:${PORTSDIR}/archivers/p5-Compress-Snappy \
+		p5-DateTime>=0.61:${PORTSDIR}/devel/p5-DateTime \
+		p5-DateTime-Format-DateParse>=0.05:${PORTSDIR}/devel/p5-DateTime-Format-DateParse \
+		p5-Google-ProtocolBuffers>=0.08:${PORTSDIR}/devel/p5-Google-ProtocolBuffers \
+		p5-HTML-Table>=2.08:${PORTSDIR}/www/p5-HTML-Table \
+		p5-JSON-XS>=2.29:${PORTSDIR}/converters/p5-JSON-XS \
+		p5-MIME-Base64>=0.08:${PORTSDIR}/converters/p5-MIME-Base64 \
+		p5-Module-Install>=1.00:${PORTSDIR}/devel/p5-Module-Install \
+		p5-OSSP-uuid>=1.6.2:${PORTSDIR}/misc/p5-OSSP-uuid \
+		p5-Parse-Range>=0.96:${PORTSDIR}/math/p5-Parse-Range \
+		p5-Regexp-Common>=2010010201:${PORTSDIR}/textproc/p5-Regexp-Common \
+		p5-Regexp-Common-net-CIDR>=0.02:${PORTSDIR}/textproc/p5-Regexp-Common-net-CIDR \
+		p5-Snort-Rule>=1.07:${PORTSDIR}/security/p5-Snort-Rule \
+		p5-Text-Table>=1.126:${PORTSDIR}/textproc/p5-Text-Table
+RUN_DEPENDS:=	${BUILD_DEPENDS}
+
+USES=		perl5
+USE_PERL5=	configure
+
+.include <bsd.port.mk>

Added: head/devel/p5-Iodef-Pb-Simple/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/p5-Iodef-Pb-Simple/distinfo	Mon Mar 17 17:39:30 2014	(r348494)
@@ -0,0 +1,2 @@
+SHA256 (Iodef-Pb-Simple-0.21.tar.gz) = 18b57c8a1ccc260ca50dcf9c07f70aea4140ff51262d5fbba438b14845d5e2d9
+SIZE (Iodef-Pb-Simple-0.21.tar.gz) = 107837

Added: head/devel/p5-Iodef-Pb-Simple/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/p5-Iodef-Pb-Simple/pkg-descr	Mon Mar 17 17:39:30 2014	(r348494)
@@ -0,0 +1,5 @@
+Iodef::Pb::Simple is a Perl extension providing high level API access to
+Iodef::Pb, which is useful to an array of IODEF protocol buffer objects
+into things like tab-delimited tables, csv, and snort rules.
+
+WWW: http://search.cpan.org/dist/Iodef-Pb-Simple/

Added: head/devel/p5-Iodef-Pb-Simple/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/p5-Iodef-Pb-Simple/pkg-plist	Mon Mar 17 17:39:30 2014	(r348494)
@@ -0,0 +1,47 @@
+%%PERL5_MAN3%%/Iodef::Pb::Format.3.gz
+%%PERL5_MAN3%%/Iodef::Pb::Simple.3.gz
+%%SITE_PERL%%/Iodef/Pb.pm
+%%SITE_PERL%%/Iodef/Pb/Format.pm
+%%SITE_PERL%%/Iodef/Pb/Format/Bindzone.pm
+%%SITE_PERL%%/Iodef/Pb/Format/Bro.pm
+%%SITE_PERL%%/Iodef/Pb/Format/Csv.pm
+%%SITE_PERL%%/Iodef/Pb/Format/Html.pm
+%%SITE_PERL%%/Iodef/Pb/Format/Iptables.pm
+%%SITE_PERL%%/Iodef/Pb/Format/Json.pm
+%%SITE_PERL%%/Iodef/Pb/Format/Pcapfilter.pm
+%%SITE_PERL%%/Iodef/Pb/Format/Raw.pm
+%%SITE_PERL%%/Iodef/Pb/Format/Snort.pm
+%%SITE_PERL%%/Iodef/Pb/Format/Table.pm
+%%SITE_PERL%%/Iodef/Pb/Simple.pm
+%%SITE_PERL%%/Iodef/Pb/Simple/Plugin.pm
+%%SITE_PERL%%/Iodef/Pb/Simple/Plugin/AdditionalData.pm
+%%SITE_PERL%%/Iodef/Pb/Simple/Plugin/Alternativeid.pm
+%%SITE_PERL%%/Iodef/Pb/Simple/Plugin/Assessment.pm
+%%SITE_PERL%%/Iodef/Pb/Simple/Plugin/Bgp.pm
+%%SITE_PERL%%/Iodef/Pb/Simple/Plugin/Carboncopy.pm
+%%SITE_PERL%%/Iodef/Pb/Simple/Plugin/Contact.pm
+%%SITE_PERL%%/Iodef/Pb/Simple/Plugin/Detecttime.pm
+%%SITE_PERL%%/Iodef/Pb/Simple/Plugin/Domain.pm
+%%SITE_PERL%%/Iodef/Pb/Simple/Plugin/Email.pm
+%%SITE_PERL%%/Iodef/Pb/Simple/Plugin/Eventdata.pm
+%%SITE_PERL%%/Iodef/Pb/Simple/Plugin/Guid.pm
+%%SITE_PERL%%/Iodef/Pb/Simple/Plugin/Hash.pm
+%%SITE_PERL%%/Iodef/Pb/Simple/Plugin/Incidentid.pm
+%%SITE_PERL%%/Iodef/Pb/Simple/Plugin/Ipv4.pm
+%%SITE_PERL%%/Iodef/Pb/Simple/Plugin/Malware.pm
+%%SITE_PERL%%/Iodef/Pb/Simple/Plugin/Method.pm
+%%SITE_PERL%%/Iodef/Pb/Simple/Plugin/Purpose.pm
+%%SITE_PERL%%/Iodef/Pb/Simple/Plugin/Relatedactivity.pm
+%%SITE_PERL%%/Iodef/Pb/Simple/Plugin/Reporttime.pm
+%%SITE_PERL%%/Iodef/Pb/Simple/Plugin/Restriction.pm
+%%SITE_PERL%%/Iodef/Pb/Simple/Plugin/Url.pm
+%%SITE_PERL%%/Iodef/Pb/t1.pl
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Iodef/Pb/Simple/.packlist
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Iodef/Pb/Simple
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Iodef/Pb
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Iodef
+@dirrmtry %%SITE_PERL%%/Iodef/Pb/Simple/Plugin
+@dirrmtry %%SITE_PERL%%/Iodef/Pb/Simple
+@dirrmtry %%SITE_PERL%%/Iodef/Pb/Format
+@dirrmtry %%SITE_PERL%%/Iodef/Pb
+@dirrmtry %%SITE_PERL%%/Iodef
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 12 Frederic Culot freebsd_committer freebsd_triage 2014-03-17 17:39:43 UTC
State Changed
From-To: feedback->closed

New port added. Thanks!