wok-next diff net-snmp/receipt @ rev 19741
Many random packages update/upgrade.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jun 05 16:48:55 2017 +0300 (2017-06-05) |
parents | f784f25c0128 |
children | 7042ae74166a |
line diff
1.1 --- a/net-snmp/receipt Wed May 24 18:42:05 2017 +0200 1.2 +++ b/net-snmp/receipt Mon Jun 05 16:48:55 2017 +0300 1.3 @@ -1,4 +1,4 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="net-snmp" 1.8 VERSION="5.7.3" 1.9 @@ -6,38 +6,36 @@ 1.10 SHORT_DESC="snmp tools" 1.11 MAINTAINER="allan316@gmail.com" 1.12 LICENSE="BSD" 1.13 -TARBALL="$PACKAGE-$VERSION.tar.gz" 1.14 WEB_SITE="http://net-snmp.sourceforge.net" 1.15 -WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.16 TAGS="snmp" 1.17 1.18 -DEPENDS="openssl" 1.19 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.20 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.21 + 1.22 BUILD_DEPENDS="perl openssl-dev file" 1.23 +SPLIT="net-snmp-dev" 1.24 1.25 # Rules to configure and make the package. 1.26 compile_rules() 1.27 { 1.28 - # Apply a fix from Debian 1.29 - patch -p1 < $stuff/Fix-Perl-module-compilation.patch 1.30 ./configure \ 1.31 - --prefix=/usr \ 1.32 --with-default-snmp-version="1" \ 1.33 --with-sys-contact="user@localhost" \ 1.34 --with-sys-location="unknown" \ 1.35 --with-logfile="/var/log/snmpd.log" \ 1.36 --with-persistent-directory="/var/net-snmp" \ 1.37 $CONFIGURE_ARGS && 1.38 - make -j 1 && make DESTDIR=$DESTDIR install 1.39 + make -j1 && make DESTDIR=$DESTDIR install 1.40 } 1.41 1.42 # Rules to gen a SliTaz package suitable for Tazpkg. 1.43 genpkg_rules() 1.44 { 1.45 - mkdir -p $fs/usr/lib/ 1.46 - cp -a $install/usr/bin $fs/usr 1.47 - cp -a $install/usr/sbin $fs 1.48 - cp -a $install/usr/share $fs/usr 1.49 - cp -a $install/usr/lib/*so* $fs/usr/lib 1.50 - cp -a $install/usr/lib/perl5 $fs/usr/lib 1.51 + case $PACKAGE in 1.52 + net-snmp) 1.53 + copy @std 1.54 + DEPENDS="openssl" 1.55 + ;; 1.56 + *-dev) copy @dev;; 1.57 + esac 1.58 } 1.59 -