# HG changeset patch # User Allan Pinto # Date 1243617023 0 # Node ID be68bb295c6aa68f078bb6bbc9902250825f398a # Parent 1d3c2a6a390ffe2ff259b7378d47d067592ddd1c add net-snmp diff -r 1d3c2a6a390f -r be68bb295c6a net-snmp/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/net-snmp/receipt Fri May 29 17:10:23 2009 +0000 @@ -0,0 +1,40 @@ +# SliTaz package receipt. + +PACKAGE="net-snmp" +VERSION="5.4.2.1" +CATEGORY="network" +SHORT_DESC="snmp tools" +MAINTAINER="allan316@gmail.com" +DEPENDS="" +BUILD_DEPENDS="perl" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://net-snmp.sourceforge.net" +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./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 && make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib/ + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/sbin $fs + cp -a $_pkg/usr/share $fs/usr + cp -a $_pkg/usr/lib/*so* $fs/usr/lib + cp -a $_pkg/usr/lib/perl5 $fs/usr/lib + +} +