head	1.6;
access;
symbols
	pkgsrc-2013Q2:1.6.0.54
	pkgsrc-2013Q2-base:1.6
	pkgsrc-2012Q4:1.6.0.52
	pkgsrc-2012Q4-base:1.6
	pkgsrc-2011Q4:1.6.0.50
	pkgsrc-2011Q4-base:1.6
	pkgsrc-2011Q2:1.6.0.48
	pkgsrc-2011Q2-base:1.6
	pkgsrc-2009Q4:1.6.0.46
	pkgsrc-2009Q4-base:1.6
	pkgsrc-2008Q4:1.6.0.44
	pkgsrc-2008Q4-base:1.6
	pkgsrc-2008Q3:1.6.0.42
	pkgsrc-2008Q3-base:1.6
	cube-native-xorg:1.6.0.40
	cube-native-xorg-base:1.6
	pkgsrc-2008Q2:1.6.0.38
	pkgsrc-2008Q2-base:1.6
	pkgsrc-2008Q1:1.6.0.36
	pkgsrc-2008Q1-base:1.6
	pkgsrc-2007Q4:1.6.0.34
	pkgsrc-2007Q4-base:1.6
	pkgsrc-2007Q3:1.6.0.32
	pkgsrc-2007Q3-base:1.6
	pkgsrc-2007Q2:1.6.0.30
	pkgsrc-2007Q2-base:1.6
	pkgsrc-2007Q1:1.6.0.28
	pkgsrc-2007Q1-base:1.6
	pkgsrc-2006Q4:1.6.0.26
	pkgsrc-2006Q4-base:1.6
	pkgsrc-2006Q3:1.6.0.24
	pkgsrc-2006Q3-base:1.6
	pkgsrc-2006Q2:1.6.0.22
	pkgsrc-2006Q2-base:1.6
	pkgsrc-2006Q1:1.6.0.20
	pkgsrc-2006Q1-base:1.6
	pkgsrc-2005Q4:1.6.0.18
	pkgsrc-2005Q4-base:1.6
	pkgsrc-2005Q3:1.6.0.16
	pkgsrc-2005Q3-base:1.6
	pkgsrc-2005Q2:1.6.0.14
	pkgsrc-2005Q2-base:1.6
	pkgsrc-2005Q1:1.6.0.12
	pkgsrc-2005Q1-base:1.6
	pkgsrc-2004Q4:1.6.0.10
	pkgsrc-2004Q4-base:1.6
	pkgsrc-2004Q3:1.6.0.8
	pkgsrc-2004Q3-base:1.6
	pkgsrc-2004Q2:1.6.0.6
	pkgsrc-2004Q2-base:1.6
	pkgsrc-2004Q1:1.6.0.4
	pkgsrc-2004Q1-base:1.6
	pkgsrc-2003Q4:1.6.0.2
	pkgsrc-2003Q4-base:1.6
	netbsd-1-6:1.2.0.6
	netbsd-1-6-RELEASE-base:1.2
	pkgviews:1.2.0.2
	pkgviews-base:1.2
	buildlink2:1.1.1.1.0.2
	buildlink2-base:1.3
	netbsd-1-5-PATCH003:1.1.1.1
	pkgsrc-base:1.1.1.1
	TNF:1.1.1;
locks; strict;
comment	@# @;


1.6
date	2002.10.24.09.43.05;	author jlam;	state dead;
branches;
next	1.5;

1.5
date	2002.10.02.22.06.39;	author wiz;	state Exp;
branches;
next	1.4;

1.4
date	2002.08.25.21.50.05;	author jlam;	state Exp;
branches;
next	1.3;

1.3
date	2002.08.25.18.39.33;	author jlam;	state Exp;
branches;
next	1.2;

1.2
date	2002.06.17.10.37.45;	author wiz;	state Exp;
branches;
next	1.1;

1.1
date	2002.03.14.06.29.01;	author itojun;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2002.03.14.06.29.01;	author itojun;	state Exp;
branches
	1.1.1.1.2.1;
next	;

1.1.1.1.2.1
date	2002.06.23.18.55.54;	author jlam;	state Exp;
branches;
next	1.1.1.1.2.2;

1.1.1.1.2.2
date	2002.07.01.05.46.53;	author jlam;	state Exp;
branches;
next	1.1.1.1.2.3;

1.1.1.1.2.3
date	2002.08.25.18.01.06;	author jlam;	state Exp;
branches;
next	;


desc
@@


1.6
log
@Remove net/net-snmp-current -- it's superseded by net/net-snmp.
@
text
@# $NetBSD: Makefile,v 1.5 2002/10/02 22:06:39 wiz Exp $

DISTNAME=	net-snmp-5.0.pre2
PKGNAME=	net-snmp-5.0.0.2
CATEGORIES=	net
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=net-snmp/} \
		ftp://ucd-snmp.ucdavis.edu/ \
		ftp://sunsite.cnlab-switch.ch/mirror/ucd-snmp/ \
		ftp://ftp.win.or.jp/pub/network/snmp/ucd-snmp/

MAINTAINER=	packages@@netbsd.org
HOMEPAGE=	http://www.net-snmp.org/
COMMENT=	Extensible SNMP implementation

CONFLICTS=	ucd-snmp-[0-9]*

BUILD_DEFS+=	USE_INET6

USE_BUILDLINK2=	yes

.include "../../mk/bsd.prefs.mk"

USE_LIBTOOL=		yes
LIBTOOL_OVERRIDE=	${WRKSRC}/libtool

GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--with-defaults
CONFIGURE_ARGS+=	--with-libwrap=${BUILDLINK_PREFIX.tcp_wrappers}
CONFIGURE_ARGS+=	--with-logfile="/var/log/snmpd"
#
# smux/host do not compile
#
#CONFIGURE_ARGS+=	--with-mib-modules="smux host"
#
# NOTE: if you do not allow dummy values some tools such as
# scotty/tkined may ignore results when they shouldn't.
#
CONFIGURE_ARGS+=	--with-dummy-values
#
# NOTE: without this the default is USER@@DOMAINNAME of the package builder
#
CONFIGURE_ARGS+=	--with-sys-contact="default_user@@contact.domain"
CONFIGURE_ARGS+=	--with-sys-location="defaultlocation"
CONFIGURE_ARGS+=	--enable-shared
.if defined(USE_INET6) && ${USE_INET6} == "YES"
CONFIGURE_ARGS+=	--enable-ipv6
.else
CONFIGURE_ARGS+=	--disable-ipv6
.endif

.if (${OPSYS} == "NetBSD")
CFLAGS+=	-Dnetbsd1
.endif

# this might make it easier to use scotty's mibs, and local ones too
CONFIGURE_ARGS+=	--with-mibdirs="${PREFIX}/share/snmp/mibs:${PREFIX}/lib/tcl/tnm2.1.10/mibs:${PREFIX}/lib/tnm2.1.8/mibs:/usr/local/share/snmp/mibs"

# deal with libwrap bogosity by providing these variables to programs which
# do not supply them:
post-extract:
	@@${ECHO} 'int allow_severity, deny_severity;'			\
		> ${WRKSRC}/snmplib/libwrap.c

pre-configure:
.if (${OPSYS} == NetBSD)
.  if (${LOWER_ARCH} == i386 && ${OS_VERSION:M1.5.[123]*} != "")
	${MKDIR} ${BUILDLINK_DIR}/include/sys
	${LN} -s ${FILESDIR}/disklabel.h ${BUILDLINK_DIR}/include/sys
.  endif
.endif
#
# Adapt for the fact that the default I've seen of ac_max_sed_cmds=90
# will not work w/ built-in sed on Solaris.
#
.if ${OPSYS} == SunOS
	cd ${WRKSRC};							\
	${SED}	's/ac_max_sed_cmds=[0-9][0-9]*/ac_max_sed_cmds=10/'	\
		${CONFIGURE_SCRIPT} > ${CONFIGURE_SCRIPTS}.fixed;	\
	${MV} ${CONFIGURE_SCRIPT}.fixed ${CONFIGURE_SCRIPTS}
.endif

post-build:
	${SED} 's,@@PREFIX@@,${PREFIX},g' < ${FILESDIR}/snmpd.sh > ${WRKDIR}/snmpd
	${SED} 's,@@PREFIX@@,${PREFIX},g' < ${FILESDIR}/snmptrapd.sh > ${WRKDIR}/snmptrapd

pre-install:
	cd ${WRKSRC}/apps/.libs; ${LN} -sf snmptrap snmpinform
	${INSTALL_DATA_DIR} ${PREFIX}/share/snmp

post-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ucd-snmp
	${INSTALL_DATA} ${WRKSRC}/EXAMPLE.conf ${PREFIX}/share/examples/ucd-snmp
	${INSTALL_DATA_DIR} ${PREFIX}/lib/snmp/dlmod
	${INSTALL_SCRIPT} ${WRKDIR}/snmpd ${PREFIX}/etc/rc.d
	${INSTALL_SCRIPT} ${WRKDIR}/snmptrapd ${PREFIX}/etc/rc.d

.include "../../security/openssl/buildlink2.mk"
.include "../../security/tcp_wrappers/buildlink2.mk"

.include "../../mk/bsd.pkg.mk"
@


1.5
log
@Remove autoconf dependency by adding a configure patch.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2002/08/25 21:50:05 jlam Exp $
@


1.4
log
@Merge packages from the buildlink2 branch back into the main trunk that
have been converted to USE_BUILDLINK2.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1.1.1.2.3 2002/08/25 18:01:06 jlam Exp $
a16 2
BUILD_DEPENDS+=	autoconf-2.13:../../devel/autoconf

a70 1
	cd ${WRKSRC} && ${LOCALBASE}/bin/autoreconf
@


1.3
log
@Merge changes in packages from the buildlink2 branch that have
buildlink2.mk files back into the main trunk.  This provides sufficient
buildlink2 infrastructure to start merging other packages from the
buildlink2 branch that have already been converted to use the buildlink2
framework.
@
text
@@


1.2
log
@Remove another USE_SSL comment.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1.1.1 2002/03/14 06:29:01 itojun Exp $
d21 1
a21 1
USE_BUILDLINK_ONLY=	
d25 2
a26 2
USE_LIBTOOL=	yes
LTCONFIG_OVERRIDE=	${WRKSRC}/ltconfig
d28 5
a32 5
#CPPFLAGS+=	-I${BUILDLINK_DIR}/include
#LDFLAGS+=	-L${BUILDLINK_DIR}/lib

GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=--with-defaults --with-libwrap=${BUILDLINK_PREFIX.tcp_wrappers} --with-logfile="/var/log/snmpd"
d34 3
a36 1
#CONFIGURE_ARGS+=--with-mib-modules="smux host"
d39 3
a41 1
CONFIGURE_ARGS+=--with-dummy-values
d43 4
a46 3
CONFIGURE_ARGS+=--with-sys-contact="default_user@@contact.domain"
CONFIGURE_ARGS+=--with-sys-location="defaultlocation"
CONFIGURE_ARGS+=--enable-shared
d48 1
a48 1
CONFIGURE_ARGS+=--enable-ipv6
d50 5
a54 1
CONFIGURE_ARGS+=--disable-ipv6
d58 1
a58 1
CONFIGURE_ARGS+=--with-mibdirs="${PREFIX}/share/snmp/mibs:${PREFIX}/lib/tcl/tnm2.1.10/mibs:${PREFIX}/lib/tnm2.1.8/mibs:/usr/local/share/snmp/mibs"
d63 2
a64 1
	@@${ECHO} 'int allow_severity, deny_severity;' >${WRKSRC}/snmplib/libwrap.c
d67 2
a68 3
.if (${OPSYS} == NetBSD && \
	${LOWER_ARCH} == i386 && \
	${OS_VERSION:M1.5.[123]*} != "")
d71 1
d73 5
a77 1
	(cd ${WRKSRC} && ${LOCALBASE}/bin/autoreconf)
d79 4
a82 5
# Adapt for the fact that the default I've seen of ac_max_sed_cmds=90
#will not work w/ built-in sed on Solaris.
	(cd ${WRKSRC} && ${SED} \
		's/ac_max_sed_cmds=[0-9][0-9]*/ac_max_sed_cmds=10/' \
		configure > tmp && cp tmp configure && rm tmp)
d90 2
a91 2
	(cd ${WRKSRC}/apps/.libs; ln -sf snmptrap snmpinform)
	${MKDIR} ${PREFIX}/share/snmp
d100 2
a101 6
.if (${OPSYS} == "NetBSD")
CFLAGS+=	-Dnetbsd1
.endif

.include "../../security/openssl/buildlink.mk"
.include "../../security/tcp_wrappers/buildlink.mk"
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
# $NetBSD$
d91 1
a91 1
.include "../../security/openssl/buildlink.mk"	# USE_SSL=	yes
@


1.1.1.1
log
@net-snmp (formerly ucd-snmp), pre-releases.

*5.0.pre2 (beta release)*
 NOTE WELL: this release is an beta release.  Please let us know
 immediately about any bugs you find so we can fix them before the
 real 5.0 releas.
 
 New:
    - Much of the agent internals were completely rewritten and sports
      a new module API to make your life easier.  See the
      agent/mibgroup/testhandler.c file for example code that makes
      use of some of the new functionality.
      (Also see http://www.net-snmp.org/tutorial/new-agent/ which has
      some incomplete documentation)
    - The agent supports multiple SNMPv3 contexts and mib modules can
      now register themselves under different contexts.  (see the -n
      option in the snmpcmd manual page for details on specifying
      context strings in requests)
    - The proxy code has been completely rewritten and now supports
      the use of SNMPv3 contexts to help select which proxied host you
      wish to talk to.
    - All the tools take --configToken=value options now.  (see -H
      output from any command for what configTokens it accepts)      
    - All the tools can speak over many different transport layers
      now, including UDP/TCP (ipv4 and ipv6), AAL5pvc, and IPX.  See
      ./configure --help for details on enabling them.
      Note: the -p and -T flags to all the applications have been
      removed.  Use hostname strings like "tcp:localhost:9999"
      instead.  See the snmpcmd manual page for details.
    - snmptrapd now acts as an agentx subagent and implements portions
      of the NOTIFICATION-LOG-MIB.
    - kerberos authenticated and encrypted SNMPv3 is now possible.
      See ./configure --help for details on enabling the ksm security module.
    - The AgentX subagent protocol implementation has many new
      features and fixes.
    - mib2c was completely rewritten and has a much improved
      configuration file specification.
    - A "net-snmp-config" script will get installed which can report
      how the various tools were built (which libraries they were
      linked against, etc).
    - new perl specific configure options --with-perl-modules &
      --enable-embedded-perl.  See ./configure --help for details.
    - The beginnings of some new Perl modules (alpha level quality)
      are in the perl directory, including:
      - NetSNMP::agent which allows perl scripts to become net-snmp
        master or subagents
      - AnyData::SNMP is available that implements a perl DBI
        interface to map SQL commands to SNMP.  Included is a "snmpsh"
        shell where SQL commands can be typed, aliases created, etc.
        See the perl/AnyData_SNMP/INSTALL file for details.
    - Beginning (alpha level quality) support for embedding perl
      subroutines directly within the net-snmp agent.
    - Much of the code is getting documented with "doxygen" style
      documentation.  Run "make docs" if you have doxygen installed.
    - RMON support is available.  See agent/mibgroup/Rmon/README for details.
@
text
@@


1.1.1.1.2.1
log
@Merge from pkgsrc-current to buildlink2 branch.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2002/06/17 10:37:45 wiz Exp $
d91 1
a91 1
.include "../../security/openssl/buildlink.mk"
@


1.1.1.1.2.2
log
@Convert to use the buildlink2 framework and minimize the differences
between net-snmp-current/Makefile and ucd-snmp/Makefile.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1.1.1.2.1 2002/06/23 18:55:54 jlam Exp $
d21 1
a21 1
USE_BUILDLINK2=	yes
d25 1
a25 1
USE_LIBTOOL=		yes
d28 5
a32 5
GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--with-defaults
CONFIGURE_ARGS+=	--with-libwrap=${BUILDLINK_PREFIX.tcp_wrappers}
CONFIGURE_ARGS+=	--with-logfile="/var/log/snmpd"
#
d34 1
a34 3
#
#CONFIGURE_ARGS+=	--with-mib-modules="smux host"
#
d37 1
a37 3
#
CONFIGURE_ARGS+=	--with-dummy-values
#
d39 3
a41 4
#
CONFIGURE_ARGS+=	--with-sys-contact="default_user@@contact.domain"
CONFIGURE_ARGS+=	--with-sys-location="defaultlocation"
CONFIGURE_ARGS+=	--enable-shared
d43 1
a43 1
CONFIGURE_ARGS+=	--enable-ipv6
d45 1
a45 5
CONFIGURE_ARGS+=	--disable-ipv6
.endif

.if (${OPSYS} == "NetBSD")
CFLAGS+=	-Dnetbsd1
d49 1
a49 1
CONFIGURE_ARGS+=	--with-mibdirs="${PREFIX}/share/snmp/mibs:${PREFIX}/lib/tcl/tnm2.1.10/mibs:${PREFIX}/lib/tnm2.1.8/mibs:/usr/local/share/snmp/mibs"
d54 1
a54 2
	@@${ECHO} 'int allow_severity, deny_severity;'			\
		> ${WRKSRC}/snmplib/libwrap.c
d57 3
a59 2
.if (${OPSYS} == NetBSD)
.  if (${LOWER_ARCH} == i386 && ${OS_VERSION:M1.5.[123]*} != "")
a61 1
.  endif
d63 2
a64 2
	cd ${WRKSRC} && ${LOCALBASE}/bin/autoreconf
#
d66 4
a69 7
# will not work w/ built-in sed on Solaris.
#
.if ${OPSYS} == SunOS
	cd ${WRKSRC};							\
	${SED}	's/ac_max_sed_cmds=[0-9][0-9]*/ac_max_sed_cmds=10/'	\
		${CONFIGURE_SCRIPT} > ${CONFIGURE_SCRIPTS}.fixed;	\
	${MV} ${CONFIGURE_SCRIPT}.fixed ${CONFIGURE_SCRIPTS}
d77 2
a78 2
	cd ${WRKSRC}/apps/.libs; ${LN} -sf snmptrap snmpinform
	${INSTALL_DATA_DIR} ${PREFIX}/share/snmp
d87 6
a92 2
.include "../../security/openssl/buildlink2.mk"
.include "../../security/tcp_wrappers/buildlink2.mk"
@


1.1.1.1.2.3
log
@Use LIBTOOL_OVERRIDE instead of LTCONFIG_OVERRIDE as these packages have
moved to using the newer libtool.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1.1.1.2.2 2002/07/01 05:46:53 jlam Exp $
d26 1
a26 1
LIBTOOL_OVERRIDE=	${WRKSRC}/libtool
@


