Gentoo Forums
Gentoo Forums
Quick Search: in
XML::Sax::PurePerl and Nmap::Scanner ebuilds
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Grathol
n00b
n00b


Joined: 08 Nov 2003
Posts: 33

PostPosted: Thu Mar 11, 2004 10:49 am    Post subject: XML::Sax::PurePerl and Nmap::Scanner ebuilds Reply with quote

Hi everybody,
I was writing a perl application that uses these two packages and noticed there were no ebuilds for them. I threw some together, I'm not really sure if they're correct or not, but I emerged them and the packages worked on my machine, so I figured I'd throw them out here on the forum... if anyone more experienced than I would care to look at them and submit them to the portage tree if they are correct, be my guest -- just wanted to share them in case anyone needs them.

/usr/portage/dev-perl/XML-SAX-PurePerl/XML-SAX-PurePerl-0.80.ebuild
Code:
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
 
inherit perl-module
 
DESCRIPTION="A Pure Perl XML Parser with SAX2 interface"
HOMEPAGE="http://www.cpan.org/modules/by-module/XML/${P}.readme"
SRC_URI="http://www.cpan.org/modules/by-module/XML/${P}.tar.gz"
 
DEPEND="dev-perl/XML-SAX"
 
SLOT="0"
LICENSE="Artistic"
KEYWORDS="x86 amd64 ppc sparc alpha"
 
mymake="/usr"


and

/usr/portage/dev-perl/Nmap-Scanner/Nmap-Scanner-0.5.ebuild
Code:
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
 
inherit perl-module
 
DESCRIPTION="Perl extension for performing nmap"
HOMEPAGE="http://www.cpan.org/modules/by-module/Nmap/${P}.readme"
SRC_URI="http://www.cpan.org/modules/by-module/Nmap/${P}.tar.gz"
 
DEPEND="dev-perl/XML-SAX
                dev-perl/XML-SAX-PurePerl
                net-analyzer/nmap"
 
SLOT="0"
LICENSE="Artistic"
KEYWORDS="x86 amd64 ppc sparc alpha"
 
mymake="/usr"
 
src_compile() {
        echo n |perl Makefile.PL ${myconf} \
                        PREFIX=${D}/usr
        make || test
}


I don't know if the PurePerl module needs one of those little src_compile() jobs in it, but it seemed to install correctly - most of this was made just by copying & pasting from existing ebuilds. You will also need to run ebuild {filename of ebuild} digest in order to generate all those little Manifest files and whatnot. Enjoy!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum