📄 01_net-snmp_build_support.dpatch
字号:
#! /bin/sh /usr/share/dpatch/dpatch-run## 01_NET-SNMP_build_support.dpatch by Paul Hampson <Paul.Hampson@anu.edu.au>#### All lines beginning with `## DP:' are a description of the patch.## DP: Support building against net-snmp in ucd-snmp compatibility mode@DPATCH@diff -urNad --exclude=CVS --exclude=.svn ./aclocal.m4 /tmp/dpep-work.BoqXCd/release_1_0/aclocal.m4--- ./aclocal.m4 2005-08-21 00:39:46.000000000 +1000+++ /tmp/dpep-work.BoqXCd/release_1_0/aclocal.m4 2005-08-23 17:08:08.000000000 +1000@@ -3770,6 +3770,7 @@ #ifdef HAVE_UNISTD_H #include <unistd.h> #endif+#include <ucd-snmp/ucd-snmp-config.h> #include <ucd-snmp/asn1.h> #include <ucd-snmp/snmp.h> #include <ucd-snmp/snmp_impl.h>],@@ -3800,6 +3801,7 @@ #ifdef HAVE_UNISTD_H #include <unistd.h> #endif+#include <ucd-snmp/ucd-snmp-config.h> #include <ucd-snmp/asn1.h> #include <ucd-snmp/snmp.h> #include <ucd-snmp/snmp_impl.h>],diff -urNad --exclude=CVS --exclude=.svn ./configure /tmp/dpep-work.BoqXCd/release_1_0/configure--- ./configure 2005-08-23 17:04:07.000000000 +1000+++ /tmp/dpep-work.BoqXCd/release_1_0/configure 2005-08-23 17:08:12.000000000 +1000@@ -8441,6 +8441,7 @@ #ifdef HAVE_UNISTD_H #include <unistd.h> #endif+#include <ucd-snmp/ucd-snmp-config.h> #include <ucd-snmp/asn1.h> #include <ucd-snmp/snmp.h> #include <ucd-snmp/snmp_impl.h>@@ -8448,7 +8449,7 @@ int a = 1; ; return 0; } EOF-if { (eval echo configure:8452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then+if { (eval echo configure:8453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* SNMP_INCLUDE="";ucdsnmp=yes else@@ -8464,7 +8465,7 @@ for try in /usr/include /usr/local/include $with_snmp_include_dir; do CFLAGS="$old_CFLAGS -I$try" cat > conftest.$ac_ext <<EOF-#line 8468 "configure"+#line 8469 "configure" #include "confdefs.h" #ifdef HAVE_SYS_TYPES_H@@ -8482,6 +8483,7 @@ #ifdef HAVE_UNISTD_H #include <unistd.h> #endif+#include <ucd-snmp/ucd-snmp-config.h> #include <ucd-snmp/asn1.h> #include <ucd-snmp/snmp.h> #include <ucd-snmp/snmp_impl.h>@@ -8489,7 +8491,7 @@ int a = 1; ; return 0; } EOF-if { (eval echo configure:8493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then+if { (eval echo configure:8495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* SNMP_INCLUDE="-I$try";ucdsnmp=yes else@@ -8511,7 +8513,7 @@ for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do CFLAGS="$old_CFLAGS -I$try" cat > conftest.$ac_ext <<EOF-#line 8515 "configure"+#line 8517 "configure" #include "confdefs.h" #ifdef HAVE_SYS_TYPES_H@@ -8536,7 +8538,7 @@ int a = 1; ; return 0; } EOF-if { (eval echo configure:8540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then+if { (eval echo configure:8542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* SNMP_INCLUDE="";ucdsnmp=no else@@ -8558,7 +8560,7 @@ for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do CFLAGS="$old_CFLAGS -I$try" cat > conftest.$ac_ext <<EOF-#line 8562 "configure"+#line 8564 "configure" #include "confdefs.h" #ifdef HAVE_SYS_TYPES_H@@ -8583,7 +8585,7 @@ int a = 1; ; return 0; } EOF-if { (eval echo configure:8587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then+if { (eval echo configure:8589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* SNMP_INCLUDE="-I$try";ucdsnmp=no else@@ -8617,19 +8619,19 @@ fi echo $ac_n "checking for snmp_build_var_op in -lsnmp""... $ac_c" 1>&6-echo "configure:8621: checking for snmp_build_var_op in -lsnmp" >&5+echo "configure:8623: checking for snmp_build_var_op in -lsnmp" >&5 old_LIBS="$LIBS" LIBS="$old_LIBS -lsnmp" cat > conftest.$ac_ext <<EOF-#line 8626 "configure"+#line 8628 "configure" #include "confdefs.h" extern char snmp_build_var_op(); int main() { snmp_build_var_op() ; return 0; } EOF-if { (eval echo configure:8633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then+if { (eval echo configure:8635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* SNMP_LIBS="-lsnmp" else@@ -8644,14 +8646,14 @@ for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do LIBS="$old_LIBS -L$try -lsnmp" cat > conftest.$ac_ext <<EOF-#line 8648 "configure"+#line 8650 "configure" #include "confdefs.h" extern char snmp_build_var_op(); int main() { snmp_build_var_op() ; return 0; } EOF-if { (eval echo configure:8655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then+if { (eval echo configure:8657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* SNMP_LIBS="-L$try -lsnmp" else@@ -8666,14 +8668,14 @@ fi LIBS="$old_LIBS -L$try -lsnmp -lcrypto" cat > conftest.$ac_ext <<EOF-#line 8670 "configure"+#line 8672 "configure" #include "confdefs.h" extern char snmp_build_var_op(); int main() { snmp_build_var_op() ; return 0; } EOF-if { (eval echo configure:8677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then+if { (eval echo configure:8679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* SNMP_LIBS="-L$try -lsnmp -lcrypto" else@@ -8688,14 +8690,14 @@ fi LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat" cat > conftest.$ac_ext <<EOF-#line 8692 "configure"+#line 8694 "configure" #include "confdefs.h" extern char snmp_build_var_op(); int main() { snmp_build_var_op() ; return 0; } EOF-if { (eval echo configure:8699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then+if { (eval echo configure:8701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat" else@@ -8733,7 +8735,7 @@ gethostbyaddrrstyle="" echo $ac_n "checking gethostbyaddr_r() syntax""... $ac_c" 1>&6-echo "configure:8737: checking gethostbyaddr_r() syntax" >&5+echo "configure:8739: checking gethostbyaddr_r() syntax" >&5 case "$host" in *-freebsd*) cat >> confdefs.h <<\EOF@@ -8746,7 +8748,7 @@ esac if test "x$gethostbyaddrrstyle" = "x"; then cat > conftest.$ac_ext <<EOF-#line 8750 "configure"+#line 8752 "configure" #include "confdefs.h" #include <stdio.h>@@ -8756,7 +8758,7 @@ gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL) ; return 0; } EOF-if { (eval echo configure:8760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then+if { (eval echo configure:8762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cat >> confdefs.h <<\EOF@@ -8773,7 +8775,7 @@ fi if test "x$gethostbyaddrrstyle" = "x"; then cat > conftest.$ac_ext <<EOF-#line 8777 "configure"+#line 8779 "configure" #include "confdefs.h" #include <stdio.h>@@ -8783,7 +8785,7 @@ gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL) ; return 0; } EOF-if { (eval echo configure:8787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then+if { (eval echo configure:8789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cat >> confdefs.h <<\EOF@@ -8800,7 +8802,7 @@ fi if test "x$gethostbyaddrrstyle" = "x"; then cat > conftest.$ac_ext <<EOF-#line 8804 "configure"+#line 8806 "configure" #include "confdefs.h" #include <stdio.h>@@ -8810,7 +8812,7 @@ gethostbyaddr(NULL, 0, 0) ; return 0; } EOF-if { (eval echo configure:8814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then+if { (eval echo configure:8816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cat >> confdefs.h <<\EOF@@ -8838,9 +8840,9 @@ gethostbynamerstyle="" echo $ac_n "checking gethostbyname_r() syntax""... $ac_c" 1>&6-echo "configure:8842: checking gethostbyname_r() syntax" >&5+echo "configure:8844: checking gethostbyname_r() syntax" >&5 cat > conftest.$ac_ext <<EOF-#line 8844 "configure"+#line 8846 "configure" #include "confdefs.h" #include <stdio.h>@@ -8850,7 +8852,7 @@ gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL) ; return 0; } EOF-if { (eval echo configure:8854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then+if { (eval echo configure:8856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cat >> confdefs.h <<\EOF@@ -8866,7 +8868,7 @@ rm -f conftest* if test "x$gethostbynamerstyle" = "x"; then cat > conftest.$ac_ext <<EOF-#line 8870 "configure"+#line 8872 "configure" #include "confdefs.h" #include <stdio.h>@@ -8876,7 +8878,7 @@ gethostbyname_r(NULL, NULL, NULL, 0, NULL) ; return 0; } EOF-if { (eval echo configure:8880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then+if { (eval echo configure:8882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cat >> confdefs.h <<\EOF@@ -8893,7 +8895,7 @@ fi if test "x$gethostbynamerstyle" = "x"; then cat > conftest.$ac_ext <<EOF-#line 8897 "configure"+#line 8899 "configure" #include "confdefs.h" #include <stdio.h>@@ -8903,7 +8905,7 @@ gethostbyname(NULL) ; return 0; } EOF-if { (eval echo configure:8907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then+if { (eval echo configure:8909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cat >> confdefs.h <<\EOF@@ -8931,9 +8933,9 @@ ctimerstyle="" echo $ac_n "checking ctime_r() syntax""... $ac_c" 1>&6-echo "configure:8935: checking ctime_r() syntax" >&5+echo "configure:8937: checking ctime_r() syntax" >&5 cat > conftest.$ac_ext <<EOF-#line 8937 "configure"+#line 8939 "configure" #include "confdefs.h" #include <time.h>@@ -8942,7 +8944,7 @@ ctime_r(NULL, NULL, 0) ; return 0; } EOF-if { (eval echo configure:8946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then+if { (eval echo configure:8948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cat >> confdefs.h <<\EOF@@ -8958,7 +8960,7 @@ rm -f conftest* if test "x$ctimerstyle" = "x"; then cat > conftest.$ac_ext <<EOF-#line 8962 "configure"+#line 8964 "configure" #include "confdefs.h" #include <time.h>@@ -8967,7 +8969,7 @@ ctime_r(NULL, NULL) ; return 0; } EOF-if { (eval echo configure:8971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then+if { (eval echo configure:8973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cat >> confdefs.h <<\EOF@@ -8992,7 +8994,7 @@ if test x"$rad_enable_largefiles" = xyes ; then echo $ac_n "checking for largefile linkage""... $ac_c" 1>&6-echo "configure:8996: checking for largefile linkage" >&5+echo "configure:8998: checking for largefile linkage" >&5 case "$host" in *-aix4.01*) echo "$ac_t""no" 1>&6@@ -9029,7 +9031,7 @@ # Extract the first word of "getconf", so it can be a program name with args. set dummy getconf; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6-echo "configure:9033: checking for $ac_word" >&5+echo "configure:9035: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GETCONF'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 elsediff -urNad --exclude=CVS --exclude=.svn ./src/include/radius_snmp.h /tmp/dpep-work.BoqXCd/release_1_0/src/include/radius_snmp.h--- ./src/include/radius_snmp.h 2004-04-07 05:01:06.000000000 +1000+++ /tmp/dpep-work.BoqXCd/release_1_0/src/include/radius_snmp.h 2005-08-23 17:08:08.000000000 +1000@@ -11,6 +11,7 @@ #include <snmp_impl.h> #else #ifdef HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H+#include <ucd-snmp/ucd-snmp-config.h> #include <ucd-snmp/asn1.h> #include <ucd-snmp/snmp.h> #include <ucd-snmp/snmp_impl.h>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -