# $Header: /magellan-cvs/smage/perl-libnet/perl-libnet-1.22-r2.smage2,v 1.1 2008/03/24 00:47:33 niro Exp $ PNAME="perl-libnet" PVER="1.22" PBUILD="r2" PCATEGORIE="dev-perl" STATE="unstable" DESCRIPTION="libnet is a collection of perl5 modules which all related to network programming." HOMEPAGE="http://search.cpan.org/~gbarr/" DEPEND=">= dev-lang/perl-5.10 >= dev-perl/authen-sasl-2" SRCFILE="${PNAME/perl-/}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME/perl-/}-${PVER}" sminclude perl SRC_URI=( http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd_perl ${PNAME/perl-/} gz" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # create libnet configuration cat > ${SRCDIR}/libnet.cfg << EOF { 'ftp_int_passive' => 0, 'snpp_hosts' => [], 'inet_domain' => undef, 'test_exist' => 1, 'ftp_testhost' => undef, 'daytime_hosts' => [], 'ph_hosts' => [], 'time_hosts' => [], 'smtp_hosts' => [], 'test_hosts' => 1, 'nntp_hosts' => [], 'pop3_hosts' => [], } EOF }