wok-6.x annotate net-snmp/receipt @ rev 14753

busybox-boot: create /usr/share/boot/initrd (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jun 16 19:55:07 2013 +0200 (2013-06-16)
parents 99a2fb1f6def
children 3765f181a6d5
rev   line source
allan316@3226 1 # SliTaz package receipt.
allan316@3226 2
allan316@3226 3 PACKAGE="net-snmp"
slaxemulator@10221 4 VERSION="5.6.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"
slaxemulator@10221 9 BUILD_DEPENDS="perl openssl-dev file"
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 &&
gokhlayeh@7974 27 make -j 1 && 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