wok-6.x annotate net-snmp/receipt @ rev 24145
ventoy: set arch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 17 10:14:59 2021 +0000 (2021-11-17) |
parents | e2073ef01171 |
children | afae00265386 |
rev | line source |
---|---|
allan316@3226 | 1 # SliTaz package receipt. |
allan316@3226 | 2 |
allan316@3226 | 3 PACKAGE="net-snmp" |
pascal@23975 | 4 VERSION="5.9" |
allan316@3226 | 5 CATEGORY="network" |
Hans-G?nter@23234 | 6 TAGS="snmp" |
Hans-G?nter@23234 | 7 SHORT_DESC="SNMP tools." |
allan316@3226 | 8 MAINTAINER="allan316@gmail.com" |
pascal@15584 | 9 LICENSE="BSD" |
Hans-G?nter@23234 | 10 WEB_SITE="https://sourceforge.net/projects/net-snmp/" |
Hans-G?nter@23234 | 11 |
allan316@3226 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
allan316@3226 | 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
allan316@3226 | 14 |
pascal@15584 | 15 DEPENDS="openssl" |
Hans-G?nter@23234 | 16 BUILD_DEPENDS="file openssl-dev perl" |
pascal@15584 | 17 |
allan316@3226 | 18 # Rules to configure and make the package. |
allan316@3226 | 19 compile_rules() |
allan316@3226 | 20 { |
pascal@23976 | 21 export LDFLAGS="$LDFLAGS -ltinfo" |
pascal@23976 | 22 sed 's|darwin.\{1,2\}\.h||g' -i Makefile* |
Hans-G?nter@23234 | 23 ./configure \ |
Hans-G?nter@23234 | 24 --prefix=/usr \ |
Hans-G?nter@23234 | 25 --with-default-snmp-version="1" \ |
Hans-G?nter@23234 | 26 --with-sys-contact="user@localhost" \ |
Hans-G?nter@23234 | 27 --with-sys-location="unknown" \ |
Hans-G?nter@23234 | 28 --with-logfile="/var/log/snmpd.log" \ |
Hans-G?nter@23234 | 29 --with-persistent-directory="/var/net-snmp" \ |
allan316@3226 | 30 $CONFIGURE_ARGS && |
Hans-G?nter@23234 | 31 make -j 1 && |
Hans-G?nter@23234 | 32 make -j 1 DESTDIR=$DESTDIR install |
allan316@3226 | 33 } |
allan316@3226 | 34 |
allan316@3226 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
allan316@3226 | 36 genpkg_rules() |
allan316@3226 | 37 { |
allan316@3226 | 38 mkdir -p $fs/usr/lib/ |
Hans-G?nter@23234 | 39 |
Hans-G?nter@23234 | 40 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@23234 | 41 cp -a $install/usr/sbin $fs |
Hans-G?nter@23234 | 42 cp -a $install/usr/share $fs/usr |
Hans-G?nter@23234 | 43 cp -a $install/usr/lib/*so* $fs/usr/lib |
Hans-G?nter@23234 | 44 cp -a $install/usr/lib/perl5 $fs/usr/lib |
allan316@3226 | 45 } |
allan316@3226 | 46 |