1996-07-06 10:14:49 +02:00
|
|
|
# New ports collection makefile for: ucd-snmp
|
|
|
|
# Date created: 26 June 1996
|
|
|
|
# Whom: gpalmer
|
|
|
|
#
|
1999-08-30 16:24:37 +02:00
|
|
|
# $FreeBSD$
|
1996-07-06 10:14:49 +02:00
|
|
|
#
|
|
|
|
|
2001-02-02 02:43:17 +01:00
|
|
|
PORTNAME= ucd-snmp
|
2008-06-10 23:15:22 +02:00
|
|
|
PORTVERSION= 4.2.7.1
|
2004-02-23 05:42:13 +01:00
|
|
|
CATEGORIES= net-mgmt ipv6
|
2005-10-06 09:56:31 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2005-05-14 23:40:09 +02:00
|
|
|
MASTER_SITE_SUBDIR= net-snmp
|
2000-03-20 23:57:22 +01:00
|
|
|
|
2004-06-24 22:51:05 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 20:00:52 +01:00
|
|
|
COMMENT= An extendable SNMP implementation
|
1996-07-06 10:14:49 +02:00
|
|
|
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2002-11-17 14:08:26 +01:00
|
|
|
USE_PERL5= yes
|
2006-08-15 02:56:24 +02:00
|
|
|
USE_LDCONFIG= yes
|
2009-01-06 18:59:31 +01:00
|
|
|
CFLAGS+= -fPIC -Dfreebsd5
|
2001-01-18 10:58:30 +01:00
|
|
|
|
2005-05-14 23:40:09 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-shared \
|
|
|
|
--with-mib-modules="host ucd-snmp/diskio" \
|
|
|
|
--with-gnu-ld --with-libwrap --with-libs="-ldevstat"
|
1998-04-02 20:04:56 +02:00
|
|
|
.if defined(BATCH)
|
2005-05-14 23:40:09 +02:00
|
|
|
CONFIGURE_ARGS+= --with-defaults --with-sys-contact=nobody@no.where
|
1997-05-17 19:24:59 +02:00
|
|
|
.else
|
2005-05-14 23:40:09 +02:00
|
|
|
IS_INTERACTIVE= yes
|
1997-05-17 19:24:59 +02:00
|
|
|
.endif
|
1998-07-10 23:06:23 +02:00
|
|
|
|
2001-01-18 10:58:30 +01:00
|
|
|
MAN1= snmpbulkget.1 snmpbulkwalk.1 snmpcmd.1 snmpconf.1 snmpd.1 \
|
2007-06-21 08:59:36 +02:00
|
|
|
snmpdelta.1 snmpdf.1 snmpget.1 snmpgetnext.1 snmpnetstat.1 \
|
|
|
|
snmpset.1 snmpstatus.1 snmptable.1 snmptest.1 snmptranslate.1 \
|
|
|
|
snmptrap.1 snmpusm.1 snmpwalk.1
|
|
|
|
MAN3= default_store.3 mib_api.3 read_config.3 snmp_agent_api.3 \
|
|
|
|
snmp_alarm.3 snmp_api.3 snmp_sess_api.3 snmp_trap_api.3
|
1999-04-07 18:07:41 +02:00
|
|
|
MAN5= snmp.conf.5 snmp_config.5 snmpd.conf.5 \
|
|
|
|
snmptrapd.conf.5 variables.5
|
1998-04-02 20:04:56 +02:00
|
|
|
MAN8= snmptrapd.8
|
2007-06-21 08:59:36 +02:00
|
|
|
MLINKS= snmptrap.1 snmpinform.1 \
|
|
|
|
mib_api.3 add_mibdir.3 \
|
|
|
|
mib_api.3 add_module_replacement.3 \
|
|
|
|
mib_api.3 get_module_node.3 \
|
|
|
|
mib_api.3 init_mib.3 \
|
|
|
|
mib_api.3 init_mib_internals.3 \
|
|
|
|
mib_api.3 print_description.3 \
|
|
|
|
mib_api.3 print_mib.3 \
|
|
|
|
mib_api.3 print_objid.3 \
|
|
|
|
mib_api.3 print_value.3 \
|
|
|
|
mib_api.3 print_variable.3 \
|
|
|
|
mib_api.3 read_all_mibs.3 \
|
|
|
|
mib_api.3 read_mib.3 \
|
|
|
|
mib_api.3 read_module.3 \
|
|
|
|
mib_api.3 read_module_node.3 \
|
|
|
|
mib_api.3 read_objid.3 \
|
|
|
|
mib_api.3 shutdown_mib.3 \
|
|
|
|
mib_api.3 snmp_set_mib_warnings.3 \
|
|
|
|
mib_api.3 snmp_set_save_descriptions.3 \
|
|
|
|
snmp_api.3 snmp_api_errstring.3 \
|
|
|
|
snmp_api.3 snmp_close.3 \
|
|
|
|
snmp_api.3 snmp_error.3 \
|
|
|
|
snmp_api.3 snmp_free_pdu.3 \
|
|
|
|
snmp_api.3 snmp_open.3 \
|
|
|
|
snmp_api.3 snmp_perror.3 \
|
|
|
|
snmp_api.3 snmp_read.3 \
|
|
|
|
snmp_api.3 snmp_select_info.3 \
|
|
|
|
snmp_api.3 snmp_send.3 \
|
|
|
|
snmp_api.3 snmp_sess_perror.3 \
|
|
|
|
snmp_api.3 snmp_timeout.3 \
|
|
|
|
snmp_sess_api.3 snmp_sess_async_send.3 \
|
|
|
|
snmp_sess_api.3 snmp_sess_close.3 \
|
|
|
|
snmp_sess_api.3 snmp_sess_error.3 \
|
|
|
|
snmp_sess_api.3 snmp_sess_init.3 \
|
|
|
|
snmp_sess_api.3 snmp_sess_open.3 \
|
|
|
|
snmp_sess_api.3 snmp_sess_read.3 \
|
|
|
|
snmp_sess_api.3 snmp_sess_select_info.3 \
|
|
|
|
snmp_sess_api.3 snmp_sess_send.3 \
|
|
|
|
snmp_sess_api.3 snmp_sess_session.3 \
|
|
|
|
snmp_sess_api.3 snmp_sess_timeout.3
|
1998-04-02 20:04:56 +02:00
|
|
|
BIN= snmpbulkwalk snmpget snmpgetnext snmpnetstat snmpset \
|
|
|
|
snmpstatus snmptest snmptranslate snmptrap snmpwalk
|
|
|
|
SBIN= snmpd snmptrapd
|
1996-12-01 02:20:15 +01:00
|
|
|
|
2007-07-27 13:59:28 +02:00
|
|
|
USE_RC_SUBR= snmpd
|
1998-10-20 00:43:09 +02:00
|
|
|
|
2003-10-11 08:16:21 +02:00
|
|
|
CONFLICTS= net-snmp-5.*
|
|
|
|
|
2003-02-21 18:27:57 +01:00
|
|
|
.if defined(WITHOUT_SSL)
|
2005-05-14 23:40:09 +02:00
|
|
|
CONFIGURE_ARGS+= --without-openssl
|
2003-02-21 18:27:57 +01:00
|
|
|
.else
|
2003-03-04 22:45:05 +01:00
|
|
|
USE_OPENSSL= YES
|
2005-05-14 23:40:09 +02:00
|
|
|
CONFIGURE_ARGS+= --with-openssl=/usr
|
2003-03-04 22:45:05 +01:00
|
|
|
CFLAGS+= -DOPENSSL_DES_LIBDES_COMPATIBILITY
|
2003-02-18 12:28:57 +01:00
|
|
|
.endif
|
2000-07-28 21:43:15 +02:00
|
|
|
|
2008-03-11 23:50:31 +01:00
|
|
|
SHLIB_VERSION= 4
|
|
|
|
PLIST_SUB+= shlib=${SHLIB_VERSION}
|
|
|
|
|
2007-04-19 23:20:48 +02:00
|
|
|
OPTIONS= IPV6 "Enable IPv6 support" On
|
|
|
|
|
2003-10-02 18:59:44 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2009-01-08 18:11:33 +01:00
|
|
|
.if ${OSVERSION} >= 800059
|
|
|
|
BROKEN= does not build
|
|
|
|
.endif
|
|
|
|
|
2007-04-19 23:20:48 +02:00
|
|
|
.if defined(WITH_IPV6)
|
2005-05-14 23:40:09 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
2003-10-02 18:59:44 +02:00
|
|
|
.endif
|
|
|
|
|
2003-02-21 18:27:57 +01:00
|
|
|
pre-everything::
|
|
|
|
@${ECHO} ""
|
2003-03-04 22:45:05 +01:00
|
|
|
@${ECHO} "You may use the following build option(s):"
|
2003-02-21 18:27:57 +01:00
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} " WITHOUT_SSL=yes Disable the OpenSSL support."
|
|
|
|
@${ECHO} ""
|
|
|
|
|
2002-03-22 04:52:37 +01:00
|
|
|
post-patch:
|
2003-06-27 00:58:32 +02:00
|
|
|
@${REINPLACE_CMD} \
|
2004-07-01 19:06:41 +02:00
|
|
|
-e 's|%%LTCONFIG%%|${LTCONFIG}|g' \
|
|
|
|
-e 's|%%LTMAIN%%|${LTMAIN}|g' \
|
2002-11-04 04:05:48 +01:00
|
|
|
${WRKSRC}/aclocal.m4
|
2008-03-11 23:50:31 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|echo aout|echo elf|' ${WRKSRC}/configure
|
2002-03-22 04:52:37 +01:00
|
|
|
|
1996-07-06 10:14:49 +02:00
|
|
|
post-install:
|
2005-05-14 23:40:09 +02:00
|
|
|
@( cd ${PREFIX}/bin && ${STRIP_CMD} ${BIN} )
|
|
|
|
@( cd ${PREFIX}/sbin && ${STRIP_CMD} ${SBIN} )
|
2002-07-26 08:25:56 +02:00
|
|
|
@${FIND} ${PREFIX}/include/ucd-snmp ${PREFIX}/share/snmp/mibs -type f \
|
|
|
|
| ${XARGS} ${CHMOD} 644
|
1996-12-01 02:20:15 +01:00
|
|
|
@${MKDIR} ${PREFIX}/share/examples/ucd-snmp
|
2000-05-12 22:21:27 +02:00
|
|
|
@for F in ${WRKSRC}/EXAMPLE.conf ${WRKSRC}/agent/mibgroup/examples/ucdDemoPublic.conf; do \
|
1996-12-01 02:20:15 +01:00
|
|
|
${INSTALL_DATA} $$F ${PREFIX}/share/examples/ucd-snmp ; done
|
1997-07-03 06:59:05 +02:00
|
|
|
|
1998-11-14 10:43:39 +01:00
|
|
|
.include <bsd.port.post.mk>
|