wok annotate net-snmp/receipt @ rev 19374

Ip dialog (1.3-20160424)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Aug 12 08:42:46 2016 +0200 (2016-08-12)
parents 6acf7ee438a7
children 937925ea7478
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"
pascal@15584 8 LICENSE="BSD"
allan316@3226 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
allan316@3226 10 WEB_SITE="http://net-snmp.sourceforge.net"
allan316@3226 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
jozee@4969 12 TAGS="snmp"
allan316@3226 13
pascal@15584 14 DEPENDS="openssl"
pascal@15584 15 BUILD_DEPENDS="perl openssl-dev file"
pascal@15584 16
allan316@3226 17 # Rules to configure and make the package.
allan316@3226 18 compile_rules()
allan316@3226 19 {
allan316@3226 20 cd $src
allan316@3226 21 ./configure \
allan316@3226 22 --prefix=/usr \
allan316@3226 23 --with-default-snmp-version="1" \
allan316@3226 24 --with-sys-contact="user@localhost" \
allan316@3226 25 --with-sys-location="unknown" \
allan316@3226 26 --with-logfile="/var/log/snmpd.log" \
allan316@3226 27 --with-persistent-directory="/var/net-snmp" \
allan316@3226 28 $CONFIGURE_ARGS &&
pascal@15584 29 make -j 1 && make DESTDIR=$DESTDIR install
allan316@3226 30 }
allan316@3226 31
allan316@3226 32 # Rules to gen a SliTaz package suitable for Tazpkg.
allan316@3226 33 genpkg_rules()
allan316@3226 34 {
allan316@3226 35 mkdir -p $fs/usr/lib/
pascal@15584 36 cp -a $install/usr/bin $fs/usr
pascal@15584 37 cp -a $install/usr/sbin $fs
pascal@15584 38 cp -a $install/usr/share $fs/usr
pascal@15584 39 cp -a $install/usr/lib/*so* $fs/usr/lib
pascal@15584 40 cp -a $install/usr/lib/perl5 $fs/usr/lib
allan316@3226 41 }
allan316@3226 42