freebsd-ports/security/p5-Authen-Libwrap/files/patch-Build-PL
Renato Botelho c0184bdf7d 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 <hideo@lastamericanempire.com>
2006-02-06 11:37:06 +00:00

34 lines
1 KiB
Text

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;
- }
}
}