Re: POM "--without-kernel" & "--without-iptables"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Denis Kaganovich wrote:

I recommend to add "--without-kernel" & "--without-iptables" into POM "runme". (I needs it for Gentoo separated package installations, but there are good options anymore)

There is my solution:

Sorry, no suitable topic in bugzilla. Now clean:

--- Netfilter_POM.pm
+++ Netfilter_POM.pm
@@ -667,2 +667,3 @@

+	return 1 if(!defined($self->{projects}->{$proj}->{PATH}));
 	$projpath = $copy || $self->{projects}->{$proj}->{PATH};
@@ -1045,2 +1046,3 @@
 	foreach $proj (keys %{$self->{projects}}) {
+		next if (!defined($paths->{$proj}));
 		foreach $branch (keys %{$self->{config}->{$proj}->{branches}}) {
--- runme
+++ runme
@@ -91,2 +91,4 @@
 my $opt_download;
+my $opt_nokernel;
+my $opt_noipt;

@@ -101,2 +103,4 @@
 			"download" => \$opt_download,
+			"without-kernel" => \$opt_nokernel,
+			"without-iptables" => \$opt_noipt,
 			"kernel-path=s" => \$opt_path,
@@ -229,2 +233,3 @@
 	  'check'	=> 'Makefile',
+	  'without'	=> $opt_nokernel,
 	},
@@ -236,2 +241,3 @@
 	  'check'	=> 'Makefile',
+	  'without'	=> $opt_noipt,
 	}
@@ -240,2 +246,6 @@
 foreach my $path (@paths) {
+	if($path->{without}){
+	    $paths{$path->{project}}=undef;
+	    next;
+	}
 	if (!defined($ENV{$path->{env}}) && !$path->{opt}) {
@@ -497,2 +507,10 @@

+=item B<--without-kernel>
+
+don't patch kernel
+
+=item B<--without-iptables>
+
+don't patch iptables
+
 =item B<--verbose>





--
WBR,
Denis Kaganovich,  mahatma@xxxxx  http://mahatma.bspu.unibel.by


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux