wok view net-snmp/receipt @ rev 24406

updated clamav and clamav-dev (0.102.3 -> 0.104.2)
author Hans-G?nter Theisgen
date Wed Feb 09 13:44:54 2022 +0100 (2022-02-09)
parents 852f0fbcce4d
children ec9531d04de1
line source
1 # SliTaz package receipt.
3 PACKAGE="net-snmp"
4 VERSION="5.9"
5 CATEGORY="network"
6 TAGS="snmp"
7 SHORT_DESC="SNMP tools."
8 MAINTAINER="allan316@gmail.com"
9 LICENSE="BSD"
10 WEB_SITE="https://sourceforge.net/projects/net-snmp/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 DEPENDS="openssl"
16 BUILD_DEPENDS="file openssl-dev perl"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/net-snmp/files/net-snmp/ 2>/dev/null | \
22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
23 sed '/scope="row/!d;s|.*/net-snmp/||;s|/.*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 export LDFLAGS="$LDFLAGS -ltinfo"
30 sed 's|darwin.\{1,2\}\.h||g' -i Makefile*
31 ./configure \
32 --prefix=/usr \
33 --with-default-snmp-version="1" \
34 --with-sys-contact="user@localhost" \
35 --with-sys-location="unknown" \
36 --with-logfile="/var/log/snmpd.log" \
37 --with-persistent-directory="/var/net-snmp" \
38 $CONFIGURE_ARGS &&
39 make -j 1 &&
40 make -j 1 DESTDIR=$DESTDIR install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/lib/
48 cp -a $install/usr/bin $fs/usr
49 cp -a $install/usr/sbin $fs
50 cp -a $install/usr/share $fs/usr
51 cp -a $install/usr/lib/*so* $fs/usr/lib
52 cp -a $install/usr/lib/perl5 $fs/usr/lib
53 }