c0184bdf7d
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>
34 lines
1 KiB
Text
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;
|
|
- }
|
|
}
|
|
}
|
|
|