Update of /cvsroot/fink/experimental/thesin/finkinfo/test
In directory sc8-pr-cvs1:/tmp/cvs-serv18527

Added Files:
        net-snmp-ssl.info net-snmp-ssl.patch 
Log Message:
Fixed net-snmp for darwin7 and ssl 097

--- NEW FILE: net-snmp-ssl.info ---
Package: net-snmp-ssl
Version: 5.0.7
Revision: 1.1
Maintainer: Jeremy Higgs <[EMAIL PROTECTED]>
Depends: dlcompat, daemonic, openssl | openssl097, %n-shlibs
BuildDepends: gawk, openssl-dev | openssl097-dev, gdbm, gmp, expat, tcltk-dev, cctools 
(>= 446-1), fink (>= 0.12.0-1)
Conflicts: net-snmp, ucd-snmp
Replaces: net-snmp, ucd-snmp
Source: mirror:sourceforge:net-snmp/net-snmp-%v.tar.gz
Source-MD5: e511d2c8d540cfde0f1a7afb1a730ced
Patch: %n.patch
PatchScript: <<
### Fix for openssl 0.9.7 on 10.3
perl -pi -e 's,#define DES_key_sched       des_key_sched,#define DES_key_sched       
_ossl_old_des_key_sched,g' snmplib/scapi.c
perl -pi -e 's,#define DES_ncbc_encrypt    des_ncbc_encrypt,#define DES_ncbc_encrypt   
 _ossl_old_des_ncbc_encrypt,g' snmplib/scapi.c
perl -pi -e 's,#define DES_cbc_encrypt    des_cbc_encrypt,#define DES_cbc_encrypt    
_ossl_old_des_cbc_encrypt,g' snmplib/scapi.c
<<
ConfigureParams: --mandir='${prefix}/share/man' --with-logfile=%p/var/log/snmpd.log 
--with-persistent-directory=%p/var/%n --with-default-snmp-version="3" --enable-shared 
--with-perl-modules --with-sys-location="Fink Build" --with-sys-contact="[EMAIL 
PROTECTED]"
InstallScript: <<
make install prefix=%i libdir=%i/lib bindir=%i/bin sbindir=%i/sbin
install -d -m 755 %i/var/log
<<
DocFiles: <<
AGENT.txt COPYING ChangeLog CodingStyle EXAMPLE.conf.def FAQ NEWS PORTING README 
README.agentx README.krb5 README.snmpv3 README.thread TODO
<<
Splitoff: <<
  Package: %N-shlibs
  Depends: dlcompat
  BuildDepends: gawk, cctools (>= 446), fink (>= 0.12.0-1)
  Replaces: %N (<< 5.0-1), net-snmp-shlibs
  Conflicts: net-snmp-shlibs
  Files: lib/libnetsnmp*.5*.dylib
  Shlibs: <<
    %p/lib/libnetsnmp.5.dylib %n (>= %v-%r)
    %p/lib/libnetsnmpagent.5.dylib %n (>= %v-%r)
    %p/lib/libnetsnmphelpers.5.dylib %n (>= %v-%r)
    %p/lib/libnetsnmpmibs.5.dylib %n (>= %v-%r)
  <<
  DocFiles: AGENT.txt COPYING ChangeLog CodingStyle EXAMPLE.conf.def FAQ NEWS PORTING 
README README.agentx README.krb5 README.snmpv3 README.thread TODO
<<
SplitOff2: <<
  Package: %N-dev
  Depends: dlcompat
  BuildDepends: gawk, cctools (>= 446), fink (>= 0.12.0-1)
  Replaces: %N (<< 5.0-1), net-snmp-dev
  Conflicts: net-snmp-dev
  Files: include/net-snmp
  DocFiles: AGENT.txt COPYING ChangeLog CodingStyle EXAMPLE.conf.def FAQ NEWS PORTING 
README README.agentx README.krb5 README.snmpv3 README.thread TODO
<<
SetCPPFLAGS: -no-cpp-precomp -I/Developer/SDKs/MacOSX10.3.0.sdk/usr/include
PreRmScript: <<
if [ $1 != "upgrade" ]; then
        daemonic disable net-snmp-ssl
fi
<<
PostRmScript: <<
if [ $1 = "remove" ]; then
        rm -rf %p/share/snmp
        rm -rf %p/var/%n
fi
<<
DaemonicFile: <<
<service>
<description>An SNMP daemon to respond to SNMP request packets.</description>
<message>snmpd</message>

<daemon name="snmpd">
<executable checkexit="true">%p/sbin/snmpd</executable>

</daemon>

</service>
<<
Description: SNMP tools and libraries (OpenSSL enabled)
DescDetail: <<
The net-snmp package, previously known as ucd-snmp, provides tools 
and libraries relating to SNMP. It provides SNMP libraries, tools 
to request and set information, an SNMP daemon, among other features.
<<
DescPackaging: <<
Customised install script to put files in correct directories.
OpenSSL authentication is enabled in this version.
Logfile set to PREFIX/var/log/snmpd.log
Persistent directory set to PREFIX/var/net-snmp
Default snmp version set to 3, but can be overridden using the '-v' flag for
the command tools, or alternatively using the 'defVersion' option in the
snmp.conf file.
<<
DescPort: <<
Added '-no-cpp-precomp' flag to Makefile.in file to compile properly.
Added '-flat_namespace' to configure script to compile properly, and fixed
the bash versioning bug.
<<
DescUsage: <<
In order to run net-snmp correctly, the community name needs to be set. The
easiest way to set this is to run the 'snmpconf' program, allowing you to
setup the various net-snmp configuration files.
<<
License: BSD
Homepage: http://net-snmp.sourceforge.net/

--- NEW FILE: net-snmp-ssl.patch ---
diff -ru net-snmp-5.0.7/Makefile.in net-snmp-5.0.7-patched/Makefile.in
--- net-snmp-5.0.7/Makefile.in  Tue Jan  7 03:16:00 2003
+++ net-snmp-5.0.7-patched/Makefile.in  Fri Jan 17 15:54:16 2003
@@ -53,7 +53,7 @@
 # local build rules
 #
 sedscript: sedscript.in include/net-snmp/net-snmp-config.h 
$(srcdir)/agent/mibgroup/mibdefs.h
-       $(CPP) -DPREFIX=$(prefix) -DLIBDIR=$(libdir) -DDATADIR=$(datadir) 
$(srcdir)/sedscript.in | egrep '^s[/#]' | sed 's/REMOVEME//g;s# */#/#g;s/ *#/#/g;s#/ 
*#/#g;s/# g/#g/;' > sedscript
+       $(CPP) -no-cpp-precomp -DPREFIX=$(prefix) -DLIBDIR=$(libdir) 
-DDATADIR=$(datadir) $(srcdir)/sedscript.in | egrep '^s[/#]' | sed 's/REMOVEME//g;s# 
*/#/#g;s/ *#/#/g;s#/ *#/#g;s/# g/#g/;' > sedscript
 
 EXAMPLE.conf: sedscript EXAMPLE.conf.def
        $(SED) -f sedscript $(srcdir)/EXAMPLE.conf.def > EXAMPLE.conf
diff -ru net-snmp-5.0.7/agent/mibgroup/mibII/tcp.c 
net-snmp-5.0.7-patched/agent/mibgroup/mibII/tcp.c
--- net-snmp-5.0.7/agent/mibgroup/mibII/tcp.c   Sat May 18 02:05:13 2002
+++ net-snmp-5.0.7-patched/agent/mibgroup/mibII/tcp.c   Sun Jan 19 16:05:39 2003
@@ -101,6 +101,7 @@
 #include <netinet/tcp.h>
 #endif
 #if HAVE_NETINET_TCPIP_H
+#include <netinet/tcp_var.h>
 #include <netinet/tcpip.h>
 #endif
 #if HAVE_NETINET_TCP_TIMER_H
diff -ru net-snmp-5.0.7/configure net-snmp-5.0.7-patched/configure
--- net-snmp-5.0.7/configure    Tue Jan 14 13:56:39 2003
+++ net-snmp-5.0.7-patched/configure    Fri Jan 17 15:56:07 2003
@@ -4269,11 +4269,11 @@
     ;;
 
   darwin* | rhapsody*)
-    allow_undefined_flag='-undefined suppress'
+    allow_undefined_flag='-flat_namespace -undefined suppress'
     # FIXME: Relying on posixy $() will cause problems for
     #        cross-compilation, but unfortunately the echo tests do not
     #        yet detect zsh echo's removal of \ escapes.
-    archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) 
$allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname 
$(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
+    archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) 
$allow_undefined_flag -o $lib $libobjs $deplibs$linkopts $(test .$module != .yes && 
echo -install_name $rpath/$soname $tmp_verstring)'
     # We need to add '_' to the symbols in $export_symbols first
     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
     hardcode_direct=yes
diff -ru net-snmp-5.0.7/ltmain.sh net-snmp-5.0.7-patched/ltmain.sh
--- net-snmp-5.0.7/ltmain.sh    Sat Apr 20 17:29:58 2002
+++ net-snmp-5.0.7-patched/ltmain.sh    Fri Jan 17 15:57:41 2003
@@ -2858,6 +2858,11 @@
        if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
          eval cmds=\"$archive_expsym_cmds\"
        else
+         if test "x$verstring" = "x0.0"; then
+            tmp_verstring=
+          else
+            tmp_verstring="$verstring"
+          fi
          eval cmds=\"$archive_cmds\"
        fi
        IFS="${IFS=     }"; save_ifs="$IFS"; IFS='~'




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to