fixed configure.in which was broken on sparc; now requires autoconf

This commit is contained in:
danh 2000-08-05 09:39:20 +00:00
parent 74a9ffd932
commit a786e1dd69
4 changed files with 163 additions and 64 deletions

View File

@ -1,39 +1,39 @@
# $OpenBSD: Makefile,v 1.14 2000/07/10 20:28:03 danh Exp $
# $OpenBSD: Makefile,v 1.15 2000/08/05 09:39:20 danh Exp $
DISTNAME= ucd-snmp-4.1.2
CATEGORIES= net
NEED_VERSION= 1.302
HOMEPAGE= http://ucd-snmp.ucdavis.edu/
MAINTAINER= danh@openbsd.org
DISTNAME= ucd-snmp-4.1.2
CATEGORIES= net
NEED_VERSION= 1.319
HOMEPAGE= http://ucd-snmp.ucdavis.edu/
MAINTAINER= danh@openbsd.org
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ftp://ucd-snmp.ucdavis.edu/ \
ftp://sunsite.cnlab-switch.ch/mirror/ucd-snmp/
MASTER_SITES= ftp://ucd-snmp.ucdavis.edu/ \
ftp://sunsite.cnlab-switch.ch/mirror/ucd-snmp/
CONFIGURE_STYLE= gnu dest
CONFIGURE_ARGS+= --with-persistent-directory='/var/ucd-snmp'
CONFIGURE_ARGS+= --with-sys-contact='<change_me>'
CONFIGURE_ARGS+= --with-sys-location='<change_me>'
CONFIGURE_ARGS+= --with-logfile='/var/log/snmpd'
CONFIGURE_STYLE= gnu autoconf dest
CONFIGURE_ARGS+= --with-persistent-directory='/var/ucd-snmp' \
--with-sys-contact='<change_me>' \
--with-sys-location='<change_me>' \
--with-logfile='/var/log/snmpd'
BIN= encode_keychange snmpbulkget snmpbulkwalk snmpdelta \
snmpget snmpgetnext snmpnetstat snmpset snmpstatus \
snmptable snmptest snmptranslate snmptrap snmpusm snmpwalk
SBIN= snmpd snmptrapd
BIN= encode_keychange snmpbulkget snmpbulkwalk snmpdelta \
snmpget snmpgetnext snmpnetstat snmpset snmpstatus \
snmptable snmptest snmptranslate snmptrap snmpusm snmpwalk
SBIN= snmpd snmptrapd
post-install:
( cd ${PREFIX}/bin; strip ${BIN} )
( cd ${PREFIX}/sbin; strip ${SBIN} )
( cd ${PREFIX}/bin && strip ${BIN} )
( cd ${PREFIX}/sbin && strip ${SBIN} )
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ucd-snmp
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ucd-snmp
cd ${WRKSRC}; ${INSTALL_DATA} EXAMPLE.conf ${PREFIX}/share/examples/ucd-snmp
cd ${WRKSRC}; ${INSTALL_DATA} README ${PREFIX}/share/doc/ucd-snmp
cd ${WRKSRC}; ${INSTALL_DATA} README.snmpv3 ${PREFIX}/share/doc/ucd-snmp
cd ${WRKSRC}; ${INSTALL_DATA} FAQ ${PREFIX}/share/doc/ucd-snmp
cd ${WRKSRC}; ${INSTALL_DATA} AGENT.txt ${PREFIX}/share/doc/ucd-snmp
${INSTALL_DATA} ${WRKSRC}/EXAMPLE.conf ${PREFIX}/share/examples/ucd-snmp
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ucd-snmp
${INSTALL_DATA} ${WRKSRC}/README.snmpv3 ${PREFIX}/share/doc/ucd-snmp
${INSTALL_DATA} ${WRKSRC}/FAQ ${PREFIX}/share/doc/ucd-snmp
${INSTALL_DATA} ${WRKSRC}/AGENT.txt ${PREFIX}/share/doc/ucd-snmp
.include <bsd.port.mk>

View File

@ -1,35 +0,0 @@
$OpenBSD: patch-configure,v 1.1 2000/06/29 21:20:05 jakob Exp $
--- configure.orig Fri May 5 18:50:13 2000
+++ configure Mon Jun 26 20:57:26 2000
@@ -1978,21 +1978,21 @@ if test "x$prefix" = "xNONE"; then
prefix=/usr/local
fi
-fch=`echo $prefix | cut -b1`
-if test $fch != "/" ; then
- prefix=`pwd`/$prefix
- echo "adjusting prefix to $prefix"
-fi
+# fch=`echo $prefix | cut -b1`
+# if test $fch != "/" ; then
+# prefix=`pwd`/$prefix
+# echo "adjusting prefix to $prefix"
+# fi
if test "x$exec_prefix" = "xNONE"; then
exec_prefix=$prefix
fi
-fch=`echo $exec_prefix | cut -b1`
-if test $fch != "/" ; then
- exec_prefix=`pwd`/$exec_prefix
- echo "adjusting exec_prefix to $exec_prefix"
-fi
+#fch=`echo $exec_prefix | cut -b1`
+#if test $fch != "/" ; then
+# exec_prefix=`pwd`/$exec_prefix
+# echo "adjusting exec_prefix to $exec_prefix"
+#fi
SNMPLIBPATH=""

View File

@ -0,0 +1,134 @@
$OpenBSD: patch-configure_in,v 1.1 2000/08/05 09:39:21 danh Exp $
--- configure.in.orig Fri May 5 12:46:26 2000
+++ configure.in Sat Aug 5 03:54:07 2000
@@ -400,22 +400,10 @@ if test "x$prefix" = "xNONE"; then
prefix=/usr/local
fi
-fch=`echo $prefix | cut -b1`
-if test $fch != "/" ; then
- prefix=`pwd`/$prefix
- echo "adjusting prefix to $prefix"
-fi
-
if test "x$exec_prefix" = "xNONE"; then
exec_prefix=$prefix
fi
-fch=`echo $exec_prefix | cut -b1`
-if test $fch != "/" ; then
- exec_prefix=`pwd`/$exec_prefix
- echo "adjusting exec_prefix to $exec_prefix"
-fi
-
dnl Set SNMPLIBPATH & SNMPSHAREPATH
SNMPLIBPATH=""
@@ -1256,29 +1244,17 @@ AC_CHECK_STRUCT_FOR([
AC_CHECK_STRUCT_FOR([
#include <sys/types.h>
-#define KERNEL
-#define _KERNEL
#include <sys/socket.h>
-#undef KERNEL
-#undef _KERNEL
], sockaddr, sa_len, no)
AC_CHECK_STRUCT_FOR([
#include <sys/types.h>
-#define KERNEL
-#define _KERNEL
#include <sys/socket.h>
-#undef KERNEL
-#undef _KERNEL
], sockaddr, sa_union.sa_generic.sa_family2, no)
AC_CHECK_STRUCT_FOR([
#include <sys/types.h>
-#define KERNEL
-#define _KERNEL
#include <sys/socket.h>
-#undef KERNEL
-#undef _KERNEL
#include <net/route.h>
], rtentry, rt_dst, no)
@@ -1289,11 +1265,7 @@ AC_CACHE_CHECK(type of rtentry structure
dnl 4.4 compat
AC_TRY_COMPILE([
#include <sys/types.h>
-#define KERNEL
-#define _KERNEL
#include <sys/socket.h>
-#undef KERNEL
-#undef _KERNEL
#include <net/route.h>
],[
@@ -1310,11 +1282,7 @@ dnl 4.3 compat
if test "x$ac_cv_RTENTRY_TYPE" = "x"; then
AC_TRY_COMPILE([
#include <sys/types.h>
-#define KERNEL
-#define _KERNEL
#include <sys/socket.h>
-#undef KERNEL
-#undef _KERNEL
#include <net/route.h>
],[
struct rtentry rt;
@@ -1364,11 +1332,7 @@ AC_CACHE_CHECK(for struct rtentry has a
[
AC_TRY_COMPILE([
#include <sys/types.h>
-#define KERNEL
-#define _KERNEL
#include <sys/socket.h>
-#undef KERNEL
-#undef _KERNEL
#include <net/route.h>
],[
struct rtentry rt;
@@ -1385,41 +1349,25 @@ fi
dnl Check struct rtentry for various things.
AC_CHECK_STRUCT_FOR([
#include <sys/types.h>
-#define KERNEL
-#define _KERNEL
#include <sys/socket.h>
-#undef KERNEL
-#undef _KERNEL
#include <net/route.h>
], rtentry, rt_unit)
AC_CHECK_STRUCT_FOR([
#include <sys/types.h>
-#define KERNEL
-#define _KERNEL
#include <sys/socket.h>
-#undef KERNEL
-#undef _KERNEL
#include <net/route.h>
], rtentry, rt_refcnt)
AC_CHECK_STRUCT_FOR([
#include <sys/types.h>
-#define KERNEL
-#define _KERNEL
#include <sys/socket.h>
-#undef KERNEL
-#undef _KERNEL
#include <net/route.h>
], rtentry, rt_hash)
AC_CHECK_STRUCT_FOR([
#include <sys/types.h>
-#define KERNEL
-#define _KERNEL
#include <sys/socket.h>
-#undef KERNEL
-#undef _KERNEL
#include <net/route.h>
], rtentry, rt_use)

View File

@ -1,14 +1,14 @@
+------------
| By default, the configuration files and mib modules for snmpd are in stored
| in /usr/local/share/snmp. An example configuration has been installed in
| /usr/local/share/examples/ucd-snmp/EXAMPLE.conf. Extra documentation has
| also been installed in /usr/local/share/doc/ucd-snmp.
| in ${PREFIX}/share/snmp. An example configuration has been installed in
| ${PREFIX}/share/examples/ucd-snmp/EXAMPLE.conf. Extra documentation has
| also been installed in ${PREFIX}/share/doc/ucd-snmp.
|
| To have snmpd start at boot time, you must have an entry similiar to the
| following in /etc/rc.local.
|
| if [ -x /usr/local/sbin/snmpd ]; then
| /usr/local/sbin/snmpd -c /etc/snmpd.conf && echo -n ' snmpd'
| if [ -x ${PREFIX}/sbin/snmpd ]; then
| ${PREFIX}/sbin/snmpd -c /etc/snmpd.conf && echo -n ' snmpd'
| fi
|
| This will start snmpd and use /etc/snmpd.conf for the configuration.