wok-next diff vnstat/receipt @ rev 20610
transmission: up 2.93
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Apr 19 20:11:53 2018 +0300 (2018-04-19) |
parents | 8e7ad14f5f88 |
children | 7506b35e1c6f |
line diff
1.1 --- a/vnstat/receipt Tue Mar 01 13:43:15 2016 +0200 1.2 +++ b/vnstat/receipt Thu Apr 19 20:11:53 2018 +0300 1.3 @@ -1,4 +1,4 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="vnstat" 1.8 VERSION="1.15" 1.9 @@ -7,34 +7,28 @@ 1.10 MAINTAINER="al.bobylev@gmail.com" 1.11 LICENSE="GPL2" 1.12 WEB_SITE="http://humdi.net/vnstat/" 1.13 + 1.14 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.15 WGET_URL="${WEB_SITE}$TARBALL" 1.16 1.17 -DEPENDS="busybox" 1.18 -SUGGESTED="libgd" 1.19 BUILD_DEPENDS="libgd-dev" 1.20 1.21 -# Rules to configure and make the package. 1.22 -compile_rules() 1.23 -{ 1.24 - ./configure \ 1.25 - --prefix=/usr \ 1.26 - --sysconfdir=/etc \ 1.27 - $CONFIGURE_ARGS && 1.28 - make && make install 1.29 - find $install/usr/share/man -type f -exec gzip \{\} \; 1.30 +compile_rules() { 1.31 + ./configure $CONFIGURE_ARGS && 1.32 + make && 1.33 + make install || return 1 1.34 + 1.35 mkdir -p $install/etc/init.d 1.36 ln -s daemon $install/etc/init.d/vnstatd 1.37 } 1.38 1.39 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.40 -genpkg_rules() 1.41 -{ 1.42 - cp -a $install/* $fs 1.43 +genpkg_rules() { 1.44 + copy @std 1.45 + DEPENDS="busybox" 1.46 + SUGGESTED="libgd" 1.47 } 1.48 1.49 -post_install() 1.50 -{ 1.51 +post_install() { 1.52 # Start vnstat daemon and edit daemons.conf 1.53 if [ -z "$1" -a ! -s /aufs-umount.sh ]; then 1.54 /etc/init.d/vnstatd start || continue 1.55 @@ -48,9 +42,8 @@ 1.56 fi 1.57 } 1.58 1.59 -pre_remove() 1.60 -{ 1.61 - # Stop vnstat daemon before rm. 1.62 +# Stop vnstat daemon before rm. 1.63 +pre_remove() { 1.64 [ -z "$1" -a -x /etc/init.d/vnstatd ] && /etc/init.d/vnstatd stop 1.65 : 1.66 }