From 82f3f159e27750032f664f9afd947f283593285f Mon Sep 17 00:00:00 2001 From: garga Date: Mon, 6 Feb 2006 11:37:06 +0000 Subject: The Authen::Libwrap module allows you to access the hosts_ctl() function from the popular TCP Wrappers security package. This allows validation of network access from perl programs against the system-wide hosts.allow file. WWW: http://search.cpan.org/dist/Authen-Libwrap PR: ports/92855 Submitted by: Zach Thompson --- security/p5-Authen-Libwrap/Makefile | 25 ++++++++++++++++++ security/p5-Authen-Libwrap/distinfo | 3 +++ security/p5-Authen-Libwrap/files/patch-Build-PL | 34 +++++++++++++++++++++++++ security/p5-Authen-Libwrap/pkg-descr | 6 +++++ security/p5-Authen-Libwrap/pkg-plist | 6 +++++ 5 files changed, 74 insertions(+) create mode 100644 security/p5-Authen-Libwrap/Makefile create mode 100644 security/p5-Authen-Libwrap/distinfo create mode 100644 security/p5-Authen-Libwrap/files/patch-Build-PL create mode 100644 security/p5-Authen-Libwrap/pkg-descr create mode 100644 security/p5-Authen-Libwrap/pkg-plist (limited to 'security/p5-Authen-Libwrap') diff --git a/security/p5-Authen-Libwrap/Makefile b/security/p5-Authen-Libwrap/Makefile new file mode 100644 index 000000000000..02990b40aaee --- /dev/null +++ b/security/p5-Authen-Libwrap/Makefile @@ -0,0 +1,25 @@ +# New ports collection makefile for: security/p5-Authen-Libwrap +# Date created: 05 February 2006 +# Whom: Zach Thompson +# +# $FreeBSD$ +# + +PORTNAME= Authen-Libwrap +PORTVERSION= 0.20 +CATEGORIES= security perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= Authen +PKGNAMEPREFIX= p5- + +MAINTAINER= hideo@lastamericanempire.com +COMMENT= Authen::Libwrap - access to TCP Wrappers library + +BUILD_DEPENDS= ${SITE_PERL}/Module/Build.pm:${PORTSDIR}/devel/p5-Module-Build +RUN_DEPENDS= ${BUILD_DEPENDS} + +PERL_MODBUILD= yes + +MAN3= Authen::Libwrap.3 + +.include diff --git a/security/p5-Authen-Libwrap/distinfo b/security/p5-Authen-Libwrap/distinfo new file mode 100644 index 000000000000..763c82d663c9 --- /dev/null +++ b/security/p5-Authen-Libwrap/distinfo @@ -0,0 +1,3 @@ +MD5 (Authen-Libwrap-0.20.tar.gz) = 53ed4e4e362f13e15d646e06c9d62232 +SHA256 (Authen-Libwrap-0.20.tar.gz) = f72b945addce7102a5f2d3483432045a59bbe351e03b955148a0404b42597359 +SIZE (Authen-Libwrap-0.20.tar.gz) = 16810 diff --git a/security/p5-Authen-Libwrap/files/patch-Build-PL b/security/p5-Authen-Libwrap/files/patch-Build-PL new file mode 100644 index 000000000000..62948a48334e --- /dev/null +++ b/security/p5-Authen-Libwrap/files/patch-Build-PL @@ -0,0 +1,34 @@ +Patch to automate linking against libwrap + +--- Build.PL Tue Dec 16 20:39:54 2003 ++++ Build.PL Sun Feb 5 11:22:27 2006 +@@ -28,13 +28,8 @@ + for my $libname( qw|libwrap.so libwrap.a| ) { + my $candidate = File::Spec->catfile( $prefix, 'lib', $libname ); + if( -e $candidate && -f _ && -r _ ) { +- my $y_n = Module::Build->y_n( +- "do you want to link against $candidate?", "y" +- ); +- if( $y_n ) { +- $lib_dir = File::Spec->catdir( $prefix, 'lib' ); +- last; +- } ++ $lib_dir = File::Spec->catdir( $prefix, 'lib' ); ++ last; + } + } + } +@@ -43,13 +38,8 @@ + for my $prefix( @prefixes ) { + my $candidate = File::Spec->catfile( $prefix, 'include', 'tcpd.h' ); + if( -e $candidate && -f _ && -r _ ) { +- my $y_n = Module::Build->y_n( +- "do you want to use $candidate as your header?", "y" +- ); +- if( $y_n ) { + $inc_dir = File::Spec->catdir( $prefix, 'include' ); + last; +- } + } + } + diff --git a/security/p5-Authen-Libwrap/pkg-descr b/security/p5-Authen-Libwrap/pkg-descr new file mode 100644 index 000000000000..8d3c2bc4a753 --- /dev/null +++ b/security/p5-Authen-Libwrap/pkg-descr @@ -0,0 +1,6 @@ +The Authen::Libwrap module allows you to access the hosts_ctl() +function from the popular TCP Wrappers security package. This +allows validation of network access from perl programs against +the system-wide hosts.allow file. + +WWW: http://search.cpan.org/dist/Authen-Libwrap diff --git a/security/p5-Authen-Libwrap/pkg-plist b/security/p5-Authen-Libwrap/pkg-plist new file mode 100644 index 000000000000..256c93dfd96d --- /dev/null +++ b/security/p5-Authen-Libwrap/pkg-plist @@ -0,0 +1,6 @@ +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Authen/Libwrap/Libwrap.bs +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Authen/Libwrap/Libwrap.so +%%SITE_PERL%%/%%PERL_ARCH%%/Authen/Libwrap.pm +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Authen/Libwrap +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Authen +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Authen -- cgit