Revision: 3962
          http://gar.svn.sourceforge.net/gar/?rev=3962&view=rev
Author:   hson
Date:     2009-03-26 06:11:36 +0000 (Thu, 26 Mar 2009)
Log Message:
-----------
Patch perl makefiles for build to work on systems with older netsnmp installed
Include older libraries for backward compatibility
Build python modules

Modified Paths:
--------------
    csw/mgar/pkg/netsnmp/trunk/Makefile
    csw/mgar/pkg/netsnmp/trunk/checksums

Added Paths:
-----------
    csw/mgar/pkg/netsnmp/trunk/files/old_libs_i.tar.gz
    csw/mgar/pkg/netsnmp/trunk/files/old_libs_s.tar.gz
    csw/mgar/pkg/netsnmp/trunk/files/perl_makefiles.diff

Modified: csw/mgar/pkg/netsnmp/trunk/Makefile
===================================================================
--- csw/mgar/pkg/netsnmp/trunk/Makefile 2009-03-25 22:08:30 UTC (rev 3961)
+++ csw/mgar/pkg/netsnmp/trunk/Makefile 2009-03-26 06:11:36 UTC (rev 3962)
@@ -36,8 +36,30 @@
 CONFIGURE_ARGS += '--with-libwrap=/opt/csw/lib' 
 CONFIGURE_ARGS += '--enable-ipv6' 
 CONFIGURE_ARGS += '--with-transports=UDP TCP Unix' 
-CONFIGURE_ARGS += '--with-perl-mod' 
+CONFIGURE_ARGS += '--with-perl-modules' 
+CONFIGURE_ARGS += '--with-python-modules'
 
+PATCHFILES = perl_makefiles.diff
+
+LD_OPTIONS =
+export LD_OPTIONS
+
 EXTRA_MERGE_EXCLUDE_FILES = .*/perllocal.pod
 
 include gar/category.mk
+
+post-install-isa-sparcv8:
+       @( cd $(INSTALLISADIR)$(libdir) ; gzip -dc 
$(DESTDIR)/../../$(FILEDIR)/old_libs_s.tar.gz |tar xf -)
+       @ln -s libnetsnmp.so.10.0.1 $(INSTALLISADIR)$(libdir)/libnetsnmp.so.10
+       @ln -s libnetsnmpagent.so.10.0.1 
$(INSTALLISADIR)$(libdir)/libnetsnmpagent.so.10
+       @ln -s libnetsnmphelpers.so.10.0.1 
$(INSTALLISADIR)$(libdir)/libnetsnmphelpers.so.10
+       @ln -s libnetsnmpmibs.so.10.0.1 
$(INSTALLISADIR)$(libdir)/libnetsnmpmibs.so.10
+       @ln -s libnetsnmptrapd.so.10.0.1 
$(INSTALLISADIR)$(libdir)/libnetsnmptrapd.so.10
+
+post-install-isa-i386:
+       @( cd $(INSTALLISADIR)$(libdir) ; gzip -dc 
$(DESTDIR)/../../$(FILEDIR)/old_libs_i.tar.gz |tar xf -)
+       @ln -s libnetsnmp.so.10.0.1 $(INSTALLISADIR)$(libdir)/libnetsnmp.so.10
+       @ln -s libnetsnmpagent.so.10.0.1 
$(INSTALLISADIR)$(libdir)/libnetsnmpagent.so.10
+       @ln -s libnetsnmphelpers.so.10.0.1 
$(INSTALLISADIR)$(libdir)/libnetsnmphelpers.so.10
+       @ln -s libnetsnmpmibs.so.10.0.1 
$(INSTALLISADIR)$(libdir)/libnetsnmpmibs.so.10
+       @ln -s libnetsnmptrapd.so.10.0.1 
$(INSTALLISADIR)$(libdir)/libnetsnmptrapd.so.10

Modified: csw/mgar/pkg/netsnmp/trunk/checksums
===================================================================
--- csw/mgar/pkg/netsnmp/trunk/checksums        2009-03-25 22:08:30 UTC (rev 
3961)
+++ csw/mgar/pkg/netsnmp/trunk/checksums        2009-03-26 06:11:36 UTC (rev 
3962)
@@ -1 +1,2 @@
 984932520143f0c8bf7b7ce1fc9e1da1  download/net-snmp-5.4.2.1.tar.gz
+01897895a960cd9cafbf2457c1aff065  download/perl_makefiles.diff

Added: csw/mgar/pkg/netsnmp/trunk/files/old_libs_i.tar.gz
===================================================================
(Binary files differ)


Property changes on: csw/mgar/pkg/netsnmp/trunk/files/old_libs_i.tar.gz
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: csw/mgar/pkg/netsnmp/trunk/files/old_libs_s.tar.gz
===================================================================
(Binary files differ)


Property changes on: csw/mgar/pkg/netsnmp/trunk/files/old_libs_s.tar.gz
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: csw/mgar/pkg/netsnmp/trunk/files/perl_makefiles.diff
===================================================================
--- csw/mgar/pkg/netsnmp/trunk/files/perl_makefiles.diff                        
        (rev 0)
+++ csw/mgar/pkg/netsnmp/trunk/files/perl_makefiles.diff        2009-03-26 
06:11:36 UTC (rev 3962)
@@ -0,0 +1,84 @@
+diff -ru ../build-global/net-snmp-5.4.2.1/perl/ASN/Makefile.PL 
net-snmp-5.4.2.1/perl/ASN/Makefile.PL
+--- ../build-global/net-snmp-5.4.2.1/perl/ASN/Makefile.PL      2007-05-31 
00:53:09.000000000 +0200
++++ net-snmp-5.4.2.1/perl/ASN/Makefile.PL      2009-03-25 07:57:32.952968532 
+0100
+@@ -83,6 +83,7 @@
+       $lib_version = `$opts->{'nsconfig'} --version`;
+       
+       if (lc($opts->{'insource'}) eq "true") {
++        $Params{'LDDLFLAGS'} = "-L../../snmplib/.libs -L../../snmplib/ " . 
"$Config{lddlflags} " . `$opts->{'nsconfig'} --ldflags`;
+       $Params{'LIBS'} = "-L../../snmplib/.libs -L../../snmplib/ " . 
$Params{'LIBS'};
+       $Params{'CCFLAGS'} = "-I../../include " . $Params{'CCFLAGS'};
+       }
+diff -ru ../build-global/net-snmp-5.4.2.1/perl/OID/Makefile.PL 
net-snmp-5.4.2.1/perl/OID/Makefile.PL
+--- ../build-global/net-snmp-5.4.2.1/perl/OID/Makefile.PL      2007-05-31 
00:53:09.000000000 +0200
++++ net-snmp-5.4.2.1/perl/OID/Makefile.PL      2009-03-25 07:56:23.529120339 
+0100
+@@ -81,6 +81,7 @@
+       $Params{'CCFLAGS'} .= " " . $Config{'ccflags'};
+         $lib_version = `$opts->{'nsconfig'} --version`;
+       if (lc($opts->{'insource'}) eq "true") {
++          $Params{'LDDLFLAGS'} = "-L../../snmplib/.libs -L../../snmplib/ " . 
"$Config{lddlflags} " . `$opts->{'nsconfig'} --ldflags`;
+           $Params{'LIBS'} = "-L../../snmplib/.libs -L../../snmplib/ " . 
$Params{'LIBS'};
+           $Params{'CCFLAGS'} = "-I../../include " . $Params{'CCFLAGS'};
+ #     } else {
+diff -ru ../build-global/net-snmp-5.4.2.1/perl/SNMP/Makefile.PL 
net-snmp-5.4.2.1/perl/SNMP/Makefile.PL
+--- ../build-global/net-snmp-5.4.2.1/perl/SNMP/Makefile.PL     2007-05-31 
00:53:09.000000000 +0200
++++ net-snmp-5.4.2.1/perl/SNMP/Makefile.PL     2009-03-25 07:55:07.873218952 
+0100
+@@ -93,6 +93,7 @@
+       }
+         $lib_version = `$opts->{'nsconfig'} --version`;
+       if (lc($opts->{'insource'}) eq "true") {
++          $Params{'LDDLFLAGS'} = "-L../../snmplib/.libs -L../../snmplib/ " . 
"$Config{lddlflags} " . `$opts->{'nsconfig'} --ldflags`;
+           $Params{'LIBS'} = "-L../../snmplib/.libs -L../../snmplib/ " . 
$Params{'LIBS'};
+           $Params{'CCFLAGS'} = "-I../../include " . $Params{'CCFLAGS'};
+ #     } else {
+diff -ru ../build-global/net-snmp-5.4.2.1/perl/TrapReceiver/Makefile.PL 
net-snmp-5.4.2.1/perl/TrapReceiver/Makefile.PL
+--- ../build-global/net-snmp-5.4.2.1/perl/TrapReceiver/Makefile.PL     
2007-06-18 16:10:08.000000000 +0200
++++ net-snmp-5.4.2.1/perl/TrapReceiver/Makefile.PL     2009-03-25 
07:56:01.868833181 +0100
+@@ -119,6 +119,7 @@
+       }
+ 
+       if (lc($opts->{'insource'}) eq "true") {
++          $Params{'LDDLFLAGS'} = "-L../../apps/.libs -L../../apps 
-L../../agent/.libs -L../../agent -L../../agent/helpers/.libs 
-L../../agent/helpers -L../../snmplib/.libs -L../../snmplib " . 
"$Config{lddlflags} " . `$opts->{'nsconfig'} --ldflags`;
+             $Params{'LIBS'} = "-L../../apps/.libs -L../../apps 
-L../../agent/.libs -L../../agent -L../../agent/helpers/.libs 
-L../../agent/helpers -L../../snmplib/.libs -L../../snmplib " . $Params{'LIBS'};
+           $Params{'CCFLAGS'} = "-I../../include " . $Params{'CCFLAGS'};
+       } else {
+diff -ru ../build-global/net-snmp-5.4.2.1/perl/agent/Makefile.PL 
net-snmp-5.4.2.1/perl/agent/Makefile.PL
+--- ../build-global/net-snmp-5.4.2.1/perl/agent/Makefile.PL    2007-05-31 
00:53:09.000000000 +0200
++++ net-snmp-5.4.2.1/perl/agent/Makefile.PL    2009-03-25 07:57:09.785808710 
+0100
+@@ -87,6 +87,7 @@
+       $Params{'CCFLAGS'} .= " " . $Config{'ccflags'};
+         $lib_version = `$opts->{'nsconfig'} --version`;
+       if (lc($opts->{'insource'}) eq "true") {
++          $Params{'LDDLFLAGS'} = "-L../../snmplib/.libs -L../../snmplib/ 
-L../../agent/.libs -L../../agent/ -L../../agent/helpers/.libs 
-L../../agent/helpers/ " . "$Config{lddlflags} " . `$opts->{'nsconfig'} 
--ldflags`;
+           $Params{'LIBS'} = "-L../../snmplib/.libs -L../../snmplib/ 
-L../../agent/.libs -L../../agent/ -L../../agent/helpers/.libs 
-L../../agent/helpers/ " . $Params{'LIBS'};
+           $Params{'CCFLAGS'} = "-I../../include " . $Params{'CCFLAGS'};
+ #     } else {
+diff -ru ../build-global/net-snmp-5.4.2.1/perl/default_store/Makefile.PL 
net-snmp-5.4.2.1/perl/default_store/Makefile.PL
+--- ../build-global/net-snmp-5.4.2.1/perl/default_store/Makefile.PL    
2007-05-31 00:53:09.000000000 +0200
++++ net-snmp-5.4.2.1/perl/default_store/Makefile.PL    2009-03-25 
07:51:02.425647655 +0100
+@@ -76,6 +76,7 @@
+       $Params{'CCFLAGS'} .= " " . $Config{'ccflags'};
+         $lib_version = `$opts->{'nsconfig'} --version`;
+       if (lc($opts->{'insource'}) eq "true") {
++          $Params{'LDDLFLAGS'} = "-L../../snmplib/.libs -L../../snmplib/ " . 
"$Config{lddlflags} " . `$opts->{'nsconfig'} --ldflags`;
+           $Params{'LIBS'} = "-L../../snmplib/.libs -L../../snmplib/ " . 
$Params{'LIBS'};
+           $Params{'CCFLAGS'} = "-I../../include " . $Params{'CCFLAGS'};
+       }
+--- ../build-global/net-snmp-5.4.2.1/perl/agent/default_store/Makefile.PL      
2007-05-25 01:15:36.000000000 +0200
++++ net-snmp-5.4.2.1/perl/agent/default_store/Makefile.PL      2009-03-25 
10:56:34.665497642 +0100
+@@ -69,6 +69,7 @@
+     }
+     else {
+       $opts = NetSNMPGetOpts("../../");
++      $Params{'LDDLFLAGS'} = "$Config{lddlflags} " . `$opts->{'nsconfig'} 
--ldflags`;
+       $Params{'LIBS'}    = `$opts->{'nsconfig'} --libs`;
+       chomp($Params{'LIBS'});
+       $Params{'CCFLAGS'} = `$opts->{'nsconfig'} --cflags`;
+@@ -76,6 +77,7 @@
+       $Params{'CCFLAGS'} .= " " . $Config{'ccflags'};
+         $lib_version = `$opts->{'nsconfig'} --version`;
+       if ($opts->{'insource'} eq "true") {
++          $Params{'LDDLFLAGS'} = "-L../../../snmplib/.libs 
-L../../../snmplib/ " . $Params{'LDDLFLAGS'};
+           $Params{'LIBS'} = "-L../../../snmplib/.libs -L../../../snmplib/ " . 
$Params{'LIBS'};
+           $Params{'CCFLAGS'} = "-I../../../include " . $Params{'CCFLAGS'};
+       }


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.
_______________________________________________
devel mailing list
devel@lists.opencsw.org
https://lists.opencsw.org/mailman/listinfo/devel

Reply via email to