Changeset View
Changeset View
Standalone View
Standalone View
net/p5-Filesys-SmbClient/files/patch-Makefile.PL
Show All 28 Lines | |||||
- open(FILE,">.c") || warn "Can't create .c for test: $!\n"; | - open(FILE,">.c") || warn "Can't create .c for test: $!\n"; | ||||
- print FILE $server,"\t",$share,"\t",$workgroup,"\t",$user,"\t",$pass; | - print FILE $server,"\t",$share,"\t",$workgroup,"\t",$user,"\t",$pass; | ||||
- close FILE; | - close FILE; | ||||
- } | - } | ||||
- | - | ||||
-# Trace for debug | -# Trace for debug | ||||
-$ans = prompt("Compile module with trace to STDERR ?", "no"); | -$ans = prompt("Compile module with trace to STDERR ?", "no"); | ||||
-if ($ans =~ /^y(es)?$/i) { $define = "-DVERBOSE"; } | -if ($ans =~ /^y(es)?$/i) { $define = "-DVERBOSE"; } | ||||
+my $include = '%%LOCALBASE%%/include/'; | +my $include = '%%SAMBAINCLUDES%%/'; | ||||
+my $lib = '%%LOCALBASE%%/lib/'; | +my $lib = '%%SAMBALIBS%%/'; | ||||
# Create config.h for alloca via configure | # Create config.h for alloca via configure | ||||
-my $prefix = $include; | -my $prefix = $include; | ||||
+my $prefix = '%%LOCALBASE%%'; | +my $prefix = '%%LOCALBASE%%'; | ||||
$prefix=$1 = $1 if $include=~m!(.*)include$!; | $prefix=$1 = $1 if $include=~m!(.*)include$!; | ||||
system("./configure --with-samba-prefix=$prefix") == 0 | system("./configure --with-samba-prefix=$prefix") == 0 | ||||
or die "Can't run configure:$!\n"; | or die "Can't run configure:$!\n"; |