wok view net-snmp/receipt @ rev 23997

linld: add iso support (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jan 08 20:36:59 2021 +0000 (2021-01-08)
parents e2073ef01171
children afae00265386
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 # Rules to configure and make the package.
19 compile_rules()
20 {
21 export LDFLAGS="$LDFLAGS -ltinfo"
22 sed 's|darwin.\{1,2\}\.h||g' -i Makefile*
23 ./configure \
24 --prefix=/usr \
25 --with-default-snmp-version="1" \
26 --with-sys-contact="user@localhost" \
27 --with-sys-location="unknown" \
28 --with-logfile="/var/log/snmpd.log" \
29 --with-persistent-directory="/var/net-snmp" \
30 $CONFIGURE_ARGS &&
31 make -j 1 &&
32 make -j 1 DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib/
40 cp -a $install/usr/bin $fs/usr
41 cp -a $install/usr/sbin $fs
42 cp -a $install/usr/share $fs/usr
43 cp -a $install/usr/lib/*so* $fs/usr/lib
44 cp -a $install/usr/lib/perl5 $fs/usr/lib
45 }