From: Schantl Stefan Date: Fri, 26 Feb 2010 16:29:55 +0000 (+0100) Subject: net-snmp: New package. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a0917c35b082369ec572722f491e4c5489737f0;p=ipfire-3.x.git net-snmp: New package. I had to disable the perl modules, because they have an unsecure RPATH and there isn“t a patch to solve this issure. --- diff --git a/pkgs/core/net-snmp/net-snmp.nm b/pkgs/core/net-snmp/net-snmp.nm new file mode 100644 index 000000000..d8eff7796 --- /dev/null +++ b/pkgs/core/net-snmp/net-snmp.nm @@ -0,0 +1,69 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include $(PKGROOT)/Include + +PKG_NAME = net-snmp +PKG_VER = 5.4.2.1 +PKG_REL = 0 + +PKG_MAINTAINER = +PKG_GROUP = Networking/Daemons +PKG_URL = http://net-snmp.sourceforge.net +PKG_LICENSE = BSD +PKG_SUMMARY = Simple Network Management Protocol Daemon. + +PKG_DEPS += perl + +define PKG_DESCRIPTION + Simple Network Management Protocol (SNMP) is a widely used protocol \ + for monitoring the health and welfare of network equipment (eg. routers), \ + computer equipment and even devices like UPSs. +endef + +PKG_TARBALL = $(THISAPP).tar.gz + +PARALLELISMFLAGS = # No parallel build + +CONFIGURE_OPTIONS += \ + --sysconfdir=/etc \ + --libdir=/usr/lib \ + --mandir=/usr/share/man \ + --with-default-snmp-version=2 \ + --with-sys-contact=root@ \ + --with-sys-location=localhost \ + --with-logfile=/var/log/snmpd.log \ + --with-persistent-directory=/var/net-snmp \ + --without-perl-modules \ + --disable-embedded-perl + +#define STAGE_CONFIGURE_CMDS + #cd $(DIR_APP) && sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool + #cd $(DIR_APP) && sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool +#endef + +define STAGE_INSTALL_CMDS + -mkdir -pv $(BUILDROOT)/etc + install -v -m644 $(DIR_APP)/python/netsnmp/tests/snmpd.conf $(BUILDROOT)/etc/snmpd.conf +endef