wok-current annotate net-snmp/receipt @ rev 25177
Update some web_site & wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jul 02 13:44:10 2022 +0000 (2022-07-02) |
parents | 852f0fbcce4d |
children | ec9531d04de1 |
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 |
pascal@24402 | 18 # What is the latest version available today? |
pascal@24402 | 19 current_version() |
pascal@24402 | 20 { |
pascal@24402 | 21 wget -O - https://sourceforge.net/projects/net-snmp/files/net-snmp/ 2>/dev/null | \ |
pascal@24402 | 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24402 | 23 sed '/scope="row/!d;s|.*/net-snmp/||;s|/.*||;q' |
pascal@24402 | 24 } |
pascal@24402 | 25 |
allan316@3226 | 26 # Rules to configure and make the package. |
allan316@3226 | 27 compile_rules() |
allan316@3226 | 28 { |
pascal@23976 | 29 export LDFLAGS="$LDFLAGS -ltinfo" |
pascal@23976 | 30 sed 's|darwin.\{1,2\}\.h||g' -i Makefile* |
Hans-G?nter@23234 | 31 ./configure \ |
Hans-G?nter@23234 | 32 --prefix=/usr \ |
Hans-G?nter@23234 | 33 --with-default-snmp-version="1" \ |
Hans-G?nter@23234 | 34 --with-sys-contact="user@localhost" \ |
Hans-G?nter@23234 | 35 --with-sys-location="unknown" \ |
Hans-G?nter@23234 | 36 --with-logfile="/var/log/snmpd.log" \ |
Hans-G?nter@23234 | 37 --with-persistent-directory="/var/net-snmp" \ |
allan316@3226 | 38 $CONFIGURE_ARGS && |
Hans-G?nter@23234 | 39 make -j 1 && |
Hans-G?nter@23234 | 40 make -j 1 DESTDIR=$DESTDIR install |
allan316@3226 | 41 } |
allan316@3226 | 42 |
allan316@3226 | 43 # Rules to gen a SliTaz package suitable for Tazpkg. |
allan316@3226 | 44 genpkg_rules() |
allan316@3226 | 45 { |
allan316@3226 | 46 mkdir -p $fs/usr/lib/ |
Hans-G?nter@23234 | 47 |
Hans-G?nter@23234 | 48 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@23234 | 49 cp -a $install/usr/sbin $fs |
Hans-G?nter@23234 | 50 cp -a $install/usr/share $fs/usr |
Hans-G?nter@23234 | 51 cp -a $install/usr/lib/*so* $fs/usr/lib |
Hans-G?nter@23234 | 52 cp -a $install/usr/lib/perl5 $fs/usr/lib |
allan316@3226 | 53 } |
allan316@3226 | 54 |