]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
net-snmp: New package.
authorSchantl Stefan <Stevee@ipfire.org>
Fri, 26 Feb 2010 16:29:55 +0000 (17:29 +0100)
committerSchantl Stefan <Stevee@ipfire.org>
Fri, 26 Feb 2010 16:29:55 +0000 (17:29 +0100)
I had to disable the perl modules, because they have an unsecure RPATH and there isnĀ“t a patch to solve this issure.

pkgs/core/net-snmp/net-snmp.nm [new file with mode: 0644]

diff --git a/pkgs/core/net-snmp/net-snmp.nm b/pkgs/core/net-snmp/net-snmp.nm
new file mode 100644 (file)
index 0000000..d8eff77
--- /dev/null
@@ -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 <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# 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