wok-6.x annotate net-snmp/receipt @ rev 5781
Speedup some builds
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jul 10 09:37:09 2010 +0200 (2010-07-10) |
parents | bee79018e13a |
children | 37f3adfaa485 |
rev | line source |
---|---|
allan316@3226 | 1 # SliTaz package receipt. |
allan316@3226 | 2 |
allan316@3226 | 3 PACKAGE="net-snmp" |
allan316@3226 | 4 VERSION="5.4.2.1" |
allan316@3226 | 5 CATEGORY="network" |
allan316@3226 | 6 SHORT_DESC="snmp tools" |
allan316@3226 | 7 MAINTAINER="allan316@gmail.com" |
allan316@3228 | 8 DEPENDS="openssl" |
allan316@3228 | 9 BUILD_DEPENDS="perl openssl-dev" |
allan316@3226 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
allan316@3226 | 11 WEB_SITE="http://net-snmp.sourceforge.net" |
allan316@3226 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
jozee@4969 | 13 TAGS="snmp" |
allan316@3226 | 14 |
allan316@3226 | 15 # Rules to configure and make the package. |
allan316@3226 | 16 compile_rules() |
allan316@3226 | 17 { |
allan316@3226 | 18 cd $src |
allan316@3226 | 19 ./configure \ |
allan316@3226 | 20 --prefix=/usr \ |
allan316@3226 | 21 --with-default-snmp-version="1" \ |
allan316@3226 | 22 --with-sys-contact="user@localhost" \ |
allan316@3226 | 23 --with-sys-location="unknown" \ |
allan316@3226 | 24 --with-logfile="/var/log/snmpd.log" \ |
allan316@3226 | 25 --with-persistent-directory="/var/net-snmp" \ |
allan316@3226 | 26 $CONFIGURE_ARGS && |
pascal@5781 | 27 make -j 4 && make DESTDIR=$PWD/_pkg install |
allan316@3226 | 28 } |
allan316@3226 | 29 |
allan316@3226 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
allan316@3226 | 31 genpkg_rules() |
allan316@3226 | 32 { |
allan316@3226 | 33 mkdir -p $fs/usr/lib/ |
allan316@3226 | 34 cp -a $_pkg/usr/bin $fs/usr |
allan316@3226 | 35 cp -a $_pkg/usr/sbin $fs |
allan316@3226 | 36 cp -a $_pkg/usr/share $fs/usr |
allan316@3226 | 37 cp -a $_pkg/usr/lib/*so* $fs/usr/lib |
allan316@3226 | 38 cp -a $_pkg/usr/lib/perl5 $fs/usr/lib |
allan316@3226 | 39 |
allan316@3226 | 40 } |
allan316@3226 | 41 |