
Receipt for package "net-snmp"
# SliTaz package receipt. PACKAGE="net-snmp" VERSION="5.9.3" CATEGORY="network" TAGS="snmp" SHORT_DESC="SNMP tools." MAINTAINER="allan316@gmail.com" LICENSE="BSD" WEB_SITE="https://sourceforge.net/projects/net-snmp/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" DEPENDS="openssl" BUILD_DEPENDS="file openssl-dev perl" HOST_ARCH="i486 x86_64" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/net-snmp/files/net-snmp/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/net-snmp/||;s|/.*||;q' } # Rules to configure and make the package. compile_rules() { export LDFLAGS="$LDFLAGS -ltinfo" sed 's|darwin.\{1,2\}\.h||g' -i Makefile* ./configure \ --prefix=/usr \ --with-default-snmp-version="1" \ --with-sys-contact="user@localhost" \ --with-sys-location="unknown" \ --with-logfile="/var/log/snmpd.log" \ --with-persistent-directory="/var/net-snmp" \ $CONFIGURE_ARGS && make -j 1 && make -j 1 DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib/ cp -a $install/usr/bin $fs/usr cp -a $install/usr/sbin $fs cp -a $install/usr/share $fs/usr cp -a $install/usr/lib/*so* $fs/usr/lib cp -a $install/usr/lib/perl5 $fs/usr/lib }
6088 packages and 256128 files in current database (Wed Mar 5 09:18:31 2025)